@hb-hellotech/hb-ui 2.7.2-beta.8 → 2.8.0
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/App.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_card/index.d.ts +6 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
- package/dist/demo/FormItemSave.d.ts.map +1 -1
- package/dist/demo/HbModal.d.ts.map +1 -1
- package/dist/demo/Table.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +603 -577
- package/dist/hb_component_lib.umd.cjs +71 -71
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, inject as he, computed as F, reactive as Ve, ref as O, watch as se, onMounted as Fe, createElementBlock as w, openBlock as c, normalizeClass as X, unref as v, createVNode as $, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as E, createBlock as R, createCommentVNode as z, Fragment as ee, renderList as
|
|
2
|
+
import { defineComponent as te, inject as he, computed as F, reactive as Ve, ref as O, watch as se, onMounted as Fe, createElementBlock as w, openBlock as c, normalizeClass as X, unref as v, createVNode as $, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as E, createBlock as R, createCommentVNode as z, Fragment as ee, renderList as fe, resolveComponent as K, Transition as io, withDirectives as we, mergeProps as ce, createSlots as Ne, renderSlot as J, vShow as so, nextTick as Me, onUnmounted as je, useTemplateRef as ro, provide as Ue, normalizeStyle as de, mergeModels as rt, useModel as zt, withModifiers as Ge, resolveDirective as Vt, useAttrs as co, useSlots as uo, onBeforeUnmount as tt, watchEffect as jt, resolveDynamicComponent as Wt, shallowRef as fo, createStaticVNode as po, defineAsyncComponent as We, toValue as bo, createApp as mo } from "vue";
|
|
3
3
|
import Je from "vuedraggable";
|
|
4
4
|
import { Modal as ct, Button as dt, message as Ie, Tooltip as Xe, Switch as gt, Radio as yt, RadioGroup as _t, InputNumber as Lt, DatePicker as Ct, Checkbox as Qe, CheckboxGroup as wt, Select as ut, Input as kt, Col as ho, Row as vo, FormItem as St, Form as xt, SelectOption as ft, Popconfirm as at, MenuItem as Tt, Menu as Ft, Dropdown as Ht, Popover as go, BackTop as qt, Spin as yo } from "ant-design-vue";
|
|
5
5
|
import { useRoute as ht } from "vue-router";
|
|
@@ -39,7 +39,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: o }) {
|
|
42
|
-
const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40),
|
|
42
|
+
const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = F(() => a.title || i("hbLibComp.hbFormItemFilterModal.title")), h = o, f = vt("sfcm"), I = ht(), H = Ve({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), U = O(!1), V = O(600);
|
|
45
45
|
let k = [];
|
|
@@ -105,11 +105,11 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
105
105
|
...g(Z)
|
|
106
106
|
})), G = Be.map((Z) => ({
|
|
107
107
|
...g(Z)
|
|
108
|
-
})),
|
|
108
|
+
})), be = De.slice(0, B).map((Z) => ({
|
|
109
109
|
...g(Z)
|
|
110
110
|
}));
|
|
111
|
-
S.value = [...Q, ...G, ...
|
|
112
|
-
const
|
|
111
|
+
S.value = [...Q, ...G, ...be];
|
|
112
|
+
const me = S.value.map((Z) => Z.key), lt = k.map((Z) => Z.key).filter((Z) => !me.includes(Z));
|
|
113
113
|
return A.value = k.filter((Z) => lt.includes(Z.key)).map((Z) => ({
|
|
114
114
|
...g(Z),
|
|
115
115
|
active: !1
|
|
@@ -130,7 +130,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
130
130
|
} catch (M) {
|
|
131
131
|
console.warn("保存搜索配置失败:", M);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, pe = F(() => {
|
|
134
134
|
const M = S.value.filter((W) => !W.isFixed && !W.isLinked).length, N = S.value.filter((W) => W.isFixed || W.isLinked).length;
|
|
135
135
|
return M >= s.value - N;
|
|
136
136
|
});
|
|
@@ -160,7 +160,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
160
160
|
const N = S.value.findIndex((W) => W.key === M.key);
|
|
161
161
|
N !== -1 && (S.value.splice(N, 1), A.value.push({ ...M, active: !1 }));
|
|
162
162
|
}, ge = (M) => {
|
|
163
|
-
if (
|
|
163
|
+
if (pe.value) {
|
|
164
164
|
Ie.warning(`当前已经超过${i(s.value)}个可选数量,请先删除已显示条件`);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
@@ -186,7 +186,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
186
186
|
toOpenModal: Oe
|
|
187
187
|
}), Fe(() => {
|
|
188
188
|
}), (M, N) => (c(), w("div", {
|
|
189
|
-
class: X(v(
|
|
189
|
+
class: X(v(f).b())
|
|
190
190
|
}, [
|
|
191
191
|
$(v(ct), {
|
|
192
192
|
visible: U.value,
|
|
@@ -197,8 +197,8 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
197
197
|
}, {
|
|
198
198
|
title: b(() => [
|
|
199
199
|
m("div", {
|
|
200
|
-
class: X(v(
|
|
201
|
-
}, C(
|
|
200
|
+
class: X(v(f).e("title"))
|
|
201
|
+
}, C(p.value), 3)
|
|
202
202
|
]),
|
|
203
203
|
footer: b(() => [
|
|
204
204
|
$(v(dt), { onClick: xe }, {
|
|
@@ -219,18 +219,18 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
219
219
|
]),
|
|
220
220
|
default: b(() => [
|
|
221
221
|
m("section", {
|
|
222
|
-
class: X(v(
|
|
222
|
+
class: X(v(f).e("show"))
|
|
223
223
|
}, [
|
|
224
224
|
m("div", {
|
|
225
|
-
class: X(v(
|
|
225
|
+
class: X(v(f).e("show__title"))
|
|
226
226
|
}, [
|
|
227
227
|
m("span", {
|
|
228
|
-
class: X(v(
|
|
228
|
+
class: X(v(f).e("title__tip"))
|
|
229
229
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
230
230
|
m("span", null, C(M.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(s.value) + C(M.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
231
231
|
], 2),
|
|
232
232
|
m("div", {
|
|
233
|
-
class: X(v(
|
|
233
|
+
class: X(v(f).e("show__tag"))
|
|
234
234
|
}, [
|
|
235
235
|
$(v(Je), {
|
|
236
236
|
modelValue: S.value,
|
|
@@ -242,12 +242,12 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
242
242
|
}, {
|
|
243
243
|
item: b(({ element: W }) => [
|
|
244
244
|
m("div", {
|
|
245
|
-
class: X([v(
|
|
245
|
+
class: X([v(f).e("show__tag__item"), v(f).is("fixed", W.isFixed), v(f).is("linked", W.isLinked)])
|
|
246
246
|
}, [
|
|
247
247
|
E(C(W.label) + " ", 1),
|
|
248
248
|
!W.isFixed && !W.isLinked && e.list.length > 1 ? (c(), R(v(_o), {
|
|
249
249
|
key: 0,
|
|
250
|
-
class: X(v(
|
|
250
|
+
class: X(v(f).e("show__tag__item-close")),
|
|
251
251
|
onClick: (ie) => re(W)
|
|
252
252
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
253
253
|
], 2)
|
|
@@ -257,33 +257,33 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
257
257
|
], 2)
|
|
258
258
|
], 2),
|
|
259
259
|
m("section", {
|
|
260
|
-
class: X(v(
|
|
260
|
+
class: X(v(f).e("unshow"))
|
|
261
261
|
}, [
|
|
262
262
|
m("div", {
|
|
263
|
-
class: X(v(
|
|
263
|
+
class: X(v(f).e("show__title"))
|
|
264
264
|
}, [
|
|
265
265
|
m("span", {
|
|
266
|
-
class: X(v(
|
|
266
|
+
class: X(v(f).e("title__tip"))
|
|
267
267
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
268
268
|
], 2),
|
|
269
269
|
m("div", {
|
|
270
|
-
class: X(v(
|
|
270
|
+
class: X(v(f).e("unshow__tag"))
|
|
271
271
|
}, [
|
|
272
|
-
A.value.length > 0 ? (c(!0), w(ee, { key: 0 },
|
|
272
|
+
A.value.length > 0 ? (c(!0), w(ee, { key: 0 }, fe(A.value, (W) => (c(), w("div", {
|
|
273
273
|
key: W.key,
|
|
274
|
-
class: X([v(
|
|
274
|
+
class: X([v(f).e("unshow__tag__item"), v(f).is("fixed", W.isFixed || ""), v(f).is("linked", W.isLinked || "")]),
|
|
275
275
|
onMouseenter: (ie) => Ee(W),
|
|
276
276
|
onMouseleave: (ie) => oe(W)
|
|
277
277
|
}, [
|
|
278
278
|
E(C(W.label) + " ", 1),
|
|
279
279
|
W.active ? (c(), w("aside", {
|
|
280
280
|
key: 0,
|
|
281
|
-
class: X(v(
|
|
281
|
+
class: X(v(f).e("unshow__tag__item-add")),
|
|
282
282
|
onClick: (ie) => ge(W)
|
|
283
283
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Do)) : z("", !0)
|
|
284
284
|
], 42, Bo))), 128)) : (c(), w("div", {
|
|
285
285
|
key: 1,
|
|
286
|
-
class: X(v(
|
|
286
|
+
class: X(v(f).e("unshow__tag__empty"))
|
|
287
287
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
288
288
|
], 2)
|
|
289
289
|
], 2)
|
|
@@ -346,7 +346,7 @@ const Po = ne(Oo), Uo = {
|
|
|
346
346
|
"handleMenuClick"
|
|
347
347
|
],
|
|
348
348
|
setup(e, { expose: t, emit: o }) {
|
|
349
|
-
const n = he("globalCompConfig", {}), i = o, l = he("HB_LIST_PAGE_CONTAINER"), r = F(() => a.searchList || []), u = vt("form"), a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40),
|
|
349
|
+
const n = he("globalCompConfig", {}), i = o, l = he("HB_LIST_PAGE_CONTAINER"), r = F(() => a.searchList || []), u = vt("form"), a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = O("show"), h = F(() => a.needFooter || n.HbLibListForm?.needFooter), f = F(() => {
|
|
350
350
|
const _ = a.items.filter((q) => U(q));
|
|
351
351
|
return ke.cloneDeep(_);
|
|
352
352
|
}), I = (_) => _ !== void 0, H = (_) => typeof _ == "function", U = (_) => I(_.condition) ? H(_.condition) ? _.condition() : _.condition : !0, V = F(() => [...a.items].map((_) => ({
|
|
@@ -362,10 +362,10 @@ const Po = ne(Oo), Uo = {
|
|
|
362
362
|
}, L = (_) => {
|
|
363
363
|
i("handleMenuClick", _);
|
|
364
364
|
}, d = (_) => {
|
|
365
|
-
const q = a.items.filter((re) => !U(re)), ae = [..._, ...q],
|
|
365
|
+
const q = a.items.filter((re) => !U(re)), ae = [..._, ...q], pe = [
|
|
366
366
|
...new Map(ae.map((re) => [re.key, re])).values()
|
|
367
367
|
];
|
|
368
|
-
i("handleSfcmConfirm",
|
|
368
|
+
i("handleSfcmConfirm", pe);
|
|
369
369
|
};
|
|
370
370
|
se(
|
|
371
371
|
() => a.isFormExpanded,
|
|
@@ -391,8 +391,8 @@ const Po = ne(Oo), Uo = {
|
|
|
391
391
|
".hb-lib-form--container"
|
|
392
392
|
);
|
|
393
393
|
if (ae) {
|
|
394
|
-
const
|
|
395
|
-
q.style.height =
|
|
394
|
+
const pe = ae.offsetHeight;
|
|
395
|
+
q.style.height = pe + "px", q.style.overflow = "hidden", q.offsetHeight, requestAnimationFrame(() => {
|
|
396
396
|
q.style.height = "0";
|
|
397
397
|
});
|
|
398
398
|
}
|
|
@@ -420,7 +420,7 @@ const Po = ne(Oo), Uo = {
|
|
|
420
420
|
Button: dt,
|
|
421
421
|
Tooltip: Xe
|
|
422
422
|
}), (_, q) => {
|
|
423
|
-
const ae = K("a-button"),
|
|
423
|
+
const ae = K("a-button"), pe = K("a-tooltip"), re = K("a-menu-item"), ge = K("a-menu"), xe = K("a-dropdown"), Oe = K("HbLibFormItemFilterModal");
|
|
424
424
|
return c(), w(ee, null, [
|
|
425
425
|
$(io, {
|
|
426
426
|
name: "form-collapse",
|
|
@@ -442,10 +442,10 @@ const Po = ne(Oo), Uo = {
|
|
|
442
442
|
ref_key: "formRef",
|
|
443
443
|
ref: S,
|
|
444
444
|
model: e.formData,
|
|
445
|
-
class: ["hb-lib-form--container",
|
|
445
|
+
class: ["hb-lib-form--container", p.value == "show" ? "" : "hide"]
|
|
446
446
|
}), {
|
|
447
447
|
default: b(() => [
|
|
448
|
-
(c(!0), w(ee, null,
|
|
448
|
+
(c(!0), w(ee, null, fe(V.value, (j, Ee) => (c(), w(ee, { key: Ee }, [
|
|
449
449
|
j.condition ? (c(), R(v(St), ce({
|
|
450
450
|
key: 0,
|
|
451
451
|
ref_for: !0
|
|
@@ -478,7 +478,7 @@ const Po = ne(Oo), Uo = {
|
|
|
478
478
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
479
479
|
}, { ref_for: !0 }, j.attrs), {
|
|
480
480
|
default: b(() => [
|
|
481
|
-
(c(!0), w(ee, null,
|
|
481
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), R(v(ft), {
|
|
482
482
|
key: M,
|
|
483
483
|
value: oe.value
|
|
484
484
|
}, {
|
|
@@ -496,7 +496,7 @@ const Po = ne(Oo), Uo = {
|
|
|
496
496
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
497
497
|
}, { ref_for: !0 }, j.attrs), {
|
|
498
498
|
default: b(() => [
|
|
499
|
-
(c(!0), w(ee, null,
|
|
499
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), R(v(Qe), {
|
|
500
500
|
key: M,
|
|
501
501
|
value: oe.value
|
|
502
502
|
}, {
|
|
@@ -524,7 +524,7 @@ const Po = ne(Oo), Uo = {
|
|
|
524
524
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
525
525
|
}, { ref_for: !0 }, j.attrs), {
|
|
526
526
|
default: b(() => [
|
|
527
|
-
(c(!0), w(ee, null,
|
|
527
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), R(v(yt), {
|
|
528
528
|
key: M,
|
|
529
529
|
value: oe.value
|
|
530
530
|
}, {
|
|
@@ -584,7 +584,7 @@ const Po = ne(Oo), Uo = {
|
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}),
|
|
587
|
-
e.needFilter ? (c(), R(
|
|
587
|
+
e.needFilter ? (c(), R(pe, {
|
|
588
588
|
key: 0,
|
|
589
589
|
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
590
590
|
}, {
|
|
@@ -618,7 +618,7 @@ const Po = ne(Oo), Uo = {
|
|
|
618
618
|
overlay: b(() => [
|
|
619
619
|
$(ge, { onClick: L }, {
|
|
620
620
|
default: b(() => [
|
|
621
|
-
(c(!0), w(ee, null,
|
|
621
|
+
(c(!0), w(ee, null, fe(r.value, (j) => (c(), R(re, {
|
|
622
622
|
key: j.id
|
|
623
623
|
}, {
|
|
624
624
|
default: b(() => [
|
|
@@ -647,7 +647,7 @@ const Po = ne(Oo), Uo = {
|
|
|
647
647
|
})
|
|
648
648
|
]),
|
|
649
649
|
default: b(() => [
|
|
650
|
-
$(
|
|
650
|
+
$(pe, {
|
|
651
651
|
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
652
652
|
}, {
|
|
653
653
|
default: b(() => [...q[1] || (q[1] = [
|
|
@@ -700,7 +700,7 @@ const Po = ne(Oo), Uo = {
|
|
|
700
700
|
m("div", {
|
|
701
701
|
class: X(v(u).e("footer__right"))
|
|
702
702
|
}, [
|
|
703
|
-
|
|
703
|
+
p.value == "show" ? J(_.$slots, "form-footer-right", {
|
|
704
704
|
key: 0,
|
|
705
705
|
formRef: S.value
|
|
706
706
|
}, () => [
|
|
@@ -727,7 +727,7 @@ const Po = ne(Oo), Uo = {
|
|
|
727
727
|
]),
|
|
728
728
|
_: 1
|
|
729
729
|
}),
|
|
730
|
-
e.needFilter ? (c(), R(
|
|
730
|
+
e.needFilter ? (c(), R(pe, {
|
|
731
731
|
key: 0,
|
|
732
732
|
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
733
733
|
}, {
|
|
@@ -761,7 +761,7 @@ const Po = ne(Oo), Uo = {
|
|
|
761
761
|
overlay: b(() => [
|
|
762
762
|
$(ge, { onClick: L }, {
|
|
763
763
|
default: b(() => [
|
|
764
|
-
(c(!0), w(ee, null,
|
|
764
|
+
(c(!0), w(ee, null, fe(r.value, (j) => (c(), R(re, {
|
|
765
765
|
key: j.id
|
|
766
766
|
}, {
|
|
767
767
|
default: b(() => [
|
|
@@ -790,7 +790,7 @@ const Po = ne(Oo), Uo = {
|
|
|
790
790
|
})
|
|
791
791
|
]),
|
|
792
792
|
default: b(() => [
|
|
793
|
-
$(
|
|
793
|
+
$(pe, {
|
|
794
794
|
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
795
795
|
}, {
|
|
796
796
|
default: b(() => [...q[3] || (q[3] = [
|
|
@@ -843,14 +843,17 @@ const Po = ne(Oo), Uo = {
|
|
|
843
843
|
ref_key: "HbSfCmRef",
|
|
844
844
|
ref: g,
|
|
845
845
|
"show-number": s.value,
|
|
846
|
-
list:
|
|
846
|
+
list: f.value,
|
|
847
847
|
"save-key": k.value,
|
|
848
848
|
onConfirm: d
|
|
849
849
|
}, null, 8, ["show-number", "list", "save-key"])
|
|
850
850
|
], 64);
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
}), jo = /* @__PURE__ */ le(Vo, [["__scopeId", "data-v-01be3452"]]), Wo = ne(jo), qo = { class: "hb-lib-list-page-act-box" }, Yo = { class: "hb-lib-list-page-breadcrumb" }, Ko = {
|
|
853
|
+
}), jo = /* @__PURE__ */ le(Vo, [["__scopeId", "data-v-01be3452"]]), Wo = ne(jo), qo = { class: "hb-lib-list-page-act-box" }, Yo = { class: "hb-lib-list-page-breadcrumb" }, Ko = {
|
|
854
|
+
key: 0,
|
|
855
|
+
class: "hb-lib-list-page-breadcrumb-item-divider"
|
|
856
|
+
}, Go = { class: "hb-lib-list-page-act" }, Jo = {
|
|
854
857
|
key: 0,
|
|
855
858
|
t: "1757915338760",
|
|
856
859
|
class: "icon",
|
|
@@ -860,7 +863,7 @@ const Po = ne(Oo), Uo = {
|
|
|
860
863
|
"p-id": "22885",
|
|
861
864
|
width: "200",
|
|
862
865
|
height: "200"
|
|
863
|
-
},
|
|
866
|
+
}, Xo = {
|
|
864
867
|
key: 1,
|
|
865
868
|
t: "1757915360496",
|
|
866
869
|
class: "icon",
|
|
@@ -870,7 +873,7 @@ const Po = ne(Oo), Uo = {
|
|
|
870
873
|
"p-id": "23904",
|
|
871
874
|
width: "200",
|
|
872
875
|
height: "200"
|
|
873
|
-
},
|
|
876
|
+
}, Qo = /* @__PURE__ */ te({
|
|
874
877
|
name: "HbLibListPageAct",
|
|
875
878
|
__name: "HbListPageAct",
|
|
876
879
|
props: {
|
|
@@ -884,31 +887,46 @@ const Po = ne(Oo), Uo = {
|
|
|
884
887
|
(a) => {
|
|
885
888
|
let s = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
886
889
|
Array.isArray(o.hideDomList) && o.hideDomList.length ? s = [...o.hideDomList] : t.HbLibListPageAct?.hideDomList && (s = [...t.HbLibListPageAct.hideDomList]);
|
|
887
|
-
const
|
|
890
|
+
const p = /* @__PURE__ */ new Map();
|
|
888
891
|
setTimeout(a ? () => {
|
|
889
892
|
if (s?.length)
|
|
890
893
|
for (let h = 0; h < s.length; h++) {
|
|
891
|
-
const
|
|
892
|
-
|
|
894
|
+
const f = document.querySelector(
|
|
895
|
+
s[h]
|
|
896
|
+
);
|
|
897
|
+
f && (p.set(
|
|
898
|
+
s[h],
|
|
899
|
+
f.style.display
|
|
900
|
+
), f.style.display = "none");
|
|
893
901
|
}
|
|
894
902
|
} : () => {
|
|
895
903
|
if (s?.length)
|
|
896
904
|
for (let h = 0; h < s.length; h++) {
|
|
897
|
-
const
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
905
|
+
const f = document.querySelector(
|
|
906
|
+
s[h]
|
|
907
|
+
);
|
|
908
|
+
if (f) {
|
|
909
|
+
const I = p.get(
|
|
910
|
+
s[h]
|
|
911
|
+
);
|
|
912
|
+
f.style.display = I || "", p.delete(s[h]);
|
|
901
913
|
}
|
|
902
914
|
}
|
|
903
915
|
}, 0);
|
|
904
916
|
}
|
|
905
917
|
);
|
|
906
|
-
const l = O(
|
|
918
|
+
const l = O([]), r = () => {
|
|
907
919
|
const a = ht();
|
|
908
|
-
let s = localStorage.getItem(
|
|
920
|
+
let s = localStorage.getItem(
|
|
921
|
+
t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb"
|
|
922
|
+
) || "[]", p = a?.path;
|
|
909
923
|
if (s !== "[]") {
|
|
910
|
-
let h = JSON.parse(
|
|
911
|
-
|
|
924
|
+
let h = JSON.parse(
|
|
925
|
+
s
|
|
926
|
+
).find(
|
|
927
|
+
(f) => f.value === p
|
|
928
|
+
);
|
|
929
|
+
h && (l.value = h.label.split("-"));
|
|
912
930
|
}
|
|
913
931
|
};
|
|
914
932
|
Fe(() => {
|
|
@@ -922,11 +940,20 @@ const Po = ne(Oo), Uo = {
|
|
|
922
940
|
}), je(() => {
|
|
923
941
|
window.removeEventListener("keydown", u);
|
|
924
942
|
}), (a, s) => {
|
|
925
|
-
const
|
|
943
|
+
const p = K("a-tooltip");
|
|
926
944
|
return c(), w("section", qo, [
|
|
927
|
-
m("aside", Yo,
|
|
928
|
-
|
|
929
|
-
|
|
945
|
+
m("aside", Yo, [
|
|
946
|
+
(c(!0), w(ee, null, fe(l.value, (h, f) => (c(), w(ee, { key: h }, [
|
|
947
|
+
m("span", {
|
|
948
|
+
class: X(["hb-lib-list-page-breadcrumb-item", {
|
|
949
|
+
"last-item": f === l.value.length - 1
|
|
950
|
+
}])
|
|
951
|
+
}, C(h), 3),
|
|
952
|
+
f !== l.value.length - 1 ? (c(), w("span", Ko, " / ")) : z("", !0)
|
|
953
|
+
], 64))), 128))
|
|
954
|
+
]),
|
|
955
|
+
m("aside", Go, [
|
|
956
|
+
$(p, {
|
|
930
957
|
title: v(n) ? `${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
931
958
|
placement: "leftTop"
|
|
932
959
|
}, {
|
|
@@ -936,7 +963,7 @@ const Po = ne(Oo), Uo = {
|
|
|
936
963
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
937
964
|
(...h) => v(i) && v(i)(...h))
|
|
938
965
|
}, [
|
|
939
|
-
v(n) ? (c(), w("svg",
|
|
966
|
+
v(n) ? (c(), w("svg", Xo, [...s[2] || (s[2] = [
|
|
940
967
|
m("path", {
|
|
941
968
|
d: "M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",
|
|
942
969
|
fill: "#ff5000",
|
|
@@ -952,7 +979,7 @@ const Po = ne(Oo), Uo = {
|
|
|
952
979
|
fill: "#ff5000",
|
|
953
980
|
"p-id": "23907"
|
|
954
981
|
}, null, -1)
|
|
955
|
-
])])) : (c(), w("svg",
|
|
982
|
+
])])) : (c(), w("svg", Jo, [...s[1] || (s[1] = [
|
|
956
983
|
m("path", {
|
|
957
984
|
d: "M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",
|
|
958
985
|
fill: "#ff5000",
|
|
@@ -968,7 +995,7 @@ const Po = ne(Oo), Uo = {
|
|
|
968
995
|
]);
|
|
969
996
|
};
|
|
970
997
|
}
|
|
971
|
-
}),
|
|
998
|
+
}), Zo = /* @__PURE__ */ le(Qo, [["__scopeId", "data-v-a786e48a"]]), en = ne(Zo), tn = { class: "hb-lib-list-btns-box" }, on = { class: "hb-lib-list-btns-left" }, nn = { class: "hb-lib-list-btns-right" }, ln = /* @__PURE__ */ te({
|
|
972
999
|
name: "HbLibListBtnsAct",
|
|
973
1000
|
__name: "HbListBtns",
|
|
974
1001
|
props: {
|
|
@@ -989,11 +1016,11 @@ const Po = ne(Oo), Uo = {
|
|
|
989
1016
|
window.removeEventListener("keydown", r);
|
|
990
1017
|
}), (u, a) => {
|
|
991
1018
|
const s = K("a-tooltip");
|
|
992
|
-
return c(), w("section",
|
|
993
|
-
m("aside",
|
|
1019
|
+
return c(), w("section", tn, [
|
|
1020
|
+
m("aside", on, [
|
|
994
1021
|
J(u.$slots, "btnsLeft", {}, void 0, !0)
|
|
995
1022
|
]),
|
|
996
|
-
m("aside",
|
|
1023
|
+
m("aside", nn, [
|
|
997
1024
|
e.needReload ? (c(), R(s, {
|
|
998
1025
|
key: 0,
|
|
999
1026
|
title: u.$t("hbLibComp.hbListBtnsAct.reload")
|
|
@@ -1048,11 +1075,11 @@ const Po = ne(Oo), Uo = {
|
|
|
1048
1075
|
]);
|
|
1049
1076
|
};
|
|
1050
1077
|
}
|
|
1051
|
-
}),
|
|
1078
|
+
}), an = /* @__PURE__ */ le(ln, [["__scopeId", "data-v-40c1a746"]]), sn = ne(an), rn = (e = {}) => {
|
|
1052
1079
|
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: i = 100 } = e, l = O(0);
|
|
1053
|
-
let r = null, u = null, a = null, s = null,
|
|
1080
|
+
let r = null, u = null, a = null, s = null, p = null;
|
|
1054
1081
|
const h = () => {
|
|
1055
|
-
|
|
1082
|
+
p && clearTimeout(p), p = setTimeout(() => {
|
|
1056
1083
|
requestAnimationFrame(() => {
|
|
1057
1084
|
Me(() => {
|
|
1058
1085
|
const S = document.querySelector(".ant-table"), A = document.querySelector(".ant-pagination");
|
|
@@ -1064,7 +1091,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1064
1091
|
});
|
|
1065
1092
|
});
|
|
1066
1093
|
}, 100);
|
|
1067
|
-
},
|
|
1094
|
+
}, f = () => {
|
|
1068
1095
|
const S = document.querySelector(".ant-pagination");
|
|
1069
1096
|
if (S) {
|
|
1070
1097
|
const A = new MutationObserver(() => {
|
|
@@ -1103,10 +1130,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1103
1130
|
}, i);
|
|
1104
1131
|
}, V = () => {
|
|
1105
1132
|
window.addEventListener("resize", U), Me(() => {
|
|
1106
|
-
I(), H(), u =
|
|
1133
|
+
I(), H(), u = f();
|
|
1107
1134
|
});
|
|
1108
1135
|
}, k = () => {
|
|
1109
|
-
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s),
|
|
1136
|
+
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s), p && clearTimeout(p);
|
|
1110
1137
|
};
|
|
1111
1138
|
return t && se(
|
|
1112
1139
|
() => t,
|
|
@@ -1124,7 +1151,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1124
1151
|
tableHeight: l,
|
|
1125
1152
|
calTableHeight: h
|
|
1126
1153
|
};
|
|
1127
|
-
},
|
|
1154
|
+
}, cn = /* @__PURE__ */ te({
|
|
1128
1155
|
name: "HbLibListPageContainer",
|
|
1129
1156
|
__name: "HbListPageContainer",
|
|
1130
1157
|
props: {
|
|
@@ -1145,18 +1172,18 @@ const Po = ne(Oo), Uo = {
|
|
|
1145
1172
|
() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300
|
|
1146
1173
|
), a = F(
|
|
1147
1174
|
() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100
|
|
1148
|
-
), s = F(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1), { calTableHeight:
|
|
1175
|
+
), s = F(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1), { calTableHeight: p, tableHeight: h } = rn({
|
|
1149
1176
|
offsetBottom: r.value,
|
|
1150
1177
|
// 底部预留空间
|
|
1151
1178
|
minHeight: u.value,
|
|
1152
1179
|
// table最小高度 请勿随便修改!!
|
|
1153
1180
|
timeOut: a.value
|
|
1154
|
-
}),
|
|
1181
|
+
}), f = F(() => h.value);
|
|
1155
1182
|
return Ue("HB_LIST_PAGE_CONTAINER", {
|
|
1156
1183
|
PageContainerRef: i,
|
|
1157
1184
|
// 通过函数访问,
|
|
1158
1185
|
tableHeight: h,
|
|
1159
|
-
calTableHeight:
|
|
1186
|
+
calTableHeight: p
|
|
1160
1187
|
}), (I, H) => (c(), w("section", {
|
|
1161
1188
|
ref_key: "PageContainerRef",
|
|
1162
1189
|
ref: i,
|
|
@@ -1167,8 +1194,8 @@ const Po = ne(Oo), Uo = {
|
|
|
1167
1194
|
class: "list-page-box",
|
|
1168
1195
|
style: de(
|
|
1169
1196
|
s.value ? null : {
|
|
1170
|
-
"--hb-list-table-height": v(o) ?
|
|
1171
|
-
"--hb-list-ttable-height": e.tableData.length ? "" : v(o) ?
|
|
1197
|
+
"--hb-list-table-height": v(o) ? f.value - l.value + "px" : f.value - r.value + "px",
|
|
1198
|
+
"--hb-list-ttable-height": e.tableData.length ? "" : v(o) ? f.value - l.value + "px" : f.value - r.value + "px"
|
|
1172
1199
|
}
|
|
1173
1200
|
)
|
|
1174
1201
|
}, [
|
|
@@ -1176,19 +1203,19 @@ const Po = ne(Oo), Uo = {
|
|
|
1176
1203
|
], 4)
|
|
1177
1204
|
], 512));
|
|
1178
1205
|
}
|
|
1179
|
-
}),
|
|
1206
|
+
}), dn = ne(cn), un = { style: { "font-weight": "500" } }, fn = {
|
|
1180
1207
|
key: 0,
|
|
1181
1208
|
class: "hb-lib-search-tag__description"
|
|
1182
|
-
},
|
|
1209
|
+
}, pn = { class: "hb-lib-selector-dropdown" }, bn = { class: "hb-lib-selector-search" }, mn = { class: "hb-lib-selector-list" }, hn = ["onClick"], vn = { class: "hb-lib-option-content" }, gn = { class: "hb-lib-option-label" }, yn = {
|
|
1183
1210
|
key: 0,
|
|
1184
1211
|
class: "hb-lib-selector-empty"
|
|
1185
|
-
},
|
|
1212
|
+
}, _n = {
|
|
1186
1213
|
key: 1,
|
|
1187
1214
|
class: "hb-lib-selector-footer"
|
|
1188
|
-
},
|
|
1215
|
+
}, Ln = { class: "hb-lib-footer-buttons" }, Cn = {
|
|
1189
1216
|
key: 2,
|
|
1190
1217
|
class: "hb-lib-selector-footer"
|
|
1191
|
-
},
|
|
1218
|
+
}, wn = { class: "hb-lib-footer-buttons" }, kn = /* @__PURE__ */ te({
|
|
1192
1219
|
name: "HbLibListMultiSelect",
|
|
1193
1220
|
__name: "HbListMultiSelect",
|
|
1194
1221
|
props: /* @__PURE__ */ rt({
|
|
@@ -1215,9 +1242,9 @@ const Po = ne(Oo), Uo = {
|
|
|
1215
1242
|
return o.options.filter(
|
|
1216
1243
|
(T) => T.label.toLowerCase().includes(g) || T.description?.toLowerCase().includes(g)
|
|
1217
1244
|
);
|
|
1218
|
-
}),
|
|
1245
|
+
}), p = F(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), h = F(() => s.value.length === 0 ? !1 : s.value.every(
|
|
1219
1246
|
(g) => u.value.includes(g.value)
|
|
1220
|
-
)),
|
|
1247
|
+
)), f = F(() => {
|
|
1221
1248
|
if (s.value.length === 0) return !1;
|
|
1222
1249
|
const g = s.value.filter(
|
|
1223
1250
|
(T) => u.value.includes(T.value)
|
|
@@ -1279,7 +1306,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1279
1306
|
const L = K("a-tag"), d = K("a-input"), y = K("a-checkbox"), x = K("a-radio"), P = K("a-button"), Y = K("a-select");
|
|
1280
1307
|
return c(), w("div", ce({
|
|
1281
1308
|
class: "hb-lib-selector-wrapper",
|
|
1282
|
-
style: { "--prefix-width":
|
|
1309
|
+
style: { "--prefix-width": p.value }
|
|
1283
1310
|
}, g.$attrs), [
|
|
1284
1311
|
$(Y, {
|
|
1285
1312
|
value: i.value,
|
|
@@ -1305,15 +1332,15 @@ const Po = ne(Oo), Uo = {
|
|
|
1305
1332
|
onClick: T[0] || (T[0] = () => I(!0))
|
|
1306
1333
|
}, {
|
|
1307
1334
|
default: b(() => [
|
|
1308
|
-
m("span",
|
|
1309
|
-
q?.description ? (c(), w("span",
|
|
1335
|
+
m("span", un, C(_), 1),
|
|
1336
|
+
q?.description ? (c(), w("span", fn, " (" + C(q.description) + ") ", 1)) : z("", !0)
|
|
1310
1337
|
]),
|
|
1311
1338
|
_: 2
|
|
1312
1339
|
}, 1024)
|
|
1313
1340
|
]),
|
|
1314
1341
|
dropdownRender: b(() => [
|
|
1315
|
-
m("div",
|
|
1316
|
-
m("div",
|
|
1342
|
+
m("div", pn, [
|
|
1343
|
+
m("div", bn, [
|
|
1317
1344
|
$(d, {
|
|
1318
1345
|
ref_key: "searchInputRef",
|
|
1319
1346
|
ref: a,
|
|
@@ -1330,8 +1357,8 @@ const Po = ne(Oo), Uo = {
|
|
|
1330
1357
|
_: 1
|
|
1331
1358
|
}, 8, ["value"])
|
|
1332
1359
|
]),
|
|
1333
|
-
m("div",
|
|
1334
|
-
(c(!0), w(ee, null,
|
|
1360
|
+
m("div", mn, [
|
|
1361
|
+
(c(!0), w(ee, null, fe(s.value, (_) => (c(), w("div", {
|
|
1335
1362
|
key: _.value,
|
|
1336
1363
|
class: X([
|
|
1337
1364
|
"hb-lib-selector-option",
|
|
@@ -1356,16 +1383,16 @@ const Po = ne(Oo), Uo = {
|
|
|
1356
1383
|
onClick: T[4] || (T[4] = Ge(() => {
|
|
1357
1384
|
}, ["stop"]))
|
|
1358
1385
|
}, null, 8, ["checked", "onChange"])),
|
|
1359
|
-
m("div",
|
|
1360
|
-
m("div",
|
|
1386
|
+
m("div", vn, [
|
|
1387
|
+
m("div", gn, C(_.label), 1)
|
|
1361
1388
|
])
|
|
1362
|
-
], 10,
|
|
1389
|
+
], 10, hn))), 128))
|
|
1363
1390
|
]),
|
|
1364
|
-
s.value.length === 0 ? (c(), w("div",
|
|
1365
|
-
e.multiple ? (c(), w("div",
|
|
1391
|
+
s.value.length === 0 ? (c(), w("div", yn, C(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1392
|
+
e.multiple ? (c(), w("div", _n, [
|
|
1366
1393
|
$(y, {
|
|
1367
1394
|
checked: h.value,
|
|
1368
|
-
indeterminate:
|
|
1395
|
+
indeterminate: f.value,
|
|
1369
1396
|
onChange: D
|
|
1370
1397
|
}, {
|
|
1371
1398
|
default: b(() => [
|
|
@@ -1373,7 +1400,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1373
1400
|
]),
|
|
1374
1401
|
_: 1
|
|
1375
1402
|
}, 8, ["checked", "indeterminate"]),
|
|
1376
|
-
m("div",
|
|
1403
|
+
m("div", Ln, [
|
|
1377
1404
|
$(P, {
|
|
1378
1405
|
size: "small",
|
|
1379
1406
|
onClick: U
|
|
@@ -1396,9 +1423,9 @@ const Po = ne(Oo), Uo = {
|
|
|
1396
1423
|
_: 1
|
|
1397
1424
|
})
|
|
1398
1425
|
])
|
|
1399
|
-
])) : (c(), w("div",
|
|
1426
|
+
])) : (c(), w("div", Cn, [
|
|
1400
1427
|
T[6] || (T[6] = m("div", null, null, -1)),
|
|
1401
|
-
m("div",
|
|
1428
|
+
m("div", wn, [
|
|
1402
1429
|
$(P, {
|
|
1403
1430
|
size: "small",
|
|
1404
1431
|
onClick: U
|
|
@@ -1417,7 +1444,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1417
1444
|
], 16);
|
|
1418
1445
|
};
|
|
1419
1446
|
}
|
|
1420
|
-
}),
|
|
1447
|
+
}), Sn = /* @__PURE__ */ le(kn, [["__scopeId", "data-v-14ede517"]]), xn = ne(Sn), Tn = { class: "hb-lib-form-item-filter-modal-search" }, Fn = { class: "hb-lib-form-item-filter-modal-buttons" }, Hn = { key: 0 }, $n = /* @__PURE__ */ te({
|
|
1421
1448
|
name: "HbLibMutilpleSelectModal",
|
|
1422
1449
|
__name: "HbMutilpleSelectModal",
|
|
1423
1450
|
props: {
|
|
@@ -1431,7 +1458,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1431
1458
|
},
|
|
1432
1459
|
emits: ["handleConfirm", "handleCancel"],
|
|
1433
1460
|
setup(e, { expose: t, emit: o }) {
|
|
1434
|
-
const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]),
|
|
1461
|
+
const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]), p = O([]), h = O(), f = Ve({
|
|
1435
1462
|
searchText: "",
|
|
1436
1463
|
searchedColumn: ""
|
|
1437
1464
|
}), I = F(() => n.tableData.map((L) => (L.id = L.id || Math.random(), L))), H = F(() => n.tableColumn.map((L) => (L.customFilterDropdown && (L.onFilter = (d, y) => y[L.dataIndex].toString().toLowerCase().includes(d.toLowerCase()), L.onFilterDropdownVisibleChange = (d) => {
|
|
@@ -1440,9 +1467,9 @@ const Po = ne(Oo), Uo = {
|
|
|
1440
1467
|
}, 100);
|
|
1441
1468
|
}), { ...L }))), U = () => {
|
|
1442
1469
|
let L = "";
|
|
1443
|
-
|
|
1470
|
+
p.value.forEach((d) => {
|
|
1444
1471
|
L = L + d[n.labelKey] + ",";
|
|
1445
|
-
}), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm",
|
|
1472
|
+
}), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm", p.value);
|
|
1446
1473
|
}, V = () => {
|
|
1447
1474
|
l.value = !1;
|
|
1448
1475
|
}, k = () => {
|
|
@@ -1451,15 +1478,15 @@ const Po = ne(Oo), Uo = {
|
|
|
1451
1478
|
L && (L.scrollTop = 0);
|
|
1452
1479
|
});
|
|
1453
1480
|
}, S = () => {
|
|
1454
|
-
s.value = [],
|
|
1481
|
+
s.value = [], p.value = [];
|
|
1455
1482
|
}, A = () => {
|
|
1456
1483
|
r.value = "", S();
|
|
1457
1484
|
}, D = (L, d, y) => {
|
|
1458
|
-
d(),
|
|
1485
|
+
d(), f.searchText = L[0], f.searchedColumn = y;
|
|
1459
1486
|
}, g = (L, d) => {
|
|
1460
|
-
L({ confirm: !0 }),
|
|
1487
|
+
L({ confirm: !0 }), f.searchText = "", d();
|
|
1461
1488
|
}, T = (L, d) => {
|
|
1462
|
-
s.value = L,
|
|
1489
|
+
s.value = L, p.value = d;
|
|
1463
1490
|
};
|
|
1464
1491
|
return t({
|
|
1465
1492
|
resetInputVal: A
|
|
@@ -1522,8 +1549,8 @@ const Po = ne(Oo), Uo = {
|
|
|
1522
1549
|
rowKey: (_) => _[e.tableKey],
|
|
1523
1550
|
scroll: { y: e.tableHeight }
|
|
1524
1551
|
}, {
|
|
1525
|
-
customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: q, confirm: ae, clearFilters:
|
|
1526
|
-
m("div",
|
|
1552
|
+
customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: q, confirm: ae, clearFilters: pe, column: re }) => [
|
|
1553
|
+
m("div", Tn, [
|
|
1527
1554
|
$(y, {
|
|
1528
1555
|
ref_key: "searchInput",
|
|
1529
1556
|
ref: u,
|
|
@@ -1533,11 +1560,11 @@ const Po = ne(Oo), Uo = {
|
|
|
1533
1560
|
onChange: (ge) => _(ge.target.value ? [ge.target.value] : []),
|
|
1534
1561
|
onPressEnter: (ge) => D(q, ae, re.dataIndex)
|
|
1535
1562
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1536
|
-
m("section",
|
|
1563
|
+
m("section", Fn, [
|
|
1537
1564
|
$(x, {
|
|
1538
1565
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1539
1566
|
type: "ghost",
|
|
1540
|
-
onClick: (ge) => g(
|
|
1567
|
+
onClick: (ge) => g(pe, ae)
|
|
1541
1568
|
}, {
|
|
1542
1569
|
default: b(() => [
|
|
1543
1570
|
E(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
@@ -1563,10 +1590,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1563
1590
|
}, null, 8, ["style"])
|
|
1564
1591
|
]),
|
|
1565
1592
|
bodyCell: b(({ text: _, column: q }) => [
|
|
1566
|
-
|
|
1567
|
-
(c(!0), w(ee, null,
|
|
1568
|
-
ae.toLowerCase() ===
|
|
1569
|
-
key:
|
|
1593
|
+
f.searchText && f.searchedColumn === q.dataIndex ? (c(), w("span", Hn, [
|
|
1594
|
+
(c(!0), w(ee, null, fe(_.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (ae, pe) => (c(), w(ee, null, [
|
|
1595
|
+
ae.toLowerCase() === f.searchText.toLowerCase() ? (c(), w("mark", {
|
|
1596
|
+
key: pe,
|
|
1570
1597
|
class: "highlight"
|
|
1571
1598
|
}, C(ae), 1)) : (c(), w(ee, { key: 1 }, [
|
|
1572
1599
|
E(C(ae), 1)
|
|
@@ -1582,13 +1609,13 @@ const Po = ne(Oo), Uo = {
|
|
|
1582
1609
|
], 512);
|
|
1583
1610
|
};
|
|
1584
1611
|
}
|
|
1585
|
-
}),
|
|
1612
|
+
}), In = ne($n), Mn = { class: "hb-lib-table-act-box" }, Bn = ["onClick"], Dn = {
|
|
1586
1613
|
href: "javascript:;",
|
|
1587
1614
|
class: "hb-lib-table-main-action"
|
|
1588
|
-
},
|
|
1615
|
+
}, An = ["onClick"], On = {
|
|
1589
1616
|
href: "javascript:;",
|
|
1590
1617
|
class: "hb-lib-table-more-action"
|
|
1591
|
-
},
|
|
1618
|
+
}, Pn = ["onClick"], Un = { href: "javascript:;" }, En = ["onClick"], Rn = { class: "hb-lib-table-confirm-modal-content" }, Nn = /* @__PURE__ */ te({
|
|
1592
1619
|
name: "HbLibTableAct",
|
|
1593
1620
|
__name: "HbTableAct",
|
|
1594
1621
|
props: {
|
|
@@ -1598,14 +1625,14 @@ const Po = ne(Oo), Uo = {
|
|
|
1598
1625
|
buttonDisplaysQuantity: {}
|
|
1599
1626
|
},
|
|
1600
1627
|
setup(e, { expose: t }) {
|
|
1601
|
-
const o = e, { t: n } = ve(), i = O(!1), l = O(!1), r = O(null), u = O({}), a = (D) => !!D && (typeof D == "object" || typeof D == "function") && typeof D.then == "function", s = (D) => !!u.value[D.key],
|
|
1628
|
+
const o = e, { t: n } = ve(), i = O(!1), l = O(!1), r = O(null), u = O({}), a = (D) => !!D && (typeof D == "object" || typeof D == "function") && typeof D.then == "function", s = (D) => !!u.value[D.key], p = (D, g) => {
|
|
1602
1629
|
u.value = {
|
|
1603
1630
|
...u.value,
|
|
1604
1631
|
[D.key]: g
|
|
1605
1632
|
};
|
|
1606
1633
|
}, h = F(() => o.actions.filter(
|
|
1607
1634
|
(D) => D.condition !== void 0 ? D.condition : !0
|
|
1608
|
-
)),
|
|
1635
|
+
)), f = F(() => h.value.slice(0, o.buttonDisplaysQuantity)), I = F(() => H(
|
|
1609
1636
|
h.value.slice(o.buttonDisplaysQuantity)
|
|
1610
1637
|
));
|
|
1611
1638
|
function H(D) {
|
|
@@ -1623,8 +1650,8 @@ const Po = ne(Oo), Uo = {
|
|
|
1623
1650
|
const U = async (D) => {
|
|
1624
1651
|
if (D.needLoading) {
|
|
1625
1652
|
if (s(D)) return;
|
|
1626
|
-
|
|
1627
|
-
const g = () =>
|
|
1653
|
+
p(D, !0);
|
|
1654
|
+
const g = () => p(D, !1), T = D.handler.length >= 2;
|
|
1628
1655
|
try {
|
|
1629
1656
|
const L = D.handler(o.record, g);
|
|
1630
1657
|
a(L) ? (await L, g()) : T || g();
|
|
@@ -1662,8 +1689,8 @@ const Po = ne(Oo), Uo = {
|
|
|
1662
1689
|
DownOutlined: pt
|
|
1663
1690
|
}), (D, g) => {
|
|
1664
1691
|
const T = K("a-divider"), L = Vt("has");
|
|
1665
|
-
return c(), w("div",
|
|
1666
|
-
(c(!0), w(ee, null,
|
|
1692
|
+
return c(), w("div", Mn, [
|
|
1693
|
+
(c(!0), w(ee, null, fe(f.value, (d, y) => (c(), w(ee, { key: y }, [
|
|
1667
1694
|
d.needConfirm ? (c(), w(ee, { key: 0 }, [
|
|
1668
1695
|
d.confirmType === "modal" ? (c(), w(ee, { key: 0 }, [
|
|
1669
1696
|
we((c(), w("a", {
|
|
@@ -1672,10 +1699,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1672
1699
|
onClick: (x) => V(d)
|
|
1673
1700
|
}, [
|
|
1674
1701
|
E(C(d.label), 1)
|
|
1675
|
-
], 8,
|
|
1702
|
+
], 8, Bn)), [
|
|
1676
1703
|
[L, d.permissionsTag || null]
|
|
1677
1704
|
]),
|
|
1678
|
-
I.value && I.value.length > 0 || y !==
|
|
1705
|
+
I.value && I.value.length > 0 || y !== f.value.length - 1 ? (c(), R(T, {
|
|
1679
1706
|
key: 0,
|
|
1680
1707
|
type: "vertical"
|
|
1681
1708
|
})) : z("", !0)
|
|
@@ -1685,7 +1712,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1685
1712
|
onConfirm: (x) => U(d)
|
|
1686
1713
|
}, {
|
|
1687
1714
|
default: b(() => [
|
|
1688
|
-
we((c(), w("a",
|
|
1715
|
+
we((c(), w("a", Dn, [
|
|
1689
1716
|
E(C(d.label), 1)
|
|
1690
1717
|
])), [
|
|
1691
1718
|
[L, d.permissionsTag || null]
|
|
@@ -1693,18 +1720,16 @@ const Po = ne(Oo), Uo = {
|
|
|
1693
1720
|
]),
|
|
1694
1721
|
_: 2
|
|
1695
1722
|
}, 1032, ["title", "onConfirm"]),
|
|
1696
|
-
I.value && I.value.length > 0 || y !==
|
|
1723
|
+
I.value && I.value.length > 0 || y !== f.value.length - 1 ? (c(), R(T, {
|
|
1697
1724
|
key: 0,
|
|
1698
1725
|
type: "vertical"
|
|
1699
1726
|
})) : z("", !0)
|
|
1700
1727
|
], 64))
|
|
1701
|
-
], 64)) : d.slot ? (
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
})) : z("", !0)
|
|
1707
|
-
], 64)) : (c(), w(ee, { key: 2 }, [
|
|
1728
|
+
], 64)) : d.slot ? J(D.$slots, d.slot, {
|
|
1729
|
+
key: 1,
|
|
1730
|
+
item: d,
|
|
1731
|
+
haveMore: I.value && I.value.length > 0 || y !== f.value.length - 1
|
|
1732
|
+
}, void 0, !0) : (c(), w(ee, { key: 2 }, [
|
|
1708
1733
|
we((c(), w("a", {
|
|
1709
1734
|
href: "javascript:;",
|
|
1710
1735
|
class: X(["hb-lib-table-main-action", { "is-loading": s(d) }]),
|
|
@@ -1716,10 +1741,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1716
1741
|
spin: "",
|
|
1717
1742
|
class: "hb-lib-table-action-loading-icon"
|
|
1718
1743
|
})) : z("", !0)
|
|
1719
|
-
], 10,
|
|
1744
|
+
], 10, An)), [
|
|
1720
1745
|
[L, d.permissionsTag || null]
|
|
1721
1746
|
]),
|
|
1722
|
-
I.value && I.value.length > 0 || y !==
|
|
1747
|
+
I.value && I.value.length > 0 || y !== f.value.length - 1 ? we((c(), R(T, {
|
|
1723
1748
|
key: 0,
|
|
1724
1749
|
type: "vertical"
|
|
1725
1750
|
}, null, 512)), [
|
|
@@ -1731,7 +1756,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1731
1756
|
overlay: b(() => [
|
|
1732
1757
|
$(v(Ft), null, {
|
|
1733
1758
|
default: b(() => [
|
|
1734
|
-
(c(!0), w(ee, null,
|
|
1759
|
+
(c(!0), w(ee, null, fe(I.value, (d, y) => we((c(), R(v(Tt), { key: y }, {
|
|
1735
1760
|
default: b(() => [
|
|
1736
1761
|
d.needConfirm ? (c(), w(ee, { key: 0 }, [
|
|
1737
1762
|
d.confirmType === "modal" ? we((c(), w("a", {
|
|
@@ -1740,7 +1765,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1740
1765
|
onClick: (x) => V(d)
|
|
1741
1766
|
}, [
|
|
1742
1767
|
E(C(d.label), 1)
|
|
1743
|
-
], 8,
|
|
1768
|
+
], 8, Pn)), [
|
|
1744
1769
|
[
|
|
1745
1770
|
L,
|
|
1746
1771
|
d.permissionsTag || null
|
|
@@ -1751,7 +1776,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1751
1776
|
onConfirm: (x) => U(d)
|
|
1752
1777
|
}, {
|
|
1753
1778
|
default: b(() => [
|
|
1754
|
-
we((c(), w("a",
|
|
1779
|
+
we((c(), w("a", Un, [
|
|
1755
1780
|
E(C(d.label), 1)
|
|
1756
1781
|
])), [
|
|
1757
1782
|
[
|
|
@@ -1781,7 +1806,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1781
1806
|
spin: "",
|
|
1782
1807
|
class: "hb-lib-table-action-loading-icon"
|
|
1783
1808
|
})) : z("", !0)
|
|
1784
|
-
], 10,
|
|
1809
|
+
], 10, En)), [
|
|
1785
1810
|
[L, d.permissionsTag || null]
|
|
1786
1811
|
])
|
|
1787
1812
|
]),
|
|
@@ -1794,7 +1819,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1794
1819
|
})
|
|
1795
1820
|
]),
|
|
1796
1821
|
default: b(() => [
|
|
1797
|
-
m("a",
|
|
1822
|
+
m("a", On, [
|
|
1798
1823
|
E(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1799
1824
|
$(v(pt), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1800
1825
|
])
|
|
@@ -1809,62 +1834,62 @@ const Po = ne(Oo), Uo = {
|
|
|
1809
1834
|
onCancel: S
|
|
1810
1835
|
}, {
|
|
1811
1836
|
default: b(() => [
|
|
1812
|
-
m("p",
|
|
1837
|
+
m("p", Rn, C(A.value.content), 1)
|
|
1813
1838
|
]),
|
|
1814
1839
|
_: 1
|
|
1815
1840
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1816
1841
|
]);
|
|
1817
1842
|
};
|
|
1818
1843
|
}
|
|
1819
|
-
}),
|
|
1844
|
+
}), zn = /* @__PURE__ */ le(Nn, [["__scopeId", "data-v-ec0b7ef0"]]), Vn = ne(zn), It = (e) => ({ tableWidth: F(() => {
|
|
1820
1845
|
const o = Array.isArray(e) ? e : e.value;
|
|
1821
1846
|
return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, i) => n + i, 0);
|
|
1822
1847
|
}) });
|
|
1823
|
-
var
|
|
1824
|
-
function
|
|
1825
|
-
var t =
|
|
1848
|
+
var jn = typeof global == "object" && global && global.Object === Object && global, Wn = typeof self == "object" && self && self.Object === Object && self, Gt = jn || Wn || Function("return this")(), et = Gt.Symbol, Jt = Object.prototype, qn = Jt.hasOwnProperty, Yn = Jt.toString, Re = et ? et.toStringTag : void 0;
|
|
1849
|
+
function Kn(e) {
|
|
1850
|
+
var t = qn.call(e, Re), o = e[Re];
|
|
1826
1851
|
try {
|
|
1827
1852
|
e[Re] = void 0;
|
|
1828
1853
|
var n = !0;
|
|
1829
1854
|
} catch {
|
|
1830
1855
|
}
|
|
1831
|
-
var i =
|
|
1856
|
+
var i = Yn.call(e);
|
|
1832
1857
|
return n && (t ? e[Re] = o : delete e[Re]), i;
|
|
1833
1858
|
}
|
|
1834
|
-
var
|
|
1835
|
-
function
|
|
1836
|
-
return
|
|
1837
|
-
}
|
|
1838
|
-
var Xn = "[object Null]", Qn = "[object Undefined]", Mt = et ? et.toStringTag : void 0;
|
|
1839
|
-
function Zn(e) {
|
|
1840
|
-
return e == null ? e === void 0 ? Qn : Xn : Mt && Mt in Object(e) ? Yn(e) : Jn(e);
|
|
1859
|
+
var Gn = Object.prototype, Jn = Gn.toString;
|
|
1860
|
+
function Xn(e) {
|
|
1861
|
+
return Jn.call(e);
|
|
1841
1862
|
}
|
|
1863
|
+
var Qn = "[object Null]", Zn = "[object Undefined]", Mt = et ? et.toStringTag : void 0;
|
|
1842
1864
|
function el(e) {
|
|
1865
|
+
return e == null ? e === void 0 ? Zn : Qn : Mt && Mt in Object(e) ? Kn(e) : Xn(e);
|
|
1866
|
+
}
|
|
1867
|
+
function tl(e) {
|
|
1843
1868
|
return e != null && typeof e == "object";
|
|
1844
1869
|
}
|
|
1845
|
-
var
|
|
1846
|
-
function
|
|
1847
|
-
return typeof e == "symbol" ||
|
|
1870
|
+
var ol = "[object Symbol]";
|
|
1871
|
+
function nl(e) {
|
|
1872
|
+
return typeof e == "symbol" || tl(e) && el(e) == ol;
|
|
1848
1873
|
}
|
|
1849
|
-
var
|
|
1850
|
-
function
|
|
1851
|
-
for (var t = e.length; t-- &&
|
|
1874
|
+
var ll = /\s/;
|
|
1875
|
+
function al(e) {
|
|
1876
|
+
for (var t = e.length; t-- && ll.test(e.charAt(t)); )
|
|
1852
1877
|
;
|
|
1853
1878
|
return t;
|
|
1854
1879
|
}
|
|
1855
|
-
var
|
|
1856
|
-
function
|
|
1857
|
-
return e && e.slice(0,
|
|
1880
|
+
var il = /^\s+/;
|
|
1881
|
+
function sl(e) {
|
|
1882
|
+
return e && e.slice(0, al(e) + 1).replace(il, "");
|
|
1858
1883
|
}
|
|
1859
1884
|
function bt(e) {
|
|
1860
1885
|
var t = typeof e;
|
|
1861
1886
|
return e != null && (t == "object" || t == "function");
|
|
1862
1887
|
}
|
|
1863
|
-
var Bt = NaN,
|
|
1888
|
+
var Bt = NaN, rl = /^[-+]0x[0-9a-f]+$/i, cl = /^0b[01]+$/i, dl = /^0o[0-7]+$/i, ul = parseInt;
|
|
1864
1889
|
function Dt(e) {
|
|
1865
1890
|
if (typeof e == "number")
|
|
1866
1891
|
return e;
|
|
1867
|
-
if (
|
|
1892
|
+
if (nl(e))
|
|
1868
1893
|
return Bt;
|
|
1869
1894
|
if (bt(e)) {
|
|
1870
1895
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1872,28 +1897,28 @@ function Dt(e) {
|
|
|
1872
1897
|
}
|
|
1873
1898
|
if (typeof e != "string")
|
|
1874
1899
|
return e === 0 ? e : +e;
|
|
1875
|
-
e =
|
|
1876
|
-
var o =
|
|
1877
|
-
return o ||
|
|
1900
|
+
e = sl(e);
|
|
1901
|
+
var o = cl.test(e);
|
|
1902
|
+
return o || dl.test(e) ? ul(e.slice(2), o ? 2 : 8) : rl.test(e) ? Bt : +e;
|
|
1878
1903
|
}
|
|
1879
1904
|
var it = function() {
|
|
1880
1905
|
return Gt.Date.now();
|
|
1881
|
-
},
|
|
1906
|
+
}, fl = "Expected a function", pl = Math.max, bl = Math.min;
|
|
1882
1907
|
function Xt(e, t, o) {
|
|
1883
|
-
var n, i, l, r, u, a, s = 0,
|
|
1908
|
+
var n, i, l, r, u, a, s = 0, p = !1, h = !1, f = !0;
|
|
1884
1909
|
if (typeof e != "function")
|
|
1885
|
-
throw new TypeError(
|
|
1886
|
-
t = Dt(t) || 0, bt(o) && (
|
|
1910
|
+
throw new TypeError(fl);
|
|
1911
|
+
t = Dt(t) || 0, bt(o) && (p = !!o.leading, h = "maxWait" in o, l = h ? pl(Dt(o.maxWait) || 0, t) : l, f = "trailing" in o ? !!o.trailing : f);
|
|
1887
1912
|
function I(T) {
|
|
1888
1913
|
var L = n, d = i;
|
|
1889
1914
|
return n = i = void 0, s = T, r = e.apply(d, L), r;
|
|
1890
1915
|
}
|
|
1891
1916
|
function H(T) {
|
|
1892
|
-
return s = T, u = setTimeout(k, t),
|
|
1917
|
+
return s = T, u = setTimeout(k, t), p ? I(T) : r;
|
|
1893
1918
|
}
|
|
1894
1919
|
function U(T) {
|
|
1895
1920
|
var L = T - a, d = T - s, y = t - L;
|
|
1896
|
-
return h ?
|
|
1921
|
+
return h ? bl(y, l - d) : y;
|
|
1897
1922
|
}
|
|
1898
1923
|
function V(T) {
|
|
1899
1924
|
var L = T - a, d = T - s;
|
|
@@ -1906,7 +1931,7 @@ function Xt(e, t, o) {
|
|
|
1906
1931
|
u = setTimeout(k, U(T));
|
|
1907
1932
|
}
|
|
1908
1933
|
function S(T) {
|
|
1909
|
-
return u = void 0,
|
|
1934
|
+
return u = void 0, f && n ? I(T) : (n = i = void 0, r);
|
|
1910
1935
|
}
|
|
1911
1936
|
function A() {
|
|
1912
1937
|
u !== void 0 && clearTimeout(u), s = 0, n = a = i = u = void 0;
|
|
@@ -1926,10 +1951,10 @@ function Xt(e, t, o) {
|
|
|
1926
1951
|
}
|
|
1927
1952
|
return g.cancel = A, g.flush = D, g;
|
|
1928
1953
|
}
|
|
1929
|
-
const
|
|
1954
|
+
const ml = {
|
|
1930
1955
|
key: 0,
|
|
1931
1956
|
class: "hb-lib-list-table-act"
|
|
1932
|
-
},
|
|
1957
|
+
}, hl = { class: "empty-container" }, vl = { key: 1 }, gl = { key: 2 }, yl = /* @__PURE__ */ te({
|
|
1933
1958
|
name: "HbLibListTable",
|
|
1934
1959
|
__name: "HbListTable",
|
|
1935
1960
|
props: {
|
|
@@ -1941,7 +1966,7 @@ const bl = {
|
|
|
1941
1966
|
},
|
|
1942
1967
|
emits: ["change", "resizeCol"],
|
|
1943
1968
|
setup(e, { emit: t }) {
|
|
1944
|
-
const o = he("globalCompConfig", {}), n = t, { t: i } = ve(), l = e, r = O([]), u = he("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = It(r), s = O(a.value),
|
|
1969
|
+
const o = he("globalCompConfig", {}), n = t, { t: i } = ve(), l = e, r = O([]), u = he("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = It(r), s = O(a.value), p = F(() => l.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1945
1970
|
se(
|
|
1946
1971
|
() => l.columns,
|
|
1947
1972
|
(k) => {
|
|
@@ -1974,7 +1999,7 @@ const bl = {
|
|
|
1974
1999
|
);
|
|
1975
2000
|
const h = Xt(() => {
|
|
1976
2001
|
n("resizeCol", r.value);
|
|
1977
|
-
}, o.listTable?.colSaveTimeOut || 800),
|
|
2002
|
+
}, o.listTable?.colSaveTimeOut || 800), f = (k, S) => {
|
|
1978
2003
|
if (S) {
|
|
1979
2004
|
const A = typeof k == "string" ? parseInt(k, 10) : k;
|
|
1980
2005
|
S.width = isNaN(A) ? o.listTable?.defaultColWidth || 150 : A, Me(() => {
|
|
@@ -1992,7 +2017,7 @@ const bl = {
|
|
|
1992
2017
|
"--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
|
|
1993
2018
|
})
|
|
1994
2019
|
}, [
|
|
1995
|
-
k.$slots.tableActLeft ? (c(), w("section",
|
|
2020
|
+
k.$slots.tableActLeft ? (c(), w("section", ml, [
|
|
1996
2021
|
J(k.$slots, "tableActLeft", {}, void 0, !0),
|
|
1997
2022
|
J(k.$slots, "tableActRight", {}, void 0, !0)
|
|
1998
2023
|
])) : z("", !0),
|
|
@@ -2000,14 +2025,14 @@ const bl = {
|
|
|
2000
2025
|
bordered: "",
|
|
2001
2026
|
columns: r.value,
|
|
2002
2027
|
"table-layout": "fixed",
|
|
2003
|
-
scroll:
|
|
2028
|
+
scroll: p.value ? {
|
|
2004
2029
|
x: s.value
|
|
2005
2030
|
} : { x: s.value, y: v(u).tableHeight },
|
|
2006
|
-
onResizeColumn:
|
|
2031
|
+
onResizeColumn: f,
|
|
2007
2032
|
onChange: I
|
|
2008
2033
|
}), Ne({
|
|
2009
2034
|
emptyText: b(() => [
|
|
2010
|
-
m("div",
|
|
2035
|
+
m("div", hl, [
|
|
2011
2036
|
$(A, {
|
|
2012
2037
|
description: v(i)("hbLibComp.hbListTable.noData")
|
|
2013
2038
|
}, null, 8, ["description"])
|
|
@@ -2047,14 +2072,14 @@ const bl = {
|
|
|
2047
2072
|
E(" " + C(y[d.dataIndex]), 1)
|
|
2048
2073
|
]),
|
|
2049
2074
|
_: 2
|
|
2050
|
-
}, 1032, ["placement"])) : d && d.needCopy && !d.needTooltip ? (c(), w("div",
|
|
2075
|
+
}, 1032, ["placement"])) : d && d.needCopy && !d.needTooltip ? (c(), w("div", vl, [
|
|
2051
2076
|
E(C(y[d.dataIndex]) + " ", 1),
|
|
2052
2077
|
$(g, {
|
|
2053
2078
|
"cp-text": y[d.dataIndex],
|
|
2054
2079
|
style: { position: "relative" }
|
|
2055
2080
|
}, null, 8, ["cp-text"])
|
|
2056
2081
|
])) : z("", !0),
|
|
2057
|
-
d && d.needTooltip && d.needCopy ? (c(), w("div",
|
|
2082
|
+
d && d.needTooltip && d.needCopy ? (c(), w("div", gl, [
|
|
2058
2083
|
$(D, { placement: e.tooltipPlacement }, {
|
|
2059
2084
|
title: b(() => [
|
|
2060
2085
|
E(C(y[d.dataIndex]), 1)
|
|
@@ -2153,16 +2178,16 @@ const bl = {
|
|
|
2153
2178
|
], 6);
|
|
2154
2179
|
};
|
|
2155
2180
|
}
|
|
2156
|
-
}),
|
|
2181
|
+
}), _l = /* @__PURE__ */ le(yl, [["__scopeId", "data-v-66578d50"]]), Ll = ne(_l), Cl = { class: "hb-lib-table-setting-box" }, wl = {
|
|
2157
2182
|
key: 0,
|
|
2158
2183
|
class: "hb-lib-table-drag-item"
|
|
2159
|
-
},
|
|
2184
|
+
}, kl = {
|
|
2160
2185
|
key: 0,
|
|
2161
2186
|
class: "hb-lib-table-drag-item-act"
|
|
2162
|
-
},
|
|
2187
|
+
}, Sl = ["onClick"], xl = ["onClick"], Tl = { class: "hb-lib-table-set-btn-group" }, Fl = {
|
|
2163
2188
|
class: "select-all-container",
|
|
2164
2189
|
style: { "margin-right": "10px" }
|
|
2165
|
-
},
|
|
2190
|
+
}, Hl = /* @__PURE__ */ te({
|
|
2166
2191
|
name: "HbLibTableColumnSet",
|
|
2167
2192
|
__name: "HbTableColumnSet",
|
|
2168
2193
|
props: {
|
|
@@ -2197,7 +2222,7 @@ const bl = {
|
|
|
2197
2222
|
setup(e, { emit: t }) {
|
|
2198
2223
|
const o = t, { t: n } = ve(), i = e, l = O([]), r = F(() => a.value.filter((d) => d.checked));
|
|
2199
2224
|
O([]);
|
|
2200
|
-
const u = O(!1), a = O([]), s = O(null),
|
|
2225
|
+
const u = O(!1), a = O([]), s = O(null), p = F(() => r.value.length > 0 && r.value.length === l.value.length), h = F(() => r.value.length > 0 && r.value.length < l.value.length), f = (d) => {
|
|
2201
2226
|
s.value = d.oldIndex;
|
|
2202
2227
|
}, I = (d) => {
|
|
2203
2228
|
const y = d.newIndex;
|
|
@@ -2285,7 +2310,7 @@ const bl = {
|
|
|
2285
2310
|
}
|
|
2286
2311
|
), (d, y) => {
|
|
2287
2312
|
const x = K("a-tooltip"), P = K("a-button");
|
|
2288
|
-
return c(), w("div",
|
|
2313
|
+
return c(), w("div", Cl, [
|
|
2289
2314
|
$(v(go), {
|
|
2290
2315
|
visible: u.value,
|
|
2291
2316
|
"onUpdate:visible": y[1] || (y[1] = (Y) => u.value = Y),
|
|
@@ -2303,11 +2328,11 @@ const bl = {
|
|
|
2303
2328
|
"ghost-class": "ghost",
|
|
2304
2329
|
animation: "200",
|
|
2305
2330
|
handle: ".drag-handle",
|
|
2306
|
-
onStart:
|
|
2331
|
+
onStart: f,
|
|
2307
2332
|
onEnd: I
|
|
2308
2333
|
}, {
|
|
2309
2334
|
item: b(({ element: Y }) => [
|
|
2310
|
-
Y.fixed !== "right" ? (c(), w("div",
|
|
2335
|
+
Y.fixed !== "right" ? (c(), w("div", wl, [
|
|
2311
2336
|
$(v(Qe), {
|
|
2312
2337
|
checked: Y.checked,
|
|
2313
2338
|
onChange: (_) => S(
|
|
@@ -2320,7 +2345,7 @@ const bl = {
|
|
|
2320
2345
|
]),
|
|
2321
2346
|
_: 2
|
|
2322
2347
|
}, 1032, ["checked", "onChange"]),
|
|
2323
|
-
Y.checked ? (c(), w("section",
|
|
2348
|
+
Y.checked ? (c(), w("section", kl, [
|
|
2324
2349
|
m("span", {
|
|
2325
2350
|
class: X(
|
|
2326
2351
|
Y.fixed ? "drag-hide" : "drag-handle"
|
|
@@ -2353,7 +2378,7 @@ const bl = {
|
|
|
2353
2378
|
fill: "#ff5000"
|
|
2354
2379
|
})
|
|
2355
2380
|
], -1)
|
|
2356
|
-
])], 8,
|
|
2381
|
+
])], 8, Sl)
|
|
2357
2382
|
]),
|
|
2358
2383
|
_: 2
|
|
2359
2384
|
}, 1024)) : z("", !0),
|
|
@@ -2384,7 +2409,7 @@ const bl = {
|
|
|
2384
2409
|
fill: "#ff5000"
|
|
2385
2410
|
})
|
|
2386
2411
|
], -1)
|
|
2387
|
-
])], 8,
|
|
2412
|
+
])], 8, xl)
|
|
2388
2413
|
]),
|
|
2389
2414
|
_: 2
|
|
2390
2415
|
}, 1024))
|
|
@@ -2393,10 +2418,10 @@ const bl = {
|
|
|
2393
2418
|
]),
|
|
2394
2419
|
_: 1
|
|
2395
2420
|
}, 8, ["modelValue"]),
|
|
2396
|
-
m("div",
|
|
2397
|
-
m("div",
|
|
2421
|
+
m("div", Tl, [
|
|
2422
|
+
m("div", Fl, [
|
|
2398
2423
|
$(v(Qe), {
|
|
2399
|
-
checked:
|
|
2424
|
+
checked: p.value,
|
|
2400
2425
|
indeterminate: h.value,
|
|
2401
2426
|
onChange: H
|
|
2402
2427
|
}, {
|
|
@@ -2465,7 +2490,7 @@ const bl = {
|
|
|
2465
2490
|
]);
|
|
2466
2491
|
};
|
|
2467
2492
|
}
|
|
2468
|
-
}),
|
|
2493
|
+
}), $l = /* @__PURE__ */ le(Hl, [["__scopeId", "data-v-3b97f848"]]), Il = ne($l), Ml = /* @__PURE__ */ te({
|
|
2469
2494
|
name: "HbLibFormTooltipSelect",
|
|
2470
2495
|
inheritAttrs: !1,
|
|
2471
2496
|
__name: "HbTooltipSelect",
|
|
@@ -2491,7 +2516,7 @@ const bl = {
|
|
|
2491
2516
|
};
|
|
2492
2517
|
}), l = O(), r = zt(e, "value"), u = F(() => o.options ?? []), a = F(() => ({
|
|
2493
2518
|
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2494
|
-
})), s = (H) => H.tooltip ?? H.label,
|
|
2519
|
+
})), s = (H) => H.tooltip ?? H.label, p = (H) => H.key ?? H.label, h = (H) => !!(o.enableTooltip && s(H));
|
|
2495
2520
|
return t({
|
|
2496
2521
|
focus: () => {
|
|
2497
2522
|
l.value?.focus?.();
|
|
@@ -2509,8 +2534,8 @@ const bl = {
|
|
|
2509
2534
|
class: "hb_lib_form_tooltip_select"
|
|
2510
2535
|
}), {
|
|
2511
2536
|
default: b(() => [
|
|
2512
|
-
H.$slots.default ? J(H.$slots, "default", { key: 0 }, void 0, !0) : (c(!0), w(ee, { key: 1 },
|
|
2513
|
-
key:
|
|
2537
|
+
H.$slots.default ? J(H.$slots, "default", { key: 0 }, void 0, !0) : (c(!0), w(ee, { key: 1 }, fe(u.value, (V) => (c(), R(v(ft), ce({
|
|
2538
|
+
key: p(V),
|
|
2514
2539
|
value: V.value,
|
|
2515
2540
|
disabled: V.disabled
|
|
2516
2541
|
}, { ref_for: !0 }, V.optionProps), {
|
|
@@ -2538,10 +2563,10 @@ const bl = {
|
|
|
2538
2563
|
_: 3
|
|
2539
2564
|
}, 16, ["value"]));
|
|
2540
2565
|
}
|
|
2541
|
-
}),
|
|
2566
|
+
}), Bl = /* @__PURE__ */ le(Ml, [["__scopeId", "data-v-13285691"]]), Dl = ne(Bl), Al = { class: "ant-upload-drag-icon" }, Ol = { class: "ant-upload-text" }, Pl = { style: { color: "#ff5000" } }, Ul = { class: "ant-upload-hint" }, El = {
|
|
2542
2567
|
key: 0,
|
|
2543
2568
|
class: "hb_import_btn"
|
|
2544
|
-
},
|
|
2569
|
+
}, Rl = ["href"], Nl = /* @__PURE__ */ te({
|
|
2545
2570
|
name: "HbLibImportFile",
|
|
2546
2571
|
__name: "HbImportFile",
|
|
2547
2572
|
props: {
|
|
@@ -2560,17 +2585,17 @@ const bl = {
|
|
|
2560
2585
|
const { t: o } = ve(), n = O(), i = e, l = O(!1), r = Ve({
|
|
2561
2586
|
fileList: [],
|
|
2562
2587
|
visible: !1
|
|
2563
|
-
}), u = (
|
|
2564
|
-
if (
|
|
2588
|
+
}), u = (f) => {
|
|
2589
|
+
if (f == null)
|
|
2565
2590
|
return;
|
|
2566
|
-
const I = r.fileList.indexOf(
|
|
2591
|
+
const I = r.fileList.indexOf(f);
|
|
2567
2592
|
if (I !== -1) {
|
|
2568
2593
|
const H = r.fileList.slice();
|
|
2569
2594
|
H.splice(I, 1), r.fileList = H;
|
|
2570
2595
|
}
|
|
2571
2596
|
}, a = () => {
|
|
2572
2597
|
r.visible = !1, r.fileList = [], l.value = !1;
|
|
2573
|
-
}, s = (
|
|
2598
|
+
}, s = (f) => (r.fileList = [f], i.beforeUpload ? i.beforeUpload(f.originFileObj) : !1), p = () => {
|
|
2574
2599
|
n.value.validateFields().then(() => {
|
|
2575
2600
|
i.beforeSubmit && (l.value = !0, i.beforeSubmit(r.fileList).then(() => {
|
|
2576
2601
|
}).finally(() => {
|
|
@@ -2585,7 +2610,7 @@ const bl = {
|
|
|
2585
2610
|
openModal: h,
|
|
2586
2611
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2587
2612
|
confirmLoading: l
|
|
2588
|
-
}), (
|
|
2613
|
+
}), (f, I) => {
|
|
2589
2614
|
const H = K("a-upload-dragger"), U = K("a-form-item"), V = K("a-form"), k = K("a-modal"), S = K("a-button");
|
|
2590
2615
|
return c(), w(ee, null, [
|
|
2591
2616
|
$(k, ce({
|
|
@@ -2593,10 +2618,10 @@ const bl = {
|
|
|
2593
2618
|
"onUpdate:visible": I[0] || (I[0] = (A) => r.visible = A),
|
|
2594
2619
|
title: i.title,
|
|
2595
2620
|
"confirm-loading": l.value
|
|
2596
|
-
},
|
|
2621
|
+
}, f.$attrs, {
|
|
2597
2622
|
width: i.modalWidth,
|
|
2598
2623
|
onCancel: a,
|
|
2599
|
-
onOk:
|
|
2624
|
+
onOk: p
|
|
2600
2625
|
}), {
|
|
2601
2626
|
default: b(() => [
|
|
2602
2627
|
$(V, {
|
|
@@ -2621,14 +2646,14 @@ const bl = {
|
|
|
2621
2646
|
onRemove: u
|
|
2622
2647
|
}, {
|
|
2623
2648
|
default: b(() => [
|
|
2624
|
-
m("p",
|
|
2649
|
+
m("p", Al, [
|
|
2625
2650
|
$(v(So), { style: { "font-size": "37px" } })
|
|
2626
2651
|
]),
|
|
2627
|
-
m("p",
|
|
2652
|
+
m("p", Ol, [
|
|
2628
2653
|
E(C(v(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2629
|
-
m("span",
|
|
2654
|
+
m("span", Pl, C(v(o)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2630
2655
|
]),
|
|
2631
|
-
m("p",
|
|
2656
|
+
m("p", Ul, C(v(o)("hbLibComp.HbFileUploadModal.format")) + ": " + C(i.acceptFile), 1)
|
|
2632
2657
|
]),
|
|
2633
2658
|
_: 1
|
|
2634
2659
|
}, 8, ["max-count", "multiple", "accept", "file-list"])
|
|
@@ -2638,16 +2663,16 @@ const bl = {
|
|
|
2638
2663
|
]),
|
|
2639
2664
|
_: 1
|
|
2640
2665
|
}, 8, ["model"]),
|
|
2641
|
-
i.templateUrl ? (c(), w("p",
|
|
2666
|
+
i.templateUrl ? (c(), w("p", El, [
|
|
2642
2667
|
m("a", {
|
|
2643
2668
|
download: "Import_number-template.xlsx",
|
|
2644
2669
|
href: i.templateUrl
|
|
2645
|
-
}, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9,
|
|
2670
|
+
}, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, Rl)
|
|
2646
2671
|
])) : z("", !0)
|
|
2647
2672
|
]),
|
|
2648
2673
|
_: 1
|
|
2649
2674
|
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2650
|
-
J(
|
|
2675
|
+
J(f.$slots, "btn", {}, () => [
|
|
2651
2676
|
$(S, {
|
|
2652
2677
|
type: "primary",
|
|
2653
2678
|
onClick: h
|
|
@@ -2661,7 +2686,7 @@ const bl = {
|
|
|
2661
2686
|
], 64);
|
|
2662
2687
|
};
|
|
2663
2688
|
}
|
|
2664
|
-
}),
|
|
2689
|
+
}), zl = /* @__PURE__ */ le(Nl, [["__scopeId", "data-v-a11cda0f"]]), Vl = ne(zl), jl = { class: "hb_lib_log_modal_content" }, Wl = { class: "log_remark" }, ql = /* @__PURE__ */ te({
|
|
2665
2690
|
name: "HbLibLogModal",
|
|
2666
2691
|
__name: "HbLogModal",
|
|
2667
2692
|
props: {
|
|
@@ -2697,7 +2722,7 @@ const bl = {
|
|
|
2697
2722
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2698
2723
|
], u = F(() => l.columns || r), a = F(
|
|
2699
2724
|
() => l.title || n("hbLibComp.HbLogModal.operateLogs")
|
|
2700
|
-
), s = F(() => !!i.title),
|
|
2725
|
+
), s = F(() => !!i.title), p = O(!1), h = Ve({
|
|
2701
2726
|
list: [],
|
|
2702
2727
|
pagination: {
|
|
2703
2728
|
current: 1,
|
|
@@ -2722,19 +2747,19 @@ const bl = {
|
|
|
2722
2747
|
immediate: !0
|
|
2723
2748
|
}
|
|
2724
2749
|
);
|
|
2725
|
-
const
|
|
2750
|
+
const f = () => {
|
|
2726
2751
|
const S = {
|
|
2727
2752
|
pageIndex: h.pagination.current,
|
|
2728
2753
|
pageSize: h.pagination.pageSize,
|
|
2729
2754
|
query: l.params
|
|
2730
2755
|
};
|
|
2731
|
-
l.getLogData && (
|
|
2756
|
+
l.getLogData && (p.value = !0, l.getLogData(S).then((A) => {
|
|
2732
2757
|
Number(A.code) == 200 ? (h.pagination.total = Number(A.data.total), h.list = A.data[l.dataStr] || []) : Ie.error(A.message);
|
|
2733
2758
|
}).finally(() => {
|
|
2734
|
-
|
|
2759
|
+
p.value = !1;
|
|
2735
2760
|
}));
|
|
2736
2761
|
}, I = (S) => {
|
|
2737
|
-
h.pagination.current = S.current, h.pagination.pageSize = S.pageSize,
|
|
2762
|
+
h.pagination.current = S.current, h.pagination.pageSize = S.pageSize, f();
|
|
2738
2763
|
}, H = () => {
|
|
2739
2764
|
h.list = [], h.pagination.current = 1, k("update:visible", !1);
|
|
2740
2765
|
}, U = () => {
|
|
@@ -2743,11 +2768,11 @@ const bl = {
|
|
|
2743
2768
|
return se(
|
|
2744
2769
|
() => l.visible,
|
|
2745
2770
|
(S) => {
|
|
2746
|
-
S &&
|
|
2771
|
+
S && f();
|
|
2747
2772
|
}
|
|
2748
2773
|
), t({
|
|
2749
2774
|
close: H,
|
|
2750
|
-
loading:
|
|
2775
|
+
loading: p
|
|
2751
2776
|
}), (S, A) => {
|
|
2752
2777
|
const D = K("a-tooltip"), g = K("HbLibCopy"), T = K("a-table"), L = K("a-button"), d = K("HbLibModal");
|
|
2753
2778
|
return c(), w(ee, null, [
|
|
@@ -2769,14 +2794,14 @@ const bl = {
|
|
|
2769
2794
|
})
|
|
2770
2795
|
]),
|
|
2771
2796
|
default: b(() => [
|
|
2772
|
-
m("div",
|
|
2797
|
+
m("div", jl, [
|
|
2773
2798
|
$(T, {
|
|
2774
2799
|
bordered: "",
|
|
2775
2800
|
rowKey: "id",
|
|
2776
2801
|
columns: u.value,
|
|
2777
2802
|
dataSource: h.list,
|
|
2778
2803
|
pagination: h.pagination,
|
|
2779
|
-
loading:
|
|
2804
|
+
loading: p.value,
|
|
2780
2805
|
scroll: { y: e.scrollY },
|
|
2781
2806
|
onChange: I
|
|
2782
2807
|
}, Ne({
|
|
@@ -2793,7 +2818,7 @@ const bl = {
|
|
|
2793
2818
|
}, 1024)) : z("", !0)
|
|
2794
2819
|
], 64)) : z("", !0),
|
|
2795
2820
|
y && y.needCopy ? (c(), w(ee, { key: 1 }, [
|
|
2796
|
-
m("div",
|
|
2821
|
+
m("div", Wl, C(x[y.dataIndex]), 1),
|
|
2797
2822
|
$(g, {
|
|
2798
2823
|
"cp-text": x[y.dataIndex],
|
|
2799
2824
|
style: { position: "relative" }
|
|
@@ -2841,7 +2866,7 @@ const bl = {
|
|
|
2841
2866
|
], 64);
|
|
2842
2867
|
};
|
|
2843
2868
|
}
|
|
2844
|
-
}),
|
|
2869
|
+
}), Yl = /* @__PURE__ */ le(ql, [["__scopeId", "data-v-3ab75993"]]), Kl = ne(Yl), nt = Symbol("GLOBAL_CONFIG_KEY"), Gl = {
|
|
2845
2870
|
// 图片上传组件的配置
|
|
2846
2871
|
importFile: {
|
|
2847
2872
|
isRequired: !1,
|
|
@@ -2883,7 +2908,7 @@ const bl = {
|
|
|
2883
2908
|
// 表单距离底部的距离
|
|
2884
2909
|
formItemMb: 10
|
|
2885
2910
|
}
|
|
2886
|
-
},
|
|
2911
|
+
}, Jl = { class: "hb_ui_config" }, Xl = /* @__PURE__ */ te({
|
|
2887
2912
|
name: "HbUiConfig",
|
|
2888
2913
|
__name: "hbUiConfig",
|
|
2889
2914
|
props: {
|
|
@@ -2895,17 +2920,17 @@ const bl = {
|
|
|
2895
2920
|
return se(
|
|
2896
2921
|
() => t.config,
|
|
2897
2922
|
(n) => {
|
|
2898
|
-
o = Ve(ke.merge({},
|
|
2923
|
+
o = Ve(ke.merge({}, Gl, n));
|
|
2899
2924
|
},
|
|
2900
2925
|
{ deep: !0, immediate: !0 }
|
|
2901
|
-
), Ue(nt, o), (n, i) => (c(), w("div",
|
|
2926
|
+
), Ue(nt, o), (n, i) => (c(), w("div", Jl, [
|
|
2902
2927
|
J(n.$slots, "default")
|
|
2903
2928
|
]));
|
|
2904
2929
|
}
|
|
2905
|
-
}),
|
|
2930
|
+
}), Ql = ne(Xl), Zl = { class: "hb_card" }, ea = {
|
|
2906
2931
|
key: 0,
|
|
2907
2932
|
class: "hb_card_header"
|
|
2908
|
-
},
|
|
2933
|
+
}, ta = { class: "hb_fix" }, oa = { class: "hb_card_header-title" }, na = { class: "hb_card_header-action" }, la = { class: "hb_card_body" }, aa = /* @__PURE__ */ te({
|
|
2909
2934
|
name: "HbLibCard",
|
|
2910
2935
|
__name: "HbLibCard",
|
|
2911
2936
|
props: {
|
|
@@ -2931,7 +2956,8 @@ const bl = {
|
|
|
2931
2956
|
default: 2
|
|
2932
2957
|
},
|
|
2933
2958
|
formItemMb: {
|
|
2934
|
-
type: Number
|
|
2959
|
+
type: Number,
|
|
2960
|
+
default: 0
|
|
2935
2961
|
}
|
|
2936
2962
|
},
|
|
2937
2963
|
setup(e) {
|
|
@@ -2943,20 +2969,20 @@ const bl = {
|
|
|
2943
2969
|
m("div", {
|
|
2944
2970
|
class: X(e.isModal ? "modal__module-card" : "__module-card")
|
|
2945
2971
|
}, [
|
|
2946
|
-
m("div",
|
|
2947
|
-
e.cardTitle ? (c(), w("div",
|
|
2948
|
-
m("div",
|
|
2949
|
-
m("span",
|
|
2972
|
+
m("div", Zl, [
|
|
2973
|
+
e.cardTitle ? (c(), w("div", ea, [
|
|
2974
|
+
m("div", ta, [
|
|
2975
|
+
m("span", oa, [
|
|
2950
2976
|
J(i.$slots, "cardTitle", {}, () => [
|
|
2951
2977
|
E(C(e.cardTitle), 1)
|
|
2952
2978
|
], !0)
|
|
2953
2979
|
]),
|
|
2954
|
-
m("div",
|
|
2980
|
+
m("div", na, [
|
|
2955
2981
|
J(i.$slots, "cardAct", {}, void 0, !0)
|
|
2956
2982
|
])
|
|
2957
2983
|
])
|
|
2958
2984
|
])) : z("", !0),
|
|
2959
|
-
m("div",
|
|
2985
|
+
m("div", la, [
|
|
2960
2986
|
m("section", {
|
|
2961
2987
|
class: X({
|
|
2962
2988
|
hb_card_form: e.isForm && !e.isModal,
|
|
@@ -2974,10 +3000,10 @@ const bl = {
|
|
|
2974
3000
|
], 2)
|
|
2975
3001
|
], 16));
|
|
2976
3002
|
}
|
|
2977
|
-
}),
|
|
3003
|
+
}), ia = /* @__PURE__ */ le(aa, [["__scopeId", "data-v-220e891f"]]), sa = ne(ia), ra = ["onClick"], ca = { class: "step" }, da = {
|
|
2978
3004
|
key: 0,
|
|
2979
3005
|
class: "line"
|
|
2980
|
-
},
|
|
3006
|
+
}, ua = ["title"], fa = /* @__PURE__ */ te({
|
|
2981
3007
|
name: "HbLibAnchor",
|
|
2982
3008
|
__name: "HbLibAnchor",
|
|
2983
3009
|
props: {
|
|
@@ -2990,22 +3016,22 @@ const bl = {
|
|
|
2990
3016
|
const a = t.containerSelector || "#subpackage_container";
|
|
2991
3017
|
return document.querySelector(a) || window;
|
|
2992
3018
|
}, r = (a) => {
|
|
2993
|
-
const s = l(),
|
|
3019
|
+
const s = l(), p = a.target.startsWith("#") || a.target.startsWith(".") ? a.target : `#${a.target}`, h = document.querySelector(p);
|
|
2994
3020
|
if (!h) return;
|
|
2995
|
-
let
|
|
2996
|
-
s instanceof HTMLElement && (
|
|
3021
|
+
let f = h.offsetTop;
|
|
3022
|
+
s instanceof HTMLElement && (f -= s.offsetTop), f -= n, s instanceof Window ? window.scrollTo({ top: f, behavior: "smooth" }) : s.scrollTo({ top: f, behavior: "smooth" }), o.value = a.target;
|
|
2997
3023
|
}, u = () => {
|
|
2998
3024
|
const a = l();
|
|
2999
3025
|
let s = 0;
|
|
3000
3026
|
a instanceof Window ? s = window.scrollY + n + 5 : s = a.scrollTop + n + 5;
|
|
3001
|
-
let
|
|
3027
|
+
let p = i.value[0]?.target || "";
|
|
3002
3028
|
for (const h of i.value) {
|
|
3003
|
-
const
|
|
3029
|
+
const f = h.target.startsWith("#") || h.target.startsWith(".") ? h.target : `#${h.target}`, I = document.querySelector(f);
|
|
3004
3030
|
if (!I) continue;
|
|
3005
3031
|
let H = I.offsetTop;
|
|
3006
|
-
a instanceof HTMLElement && (H -= a.offsetTop), s >= H && (
|
|
3032
|
+
a instanceof HTMLElement && (H -= a.offsetTop), s >= H && (p = h.target);
|
|
3007
3033
|
}
|
|
3008
|
-
o.value =
|
|
3034
|
+
o.value = p;
|
|
3009
3035
|
};
|
|
3010
3036
|
return Fe(() => {
|
|
3011
3037
|
l().addEventListener("scroll", u), u();
|
|
@@ -3015,32 +3041,32 @@ const bl = {
|
|
|
3015
3041
|
class: "anchors",
|
|
3016
3042
|
style: de({ top: `${v(n)}px` })
|
|
3017
3043
|
}, [
|
|
3018
|
-
(c(!0), w(ee, null,
|
|
3019
|
-
key:
|
|
3020
|
-
class: X(["anchor-item", { isActive: o.value ===
|
|
3021
|
-
onClick: (
|
|
3044
|
+
(c(!0), w(ee, null, fe(i.value, (p, h) => (c(), w("div", {
|
|
3045
|
+
key: p.target,
|
|
3046
|
+
class: X(["anchor-item", { isActive: o.value === p.target }]),
|
|
3047
|
+
onClick: (f) => r(p)
|
|
3022
3048
|
}, [
|
|
3023
|
-
m("div",
|
|
3024
|
-
h !== i.value.length - 1 ? (c(), w("div",
|
|
3049
|
+
m("div", ca, [
|
|
3050
|
+
h !== i.value.length - 1 ? (c(), w("div", da)) : z("", !0),
|
|
3025
3051
|
s[0] || (s[0] = m("div", { class: "circle" }, null, -1))
|
|
3026
3052
|
]),
|
|
3027
3053
|
m("span", {
|
|
3028
3054
|
class: "title",
|
|
3029
|
-
title:
|
|
3030
|
-
}, C(
|
|
3031
|
-
], 10,
|
|
3055
|
+
title: p.title
|
|
3056
|
+
}, C(p.title.length > 12 ? p.title.slice(0, 12) + "..." : p.title), 9, ua)
|
|
3057
|
+
], 10, ra))), 128))
|
|
3032
3058
|
], 4));
|
|
3033
3059
|
}
|
|
3034
|
-
}),
|
|
3060
|
+
}), pa = /* @__PURE__ */ le(fa, [["__scopeId", "data-v-d51548d8"]]), ba = ne(pa), ma = { class: "hb_detail_top_act_left" }, ha = {
|
|
3035
3061
|
key: 1,
|
|
3036
3062
|
class: "hb_detail_top_wrapper_sticky"
|
|
3037
|
-
},
|
|
3063
|
+
}, va = { class: "hb_detail_top_act" }, ga = {
|
|
3038
3064
|
key: 0,
|
|
3039
3065
|
class: "hb_detail_all_info"
|
|
3040
|
-
},
|
|
3066
|
+
}, ya = { class: "hb_detail_all_info_left" }, _a = { class: "hb_detail_info_title" }, La = {
|
|
3041
3067
|
key: 0,
|
|
3042
3068
|
class: "hb_detail_info_content"
|
|
3043
|
-
},
|
|
3069
|
+
}, Ca = { class: "create_by" }, wa = { class: "hb_detail_all_info_right" }, ka = { class: "hb_edit_detail_content_wrapper" }, Sa = { class: "hb_detail_content" }, xa = { class: "hb-back-top-inner" }, Ta = /* @__PURE__ */ te({
|
|
3044
3070
|
name: "HbLibDetailBox",
|
|
3045
3071
|
__name: "HbLibDetailBox",
|
|
3046
3072
|
props: {
|
|
@@ -3110,11 +3136,11 @@ const bl = {
|
|
|
3110
3136
|
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3111
3137
|
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3112
3138
|
} : U;
|
|
3113
|
-
}), u = () => document.querySelector(o.container), a = O(!1), s = O(null), { top:
|
|
3139
|
+
}), u = () => document.querySelector(o.container), a = O(!1), s = O(null), { top: p } = To(s), h = F(u), { y: f } = Fo(h);
|
|
3114
3140
|
se(
|
|
3115
|
-
|
|
3141
|
+
f,
|
|
3116
3142
|
(U) => {
|
|
3117
|
-
a.value = U >
|
|
3143
|
+
a.value = U > p.value;
|
|
3118
3144
|
},
|
|
3119
3145
|
{ immediate: !0 }
|
|
3120
3146
|
);
|
|
@@ -3147,7 +3173,7 @@ const bl = {
|
|
|
3147
3173
|
key: 0,
|
|
3148
3174
|
class: X(["hb_detail_top_act_sticky", a.value ? "can_show" : ""])
|
|
3149
3175
|
}, [
|
|
3150
|
-
m("div",
|
|
3176
|
+
m("div", ma, [
|
|
3151
3177
|
$(k, { style: { color: "#ff5000" } }),
|
|
3152
3178
|
m("a", {
|
|
3153
3179
|
href: "javascript:;",
|
|
@@ -3159,8 +3185,8 @@ const bl = {
|
|
|
3159
3185
|
]),
|
|
3160
3186
|
V[0] || (V[0] = m("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3161
3187
|
], 2)) : z("", !0),
|
|
3162
|
-
e.needTotalInfoBox ? (c(), w("div",
|
|
3163
|
-
m("div",
|
|
3188
|
+
e.needTotalInfoBox ? (c(), w("div", ha, [
|
|
3189
|
+
m("div", va, [
|
|
3164
3190
|
$(k),
|
|
3165
3191
|
m("a", {
|
|
3166
3192
|
href: "javascript:;",
|
|
@@ -3170,23 +3196,23 @@ const bl = {
|
|
|
3170
3196
|
$(S, { type: "vertical" }),
|
|
3171
3197
|
m("span", null, C(e.stickyTitle), 1)
|
|
3172
3198
|
]),
|
|
3173
|
-
e.needTotalInfoBox ? (c(), w("div",
|
|
3174
|
-
m("aside",
|
|
3199
|
+
e.needTotalInfoBox ? (c(), w("div", ga, [
|
|
3200
|
+
m("aside", ya, [
|
|
3175
3201
|
J(U.$slots, "totalInfoLeft", {}, () => [
|
|
3176
|
-
m("div",
|
|
3177
|
-
e.totalInfo.totalInfoSubTitle1 ? (c(), w("div",
|
|
3178
|
-
m("span",
|
|
3202
|
+
m("div", _a, C(e.totalInfo.totalInfoTitle), 1),
|
|
3203
|
+
e.totalInfo.totalInfoSubTitle1 ? (c(), w("div", La, [
|
|
3204
|
+
m("span", Ca, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
|
|
3179
3205
|
m("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
|
|
3180
3206
|
])) : z("", !0)
|
|
3181
3207
|
], !0)
|
|
3182
3208
|
]),
|
|
3183
|
-
m("aside",
|
|
3209
|
+
m("aside", wa, [
|
|
3184
3210
|
J(U.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3185
3211
|
])
|
|
3186
3212
|
])) : z("", !0)
|
|
3187
3213
|
])) : z("", !0),
|
|
3188
|
-
m("div",
|
|
3189
|
-
m("div",
|
|
3214
|
+
m("div", ka, [
|
|
3215
|
+
m("div", Sa, [
|
|
3190
3216
|
J(U.$slots, "detailContent", {}, void 0, !0)
|
|
3191
3217
|
])
|
|
3192
3218
|
]),
|
|
@@ -3195,7 +3221,7 @@ const bl = {
|
|
|
3195
3221
|
style: de({ bottom: l.value + "px" })
|
|
3196
3222
|
}, {
|
|
3197
3223
|
default: b(() => [
|
|
3198
|
-
m("div",
|
|
3224
|
+
m("div", xa, [
|
|
3199
3225
|
$(v(Yt))
|
|
3200
3226
|
])
|
|
3201
3227
|
]),
|
|
@@ -3207,7 +3233,7 @@ const bl = {
|
|
|
3207
3233
|
}, 8, ["spinning"]);
|
|
3208
3234
|
};
|
|
3209
3235
|
}
|
|
3210
|
-
}),
|
|
3236
|
+
}), Fa = /* @__PURE__ */ le(Ta, [["__scopeId", "data-v-f2c2c397"]]), Ha = ne(Fa), $a = /* @__PURE__ */ te({
|
|
3211
3237
|
name: "HbLibFooterBar",
|
|
3212
3238
|
__name: "HbLibFooterBar",
|
|
3213
3239
|
props: {
|
|
@@ -3253,13 +3279,13 @@ const bl = {
|
|
|
3253
3279
|
}))), i = O(0), l = (a) => {
|
|
3254
3280
|
let s = 0;
|
|
3255
3281
|
return (Array.isArray(a) ? a : [a]).forEach((h) => {
|
|
3256
|
-
let
|
|
3282
|
+
let f = [];
|
|
3257
3283
|
if (h.startsWith("#")) {
|
|
3258
3284
|
const I = document.getElementById(h.slice(1));
|
|
3259
|
-
I &&
|
|
3285
|
+
I && f.push(I);
|
|
3260
3286
|
} else
|
|
3261
|
-
|
|
3262
|
-
|
|
3287
|
+
f = Array.from(document.getElementsByClassName(h));
|
|
3288
|
+
f.forEach((I) => {
|
|
3263
3289
|
s += I.offsetWidth || 0;
|
|
3264
3290
|
});
|
|
3265
3291
|
}), s;
|
|
@@ -3285,12 +3311,12 @@ const bl = {
|
|
|
3285
3311
|
}), tt(() => {
|
|
3286
3312
|
u && u.disconnect();
|
|
3287
3313
|
}), (a, s) => {
|
|
3288
|
-
const
|
|
3314
|
+
const p = K("a-button"), h = K("a-space"), f = K("a-affix"), I = Vt("has");
|
|
3289
3315
|
return c(), w("div", {
|
|
3290
3316
|
class: "footer-affix-wrapper",
|
|
3291
3317
|
style: de({ "--pageHeaderOrFonterLeft": i.value + "px" })
|
|
3292
3318
|
}, [
|
|
3293
|
-
$(
|
|
3319
|
+
$(f, {
|
|
3294
3320
|
"offset-bottom": 0,
|
|
3295
3321
|
target: e.getContainer,
|
|
3296
3322
|
style: { width: "100%" }
|
|
@@ -3305,7 +3331,7 @@ const bl = {
|
|
|
3305
3331
|
}, [
|
|
3306
3332
|
$(h, null, {
|
|
3307
3333
|
default: b(() => [
|
|
3308
|
-
(c(!0), w(ee, null,
|
|
3334
|
+
(c(!0), w(ee, null, fe(n.value, (H) => we((c(), R(p, {
|
|
3309
3335
|
key: H.key,
|
|
3310
3336
|
type: H.type || "default",
|
|
3311
3337
|
danger: H.danger,
|
|
@@ -3331,7 +3357,7 @@ const bl = {
|
|
|
3331
3357
|
], 4);
|
|
3332
3358
|
};
|
|
3333
3359
|
}
|
|
3334
|
-
}),
|
|
3360
|
+
}), Ia = /* @__PURE__ */ le($a, [["__scopeId", "data-v-23f13fb5"]]), Ma = ne(Ia), Ba = { class: "modal__detail-content" }, Da = /* @__PURE__ */ te({
|
|
3335
3361
|
name: "HbLibModal",
|
|
3336
3362
|
__name: "HbLibModal",
|
|
3337
3363
|
props: {
|
|
@@ -3387,7 +3413,7 @@ const bl = {
|
|
|
3387
3413
|
overflowY: "auto",
|
|
3388
3414
|
padding: "0 6px",
|
|
3389
3415
|
...i.bodyStyle
|
|
3390
|
-
})), { x:
|
|
3416
|
+
})), { x: p, y: h, isDragging: f } = Ho(r), I = O(0), H = O(0), U = O(!1), V = O(0), k = O(0), S = O(0), A = O(0), D = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3391
3417
|
let g = null;
|
|
3392
3418
|
const T = () => {
|
|
3393
3419
|
V.value = 0, k.value = 0, S.value = 0, A.value = 0, U.value = !1;
|
|
@@ -3398,17 +3424,17 @@ const bl = {
|
|
|
3398
3424
|
}, 50) : (g && clearTimeout(g), g = setTimeout(() => {
|
|
3399
3425
|
V.value = 0, k.value = 0, S.value = 0, A.value = 0;
|
|
3400
3426
|
}, 300));
|
|
3401
|
-
}), se([
|
|
3427
|
+
}), se([p, h], () => {
|
|
3402
3428
|
if (!U.value) {
|
|
3403
|
-
I.value =
|
|
3429
|
+
I.value = p.value, H.value = h.value;
|
|
3404
3430
|
const x = document.body.getBoundingClientRect(), P = r.value.getBoundingClientRect();
|
|
3405
3431
|
D.value.right = x.width - P.width, D.value.bottom = x.height - P.height, S.value = V.value, A.value = k.value;
|
|
3406
3432
|
}
|
|
3407
3433
|
U.value = !0;
|
|
3408
|
-
}), se(
|
|
3409
|
-
|
|
3434
|
+
}), se(f, () => {
|
|
3435
|
+
f || (U.value = !1);
|
|
3410
3436
|
}), jt(() => {
|
|
3411
|
-
U.value && (V.value = S.value + Math.min(Math.max(D.value.left,
|
|
3437
|
+
U.value && (V.value = S.value + Math.min(Math.max(D.value.left, p.value), D.value.right) - I.value, k.value = A.value + Math.min(Math.max(D.value.top, h.value), D.value.bottom) - H.value);
|
|
3412
3438
|
});
|
|
3413
3439
|
const L = F(() => ({
|
|
3414
3440
|
transform: `translate(${V.value}px, ${k.value}px)`
|
|
@@ -3466,7 +3492,7 @@ const bl = {
|
|
|
3466
3492
|
]),
|
|
3467
3493
|
style: de({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3468
3494
|
}, [
|
|
3469
|
-
m("div",
|
|
3495
|
+
m("div", Ba, [
|
|
3470
3496
|
J(x.$slots, "default", {}, void 0, !0)
|
|
3471
3497
|
])
|
|
3472
3498
|
], 6)
|
|
@@ -3486,13 +3512,13 @@ const bl = {
|
|
|
3486
3512
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3487
3513
|
};
|
|
3488
3514
|
}
|
|
3489
|
-
}),
|
|
3515
|
+
}), Aa = /* @__PURE__ */ le(Da, [["__scopeId", "data-v-866a050a"]]), Oa = ne(Aa), Pa = {
|
|
3490
3516
|
key: 0,
|
|
3491
3517
|
class: "hb_edit_header"
|
|
3492
|
-
},
|
|
3518
|
+
}, Ua = { class: "__detail-content" }, Ea = {
|
|
3493
3519
|
key: 1,
|
|
3494
3520
|
class: "hb_edit_footer"
|
|
3495
|
-
},
|
|
3521
|
+
}, Ra = { class: "hb-back-top-inner" }, Na = /* @__PURE__ */ te({
|
|
3496
3522
|
name: "HbLibUnDetailBox",
|
|
3497
3523
|
__name: "HbLibUnDetailBox",
|
|
3498
3524
|
props: {
|
|
@@ -3523,17 +3549,17 @@ const bl = {
|
|
|
3523
3549
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
3524
3550
|
class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
|
|
3525
3551
|
}), [
|
|
3526
|
-
r.$slots.editHeader ? (c(), w("div",
|
|
3552
|
+
r.$slots.editHeader ? (c(), w("div", Pa, [
|
|
3527
3553
|
J(r.$slots, "editHeader", {}, void 0, !0)
|
|
3528
3554
|
])) : z("", !0),
|
|
3529
3555
|
m("div", {
|
|
3530
3556
|
class: X(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3531
3557
|
}, [
|
|
3532
|
-
m("div",
|
|
3558
|
+
m("div", Ua, [
|
|
3533
3559
|
J(r.$slots, "editContent", {}, void 0, !0)
|
|
3534
3560
|
])
|
|
3535
3561
|
], 2),
|
|
3536
|
-
r.$slots.editFooter ? (c(), w("div",
|
|
3562
|
+
r.$slots.editFooter ? (c(), w("div", Ea, [
|
|
3537
3563
|
J(r.$slots, "editFooter", {}, void 0, !0)
|
|
3538
3564
|
])) : z("", !0),
|
|
3539
3565
|
$(v(qt), {
|
|
@@ -3541,7 +3567,7 @@ const bl = {
|
|
|
3541
3567
|
style: de({ bottom: l.value + "px" })
|
|
3542
3568
|
}, {
|
|
3543
3569
|
default: b(() => [
|
|
3544
|
-
m("div",
|
|
3570
|
+
m("div", Ra, [
|
|
3545
3571
|
$(v(Yt))
|
|
3546
3572
|
])
|
|
3547
3573
|
]),
|
|
@@ -3552,7 +3578,7 @@ const bl = {
|
|
|
3552
3578
|
_: 3
|
|
3553
3579
|
}, 8, ["spinning"]));
|
|
3554
3580
|
}
|
|
3555
|
-
}),
|
|
3581
|
+
}), za = /* @__PURE__ */ le(Na, [["__scopeId", "data-v-41f1fc73"]]), Va = ne(za), ja = { class: "hb_edit_header_left" }, Wa = { class: "hb_edit_header_title" }, qa = { class: "hb_edit_header_right" }, Ya = /* @__PURE__ */ te({
|
|
3556
3582
|
name: "HbLibPageHeader",
|
|
3557
3583
|
__name: "HbLibPageHeader",
|
|
3558
3584
|
props: {
|
|
@@ -3571,9 +3597,9 @@ const bl = {
|
|
|
3571
3597
|
},
|
|
3572
3598
|
setup(e) {
|
|
3573
3599
|
const { t } = ve(), o = e, n = ht(), i = O(0), l = F(() => n?.meta?.title || "");
|
|
3574
|
-
function r(
|
|
3600
|
+
function r(f, I = "offsetHeight") {
|
|
3575
3601
|
let H = 0;
|
|
3576
|
-
return (Array.isArray(
|
|
3602
|
+
return (Array.isArray(f) ? f : [f]).forEach((V) => {
|
|
3577
3603
|
let k = [];
|
|
3578
3604
|
if (V.startsWith("#")) {
|
|
3579
3605
|
const S = document.getElementById(V.slice(1));
|
|
@@ -3590,13 +3616,13 @@ const bl = {
|
|
|
3590
3616
|
}, a = O(0), s = () => {
|
|
3591
3617
|
o.leftElements && (a.value = r(o.leftElements, "offsetWidth") + 1);
|
|
3592
3618
|
};
|
|
3593
|
-
let
|
|
3619
|
+
let p = null;
|
|
3594
3620
|
Fe(() => {
|
|
3595
|
-
u(), s(), window.addEventListener("resize", u),
|
|
3621
|
+
u(), s(), window.addEventListener("resize", u), p = new MutationObserver(() => {
|
|
3596
3622
|
s();
|
|
3597
3623
|
});
|
|
3598
|
-
const
|
|
3599
|
-
|
|
3624
|
+
const f = document.body;
|
|
3625
|
+
p.observe(f, {
|
|
3600
3626
|
childList: !0,
|
|
3601
3627
|
// 子节点的变动
|
|
3602
3628
|
subtree: !0,
|
|
@@ -3605,7 +3631,7 @@ const bl = {
|
|
|
3605
3631
|
// 属性的变动
|
|
3606
3632
|
});
|
|
3607
3633
|
}), tt(() => {
|
|
3608
|
-
window.removeEventListener("resize", u),
|
|
3634
|
+
window.removeEventListener("resize", u), p && p.disconnect();
|
|
3609
3635
|
}), se(
|
|
3610
3636
|
() => o.topElements,
|
|
3611
3637
|
() => {
|
|
@@ -3616,28 +3642,28 @@ const bl = {
|
|
|
3616
3642
|
const h = () => {
|
|
3617
3643
|
o.backFn ? o.backFn() : window.history.back();
|
|
3618
3644
|
};
|
|
3619
|
-
return (
|
|
3645
|
+
return (f, I) => {
|
|
3620
3646
|
const H = K("a-divider");
|
|
3621
3647
|
return c(), w("div", {
|
|
3622
3648
|
class: "hb_edit_header",
|
|
3623
3649
|
style: de({ top: i.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
|
|
3624
3650
|
}, [
|
|
3625
|
-
m("aside",
|
|
3651
|
+
m("aside", ja, [
|
|
3626
3652
|
m("a", {
|
|
3627
3653
|
href: "#",
|
|
3628
3654
|
class: "backBtn",
|
|
3629
3655
|
onClick: h
|
|
3630
3656
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3631
3657
|
$(H, { type: "vertical" }),
|
|
3632
|
-
m("span",
|
|
3658
|
+
m("span", Wa, C(l.value), 1)
|
|
3633
3659
|
]),
|
|
3634
|
-
m("aside",
|
|
3635
|
-
J(
|
|
3660
|
+
m("aside", qa, [
|
|
3661
|
+
J(f.$slots, "right", {}, void 0, !0)
|
|
3636
3662
|
])
|
|
3637
3663
|
], 4);
|
|
3638
3664
|
};
|
|
3639
3665
|
}
|
|
3640
|
-
}),
|
|
3666
|
+
}), Ka = /* @__PURE__ */ le(Ya, [["__scopeId", "data-v-83fcd208"]]), Ga = ne(Ka), Ja = {
|
|
3641
3667
|
// 如果存在cpText时,K和V无效
|
|
3642
3668
|
cpText: {
|
|
3643
3669
|
type: String,
|
|
@@ -3682,10 +3708,10 @@ const bl = {
|
|
|
3682
3708
|
type: String,
|
|
3683
3709
|
default: "ab"
|
|
3684
3710
|
}
|
|
3685
|
-
},
|
|
3711
|
+
}, Xa = /* @__PURE__ */ te({
|
|
3686
3712
|
name: "HbLibCopy",
|
|
3687
3713
|
__name: "copy",
|
|
3688
|
-
props:
|
|
3714
|
+
props: Ja,
|
|
3689
3715
|
setup(e) {
|
|
3690
3716
|
const t = e, o = O();
|
|
3691
3717
|
jt(() => {
|
|
@@ -3697,7 +3723,7 @@ const bl = {
|
|
|
3697
3723
|
if (t.data)
|
|
3698
3724
|
if (Array.isArray(t.data)) {
|
|
3699
3725
|
if (t.K && t.V && t.L) {
|
|
3700
|
-
const s = t.data.find((
|
|
3726
|
+
const s = t.data.find((p) => p?.[t.K] === t.V);
|
|
3701
3727
|
a = s ? s[t.L] : "";
|
|
3702
3728
|
}
|
|
3703
3729
|
} else
|
|
@@ -3751,7 +3777,7 @@ const bl = {
|
|
|
3751
3777
|
_: 1
|
|
3752
3778
|
}, 8, ["title"])) : z("", !0);
|
|
3753
3779
|
}
|
|
3754
|
-
}),
|
|
3780
|
+
}), Qa = /* @__PURE__ */ le(Xa, [["__scopeId", "data-v-2b6710a1"]]), Qt = ne(Qa), Za = {
|
|
3755
3781
|
dragList: {
|
|
3756
3782
|
type: Array,
|
|
3757
3783
|
required: !0
|
|
@@ -3790,10 +3816,10 @@ const bl = {
|
|
|
3790
3816
|
type: String,
|
|
3791
3817
|
default: ""
|
|
3792
3818
|
}
|
|
3793
|
-
},
|
|
3819
|
+
}, ei = /* @__PURE__ */ te({
|
|
3794
3820
|
name: "HbDrag",
|
|
3795
3821
|
__name: "index",
|
|
3796
|
-
props:
|
|
3822
|
+
props: Za,
|
|
3797
3823
|
emits: [
|
|
3798
3824
|
"update:dragList",
|
|
3799
3825
|
"handleDragStart",
|
|
@@ -3805,66 +3831,66 @@ const bl = {
|
|
|
3805
3831
|
const o = e, n = fo([]);
|
|
3806
3832
|
se(
|
|
3807
3833
|
() => o.dragList,
|
|
3808
|
-
(
|
|
3809
|
-
n.value =
|
|
3834
|
+
(p) => {
|
|
3835
|
+
n.value = p;
|
|
3810
3836
|
},
|
|
3811
3837
|
{
|
|
3812
3838
|
deep: !0,
|
|
3813
3839
|
immediate: !0
|
|
3814
3840
|
}
|
|
3815
3841
|
);
|
|
3816
|
-
const i = vt("drag"), l = t, r = (
|
|
3817
|
-
l("handleDragStart",
|
|
3818
|
-
}, u = (
|
|
3819
|
-
l("handleDragEnd",
|
|
3820
|
-
}, a = (
|
|
3821
|
-
l("handleDragAdd",
|
|
3822
|
-
}, s = (
|
|
3823
|
-
l("handleDragRemove",
|
|
3842
|
+
const i = vt("drag"), l = t, r = (p) => {
|
|
3843
|
+
l("handleDragStart", p);
|
|
3844
|
+
}, u = (p) => {
|
|
3845
|
+
l("handleDragEnd", p);
|
|
3846
|
+
}, a = (p) => {
|
|
3847
|
+
l("handleDragAdd", p);
|
|
3848
|
+
}, s = (p) => {
|
|
3849
|
+
l("handleDragRemove", p);
|
|
3824
3850
|
};
|
|
3825
|
-
return (
|
|
3851
|
+
return (p, h) => (c(), w("div", {
|
|
3826
3852
|
class: X(v(i).b())
|
|
3827
3853
|
}, [
|
|
3828
|
-
|
|
3854
|
+
p.childrenType == "component" ? (c(), R(v(Je), ce({
|
|
3829
3855
|
key: 0,
|
|
3830
3856
|
modelValue: n.value,
|
|
3831
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
3857
|
+
"onUpdate:modelValue": h[0] || (h[0] = (f) => n.value = f),
|
|
3832
3858
|
"item-key": "key",
|
|
3833
|
-
class: { [
|
|
3834
|
-
},
|
|
3835
|
-
"ghost-class":
|
|
3859
|
+
class: { [p.dragClass]: p.dragClass }
|
|
3860
|
+
}, p.$attrs, {
|
|
3861
|
+
"ghost-class": p.ghostClass,
|
|
3836
3862
|
onStart: r,
|
|
3837
3863
|
onEnd: u,
|
|
3838
3864
|
onAdd: a,
|
|
3839
3865
|
onRemove: s
|
|
3840
3866
|
}), {
|
|
3841
|
-
item: b(({ element:
|
|
3842
|
-
(c(), R(Wt(
|
|
3867
|
+
item: b(({ element: f }) => [
|
|
3868
|
+
(c(), R(Wt(f.component)))
|
|
3843
3869
|
]),
|
|
3844
3870
|
_: 1
|
|
3845
3871
|
}, 16, ["modelValue", "class", "ghost-class"])) : (c(), R(v(Je), ce({
|
|
3846
3872
|
key: 1,
|
|
3847
3873
|
modelValue: n.value,
|
|
3848
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
3874
|
+
"onUpdate:modelValue": h[1] || (h[1] = (f) => n.value = f),
|
|
3849
3875
|
"item-key": "id",
|
|
3850
|
-
class: { [
|
|
3851
|
-
},
|
|
3852
|
-
"ghost-class":
|
|
3876
|
+
class: { [p.dragClass]: p.dragClass }
|
|
3877
|
+
}, p.$attrs, {
|
|
3878
|
+
"ghost-class": p.ghostClass,
|
|
3853
3879
|
onStart: r,
|
|
3854
3880
|
onEnd: u,
|
|
3855
3881
|
onAdd: a,
|
|
3856
3882
|
onRemove: s
|
|
3857
3883
|
}), {
|
|
3858
|
-
item: b(({ element:
|
|
3884
|
+
item: b(({ element: f }) => [
|
|
3859
3885
|
m("div", null, [
|
|
3860
|
-
J(
|
|
3886
|
+
J(p.$slots, "default", { item: f }, void 0, !0)
|
|
3861
3887
|
])
|
|
3862
3888
|
]),
|
|
3863
3889
|
_: 3
|
|
3864
3890
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3865
3891
|
], 2));
|
|
3866
3892
|
}
|
|
3867
|
-
}),
|
|
3893
|
+
}), ti = /* @__PURE__ */ le(ei, [["__scopeId", "data-v-841ac118"]]), oi = ne(ti), ni = {
|
|
3868
3894
|
triggerWay: {
|
|
3869
3895
|
type: String,
|
|
3870
3896
|
default: "click"
|
|
@@ -3880,10 +3906,10 @@ const bl = {
|
|
|
3880
3906
|
getSort: {
|
|
3881
3907
|
type: Function
|
|
3882
3908
|
}
|
|
3883
|
-
},
|
|
3909
|
+
}, li = /* @__PURE__ */ te({
|
|
3884
3910
|
name: "HbLibSort",
|
|
3885
3911
|
__name: "sort",
|
|
3886
|
-
props:
|
|
3912
|
+
props: ni,
|
|
3887
3913
|
emits: ["change"],
|
|
3888
3914
|
setup(e, { expose: t, emit: o }) {
|
|
3889
3915
|
const n = e, i = o, l = O([]), r = O("");
|
|
@@ -3891,11 +3917,11 @@ const bl = {
|
|
|
3891
3917
|
() => n.menuItems,
|
|
3892
3918
|
(a) => {
|
|
3893
3919
|
let s = [];
|
|
3894
|
-
Array.isArray(a) && a.length && a.forEach((
|
|
3920
|
+
Array.isArray(a) && a.length && a.forEach((p) => {
|
|
3895
3921
|
s = [
|
|
3896
3922
|
...s,
|
|
3897
|
-
{ label: `${
|
|
3898
|
-
{ label: `${
|
|
3923
|
+
{ label: `${p.label}升序`, value: `${p.value}`, sort: "Asc" },
|
|
3924
|
+
{ label: `${p.label}降序`, value: `${p.value}`, sort: "Desc" }
|
|
3899
3925
|
];
|
|
3900
3926
|
}), l.value = s;
|
|
3901
3927
|
},
|
|
@@ -3913,14 +3939,14 @@ const bl = {
|
|
|
3913
3939
|
return t({
|
|
3914
3940
|
currentActiveItem: r
|
|
3915
3941
|
}), (a, s) => {
|
|
3916
|
-
const
|
|
3917
|
-
return c(), R(
|
|
3942
|
+
const p = K("a-menu-item"), h = K("a-menu"), f = K("a-dropdown");
|
|
3943
|
+
return c(), R(f, {
|
|
3918
3944
|
trigger: [n.triggerWay]
|
|
3919
3945
|
}, {
|
|
3920
3946
|
overlay: b(() => [
|
|
3921
3947
|
$(h, null, {
|
|
3922
3948
|
default: b(() => [
|
|
3923
|
-
(c(!0), w(ee, null,
|
|
3949
|
+
(c(!0), w(ee, null, fe(l.value, (I) => (c(), R(p, {
|
|
3924
3950
|
key: I.value + I.sort,
|
|
3925
3951
|
onClick: (H) => u(I)
|
|
3926
3952
|
}, {
|
|
@@ -3949,7 +3975,7 @@ const bl = {
|
|
|
3949
3975
|
}, 8, ["trigger"]);
|
|
3950
3976
|
};
|
|
3951
3977
|
}
|
|
3952
|
-
}),
|
|
3978
|
+
}), ai = /* @__PURE__ */ le(li, [["__scopeId", "data-v-cf0b0a0d"]]), ii = ne(ai), si = { class: "hb_lib_loading" }, ri = { class: "hb_lib_loading_loading_anima" }, ci = { class: "hb_lib_loading_load_tips" }, di = /* @__PURE__ */ te({
|
|
3953
3979
|
name: "HbLibLoading",
|
|
3954
3980
|
__name: "loading",
|
|
3955
3981
|
props: {
|
|
@@ -3960,26 +3986,26 @@ const bl = {
|
|
|
3960
3986
|
},
|
|
3961
3987
|
setup(e) {
|
|
3962
3988
|
const { t } = ve(), o = e, n = F(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
|
|
3963
|
-
return (i, l) => (c(), w("div",
|
|
3964
|
-
m("div",
|
|
3989
|
+
return (i, l) => (c(), w("div", si, [
|
|
3990
|
+
m("div", ri, [
|
|
3965
3991
|
l[0] || (l[0] = po('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
3966
|
-
m("div",
|
|
3992
|
+
m("div", ci, C(n.value), 1)
|
|
3967
3993
|
])
|
|
3968
3994
|
]));
|
|
3969
3995
|
}
|
|
3970
|
-
}),
|
|
3996
|
+
}), ui = /* @__PURE__ */ le(di, [["__scopeId", "data-v-22f438b9"]]), fi = ne(ui), pi = { class: "file-preview__body" }, bi = {
|
|
3971
3997
|
key: 0,
|
|
3972
3998
|
class: "file-preview__placeholder"
|
|
3973
|
-
},
|
|
3999
|
+
}, mi = {
|
|
3974
4000
|
key: 1,
|
|
3975
4001
|
class: "file-preview__placeholder"
|
|
3976
|
-
},
|
|
4002
|
+
}, hi = ["src"], vi = { class: "file-preview__body" }, gi = {
|
|
3977
4003
|
key: 0,
|
|
3978
4004
|
class: "file-preview__placeholder"
|
|
3979
|
-
},
|
|
4005
|
+
}, yi = {
|
|
3980
4006
|
key: 1,
|
|
3981
4007
|
class: "file-preview__placeholder"
|
|
3982
|
-
},
|
|
4008
|
+
}, _i = ["src"], Li = ["src"], Ci = { class: "file-preview__modal-footer" }, wi = /* @__PURE__ */ te({
|
|
3983
4009
|
__name: "file_preview",
|
|
3984
4010
|
props: {
|
|
3985
4011
|
visible: { type: Boolean, default: !1 },
|
|
@@ -4021,18 +4047,18 @@ const bl = {
|
|
|
4021
4047
|
() => import("./vue-office-excel-B9GbNr16.js")
|
|
4022
4048
|
);
|
|
4023
4049
|
}
|
|
4024
|
-
function
|
|
4050
|
+
function p() {
|
|
4025
4051
|
return import("./vue-office-pdf-CaEuSE8g.js");
|
|
4026
4052
|
}
|
|
4027
4053
|
function h() {
|
|
4028
4054
|
return import("./vue-office-pptx-BeWGEYJM.js");
|
|
4029
4055
|
}
|
|
4030
|
-
const
|
|
4056
|
+
const f = We(
|
|
4031
4057
|
() => a().then((B) => B.default)
|
|
4032
4058
|
), I = We(
|
|
4033
4059
|
() => s().then((B) => B.default)
|
|
4034
4060
|
), H = We(
|
|
4035
|
-
() =>
|
|
4061
|
+
() => p().then((B) => B.default)
|
|
4036
4062
|
), U = We(
|
|
4037
4063
|
() => h().then((B) => B.default)
|
|
4038
4064
|
), V = /* @__PURE__ */ new Set([
|
|
@@ -4046,8 +4072,8 @@ const bl = {
|
|
|
4046
4072
|
"ico"
|
|
4047
4073
|
]);
|
|
4048
4074
|
function k(B) {
|
|
4049
|
-
const Q = B.split(/[/\\]/).pop() ?? B, G = Q.split("?")[0] ?? Q,
|
|
4050
|
-
return
|
|
4075
|
+
const Q = B.split(/[/\\]/).pop() ?? B, G = Q.split("?")[0] ?? Q, be = G.lastIndexOf(".");
|
|
4076
|
+
return be >= 0 ? G.slice(be + 1).toLowerCase() : "";
|
|
4051
4077
|
}
|
|
4052
4078
|
function S(B, Q) {
|
|
4053
4079
|
if (B == null || B === "") return "unknown";
|
|
@@ -4089,7 +4115,7 @@ const bl = {
|
|
|
4089
4115
|
width: "100%",
|
|
4090
4116
|
overflow: "auto"
|
|
4091
4117
|
})
|
|
4092
|
-
),
|
|
4118
|
+
), pe = F(
|
|
4093
4119
|
() => n.pdfStaticFileUrl != null && n.pdfStaticFileUrl !== "" ? { staticFileUrl: n.pdfStaticFileUrl } : {}
|
|
4094
4120
|
), re = F(
|
|
4095
4121
|
() => n.showNav && D.value && A.value > 1
|
|
@@ -4135,8 +4161,8 @@ const bl = {
|
|
|
4135
4161
|
}[Q] || "application/octet-stream";
|
|
4136
4162
|
}
|
|
4137
4163
|
function N(B, Q) {
|
|
4138
|
-
const G = URL.createObjectURL(B),
|
|
4139
|
-
|
|
4164
|
+
const G = URL.createObjectURL(B), be = document.createElement("a");
|
|
4165
|
+
be.href = G, be.download = Q || "download", be.rel = "noopener", document.body.appendChild(be), be.click(), document.body.removeChild(be), URL.revokeObjectURL(G);
|
|
4140
4166
|
}
|
|
4141
4167
|
const W = O(!1);
|
|
4142
4168
|
function ie() {
|
|
@@ -4154,7 +4180,7 @@ const bl = {
|
|
|
4154
4180
|
if (!ue.value) return;
|
|
4155
4181
|
const B = T.value, Q = D.value ? g.value : 0;
|
|
4156
4182
|
i("beforeDownload", { item: B, index: Q });
|
|
4157
|
-
const G = ie(),
|
|
4183
|
+
const G = ie(), be = B?.downloadUrl;
|
|
4158
4184
|
W.value = !0;
|
|
4159
4185
|
try {
|
|
4160
4186
|
if (n.customDownload)
|
|
@@ -4165,28 +4191,28 @@ const bl = {
|
|
|
4165
4191
|
fileName: d.value,
|
|
4166
4192
|
downloadName: G
|
|
4167
4193
|
});
|
|
4168
|
-
else if (
|
|
4169
|
-
const
|
|
4170
|
-
if (!
|
|
4171
|
-
const He = await
|
|
4194
|
+
else if (be) {
|
|
4195
|
+
const me = await fetch(be);
|
|
4196
|
+
if (!me.ok) throw new Error(String(me.status));
|
|
4197
|
+
const He = await me.blob();
|
|
4172
4198
|
N(He, G);
|
|
4173
4199
|
} else {
|
|
4174
|
-
const
|
|
4175
|
-
if (typeof
|
|
4176
|
-
const He = await fetch(
|
|
4200
|
+
const me = L.value;
|
|
4201
|
+
if (typeof me == "string") {
|
|
4202
|
+
const He = await fetch(me);
|
|
4177
4203
|
if (!He.ok) throw new Error(String(He.status));
|
|
4178
4204
|
const lt = await He.blob();
|
|
4179
4205
|
N(lt, G);
|
|
4180
|
-
} else if (
|
|
4181
|
-
N(
|
|
4182
|
-
else if (
|
|
4206
|
+
} else if (me instanceof Blob)
|
|
4207
|
+
N(me, G);
|
|
4208
|
+
else if (me instanceof ArrayBuffer) {
|
|
4183
4209
|
const He = M(G);
|
|
4184
|
-
N(new Blob([
|
|
4210
|
+
N(new Blob([me], { type: He }), G);
|
|
4185
4211
|
}
|
|
4186
4212
|
}
|
|
4187
4213
|
i("downloaded", { item: B, index: Q });
|
|
4188
|
-
} catch (
|
|
4189
|
-
i("error",
|
|
4214
|
+
} catch (me) {
|
|
4215
|
+
i("error", me);
|
|
4190
4216
|
} finally {
|
|
4191
4217
|
W.value = !1;
|
|
4192
4218
|
}
|
|
@@ -4255,8 +4281,8 @@ const bl = {
|
|
|
4255
4281
|
/** 关闭 */
|
|
4256
4282
|
closeModal: u
|
|
4257
4283
|
}), (B, Q) => {
|
|
4258
|
-
const G = K("a-button"),
|
|
4259
|
-
return c(), R(
|
|
4284
|
+
const G = K("a-button"), be = K("a-space"), me = K("a-modal");
|
|
4285
|
+
return c(), R(me, {
|
|
4260
4286
|
"wrap-class-name": "file-preview-modal-wrap",
|
|
4261
4287
|
visible: e.visible,
|
|
4262
4288
|
title: oe.value,
|
|
@@ -4270,8 +4296,8 @@ const bl = {
|
|
|
4270
4296
|
onCancel: u
|
|
4271
4297
|
}, {
|
|
4272
4298
|
footer: b(() => [
|
|
4273
|
-
m("div",
|
|
4274
|
-
$(
|
|
4299
|
+
m("div", Ci, [
|
|
4300
|
+
$(be, {
|
|
4275
4301
|
size: 8,
|
|
4276
4302
|
wrap: ""
|
|
4277
4303
|
}, {
|
|
@@ -4326,8 +4352,8 @@ const bl = {
|
|
|
4326
4352
|
class: "file-preview",
|
|
4327
4353
|
style: de({ height: q.value })
|
|
4328
4354
|
}, [
|
|
4329
|
-
m("div",
|
|
4330
|
-
_.value ? y.value === "unknown" ? (c(), w("div",
|
|
4355
|
+
m("div", pi, [
|
|
4356
|
+
_.value ? y.value === "unknown" ? (c(), w("div", mi, [
|
|
4331
4357
|
J(B.$slots, "unsupported", {}, () => [
|
|
4332
4358
|
E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4333
4359
|
], !0)
|
|
@@ -4338,7 +4364,7 @@ const bl = {
|
|
|
4338
4364
|
alt: "",
|
|
4339
4365
|
onLoad: Pe,
|
|
4340
4366
|
onError: De
|
|
4341
|
-
}, null, 40,
|
|
4367
|
+
}, null, 40, hi)) : y.value === "docx" ? (c(), R(v(f), {
|
|
4342
4368
|
key: `docx-${Y.value}`,
|
|
4343
4369
|
src: x.value,
|
|
4344
4370
|
class: "file-preview__office",
|
|
@@ -4358,7 +4384,7 @@ const bl = {
|
|
|
4358
4384
|
src: x.value,
|
|
4359
4385
|
class: "file-preview__office",
|
|
4360
4386
|
style: ae.value
|
|
4361
|
-
},
|
|
4387
|
+
}, pe.value, {
|
|
4362
4388
|
onRendered: Se,
|
|
4363
4389
|
onError: Te
|
|
4364
4390
|
}), null, 16, ["src", "style"])) : y.value === "pptx" ? (c(), R(v(U), {
|
|
@@ -4368,7 +4394,7 @@ const bl = {
|
|
|
4368
4394
|
style: de(ae.value),
|
|
4369
4395
|
onRendered: Se,
|
|
4370
4396
|
onError: Te
|
|
4371
|
-
}, null, 8, ["src", "style"])) : z("", !0) : (c(), w("div",
|
|
4397
|
+
}, null, 8, ["src", "style"])) : z("", !0) : (c(), w("div", bi, [
|
|
4372
4398
|
J(B.$slots, "empty", {}, () => [
|
|
4373
4399
|
E(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
|
|
4374
4400
|
], !0)
|
|
@@ -4379,8 +4405,8 @@ const bl = {
|
|
|
4379
4405
|
class: "file-preview",
|
|
4380
4406
|
style: de({ height: q.value })
|
|
4381
4407
|
}, [
|
|
4382
|
-
m("div",
|
|
4383
|
-
_.value ? y.value === "unknown" ? (c(), w("div",
|
|
4408
|
+
m("div", vi, [
|
|
4409
|
+
_.value ? y.value === "unknown" ? (c(), w("div", yi, [
|
|
4384
4410
|
J(B.$slots, "unsupported", {}, () => [
|
|
4385
4411
|
E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4386
4412
|
], !0)
|
|
@@ -4391,14 +4417,14 @@ const bl = {
|
|
|
4391
4417
|
alt: "",
|
|
4392
4418
|
onLoad: Pe,
|
|
4393
4419
|
onError: De
|
|
4394
|
-
}, null, 40,
|
|
4420
|
+
}, null, 40, _i)) : (c(), w("iframe", {
|
|
4395
4421
|
key: 3,
|
|
4396
4422
|
src: P.value,
|
|
4397
4423
|
class: "file-preview-modal-body__iframe",
|
|
4398
4424
|
width: "100%",
|
|
4399
4425
|
style: { border: "none" },
|
|
4400
4426
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4401
|
-
}, null, 8,
|
|
4427
|
+
}, null, 8, Li)) : (c(), w("div", gi, [
|
|
4402
4428
|
J(B.$slots, "empty", {}, () => [
|
|
4403
4429
|
E(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
|
|
4404
4430
|
], !0)
|
|
@@ -4410,8 +4436,8 @@ const bl = {
|
|
|
4410
4436
|
}, 8, ["visible", "title", "width", "centered", "destroy-on-close", "mask-closable", "keyboard"]);
|
|
4411
4437
|
};
|
|
4412
4438
|
}
|
|
4413
|
-
}),
|
|
4414
|
-
function
|
|
4439
|
+
}), ki = /* @__PURE__ */ le(wi, [["__scopeId", "data-v-513d7b3b"]]), Si = ne(ki), Zt = "//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.css", xi = "//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.js", eo = Symbol("HB_ICON_GLOBAL_KEY"), Ti = he(eo, {});
|
|
4440
|
+
function Fi(e) {
|
|
4415
4441
|
return e.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js");
|
|
4416
4442
|
}
|
|
4417
4443
|
function ze(e) {
|
|
@@ -4420,25 +4446,25 @@ function ze(e) {
|
|
|
4420
4446
|
t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
|
|
4421
4447
|
return (t >>> 0).toString(36);
|
|
4422
4448
|
}
|
|
4423
|
-
function
|
|
4449
|
+
function Hi(e, t) {
|
|
4424
4450
|
return e === !0 ? `hb-if-${ze(t)}-` : typeof e == "string" ? e : "";
|
|
4425
4451
|
}
|
|
4426
|
-
function
|
|
4452
|
+
function $i(e, t) {
|
|
4427
4453
|
return t ? e.replace(
|
|
4428
4454
|
/<symbol\b([^>]*?)\bid\s*=\s*(["'])([^"']+)\2/gi,
|
|
4429
4455
|
(o, n, i, l) => `<symbol${n}id=${i}${t}${l}${i}`
|
|
4430
4456
|
) : e;
|
|
4431
4457
|
}
|
|
4432
|
-
function
|
|
4458
|
+
function Ii(e, t = "") {
|
|
4433
4459
|
return t === "" ? `hb-iconfont-svg-${ze(e)}` : `hb-iconfont-svg-${ze(`${e}\0${t}`)}`;
|
|
4434
4460
|
}
|
|
4435
|
-
function
|
|
4461
|
+
function Mi(e, t) {
|
|
4436
4462
|
return e.replace(/<svg(\b[^>]*?)>/i, (o, n) => {
|
|
4437
4463
|
const i = n.replace(/\bid\s*=\s*(["'])[^"']*\1/gi, "").trim();
|
|
4438
4464
|
return i ? `<svg id="${t}" ${i}>` : `<svg id="${t}">`;
|
|
4439
4465
|
});
|
|
4440
4466
|
}
|
|
4441
|
-
function
|
|
4467
|
+
function Bi(e) {
|
|
4442
4468
|
const o = e.match(
|
|
4443
4469
|
/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/
|
|
4444
4470
|
)?.[1] ?? "", n = /\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g, i = [];
|
|
@@ -4448,7 +4474,7 @@ function Mi(e) {
|
|
|
4448
4474
|
const r = to(i), u = r ? i.map((a) => a.slice(r.length)) : i.slice();
|
|
4449
4475
|
return { baseClass: o, prefix: r, names: u };
|
|
4450
4476
|
}
|
|
4451
|
-
function
|
|
4477
|
+
function Di(e) {
|
|
4452
4478
|
const t = [], o = /<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;
|
|
4453
4479
|
let n;
|
|
4454
4480
|
for (; (n = o.exec(e)) !== null; )
|
|
@@ -4466,74 +4492,74 @@ function to(e) {
|
|
|
4466
4492
|
}
|
|
4467
4493
|
return t;
|
|
4468
4494
|
}
|
|
4469
|
-
function
|
|
4495
|
+
function Ai(e, t) {
|
|
4470
4496
|
if (typeof document > "u" || document.getElementById(t)) return;
|
|
4471
4497
|
const o = document.createElement("style");
|
|
4472
4498
|
o.id = t, o.textContent = e, document.head.appendChild(o);
|
|
4473
4499
|
}
|
|
4474
|
-
function
|
|
4500
|
+
function Oi(e, t, o = "") {
|
|
4475
4501
|
if (typeof document > "u") return Promise.resolve();
|
|
4476
4502
|
const n = o === "" ? `hb-iconfont-js-${ze(t)}` : `hb-iconfont-js-${ze(`${t}\0${o}`)}`;
|
|
4477
4503
|
if (document.getElementById(n)) return Promise.resolve();
|
|
4478
|
-
const i =
|
|
4504
|
+
const i = Ii(t, o);
|
|
4479
4505
|
if (document.getElementById(i)) return Promise.resolve();
|
|
4480
|
-
const l =
|
|
4506
|
+
const l = Mi(e, i);
|
|
4481
4507
|
return new Promise((r, u) => {
|
|
4482
|
-
const a = new Blob([l], { type: "text/javascript" }), s = URL.createObjectURL(a),
|
|
4483
|
-
|
|
4508
|
+
const a = new Blob([l], { type: "text/javascript" }), s = URL.createObjectURL(a), p = document.createElement("script");
|
|
4509
|
+
p.id = n, o && p.setAttribute("data-hb-iconfont-scope", o), p.async = !0, p.onload = () => {
|
|
4484
4510
|
URL.revokeObjectURL(s), r();
|
|
4485
|
-
},
|
|
4511
|
+
}, p.onerror = () => {
|
|
4486
4512
|
URL.revokeObjectURL(s), u(
|
|
4487
4513
|
new Error(
|
|
4488
4514
|
`[HbLibIcon] iconfont JS 脚本执行失败:${t}`
|
|
4489
4515
|
)
|
|
4490
4516
|
);
|
|
4491
|
-
},
|
|
4517
|
+
}, p.src = s, document.head.appendChild(p);
|
|
4492
4518
|
});
|
|
4493
4519
|
}
|
|
4494
4520
|
function oo(e, t = "font", o) {
|
|
4495
4521
|
if (!e) {
|
|
4496
|
-
const s = t === "font" ? Zt :
|
|
4497
|
-
e =
|
|
4522
|
+
const s = t === "font" ? Zt : xi;
|
|
4523
|
+
e = Ti?.cssUrl || s;
|
|
4498
4524
|
}
|
|
4499
4525
|
const n = O(""), i = O(""), l = O([]), r = O("font");
|
|
4500
4526
|
let u = 0;
|
|
4501
4527
|
return se(() => bo(e), async (s) => {
|
|
4502
|
-
const
|
|
4528
|
+
const p = ++u, h = s || e;
|
|
4503
4529
|
if (!h) {
|
|
4504
4530
|
n.value = "", i.value = "", l.value = [], r.value = "font";
|
|
4505
4531
|
return;
|
|
4506
4532
|
}
|
|
4507
|
-
if (t === "symbol" &&
|
|
4533
|
+
if (t === "symbol" && Fi(h)) {
|
|
4508
4534
|
try {
|
|
4509
4535
|
const I = await (await fetch(h)).text();
|
|
4510
|
-
if (
|
|
4511
|
-
const H =
|
|
4536
|
+
if (p !== u) return;
|
|
4537
|
+
const H = Hi(
|
|
4512
4538
|
o?.symbolIdScope,
|
|
4513
4539
|
h
|
|
4514
|
-
), U =
|
|
4515
|
-
if (await
|
|
4540
|
+
), U = $i(I, H), { prefix: V, names: k } = Di(U);
|
|
4541
|
+
if (await Oi(U, h, H), p !== u) return;
|
|
4516
4542
|
r.value = "symbol", n.value = "", i.value = V, l.value = k;
|
|
4517
|
-
} catch (
|
|
4543
|
+
} catch (f) {
|
|
4518
4544
|
console.error(
|
|
4519
4545
|
"[HbLibIcon] 加载 iconfont Symbol 失败:",
|
|
4520
4546
|
h,
|
|
4521
|
-
|
|
4547
|
+
f
|
|
4522
4548
|
);
|
|
4523
4549
|
}
|
|
4524
4550
|
return;
|
|
4525
4551
|
}
|
|
4526
4552
|
try {
|
|
4527
4553
|
const I = await (await fetch(h)).text();
|
|
4528
|
-
|
|
4529
|
-
const { baseClass: H, prefix: U, names: V } =
|
|
4530
|
-
if (
|
|
4554
|
+
Ai(I, "hb-iconfont-" + h);
|
|
4555
|
+
const { baseClass: H, prefix: U, names: V } = Bi(I);
|
|
4556
|
+
if (p !== u) return;
|
|
4531
4557
|
r.value = "font", n.value = H, i.value = U, l.value = V;
|
|
4532
|
-
} catch (
|
|
4558
|
+
} catch (f) {
|
|
4533
4559
|
console.error(
|
|
4534
4560
|
"[HbLibIcon] 加载 iconfont CSS 失败:",
|
|
4535
4561
|
h,
|
|
4536
|
-
|
|
4562
|
+
f
|
|
4537
4563
|
);
|
|
4538
4564
|
}
|
|
4539
4565
|
}, { immediate: !0 }), {
|
|
@@ -4543,11 +4569,11 @@ function oo(e, t = "font", o) {
|
|
|
4543
4569
|
iconMode: r
|
|
4544
4570
|
};
|
|
4545
4571
|
}
|
|
4546
|
-
const
|
|
4572
|
+
const Pi = { class: "hb-icon-list" }, Ui = ["onClick"], Ei = {
|
|
4547
4573
|
key: 1,
|
|
4548
4574
|
class: "hb-icon-list__symbol",
|
|
4549
4575
|
"aria-hidden": "true"
|
|
4550
|
-
},
|
|
4576
|
+
}, Ri = ["href"], Ni = { class: "hb-icon-list__name" }, zi = /* @__PURE__ */ te({
|
|
4551
4577
|
name: "HbLibIconList",
|
|
4552
4578
|
__name: "icon_list",
|
|
4553
4579
|
props: {
|
|
@@ -4557,48 +4583,48 @@ const Oi = { class: "hb-icon-list" }, Pi = ["onClick"], Ui = {
|
|
|
4557
4583
|
},
|
|
4558
4584
|
emits: ["select", "update:selected"],
|
|
4559
4585
|
setup(e, { emit: t }) {
|
|
4560
|
-
function o(
|
|
4561
|
-
return typeof CSS < "u" && CSS.escape ? CSS.escape(
|
|
4586
|
+
function o(f) {
|
|
4587
|
+
return typeof CSS < "u" && CSS.escape ? CSS.escape(f) : f;
|
|
4562
4588
|
}
|
|
4563
4589
|
const n = e, i = t, l = F(() => n.cssUrl || ""), { iconBaseClass: r, iconPrefix: u, iconClasses: a, iconMode: s } = oo(
|
|
4564
4590
|
l,
|
|
4565
4591
|
n.mode
|
|
4566
|
-
),
|
|
4592
|
+
), p = O(n.selected);
|
|
4567
4593
|
se(
|
|
4568
4594
|
() => n.selected,
|
|
4569
|
-
(
|
|
4570
|
-
|
|
4595
|
+
(f) => {
|
|
4596
|
+
p.value = f;
|
|
4571
4597
|
}
|
|
4572
4598
|
);
|
|
4573
|
-
const h = (
|
|
4574
|
-
|
|
4599
|
+
const h = (f) => {
|
|
4600
|
+
p.value = f, i("select", f), i("update:selected", f);
|
|
4575
4601
|
};
|
|
4576
|
-
return (
|
|
4577
|
-
J(
|
|
4602
|
+
return (f, I) => (c(), w("div", Pi, [
|
|
4603
|
+
J(f.$slots, "iconList", {
|
|
4578
4604
|
iconClasses: v(a),
|
|
4579
4605
|
iconBaseClass: v(r),
|
|
4580
4606
|
iconPrefix: v(u),
|
|
4581
4607
|
iconMode: v(s)
|
|
4582
4608
|
}, () => [
|
|
4583
|
-
(c(!0), w(ee, null,
|
|
4609
|
+
(c(!0), w(ee, null, fe(v(a), (H) => (c(), w("div", {
|
|
4584
4610
|
key: H,
|
|
4585
|
-
class: X(["hb-icon-list__item", { "hb-icon-list__item--active": H ===
|
|
4611
|
+
class: X(["hb-icon-list__item", { "hb-icon-list__item--active": H === p.value }]),
|
|
4586
4612
|
onClick: (U) => h(H)
|
|
4587
4613
|
}, [
|
|
4588
4614
|
v(s) === "font" ? (c(), w("i", {
|
|
4589
4615
|
key: 0,
|
|
4590
4616
|
class: X([v(r), v(u) + H])
|
|
4591
|
-
}, null, 2)) : (c(), w("svg",
|
|
4617
|
+
}, null, 2)) : (c(), w("svg", Ei, [
|
|
4592
4618
|
m("use", {
|
|
4593
4619
|
href: "#" + o(v(u) + H)
|
|
4594
|
-
}, null, 8,
|
|
4620
|
+
}, null, 8, Ri)
|
|
4595
4621
|
])),
|
|
4596
|
-
m("span",
|
|
4597
|
-
], 10,
|
|
4622
|
+
m("span", Ni, C(H), 1)
|
|
4623
|
+
], 10, Ui))), 128))
|
|
4598
4624
|
], !0)
|
|
4599
4625
|
]));
|
|
4600
4626
|
}
|
|
4601
|
-
}), mt = /* @__PURE__ */ le(
|
|
4627
|
+
}), mt = /* @__PURE__ */ le(zi, [["__scopeId", "data-v-1ac4c7e7"]]), no = mt;
|
|
4602
4628
|
no.install = (e, t) => {
|
|
4603
4629
|
e.provide(eo, {
|
|
4604
4630
|
cssUrl: t?.cssUrl ?? Zt,
|
|
@@ -4607,11 +4633,11 @@ no.install = (e, t) => {
|
|
|
4607
4633
|
const o = mt.name ?? "HbLibIconList";
|
|
4608
4634
|
e.component(o, mt);
|
|
4609
4635
|
};
|
|
4610
|
-
const
|
|
4636
|
+
const Vi = {
|
|
4611
4637
|
key: 1,
|
|
4612
4638
|
class: "hb-lib-icon__symbol",
|
|
4613
4639
|
"aria-hidden": "true"
|
|
4614
|
-
},
|
|
4640
|
+
}, ji = ["href"], Wi = /* @__PURE__ */ te({
|
|
4615
4641
|
name: "HbLibIcon",
|
|
4616
4642
|
__name: "icon",
|
|
4617
4643
|
props: {
|
|
@@ -4631,9 +4657,9 @@ const zi = {
|
|
|
4631
4657
|
), i = F(
|
|
4632
4658
|
() => t.iMode && O(t.iMode) || he("iconMode") || O("")
|
|
4633
4659
|
), l = he(nt, null), r = F(() => {
|
|
4634
|
-
const h = l?.HbLibIcon,
|
|
4660
|
+
const h = l?.HbLibIcon, f = t.width ?? h?.width ?? 27, I = t.height ?? h?.height ?? 27;
|
|
4635
4661
|
return {
|
|
4636
|
-
width:
|
|
4662
|
+
width: f + "px",
|
|
4637
4663
|
height: I + "px",
|
|
4638
4664
|
display: "inline-block"
|
|
4639
4665
|
};
|
|
@@ -4645,23 +4671,23 @@ const zi = {
|
|
|
4645
4671
|
function s(h) {
|
|
4646
4672
|
return encodeURIComponent(h);
|
|
4647
4673
|
}
|
|
4648
|
-
const
|
|
4674
|
+
const p = F(() => {
|
|
4649
4675
|
const h = u.value;
|
|
4650
4676
|
return h ? `#${s(h)}` : "";
|
|
4651
4677
|
});
|
|
4652
|
-
return (h,
|
|
4678
|
+
return (h, f) => (c(), w("span", {
|
|
4653
4679
|
class: X(t.className),
|
|
4654
4680
|
style: de(r.value)
|
|
4655
4681
|
}, [
|
|
4656
4682
|
i.value.value === "font" ? (c(), w("i", {
|
|
4657
4683
|
key: 0,
|
|
4658
4684
|
class: X(a.value)
|
|
4659
|
-
}, null, 2)) : (c(), w("svg",
|
|
4660
|
-
m("use", { href:
|
|
4685
|
+
}, null, 2)) : (c(), w("svg", Vi, [
|
|
4686
|
+
m("use", { href: p.value }, null, 8, ji)
|
|
4661
4687
|
]))
|
|
4662
4688
|
], 6));
|
|
4663
4689
|
}
|
|
4664
|
-
}),
|
|
4690
|
+
}), qi = /* @__PURE__ */ le(Wi, [["__scopeId", "data-v-91f8ae8b"]]), Yi = qi, Ki = /* @__PURE__ */ te({
|
|
4665
4691
|
__name: "iconBox",
|
|
4666
4692
|
props: {
|
|
4667
4693
|
url: {},
|
|
@@ -4678,37 +4704,37 @@ const zi = {
|
|
|
4678
4704
|
);
|
|
4679
4705
|
return Ue("iconPrefix", n), Ue("iconMode", i), Ue("iconClasses", o), Ue("iconBaseClass", l), (r, u) => J(r.$slots, "default");
|
|
4680
4706
|
}
|
|
4681
|
-
}),
|
|
4707
|
+
}), Gi = Ki, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4682
4708
|
__proto__: null,
|
|
4683
|
-
HbLibAnchor:
|
|
4684
|
-
HbLibCard:
|
|
4709
|
+
HbLibAnchor: ba,
|
|
4710
|
+
HbLibCard: sa,
|
|
4685
4711
|
HbLibCopy: Qt,
|
|
4686
|
-
HbLibDetailBox:
|
|
4687
|
-
HbLibFilePreview:
|
|
4688
|
-
HbLibFooterBar:
|
|
4712
|
+
HbLibDetailBox: Ha,
|
|
4713
|
+
HbLibFilePreview: Si,
|
|
4714
|
+
HbLibFooterBar: Ma,
|
|
4689
4715
|
HbLibFormItemFilterModal: Po,
|
|
4690
|
-
HbLibFormTooltipSelect:
|
|
4691
|
-
HbLibFuncCompDrag:
|
|
4692
|
-
HbLibIcon:
|
|
4693
|
-
HbLibIconBox:
|
|
4716
|
+
HbLibFormTooltipSelect: Dl,
|
|
4717
|
+
HbLibFuncCompDrag: oi,
|
|
4718
|
+
HbLibIcon: Yi,
|
|
4719
|
+
HbLibIconBox: Gi,
|
|
4694
4720
|
HbLibIconList: no,
|
|
4695
|
-
HbLibImportFile:
|
|
4696
|
-
HbLibListBtnsAct:
|
|
4721
|
+
HbLibImportFile: Vl,
|
|
4722
|
+
HbLibListBtnsAct: sn,
|
|
4697
4723
|
HbLibListForm: Wo,
|
|
4698
|
-
HbLibListMultiSelect:
|
|
4699
|
-
HbLibListPageAct:
|
|
4700
|
-
HbLibListPageContainer:
|
|
4701
|
-
HbLibListTable:
|
|
4702
|
-
HbLibLoading:
|
|
4703
|
-
HbLibLogModal:
|
|
4704
|
-
HbLibModal:
|
|
4705
|
-
HbLibMutilpleSelectModal:
|
|
4706
|
-
HbLibPageHeader:
|
|
4707
|
-
HbLibSort:
|
|
4708
|
-
HbLibTableAct:
|
|
4709
|
-
HbLibTableColumnSet:
|
|
4710
|
-
HbLibUnDetailBox:
|
|
4711
|
-
HbUiConfig:
|
|
4724
|
+
HbLibListMultiSelect: xn,
|
|
4725
|
+
HbLibListPageAct: en,
|
|
4726
|
+
HbLibListPageContainer: dn,
|
|
4727
|
+
HbLibListTable: Ll,
|
|
4728
|
+
HbLibLoading: fi,
|
|
4729
|
+
HbLibLogModal: Kl,
|
|
4730
|
+
HbLibModal: Oa,
|
|
4731
|
+
HbLibMutilpleSelectModal: In,
|
|
4732
|
+
HbLibPageHeader: Ga,
|
|
4733
|
+
HbLibSort: ii,
|
|
4734
|
+
HbLibTableAct: Vn,
|
|
4735
|
+
HbLibTableColumnSet: Il,
|
|
4736
|
+
HbLibUnDetailBox: Va,
|
|
4737
|
+
HbUiConfig: Ql
|
|
4712
4738
|
}, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ new Map();
|
|
4713
4739
|
let At;
|
|
4714
4740
|
$o && (document.addEventListener("mousedown", (e) => At = e), document.addEventListener("mouseup", (e) => {
|
|
@@ -4719,11 +4745,11 @@ $o && (document.addEventListener("mousedown", (e) => At = e), document.addEventL
|
|
|
4719
4745
|
function Ot(e, t) {
|
|
4720
4746
|
let o = [];
|
|
4721
4747
|
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, i) {
|
|
4722
|
-
const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u,
|
|
4723
|
-
a || s ||
|
|
4748
|
+
const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u, p = e.contains(r) || e.contains(u), h = e === r, f = o.length && o.some((H) => H?.contains(r)) || o.length && o.includes(u), I = l && (l.contains(r) || l.contains(u));
|
|
4749
|
+
a || s || p || h || f || I || t.value(n, i);
|
|
4724
4750
|
};
|
|
4725
4751
|
}
|
|
4726
|
-
const
|
|
4752
|
+
const Xi = {
|
|
4727
4753
|
beforeMount(e, t) {
|
|
4728
4754
|
$e.has(e) || $e.set(e, []), $e.get(e).push({
|
|
4729
4755
|
documentHandler: Ot(e, t),
|
|
@@ -4741,7 +4767,7 @@ const Ji = {
|
|
|
4741
4767
|
unmounted(e) {
|
|
4742
4768
|
$e.delete(e);
|
|
4743
4769
|
}
|
|
4744
|
-
},
|
|
4770
|
+
}, Qi = {
|
|
4745
4771
|
mounted(e, t) {
|
|
4746
4772
|
const { value: o, arg: n } = t;
|
|
4747
4773
|
if (typeof o != "function") {
|
|
@@ -4765,7 +4791,7 @@ const Ji = {
|
|
|
4765
4791
|
cpText: t
|
|
4766
4792
|
});
|
|
4767
4793
|
o.mount(e._dynamicContainer), e._dynamicApp = o, e._dynamicPrevValue = t;
|
|
4768
|
-
},
|
|
4794
|
+
}, Zi = {
|
|
4769
4795
|
mounted(e, t) {
|
|
4770
4796
|
if (!e._dynamicContainer) {
|
|
4771
4797
|
const o = document.createElement("div");
|
|
@@ -4779,13 +4805,13 @@ const Ji = {
|
|
|
4779
4805
|
unmounted(e) {
|
|
4780
4806
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
4781
4807
|
}
|
|
4782
|
-
},
|
|
4808
|
+
}, es = { cos: Xi, dc: Qi, icp: Zi }, Ut = (e) => e.downloadUrl, ts = (e, t, o) => {
|
|
4783
4809
|
const n = (a) => a.previewUrl, i = o?.preferredIndex;
|
|
4784
4810
|
if (typeof i == "number" && i >= 0 && i < e.length) {
|
|
4785
4811
|
const a = e[i];
|
|
4786
4812
|
if (a === t) return i;
|
|
4787
|
-
const s = "uploadDate" in a && a.uploadDate || "",
|
|
4788
|
-
if (n(a) === n(t) && (a.attachmentDesc || "") === (t.attachmentDesc || "") && s ===
|
|
4813
|
+
const s = "uploadDate" in a && a.uploadDate || "", p = "uploadDate" in t && t.uploadDate || "";
|
|
4814
|
+
if (n(a) === n(t) && (a.attachmentDesc || "") === (t.attachmentDesc || "") && s === p)
|
|
4789
4815
|
return i;
|
|
4790
4816
|
}
|
|
4791
4817
|
const l = t.attachmentId;
|
|
@@ -4833,7 +4859,7 @@ function Et(e) {
|
|
|
4833
4859
|
}, n.onerror = () => o(new Error("xhr")), n.send();
|
|
4834
4860
|
});
|
|
4835
4861
|
}
|
|
4836
|
-
async function
|
|
4862
|
+
async function os(e) {
|
|
4837
4863
|
const t = lo(e), o = typeof document < "u" ? document.documentMode : void 0;
|
|
4838
4864
|
if (typeof o == "number" && o > 0)
|
|
4839
4865
|
return Et(t);
|
|
@@ -4847,7 +4873,7 @@ async function ts(e) {
|
|
|
4847
4873
|
}
|
|
4848
4874
|
return Et(t);
|
|
4849
4875
|
}
|
|
4850
|
-
function
|
|
4876
|
+
function ns(e, t) {
|
|
4851
4877
|
const o = t.trim() || "download", n = navigator;
|
|
4852
4878
|
if (typeof n.msSaveOrOpenBlob == "function") {
|
|
4853
4879
|
n.msSaveOrOpenBlob(e, o);
|
|
@@ -4861,7 +4887,7 @@ function os(e, t) {
|
|
|
4861
4887
|
URL.revokeObjectURL(i);
|
|
4862
4888
|
}
|
|
4863
4889
|
}
|
|
4864
|
-
function
|
|
4890
|
+
function ls(e) {
|
|
4865
4891
|
const t = lo(e), o = document.createElement("iframe");
|
|
4866
4892
|
o.style.cssText = "position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;", o.src = t, document.body.appendChild(o), window.setTimeout(() => {
|
|
4867
4893
|
try {
|
|
@@ -4873,14 +4899,14 @@ function ns(e) {
|
|
|
4873
4899
|
async function st(e, t) {
|
|
4874
4900
|
const o = (t || "download").trim() || "download";
|
|
4875
4901
|
try {
|
|
4876
|
-
const n = await
|
|
4877
|
-
|
|
4902
|
+
const n = await os(e);
|
|
4903
|
+
ns(n, o);
|
|
4878
4904
|
return;
|
|
4879
4905
|
} catch {
|
|
4880
|
-
|
|
4906
|
+
ls(e);
|
|
4881
4907
|
}
|
|
4882
4908
|
}
|
|
4883
|
-
const
|
|
4909
|
+
const as = 400;
|
|
4884
4910
|
function Rt(e) {
|
|
4885
4911
|
return e.previewUrl?.trim() || "";
|
|
4886
4912
|
}
|
|
@@ -4890,7 +4916,7 @@ function qe(e) {
|
|
|
4890
4916
|
function Ye(e) {
|
|
4891
4917
|
return e.attachmentDesc?.trim() || e.fileName?.trim() || "download";
|
|
4892
4918
|
}
|
|
4893
|
-
function
|
|
4919
|
+
function Ss(e) {
|
|
4894
4920
|
const { t } = ve(), o = O(!1), n = O(""), i = O(""), l = O(-1), r = O(-1), u = F(() => e.value.attachmentInfos ?? []), a = F(
|
|
4895
4921
|
() => u.value.reduce((x, P, Y) => {
|
|
4896
4922
|
const _ = Rt(P);
|
|
@@ -4909,12 +4935,12 @@ function ks(e) {
|
|
|
4909
4935
|
}, [])
|
|
4910
4936
|
), s = F(
|
|
4911
4937
|
() => a.value.map((x) => x.item)
|
|
4912
|
-
),
|
|
4938
|
+
), p = F(
|
|
4913
4939
|
() => r.value >= 0 ? s.value : []
|
|
4914
4940
|
), h = F(() => {
|
|
4915
4941
|
const x = r.value;
|
|
4916
4942
|
return x >= 0 ? a.value[x] ?? null : null;
|
|
4917
|
-
}),
|
|
4943
|
+
}), f = F(
|
|
4918
4944
|
() => h.value?.item ?? null
|
|
4919
4945
|
), I = F(
|
|
4920
4946
|
() => r.value > 0 && s.value.length > 1
|
|
@@ -4943,8 +4969,8 @@ function ks(e) {
|
|
|
4943
4969
|
previewAttachmentIndexRef: l,
|
|
4944
4970
|
previewFileIndexRef: r,
|
|
4945
4971
|
filePreviewList: s,
|
|
4946
|
-
activeFilePreviewList:
|
|
4947
|
-
currentPreviewFile:
|
|
4972
|
+
activeFilePreviewList: p,
|
|
4973
|
+
currentPreviewFile: f,
|
|
4948
4974
|
hasPrevAttachment: I,
|
|
4949
4975
|
hasNextAttachment: H,
|
|
4950
4976
|
showAttachmentNavBar: U,
|
|
@@ -4954,7 +4980,7 @@ function ks(e) {
|
|
|
4954
4980
|
Ie.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));
|
|
4955
4981
|
return;
|
|
4956
4982
|
}
|
|
4957
|
-
const _ =
|
|
4983
|
+
const _ = ts(u.value, x, {
|
|
4958
4984
|
preferredIndex: P
|
|
4959
4985
|
});
|
|
4960
4986
|
if (_ >= 0) {
|
|
@@ -4995,13 +5021,13 @@ function ks(e) {
|
|
|
4995
5021
|
for (let P = 0; P < x.length; P++) {
|
|
4996
5022
|
const Y = x[P];
|
|
4997
5023
|
await st(qe(Y), Ye(Y)), P < x.length - 1 && await new Promise(
|
|
4998
|
-
(_) => setTimeout(_,
|
|
5024
|
+
(_) => setTimeout(_, as)
|
|
4999
5025
|
);
|
|
5000
5026
|
}
|
|
5001
5027
|
}
|
|
5002
5028
|
};
|
|
5003
5029
|
}
|
|
5004
|
-
const
|
|
5030
|
+
const xs = (e) => {
|
|
5005
5031
|
const t = O();
|
|
5006
5032
|
t.value = e.slice();
|
|
5007
5033
|
const o = JSON.parse(JSON.stringify(t.value));
|
|
@@ -5015,7 +5041,7 @@ const Ss = (e) => {
|
|
|
5015
5041
|
}), t.value = l;
|
|
5016
5042
|
}
|
|
5017
5043
|
};
|
|
5018
|
-
},
|
|
5044
|
+
}, Ts = (e) => {
|
|
5019
5045
|
let t = !0;
|
|
5020
5046
|
return { start: () => {
|
|
5021
5047
|
Me(() => {
|
|
@@ -5023,14 +5049,14 @@ const Ss = (e) => {
|
|
|
5023
5049
|
if (l) {
|
|
5024
5050
|
let r = !1, u = { x: 0, y: 0 };
|
|
5025
5051
|
const a = l.querySelector(".ant-modal-header"), s = l.querySelector(".ant-modal-footer");
|
|
5026
|
-
a && (a.style.cursor = "move", s.style.cursor = "move", a.addEventListener("mousedown", (
|
|
5027
|
-
r = !0, u.x =
|
|
5028
|
-
}), s.addEventListener("mousedown", (
|
|
5029
|
-
r = !0, u.x =
|
|
5030
|
-
}), document.addEventListener("mousemove", (
|
|
5052
|
+
a && (a.style.cursor = "move", s.style.cursor = "move", a.addEventListener("mousedown", (p) => {
|
|
5053
|
+
r = !0, u.x = p.clientX - l.offsetLeft, u.y = p.clientY - l.offsetTop, document.body.style.userSelect = "none";
|
|
5054
|
+
}), s.addEventListener("mousedown", (p) => {
|
|
5055
|
+
r = !0, u.x = p.clientX - l.offsetLeft, u.y = p.clientY - l.offsetTop, document.body.style.userSelect = "none";
|
|
5056
|
+
}), document.addEventListener("mousemove", (p) => {
|
|
5031
5057
|
if (!r || !t) return;
|
|
5032
|
-
const h =
|
|
5033
|
-
l.style.left = `${h}px`, l.style.top = `${
|
|
5058
|
+
const h = p.clientX - u.x, f = p.clientY - u.y;
|
|
5059
|
+
l.style.left = `${h}px`, l.style.top = `${f}px`;
|
|
5034
5060
|
}), document.addEventListener("mouseup", () => {
|
|
5035
5061
|
r = !1, document.body.style.userSelect = "";
|
|
5036
5062
|
}));
|
|
@@ -5042,26 +5068,26 @@ const Ss = (e) => {
|
|
|
5042
5068
|
Me(() => {
|
|
5043
5069
|
const l = document.querySelector(`.${e} .ant-modal`);
|
|
5044
5070
|
if (l) {
|
|
5045
|
-
const r = window.innerWidth, u = window.innerHeight, a = l.offsetWidth, s = l.offsetHeight,
|
|
5046
|
-
l.style.left = `${
|
|
5071
|
+
const r = window.innerWidth, u = window.innerHeight, a = l.offsetWidth, s = l.offsetHeight, p = (r - a) / 2, h = (u - s) / 2;
|
|
5072
|
+
l.style.left = `${p}px`, l.style.top = `${h}px`;
|
|
5047
5073
|
}
|
|
5048
5074
|
});
|
|
5049
5075
|
} };
|
|
5050
|
-
},
|
|
5051
|
-
hbLibComp:
|
|
5052
|
-
},
|
|
5053
|
-
hbLibComp:
|
|
5054
|
-
},
|
|
5055
|
-
hbLibComp:
|
|
5056
|
-
},
|
|
5057
|
-
hbLibComp:
|
|
5076
|
+
}, is = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload", format: "Supported formats" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown", overTip1: "Currently has exceeded", overTip2: "Optional quantity, please delete the displayed conditions first", title: "Custom query conditions" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan", addScheme: "Add scenario", editScheme: "Edit plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings", reset: "reduction" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" }, HbImportFile: { clickUp: "Click to upload", downloadTemplate: "Click to download template", pleaseUploadFiles: "Please upload files", uploadText: "Drag files here or", fileLabel: "document", importBtn: "File upload" }, HbFilePreview: { empty: "Select or provide a file to preview", unsupported: "Preview is not supported for this file type", prev: "Previous", next: "Next", download: "Download", close: "Close", modalTitle: "File Preview", fileNameFallback: "File {index}", noPreviewUrl: "No preview URL available", noDownloadUrl: "No download URL available", noDownloadableFiles: "No downloadable attachments available" }, HbFuncCompCopy: { copy: "copy", copyFail: "Copy failed", copySuccess: "Copied successfully" }, HbLibDetailBox: { back: "return" } }, ss = {
|
|
5077
|
+
hbLibComp: is
|
|
5078
|
+
}, rs = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください", format: "サポートされている形式" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" }, HbImportFile: { clickUp: "クリックしてアップロード", downloadTemplate: "クリックしてテンプレートをダウンロード", pleaseUploadFiles: "ファイルをアップロードしてください", uploadText: "ファイルをここにドラッグするか、", fileLabel: "書類", importBtn: "ファイルのアップロード" }, HbFilePreview: { empty: "プレビューするファイルを選択または指定してください", unsupported: "このファイル形式のプレビューはサポートされていません", prev: "前へ", next: "次へ", download: "ダウンロード", close: "閉じる", modalTitle: "ファイルプレビュー", fileNameFallback: "ファイル {index}", noPreviewUrl: "プレビューURLがありません", noDownloadUrl: "ダウンロードURLがありません", noDownloadableFiles: "ダウンロード可能な添付ファイルがありません" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } }, cs = {
|
|
5079
|
+
hbLibComp: rs
|
|
5080
|
+
}, ds = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索", title: "自定义查询条件", overTip1: "当前已经超过", overTip2: "个可选数量,请先删除已显示条件" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置", reset: "还原" }, hbLibListForm: { queryCase: "查询方案", addScheme: "添加方案", editScheme: "编辑方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载", format: "支持格式" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" }, HbImportFile: { uploadText: "将文件拖到此处或", clickUp: "请上传文件", downloadTemplate: "点击下载模板", pleaseUploadFiles: "请上传文件", fileLabel: "文件", importBtn: "文件上传" }, HbFilePreview: { empty: "请选择或传入要预览的文件", unsupported: "暂不支持该类型预览", prev: "上一个", next: "下一个", download: "下载", close: "关闭", modalTitle: "文件预览", fileNameFallback: "文件 {index}", noPreviewUrl: "暂无预览地址", noDownloadUrl: "暂无下载地址", noDownloadableFiles: "暂无可下载附件" }, HbFuncCompCopy: { copySuccess: "复制成功", copyFail: "复制失败", copy: "复制" }, HbLibDetailBox: { back: "返回" }, HbLibLoading: { loadingTips: "加载中...如长时间加载请重试!" } }, us = {
|
|
5081
|
+
hbLibComp: ds
|
|
5082
|
+
}, fs = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan", addScheme: "Szenario hinzufügen", editScheme: "Plan bearbeiten" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen", reset: "Reduktion" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren", importBtn: "Datei-Upload" }, HbFilePreview: { empty: "Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an", unsupported: "Die Vorschau wird für diesen Dateityp nicht unterstützt", prev: "Zurück", next: "Weiter", download: "Herunterladen", close: "Schließen", modalTitle: "Dateivorschau", fileNameFallback: "Datei {index}", noPreviewUrl: "Keine Vorschau-URL verfügbar", noDownloadUrl: "Keine Download-URL verfügbar", noDownloadableFiles: "Keine herunterladbaren Anhänge verfügbar" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, ps = {
|
|
5083
|
+
hbLibComp: fs
|
|
5058
5084
|
};
|
|
5059
|
-
var Ke = { exports: {} },
|
|
5060
|
-
function
|
|
5085
|
+
var Ke = { exports: {} }, bs = Ke.exports, Nt;
|
|
5086
|
+
function ms() {
|
|
5061
5087
|
return Nt || (Nt = 1, (function(e, t) {
|
|
5062
5088
|
(function(o, n) {
|
|
5063
5089
|
e.exports = n(ot);
|
|
5064
|
-
})(
|
|
5090
|
+
})(bs, (function(o) {
|
|
5065
5091
|
function n(r) {
|
|
5066
5092
|
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
5067
5093
|
}
|
|
@@ -5075,63 +5101,63 @@ function bs() {
|
|
|
5075
5101
|
}));
|
|
5076
5102
|
})(Ke)), Ke.exports;
|
|
5077
5103
|
}
|
|
5078
|
-
|
|
5104
|
+
ms();
|
|
5079
5105
|
ot.locale("zh-cn");
|
|
5080
|
-
const
|
|
5081
|
-
en_US:
|
|
5082
|
-
ja_JP:
|
|
5083
|
-
zh_CN:
|
|
5084
|
-
de_DE:
|
|
5085
|
-
},
|
|
5086
|
-
e.provide("globalCompConfig", t || {}), Object.values(
|
|
5106
|
+
const Fs = {
|
|
5107
|
+
en_US: ss,
|
|
5108
|
+
ja_JP: cs,
|
|
5109
|
+
zh_CN: us,
|
|
5110
|
+
de_DE: ps
|
|
5111
|
+
}, Hs = function(e, t = {}) {
|
|
5112
|
+
e.provide("globalCompConfig", t || {}), Object.values(Ji).forEach((o) => {
|
|
5087
5113
|
o && typeof o.install == "function" && e.use(o);
|
|
5088
|
-
}), Object.entries(
|
|
5114
|
+
}), Object.entries(es).forEach(([o, n]) => {
|
|
5089
5115
|
e.directive(o, n);
|
|
5090
5116
|
});
|
|
5091
5117
|
};
|
|
5092
5118
|
export {
|
|
5093
5119
|
Zt as HB_ICON_DEFAULT_CSS_URL,
|
|
5094
|
-
|
|
5120
|
+
xi as HB_ICON_DEFAULT_SYMBOL_CSS_URL,
|
|
5095
5121
|
eo as HB_ICON_GLOBAL_KEY,
|
|
5096
|
-
|
|
5097
|
-
|
|
5122
|
+
ba as HbLibAnchor,
|
|
5123
|
+
sa as HbLibCard,
|
|
5098
5124
|
Qt as HbLibCopy,
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5125
|
+
Ha as HbLibDetailBox,
|
|
5126
|
+
Si as HbLibFilePreview,
|
|
5127
|
+
Ma as HbLibFooterBar,
|
|
5102
5128
|
Po as HbLibFormItemFilterModal,
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5129
|
+
Dl as HbLibFormTooltipSelect,
|
|
5130
|
+
oi as HbLibFuncCompDrag,
|
|
5131
|
+
Yi as HbLibIcon,
|
|
5132
|
+
Gi as HbLibIconBox,
|
|
5107
5133
|
no as HbLibIconList,
|
|
5108
|
-
|
|
5109
|
-
|
|
5134
|
+
Vl as HbLibImportFile,
|
|
5135
|
+
sn as HbLibListBtnsAct,
|
|
5110
5136
|
Wo as HbLibListForm,
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5137
|
+
xn as HbLibListMultiSelect,
|
|
5138
|
+
en as HbLibListPageAct,
|
|
5139
|
+
dn as HbLibListPageContainer,
|
|
5140
|
+
Ll as HbLibListTable,
|
|
5141
|
+
fi as HbLibLoading,
|
|
5142
|
+
Kl as HbLibLogModal,
|
|
5143
|
+
Oa as HbLibModal,
|
|
5144
|
+
In as HbLibMutilpleSelectModal,
|
|
5145
|
+
Ga as HbLibPageHeader,
|
|
5146
|
+
ii as HbLibSort,
|
|
5147
|
+
Vn as HbLibTableAct,
|
|
5148
|
+
Il as HbLibTableColumnSet,
|
|
5149
|
+
Va as HbLibUnDetailBox,
|
|
5150
|
+
Ql as HbUiConfig,
|
|
5151
|
+
Mi as ensureRootSvgSpriteIdInIconfontJs,
|
|
5152
|
+
Ii as getIconfontSpriteRootId,
|
|
5153
|
+
Hs as install,
|
|
5154
|
+
Fi as isIconfontSymbolJsUrl,
|
|
5155
|
+
Fs as locales,
|
|
5156
|
+
$i as prefixSymbolIdsInIconfontJs,
|
|
5157
|
+
rn as useCalTableHeight,
|
|
5132
5158
|
It as useCalTableWidth,
|
|
5133
|
-
|
|
5159
|
+
Ss as useFilePreview,
|
|
5134
5160
|
oo as useIconfont,
|
|
5135
|
-
|
|
5136
|
-
|
|
5161
|
+
xs as useListFormItem,
|
|
5162
|
+
Ts as useModalDrag
|
|
5137
5163
|
};
|