mooho-base-admin-plus 2.7.1 → 2.7.4
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
|
@@ -134,3 +134,6 @@ mooho-base-admin-plus@2.6.0 - 增加已办
|
|
|
134
134
|
mooho-base-admin-plus@2.6.1 - 增加标签控件
|
|
135
135
|
mooho-base-admin-plus@2.7.0 - 工作流增加折线
|
|
136
136
|
mooho-base-admin-plus@2.7.1 - 弹出选择框弹出时默认清空筛选内容
|
|
137
|
+
mooho-base-admin-plus@2.7.2 - 修复字典缓存的bug
|
|
138
|
+
mooho-base-admin-plus@2.7.3 - 修复公式最后一位为)时的bug
|
|
139
|
+
mooho-base-admin-plus@2.7.4 - 修复全选的bug
|
|
@@ -16908,20 +16908,22 @@ const initRouter = (r, a) => {
|
|
|
16908
16908
|
return null;
|
|
16909
16909
|
text = text.toString();
|
|
16910
16910
|
let result = "", expression = "";
|
|
16911
|
-
for (let r = 0; r < text.length; r++)
|
|
16912
|
-
|
|
16913
|
-
|
|
16911
|
+
for (let r = 0; r < text.length; r++) {
|
|
16912
|
+
const a = text[r] == " " || text[r] == "+" || text[r] == "-" || text[r] == "*" || text[r] == "/" || text[r] == "(" || text[r] == ")" || text[r] == ">" || text[r] == "<" || text[r] == "!" || text[r] == "|" || text[r] == "&" || text[r] == "=";
|
|
16913
|
+
if (a || r == text.length - 1) {
|
|
16914
|
+
if (a || (expression += text[r]), (expression || "").trim()) {
|
|
16914
16915
|
if (!isNaN(expression) || expression.substr(0, 1) == "'" || expression.substr(0, 1) == '"' || expression == "null")
|
|
16915
16916
|
result += expression;
|
|
16916
16917
|
else {
|
|
16917
|
-
let
|
|
16918
|
-
|
|
16918
|
+
let o = this.parseData(model, expression);
|
|
16919
|
+
o == null || typeof o == "object" ? result += expression : isNaN(o) || o.toString().length > 16 ? result += "'" + String(o) + "'" : result += String(o);
|
|
16919
16920
|
}
|
|
16920
16921
|
expression = "";
|
|
16921
16922
|
}
|
|
16922
|
-
|
|
16923
|
+
a && (result += text[r]);
|
|
16923
16924
|
} else
|
|
16924
16925
|
expression += text[r];
|
|
16926
|
+
}
|
|
16925
16927
|
let data = null;
|
|
16926
16928
|
try {
|
|
16927
16929
|
console.log("expression", text, result), data = eval(result), (data != "NaN" && String(data) == "NaN" || typeof data == "number" && (String(data) == "Infinity" || String(data) == "-Infinity")) && (data = null);
|
|
@@ -41448,15 +41450,17 @@ const _sfc_main$n = {
|
|
|
41448
41450
|
a._checked = !1, this.selectedData.splice(o, 1), this.$emit("on-select-change");
|
|
41449
41451
|
},
|
|
41450
41452
|
onSelectAll(r) {
|
|
41451
|
-
|
|
41452
|
-
|
|
41453
|
-
o._checked = !0, this.selectedData.push(o);
|
|
41453
|
+
this.getDataWithChildren(this.data).forEach((o) => {
|
|
41454
|
+
o._checked = !0, this.selectedData.some((s) => s.id == o.id) || this.selectedData.push(o);
|
|
41454
41455
|
}), this.$emit("on-select-change");
|
|
41455
41456
|
},
|
|
41456
41457
|
onSelectAllCancel(r) {
|
|
41457
41458
|
this.getDataWithChildren(this.data).forEach((o) => {
|
|
41458
|
-
o._checked = !1
|
|
41459
|
-
|
|
41459
|
+
if (o._checked = !1, this.selectedData.some((s) => s.id == o.id)) {
|
|
41460
|
+
const s = this.selectedData.findIndex((l) => l.id === o.id);
|
|
41461
|
+
this.selectedData.splice(s, 1);
|
|
41462
|
+
}
|
|
41463
|
+
}), this.$emit("on-select-change");
|
|
41460
41464
|
},
|
|
41461
41465
|
// 键盘事件
|
|
41462
41466
|
onKeyup(r) {
|
|
@@ -42517,7 +42521,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
|
|
|
42517
42521
|
], 2)
|
|
42518
42522
|
], 2);
|
|
42519
42523
|
}
|
|
42520
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
42524
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-38e40259"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42521
42525
|
__proto__: null,
|
|
42522
42526
|
default: viewTable
|
|
42523
42527
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|