mooho-base-admin-plus 2.5.19 → 2.5.21

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
@@ -112,4 +112,6 @@ mooho-base-admin-plus@2.5.15 - 修复上一版本的bug
112
112
  mooho-base-admin-plus@2.5.16 - 修复上一版本的bug
113
113
  mooho-base-admin-plus@2.5.17 - 增加表格导出记录数上限和是否禁止自动加载设置
114
114
  mooho-base-admin-plus@2.5.18 - 修复0条数据页码错误
115
- mooho-base-admin-plus@2.5.19 - 修复0条数据页码错误
115
+ mooho-base-admin-plus@2.5.19 - 修复上一版本的bug
116
+ mooho-base-admin-plus@2.5.20 - 修复上一版本的bug
117
+ mooho-base-admin-plus@2.5.21 - 修复动态切换后无法默认第一项的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(() => [
@@ -40562,7 +40562,7 @@ const _sfc_main$n = {
40562
40562
  if (!(!this.inited && (await this.init(this.viewCode), !this.inited))) {
40563
40563
  if (typeof this.beforeLoadData == "function" && this.beforeLoadData(), r && (this.staticData = this.copy(r)), this.current <= 0 && (this.current = 1), this.static) {
40564
40564
  let a = this.getFilterResult();
40565
- this.total = a.length, this.current > Math.ceil(this.total / this.size) && (this.current = Math.ceil(this.total / this.size));
40565
+ this.total = a.length, this.total == 0 ? this.current = 1 : this.current > Math.ceil(this.total / this.size) && (this.current = Math.ceil(this.total / this.size));
40566
40566
  let o = (this.current - 1) * this.size;
40567
40567
  this.data = o + this.size >= a.length ? a.slice(o, a.length) : a.slice(o, o + this.size);
40568
40568
  } else {
@@ -42019,7 +42019,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
42019
42019
  ], 2)
42020
42020
  ], 2);
42021
42021
  }
42022
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-01ddfb93"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42022
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-fe7cba2c"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42023
42023
  __proto__: null,
42024
42024
  default: viewTable
42025
42025
  }, Symbol.toStringTag, { value: "Module" })), res$1 = "Task", taskApi = {