mooho-base-admin-plus 2.10.27 → 2.10.29

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
@@ -198,3 +198,5 @@ mooho-base-admin-plus@2.10.24 - 修复onBlur事件参数错误
198
198
  mooho-base-admin-plus@2.10.25 - 修复默认值的bug
199
199
  mooho-base-admin-plus@2.10.26 - 解决视图默认筛选条件和筛选项冲突的bug,需后端Mooho.Base@2.10.9
200
200
  mooho-base-admin-plus@2.10.27 - 修复上一版本的bug
201
+ mooho-base-admin-plus@2.10.28 - 选中行也出发变更事件
202
+ mooho-base-admin-plus@2.10.29 - 解析表达式时,如果结果为null,解析结果用null表示,避免判断错误
@@ -7685,7 +7685,7 @@ const showFormat = {}, mixinPage = {
7685
7685
  result += expression;
7686
7686
  else {
7687
7687
  let o = this.parseData(model, expression);
7688
- o == null || typeof o == "object" ? result += expression : isNaN(o) || o.toString().length > 16 ? result += "'" + String(o) + "'" : result += String(o);
7688
+ o == null ? result += "null" : typeof o == "object" ? result += expression : isNaN(o) || o.toString().length > 16 ? result += "'" + String(o) + "'" : result += String(o);
7689
7689
  }
7690
7690
  expression = "";
7691
7691
  }
@@ -43804,12 +43804,14 @@ const _sfc_main$n = {
43804
43804
  },
43805
43805
  // 单击某一行时触发
43806
43806
  onRowClick(a, r) {
43807
- if (Setting.layout.clickRowChecked)
43807
+ if (Setting.layout.clickRowChecked) {
43808
43808
  if (this.data[r]._checked) {
43809
43809
  const o = this.selectedData.findIndex((s) => s.id == this.data[r].id);
43810
43810
  this.selectedData.splice(o, 1), this.data[r]._checked = !1;
43811
43811
  } else
43812
43812
  this.selectedData.push(this.data[r]), this.data[r]._checked = !0;
43813
+ this.$emit("on-select-change");
43814
+ }
43813
43815
  this.$emit("on-row-click", a, r);
43814
43816
  },
43815
43817
  // 双击某一行时触发
@@ -44645,7 +44647,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
44645
44647
  ], 2)
44646
44648
  ], 2);
44647
44649
  }
44648
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-adc09acf"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44650
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-1b2cc73a"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44649
44651
  __proto__: null,
44650
44652
  default: viewTable
44651
44653
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {