hcui-package 2.0.24 → 2.0.26
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/dist/hcui-package.es.js +15 -13
- package/dist/hcui-package.umd.js +2 -2
- package/package.json +1 -1
package/dist/hcui-package.es.js
CHANGED
|
@@ -33335,7 +33335,7 @@ const r8 = {
|
|
|
33335
33335
|
}), a8 = (e, t, n, o, r, i) => {
|
|
33336
33336
|
function l(s, c) {
|
|
33337
33337
|
s.forEach((f) => {
|
|
33338
|
-
n && f[n]
|
|
33338
|
+
n && f[n] ? f[`node_${o}`] = `[${f[n]}] ${f[`${o}`]}` : f[`node_${o}`] = f[`${o}`], f.isLeaf = !f[t] || !f[t].length, f[`parent-${r}`] = c || null, i && (f.checkboxDisabled = i(f), f.disabled = i(f)), f[t] && f[t].length && l(f[t], f[r]);
|
|
33339
33339
|
});
|
|
33340
33340
|
}
|
|
33341
33341
|
return l(e), e;
|
|
@@ -33518,7 +33518,7 @@ const c8 = {
|
|
|
33518
33518
|
};
|
|
33519
33519
|
function w(T, L) {
|
|
33520
33520
|
return T.filter((j) => {
|
|
33521
|
-
if (j[o.labelField].includes(L))
|
|
33521
|
+
if (j["node_" + o.labelField].includes(L))
|
|
33522
33522
|
return !0;
|
|
33523
33523
|
if (j[o.childrenField] && j[o.childrenField].length > 0) {
|
|
33524
33524
|
const _ = w(j[o.childrenField], L);
|
|
@@ -33562,7 +33562,7 @@ const c8 = {
|
|
|
33562
33562
|
return;
|
|
33563
33563
|
}
|
|
33564
33564
|
}
|
|
33565
|
-
o.confirmNodeRule && b.value.length && (b.value = o.confirmNodeRule(b.value), m.value = b.value.map((T) => T[o.keyField])), x.value = b.value.map((T) => T[o.labelField]).join(","), M(), r("update:value", typeof o.value == "string" ? m.value.join(",") : m.value), r("confirm", b.value);
|
|
33565
|
+
o.confirmNodeRule && b.value.length && (b.value = o.confirmNodeRule(b.value), m.value = b.value.map((T) => T[o.keyField])), x.value = b.value.map((T) => T["node_" + o.labelField]).join(","), M(), r("update:value", typeof o.value == "string" ? m.value.join(",") : m.value), r("confirm", b.value);
|
|
33566
33566
|
}, $ = () => {
|
|
33567
33567
|
m.value = [], b.value = [], x.value = "", r("clear");
|
|
33568
33568
|
}, P = () => {
|
|
@@ -33577,9 +33577,9 @@ const c8 = {
|
|
|
33577
33577
|
let Z = [];
|
|
33578
33578
|
typeof L == "string" ? Z = L ? L.split(",") : [] : Z = L;
|
|
33579
33579
|
const j = jf(d.value, Z, o.keyField, o.childrenField);
|
|
33580
|
-
b.value = j, m.value = j.map((_) => _[o.keyField]), x.value = b.value.map((_) => _[o.labelField]).join(",");
|
|
33580
|
+
b.value = j, m.value = j.map((_) => _[o.keyField]), x.value = b.value.map((_) => _["node_" + o.labelField]).join(",");
|
|
33581
33581
|
}, X = (T) => {
|
|
33582
|
-
const L = T ? T.option[o.labelField] : "";
|
|
33582
|
+
const L = T ? T.option["node_" + o.labelField] : "";
|
|
33583
33583
|
return Bn("div", {
|
|
33584
33584
|
class: "dealLabelDIV",
|
|
33585
33585
|
title: L
|
|
@@ -79033,22 +79033,23 @@ function fee() {
|
|
|
79033
79033
|
type: c = "primary",
|
|
79034
79034
|
maskClosable: f = !0,
|
|
79035
79035
|
onConfirm: d,
|
|
79036
|
-
|
|
79037
|
-
|
|
79036
|
+
onClose: u,
|
|
79037
|
+
onCancel: p = () => Promise.resolve()
|
|
79038
|
+
} = n, m = `center-${c}-dialog`, g = () => i ? typeof i == "function" ? a("div", { class: "description" }, [i()]) : typeof i == "object" ? a("div", { class: "description" }, [i]) : typeof i == "string" ? e(i) ? a("div", { class: "description" }, [
|
|
79038
79039
|
a("div", {
|
|
79039
79040
|
class: "description-text",
|
|
79040
79041
|
innerHTML: i
|
|
79041
79042
|
})
|
|
79042
79043
|
]) : a("div", { class: "description" }, [
|
|
79043
79044
|
a("div", { class: "description-text" }, i)
|
|
79044
|
-
]) : null : null,
|
|
79045
|
-
window.$dialog[
|
|
79045
|
+
]) : null : null, b = c === "primary" ? "info" : c, x = c === "success" ? "icon-check arm-check" : "icon-jingshi arm-jingshi";
|
|
79046
|
+
window.$dialog[b]({
|
|
79046
79047
|
showIcon: !1,
|
|
79047
|
-
class:
|
|
79048
|
+
class: m,
|
|
79048
79049
|
content: () => a("div", { class: "dialog-content" }, [
|
|
79049
79050
|
// 警告图标
|
|
79050
79051
|
a("div", { class: "icon-container" }, [
|
|
79051
|
-
a("i", { class: `iconfont arm-icon warning-icon ${
|
|
79052
|
+
a("i", { class: `iconfont arm-icon warning-icon ${x}` })
|
|
79052
79053
|
]),
|
|
79053
79054
|
// title
|
|
79054
79055
|
a("div", { class: "title" }, o),
|
|
@@ -79057,7 +79058,7 @@ function fee() {
|
|
|
79057
79058
|
a("div", { class: "warning-text" }, r)
|
|
79058
79059
|
]),
|
|
79059
79060
|
// 底部说明
|
|
79060
|
-
|
|
79061
|
+
g()
|
|
79061
79062
|
]),
|
|
79062
79063
|
maskClosable: f,
|
|
79063
79064
|
positiveText: l,
|
|
@@ -79070,7 +79071,8 @@ function fee() {
|
|
|
79070
79071
|
size: "large"
|
|
79071
79072
|
},
|
|
79072
79073
|
onPositiveClick: d,
|
|
79073
|
-
|
|
79074
|
+
onClose: u,
|
|
79075
|
+
onNegativeClick: p
|
|
79074
79076
|
});
|
|
79075
79077
|
}
|
|
79076
79078
|
};
|