@hb-hellotech/hb-ui 1.3.8-beta.9.2 → 1.3.8-beta.9.3
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/hb_component_lib.js +187 -187
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -9,23 +9,23 @@ import { CloseOutlined as gt, QuestionCircleOutlined as yt, SearchOutlined as Ne
|
|
|
9
9
|
import { useFullscreen as nt, useDebounceFn as St } from "@vueuse/core";
|
|
10
10
|
import Fe from "dayjs";
|
|
11
11
|
const wt = "hb-", Ue = (e = "") => {
|
|
12
|
-
const
|
|
13
|
-
return Ft(
|
|
14
|
-
}, he = (e,
|
|
12
|
+
const f = `${wt}${e}`;
|
|
13
|
+
return Ft(f);
|
|
14
|
+
}, he = (e, f, d, u) => (f && (e += `-${f}`), d && (e += `__${d}`), u && (e += `--${u}`), e), Ft = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (
|
|
16
|
+
b: (f) => f ? he(e, f, "", "") : he(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (
|
|
18
|
+
e: (f) => f ? he(e, "", f, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (
|
|
20
|
+
m: (f) => he(e, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (
|
|
22
|
+
be: (f, d) => he(e, f, d, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (
|
|
24
|
+
em: (f, d) => he(e, "", f, d),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (
|
|
26
|
+
bem: (f, d, u) => he(e, f, d, u),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (
|
|
28
|
+
is: (f, d) => d ? `is-${f}` : ""
|
|
29
29
|
}), xt = ["onMouseenter", "onMouseleave"], Tt = ["onClick"], $t = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
@@ -38,14 +38,14 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(e, { expose:
|
|
41
|
+
setup(e, { expose: f, emit: d }) {
|
|
42
42
|
const u = ce().t, C = ce().messages.value.en_US, g = ce().messages.value.ja_JP, n = ce().messages.value.zh_CN, i = e, a = d, o = Ue("sfcm"), L = at(), B = Se({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), c = U(!1), z = U(600);
|
|
45
45
|
let x = [];
|
|
46
46
|
const T = U([]), k = U([]), A = V(() => T.value.every((b) => b.isLinked || b.isFixed)), N = (b) => ({
|
|
47
47
|
...b,
|
|
48
|
-
label: r(b) || `${
|
|
48
|
+
label: r(b) || `${h(b) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: b.key,
|
|
50
50
|
isFixed: b?.isFixed || !1,
|
|
51
51
|
isLinked: b?.isLinked || !1,
|
|
@@ -63,7 +63,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, S = V(() =>
|
|
66
|
+
}, S = V(() => m() + "_" + i.saveKey), m = () => {
|
|
67
67
|
const b = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let H = "anonymous";
|
|
69
69
|
if (b)
|
|
@@ -78,7 +78,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
78
78
|
ja_JP: () => fe.get(g, b.labelLanguage || ""),
|
|
79
79
|
en_US: () => fe.get(C, b.labelLanguage || ""),
|
|
80
80
|
zh_CN: () => fe.get(n, b.labelLanguage || "")
|
|
81
|
-
})[B.lan]?.() || b.label,
|
|
81
|
+
})[B.lan]?.() || b.label, h = (b) => ({
|
|
82
82
|
ja_JP: () => fe.get(g, b.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => fe.get(C, b.subLabelLanguage || ""),
|
|
84
84
|
zh_CN: () => fe.get(n, b.subLabelLanguage || "")
|
|
@@ -175,7 +175,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
175
175
|
const H = k.value.findIndex((D) => D.key === b.key);
|
|
176
176
|
H !== -1 && (k.value[H].active = !1);
|
|
177
177
|
};
|
|
178
|
-
return
|
|
178
|
+
return f({
|
|
179
179
|
toOpenModal: K
|
|
180
180
|
}), be(() => {
|
|
181
181
|
console.log("我是保存的搜索条件");
|
|
@@ -286,13 +286,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
286
286
|
}, 8, ["visible", "width"])
|
|
287
287
|
], 2));
|
|
288
288
|
}
|
|
289
|
-
}), oe = (e,
|
|
289
|
+
}), oe = (e, f) => {
|
|
290
290
|
const d = e.__vccOpts || e;
|
|
291
|
-
for (const [u, C] of
|
|
291
|
+
for (const [u, C] of f)
|
|
292
292
|
d[u] = C;
|
|
293
293
|
return d;
|
|
294
|
-
}, Mt = /* @__PURE__ */ oe($t, [["__scopeId", "data-v-abe66e59"]]), le = (e) => (e.install = (
|
|
295
|
-
|
|
294
|
+
}, Mt = /* @__PURE__ */ oe($t, [["__scopeId", "data-v-abe66e59"]]), le = (e) => (e.install = (f) => {
|
|
295
|
+
f.component(e.name || "AnonymousComponent", e);
|
|
296
296
|
}, e), It = le(Mt), Ht = { class: "form-footer" }, Dt = /* @__PURE__ */ te({
|
|
297
297
|
name: "HbLibListForm",
|
|
298
298
|
__name: "HbListForm",
|
|
@@ -324,7 +324,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
324
324
|
} }
|
|
325
325
|
},
|
|
326
326
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
327
|
-
setup(e, { expose:
|
|
327
|
+
setup(e, { expose: f, emit: d }) {
|
|
328
328
|
const u = d, C = Be("HB_LIST_PAGE_CONTAINER"), g = V(() => i.searchList || []), n = Ue("form"), i = e, a = U("show"), o = V(() => [...i.items]), L = V(() => [...i.items].map((p) => ({
|
|
329
329
|
...p,
|
|
330
330
|
label: p.label?.includes("多项搜索") ? "" : p.label
|
|
@@ -356,7 +356,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
356
356
|
const S = (p) => {
|
|
357
357
|
const $ = p;
|
|
358
358
|
$.style.height = "", $.offsetHeight;
|
|
359
|
-
},
|
|
359
|
+
}, m = (p) => {
|
|
360
360
|
const $ = p;
|
|
361
361
|
$.style.height = "", $.style.overflow = "", ve(() => {
|
|
362
362
|
C.calTableHeight && C.calTableHeight();
|
|
@@ -369,12 +369,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
369
369
|
$.style.height = "0";
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
},
|
|
372
|
+
}, h = () => {
|
|
373
373
|
ve(() => {
|
|
374
374
|
C.calTableHeight && C.calTableHeight();
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
|
-
return
|
|
377
|
+
return f({
|
|
378
378
|
formRef: c,
|
|
379
379
|
SelectOption: ze,
|
|
380
380
|
Form: Qe,
|
|
@@ -398,9 +398,9 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
398
398
|
w(st, {
|
|
399
399
|
name: "form-collapse",
|
|
400
400
|
onEnter: S,
|
|
401
|
-
onAfterEnter:
|
|
401
|
+
onAfterEnter: m,
|
|
402
402
|
onLeave: r,
|
|
403
|
-
onAfterLeave:
|
|
403
|
+
onAfterLeave: h
|
|
404
404
|
}, {
|
|
405
405
|
default: t(() => [
|
|
406
406
|
ie(v("div", {
|
|
@@ -737,7 +737,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
737
737
|
hideDomList: { default: () => ["#globalHead", "#globalLeft", "#globalNavFrame"] }
|
|
738
738
|
},
|
|
739
739
|
setup(e) {
|
|
740
|
-
const
|
|
740
|
+
const f = e;
|
|
741
741
|
Be("HB_LIST_PAGE_CONTAINER");
|
|
742
742
|
const { isFullscreen: d, toggle: u } = nt(document.body);
|
|
743
743
|
se(
|
|
@@ -745,18 +745,18 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
745
745
|
(i) => {
|
|
746
746
|
const a = /* @__PURE__ */ new Map();
|
|
747
747
|
setTimeout(i ? () => {
|
|
748
|
-
if (
|
|
749
|
-
for (let o = 0; o <
|
|
750
|
-
const L = document.querySelector(
|
|
751
|
-
L && (a.set(
|
|
748
|
+
if (f.hideDomList?.length)
|
|
749
|
+
for (let o = 0; o < f.hideDomList.length; o++) {
|
|
750
|
+
const L = document.querySelector(f.hideDomList[o]);
|
|
751
|
+
L && (a.set(f.hideDomList[o], L.style.display), L.style.display = "none");
|
|
752
752
|
}
|
|
753
753
|
} : () => {
|
|
754
|
-
if (
|
|
755
|
-
for (let o = 0; o <
|
|
756
|
-
const L = document.querySelector(
|
|
754
|
+
if (f.hideDomList?.length)
|
|
755
|
+
for (let o = 0; o < f.hideDomList.length; o++) {
|
|
756
|
+
const L = document.querySelector(f.hideDomList[o]);
|
|
757
757
|
if (L) {
|
|
758
|
-
const B = a.get(
|
|
759
|
-
L.style.display = B || "", a.delete(
|
|
758
|
+
const B = a.get(f.hideDomList[o]);
|
|
759
|
+
L.style.display = B || "", a.delete(f.hideDomList[o]);
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
762
|
}, 0);
|
|
@@ -835,8 +835,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
835
835
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
836
836
|
},
|
|
837
837
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
838
|
-
setup(e, { emit:
|
|
839
|
-
const d =
|
|
838
|
+
setup(e, { emit: f }) {
|
|
839
|
+
const d = f, u = U(!0), C = () => {
|
|
840
840
|
u.value = !u.value, d("handleOpenOrClose", u.value);
|
|
841
841
|
}, g = () => {
|
|
842
842
|
d("handleReload");
|
|
@@ -908,7 +908,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
908
908
|
};
|
|
909
909
|
}
|
|
910
910
|
}), Wt = /* @__PURE__ */ oe(Kt, [["__scopeId", "data-v-de62f20a"]]), Jt = le(Wt), Gt = (e = {}) => {
|
|
911
|
-
const { formRef:
|
|
911
|
+
const { formRef: f, offsetBottom: d = 50, minHeight: u = 300 } = e, C = U(0);
|
|
912
912
|
let g = null, n = null, i = null, a = null, o = null;
|
|
913
913
|
const L = () => {
|
|
914
914
|
o && clearTimeout(o), o = setTimeout(() => {
|
|
@@ -916,12 +916,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
916
916
|
ve(() => {
|
|
917
917
|
const A = document.querySelector(".ant-table"), N = document.querySelector(".ant-pagination");
|
|
918
918
|
if (A) {
|
|
919
|
-
const _ = A.getBoundingClientRect().top, S = window.innerHeight,
|
|
919
|
+
const _ = Math.floor(A.getBoundingClientRect().top), S = window.innerHeight, m = N ? N.offsetHeight + 20 : 40;
|
|
920
920
|
console.log("offsetBottom", d);
|
|
921
|
-
const r =
|
|
922
|
-
console.log("paginationHeight",
|
|
923
|
-
let
|
|
924
|
-
console.log("windowHeight", S), console.log("tableOffsetTop", _), console.log("reservedSpace", r),
|
|
921
|
+
const r = m + d;
|
|
922
|
+
console.log("paginationHeight", m);
|
|
923
|
+
let h = S - _ - r;
|
|
924
|
+
console.log("windowHeight", S), console.log("tableOffsetTop", _), console.log("reservedSpace", r), h < u && (h = u), console.log("calculatedHeight", h), C.value = h;
|
|
925
925
|
}
|
|
926
926
|
});
|
|
927
927
|
});
|
|
@@ -970,8 +970,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
970
970
|
}, k = () => {
|
|
971
971
|
window.removeEventListener("resize", x), g && g.disconnect(), i && i.disconnect(), n && n.disconnect(), a && clearTimeout(a), o && clearTimeout(o);
|
|
972
972
|
};
|
|
973
|
-
return
|
|
974
|
-
() =>
|
|
973
|
+
return f && se(
|
|
974
|
+
() => f,
|
|
975
975
|
() => {
|
|
976
976
|
setTimeout(() => {
|
|
977
977
|
L();
|
|
@@ -996,7 +996,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
996
996
|
minHeight: {}
|
|
997
997
|
},
|
|
998
998
|
setup(e) {
|
|
999
|
-
const { isFullscreen:
|
|
999
|
+
const { isFullscreen: f } = nt(document.body), d = e, u = rt("PageContainerRef"), { calTableHeight: C, tableHeight: g } = Gt({
|
|
1000
1000
|
offsetBottom: d.offsetBottom || 20,
|
|
1001
1001
|
// 底部预留空间
|
|
1002
1002
|
minHeight: d.minHeight || 300
|
|
@@ -1016,8 +1016,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1016
1016
|
v("section", {
|
|
1017
1017
|
class: "list-page-box",
|
|
1018
1018
|
style: we({
|
|
1019
|
-
"--hb-list-table-height": s(
|
|
1020
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" : s(
|
|
1019
|
+
"--hb-list-table-height": s(f) ? n.value - 110 + "px" : n.value - d.offsetBottom + "px",
|
|
1020
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : s(f) ? n.value - 110 + "px" : n.value - d.offsetBottom + "px"
|
|
1021
1021
|
})
|
|
1022
1022
|
}, [
|
|
1023
1023
|
q(i.$slots, "default")
|
|
@@ -1056,31 +1056,31 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1056
1056
|
valueModifiers: {}
|
|
1057
1057
|
}),
|
|
1058
1058
|
emits: /* @__PURE__ */ Ie(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1059
|
-
setup(e, { emit:
|
|
1060
|
-
const d = e, u =
|
|
1059
|
+
setup(e, { emit: f }) {
|
|
1060
|
+
const d = e, u = f, C = ot(e, "value"), g = U(!1), n = U(""), i = U([]), a = U(), o = V(() => {
|
|
1061
1061
|
if (d.remoteSearch || !n.value) return d.options;
|
|
1062
|
-
const
|
|
1063
|
-
return d.options.filter((r) => r.label.toLowerCase().includes(
|
|
1064
|
-
}), L = V(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), B = V(() => o.value.length === 0 ? !1 : o.value.every((
|
|
1062
|
+
const m = n.value.toLowerCase();
|
|
1063
|
+
return d.options.filter((r) => r.label.toLowerCase().includes(m) || r.description?.toLowerCase().includes(m));
|
|
1064
|
+
}), L = V(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), B = V(() => o.value.length === 0 ? !1 : o.value.every((m) => i.value.includes(m.value))), c = V(() => {
|
|
1065
1065
|
if (o.value.length === 0) return !1;
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1066
|
+
const m = o.value.filter((r) => i.value.includes(r.value)).length;
|
|
1067
|
+
return m > 0 && m < o.value.length;
|
|
1068
1068
|
});
|
|
1069
1069
|
se(
|
|
1070
1070
|
() => C.value,
|
|
1071
|
-
(
|
|
1072
|
-
|
|
1071
|
+
(m) => {
|
|
1072
|
+
m ? i.value = Array.isArray(m) ? [...m] : [m] : i.value = [];
|
|
1073
1073
|
},
|
|
1074
1074
|
{ immediate: !0 }
|
|
1075
1075
|
), se(
|
|
1076
1076
|
() => d.searchValue,
|
|
1077
|
-
(
|
|
1078
|
-
d.remoteSearch &&
|
|
1077
|
+
(m) => {
|
|
1078
|
+
d.remoteSearch && m !== void 0 && (n.value = m);
|
|
1079
1079
|
},
|
|
1080
1080
|
{ immediate: !0 }
|
|
1081
1081
|
);
|
|
1082
|
-
const z = (
|
|
1083
|
-
|
|
1082
|
+
const z = (m) => {
|
|
1083
|
+
m && (g.value = m, x.value = [...i.value], n.value = "", setTimeout(() => {
|
|
1084
1084
|
if (a.value) {
|
|
1085
1085
|
const r = a.value.input || a.value.$el?.querySelector("input");
|
|
1086
1086
|
r && r.focus();
|
|
@@ -1089,34 +1089,34 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1089
1089
|
}, x = U([]), T = () => {
|
|
1090
1090
|
i.value = [...x.value], g.value = !1, u("cancel");
|
|
1091
1091
|
}, k = U([]), A = () => {
|
|
1092
|
-
const
|
|
1093
|
-
k.value = r, console.log(
|
|
1094
|
-
}, N = St((
|
|
1095
|
-
const r =
|
|
1092
|
+
const m = d.multiple ? i.value : i.value[0] || "", r = d.options.filter((h) => i.value.includes(h.value));
|
|
1093
|
+
k.value = r, console.log(m, r), x.value = [...i.value], C.value = m, u("update:value", m), u("change", m, r), u("confirm", m, r), g.value = !1;
|
|
1094
|
+
}, N = St((m) => {
|
|
1095
|
+
const r = m !== void 0 ? m : n.value;
|
|
1096
1096
|
d.remoteSearch && (u("search", r), u("update:searchValue", r));
|
|
1097
|
-
}, 300), _ = (
|
|
1097
|
+
}, 300), _ = (m) => {
|
|
1098
1098
|
if (d.multiple) {
|
|
1099
1099
|
const r = new Set(i.value);
|
|
1100
|
-
r.has(
|
|
1100
|
+
r.has(m.value) ? r.delete(m.value) : r.add(m.value), i.value = Array.from(r);
|
|
1101
1101
|
} else
|
|
1102
|
-
i.value = [
|
|
1103
|
-
}, S = (
|
|
1104
|
-
if (
|
|
1105
|
-
const
|
|
1102
|
+
i.value = [m.value], A();
|
|
1103
|
+
}, S = (m) => {
|
|
1104
|
+
if (m.target.checked) {
|
|
1105
|
+
const h = new Set(i.value);
|
|
1106
1106
|
o.value.forEach((p) => {
|
|
1107
|
-
|
|
1108
|
-
}), i.value = Array.from(
|
|
1107
|
+
h.add(p.value);
|
|
1108
|
+
}), i.value = Array.from(h);
|
|
1109
1109
|
} else {
|
|
1110
|
-
const
|
|
1111
|
-
i.value = i.value.filter((p) => !
|
|
1110
|
+
const h = new Set(o.value.map((p) => p.value));
|
|
1111
|
+
i.value = i.value.filter((p) => !h.has(p));
|
|
1112
1112
|
}
|
|
1113
1113
|
};
|
|
1114
|
-
return (
|
|
1115
|
-
const
|
|
1114
|
+
return (m, r) => {
|
|
1115
|
+
const h = R("a-tag"), p = R("a-input"), $ = R("a-checkbox"), Y = R("a-radio"), Q = R("a-button"), re = R("a-select");
|
|
1116
1116
|
return l(), F("div", ee({
|
|
1117
1117
|
class: "hb-lib-selector-wrapper",
|
|
1118
1118
|
style: { "--prefix-width": L.value }
|
|
1119
|
-
},
|
|
1119
|
+
}, m.$attrs), [
|
|
1120
1120
|
w(re, {
|
|
1121
1121
|
value: C.value,
|
|
1122
1122
|
"onUpdate:value": r[5] || (r[5] = (J) => C.value = J),
|
|
@@ -1136,7 +1136,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1136
1136
|
style: { width: "100%" }
|
|
1137
1137
|
}, {
|
|
1138
1138
|
tagRender: t(({ value: J, label: K, closable: ae, option: M }) => [
|
|
1139
|
-
w(
|
|
1139
|
+
w(h, {
|
|
1140
1140
|
class: "hb-lib-search-tag",
|
|
1141
1141
|
onClick: r[0] || (r[0] = () => z(!0))
|
|
1142
1142
|
}, {
|
|
@@ -1190,7 +1190,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1190
1190
|
])
|
|
1191
1191
|
], 10, al))), 128))
|
|
1192
1192
|
]),
|
|
1193
|
-
o.value.length === 0 ? (l(), F("div", il, y(
|
|
1193
|
+
o.value.length === 0 ? (l(), F("div", il, y(m.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : P("", !0),
|
|
1194
1194
|
e.multiple ? (l(), F("div", rl, [
|
|
1195
1195
|
w($, {
|
|
1196
1196
|
checked: B.value,
|
|
@@ -1198,7 +1198,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1198
1198
|
onChange: S
|
|
1199
1199
|
}, {
|
|
1200
1200
|
default: t(() => [
|
|
1201
|
-
I(y(
|
|
1201
|
+
I(y(m.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1202
1202
|
]),
|
|
1203
1203
|
_: 1
|
|
1204
1204
|
}, 8, ["checked", "indeterminate"]),
|
|
@@ -1208,7 +1208,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1208
1208
|
onClick: T
|
|
1209
1209
|
}, {
|
|
1210
1210
|
default: t(() => [
|
|
1211
|
-
I(y(
|
|
1211
|
+
I(y(m.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 1
|
|
1214
1214
|
}),
|
|
@@ -1218,7 +1218,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1218
1218
|
onClick: A
|
|
1219
1219
|
}, {
|
|
1220
1220
|
default: t(() => [
|
|
1221
|
-
I(y(
|
|
1221
|
+
I(y(m.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1222
1222
|
]),
|
|
1223
1223
|
_: 1
|
|
1224
1224
|
})
|
|
@@ -1231,7 +1231,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1231
1231
|
onClick: T
|
|
1232
1232
|
}, {
|
|
1233
1233
|
default: t(() => [
|
|
1234
|
-
I(y(
|
|
1234
|
+
I(y(m.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1235
1235
|
]),
|
|
1236
1236
|
_: 1
|
|
1237
1237
|
})
|
|
@@ -1257,40 +1257,40 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1257
1257
|
labelKey: { default: "label" }
|
|
1258
1258
|
},
|
|
1259
1259
|
emits: ["handleConfirm", "handleCancel"],
|
|
1260
|
-
setup(e, { expose:
|
|
1260
|
+
setup(e, { expose: f, emit: d }) {
|
|
1261
1261
|
const u = e, C = d, g = U(!1), n = U(""), i = U(), a = U(), o = U([]), L = U([]), B = U(), c = Se({
|
|
1262
1262
|
searchText: "",
|
|
1263
1263
|
searchedColumn: ""
|
|
1264
|
-
}), z = V(() => u.tableData.map((
|
|
1264
|
+
}), z = V(() => u.tableData.map((h) => (h.id = h.id || Math.random(), h))), x = V(() => u.tableColumn.map((h) => (h.customFilterDropdown && (h.onFilter = (p, $) => $[h.dataIndex].toString().toLowerCase().includes(p.toLowerCase()), h.onFilterDropdownVisibleChange = (p) => {
|
|
1265
1265
|
p && setTimeout(() => {
|
|
1266
1266
|
i.value?.focus();
|
|
1267
1267
|
}, 100);
|
|
1268
|
-
}), { ...
|
|
1269
|
-
let
|
|
1268
|
+
}), { ...h }))), T = () => {
|
|
1269
|
+
let h = "";
|
|
1270
1270
|
L.value.forEach((p) => {
|
|
1271
|
-
|
|
1272
|
-
}), n.value =
|
|
1271
|
+
h = h + p[u.labelKey] + ",";
|
|
1272
|
+
}), n.value = h.substring(0, h.length - 1), g.value = !1, C("handleConfirm", L.value);
|
|
1273
1273
|
}, k = () => {
|
|
1274
1274
|
g.value = !1;
|
|
1275
1275
|
}, A = () => {
|
|
1276
1276
|
g.value = !0, ve(() => {
|
|
1277
|
-
const
|
|
1278
|
-
|
|
1277
|
+
const h = B.value?.$el?.querySelector(".ant-table-body");
|
|
1278
|
+
h && (h.scrollTop = 0);
|
|
1279
1279
|
});
|
|
1280
1280
|
}, N = () => {
|
|
1281
1281
|
o.value = [], L.value = [];
|
|
1282
1282
|
}, _ = () => {
|
|
1283
1283
|
n.value = "", N();
|
|
1284
|
-
}, S = (
|
|
1285
|
-
p(), c.searchText =
|
|
1286
|
-
},
|
|
1287
|
-
|
|
1288
|
-
}, r = (
|
|
1289
|
-
o.value =
|
|
1284
|
+
}, S = (h, p, $) => {
|
|
1285
|
+
p(), c.searchText = h[0], c.searchedColumn = $;
|
|
1286
|
+
}, m = (h, p) => {
|
|
1287
|
+
h({ confirm: !0 }), c.searchText = "", p();
|
|
1288
|
+
}, r = (h, p) => {
|
|
1289
|
+
o.value = h, L.value = p;
|
|
1290
1290
|
};
|
|
1291
|
-
return
|
|
1291
|
+
return f({
|
|
1292
1292
|
resetInputVal: _
|
|
1293
|
-
}), (
|
|
1293
|
+
}), (h, p) => {
|
|
1294
1294
|
const $ = R("a-input"), Y = R("a-button"), Q = R("a-table"), re = R("a-modal");
|
|
1295
1295
|
return l(), F("div", {
|
|
1296
1296
|
class: "hb-lib-multipleSelectModal-box",
|
|
@@ -1302,7 +1302,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1302
1302
|
onClick: A,
|
|
1303
1303
|
value: n.value,
|
|
1304
1304
|
"onUpdate:value": p[0] || (p[0] = (J) => n.value = J),
|
|
1305
|
-
placeholder:
|
|
1305
|
+
placeholder: h.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1306
1306
|
}, {
|
|
1307
1307
|
addonAfter: t(() => [
|
|
1308
1308
|
w(s(Lt), { onClick: A })
|
|
@@ -1319,13 +1319,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1319
1319
|
footer: t(() => [
|
|
1320
1320
|
w(Y, { onClick: N }, {
|
|
1321
1321
|
default: t(() => [
|
|
1322
|
-
I(y(
|
|
1322
|
+
I(y(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1323
1323
|
]),
|
|
1324
1324
|
_: 1
|
|
1325
1325
|
}),
|
|
1326
1326
|
w(Y, { onClick: k }, {
|
|
1327
1327
|
default: t(() => [
|
|
1328
|
-
I(y(
|
|
1328
|
+
I(y(h.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 1
|
|
1331
1331
|
}),
|
|
@@ -1334,7 +1334,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1334
1334
|
onClick: T
|
|
1335
1335
|
}, {
|
|
1336
1336
|
default: t(() => [
|
|
1337
|
-
I(y(
|
|
1337
|
+
I(y(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1338
1338
|
]),
|
|
1339
1339
|
_: 1
|
|
1340
1340
|
})
|
|
@@ -1364,10 +1364,10 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1364
1364
|
w(Y, {
|
|
1365
1365
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1366
1366
|
type: "ghost",
|
|
1367
|
-
onClick: (b) =>
|
|
1367
|
+
onClick: (b) => m(M, ae)
|
|
1368
1368
|
}, {
|
|
1369
1369
|
default: t(() => [
|
|
1370
|
-
I(y(
|
|
1370
|
+
I(y(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 1
|
|
1373
1373
|
}, 8, ["onClick"]),
|
|
@@ -1377,7 +1377,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1377
1377
|
onClick: (b) => S(K, ae, ue.dataIndex)
|
|
1378
1378
|
}, {
|
|
1379
1379
|
default: t(() => [
|
|
1380
|
-
I(y(
|
|
1380
|
+
I(y(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1381
1381
|
]),
|
|
1382
1382
|
_: 1
|
|
1383
1383
|
}, 8, ["onClick"])
|
|
@@ -1424,7 +1424,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1424
1424
|
record: {},
|
|
1425
1425
|
buttonDisplaysQuantity: {}
|
|
1426
1426
|
},
|
|
1427
|
-
setup(e, { expose:
|
|
1427
|
+
setup(e, { expose: f }) {
|
|
1428
1428
|
const d = e, { t: u } = ce(), C = U(!1), g = U(!1), n = U(null), i = V(() => d.actions.filter((k) => k.condition !== void 0 ? k.condition : !0)), a = V(() => i.value.slice(0, d.buttonDisplaysQuantity)), o = V(() => L(i.value.slice(d.buttonDisplaysQuantity)));
|
|
1429
1429
|
function L(k) {
|
|
1430
1430
|
if (d.filterPermission)
|
|
@@ -1456,7 +1456,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1456
1456
|
title: u("hbLibComp.hbTableAct.secendConfirm"),
|
|
1457
1457
|
content: u("hbLibComp.hbTableAct.confirmContent")
|
|
1458
1458
|
});
|
|
1459
|
-
return
|
|
1459
|
+
return f({
|
|
1460
1460
|
ADropdown: et,
|
|
1461
1461
|
AMenu: Xe,
|
|
1462
1462
|
AMenuItem: Ze,
|
|
@@ -1466,7 +1466,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1466
1466
|
}), (k, A) => {
|
|
1467
1467
|
const N = R("a-divider"), _ = ct("has");
|
|
1468
1468
|
return l(), F("div", _l, [
|
|
1469
|
-
(l(!0), F(E, null, ne(a.value, (S,
|
|
1469
|
+
(l(!0), F(E, null, ne(a.value, (S, m) => (l(), F(E, { key: m }, [
|
|
1470
1470
|
S.needConfirm ? (l(), F(E, { key: 0 }, [
|
|
1471
1471
|
S.confirmType === "modal" ? (l(), F(E, { key: 0 }, [
|
|
1472
1472
|
ie((l(), F("a", {
|
|
@@ -1478,7 +1478,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1478
1478
|
], 8, Cl)), [
|
|
1479
1479
|
[_, S.permissionsTag || null]
|
|
1480
1480
|
]),
|
|
1481
|
-
o.value && o.value.length > 0 ||
|
|
1481
|
+
o.value && o.value.length > 0 || m !== a.value.length - 1 ? (l(), O(N, {
|
|
1482
1482
|
key: 0,
|
|
1483
1483
|
type: "vertical"
|
|
1484
1484
|
})) : P("", !0)
|
|
@@ -1496,14 +1496,14 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1496
1496
|
]),
|
|
1497
1497
|
_: 2
|
|
1498
1498
|
}, 1032, ["title", "onConfirm"]),
|
|
1499
|
-
o.value && o.value.length > 0 ||
|
|
1499
|
+
o.value && o.value.length > 0 || m !== a.value.length - 1 ? (l(), O(N, {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
type: "vertical"
|
|
1502
1502
|
})) : P("", !0)
|
|
1503
1503
|
], 64))
|
|
1504
1504
|
], 64)) : S.slot ? (l(), F(E, { key: 1 }, [
|
|
1505
1505
|
q(k.$slots, S.slot, { item: S }, void 0, !0),
|
|
1506
|
-
o.value && o.value.length > 0 ||
|
|
1506
|
+
o.value && o.value.length > 0 || m !== a.value.length - 1 ? (l(), O(N, {
|
|
1507
1507
|
key: 0,
|
|
1508
1508
|
type: "vertical"
|
|
1509
1509
|
})) : P("", !0)
|
|
@@ -1517,7 +1517,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1517
1517
|
], 8, kl)), [
|
|
1518
1518
|
[_, S.permissionsTag || null]
|
|
1519
1519
|
]),
|
|
1520
|
-
o.value && o.value.length > 0 ||
|
|
1520
|
+
o.value && o.value.length > 0 || m !== a.value.length - 1 ? ie((l(), O(N, {
|
|
1521
1521
|
key: 0,
|
|
1522
1522
|
type: "vertical"
|
|
1523
1523
|
}, null, 512)), [
|
|
@@ -1529,7 +1529,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1529
1529
|
overlay: t(() => [
|
|
1530
1530
|
w(s(Xe), null, {
|
|
1531
1531
|
default: t(() => [
|
|
1532
|
-
(l(!0), F(E, null, ne(o.value, (S,
|
|
1532
|
+
(l(!0), F(E, null, ne(o.value, (S, m) => ie((l(), O(s(Ze), { key: m }, {
|
|
1533
1533
|
default: t(() => [
|
|
1534
1534
|
S.needConfirm ? (l(), F(E, { key: 0 }, [
|
|
1535
1535
|
S.confirmType === "modal" ? ie((l(), F("a", {
|
|
@@ -1619,8 +1619,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1619
1619
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1620
1620
|
},
|
|
1621
1621
|
emits: ["change"],
|
|
1622
|
-
setup(e, { emit:
|
|
1623
|
-
const d =
|
|
1622
|
+
setup(e, { emit: f }) {
|
|
1623
|
+
const d = f, { t: u } = ce(), C = e, g = U([]), n = Be("HB_LIST_PAGE_CONTAINER"), { tableWidth: i } = Hl(V(() => C.columns));
|
|
1624
1624
|
se(
|
|
1625
1625
|
() => C.columns,
|
|
1626
1626
|
(c) => {
|
|
@@ -1692,11 +1692,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1692
1692
|
} : void 0,
|
|
1693
1693
|
c.$slots.bodyCell ? {
|
|
1694
1694
|
name: "bodyCell",
|
|
1695
|
-
fn: t(({ column: _, record: S, index:
|
|
1695
|
+
fn: t(({ column: _, record: S, index: m, text: r }) => [
|
|
1696
1696
|
q(c.$slots, "bodyCell", {
|
|
1697
1697
|
column: _,
|
|
1698
1698
|
record: S,
|
|
1699
|
-
index:
|
|
1699
|
+
index: m,
|
|
1700
1700
|
text: r
|
|
1701
1701
|
}, void 0, !0),
|
|
1702
1702
|
_ && _.needTooltip && !_.needCopy ? (l(), O(T, {
|
|
@@ -1773,11 +1773,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1773
1773
|
} : void 0,
|
|
1774
1774
|
c.$slots.expandIcon ? {
|
|
1775
1775
|
name: "expandIcon",
|
|
1776
|
-
fn: t(({ expanded: _, record: S, index:
|
|
1776
|
+
fn: t(({ expanded: _, record: S, index: m }) => [
|
|
1777
1777
|
q(c.$slots, "expandIcon", {
|
|
1778
1778
|
expanded: _,
|
|
1779
1779
|
record: S,
|
|
1780
|
-
index:
|
|
1780
|
+
index: m
|
|
1781
1781
|
}, void 0, !0)
|
|
1782
1782
|
]),
|
|
1783
1783
|
key: "5"
|
|
@@ -1848,13 +1848,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
},
|
|
1850
1850
|
emits: ["on-get-columns"],
|
|
1851
|
-
setup(e, { emit:
|
|
1852
|
-
const d =
|
|
1851
|
+
setup(e, { emit: f }) {
|
|
1852
|
+
const d = f, { t: u } = ce(), C = e, g = U([]), n = V(() => a.value.filter((m) => m.checked));
|
|
1853
1853
|
U([]);
|
|
1854
|
-
const i = U(!1), a = U([]), o = U(null), L = V(() => n.value.length > 0 && n.value.length === g.value.length), B = V(() => n.value.length > 0 && n.value.length < g.value.length), c = (
|
|
1855
|
-
o.value =
|
|
1856
|
-
}, z = (
|
|
1857
|
-
const r =
|
|
1854
|
+
const i = U(!1), a = U([]), o = U(null), L = V(() => n.value.length > 0 && n.value.length === g.value.length), B = V(() => n.value.length > 0 && n.value.length < g.value.length), c = (m) => {
|
|
1855
|
+
o.value = m.oldIndex;
|
|
1856
|
+
}, z = (m) => {
|
|
1857
|
+
const r = m.newIndex;
|
|
1858
1858
|
if (g.value.some((p) => p.fixed === "left" || p.fixed === "right" || p.fixed === !0)) {
|
|
1859
1859
|
const p = g.value.filter((Y) => Y.fixed === "left").length, $ = g.value.length - g.value.filter((Y) => Y.fixed === "right").length;
|
|
1860
1860
|
if ((p > 0 && r < p || $ < g.value.length && r >= $) && (ke.warning(u("hbLibComp.hbLibListTableColumsSet.errorTip")), o.value !== null)) {
|
|
@@ -1863,10 +1863,10 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
o.value = null;
|
|
1866
|
-
}, x = (
|
|
1867
|
-
|
|
1868
|
-
}, T = (
|
|
1869
|
-
r ?
|
|
1866
|
+
}, x = (m) => {
|
|
1867
|
+
m.target.checked ? a.value.forEach((h) => h.checked = !0) : a.value.forEach((h) => h.checked = !1);
|
|
1868
|
+
}, T = (m, r) => {
|
|
1869
|
+
r ? m.checked = !0 : m.checked = !1;
|
|
1870
1870
|
}, k = () => {
|
|
1871
1871
|
g.value = [...a.value], d("on-get-columns", g.value), i.value = !1;
|
|
1872
1872
|
}, A = () => {
|
|
@@ -1876,31 +1876,31 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1876
1876
|
value: r.dataIndex,
|
|
1877
1877
|
checked: r.checked || r.checked === void 0
|
|
1878
1878
|
})), a.value = [...g.value];
|
|
1879
|
-
let
|
|
1879
|
+
let m = [];
|
|
1880
1880
|
C.tableColumns.forEach(function(r) {
|
|
1881
|
-
|
|
1881
|
+
m.push(r.dataIndex);
|
|
1882
1882
|
});
|
|
1883
|
-
}, N = (
|
|
1884
|
-
delete
|
|
1885
|
-
const r = a.value.findIndex((
|
|
1883
|
+
}, N = (m) => m.children[0].text, _ = (m) => {
|
|
1884
|
+
delete m.fixed;
|
|
1885
|
+
const r = a.value.findIndex((h) => h.value === m.value);
|
|
1886
1886
|
if (r !== -1) {
|
|
1887
|
-
let
|
|
1887
|
+
let h = -1;
|
|
1888
1888
|
for (let p = 0; p < a.value.length; p++)
|
|
1889
|
-
a.value[p].fixed === "left" && (
|
|
1890
|
-
if (
|
|
1889
|
+
a.value[p].fixed === "left" && (h = p);
|
|
1890
|
+
if (h !== -1 && r !== h + 1) {
|
|
1891
1891
|
const p = [...a.value], [$] = p.splice(r, 1);
|
|
1892
|
-
p.splice(
|
|
1892
|
+
p.splice(h + 1, 0, $), a.value = p;
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
}, S = (
|
|
1896
|
-
const r = a.value.findIndex((
|
|
1895
|
+
}, S = (m) => {
|
|
1896
|
+
const r = a.value.findIndex((h) => h.value === m.value);
|
|
1897
1897
|
if (r !== -1) {
|
|
1898
|
-
let
|
|
1898
|
+
let h = -1;
|
|
1899
1899
|
for (let Q = 0; Q < a.value.length; Q++)
|
|
1900
|
-
a.value[Q].fixed === "left" && (
|
|
1900
|
+
a.value[Q].fixed === "left" && (h = Q);
|
|
1901
1901
|
const p = [...a.value], [$] = p.splice(r, 1);
|
|
1902
1902
|
$.fixed = "left";
|
|
1903
|
-
const Y =
|
|
1903
|
+
const Y = h === -1 ? 0 : h + 1;
|
|
1904
1904
|
p.splice(Y, 0, $), a.value = p;
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
@@ -1913,8 +1913,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1913
1913
|
immediate: !0,
|
|
1914
1914
|
deep: !0
|
|
1915
1915
|
}
|
|
1916
|
-
), (
|
|
1917
|
-
const
|
|
1916
|
+
), (m, r) => {
|
|
1917
|
+
const h = R("a-tooltip"), p = R("a-button");
|
|
1918
1918
|
return l(), F("div", Nl, [
|
|
1919
1919
|
w(s(vt), {
|
|
1920
1920
|
title: s(u)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
@@ -1951,7 +1951,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1951
1951
|
v("span", {
|
|
1952
1952
|
class: j($.fixed ? "drag-hide" : "drag-handle")
|
|
1953
1953
|
}, "⋮⋮", 2),
|
|
1954
|
-
$.fixed ? (l(), O(
|
|
1954
|
+
$.fixed ? (l(), O(h, { key: 0 }, {
|
|
1955
1955
|
title: t(() => [
|
|
1956
1956
|
I(y(s(u)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1957
1957
|
]),
|
|
@@ -1980,7 +1980,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1980
1980
|
]),
|
|
1981
1981
|
_: 2
|
|
1982
1982
|
}, 1024)) : P("", !0),
|
|
1983
|
-
$.fixed ? P("", !0) : (l(), O(
|
|
1983
|
+
$.fixed ? P("", !0) : (l(), O(h, { key: 1 }, {
|
|
1984
1984
|
title: t(() => [
|
|
1985
1985
|
I(y(s(u)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1986
1986
|
]),
|
|
@@ -2039,7 +2039,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2039
2039
|
])
|
|
2040
2040
|
]),
|
|
2041
2041
|
default: t(() => [
|
|
2042
|
-
w(
|
|
2042
|
+
w(h, {
|
|
2043
2043
|
title: s(u)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2044
2044
|
placement: "leftTop"
|
|
2045
2045
|
}, {
|
|
@@ -2105,7 +2105,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2105
2105
|
valueModifiers: {}
|
|
2106
2106
|
}),
|
|
2107
2107
|
emits: ["update:value"],
|
|
2108
|
-
setup(e, { expose:
|
|
2108
|
+
setup(e, { expose: f }) {
|
|
2109
2109
|
const d = e, u = ut(), C = V(() => {
|
|
2110
2110
|
const x = u, T = x.dropdownClassName;
|
|
2111
2111
|
return {
|
|
@@ -2115,7 +2115,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2115
2115
|
}), g = U(), n = ot(e, "value"), i = V(() => d.options ?? []), a = V(() => ({
|
|
2116
2116
|
maxWidth: typeof d.tooltipMaxWidth == "number" ? `${d.tooltipMaxWidth}px` : d.tooltipMaxWidth
|
|
2117
2117
|
})), o = (x) => x.tooltip ?? x.label, L = (x) => x.key ?? x.label, B = (x) => !!(d.enableTooltip && o(x));
|
|
2118
|
-
return
|
|
2118
|
+
return f({
|
|
2119
2119
|
focus: () => {
|
|
2120
2120
|
g.value?.focus?.();
|
|
2121
2121
|
},
|
|
@@ -2182,7 +2182,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2182
2182
|
beforeUpload: {},
|
|
2183
2183
|
beforeSubmit: {}
|
|
2184
2184
|
},
|
|
2185
|
-
setup(e, { expose:
|
|
2185
|
+
setup(e, { expose: f }) {
|
|
2186
2186
|
const { t: d } = ce(), u = U(), C = e, g = U(!1), n = Se({
|
|
2187
2187
|
fileList: [],
|
|
2188
2188
|
visible: !1
|
|
@@ -2206,7 +2206,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2206
2206
|
}, B = () => {
|
|
2207
2207
|
n.visible = !0;
|
|
2208
2208
|
};
|
|
2209
|
-
return
|
|
2209
|
+
return f({
|
|
2210
2210
|
handleCancel: a,
|
|
2211
2211
|
openModal: B,
|
|
2212
2212
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
@@ -2336,25 +2336,25 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2336
2336
|
__name: "copy",
|
|
2337
2337
|
props: po,
|
|
2338
2338
|
setup(e) {
|
|
2339
|
-
const
|
|
2339
|
+
const f = e, d = U();
|
|
2340
2340
|
pt(() => {
|
|
2341
|
-
d.value =
|
|
2341
|
+
d.value = f.data;
|
|
2342
2342
|
});
|
|
2343
2343
|
const u = V(() => {
|
|
2344
|
-
if (
|
|
2344
|
+
if (f.cpText) return f.cpText;
|
|
2345
2345
|
let g = "";
|
|
2346
|
-
if (
|
|
2347
|
-
if (Array.isArray(
|
|
2348
|
-
if (
|
|
2349
|
-
const n =
|
|
2350
|
-
g = n ? n[
|
|
2346
|
+
if (f.data)
|
|
2347
|
+
if (Array.isArray(f.data)) {
|
|
2348
|
+
if (f.K && f.V && f.L) {
|
|
2349
|
+
const n = f.data.find((i) => i?.[f.K] === f.V);
|
|
2350
|
+
g = n ? n[f.L] : "";
|
|
2351
2351
|
}
|
|
2352
2352
|
} else
|
|
2353
|
-
|
|
2353
|
+
f.K && (g = f.data[f.K]);
|
|
2354
2354
|
return g;
|
|
2355
2355
|
}), C = () => {
|
|
2356
2356
|
navigator.clipboard.writeText(u.value).then(() => {
|
|
2357
|
-
ke.success(
|
|
2357
|
+
ke.success(f.copySuccessTip);
|
|
2358
2358
|
}).catch(() => {
|
|
2359
2359
|
ke.error("复制失败");
|
|
2360
2360
|
});
|
|
@@ -2447,7 +2447,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2447
2447
|
__name: "index",
|
|
2448
2448
|
props: bo,
|
|
2449
2449
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2450
|
-
setup(e, { emit:
|
|
2450
|
+
setup(e, { emit: f }) {
|
|
2451
2451
|
const d = e, u = ht([]);
|
|
2452
2452
|
se(
|
|
2453
2453
|
() => d.dragList,
|
|
@@ -2459,7 +2459,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2459
2459
|
immediate: !0
|
|
2460
2460
|
}
|
|
2461
2461
|
);
|
|
2462
|
-
const C = Ue("drag"), g =
|
|
2462
|
+
const C = Ue("drag"), g = f, n = (L) => {
|
|
2463
2463
|
console.log("drag start", L), g("handleDragStart", L);
|
|
2464
2464
|
}, i = (L) => {
|
|
2465
2465
|
console.log("drag end", L), g("handleDragEnd", L);
|
|
@@ -2531,7 +2531,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2531
2531
|
__name: "sort",
|
|
2532
2532
|
props: _o,
|
|
2533
2533
|
emits: ["change"],
|
|
2534
|
-
setup(e, { expose:
|
|
2534
|
+
setup(e, { expose: f, emit: d }) {
|
|
2535
2535
|
const u = e, C = d, g = U([]), n = U("");
|
|
2536
2536
|
se(
|
|
2537
2537
|
() => u.menuItems,
|
|
@@ -2556,7 +2556,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2556
2556
|
orderBy: a.sort
|
|
2557
2557
|
}), C("change", n);
|
|
2558
2558
|
};
|
|
2559
|
-
return
|
|
2559
|
+
return f({
|
|
2560
2560
|
currentActiveItem: n
|
|
2561
2561
|
}), (a, o) => {
|
|
2562
2562
|
const L = R("a-menu-item"), B = R("a-menu"), c = R("a-dropdown");
|
|
@@ -2619,7 +2619,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2619
2619
|
getLogData: {}
|
|
2620
2620
|
},
|
|
2621
2621
|
emits: ["update:visible"],
|
|
2622
|
-
setup(e, { expose:
|
|
2622
|
+
setup(e, { expose: f, emit: d }) {
|
|
2623
2623
|
const { t: u } = ce(), C = e, g = [
|
|
2624
2624
|
{
|
|
2625
2625
|
title: u("hbLibComp.HbLogModal.operator"),
|
|
@@ -2680,11 +2680,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2680
2680
|
(k) => {
|
|
2681
2681
|
k && L();
|
|
2682
2682
|
}
|
|
2683
|
-
),
|
|
2683
|
+
), f({
|
|
2684
2684
|
close: c,
|
|
2685
2685
|
loading: a
|
|
2686
2686
|
}), (k, A) => {
|
|
2687
|
-
const N = R("a-tooltip"), _ = R("HbLibCopy"), S = R("a-table"),
|
|
2687
|
+
const N = R("a-tooltip"), _ = R("HbLibCopy"), S = R("a-table"), m = R("a-button"), r = R("a-modal");
|
|
2688
2688
|
return l(), F(E, null, [
|
|
2689
2689
|
w(r, {
|
|
2690
2690
|
visible: e.visible,
|
|
@@ -2694,7 +2694,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2694
2694
|
onCancel: c
|
|
2695
2695
|
}, {
|
|
2696
2696
|
footer: t(() => [
|
|
2697
|
-
w(
|
|
2697
|
+
w(m, { onClick: c }, {
|
|
2698
2698
|
default: t(() => [
|
|
2699
2699
|
I(y(s(u)("hbLibComp.HbLogModal.close")), 1)
|
|
2700
2700
|
]),
|
|
@@ -2712,36 +2712,36 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2712
2712
|
scroll: { y: e.scrollY },
|
|
2713
2713
|
onChange: B
|
|
2714
2714
|
}, Pe({
|
|
2715
|
-
bodyCell: t(({ column:
|
|
2716
|
-
|
|
2717
|
-
|
|
2715
|
+
bodyCell: t(({ column: h, record: p }) => [
|
|
2716
|
+
h && h.needTooltip ? (l(), F(E, { key: 0 }, [
|
|
2717
|
+
h.needTooltip ? (l(), O(N, { key: 0 }, {
|
|
2718
2718
|
title: t(() => [
|
|
2719
|
-
I(y(p[
|
|
2719
|
+
I(y(p[h.dataIndex]), 1)
|
|
2720
2720
|
]),
|
|
2721
2721
|
default: t(() => [
|
|
2722
|
-
I(" " + y(p[
|
|
2722
|
+
I(" " + y(p[h.dataIndex]), 1)
|
|
2723
2723
|
]),
|
|
2724
2724
|
_: 2
|
|
2725
2725
|
}, 1024)) : P("", !0)
|
|
2726
2726
|
], 64)) : P("", !0),
|
|
2727
|
-
|
|
2728
|
-
v("div", wo, y(p[
|
|
2727
|
+
h && h.needCopy ? (l(), F(E, { key: 1 }, [
|
|
2728
|
+
v("div", wo, y(p[h.dataIndex]), 1),
|
|
2729
2729
|
w(_, {
|
|
2730
|
-
"cp-text": p[
|
|
2730
|
+
"cp-text": p[h.dataIndex],
|
|
2731
2731
|
style: { position: "relative" }
|
|
2732
2732
|
}, null, 8, ["cp-text"])
|
|
2733
2733
|
], 64)) : P("", !0),
|
|
2734
|
-
|
|
2735
|
-
I(y(x(p[
|
|
2734
|
+
h && h.needFormat ? (l(), F(E, { key: 2 }, [
|
|
2735
|
+
I(y(x(p[h.dataIndex], h.operateTime)), 1)
|
|
2736
2736
|
], 64)) : P("", !0)
|
|
2737
2737
|
]),
|
|
2738
2738
|
_: 2
|
|
2739
2739
|
}, [
|
|
2740
2740
|
k.$slots.headerCell ? {
|
|
2741
2741
|
name: "headerCell",
|
|
2742
|
-
fn: t(({ column:
|
|
2743
|
-
q(k.$slots, "headerCell", { column:
|
|
2744
|
-
I(y(
|
|
2742
|
+
fn: t(({ column: h }) => [
|
|
2743
|
+
q(k.$slots, "headerCell", { column: h }, () => [
|
|
2744
|
+
I(y(h.title), 1)
|
|
2745
2745
|
], !0)
|
|
2746
2746
|
]),
|
|
2747
2747
|
key: "0"
|
|
@@ -2751,7 +2751,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2751
2751
|
_: 3
|
|
2752
2752
|
}, 8, ["visible", "title", "width", "height"]),
|
|
2753
2753
|
e.needBtn ? q(k.$slots, "default", { key: 0 }, () => [
|
|
2754
|
-
w(
|
|
2754
|
+
w(m, { onClick: z }, {
|
|
2755
2755
|
default: t(() => [
|
|
2756
2756
|
I(y(e.logBtnText), 1)
|
|
2757
2757
|
]),
|
|
@@ -2783,7 +2783,7 @@ const Mo = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2783
2783
|
};
|
|
2784
2784
|
var ye = { exports: {} }, Po = ye.exports, lt;
|
|
2785
2785
|
function Ro() {
|
|
2786
|
-
return lt || (lt = 1, (function(e,
|
|
2786
|
+
return lt || (lt = 1, (function(e, f) {
|
|
2787
2787
|
(function(d, u) {
|
|
2788
2788
|
e.exports = u(Fe);
|
|
2789
2789
|
})(Po, (function(d) {
|