How to use the heyui/src/utils/utils.getValue function in heyui

To help you get started, we’ve selected a few heyui 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 heyui / heyui / src / components / cascader / cascader.vue View on Github external
getValue(item) {
      if (utils.isNull(item)) {
        return null;
      }
      if (this.type == 'key') {
        return this.cascaderObj[item];
      } else {
        return utils.getValue(item, this.param);
      }
    },
    dispose() {
github heyui / heyui / src / components / category / category.vue View on Github external
getValue(item) {
      if (utils.isNull(item)) {
        return null;
      }
      if (this.type == 'key') {
        return this.categoryObj[item];
      } else {
        return utils.getValue(item, this.param);
      }
    },
    dispose() {
github heyui / heyui / src / components / auto-complete / autocomplete.vue View on Github external
getValue(item) {
      if (!utils.isObject(item) && this.type == 'object') {
        return utils.getValue({
          [this.param.titleName]: item
        }, this.param);
      } else {
        return utils.getValue(item, this.param);
      }
    },
    focus(event) {
github heyui / heyui / src / components / category-picker / categorypicker.vue View on Github external
getValue(item) {
      if (utils.isNull(item)) {
        return null;
      }
      if (this.type == 'key') {
        return this.categoryObj[item];
      } else {
        return utils.getValue(item, this.param);
      }
    },
    getShow(data) {
github heyui / heyui / src / components / auto-complete / autocomplete.vue View on Github external
getValue(item) {
      if (!utils.isObject(item) && this.type == 'object') {
        return utils.getValue({
          [this.param.titleName]: item
        }, this.param);
      } else {
        return utils.getValue(item, this.param);
      }
    },
    focus(event) {