mooho-base-admin-plus 2.10.18 → 2.10.20

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,5 @@ 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
193
+ mooho-base-admin-plus@2.10.20 - 修复上一版本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
  * 获取默认值
@@ -42285,16 +42287,18 @@ function _sfc_render$o(a, r, o, s, l, u) {
42285
42287
  class: normalizeClass({ error: l.compareData != null && a.parseData(l.data, F.code) != a.parseData(l.compareData, F.code) }),
42286
42288
  innerHTML: a.showData(l.data, F)
42287
42289
  }, null, 10, _hoisted_7$2)
42288
- ], 8, _hoisted_6$3)) : F.controlType === "Tag" ? (openBlock(), createBlock(f, {
42289
- key: 2,
42290
- color: a.getTagColor(F, a.parseData(l.data, F.code)),
42291
- type: F.source == "default" ? null : F.source
42292
- }, {
42293
- default: withCtx(() => [
42294
- createTextVNode(toDisplayString$2(a.showData(l.data, F)), 1)
42295
- ]),
42296
- _: 2
42297
- }, 1032, ["color", "type"])) : F.controlType === "Description" ? (openBlock(), createElementBlock("div", {
42290
+ ], 8, _hoisted_6$3)) : F.controlType === "Tag" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
42291
+ a.parseData(l.data, F.code) != null ? (openBlock(), createBlock(f, {
42292
+ key: 0,
42293
+ color: a.getTagColor(F, a.parseData(l.data, F.code)),
42294
+ type: F.source == "default" ? null : F.source
42295
+ }, {
42296
+ default: withCtx(() => [
42297
+ createTextVNode(toDisplayString$2(a.showData(l.data, F)), 1)
42298
+ ]),
42299
+ _: 2
42300
+ }, 1032, ["color", "type"])) : createCommentVNode("", !0)
42301
+ ], 64)) : F.controlType === "Description" ? (openBlock(), createElementBlock("div", {
42298
42302
  key: 3,
42299
42303
  innerHTML: a.showMultiLine(F.description)
42300
42304
  }, null, 8, _hoisted_8$2)) : createCommentVNode("", !0),
@@ -44049,16 +44053,18 @@ function _sfc_render$n(a, r, o, s, l, u) {
44049
44053
  title: Y.isSingleLine ? a.showData(u.rowData(q, re), Y) : null,
44050
44054
  class: normalizeClass({ "single-line": Y.isSingleLine }),
44051
44055
  innerHTML: a.showData(u.rowData(q, re), Y)
44052
- }, null, 10, _hoisted_3$9)) : Y.controlType === "Tag" ? (openBlock(), createBlock(T, {
44053
- key: 2,
44054
- color: a.getTagColor(Y, a.parseData(u.rowData(q, re), Y.code)),
44055
- type: Y.source == "default" ? null : Y.source
44056
- }, {
44057
- default: withCtx(() => [
44058
- createTextVNode(toDisplayString$2(a.showData(u.rowData(q, re), Y)), 1)
44059
- ]),
44060
- _: 2
44061
- }, 1032, ["color", "type"])) : Y.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
44056
+ }, null, 10, _hoisted_3$9)) : Y.controlType === "Tag" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
44057
+ a.parseData(u.rowData(q, re), Y.code) != null ? (openBlock(), createBlock(T, {
44058
+ key: 0,
44059
+ color: a.getTagColor(Y, a.parseData(u.rowData(q, re), Y.code)),
44060
+ type: Y.source == "default" ? null : Y.source
44061
+ }, {
44062
+ default: withCtx(() => [
44063
+ createTextVNode(toDisplayString$2(a.showData(u.rowData(q, re), Y)), 1)
44064
+ ]),
44065
+ _: 2
44066
+ }, 1032, ["color", "type"])) : createCommentVNode("", !0)
44067
+ ], 64)) : Y.controlType === "Hyperlink" ? (openBlock(), createElementBlock("a", {
44062
44068
  key: 3,
44063
44069
  href: a.getTemplateReplace(u.rowData(q, re), Y.hyperlink),
44064
44070
  target: Y.isNewWindow ? "_blank" : ""
@@ -44637,7 +44643,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
44637
44643
  ], 2)
44638
44644
  ], 2);
44639
44645
  }
44640
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-4273ba1a"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44646
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cffae061"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44641
44647
  __proto__: null,
44642
44648
  default: viewTable
44643
44649
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {