mooho-base-admin-plus 2.8.4 → 2.8.5

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
@@ -145,3 +145,4 @@ mooho-base-admin-plus@2.8.1 - 表格增加必须返回的字段属性
145
145
  mooho-base-admin-plus@2.8.2 - 优化树结构显示方式
146
146
  mooho-base-admin-plus@2.8.3 - 修复只返回所需字段的bug
147
147
  mooho-base-admin-plus@2.8.4 - 表格增加最大最小值和正则验证
148
+ mooho-base-admin-plus@2.8.5 - 优化表格报错提示
@@ -41244,17 +41244,18 @@ const _sfc_main$n = {
41244
41244
  continue;
41245
41245
  let u = s.isRequired;
41246
41246
  if ((s.requiredJson || "").trim()) {
41247
- let c = JSON.parse(s.requiredJson);
41248
- (c.type == "Condition" || c.type == "Expression") && (u = this.judgeCondition(c, a));
41247
+ let d = JSON.parse(s.requiredJson);
41248
+ (d.type == "Condition" || d.type == "Expression") && (u = this.judgeCondition(d, a));
41249
41249
  }
41250
+ let c = s.name.replaceAll(' <font color="red">*</font>', "");
41250
41251
  if (u && (l == null || !(String(l) || "").trim()))
41251
- return this.error("Front_Msg_Row_Column_Required|" + (r + 1) + "|" + s.name), !1;
41252
+ return this.error("Front_Msg_Row_Column_Required|" + (r + 1) + "|" + c), !1;
41252
41253
  if (s.maxValue != null && !isNaN(l) && l > s.maxValue)
41253
- return this.error("Front_Msg_Row_Validation_Max_Value|" + (r + 1) + "|" + s.name + "|" + s.maxValue.toString()), !1;
41254
+ return this.error("Front_Msg_Row_Validation_Max_Value|" + (r + 1) + "|" + c + "|" + s.maxValue.toString()), !1;
41254
41255
  if (s.minValue != null && !isNaN(l) && l < s.minValue)
41255
- return this.error("Front_Msg_Row_Validation_Min_Value|" + (r + 1) + "|" + s.name + "|" + s.minValue.toString()), !1;
41256
+ return this.error("Front_Msg_Row_Validation_Min_Value|" + (r + 1) + "|" + c + "|" + s.minValue.toString()), !1;
41256
41257
  if ((s.pattern || "").trim() && l != null && new RegExp(s.pattern).test(l) == !1)
41257
- return this.error("Front_Msg_Row_Validation_Pattern|" + (r + 1) + "|" + s.name + "|" + s.pattern), !1;
41258
+ return this.error("Front_Msg_Row_Validation_Pattern|" + (r + 1) + "|" + c + "|" + s.pattern), !1;
41258
41259
  }
41259
41260
  }
41260
41261
  return !0;
@@ -42571,7 +42572,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
42571
42572
  ], 2)
42572
42573
  ], 2);
42573
42574
  }
42574
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-f39ec418"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42575
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-3942cce8"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42575
42576
  __proto__: null,
42576
42577
  default: viewTable
42577
42578
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {