@hb-hellotech/hb-ui 1.3.8-beta.22222 → 1.3.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hb_component_lib.js +163 -163
- package/dist/hb_component_lib.umd.cjs +1 -1
- 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, reactive as Se, ref as N, computed as V, watch as se, onMounted as be, createElementBlock as F, openBlock as l, normalizeClass as j, unref as
|
|
2
|
+
import { defineComponent as te, reactive as Se, ref as N, computed as V, watch as se, onMounted as be, createElementBlock as F, openBlock as l, normalizeClass as j, unref as s, createVNode as S, withCtx as t, createElementVNode as v, toDisplayString as _, createTextVNode as I, createBlock as O, createCommentVNode as R, Fragment as E, renderList as ne, inject as Be, resolveComponent as B, Transition as st, withDirectives as ie, mergeProps as ee, createSlots as Pe, renderSlot as q, vShow as it, nextTick as ve, onUnmounted as Re, useTemplateRef as rt, provide as dt, normalizeStyle as we, mergeModels as Ie, useModel as ot, withModifiers as _e, resolveDirective as ct, useAttrs as ut, watchEffect as pt, shallowRef as ht, resolveDynamicComponent as mt } from "vue";
|
|
3
3
|
import Ce from "vuedraggable";
|
|
4
4
|
import { Modal as He, Button as fe, Tooltip as De, Switch as Ve, Radio as Ye, RadioGroup as je, InputNumber as qe, DatePicker as Ke, Checkbox as Le, CheckboxGroup as We, Select as Ae, Input as Je, Col as ft, Row as bt, FormItem as Ge, Form as Qe, SelectOption as ze, Popconfirm as Me, MenuItem as Ze, Menu as Xe, Dropdown as et, Popover as vt, message as ke } from "ant-design-vue";
|
|
5
5
|
import { useRoute as at } from "vue-router";
|
|
@@ -39,7 +39,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: f, emit: d }) {
|
|
42
|
-
const u = ce().t, y = ce().messages.value.en_US, g = ce().messages.value.ja_JP,
|
|
42
|
+
const u = ce().t, y = ce().messages.value.en_US, g = ce().messages.value.ja_JP, n = ce().messages.value.zh_CN, i = e, o = d, a = Ue("sfcm"), L = at(), U = Se({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), c = N(!1), z = N(600);
|
|
45
45
|
let x = [];
|
|
@@ -77,11 +77,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
77
77
|
}, r = (m) => ({
|
|
78
78
|
ja_JP: () => me.get(g, m.labelLanguage || ""),
|
|
79
79
|
en_US: () => me.get(y, m.labelLanguage || ""),
|
|
80
|
-
zh_CN: () => me.get(
|
|
80
|
+
zh_CN: () => me.get(n, m.labelLanguage || "")
|
|
81
81
|
})[U.lan]?.() || m.label, h = (m) => ({
|
|
82
82
|
ja_JP: () => me.get(g, m.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => me.get(y, m.subLabelLanguage || ""),
|
|
84
|
-
zh_CN: () => me.get(
|
|
84
|
+
zh_CN: () => me.get(n, m.subLabelLanguage || "")
|
|
85
85
|
})[U.lan]?.() || m.subLabel, p = (m) => {
|
|
86
86
|
try {
|
|
87
87
|
const H = localStorage.getItem(w.value);
|
|
@@ -180,9 +180,9 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
180
180
|
}), be(() => {
|
|
181
181
|
console.log("我是保存的搜索条件");
|
|
182
182
|
}), (m, H) => (l(), F("div", {
|
|
183
|
-
class: j(
|
|
183
|
+
class: j(s(a).b())
|
|
184
184
|
}, [
|
|
185
|
-
S(
|
|
185
|
+
S(s(He), {
|
|
186
186
|
visible: c.value,
|
|
187
187
|
"onUpdate:visible": H[1] || (H[1] = (D) => c.value = D),
|
|
188
188
|
width: z.value,
|
|
@@ -191,17 +191,17 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
191
191
|
}, {
|
|
192
192
|
title: t(() => [
|
|
193
193
|
v("div", {
|
|
194
|
-
class: j(
|
|
194
|
+
class: j(s(a).e("title"))
|
|
195
195
|
}, _(e.title), 3)
|
|
196
196
|
]),
|
|
197
197
|
footer: t(() => [
|
|
198
|
-
S(
|
|
198
|
+
S(s(fe), { onClick: J }, {
|
|
199
199
|
default: t(() => [
|
|
200
200
|
I(_(m.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
201
201
|
]),
|
|
202
202
|
_: 1
|
|
203
203
|
}),
|
|
204
|
-
S(
|
|
204
|
+
S(s(fe), {
|
|
205
205
|
type: "primary",
|
|
206
206
|
onClick: ae
|
|
207
207
|
}, {
|
|
@@ -213,20 +213,20 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
213
213
|
]),
|
|
214
214
|
default: t(() => [
|
|
215
215
|
v("section", {
|
|
216
|
-
class: j(
|
|
216
|
+
class: j(s(a).e("show"))
|
|
217
217
|
}, [
|
|
218
218
|
v("div", {
|
|
219
|
-
class: j(
|
|
219
|
+
class: j(s(a).e("show__title"))
|
|
220
220
|
}, [
|
|
221
221
|
v("span", {
|
|
222
|
-
class: j(
|
|
222
|
+
class: j(s(a).e("title__tip"))
|
|
223
223
|
}, _(m.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
224
224
|
v("span", null, _(m.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(e.showNumber) + _(m.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
225
225
|
], 2),
|
|
226
226
|
v("div", {
|
|
227
|
-
class: j(
|
|
227
|
+
class: j(s(a).e("show__tag"))
|
|
228
228
|
}, [
|
|
229
|
-
S(
|
|
229
|
+
S(s(Ce), {
|
|
230
230
|
modelValue: T.value,
|
|
231
231
|
"onUpdate:modelValue": H[0] || (H[0] = (D) => T.value = D),
|
|
232
232
|
"item-key": "key",
|
|
@@ -236,12 +236,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
236
236
|
}, {
|
|
237
237
|
item: t(({ element: D }) => [
|
|
238
238
|
v("div", {
|
|
239
|
-
class: j([
|
|
239
|
+
class: j([s(a).e("show__tag__item"), s(a).is("fixed", D.isFixed), s(a).is("linked", D.isLinked)])
|
|
240
240
|
}, [
|
|
241
241
|
I(_(D.label) + " ", 1),
|
|
242
|
-
!D.isFixed && !D.isLinked && e.list.length > 1 ? (l(), O(
|
|
242
|
+
!D.isFixed && !D.isLinked && e.list.length > 1 ? (l(), O(s(gt), {
|
|
243
243
|
key: 0,
|
|
244
|
-
class: j(
|
|
244
|
+
class: j(s(a).e("show__tag__item-close")),
|
|
245
245
|
onClick: (G) => Q(D)
|
|
246
246
|
}, null, 8, ["class", "onClick"])) : R("", !0)
|
|
247
247
|
], 2)
|
|
@@ -251,20 +251,20 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
251
251
|
], 2)
|
|
252
252
|
], 2),
|
|
253
253
|
v("section", {
|
|
254
|
-
class: j(
|
|
254
|
+
class: j(s(a).e("unshow"))
|
|
255
255
|
}, [
|
|
256
256
|
v("div", {
|
|
257
|
-
class: j(
|
|
257
|
+
class: j(s(a).e("show__title"))
|
|
258
258
|
}, [
|
|
259
259
|
v("span", {
|
|
260
|
-
class: j(
|
|
260
|
+
class: j(s(a).e("title__tip"))
|
|
261
261
|
}, _(m.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
262
262
|
], 2),
|
|
263
263
|
v("div", {
|
|
264
|
-
class: j(
|
|
264
|
+
class: j(s(a).e("unshow__tag"))
|
|
265
265
|
}, [
|
|
266
266
|
C.value.length > 0 ? (l(!0), F(E, { key: 0 }, ne(C.value, (D) => (l(), F("div", {
|
|
267
|
-
class: j([
|
|
267
|
+
class: j([s(a).e("unshow__tag__item"), s(a).is("fixed", D.isFixed || ""), s(a).is("linked", D.isLinked || "")]),
|
|
268
268
|
key: D.key,
|
|
269
269
|
onMouseenter: (G) => M(D),
|
|
270
270
|
onMouseleave: (G) => ue(D)
|
|
@@ -272,12 +272,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
272
272
|
I(_(D.label) + " ", 1),
|
|
273
273
|
D.active ? (l(), F("aside", {
|
|
274
274
|
key: 0,
|
|
275
|
-
class: j(
|
|
275
|
+
class: j(s(a).e("unshow__tag__item-add")),
|
|
276
276
|
onClick: (G) => re(D)
|
|
277
277
|
}, _(m.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Tt)) : R("", !0)
|
|
278
278
|
], 42, xt))), 128)) : (l(), F("div", {
|
|
279
279
|
key: 1,
|
|
280
|
-
class: j(
|
|
280
|
+
class: j(s(a).e("unshow__tag__empty"))
|
|
281
281
|
}, _(m.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
282
282
|
], 2)
|
|
283
283
|
], 2)
|
|
@@ -325,7 +325,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
325
325
|
},
|
|
326
326
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
327
327
|
setup(e, { expose: f, emit: d }) {
|
|
328
|
-
const u = d, y = Be("HB_LIST_PAGE_CONTAINER"), g = V(() => i.searchList || []),
|
|
328
|
+
const u = d, y = Be("HB_LIST_PAGE_CONTAINER"), g = V(() => i.searchList || []), n = Ue("form"), i = e, o = N("show"), a = V(() => [...i.items]), L = V(() => [...i.items].map((p) => ({
|
|
329
329
|
...p,
|
|
330
330
|
label: p.label?.includes("多项搜索") ? "" : p.label
|
|
331
331
|
}))), U = V(() => i.saveKey), c = N(), z = () => {
|
|
@@ -404,16 +404,16 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
404
404
|
}, {
|
|
405
405
|
default: t(() => [
|
|
406
406
|
ie(v("div", {
|
|
407
|
-
class: j([n
|
|
407
|
+
class: j([s(n).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
408
408
|
}, [
|
|
409
|
-
S(
|
|
409
|
+
S(s(Qe), ee(p.$attrs, {
|
|
410
410
|
model: e.formData,
|
|
411
411
|
ref_key: "formRef",
|
|
412
412
|
ref: c,
|
|
413
413
|
class: ["hb-lib-form--container", o.value == "show" ? "" : "hide"]
|
|
414
414
|
}), {
|
|
415
415
|
default: t(() => [
|
|
416
|
-
(l(!0), F(E, null, ne(L.value, (M, ue) => (l(), O(
|
|
416
|
+
(l(!0), F(E, null, ne(L.value, (M, ue) => (l(), O(s(Ge), ee({
|
|
417
417
|
key: ue,
|
|
418
418
|
ref_for: !0
|
|
419
419
|
}, M, {
|
|
@@ -431,18 +431,18 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
431
431
|
formData: e.formData,
|
|
432
432
|
item: M
|
|
433
433
|
}, void 0, !0) : R("", !0),
|
|
434
|
-
M.type === "input" ? (l(), O(
|
|
434
|
+
M.type === "input" ? (l(), O(s(Je), ee({
|
|
435
435
|
key: 2,
|
|
436
436
|
value: e.formData[M.key],
|
|
437
437
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
438
438
|
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
439
|
-
M.type === "select" ? (l(), O(
|
|
439
|
+
M.type === "select" ? (l(), O(s(Ae), ee({
|
|
440
440
|
key: 3,
|
|
441
441
|
value: e.formData[M.key],
|
|
442
442
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
443
443
|
}, { ref_for: !0 }, M.attrs), {
|
|
444
444
|
default: t(() => [
|
|
445
|
-
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(
|
|
445
|
+
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(s(ze), {
|
|
446
446
|
key: H,
|
|
447
447
|
value: m.value
|
|
448
448
|
}, {
|
|
@@ -454,13 +454,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
457
|
-
M.type === "checkbox" ? (l(), O(
|
|
457
|
+
M.type === "checkbox" ? (l(), O(s(We), ee({
|
|
458
458
|
key: 4,
|
|
459
459
|
value: e.formData[M.key],
|
|
460
460
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
461
461
|
}, { ref_for: !0 }, M.attrs), {
|
|
462
462
|
default: t(() => [
|
|
463
|
-
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(
|
|
463
|
+
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(s(Le), {
|
|
464
464
|
key: H,
|
|
465
465
|
value: m.value
|
|
466
466
|
}, {
|
|
@@ -472,23 +472,23 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
472
472
|
]),
|
|
473
473
|
_: 2
|
|
474
474
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
475
|
-
M.type === "date-picker" ? (l(), O(
|
|
475
|
+
M.type === "date-picker" ? (l(), O(s(Ke), ee({
|
|
476
476
|
key: 5,
|
|
477
477
|
value: e.formData[M.key],
|
|
478
478
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
479
479
|
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
480
|
-
M.type === "input-number" ? (l(), O(
|
|
480
|
+
M.type === "input-number" ? (l(), O(s(qe), ee({
|
|
481
481
|
key: 6,
|
|
482
482
|
value: e.formData[M.key],
|
|
483
483
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
484
484
|
}, { ref_for: !0 }, M.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
485
|
-
M.type === "radio" ? (l(), O(
|
|
485
|
+
M.type === "radio" ? (l(), O(s(je), ee({
|
|
486
486
|
key: 7,
|
|
487
487
|
value: e.formData[M.key],
|
|
488
488
|
"onUpdate:value": (m) => e.formData[M.key] = m
|
|
489
489
|
}, { ref_for: !0 }, M.attrs), {
|
|
490
490
|
default: t(() => [
|
|
491
|
-
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(
|
|
491
|
+
(l(!0), F(E, null, ne(M.options, (m, H) => (l(), O(s(Ye), {
|
|
492
492
|
key: H,
|
|
493
493
|
value: m.value
|
|
494
494
|
}, {
|
|
@@ -500,7 +500,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
500
500
|
]),
|
|
501
501
|
_: 2
|
|
502
502
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
503
|
-
M.type === "switch" ? (l(), O(
|
|
503
|
+
M.type === "switch" ? (l(), O(s(Ve), ee({
|
|
504
504
|
key: 8,
|
|
505
505
|
checked: e.formData[M.key],
|
|
506
506
|
"onUpdate:checked": (m) => e.formData[M.key] = m
|
|
@@ -512,11 +512,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
512
512
|
name: "label",
|
|
513
513
|
fn: t(() => [
|
|
514
514
|
I(_(M.label) + " ", 1),
|
|
515
|
-
S(
|
|
515
|
+
S(s(De), {
|
|
516
516
|
title: M.tooltip
|
|
517
517
|
}, {
|
|
518
518
|
default: t(() => [
|
|
519
|
-
S(
|
|
519
|
+
S(s(yt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
520
520
|
]),
|
|
521
521
|
_: 1
|
|
522
522
|
}, 8, ["title"])
|
|
@@ -531,7 +531,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
531
531
|
class: "hb_list_page_button"
|
|
532
532
|
}, {
|
|
533
533
|
icon: t(() => [
|
|
534
|
-
S(
|
|
534
|
+
S(s(Ne))
|
|
535
535
|
]),
|
|
536
536
|
default: t(() => [
|
|
537
537
|
I(" " + _(p.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
@@ -649,21 +649,21 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
649
649
|
}, 16, ["model", "class"]),
|
|
650
650
|
e.needFooter ? (l(), F("div", {
|
|
651
651
|
key: 0,
|
|
652
|
-
class: j(n
|
|
652
|
+
class: j(s(n).e("footer"))
|
|
653
653
|
}, [
|
|
654
654
|
v("div", {
|
|
655
|
-
class: j(n
|
|
655
|
+
class: j(s(n).e("footer__left"))
|
|
656
656
|
}, [
|
|
657
657
|
q(p.$slots, "form-footer-left", {}, void 0, !0)
|
|
658
658
|
], 2),
|
|
659
659
|
v("div", {
|
|
660
|
-
class: j(n
|
|
660
|
+
class: j(s(n).e("footer__right"))
|
|
661
661
|
}, [
|
|
662
662
|
o.value == "show" ? q(p.$slots, "form-footer-right", {
|
|
663
663
|
key: 0,
|
|
664
664
|
formRef: c.value
|
|
665
665
|
}, () => [
|
|
666
|
-
S(
|
|
666
|
+
S(s(fe), {
|
|
667
667
|
type: "primary",
|
|
668
668
|
onClick: x
|
|
669
669
|
}, {
|
|
@@ -672,7 +672,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
}),
|
|
675
|
-
S(
|
|
675
|
+
S(s(fe), {
|
|
676
676
|
type: "primary",
|
|
677
677
|
onClick: z
|
|
678
678
|
}, {
|
|
@@ -682,7 +682,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
682
682
|
_: 1
|
|
683
683
|
})
|
|
684
684
|
], !0) : R("", !0),
|
|
685
|
-
S(
|
|
685
|
+
S(s(fe), {
|
|
686
686
|
type: "primary",
|
|
687
687
|
onClick: k
|
|
688
688
|
}, {
|
|
@@ -765,29 +765,29 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
765
765
|
be(() => {
|
|
766
766
|
g();
|
|
767
767
|
});
|
|
768
|
-
const
|
|
768
|
+
const n = (i) => {
|
|
769
769
|
i.keyCode === 192 && u();
|
|
770
770
|
};
|
|
771
771
|
return be(() => {
|
|
772
|
-
window.addEventListener("keydown",
|
|
772
|
+
window.addEventListener("keydown", n);
|
|
773
773
|
}), Re(() => {
|
|
774
|
-
window.removeEventListener("keydown",
|
|
774
|
+
window.removeEventListener("keydown", n);
|
|
775
775
|
}), (i, o) => {
|
|
776
776
|
const a = B("a-tooltip");
|
|
777
777
|
return l(), F("section", Ot, [
|
|
778
778
|
v("aside", Bt, _(y.value), 1),
|
|
779
779
|
v("aside", Pt, [
|
|
780
780
|
S(a, {
|
|
781
|
-
title:
|
|
781
|
+
title: s(d) ? `${i.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${i.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
782
782
|
placement: "leftTop"
|
|
783
783
|
}, {
|
|
784
784
|
default: t(() => [
|
|
785
785
|
v("span", {
|
|
786
786
|
class: "hb-lib-list-page-act-svg",
|
|
787
787
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
788
|
-
(...L) =>
|
|
788
|
+
(...L) => s(u) && s(u)(...L))
|
|
789
789
|
}, [
|
|
790
|
-
|
|
790
|
+
s(d) ? (l(), F("svg", Nt, [...o[2] || (o[2] = [
|
|
791
791
|
v("path", {
|
|
792
792
|
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",
|
|
793
793
|
fill: "#ff5000",
|
|
@@ -832,12 +832,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
832
832
|
u.value = !u.value, d("handleOpenOrClose", u.value);
|
|
833
833
|
}, g = () => {
|
|
834
834
|
d("handleReload");
|
|
835
|
-
},
|
|
835
|
+
}, n = (i) => {
|
|
836
836
|
};
|
|
837
837
|
return be(() => {
|
|
838
|
-
window.addEventListener("keydown",
|
|
838
|
+
window.addEventListener("keydown", n);
|
|
839
839
|
}), Re(() => {
|
|
840
|
-
window.removeEventListener("keydown",
|
|
840
|
+
window.removeEventListener("keydown", n);
|
|
841
841
|
}), (i, o) => {
|
|
842
842
|
const a = B("a-tooltip");
|
|
843
843
|
return l(), F("section", Yt, [
|
|
@@ -883,10 +883,10 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
883
883
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
884
884
|
onClick: y
|
|
885
885
|
}, [
|
|
886
|
-
u.value ? (l(), O(
|
|
886
|
+
u.value ? (l(), O(s(_t), {
|
|
887
887
|
key: 0,
|
|
888
888
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
889
|
-
})) : (l(), O(
|
|
889
|
+
})) : (l(), O(s(Ct), {
|
|
890
890
|
key: 1,
|
|
891
891
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
892
892
|
}))
|
|
@@ -901,7 +901,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
901
901
|
}
|
|
902
902
|
}), Wt = /* @__PURE__ */ oe(Kt, [["__scopeId", "data-v-de62f20a"]]), Jt = le(Wt), Gt = (e = {}) => {
|
|
903
903
|
const { formRef: f, offsetBottom: d = 50, minHeight: u = 300 } = e, y = N(0);
|
|
904
|
-
let g = null,
|
|
904
|
+
let g = null, n = null, i = null, o = null, a = null;
|
|
905
905
|
const L = () => {
|
|
906
906
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
907
907
|
requestAnimationFrame(() => {
|
|
@@ -954,10 +954,10 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
954
954
|
}, 100);
|
|
955
955
|
}, T = () => {
|
|
956
956
|
window.addEventListener("resize", x), ve(() => {
|
|
957
|
-
c(), z(),
|
|
957
|
+
c(), z(), n = U();
|
|
958
958
|
});
|
|
959
959
|
}, C = () => {
|
|
960
|
-
window.removeEventListener("resize", x), g && g.disconnect(), i && i.disconnect(),
|
|
960
|
+
window.removeEventListener("resize", x), g && g.disconnect(), i && i.disconnect(), n && n.disconnect(), o && clearTimeout(o), a && clearTimeout(a);
|
|
961
961
|
};
|
|
962
962
|
return f && se(
|
|
963
963
|
() => f,
|
|
@@ -990,7 +990,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
990
990
|
// 底部预留空间
|
|
991
991
|
minHeight: d.minHeight || 300
|
|
992
992
|
// table最小高度 请勿随便修改!!
|
|
993
|
-
}),
|
|
993
|
+
}), n = V(() => g.value);
|
|
994
994
|
return dt("HB_LIST_PAGE_CONTAINER", {
|
|
995
995
|
PageContainerRef: u,
|
|
996
996
|
// 通过函数访问,
|
|
@@ -1005,8 +1005,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1005
1005
|
v("section", {
|
|
1006
1006
|
class: "list-page-box",
|
|
1007
1007
|
style: we({
|
|
1008
|
-
"--hb-list-table-height":
|
|
1009
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
1008
|
+
"--hb-list-table-height": s(f) ? n.value - 200 + "px" : n.value - d.offsetBottom + "px",
|
|
1009
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : s(f) ? n.value - 200 + "px" : n.value - d.offsetBottom + "px"
|
|
1010
1010
|
})
|
|
1011
1011
|
}, [
|
|
1012
1012
|
q(i.$slots, "default")
|
|
@@ -1046,9 +1046,9 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1046
1046
|
}),
|
|
1047
1047
|
emits: /* @__PURE__ */ Ie(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1048
1048
|
setup(e, { emit: f }) {
|
|
1049
|
-
const d = e, u = f, y = ot(e, "value"), g = N(!1),
|
|
1050
|
-
if (d.remoteSearch || !
|
|
1051
|
-
const b =
|
|
1049
|
+
const d = e, u = f, y = ot(e, "value"), g = N(!1), n = N(""), i = N([]), o = N(), a = V(() => {
|
|
1050
|
+
if (d.remoteSearch || !n.value) return d.options;
|
|
1051
|
+
const b = n.value.toLowerCase();
|
|
1052
1052
|
return d.options.filter((r) => r.label.toLowerCase().includes(b) || r.description?.toLowerCase().includes(b));
|
|
1053
1053
|
}), L = V(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), U = V(() => a.value.length === 0 ? !1 : a.value.every((b) => i.value.includes(b.value))), c = V(() => {
|
|
1054
1054
|
if (a.value.length === 0) return !1;
|
|
@@ -1064,12 +1064,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1064
1064
|
), se(
|
|
1065
1065
|
() => d.searchValue,
|
|
1066
1066
|
(b) => {
|
|
1067
|
-
d.remoteSearch && b !== void 0 && (
|
|
1067
|
+
d.remoteSearch && b !== void 0 && (n.value = b);
|
|
1068
1068
|
},
|
|
1069
1069
|
{ immediate: !0 }
|
|
1070
1070
|
);
|
|
1071
1071
|
const z = (b) => {
|
|
1072
|
-
b && (g.value = b, x.value = [...i.value],
|
|
1072
|
+
b && (g.value = b, x.value = [...i.value], n.value = "", setTimeout(() => {
|
|
1073
1073
|
if (o.value) {
|
|
1074
1074
|
const r = o.value.input || o.value.$el?.querySelector("input");
|
|
1075
1075
|
r && r.focus();
|
|
@@ -1081,7 +1081,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1081
1081
|
const b = d.multiple ? i.value : i.value[0] || "", r = d.options.filter((h) => i.value.includes(h.value));
|
|
1082
1082
|
C.value = r, console.log(b, r), x.value = [...i.value], y.value = b, u("update:value", b), u("change", b, r), u("confirm", b, r), g.value = !1;
|
|
1083
1083
|
}, P = St((b) => {
|
|
1084
|
-
const r = b !== void 0 ? b :
|
|
1084
|
+
const r = b !== void 0 ? b : n.value;
|
|
1085
1085
|
d.remoteSearch && (u("search", r), u("update:searchValue", r));
|
|
1086
1086
|
}, 300), k = (b) => {
|
|
1087
1087
|
if (d.multiple) {
|
|
@@ -1118,7 +1118,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1118
1118
|
maxTagCount: e.maxTagCount,
|
|
1119
1119
|
options: a.value,
|
|
1120
1120
|
onDropdownVisibleChange: z,
|
|
1121
|
-
onSearch:
|
|
1121
|
+
onSearch: s(P),
|
|
1122
1122
|
"max-tag-text-length": e.tagTextLength,
|
|
1123
1123
|
class: j({ "has-prefix": e.prefix }),
|
|
1124
1124
|
"data-prefix": e.prefix,
|
|
@@ -1143,14 +1143,14 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1143
1143
|
ref_key: "searchInputRef",
|
|
1144
1144
|
ref: o,
|
|
1145
1145
|
class: "hb-lib-selector-search-input",
|
|
1146
|
-
value:
|
|
1147
|
-
"onUpdate:value": r[1] || (r[1] = (K) =>
|
|
1146
|
+
value: n.value,
|
|
1147
|
+
"onUpdate:value": r[1] || (r[1] = (K) => n.value = K),
|
|
1148
1148
|
placeholder: "请输入关键词搜索",
|
|
1149
1149
|
"allow-clear": "",
|
|
1150
|
-
onInput: r[2] || (r[2] = (K) =>
|
|
1150
|
+
onInput: r[2] || (r[2] = (K) => s(P)(K.target.value))
|
|
1151
1151
|
}, {
|
|
1152
1152
|
prefix: t(() => [
|
|
1153
|
-
S(
|
|
1153
|
+
S(s(Ne))
|
|
1154
1154
|
]),
|
|
1155
1155
|
_: 1
|
|
1156
1156
|
}, 8, ["value"])
|
|
@@ -1247,7 +1247,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1247
1247
|
},
|
|
1248
1248
|
emits: ["handleConfirm", "handleCancel"],
|
|
1249
1249
|
setup(e, { expose: f, emit: d }) {
|
|
1250
|
-
const u = e, y = d, g = N(!1),
|
|
1250
|
+
const u = e, y = d, g = N(!1), n = N(""), i = N(), o = N(), a = N([]), L = N([]), U = N(), c = Se({
|
|
1251
1251
|
searchText: "",
|
|
1252
1252
|
searchedColumn: ""
|
|
1253
1253
|
}), z = V(() => u.tableData.map((h) => (h.id = h.id || Math.random(), h))), x = V(() => u.tableColumn.map((h) => (h.customFilterDropdown && (h.onFilter = (p, $) => $[h.dataIndex].toString().toLowerCase().includes(p.toLowerCase()), h.onFilterDropdownVisibleChange = (p) => {
|
|
@@ -1258,7 +1258,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1258
1258
|
let h = "";
|
|
1259
1259
|
L.value.forEach((p) => {
|
|
1260
1260
|
h = h + p[u.labelKey] + ",";
|
|
1261
|
-
}),
|
|
1261
|
+
}), n.value = h.substring(0, h.length - 1), g.value = !1, y("handleConfirm", L.value);
|
|
1262
1262
|
}, C = () => {
|
|
1263
1263
|
g.value = !1;
|
|
1264
1264
|
}, A = () => {
|
|
@@ -1269,7 +1269,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1269
1269
|
}, P = () => {
|
|
1270
1270
|
a.value = [], L.value = [];
|
|
1271
1271
|
}, k = () => {
|
|
1272
|
-
|
|
1272
|
+
n.value = "", P();
|
|
1273
1273
|
}, w = (h, p, $) => {
|
|
1274
1274
|
p(), c.searchText = h[0], c.searchedColumn = $;
|
|
1275
1275
|
}, b = (h, p) => {
|
|
@@ -1289,12 +1289,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1289
1289
|
S($, {
|
|
1290
1290
|
readonly: "",
|
|
1291
1291
|
onClick: A,
|
|
1292
|
-
value:
|
|
1293
|
-
"onUpdate:value": p[0] || (p[0] = (J) =>
|
|
1292
|
+
value: n.value,
|
|
1293
|
+
"onUpdate:value": p[0] || (p[0] = (J) => n.value = J),
|
|
1294
1294
|
placeholder: h.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1295
1295
|
}, {
|
|
1296
1296
|
addonAfter: t(() => [
|
|
1297
|
-
S(
|
|
1297
|
+
S(s(Lt), { onClick: A })
|
|
1298
1298
|
]),
|
|
1299
1299
|
_: 1
|
|
1300
1300
|
}, 8, ["value", "placeholder"]),
|
|
@@ -1374,7 +1374,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1374
1374
|
])
|
|
1375
1375
|
]),
|
|
1376
1376
|
customFilterIcon: t(({ filtered: J }) => [
|
|
1377
|
-
S(
|
|
1377
|
+
S(s(Ne), {
|
|
1378
1378
|
style: we({ color: J ? "#108ee9" : void 0 })
|
|
1379
1379
|
}, null, 8, ["style"])
|
|
1380
1380
|
]),
|
|
@@ -1414,7 +1414,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1414
1414
|
buttonDisplaysQuantity: {}
|
|
1415
1415
|
},
|
|
1416
1416
|
setup(e, { expose: f }) {
|
|
1417
|
-
const d = e, { t: u } = ce(), y = N(!1), g = N(!1),
|
|
1417
|
+
const d = e, { t: u } = ce(), y = N(!1), g = N(!1), n = N(null), i = V(() => d.actions.filter((C) => C.condition !== void 0 ? C.condition : !0)), o = V(() => i.value.slice(0, d.buttonDisplaysQuantity)), a = V(() => L(i.value.slice(d.buttonDisplaysQuantity)));
|
|
1418
1418
|
function L(C) {
|
|
1419
1419
|
if (d.filterPermission)
|
|
1420
1420
|
return d.filterPermission(C);
|
|
@@ -1426,21 +1426,21 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1426
1426
|
const U = (C) => {
|
|
1427
1427
|
C.handler && C.handler(d.record);
|
|
1428
1428
|
}, c = (C) => {
|
|
1429
|
-
|
|
1429
|
+
n.value = C, y.value = !0;
|
|
1430
1430
|
}, z = () => {
|
|
1431
|
-
if (
|
|
1431
|
+
if (n.value) {
|
|
1432
1432
|
g.value = !0;
|
|
1433
1433
|
try {
|
|
1434
|
-
U(
|
|
1434
|
+
U(n.value), g.value = !1, y.value = !1;
|
|
1435
1435
|
} catch {
|
|
1436
1436
|
g.value = !1;
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
}, x = () => {
|
|
1440
|
-
y.value = !1,
|
|
1441
|
-
}, T = V(() =>
|
|
1442
|
-
title:
|
|
1443
|
-
content:
|
|
1440
|
+
y.value = !1, n.value = null;
|
|
1441
|
+
}, T = V(() => n.value ? {
|
|
1442
|
+
title: n.value.confirmTitle,
|
|
1443
|
+
content: n.value.confirmContent || n.value.confirmTitle
|
|
1444
1444
|
} : {
|
|
1445
1445
|
title: u("hbLibComp.hbTableAct.secendConfirm"),
|
|
1446
1446
|
content: u("hbLibComp.hbTableAct.confirmContent")
|
|
@@ -1472,7 +1472,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1472
1472
|
type: "vertical"
|
|
1473
1473
|
})) : R("", !0)
|
|
1474
1474
|
], 64)) : (l(), F(E, { key: 1 }, [
|
|
1475
|
-
S(
|
|
1475
|
+
S(s(Me), {
|
|
1476
1476
|
title: w.confirmTitle,
|
|
1477
1477
|
onConfirm: (r) => U(w)
|
|
1478
1478
|
}, {
|
|
@@ -1514,11 +1514,11 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1514
1514
|
]) : R("", !0)
|
|
1515
1515
|
], 64))
|
|
1516
1516
|
], 64))), 128)),
|
|
1517
|
-
a.value && a.value.length > 0 ? (l(), O(
|
|
1517
|
+
a.value && a.value.length > 0 ? (l(), O(s(et), { key: 0 }, {
|
|
1518
1518
|
overlay: t(() => [
|
|
1519
|
-
S(
|
|
1519
|
+
S(s(Xe), null, {
|
|
1520
1520
|
default: t(() => [
|
|
1521
|
-
(l(!0), F(E, null, ne(a.value, (w, b) => ie((l(), O(
|
|
1521
|
+
(l(!0), F(E, null, ne(a.value, (w, b) => ie((l(), O(s(Ze), { key: b }, {
|
|
1522
1522
|
default: t(() => [
|
|
1523
1523
|
w.needConfirm ? (l(), F(E, { key: 0 }, [
|
|
1524
1524
|
w.confirmType === "modal" ? ie((l(), F("a", {
|
|
@@ -1529,7 +1529,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1529
1529
|
I(_(w.label), 1)
|
|
1530
1530
|
], 8, wl)), [
|
|
1531
1531
|
[k, w.permissionsTag || null]
|
|
1532
|
-
]) : ie((l(), O(
|
|
1532
|
+
]) : ie((l(), O(s(Me), {
|
|
1533
1533
|
key: 1,
|
|
1534
1534
|
title: w.confirmTitle,
|
|
1535
1535
|
onConfirm: (r) => U(w)
|
|
@@ -1566,12 +1566,12 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1566
1566
|
default: t(() => [
|
|
1567
1567
|
v("a", Sl, [
|
|
1568
1568
|
I(_(C.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1569
|
-
S(
|
|
1569
|
+
S(s(Oe), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1570
1570
|
])
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 1
|
|
1573
1573
|
})) : R("", !0),
|
|
1574
|
-
S(
|
|
1574
|
+
S(s(He), {
|
|
1575
1575
|
visible: y.value,
|
|
1576
1576
|
title: T.value.title,
|
|
1577
1577
|
"confirm-loading": g.value,
|
|
@@ -1606,7 +1606,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1606
1606
|
},
|
|
1607
1607
|
emits: ["change"],
|
|
1608
1608
|
setup(e, { emit: f }) {
|
|
1609
|
-
const d = f, { t: u } = ce(), y = e, g = N([]),
|
|
1609
|
+
const d = f, { t: u } = ce(), y = e, g = N([]), n = Be("HB_LIST_PAGE_CONTAINER"), { tableWidth: i } = Hl(V(() => y.columns));
|
|
1610
1610
|
se(
|
|
1611
1611
|
() => y.columns,
|
|
1612
1612
|
(c) => {
|
|
@@ -1651,14 +1651,14 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1651
1651
|
onResizeColumn: o,
|
|
1652
1652
|
onChange: a,
|
|
1653
1653
|
scroll: {
|
|
1654
|
-
x:
|
|
1655
|
-
y: n
|
|
1654
|
+
x: s(i),
|
|
1655
|
+
y: s(n).tableHeight
|
|
1656
1656
|
}
|
|
1657
1657
|
}), Pe({
|
|
1658
1658
|
emptyText: t(() => [
|
|
1659
1659
|
v("div", Al, [
|
|
1660
1660
|
S(x, {
|
|
1661
|
-
description:
|
|
1661
|
+
description: s(u)("hbLibComp.hbListTable.noData")
|
|
1662
1662
|
}, null, 8, ["description"])
|
|
1663
1663
|
])
|
|
1664
1664
|
]),
|
|
@@ -1820,9 +1820,9 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1820
1820
|
},
|
|
1821
1821
|
emits: ["on-get-columns"],
|
|
1822
1822
|
setup(e, { emit: f }) {
|
|
1823
|
-
const d = f, { t: u } = ce(), y = e, g = N([]),
|
|
1823
|
+
const d = f, { t: u } = ce(), y = e, g = N([]), n = V(() => o.value.filter((b) => b.checked));
|
|
1824
1824
|
N([]);
|
|
1825
|
-
const i = N(!1), o = N([]), a = N(null), L = V(() =>
|
|
1825
|
+
const i = N(!1), o = N([]), a = N(null), L = V(() => n.value.length > 0 && n.value.length === g.value.length), U = V(() => n.value.length > 0 && n.value.length < g.value.length), c = (b) => {
|
|
1826
1826
|
a.value = b.oldIndex;
|
|
1827
1827
|
}, z = (b) => {
|
|
1828
1828
|
const r = b.newIndex;
|
|
@@ -1887,8 +1887,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1887
1887
|
), (b, r) => {
|
|
1888
1888
|
const h = B("a-tooltip"), p = B("a-button");
|
|
1889
1889
|
return l(), F("div", Rl, [
|
|
1890
|
-
S(
|
|
1891
|
-
title:
|
|
1890
|
+
S(s(vt), {
|
|
1891
|
+
title: s(u)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1892
1892
|
trigger: "click",
|
|
1893
1893
|
placement: "leftTop",
|
|
1894
1894
|
overlayClassName: "column_setting_popover",
|
|
@@ -1896,7 +1896,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1896
1896
|
"onUpdate:visible": r[1] || (r[1] = ($) => i.value = $)
|
|
1897
1897
|
}, {
|
|
1898
1898
|
content: t(() => [
|
|
1899
|
-
S(
|
|
1899
|
+
S(s(Ce), {
|
|
1900
1900
|
modelValue: o.value,
|
|
1901
1901
|
"onUpdate:modelValue": r[0] || (r[0] = ($) => o.value = $),
|
|
1902
1902
|
"item-key": "value",
|
|
@@ -1909,7 +1909,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1909
1909
|
}, {
|
|
1910
1910
|
item: t(({ element: $ }) => [
|
|
1911
1911
|
$.fixed !== "right" ? (l(), F("div", Nl, [
|
|
1912
|
-
S(
|
|
1912
|
+
S(s(Le), {
|
|
1913
1913
|
checked: $.checked,
|
|
1914
1914
|
onChange: (Y) => T($, Y.target.checked)
|
|
1915
1915
|
}, {
|
|
@@ -1924,7 +1924,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1924
1924
|
}, "⋮⋮", 2),
|
|
1925
1925
|
$.fixed ? (l(), O(h, { key: 0 }, {
|
|
1926
1926
|
title: t(() => [
|
|
1927
|
-
I(_(
|
|
1927
|
+
I(_(s(u)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1928
1928
|
]),
|
|
1929
1929
|
default: t(() => [
|
|
1930
1930
|
v("span", {
|
|
@@ -1953,7 +1953,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1953
1953
|
}, 1024)) : R("", !0),
|
|
1954
1954
|
$.fixed ? R("", !0) : (l(), O(h, { key: 1 }, {
|
|
1955
1955
|
title: t(() => [
|
|
1956
|
-
I(_(
|
|
1956
|
+
I(_(s(u)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1957
1957
|
]),
|
|
1958
1958
|
default: t(() => [
|
|
1959
1959
|
v("span", {
|
|
@@ -1987,13 +1987,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
1987
1987
|
}, 8, ["modelValue"]),
|
|
1988
1988
|
v("div", Yl, [
|
|
1989
1989
|
v("div", jl, [
|
|
1990
|
-
S(
|
|
1990
|
+
S(s(Le), {
|
|
1991
1991
|
checked: L.value,
|
|
1992
1992
|
indeterminate: U.value,
|
|
1993
1993
|
onChange: x
|
|
1994
1994
|
}, {
|
|
1995
1995
|
default: t(() => [
|
|
1996
|
-
I(_(
|
|
1996
|
+
I(_(s(u)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1997
1997
|
]),
|
|
1998
1998
|
_: 1
|
|
1999
1999
|
}, 8, ["checked", "indeterminate"])
|
|
@@ -2003,7 +2003,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2003
2003
|
type: "primary"
|
|
2004
2004
|
}, {
|
|
2005
2005
|
default: t(() => [
|
|
2006
|
-
I(_(
|
|
2006
|
+
I(_(s(u)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2007
2007
|
]),
|
|
2008
2008
|
_: 1
|
|
2009
2009
|
})
|
|
@@ -2011,7 +2011,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2011
2011
|
]),
|
|
2012
2012
|
default: t(() => [
|
|
2013
2013
|
S(h, {
|
|
2014
|
-
title:
|
|
2014
|
+
title: s(u)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2015
2015
|
placement: "leftTop"
|
|
2016
2016
|
}, {
|
|
2017
2017
|
default: t(() => [...r[4] || (r[4] = [
|
|
@@ -2083,7 +2083,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2083
2083
|
...x,
|
|
2084
2084
|
dropdownClassName: T ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2085
2085
|
};
|
|
2086
|
-
}), g = N(),
|
|
2086
|
+
}), g = N(), n = ot(e, "value"), i = V(() => d.options ?? []), o = V(() => ({
|
|
2087
2087
|
maxWidth: typeof d.tooltipMaxWidth == "number" ? `${d.tooltipMaxWidth}px` : d.tooltipMaxWidth
|
|
2088
2088
|
})), a = (x) => x.tooltip ?? x.label, L = (x) => x.key ?? x.label, U = (x) => !!(d.enableTooltip && a(x));
|
|
2089
2089
|
return f({
|
|
@@ -2094,22 +2094,22 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2094
2094
|
g.value?.blur?.();
|
|
2095
2095
|
},
|
|
2096
2096
|
selectRef: g
|
|
2097
|
-
}), (x, T) => (l(), O(
|
|
2097
|
+
}), (x, T) => (l(), O(s(Ae), ee({
|
|
2098
2098
|
ref_key: "selectRef",
|
|
2099
2099
|
ref: g,
|
|
2100
2100
|
class: "hb_lib_form_tooltip_select"
|
|
2101
2101
|
}, y.value, {
|
|
2102
|
-
value:
|
|
2103
|
-
"onUpdate:value": T[0] || (T[0] = (C) =>
|
|
2102
|
+
value: n.value,
|
|
2103
|
+
"onUpdate:value": T[0] || (T[0] = (C) => n.value = C)
|
|
2104
2104
|
}), {
|
|
2105
2105
|
default: t(() => [
|
|
2106
|
-
x.$slots.default ? q(x.$slots, "default", { key: 0 }, void 0, !0) : (l(!0), F(E, { key: 1 }, ne(i.value, (C) => (l(), O(
|
|
2106
|
+
x.$slots.default ? q(x.$slots, "default", { key: 0 }, void 0, !0) : (l(!0), F(E, { key: 1 }, ne(i.value, (C) => (l(), O(s(ze), ee({
|
|
2107
2107
|
key: L(C),
|
|
2108
2108
|
value: C.value,
|
|
2109
2109
|
disabled: C.disabled
|
|
2110
2110
|
}, { ref_for: !0 }, C.optionProps), {
|
|
2111
2111
|
default: t(() => [
|
|
2112
|
-
U(C) ? (l(), O(
|
|
2112
|
+
U(C) ? (l(), O(s(De), {
|
|
2113
2113
|
key: 0,
|
|
2114
2114
|
title: a(C),
|
|
2115
2115
|
placement: d.tooltipPlacement,
|
|
@@ -2154,28 +2154,28 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2154
2154
|
beforeSubmit: {}
|
|
2155
2155
|
},
|
|
2156
2156
|
setup(e, { expose: f }) {
|
|
2157
|
-
const { t: d } = ce(), u = N(), y = e, g = N(!1),
|
|
2157
|
+
const { t: d } = ce(), u = N(), y = e, g = N(!1), n = Se({
|
|
2158
2158
|
fileList: [],
|
|
2159
2159
|
visible: !1
|
|
2160
2160
|
}), i = (c) => {
|
|
2161
2161
|
if (c == null)
|
|
2162
2162
|
return;
|
|
2163
|
-
const z =
|
|
2163
|
+
const z = n.fileList.indexOf(c);
|
|
2164
2164
|
if (z !== -1) {
|
|
2165
|
-
const x =
|
|
2166
|
-
x.splice(z, 1),
|
|
2165
|
+
const x = n.fileList.slice();
|
|
2166
|
+
x.splice(z, 1), n.fileList = x;
|
|
2167
2167
|
}
|
|
2168
2168
|
}, o = () => {
|
|
2169
|
-
|
|
2170
|
-
}, a = (c) => (
|
|
2169
|
+
n.visible = !1, n.fileList = [], g.value = !1;
|
|
2170
|
+
}, a = (c) => (n.fileList = [c], y.beforeUpload ? y.beforeUpload(c) : !1), L = () => {
|
|
2171
2171
|
u.value.validateFields().then(() => {
|
|
2172
|
-
y.beforeSubmit && (g.value = !0, y.beforeSubmit(
|
|
2172
|
+
y.beforeSubmit && (g.value = !0, y.beforeSubmit(n.fileList).then((c) => {
|
|
2173
2173
|
}).finally(() => {
|
|
2174
2174
|
g.value = !1;
|
|
2175
2175
|
}));
|
|
2176
2176
|
});
|
|
2177
2177
|
}, U = () => {
|
|
2178
|
-
|
|
2178
|
+
n.visible = !0;
|
|
2179
2179
|
};
|
|
2180
2180
|
return f({
|
|
2181
2181
|
handleCancel: o,
|
|
@@ -2187,8 +2187,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2187
2187
|
return l(), F(E, null, [
|
|
2188
2188
|
S(A, ee({
|
|
2189
2189
|
title: y.title,
|
|
2190
|
-
visible:
|
|
2191
|
-
"onUpdate:visible": z[0] || (z[0] = (k) =>
|
|
2190
|
+
visible: n.visible,
|
|
2191
|
+
"onUpdate:visible": z[0] || (z[0] = (k) => n.visible = k),
|
|
2192
2192
|
"confirm-loading": g.value
|
|
2193
2193
|
}, c.$attrs, {
|
|
2194
2194
|
onCancel: o,
|
|
@@ -2199,13 +2199,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2199
2199
|
S(C, {
|
|
2200
2200
|
ref_key: "modalFormRef",
|
|
2201
2201
|
ref: u,
|
|
2202
|
-
model:
|
|
2202
|
+
model: n
|
|
2203
2203
|
}, {
|
|
2204
2204
|
default: t(() => [
|
|
2205
2205
|
S(T, {
|
|
2206
2206
|
name: "fileList",
|
|
2207
|
-
label:
|
|
2208
|
-
rules: [{ required: y.isRequired, message:
|
|
2207
|
+
label: s(d)("hbLibComp.HbImportFile.fileLabel"),
|
|
2208
|
+
rules: [{ required: y.isRequired, message: s(d)("hbLibComp.HbImportFile.clickUp") }]
|
|
2209
2209
|
}, {
|
|
2210
2210
|
default: t(() => [
|
|
2211
2211
|
S(x, {
|
|
@@ -2213,19 +2213,19 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2213
2213
|
multiple: y.multiple,
|
|
2214
2214
|
accept: y.acceptFile,
|
|
2215
2215
|
name: "file",
|
|
2216
|
-
fileList:
|
|
2216
|
+
fileList: n.fileList,
|
|
2217
2217
|
onRemove: i,
|
|
2218
2218
|
beforeUpload: a
|
|
2219
2219
|
}, {
|
|
2220
2220
|
default: t(() => [
|
|
2221
2221
|
v("p", eo, [
|
|
2222
|
-
S(
|
|
2222
|
+
S(s(kt), { style: { "font-size": "37px" } })
|
|
2223
2223
|
]),
|
|
2224
2224
|
v("p", to, [
|
|
2225
|
-
I(_(
|
|
2226
|
-
v("span", lo, _(
|
|
2225
|
+
I(_(s(d)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2226
|
+
v("span", lo, _(s(d)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2227
2227
|
]),
|
|
2228
|
-
v("p", oo, _(
|
|
2228
|
+
v("p", oo, _(s(d)("hbLibComp.HbFileUploadModal.format")) + ": " + _(y.acceptFile), 1)
|
|
2229
2229
|
]),
|
|
2230
2230
|
_: 1
|
|
2231
2231
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2239,7 +2239,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2239
2239
|
v("a", {
|
|
2240
2240
|
download: "Import_number-template.xlsx",
|
|
2241
2241
|
href: y.templateUrl
|
|
2242
|
-
}, _(
|
|
2242
|
+
}, _(s(d)("hbLibComp.HbImportFile.downloadTemplate")), 9, no)
|
|
2243
2243
|
])) : R("", !0)
|
|
2244
2244
|
]),
|
|
2245
2245
|
_: 1
|
|
@@ -2317,8 +2317,8 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2317
2317
|
if (f.data)
|
|
2318
2318
|
if (Array.isArray(f.data)) {
|
|
2319
2319
|
if (f.K && f.V && f.L) {
|
|
2320
|
-
const
|
|
2321
|
-
g =
|
|
2320
|
+
const n = f.data.find((i) => i?.[f.K] === f.V);
|
|
2321
|
+
g = n ? n[f.L] : "";
|
|
2322
2322
|
}
|
|
2323
2323
|
} else
|
|
2324
2324
|
f.K && (g = f.data[f.K]);
|
|
@@ -2330,7 +2330,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2330
2330
|
ke.error("复制失败");
|
|
2331
2331
|
});
|
|
2332
2332
|
};
|
|
2333
|
-
return (g,
|
|
2333
|
+
return (g, n) => {
|
|
2334
2334
|
const i = B("a-tooltip");
|
|
2335
2335
|
return u.value ? (l(), O(i, {
|
|
2336
2336
|
key: 0,
|
|
@@ -2341,7 +2341,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2341
2341
|
class: "hb-lib-copy-text-eyevue",
|
|
2342
2342
|
style: we({ ...g.cpStyle }),
|
|
2343
2343
|
onClick: _e(y, ["stop", "prevent"])
|
|
2344
|
-
}, [...
|
|
2344
|
+
}, [...n[0] || (n[0] = [
|
|
2345
2345
|
v("svg", {
|
|
2346
2346
|
t: "1766643849597",
|
|
2347
2347
|
class: "icon",
|
|
@@ -2430,7 +2430,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2430
2430
|
immediate: !0
|
|
2431
2431
|
}
|
|
2432
2432
|
);
|
|
2433
|
-
const y = Ue("drag"), g = f,
|
|
2433
|
+
const y = Ue("drag"), g = f, n = (L) => {
|
|
2434
2434
|
console.log("drag start", L), g("handleDragStart", L);
|
|
2435
2435
|
}, i = (L) => {
|
|
2436
2436
|
console.log("drag end", L), g("handleDragEnd", L);
|
|
@@ -2440,9 +2440,9 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2440
2440
|
console.log("drag remove", L), g("handleDragRemove", L);
|
|
2441
2441
|
};
|
|
2442
2442
|
return (L, U) => (l(), F("div", {
|
|
2443
|
-
class: j(
|
|
2443
|
+
class: j(s(y).b())
|
|
2444
2444
|
}, [
|
|
2445
|
-
L.childrenType == "component" ? (l(), O(
|
|
2445
|
+
L.childrenType == "component" ? (l(), O(s(Ce), ee({
|
|
2446
2446
|
key: 0,
|
|
2447
2447
|
modelValue: u.value,
|
|
2448
2448
|
"onUpdate:modelValue": U[0] || (U[0] = (c) => u.value = c),
|
|
@@ -2450,7 +2450,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2450
2450
|
class: { [L.dragClass]: L.dragClass }
|
|
2451
2451
|
}, L.$attrs, {
|
|
2452
2452
|
"ghost-class": L.ghostClass,
|
|
2453
|
-
onStart:
|
|
2453
|
+
onStart: n,
|
|
2454
2454
|
onEnd: i,
|
|
2455
2455
|
onAdd: o,
|
|
2456
2456
|
onRemove: a
|
|
@@ -2459,7 +2459,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2459
2459
|
(l(), O(mt(c.component)))
|
|
2460
2460
|
]),
|
|
2461
2461
|
_: 1
|
|
2462
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (l(), O(
|
|
2462
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (l(), O(s(Ce), ee({
|
|
2463
2463
|
key: 1,
|
|
2464
2464
|
modelValue: u.value,
|
|
2465
2465
|
"onUpdate:modelValue": U[1] || (U[1] = (c) => u.value = c),
|
|
@@ -2467,7 +2467,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2467
2467
|
class: { [L.dragClass]: L.dragClass }
|
|
2468
2468
|
}, L.$attrs, {
|
|
2469
2469
|
"ghost-class": L.ghostClass,
|
|
2470
|
-
onStart:
|
|
2470
|
+
onStart: n,
|
|
2471
2471
|
onEnd: i,
|
|
2472
2472
|
onAdd: o,
|
|
2473
2473
|
onRemove: a
|
|
@@ -2503,7 +2503,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2503
2503
|
props: yo,
|
|
2504
2504
|
emits: ["change"],
|
|
2505
2505
|
setup(e, { expose: f, emit: d }) {
|
|
2506
|
-
const u = e, y = d, g = N([]),
|
|
2506
|
+
const u = e, y = d, g = N([]), n = N("");
|
|
2507
2507
|
se(
|
|
2508
2508
|
() => u.menuItems,
|
|
2509
2509
|
(o) => {
|
|
@@ -2522,13 +2522,13 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
);
|
|
2524
2524
|
const i = (o) => {
|
|
2525
|
-
|
|
2525
|
+
n.value = o.value + o.sort, u.getSort && u.getSort({
|
|
2526
2526
|
orderFeild: o.value,
|
|
2527
2527
|
orderBy: o.sort
|
|
2528
|
-
}), y("change",
|
|
2528
|
+
}), y("change", n);
|
|
2529
2529
|
};
|
|
2530
2530
|
return f({
|
|
2531
|
-
currentActiveItem:
|
|
2531
|
+
currentActiveItem: n
|
|
2532
2532
|
}), (o, a) => {
|
|
2533
2533
|
const L = B("a-menu-item"), U = B("a-menu"), c = B("a-dropdown");
|
|
2534
2534
|
return l(), O(c, {
|
|
@@ -2543,7 +2543,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2543
2543
|
}, {
|
|
2544
2544
|
default: t(() => [
|
|
2545
2545
|
v("span", {
|
|
2546
|
-
class: j(
|
|
2546
|
+
class: j(n.value == z.value + z.sort ? "activted" : "")
|
|
2547
2547
|
}, _(z.label), 3)
|
|
2548
2548
|
]),
|
|
2549
2549
|
_: 2
|
|
@@ -2559,7 +2559,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2559
2559
|
}, ["prevent"]))
|
|
2560
2560
|
}, [
|
|
2561
2561
|
I(_(u.colText) + " ", 1),
|
|
2562
|
-
S(
|
|
2562
|
+
S(s(Oe))
|
|
2563
2563
|
])
|
|
2564
2564
|
]),
|
|
2565
2565
|
_: 1
|
|
@@ -2603,7 +2603,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2603
2603
|
width: "25%"
|
|
2604
2604
|
},
|
|
2605
2605
|
{ title: u("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2606
|
-
],
|
|
2606
|
+
], n = V(() => y.columns || g), i = V(() => y.title || u("hbLibComp.HbLogModal.operateLogs")), o = N(!1), a = Se({
|
|
2607
2607
|
list: [],
|
|
2608
2608
|
pagination: {
|
|
2609
2609
|
current: 1,
|
|
@@ -2667,7 +2667,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2667
2667
|
footer: t(() => [
|
|
2668
2668
|
S(b, { onClick: c }, {
|
|
2669
2669
|
default: t(() => [
|
|
2670
|
-
I(_(
|
|
2670
|
+
I(_(s(u)("hbLibComp.HbLogModal.close")), 1)
|
|
2671
2671
|
]),
|
|
2672
2672
|
_: 1
|
|
2673
2673
|
})
|
|
@@ -2676,7 +2676,7 @@ const wt = "hb-", Ue = (e = "") => {
|
|
|
2676
2676
|
S(w, {
|
|
2677
2677
|
bordered: "",
|
|
2678
2678
|
rowKey: "id",
|
|
2679
|
-
columns:
|
|
2679
|
+
columns: n.value,
|
|
2680
2680
|
dataSource: a.list,
|
|
2681
2681
|
pagination: a.pagination,
|
|
2682
2682
|
loading: o.value,
|
|
@@ -2758,13 +2758,13 @@ function Po() {
|
|
|
2758
2758
|
(function(d, u) {
|
|
2759
2759
|
e.exports = u(Fe);
|
|
2760
2760
|
})(Bo, (function(d) {
|
|
2761
|
-
function u(
|
|
2762
|
-
return
|
|
2761
|
+
function u(n) {
|
|
2762
|
+
return n && typeof n == "object" && "default" in n ? n : { default: n };
|
|
2763
2763
|
}
|
|
2764
|
-
var y = u(d), g = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(
|
|
2765
|
-
return i === "W" ?
|
|
2766
|
-
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(
|
|
2767
|
-
var o = 100 *
|
|
2764
|
+
var y = u(d), g = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(n, i) {
|
|
2765
|
+
return i === "W" ? n + "周" : n + "日";
|
|
2766
|
+
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(n, i) {
|
|
2767
|
+
var o = 100 * n + i;
|
|
2768
2768
|
return o < 600 ? "凌晨" : o < 900 ? "早上" : o < 1100 ? "上午" : o < 1300 ? "中午" : o < 1800 ? "下午" : "晚上";
|
|
2769
2769
|
} };
|
|
2770
2770
|
return y.default.locale(g, null, !0), g;
|