@hb-hellotech/hb-ui 1.1.1 → 1.1.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 +146 -326
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/hooks/useListFormItem.d.ts +0 -8
- package/dist/components/hooks/useListFormItem.d.ts.map +0 -1
- package/dist/components/type.d.ts +0 -13
- package/dist/components/type.d.ts.map +0 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, reactive as Je, ref as O, computed as K, watch as ce, createElementBlock as k, openBlock as o, normalizeClass as V, unref as n, createVNode as S, withCtx as c, createElementVNode as v, toDisplayString as L, createTextVNode as I, createBlock as B, createCommentVNode as R, Fragment as W, renderList as ne, inject as we, resolveComponent as
|
|
2
|
+
import { defineComponent as te, reactive as Je, ref as O, computed as K, watch as ce, createElementBlock as k, openBlock as o, normalizeClass as V, unref as n, createVNode as S, withCtx as c, createElementVNode as v, toDisplayString as L, createTextVNode as I, createBlock as B, createCommentVNode as R, Fragment as W, renderList as ne, inject as we, resolveComponent as j, Transition as Xe, withDirectives as ie, mergeProps as X, createSlots as Ge, renderSlot as Z, vShow as et, nextTick as he, onMounted as Fe, onUnmounted as tt, useTemplateRef as lt, provide as ot, normalizeStyle as me, mergeModels as Me, useModel as at, withModifiers as ke, resolveDirective as nt, watchEffect as st, shallowRef as it, resolveDynamicComponent as rt } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
4
|
import { CloseOutlined as ct, QuestionCircleOutlined as dt, SearchOutlined as xe, UpCircleOutlined as ut, DownCircleOutlined as ht, UnorderedListOutlined as bt, DownOutlined as Ie } from "@ant-design/icons-vue";
|
|
5
|
-
import { Modal as _e, Button as de, Tooltip as He, Switch as Ae, Radio as De, RadioGroup as Oe, InputNumber as Be, DatePicker as Re, Checkbox as pe, CheckboxGroup as
|
|
5
|
+
import { Modal as _e, Button as de, Tooltip as He, Switch as Ae, Radio as De, RadioGroup as Oe, InputNumber as Be, DatePicker as Re, Checkbox as pe, CheckboxGroup as ze, Select as Ne, Input as Pe, Col as ft, Row as pt, FormItem as Ve, Form as Ee, SelectOption as Ue, Popconfirm as Ce, MenuItem as Ye, Menu as je, Dropdown as qe, Popover as mt, message as Se } from "ant-design-vue";
|
|
6
6
|
import { useRoute as Qe } from "vue-router";
|
|
7
7
|
import { useI18n as re } from "vue-i18n";
|
|
8
8
|
import Le from "lodash";
|
|
@@ -42,7 +42,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
43
|
}), H = O(!1), Q = O(600);
|
|
44
44
|
let x = [];
|
|
45
|
-
const $ = O([]), E = O([]),
|
|
45
|
+
const $ = O([]), E = O([]), N = K(() => $.value.every((C) => C.isLinked || C.isFixed)), P = (C) => {
|
|
46
46
|
const A = C.draggedContext.element, g = C.relatedContext.index;
|
|
47
47
|
if (A.isLinked || A.isFixed)
|
|
48
48
|
return !1;
|
|
@@ -192,19 +192,19 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
192
192
|
}
|
|
193
193
|
}, U = () => {
|
|
194
194
|
H.value = !1;
|
|
195
|
-
},
|
|
195
|
+
}, z = () => {
|
|
196
196
|
H.value = !0;
|
|
197
197
|
}, ee = () => {
|
|
198
198
|
l(), a("confirm", $.value), U();
|
|
199
199
|
}, J = (C) => {
|
|
200
200
|
const A = E.value.findIndex((g) => g.key === C.key);
|
|
201
201
|
A !== -1 && (E.value[A].active = !0);
|
|
202
|
-
},
|
|
202
|
+
}, q = (C) => {
|
|
203
203
|
const A = E.value.findIndex((g) => g.key === C.key);
|
|
204
204
|
A !== -1 && (E.value[A].active = !1);
|
|
205
205
|
};
|
|
206
206
|
return f({
|
|
207
|
-
toOpenModal:
|
|
207
|
+
toOpenModal: z
|
|
208
208
|
}), (C, A) => (o(), k("div", {
|
|
209
209
|
class: V(n(h).b())
|
|
210
210
|
}, [
|
|
@@ -257,8 +257,8 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
257
257
|
"onUpdate:modelValue": A[0] || (A[0] = (g) => $.value = g),
|
|
258
258
|
"item-key": "key",
|
|
259
259
|
tag: "div",
|
|
260
|
-
disabled:
|
|
261
|
-
move:
|
|
260
|
+
disabled: N.value,
|
|
261
|
+
move: P
|
|
262
262
|
}, {
|
|
263
263
|
item: c(({ element: g }) => [
|
|
264
264
|
v("div", {
|
|
@@ -293,7 +293,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
293
293
|
class: V([n(h).e("unshow__tag__item"), n(h).is("fixed", g.isFixed || ""), n(h).is("linked", g.isLinked || "")]),
|
|
294
294
|
key: g.key,
|
|
295
295
|
onMouseenter: (Y) => J(g),
|
|
296
|
-
onMouseleave: (Y) =>
|
|
296
|
+
onMouseleave: (Y) => q(g)
|
|
297
297
|
}, [
|
|
298
298
|
I(L(g.label) + " ", 1),
|
|
299
299
|
g.active ? (o(), k("aside", {
|
|
@@ -320,27 +320,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
320
320
|
}, St = /* @__PURE__ */ oe(_t, [["__scopeId", "data-v-6ceb65e8"]]), le = (e, f) => (e.install = (u) => {
|
|
321
321
|
for (const s of [e, ...Object.values({})])
|
|
322
322
|
u.component(s.name, s);
|
|
323
|
-
}, e),
|
|
324
|
-
// 数据源 一般等于搜索框的options
|
|
325
|
-
list: {
|
|
326
|
-
type: Array,
|
|
327
|
-
default: () => [],
|
|
328
|
-
required: !0
|
|
329
|
-
},
|
|
330
|
-
afterChange: {
|
|
331
|
-
type: Function,
|
|
332
|
-
default: () => {
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
title: {
|
|
336
|
-
type: String,
|
|
337
|
-
default: "自定义查询条件"
|
|
338
|
-
},
|
|
339
|
-
showNumber: {
|
|
340
|
-
type: Number,
|
|
341
|
-
default: 40
|
|
342
|
-
}
|
|
343
|
-
}, wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
323
|
+
}, e), wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
344
324
|
name: "HbLibListForm",
|
|
345
325
|
__name: "HbListForm",
|
|
346
326
|
props: {
|
|
@@ -395,12 +375,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
395
375
|
const E = (_) => {
|
|
396
376
|
const t = _;
|
|
397
377
|
t.style.height = "", t.offsetHeight;
|
|
398
|
-
},
|
|
378
|
+
}, N = (_) => {
|
|
399
379
|
const t = _;
|
|
400
380
|
t.style.height = "", t.style.overflow = "", he(() => {
|
|
401
381
|
F.calTableHeight && F.calTableHeight();
|
|
402
382
|
});
|
|
403
|
-
},
|
|
383
|
+
}, P = (_) => {
|
|
404
384
|
const t = _, l = t.querySelector(".hb-lib-form--container");
|
|
405
385
|
if (l) {
|
|
406
386
|
const d = l.offsetHeight;
|
|
@@ -420,9 +400,9 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
420
400
|
FormItem: Ve,
|
|
421
401
|
Row: pt,
|
|
422
402
|
Col: ft,
|
|
423
|
-
Input:
|
|
424
|
-
Select:
|
|
425
|
-
CheckboxGroup:
|
|
403
|
+
Input: Pe,
|
|
404
|
+
Select: Ne,
|
|
405
|
+
CheckboxGroup: ze,
|
|
426
406
|
Checkbox: pe,
|
|
427
407
|
DatePicker: Re,
|
|
428
408
|
InputNumber: Be,
|
|
@@ -432,13 +412,13 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
432
412
|
Button: de,
|
|
433
413
|
Tooltip: He
|
|
434
414
|
}), (_, t) => {
|
|
435
|
-
const l =
|
|
415
|
+
const l = j("a-button"), d = j("a-tooltip"), y = j("HbLibFormItemFilterModal");
|
|
436
416
|
return o(), k(W, null, [
|
|
437
417
|
S(Xe, {
|
|
438
418
|
name: "form-collapse",
|
|
439
419
|
onEnter: E,
|
|
440
|
-
onAfterEnter:
|
|
441
|
-
onLeave:
|
|
420
|
+
onAfterEnter: N,
|
|
421
|
+
onLeave: P,
|
|
442
422
|
onAfterLeave: T
|
|
443
423
|
}, {
|
|
444
424
|
default: c(() => [
|
|
@@ -470,41 +450,41 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
470
450
|
formData: e.formData,
|
|
471
451
|
item: i
|
|
472
452
|
}, void 0, !0) : R("", !0),
|
|
473
|
-
i.type === "input" ? (o(), B(n(
|
|
453
|
+
i.type === "input" ? (o(), B(n(Pe), X({
|
|
474
454
|
key: 2,
|
|
475
455
|
value: e.formData[i.key],
|
|
476
|
-
"onUpdate:value": (
|
|
456
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
477
457
|
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
478
|
-
i.type === "select" ? (o(), B(n(
|
|
458
|
+
i.type === "select" ? (o(), B(n(Ne), X({
|
|
479
459
|
key: 3,
|
|
480
460
|
value: e.formData[i.key],
|
|
481
|
-
"onUpdate:value": (
|
|
461
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
482
462
|
}, { ref_for: !0 }, i.attrs), {
|
|
483
463
|
default: c(() => [
|
|
484
|
-
(o(!0), k(W, null, ne(i.options, (
|
|
464
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(Ue), {
|
|
485
465
|
key: ee,
|
|
486
|
-
value:
|
|
466
|
+
value: z.value
|
|
487
467
|
}, {
|
|
488
468
|
default: c(() => [
|
|
489
|
-
I(L(
|
|
469
|
+
I(L(z.label), 1)
|
|
490
470
|
]),
|
|
491
471
|
_: 2
|
|
492
472
|
}, 1032, ["value"]))), 128))
|
|
493
473
|
]),
|
|
494
474
|
_: 2
|
|
495
475
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
496
|
-
i.type === "checkbox" ? (o(), B(n(
|
|
476
|
+
i.type === "checkbox" ? (o(), B(n(ze), X({
|
|
497
477
|
key: 4,
|
|
498
478
|
value: e.formData[i.key],
|
|
499
|
-
"onUpdate:value": (
|
|
479
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
500
480
|
}, { ref_for: !0 }, i.attrs), {
|
|
501
481
|
default: c(() => [
|
|
502
|
-
(o(!0), k(W, null, ne(i.options, (
|
|
482
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(pe), {
|
|
503
483
|
key: ee,
|
|
504
|
-
value:
|
|
484
|
+
value: z.value
|
|
505
485
|
}, {
|
|
506
486
|
default: c(() => [
|
|
507
|
-
I(L(
|
|
487
|
+
I(L(z.label), 1)
|
|
508
488
|
]),
|
|
509
489
|
_: 2
|
|
510
490
|
}, 1032, ["value"]))), 128))
|
|
@@ -514,25 +494,25 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
514
494
|
i.type === "date-picker" ? (o(), B(n(Re), X({
|
|
515
495
|
key: 5,
|
|
516
496
|
value: e.formData[i.key],
|
|
517
|
-
"onUpdate:value": (
|
|
497
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
518
498
|
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
519
499
|
i.type === "input-number" ? (o(), B(n(Be), X({
|
|
520
500
|
key: 6,
|
|
521
501
|
value: e.formData[i.key],
|
|
522
|
-
"onUpdate:value": (
|
|
502
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
523
503
|
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
524
504
|
i.type === "radio" ? (o(), B(n(Oe), X({
|
|
525
505
|
key: 7,
|
|
526
506
|
value: e.formData[i.key],
|
|
527
|
-
"onUpdate:value": (
|
|
507
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
528
508
|
}, { ref_for: !0 }, i.attrs), {
|
|
529
509
|
default: c(() => [
|
|
530
|
-
(o(!0), k(W, null, ne(i.options, (
|
|
510
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(De), {
|
|
531
511
|
key: ee,
|
|
532
|
-
value:
|
|
512
|
+
value: z.value
|
|
533
513
|
}, {
|
|
534
514
|
default: c(() => [
|
|
535
|
-
I(L(
|
|
515
|
+
I(L(z.label), 1)
|
|
536
516
|
]),
|
|
537
517
|
_: 2
|
|
538
518
|
}, 1032, ["value"]))), 128))
|
|
@@ -542,7 +522,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
542
522
|
i.type === "switch" ? (o(), B(n(Ae), X({
|
|
543
523
|
key: 8,
|
|
544
524
|
checked: e.formData[i.key],
|
|
545
|
-
"onUpdate:checked": (
|
|
525
|
+
"onUpdate:checked": (z) => e.formData[i.key] = z
|
|
546
526
|
}, { ref_for: !0 }, i.attrs), null, 16, ["checked", "onUpdate:checked"])) : R("", !0)
|
|
547
527
|
]),
|
|
548
528
|
_: 2
|
|
@@ -681,53 +661,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
681
661
|
], 64);
|
|
682
662
|
};
|
|
683
663
|
}
|
|
684
|
-
}), Tt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-a1fedfa4"]]),
|
|
685
|
-
// 每一个表单配置对象
|
|
686
|
-
items: {
|
|
687
|
-
type: Array,
|
|
688
|
-
required: !0
|
|
689
|
-
},
|
|
690
|
-
formData: {
|
|
691
|
-
type: Object,
|
|
692
|
-
required: !0
|
|
693
|
-
},
|
|
694
|
-
layoutConfig: {
|
|
695
|
-
type: Object,
|
|
696
|
-
default: {
|
|
697
|
-
// 对row的属性设置
|
|
698
|
-
row: {
|
|
699
|
-
gutter: 20
|
|
700
|
-
},
|
|
701
|
-
// 对col的属性设置
|
|
702
|
-
col: {
|
|
703
|
-
// 栅格设置
|
|
704
|
-
xs: 24,
|
|
705
|
-
sm: 12,
|
|
706
|
-
md: 8,
|
|
707
|
-
lg: 6,
|
|
708
|
-
xl: 6
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
// 是否需要底部按钮
|
|
713
|
-
needFooter: {
|
|
714
|
-
type: Boolean,
|
|
715
|
-
default: !1
|
|
716
|
-
},
|
|
717
|
-
isFormExpanded: {
|
|
718
|
-
type: Boolean,
|
|
719
|
-
default: !0
|
|
720
|
-
},
|
|
721
|
-
needFilter: {
|
|
722
|
-
type: Boolean,
|
|
723
|
-
default: !0
|
|
724
|
-
},
|
|
725
|
-
calTableHeight: {
|
|
726
|
-
type: Function,
|
|
727
|
-
default: () => {
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
}, $t = le(Tt), Mt = { class: "hb-lib-list-page-act-box" }, It = { class: "hb-lib-list-page-breadcrumb" }, Ht = { class: "hb-lib-list-page-act" }, At = {
|
|
664
|
+
}), Tt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-a1fedfa4"]]), $t = le(Tt), Mt = { class: "hb-lib-list-page-act-box" }, It = { class: "hb-lib-list-page-breadcrumb" }, Ht = { class: "hb-lib-list-page-act" }, At = {
|
|
731
665
|
key: 0,
|
|
732
666
|
t: "1757915338760",
|
|
733
667
|
class: "icon",
|
|
@@ -769,7 +703,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
769
703
|
return Fe(() => {
|
|
770
704
|
p();
|
|
771
705
|
}), (r, a) => {
|
|
772
|
-
const h =
|
|
706
|
+
const h = j("a-tooltip");
|
|
773
707
|
return o(), k("section", Mt, [
|
|
774
708
|
v("aside", It, L(m.value), 1),
|
|
775
709
|
v("aside", Ht, [
|
|
@@ -815,27 +749,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
815
749
|
]);
|
|
816
750
|
};
|
|
817
751
|
}
|
|
818
|
-
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]),
|
|
819
|
-
formItems: {
|
|
820
|
-
type: Array,
|
|
821
|
-
default: () => []
|
|
822
|
-
},
|
|
823
|
-
// 是否展示自定义筛选
|
|
824
|
-
isShowSelfFilter: {
|
|
825
|
-
type: Boolean,
|
|
826
|
-
default: !0
|
|
827
|
-
},
|
|
828
|
-
// 是否展示展开收起
|
|
829
|
-
isShowOpenClose: {
|
|
830
|
-
type: Boolean,
|
|
831
|
-
default: !0
|
|
832
|
-
},
|
|
833
|
-
// 是否展示全屏
|
|
834
|
-
isShowFullScreen: {
|
|
835
|
-
type: Boolean,
|
|
836
|
-
default: !0
|
|
837
|
-
}
|
|
838
|
-
}, Rt = le(Bt), Nt = { class: "hb-lib-list-btns-box" }, Pt = { class: "hb-lib-list-btns-left" }, zt = { class: "hb-lib-list-btns-right" }, Vt = /* @__PURE__ */ te({
|
|
752
|
+
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]), Rt = le(Bt), zt = { class: "hb-lib-list-btns-box" }, Nt = { class: "hb-lib-list-btns-left" }, Pt = { class: "hb-lib-list-btns-right" }, Vt = /* @__PURE__ */ te({
|
|
839
753
|
name: "HbLibListBtnsAct",
|
|
840
754
|
__name: "HbListBtns",
|
|
841
755
|
props: {
|
|
@@ -853,12 +767,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
853
767
|
};
|
|
854
768
|
return Fe(() => {
|
|
855
769
|
}), (p, r) => {
|
|
856
|
-
const a =
|
|
857
|
-
return o(), k("section",
|
|
858
|
-
v("aside",
|
|
770
|
+
const a = j("a-tooltip");
|
|
771
|
+
return o(), k("section", zt, [
|
|
772
|
+
v("aside", Nt, [
|
|
859
773
|
Z(p.$slots, "btnsLeft", {}, void 0, !0)
|
|
860
774
|
]),
|
|
861
|
-
v("aside",
|
|
775
|
+
v("aside", Pt, [
|
|
862
776
|
e.needReload ? (o(), B(a, {
|
|
863
777
|
key: 0,
|
|
864
778
|
title: p.$t("hbLibComp.hbListBtnsAct.reload")
|
|
@@ -913,34 +827,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
913
827
|
]);
|
|
914
828
|
};
|
|
915
829
|
}
|
|
916
|
-
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]),
|
|
917
|
-
formItems: {
|
|
918
|
-
type: Array,
|
|
919
|
-
default: () => []
|
|
920
|
-
},
|
|
921
|
-
// 是否展示自定义筛选
|
|
922
|
-
isShowSelfFilter: {
|
|
923
|
-
type: Boolean,
|
|
924
|
-
default: !0
|
|
925
|
-
},
|
|
926
|
-
needReload: {
|
|
927
|
-
type: Boolean,
|
|
928
|
-
default: !0
|
|
929
|
-
},
|
|
930
|
-
needOpenOrClose: {
|
|
931
|
-
type: Boolean,
|
|
932
|
-
default: !0
|
|
933
|
-
}
|
|
934
|
-
}, Ut = le(Et), Yt = (e = {}) => {
|
|
830
|
+
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), Ut = le(Et), Yt = (e = {}) => {
|
|
935
831
|
const { formRef: f, offsetBottom: u = 50, minHeight: s = 300 } = e, F = O(0);
|
|
936
832
|
let m = null, p = null, r = null, a = null, h = null;
|
|
937
833
|
const b = () => {
|
|
938
834
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
939
835
|
requestAnimationFrame(() => {
|
|
940
836
|
he(() => {
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
943
|
-
const T =
|
|
837
|
+
const N = document.querySelector(".ant-table"), P = document.querySelector(".ant-pagination");
|
|
838
|
+
if (N) {
|
|
839
|
+
const T = N.getBoundingClientRect().top, _ = window.innerHeight, l = (P ? P.offsetHeight + 20 : 40) + u;
|
|
944
840
|
let d = _ - T - l;
|
|
945
841
|
d < s && (d = s), F.value = d;
|
|
946
842
|
}
|
|
@@ -948,33 +844,33 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
948
844
|
});
|
|
949
845
|
}, 100);
|
|
950
846
|
}, D = () => {
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
847
|
+
const N = document.querySelector(".ant-pagination");
|
|
848
|
+
if (N) {
|
|
849
|
+
const P = new MutationObserver(() => {
|
|
954
850
|
b();
|
|
955
851
|
});
|
|
956
|
-
return
|
|
852
|
+
return P.observe(N, {
|
|
957
853
|
childList: !0,
|
|
958
854
|
subtree: !0,
|
|
959
855
|
attributes: !0,
|
|
960
856
|
attributeFilter: ["style", "class"]
|
|
961
|
-
}),
|
|
857
|
+
}), P;
|
|
962
858
|
}
|
|
963
859
|
return null;
|
|
964
860
|
}, H = () => {
|
|
965
|
-
const
|
|
966
|
-
|
|
861
|
+
const N = document.querySelector(".hb-lib-list-page-form-box");
|
|
862
|
+
N && (m = new ResizeObserver(() => {
|
|
967
863
|
document.querySelectorAll(".ant-tooltip").forEach((T) => {
|
|
968
864
|
T.style.display = "none";
|
|
969
865
|
}), b();
|
|
970
|
-
}), m.observe(
|
|
866
|
+
}), m.observe(N));
|
|
971
867
|
}, Q = () => {
|
|
972
|
-
const
|
|
973
|
-
|
|
868
|
+
const N = document.querySelector(".hb-lib-list-page-form-box");
|
|
869
|
+
N && (r = new MutationObserver(() => {
|
|
974
870
|
setTimeout(() => {
|
|
975
871
|
b();
|
|
976
872
|
}, 100);
|
|
977
|
-
}), r.observe(
|
|
873
|
+
}), r.observe(N, {
|
|
978
874
|
childList: !0,
|
|
979
875
|
subtree: !0,
|
|
980
876
|
attributes: !0,
|
|
@@ -1007,7 +903,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1007
903
|
tableHeight: F,
|
|
1008
904
|
calTableHeight: b
|
|
1009
905
|
};
|
|
1010
|
-
},
|
|
906
|
+
}, jt = /* @__PURE__ */ te({
|
|
1011
907
|
name: "HbLibListPageContainer",
|
|
1012
908
|
__name: "HbListPageContainer",
|
|
1013
909
|
props: {
|
|
@@ -1045,22 +941,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1045
941
|
], 4)
|
|
1046
942
|
], 512));
|
|
1047
943
|
}
|
|
1048
|
-
}),
|
|
1049
|
-
tableHeight: {
|
|
1050
|
-
type: Number,
|
|
1051
|
-
default: 400
|
|
1052
|
-
},
|
|
1053
|
-
tabelData: {
|
|
1054
|
-
type: Array,
|
|
1055
|
-
default: () => []
|
|
1056
|
-
},
|
|
1057
|
-
offsetBottom: {
|
|
1058
|
-
type: Number
|
|
1059
|
-
},
|
|
1060
|
-
minHeight: {
|
|
1061
|
-
type: Number
|
|
1062
|
-
}
|
|
1063
|
-
}, jt = le(qt), Kt = { style: { "font-weight": "500" } }, Wt = {
|
|
944
|
+
}), qt = le(jt), Kt = { style: { "font-weight": "500" } }, Wt = {
|
|
1064
945
|
key: 0,
|
|
1065
946
|
class: "hb-lib-search-tag__description"
|
|
1066
947
|
}, Jt = { class: "hb-lib-selector-dropdown" }, Gt = { class: "hb-lib-selector-search" }, Qt = { class: "hb-lib-selector-list" }, Zt = ["onClick"], Xt = { class: "hb-lib-option-content" }, el = { class: "hb-lib-option-label" }, tl = {
|
|
@@ -1125,10 +1006,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1125
1006
|
}, 100));
|
|
1126
1007
|
}, x = O([]), $ = () => {
|
|
1127
1008
|
r.value = [...x.value], m.value = !1, s("cancel");
|
|
1128
|
-
}, E = O([]),
|
|
1009
|
+
}, E = O([]), N = () => {
|
|
1129
1010
|
const t = u.multiple ? r.value : r.value[0] || "", l = u.options.filter((d) => r.value.includes(d.value));
|
|
1130
1011
|
E.value = l, console.log(t, l), x.value = [...r.value], F.value = t, s("update:value", t), s("change", t, l), s("confirm", t, l), m.value = !1;
|
|
1131
|
-
},
|
|
1012
|
+
}, P = gt((t) => {
|
|
1132
1013
|
const l = t !== void 0 ? t : p.value;
|
|
1133
1014
|
u.remoteSearch && (s("search", l), s("update:searchValue", l));
|
|
1134
1015
|
}, 300), T = (t) => {
|
|
@@ -1136,7 +1017,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1136
1017
|
const l = new Set(r.value);
|
|
1137
1018
|
l.has(t.value) ? l.delete(t.value) : l.add(t.value), r.value = Array.from(l);
|
|
1138
1019
|
} else
|
|
1139
|
-
r.value = [t.value],
|
|
1020
|
+
r.value = [t.value], N();
|
|
1140
1021
|
}, _ = (t) => {
|
|
1141
1022
|
if (t.target.checked) {
|
|
1142
1023
|
const d = new Set(r.value);
|
|
@@ -1149,7 +1030,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1149
1030
|
}
|
|
1150
1031
|
};
|
|
1151
1032
|
return (t, l) => {
|
|
1152
|
-
const d =
|
|
1033
|
+
const d = j("a-tag"), y = j("a-input"), i = j("a-checkbox"), U = j("a-radio"), z = j("a-button"), ee = j("a-select");
|
|
1153
1034
|
return o(), k("div", X({
|
|
1154
1035
|
class: "hb-lib-selector-wrapper",
|
|
1155
1036
|
style: { "--prefix-width": b.value }
|
|
@@ -1166,19 +1047,19 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1166
1047
|
maxTagCount: e.maxTagCount,
|
|
1167
1048
|
options: h.value,
|
|
1168
1049
|
onDropdownVisibleChange: Q,
|
|
1169
|
-
onSearch: n(
|
|
1050
|
+
onSearch: n(P),
|
|
1170
1051
|
"max-tag-text-length": e.tagTextLength,
|
|
1171
1052
|
class: V({ "has-prefix": e.prefix }),
|
|
1172
1053
|
"data-prefix": e.prefix,
|
|
1173
1054
|
style: { width: "100%" }
|
|
1174
1055
|
}, {
|
|
1175
|
-
tagRender: c(({ value: J, label:
|
|
1056
|
+
tagRender: c(({ value: J, label: q, closable: C, option: A }) => [
|
|
1176
1057
|
S(d, {
|
|
1177
1058
|
class: "hb-lib-search-tag",
|
|
1178
1059
|
onClick: l[0] || (l[0] = () => Q(!0))
|
|
1179
1060
|
}, {
|
|
1180
1061
|
default: c(() => [
|
|
1181
|
-
v("span", Kt, L(
|
|
1062
|
+
v("span", Kt, L(q), 1),
|
|
1182
1063
|
A?.description ? (o(), k("span", Wt, " (" + L(A.description) + ") ", 1)) : R("", !0)
|
|
1183
1064
|
]),
|
|
1184
1065
|
_: 2
|
|
@@ -1192,10 +1073,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1192
1073
|
ref: a,
|
|
1193
1074
|
class: "hb-lib-selector-search-input",
|
|
1194
1075
|
value: p.value,
|
|
1195
|
-
"onUpdate:value": l[1] || (l[1] = (
|
|
1076
|
+
"onUpdate:value": l[1] || (l[1] = (q) => p.value = q),
|
|
1196
1077
|
placeholder: "请输入关键词搜索",
|
|
1197
1078
|
"allow-clear": "",
|
|
1198
|
-
onInput: l[2] || (l[2] = (
|
|
1079
|
+
onInput: l[2] || (l[2] = (q) => n(P)(q.target.value))
|
|
1199
1080
|
}, {
|
|
1200
1081
|
prefix: c(() => [
|
|
1201
1082
|
S(n(xe))
|
|
@@ -1204,26 +1085,26 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1204
1085
|
}, 8, ["value"])
|
|
1205
1086
|
]),
|
|
1206
1087
|
v("div", Qt, [
|
|
1207
|
-
(o(!0), k(W, null, ne(h.value, (
|
|
1208
|
-
key:
|
|
1209
|
-
class: V(["hb-lib-selector-option", { selected: r.value.includes(
|
|
1210
|
-
onClick: () => T(
|
|
1088
|
+
(o(!0), k(W, null, ne(h.value, (q) => (o(), k("div", {
|
|
1089
|
+
key: q.value,
|
|
1090
|
+
class: V(["hb-lib-selector-option", { selected: r.value.includes(q.value) }]),
|
|
1091
|
+
onClick: () => T(q)
|
|
1211
1092
|
}, [
|
|
1212
1093
|
e.multiple ? (o(), B(i, {
|
|
1213
1094
|
key: 0,
|
|
1214
|
-
checked: r.value.includes(
|
|
1215
|
-
onChange: () => T(
|
|
1095
|
+
checked: r.value.includes(q.value),
|
|
1096
|
+
onChange: () => T(q),
|
|
1216
1097
|
onClick: l[3] || (l[3] = ke(() => {
|
|
1217
1098
|
}, ["stop"]))
|
|
1218
1099
|
}, null, 8, ["checked", "onChange"])) : (o(), B(U, {
|
|
1219
1100
|
key: 1,
|
|
1220
|
-
checked: r.value.includes(
|
|
1221
|
-
onChange: () => T(
|
|
1101
|
+
checked: r.value.includes(q.value),
|
|
1102
|
+
onChange: () => T(q),
|
|
1222
1103
|
onClick: l[4] || (l[4] = ke(() => {
|
|
1223
1104
|
}, ["stop"]))
|
|
1224
1105
|
}, null, 8, ["checked", "onChange"])),
|
|
1225
1106
|
v("div", Xt, [
|
|
1226
|
-
v("div", el, L(
|
|
1107
|
+
v("div", el, L(q.label), 1)
|
|
1227
1108
|
])
|
|
1228
1109
|
], 10, Zt))), 128))
|
|
1229
1110
|
]),
|
|
@@ -1240,7 +1121,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1240
1121
|
_: 1
|
|
1241
1122
|
}, 8, ["checked", "indeterminate"]),
|
|
1242
1123
|
v("div", ol, [
|
|
1243
|
-
S(
|
|
1124
|
+
S(z, {
|
|
1244
1125
|
size: "small",
|
|
1245
1126
|
onClick: $
|
|
1246
1127
|
}, {
|
|
@@ -1249,10 +1130,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1249
1130
|
]),
|
|
1250
1131
|
_: 1
|
|
1251
1132
|
}),
|
|
1252
|
-
S(
|
|
1133
|
+
S(z, {
|
|
1253
1134
|
type: "primary",
|
|
1254
1135
|
size: "small",
|
|
1255
|
-
onClick:
|
|
1136
|
+
onClick: N
|
|
1256
1137
|
}, {
|
|
1257
1138
|
default: c(() => [
|
|
1258
1139
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1263,7 +1144,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1263
1144
|
])) : (o(), k("div", al, [
|
|
1264
1145
|
l[6] || (l[6] = v("div", null, null, -1)),
|
|
1265
1146
|
v("div", nl, [
|
|
1266
|
-
S(
|
|
1147
|
+
S(z, {
|
|
1267
1148
|
size: "small",
|
|
1268
1149
|
onClick: $
|
|
1269
1150
|
}, {
|
|
@@ -1309,15 +1190,15 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1309
1190
|
}), p.value = d.substring(0, d.length - 1), m.value = !1, F("handleConfirm", b.value);
|
|
1310
1191
|
}, E = () => {
|
|
1311
1192
|
m.value = !1;
|
|
1312
|
-
},
|
|
1193
|
+
}, N = () => {
|
|
1313
1194
|
m.value = !0, he(() => {
|
|
1314
1195
|
const d = D.value?.$el?.querySelector(".ant-table-body");
|
|
1315
1196
|
d && (d.scrollTop = 0);
|
|
1316
1197
|
});
|
|
1317
|
-
},
|
|
1198
|
+
}, P = () => {
|
|
1318
1199
|
h.value = [], b.value = [];
|
|
1319
1200
|
}, T = () => {
|
|
1320
|
-
p.value = "",
|
|
1201
|
+
p.value = "", P();
|
|
1321
1202
|
}, _ = (d, y, i) => {
|
|
1322
1203
|
y(), H.searchText = d[0], H.searchedColumn = i;
|
|
1323
1204
|
}, t = (d, y) => {
|
|
@@ -1328,7 +1209,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1328
1209
|
return f({
|
|
1329
1210
|
resetInputVal: T
|
|
1330
1211
|
}), (d, y) => {
|
|
1331
|
-
const i =
|
|
1212
|
+
const i = j("a-input"), U = j("a-button"), z = j("a-table"), ee = j("a-modal");
|
|
1332
1213
|
return o(), k("div", {
|
|
1333
1214
|
class: "hb-lib-multipleSelectModal-box",
|
|
1334
1215
|
ref_key: "hbMultipSelectModalRef",
|
|
@@ -1336,13 +1217,13 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1336
1217
|
}, [
|
|
1337
1218
|
S(i, {
|
|
1338
1219
|
readonly: "",
|
|
1339
|
-
onClick:
|
|
1220
|
+
onClick: N,
|
|
1340
1221
|
value: p.value,
|
|
1341
1222
|
"onUpdate:value": y[0] || (y[0] = (J) => p.value = J),
|
|
1342
1223
|
placeholder: d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1343
1224
|
}, {
|
|
1344
1225
|
addonAfter: c(() => [
|
|
1345
|
-
S(n(bt), { onClick:
|
|
1226
|
+
S(n(bt), { onClick: N })
|
|
1346
1227
|
]),
|
|
1347
1228
|
_: 1
|
|
1348
1229
|
}, 8, ["value", "placeholder"]),
|
|
@@ -1354,7 +1235,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1354
1235
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1355
1236
|
}, {
|
|
1356
1237
|
footer: c(() => [
|
|
1357
|
-
S(U, { onClick:
|
|
1238
|
+
S(U, { onClick: P }, {
|
|
1358
1239
|
default: c(() => [
|
|
1359
1240
|
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1360
1241
|
]),
|
|
@@ -1377,7 +1258,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1377
1258
|
})
|
|
1378
1259
|
]),
|
|
1379
1260
|
default: c(() => [
|
|
1380
|
-
S(
|
|
1261
|
+
S(z, {
|
|
1381
1262
|
ref_key: "tableRef",
|
|
1382
1263
|
ref: D,
|
|
1383
1264
|
columns: x.value,
|
|
@@ -1386,16 +1267,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1386
1267
|
rowKey: (J) => J[e.tableKey],
|
|
1387
1268
|
scroll: { y: e.tableHeight }
|
|
1388
1269
|
}, {
|
|
1389
|
-
customFilterDropdown: c(({ setSelectedKeys: J, selectedKeys:
|
|
1270
|
+
customFilterDropdown: c(({ setSelectedKeys: J, selectedKeys: q, confirm: C, clearFilters: A, column: g }) => [
|
|
1390
1271
|
v("div", cl, [
|
|
1391
1272
|
S(i, {
|
|
1392
1273
|
ref_key: "searchInput",
|
|
1393
1274
|
ref: r,
|
|
1394
1275
|
placeholder: `请输入${g.title}`,
|
|
1395
|
-
value:
|
|
1276
|
+
value: q[0],
|
|
1396
1277
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1397
1278
|
onChange: (Y) => J(Y.target.value ? [Y.target.value] : []),
|
|
1398
|
-
onPressEnter: (Y) => _(
|
|
1279
|
+
onPressEnter: (Y) => _(q, C, g.dataIndex)
|
|
1399
1280
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1400
1281
|
v("section", dl, [
|
|
1401
1282
|
S(U, {
|
|
@@ -1411,7 +1292,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1411
1292
|
S(U, {
|
|
1412
1293
|
type: "primary",
|
|
1413
1294
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1414
|
-
onClick: (Y) => _(
|
|
1295
|
+
onClick: (Y) => _(q, C, g.dataIndex)
|
|
1415
1296
|
}, {
|
|
1416
1297
|
default: c(() => [
|
|
1417
1298
|
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1426,8 +1307,8 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1426
1307
|
style: me({ color: J ? "#108ee9" : void 0 })
|
|
1427
1308
|
}, null, 8, ["style"])
|
|
1428
1309
|
]),
|
|
1429
|
-
bodyCell: c(({ text: J, column:
|
|
1430
|
-
H.searchText && H.searchedColumn ===
|
|
1310
|
+
bodyCell: c(({ text: J, column: q }) => [
|
|
1311
|
+
H.searchText && H.searchedColumn === q.dataIndex ? (o(), k("span", ul, [
|
|
1431
1312
|
(o(!0), k(W, null, ne(J.toString().split(new RegExp(`(?<=${H.searchText})|(?=${H.searchText})`, "i")), (C, A) => (o(), k(W, null, [
|
|
1432
1313
|
C.toLowerCase() === H.searchText.toLowerCase() ? (o(), k("mark", {
|
|
1433
1314
|
key: A,
|
|
@@ -1446,37 +1327,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1446
1327
|
], 512);
|
|
1447
1328
|
};
|
|
1448
1329
|
}
|
|
1449
|
-
}),
|
|
1450
|
-
modelTitle: {
|
|
1451
|
-
type: String,
|
|
1452
|
-
default: "搜索弹窗"
|
|
1453
|
-
},
|
|
1454
|
-
modalWidth: {
|
|
1455
|
-
type: Number,
|
|
1456
|
-
default: 800
|
|
1457
|
-
},
|
|
1458
|
-
tableHeight: {
|
|
1459
|
-
type: Number,
|
|
1460
|
-
default: 500
|
|
1461
|
-
},
|
|
1462
|
-
tableColumn: {
|
|
1463
|
-
type: Array,
|
|
1464
|
-
default: () => [],
|
|
1465
|
-
required: !0
|
|
1466
|
-
},
|
|
1467
|
-
tableData: {
|
|
1468
|
-
type: Array,
|
|
1469
|
-
default: () => []
|
|
1470
|
-
},
|
|
1471
|
-
tableKey: {
|
|
1472
|
-
type: String,
|
|
1473
|
-
default: "id"
|
|
1474
|
-
},
|
|
1475
|
-
labelKey: {
|
|
1476
|
-
type: String,
|
|
1477
|
-
default: "label"
|
|
1478
|
-
}
|
|
1479
|
-
}, bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1330
|
+
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1480
1331
|
href: "javascript:;",
|
|
1481
1332
|
class: "hb-lib-table-main-action"
|
|
1482
1333
|
}, vl = ["onClick"], gl = {
|
|
@@ -1514,14 +1365,14 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1514
1365
|
content: s("hbLibComp.hbTableAct.confirmContent")
|
|
1515
1366
|
});
|
|
1516
1367
|
return f({
|
|
1517
|
-
ADropdown:
|
|
1518
|
-
AMenu:
|
|
1368
|
+
ADropdown: qe,
|
|
1369
|
+
AMenu: je,
|
|
1519
1370
|
AMenuItem: Ye,
|
|
1520
1371
|
APopconfirm: Ce,
|
|
1521
1372
|
AModal: _e,
|
|
1522
1373
|
DownOutlined: Ie
|
|
1523
1374
|
}), ($, E) => {
|
|
1524
|
-
const
|
|
1375
|
+
const N = j("a-divider"), P = nt("has");
|
|
1525
1376
|
return o(), k("div", fl, [
|
|
1526
1377
|
(o(!0), k(W, null, ne(a.value, (T, _) => (o(), k(W, { key: _ }, [
|
|
1527
1378
|
T.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
@@ -1533,7 +1384,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1533
1384
|
}, [
|
|
1534
1385
|
I(L(T.label), 1)
|
|
1535
1386
|
], 8, pl)), [
|
|
1536
|
-
[
|
|
1387
|
+
[P, T.permissionsTag || null]
|
|
1537
1388
|
]) : (o(), B(n(Ce), {
|
|
1538
1389
|
key: 1,
|
|
1539
1390
|
title: T.confirmTitle,
|
|
@@ -1543,7 +1394,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1543
1394
|
ie((o(), k("a", ml, [
|
|
1544
1395
|
I(L(T.label), 1)
|
|
1545
1396
|
])), [
|
|
1546
|
-
[
|
|
1397
|
+
[P, T.permissionsTag || null]
|
|
1547
1398
|
])
|
|
1548
1399
|
]),
|
|
1549
1400
|
_: 2
|
|
@@ -1556,17 +1407,17 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1556
1407
|
}, [
|
|
1557
1408
|
I(L(T.label), 1)
|
|
1558
1409
|
], 8, vl)), [
|
|
1559
|
-
[
|
|
1410
|
+
[P, T.permissionsTag || null]
|
|
1560
1411
|
]),
|
|
1561
|
-
h.value && h.value.length > 0 || _ !== a.value.length - 1 ? (o(), B(
|
|
1412
|
+
h.value && h.value.length > 0 || _ !== a.value.length - 1 ? (o(), B(N, {
|
|
1562
1413
|
key: 0,
|
|
1563
1414
|
type: "vertical"
|
|
1564
1415
|
})) : R("", !0)
|
|
1565
1416
|
], 64))
|
|
1566
1417
|
], 64))), 128)),
|
|
1567
|
-
h.value && h.value.length > 0 ? (o(), B(n(
|
|
1418
|
+
h.value && h.value.length > 0 ? (o(), B(n(qe), { key: 0 }, {
|
|
1568
1419
|
overlay: c(() => [
|
|
1569
|
-
S(n(
|
|
1420
|
+
S(n(je), null, {
|
|
1570
1421
|
default: c(() => [
|
|
1571
1422
|
(o(!0), k(W, null, ne(h.value, (T) => (o(), B(n(Ye), {
|
|
1572
1423
|
key: T.key
|
|
@@ -1580,7 +1431,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1580
1431
|
}, [
|
|
1581
1432
|
I(L(T.label), 1)
|
|
1582
1433
|
], 8, yl)), [
|
|
1583
|
-
[
|
|
1434
|
+
[P, T.permissionsTag || null]
|
|
1584
1435
|
]) : (o(), B(n(Ce), {
|
|
1585
1436
|
key: 1,
|
|
1586
1437
|
title: T.confirmTitle,
|
|
@@ -1590,7 +1441,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1590
1441
|
ie((o(), k("a", Cl, [
|
|
1591
1442
|
I(L(T.label), 1)
|
|
1592
1443
|
])), [
|
|
1593
|
-
[
|
|
1444
|
+
[P, T.permissionsTag || null]
|
|
1594
1445
|
])
|
|
1595
1446
|
]),
|
|
1596
1447
|
_: 2
|
|
@@ -1602,7 +1453,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1602
1453
|
}, [
|
|
1603
1454
|
I(L(T.label), 1)
|
|
1604
1455
|
], 8, Ll)), [
|
|
1605
|
-
[
|
|
1456
|
+
[P, T.permissionsTag || null]
|
|
1606
1457
|
])
|
|
1607
1458
|
]),
|
|
1608
1459
|
_: 2
|
|
@@ -1678,7 +1529,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1678
1529
|
}
|
|
1679
1530
|
}, r = (a, h = "YYYY-MM-DD HH:mm:ss") => a ? Te(a).format(h) : "";
|
|
1680
1531
|
return (a, h) => {
|
|
1681
|
-
const b =
|
|
1532
|
+
const b = j("a-empty"), D = j("a-tooltip"), H = j("HbLibCopy"), Q = j("a-table");
|
|
1682
1533
|
return o(), k("div", {
|
|
1683
1534
|
class: V(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1684
1535
|
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
@@ -1757,35 +1608,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1757
1608
|
], 6);
|
|
1758
1609
|
};
|
|
1759
1610
|
}
|
|
1760
|
-
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-f5b59c06"]]),
|
|
1761
|
-
columns: {
|
|
1762
|
-
type: Array,
|
|
1763
|
-
default: () => [],
|
|
1764
|
-
required: !0
|
|
1765
|
-
},
|
|
1766
|
-
childColumns: {
|
|
1767
|
-
type: Array,
|
|
1768
|
-
default: () => []
|
|
1769
|
-
},
|
|
1770
|
-
// 自定义每行行高
|
|
1771
|
-
rowHeight: {
|
|
1772
|
-
type: Number
|
|
1773
|
-
},
|
|
1774
|
-
// 默认每列宽度
|
|
1775
|
-
defaultWidth: {
|
|
1776
|
-
type: [String, Number],
|
|
1777
|
-
default: 150
|
|
1778
|
-
}
|
|
1779
|
-
}, Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1611
|
+
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-f5b59c06"]]), Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1780
1612
|
key: 0,
|
|
1781
1613
|
class: "hb-lib-table-drag-item"
|
|
1782
1614
|
}, Dl = {
|
|
1783
1615
|
key: 0,
|
|
1784
1616
|
class: "hb-lib-table-drag-item-act"
|
|
1785
|
-
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" },
|
|
1617
|
+
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" }, zl = {
|
|
1786
1618
|
class: "select-all-container",
|
|
1787
1619
|
style: { "margin-right": "10px" }
|
|
1788
|
-
},
|
|
1620
|
+
}, Nl = /* @__PURE__ */ te({
|
|
1789
1621
|
name: "HbLibTableColumnSet",
|
|
1790
1622
|
__name: "HbTableColumnSet",
|
|
1791
1623
|
props: {
|
|
@@ -1838,10 +1670,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1838
1670
|
l ? t.checked = !0 : t.checked = !1;
|
|
1839
1671
|
}, E = () => {
|
|
1840
1672
|
m.value = [...a.value], u("on-get-columns", m.value), r.value = !1;
|
|
1841
|
-
},
|
|
1673
|
+
}, N = () => {
|
|
1842
1674
|
m.value = F.tableColumns.map((l) => ({
|
|
1843
1675
|
...l,
|
|
1844
|
-
label: l.title && l.title.tag ?
|
|
1676
|
+
label: l.title && l.title.tag ? P(l.title) : l.title || l.title2,
|
|
1845
1677
|
value: l.dataIndex,
|
|
1846
1678
|
checked: l.checked || l.checked === void 0
|
|
1847
1679
|
})), a.value = [...m.value];
|
|
@@ -1849,7 +1681,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1849
1681
|
F.tableColumns.forEach(function(l) {
|
|
1850
1682
|
t.push(l.dataIndex);
|
|
1851
1683
|
});
|
|
1852
|
-
},
|
|
1684
|
+
}, P = (t) => t.children[0].text, T = (t) => {
|
|
1853
1685
|
delete t.fixed;
|
|
1854
1686
|
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1855
1687
|
if (l !== -1) {
|
|
@@ -1873,8 +1705,8 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1873
1705
|
}
|
|
1874
1706
|
}
|
|
1875
1707
|
};
|
|
1876
|
-
return
|
|
1877
|
-
const d =
|
|
1708
|
+
return N(), (t, l) => {
|
|
1709
|
+
const d = j("a-tooltip"), y = j("a-button");
|
|
1878
1710
|
return o(), k("div", Hl, [
|
|
1879
1711
|
S(n(mt), {
|
|
1880
1712
|
title: n(s)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
@@ -1975,7 +1807,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1975
1807
|
_: 1
|
|
1976
1808
|
}, 8, ["modelValue"]),
|
|
1977
1809
|
v("div", Rl, [
|
|
1978
|
-
v("div",
|
|
1810
|
+
v("div", zl, [
|
|
1979
1811
|
S(n(pe), {
|
|
1980
1812
|
checked: b.value,
|
|
1981
1813
|
indeterminate: D.value,
|
|
@@ -2036,14 +1868,14 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2036
1868
|
]);
|
|
2037
1869
|
};
|
|
2038
1870
|
}
|
|
2039
|
-
}),
|
|
1871
|
+
}), Pl = /* @__PURE__ */ oe(Nl, [["__scopeId", "data-v-c9fc6c04"]]), Vl = le(Pl), El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2040
1872
|
__proto__: null,
|
|
2041
1873
|
HbLibFormItemFilterModal: wt,
|
|
2042
1874
|
HbLibListBtnsAct: Ut,
|
|
2043
1875
|
HbLibListForm: $t,
|
|
2044
1876
|
HbLibListMultiSelect: rl,
|
|
2045
1877
|
HbLibListPageAct: Rt,
|
|
2046
|
-
HbLibListPageContainer:
|
|
1878
|
+
HbLibListPageContainer: qt,
|
|
2047
1879
|
HbLibListTable: Il,
|
|
2048
1880
|
HbLibMutilpleSelectModal: bl,
|
|
2049
1881
|
HbLibTableAct: wl,
|
|
@@ -2118,7 +1950,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2118
1950
|
});
|
|
2119
1951
|
};
|
|
2120
1952
|
return (m, p) => {
|
|
2121
|
-
const r =
|
|
1953
|
+
const r = j("a-tooltip");
|
|
2122
1954
|
return s.value ? (o(), B(r, {
|
|
2123
1955
|
key: 0,
|
|
2124
1956
|
title: m.tooltipTitle
|
|
@@ -2134,7 +1966,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2134
1966
|
}, 8, ["title"])) : R("", !0);
|
|
2135
1967
|
};
|
|
2136
1968
|
}
|
|
2137
|
-
}),
|
|
1969
|
+
}), jl = /* @__PURE__ */ oe(Yl, [["__scopeId", "data-v-d5ca4420"]]), ql = le(jl), Kl = {
|
|
2138
1970
|
dragList: {
|
|
2139
1971
|
type: Array,
|
|
2140
1972
|
required: !0
|
|
@@ -2243,31 +2075,28 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2243
2075
|
}
|
|
2244
2076
|
}), Jl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-15b227f5"]]), Gl = le(Jl), Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2245
2077
|
__proto__: null,
|
|
2246
|
-
HbLibFuncCompCopy:
|
|
2078
|
+
HbLibFuncCompCopy: ql,
|
|
2247
2079
|
HbLibFuncCompDrag: Gl
|
|
2248
2080
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2249
|
-
let
|
|
2081
|
+
let Ke = {
|
|
2250
2082
|
...El,
|
|
2251
2083
|
...Ql
|
|
2252
2084
|
};
|
|
2253
|
-
const
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
hbLibComp: oo
|
|
2262
|
-
}, no = { 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" }, 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" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan" }, 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" }, 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" } }, so = {
|
|
2263
|
-
hbLibComp: no
|
|
2085
|
+
const Zl = { 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" }, 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" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query 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" }, 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" } }, Xl = {
|
|
2086
|
+
hbLibComp: Zl
|
|
2087
|
+
}, eo = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" } }, to = {
|
|
2088
|
+
hbLibComp: eo
|
|
2089
|
+
}, lo = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, 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: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" } }, oo = {
|
|
2090
|
+
hbLibComp: lo
|
|
2091
|
+
}, ao = { 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" }, 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" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan" }, 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" }, 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" } }, no = {
|
|
2092
|
+
hbLibComp: ao
|
|
2264
2093
|
};
|
|
2265
|
-
var be = { exports: {} },
|
|
2266
|
-
function
|
|
2094
|
+
var be = { exports: {} }, so = be.exports, We;
|
|
2095
|
+
function io() {
|
|
2267
2096
|
return We || (We = 1, (function(e, f) {
|
|
2268
2097
|
(function(u, s) {
|
|
2269
2098
|
e.exports = s(Te);
|
|
2270
|
-
})(
|
|
2099
|
+
})(so, (function(u) {
|
|
2271
2100
|
function s(p) {
|
|
2272
2101
|
return p && typeof p == "object" && "default" in p ? p : { default: p };
|
|
2273
2102
|
}
|
|
@@ -2281,28 +2110,19 @@ function ro() {
|
|
|
2281
2110
|
}));
|
|
2282
2111
|
})(be)), be.exports;
|
|
2283
2112
|
}
|
|
2284
|
-
|
|
2113
|
+
io();
|
|
2285
2114
|
Te.locale("zh-cn");
|
|
2286
|
-
const
|
|
2287
|
-
en_US:
|
|
2288
|
-
ja_JP:
|
|
2289
|
-
zh_CN:
|
|
2290
|
-
de_DE:
|
|
2291
|
-
},
|
|
2115
|
+
const yo = {
|
|
2116
|
+
en_US: Xl,
|
|
2117
|
+
ja_JP: to,
|
|
2118
|
+
zh_CN: oo,
|
|
2119
|
+
de_DE: no
|
|
2120
|
+
}, Co = function(e) {
|
|
2292
2121
|
Object.keys(Ke).forEach((u) => {
|
|
2293
2122
|
e.use(Ke[u]);
|
|
2294
2123
|
});
|
|
2295
2124
|
};
|
|
2296
2125
|
export {
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
Lo as HbFormProps,
|
|
2300
|
-
wo as HbFormSelectModalprops,
|
|
2301
|
-
_o as HbListBtnsProps,
|
|
2302
|
-
ko as HbListPageActProps,
|
|
2303
|
-
Co as HbSfCmProps,
|
|
2304
|
-
Fo as HbTableProps,
|
|
2305
|
-
So as ListPageContainerProps,
|
|
2306
|
-
To as install,
|
|
2307
|
-
xo as locales
|
|
2126
|
+
Co as install,
|
|
2127
|
+
yo as locales
|
|
2308
2128
|
};
|