mooho-base-admin-plus 2.10.18 → 2.10.19

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.
package/history.md CHANGED
@@ -189,3 +189,4 @@ mooho-base-admin-plus@2.10.15 - 修复上一版本bug
189
189
  mooho-base-admin-plus@2.10.16 - 修复上一版本bug
190
190
  mooho-base-admin-plus@2.10.17 - 内嵌表格默认增加行数可配置
191
191
  mooho-base-admin-plus@2.10.18 - 优化表格、表单、筛选项默认值
192
+ mooho-base-admin-plus@2.10.19 - 解决标签控件值为null报错的bug
@@ -33444,17 +33444,19 @@ const columnEdit = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_ren
33444
33444
  },
33445
33445
  // 获取标签颜色
33446
33446
  getTagColor(a, r) {
33447
- let o = [];
33447
+ let o = "default";
33448
+ if (r == null)
33449
+ return o;
33450
+ let s = [];
33448
33451
  if (a.param)
33449
33452
  try {
33450
- o = JSON.parse(a.param);
33453
+ s = JSON.parse(a.param);
33451
33454
  } catch (l) {
33452
33455
  console.log(l);
33453
33456
  }
33454
- let s = "default";
33455
- return o.forEach((l) => {
33456
- l.value.split(",").some((u) => u.trim() == r.trim()) && (s = l.color);
33457
- }), s;
33457
+ return s.forEach((l) => {
33458
+ l.value.split(",").some((u) => u.trim() == r.trim()) && (o = l.color);
33459
+ }), o;
33458
33460
  },
33459
33461
  /**
33460
33462
  * 获取默认值