How to use the d2-crud-plus/src/lib/utils/util.string.hasEmpty function in d2-crud-plus

To help you get started, we’ve selected a few d2-crud-plus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github greper / d2-crud-plus / packages / d2-crud-plus-example / src / business / views / form / date / crud.js View on Github external
valueBuilder (row, key) {
        if (!StringUtils.hasEmpty(row.datetimerangeStart, row.datetimerangeEnd)) {
          row.datetimerange = [new Date(row.datetimerangeStart), new Date(row.datetimerangeEnd)]
        }
      },
      valueResolve (row, key) {
github greper / d2-crud-plus / packages / d2-crud-plus-example / src / business / views / form / date / crud.js View on Github external
valueBuilder (row, key) {
        if (!StringUtils.hasEmpty(row.daterangeStart, row.daterangeEnd)) {
          row.daterange = [new Date(row.daterangeStart), new Date(row.daterangeEnd)]
        }
      },
      valueResolve (row, key) {
github greper / d2-crud-plus / packages / d2-crud-plus-example / src / business / views / form / date / crud.js View on Github external
valueResolve (row, key) {
        if (row.daterange != null && !StringUtils.hasEmpty(row.daterange)) {
          row.daterangeStart = row.daterange[0].getTime()
          row.daterangeEnd = row.daterange[1].getTime()
        } else {
          row.daterangeStart = null
          row.daterangeEnd = null
        }
      }
    },
github greper / d2-crud-plus / packages / d2-crud-plus-example / src / business / views / form / date / crud.js View on Github external
valueResolve (row, key) {
        if (row.datetimerange != null && !StringUtils.hasEmpty(row.datetimerange)) {
          row.datetimerangeStart = row.datetimerange[0].getTime()
          row.datetimerangeEnd = row.datetimerange[1].getTime()
        } else {
          row.datetimerangeStart = null
          row.datetimerangeEnd = null
        }
      }
    }

d2-crud-plus

d2-admin的d2-crud的扩展

MIT
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis