eoss-ui 0.7.88 → 0.7.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ export default {
88
88
  },
89
89
  symbol: {
90
90
  type: String,
91
- default: ''
91
+ default: ','
92
92
  },
93
93
  plain: Boolean,
94
94
  where: Object,
@@ -640,8 +640,12 @@ export default {
640
640
  if (!this.hide) {
641
641
  if (this.readonly) {
642
642
  let dom = [];
643
- if (Array.isArray(this.models)) {
644
- dom = this.models.map((item) => {
643
+ let models = this.models ? JSON.parse(JSON.stringify(this.models)) : '';
644
+ if (typeof models === 'string' && models.includes(',')) {
645
+ models = models.split(',');
646
+ }
647
+ if (Array.isArray(models)) {
648
+ dom = models.map((item) => {
645
649
  if (util.isObject(item)) {
646
650
  if (!item[this.label] && !item.label) {
647
651
  return this.getLabel(value[this.valKey], data);
@@ -650,15 +654,16 @@ export default {
650
654
  }
651
655
  return this.getLabel(item, this.results);
652
656
  });
653
- } else if (util.isObject(this.models)) {
654
- if (!this.models[this.label] && !this.models.label) {
655
- dom = [this.getLabel(this.models[this.valKey], this.results)];
657
+ } else if (util.isObject(models)) {
658
+ if (!models[this.label] && !models.label) {
659
+ dom = [this.getLabel(models[this.valKey], this.results)];
656
660
  } else {
657
- dom = [this.models[this.label] || this.models.label];
661
+ dom = [models[this.label] || models.label];
658
662
  }
659
663
  } else {
660
- dom = [this.getLabel(this.models, this.results)];
664
+ dom = [this.getLabel(models, this.results)];
661
665
  }
666
+ console.log('dom', dom);
662
667
  return h(
663
668
  'div',
664
669
  {
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.7.88',
128
+ version: '0.7.90',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,