mooho-base-admin-plus 2.5.20 → 2.5.22

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
@@ -114,3 +114,5 @@ mooho-base-admin-plus@2.5.17 - 增加表格导出记录数上限和是否禁止
114
114
  mooho-base-admin-plus@2.5.18 - 修复0条数据页码错误
115
115
  mooho-base-admin-plus@2.5.19 - 修复上一版本的bug
116
116
  mooho-base-admin-plus@2.5.20 - 修复上一版本的bug
117
+ mooho-base-admin-plus@2.5.21 - 修复动态切换后无法默认第一项的bug
118
+ mooho-base-admin-plus@2.5.22 - 修复上一版本的bug
@@ -39415,7 +39415,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
39415
39415
  } else if (a.dataSource = l.data.map((u) => ({
39416
39416
  id: (a.sourceDataCode || "").trim() ? this.parseData(u, a.sourceDataCode) : u.id,
39417
39417
  name: this.parseData(u, a.sourceDisplayCode)
39418
- })), r && this.parseData(r, a.code) == null && a.isDefaultFirst && l.data.length > 0 && (this.setData(r, a.code, this.parseData(l.data[0], a.sourceDataCode)), this.$emit("on-change", a, null, a.rawData[0], null), a.sourceDataCode == "id" && a.code.length > 2)) {
39418
+ })), r && a.isDefaultFirst && l.data.length > 0 && (this.parseData(r, a.code) == null || !l.data.some((u) => this.parseData(r, a.code) == this.parseData(u, a.sourceDataCode))) && (console.log("xxx", this.parseData(r, a.code), l.data), this.setData(r, a.code, this.parseData(l.data[0], a.sourceDataCode)), this.$emit("on-change", a, null, a.rawData[0], null), a.sourceDataCode == "id" && a.code.length > 2)) {
39419
39419
  let u = a.code.substr(0, a.code.length - 2), c = a.rawData.find((d) => d.id == this.parseData(r, a.code));
39420
39420
  this.setData(r, u, c);
39421
39421
  }
@@ -40016,7 +40016,7 @@ function _sfc_render$o(r, a, o, s, l, u) {
40016
40016
  default: withCtx(() => [
40017
40017
  (openBlock(!0), createElementBlock(Fragment, null, renderList(u.getDataSource(l.data, L), (W) => (openBlock(), createBlock(E, {
40018
40018
  key: W.id,
40019
- label: W.id,
40019
+ label: W.id.toString,
40020
40020
  disabled: o.readonly || L.isReadonly
40021
40021
  }, {
40022
40022
  default: withCtx(() => [