mooho-base-admin-plus 2.5.0 → 2.5.1
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 +2 -1
- package/package/mooho-base-admin-plus.min.esm.js +14 -4
- package/package/mooho-base-admin-plus.min.js +1 -1
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/view-form.vue +12 -0
- package/src/components/view/view-table.vue +12 -7
- package/test/styles/css/login.css +1 -1
package/history.md
CHANGED
|
@@ -94,4 +94,5 @@ mooho-base-admin-plus@2.4.59 - 回退上一版本的修改
|
|
|
94
94
|
mooho-base-admin-plus@2.4.60 - 增加表单延迟加载方法
|
|
95
95
|
mooho-base-admin-plus@2.4.61 - 修复上一版本bug
|
|
96
96
|
mooho-base-admin-plus@2.4.62 - 修复添加数据源控件后报错的bug
|
|
97
|
-
mooho-base-admin-plus@2.5.0 - 编译工具升级到Vite5
|
|
97
|
+
mooho-base-admin-plus@2.5.0 - 编译工具升级到Vite5
|
|
98
|
+
mooho-base-admin-plus@2.5.1 - 修复静态表格分页超出限制的bug
|
|
@@ -38417,6 +38417,16 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
38417
38417
|
r.controlType == "Table" && this.$refs["table_" + r.code][0].loadData([]);
|
|
38418
38418
|
}), this.data = {}, this.clearValidate();
|
|
38419
38419
|
},
|
|
38420
|
+
/**
|
|
38421
|
+
* 重置表格页码
|
|
38422
|
+
*
|
|
38423
|
+
* @public
|
|
38424
|
+
*/
|
|
38425
|
+
async resetTablePage() {
|
|
38426
|
+
this.columns.forEach((r) => {
|
|
38427
|
+
r.controlType == "Table";
|
|
38428
|
+
});
|
|
38429
|
+
},
|
|
38420
38430
|
/**
|
|
38421
38431
|
* 清空验证信息
|
|
38422
38432
|
*
|
|
@@ -39735,9 +39745,9 @@ const _sfc_main$n = {
|
|
|
39735
39745
|
return;
|
|
39736
39746
|
}
|
|
39737
39747
|
if (!(!this.inited && (await this.init(this.viewCode), !this.inited))) {
|
|
39738
|
-
if (typeof this.beforeLoadData == "function" && this.beforeLoadData(), r && (this.staticData = this.copy(r)), this.static) {
|
|
39748
|
+
if (typeof this.beforeLoadData == "function" && this.beforeLoadData(), r && (this.staticData = this.copy(r)), this.current <= 0 && (this.current = 1), this.static) {
|
|
39739
39749
|
let a = this.getFilterResult();
|
|
39740
|
-
this.total = a.length;
|
|
39750
|
+
this.total = a.length, this.current > Math.ceil(this.total / this.size) && (this.current = Math.ceil(this.total / this.size));
|
|
39741
39751
|
let o = (this.current - 1) * this.size;
|
|
39742
39752
|
this.data = o + this.size >= a.length ? a.slice(o, a.length) : a.slice(o, o + this.size);
|
|
39743
39753
|
} else {
|
|
@@ -39773,7 +39783,7 @@ const _sfc_main$n = {
|
|
|
39773
39783
|
});
|
|
39774
39784
|
o++;
|
|
39775
39785
|
}
|
|
39776
|
-
this.current > Math.ceil(this.total / this.size) && (this.current = Math.ceil(this.total / this.size)), this.
|
|
39786
|
+
this.current > Math.ceil(this.total / this.size) && (this.current = Math.ceil(this.total / this.size)), this.checkCrossPage || this.tableView.checkCrossPage ? this.data.forEach((o) => {
|
|
39777
39787
|
o._checked = this.selectedData.some((s) => o.id === s.id);
|
|
39778
39788
|
}) : this.selectedData = [];
|
|
39779
39789
|
}
|
|
@@ -41194,7 +41204,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
|
|
|
41194
41204
|
], 2)
|
|
41195
41205
|
], 2);
|
|
41196
41206
|
}
|
|
41197
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
41207
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-fde71e61"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41198
41208
|
__proto__: null,
|
|
41199
41209
|
default: viewTable
|
|
41200
41210
|
}, Symbol.toStringTag, { value: "Module" })), res$1 = "Task", taskApi = {
|