eoss-ui 0.6.35 → 0.6.36

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.
@@ -61112,6 +61112,7 @@ function src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { va
61112
61112
  this.label = this.service ? 'label' : 'shortName';
61113
61113
  this.valKey = this.service ? 'value' : 'cciValue';
61114
61114
  var options = utils_store.get(val);
61115
+ debugger;
61115
61116
  if (options) {
61116
61117
  this.options = JSON.parse(JSON.stringify(options));
61117
61118
  } else {
@@ -61188,7 +61189,15 @@ function src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { va
61188
61189
  }
61189
61190
  }));
61190
61191
  } else {
61191
- var content = [item[_this3.label] || item.label];
61192
+ var content = [];
61193
+ var labelContent = item[_this3.label] || item.label;
61194
+ //判断它是否是html字符串
61195
+ if (typeof labelContent === 'string' && /<[^>]+>/.test(labelContent)) {
61196
+ // 如果是 HTML 字符串,创建对应的 VNode
61197
+ content = [h('div', { domProps: { innerHTML: labelContent } })];
61198
+ } else {
61199
+ content = [labelContent];
61200
+ }
61192
61201
  if (item.render) {
61193
61202
  content = [item.render(h, item)];
61194
61203
  }
@@ -61198,6 +61207,7 @@ function src_mainvue_type_script_lang_js_objectWithoutProperties(obj, keys) { va
61198
61207
  attrs: attrs
61199
61208
  }));
61200
61209
  }
61210
+
61201
61211
  eles.push(h('el-option', {
61202
61212
  attrs: {
61203
61213
  label: item[_this3.label] || item.label,
@@ -77693,7 +77703,7 @@ if (typeof window !== 'undefined' && window.Vue) {
77693
77703
  }
77694
77704
 
77695
77705
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
77696
- version: '0.6.35',
77706
+ version: '0.6.36',
77697
77707
  install: install,
77698
77708
  Button: packages_button,
77699
77709
  ButtonGroup: button_group,