@hb-hellotech/hb-ui 1.1.5 → 1.1.8
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.css +1 -1
- package/dist/hb_component_lib.js +177 -173
- 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 Je, ref as O, computed as K, watch as ce, createElementBlock as k, openBlock as o, normalizeClass 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 E, 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
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";
|
|
@@ -41,12 +41,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
41
41
|
const s = re().t, F = re().messages.value.en_US, m = re().messages.value.ja_JP, p = re().messages.value.zh_CN, r = e, a = u, h = $e("sfcm"), b = Qe(), D = Je({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
43
|
}), H = O(!1), Q = O(600);
|
|
44
|
-
let
|
|
45
|
-
const
|
|
44
|
+
let T = [];
|
|
45
|
+
const x = O([]), P = O([]), N = K(() => x.value.every((C) => C.isLinked || C.isFixed)), V = (C) => {
|
|
46
46
|
const A = C.draggedContext.element, g = C.relatedContext.index;
|
|
47
47
|
if (A.isLinked || A.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const Y =
|
|
49
|
+
const Y = x.value.map((G, ae) => ({ item: G, index: ae })).filter(({ item: G }) => G.isLinked).map(({ index: G }) => G);
|
|
50
50
|
if (Y.length === 0)
|
|
51
51
|
return !0;
|
|
52
52
|
for (let G = 0; G < Y.length - 1; G++) {
|
|
@@ -55,7 +55,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
|
-
},
|
|
58
|
+
}, $ = () => {
|
|
59
59
|
const C = localStorage.getItem("pro__Login_Userinfo");
|
|
60
60
|
let A = "anonymous";
|
|
61
61
|
if (C)
|
|
@@ -72,12 +72,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
72
72
|
zh_CN: () => Le.get(p, C.labelLanguage || "")
|
|
73
73
|
})[D.lan]?.() || C.label, t = () => {
|
|
74
74
|
try {
|
|
75
|
-
const C =
|
|
75
|
+
const C = $(), A = localStorage.getItem(C);
|
|
76
76
|
if (A) {
|
|
77
77
|
const g = JSON.parse(A);
|
|
78
78
|
if (g.originalList && Array.isArray(g.originalList)) {
|
|
79
|
-
|
|
80
|
-
const Y =
|
|
79
|
+
T = JSON.parse(JSON.stringify(g.originalList));
|
|
80
|
+
const Y = T.filter((w) => w?.isFixed), G = T.filter((w) => w?.isLinked), ae = g.showList.filter((w) => !w.isFixed && !w.isLinked), ue = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - Y.length - G.length) : ae.length, ve = Y.map((w) => ({
|
|
81
81
|
...w,
|
|
82
82
|
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
83
|
key: w.key,
|
|
@@ -99,9 +99,9 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
99
99
|
isLinked: w?.isLinked || !1,
|
|
100
100
|
labelLanguage: w?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const M =
|
|
104
|
-
return
|
|
102
|
+
x.value = [...ve, ...ge, ...ye];
|
|
103
|
+
const M = x.value.map((w) => w.key), Ze = T.map((w) => w.key).filter((w) => !M.includes(w));
|
|
104
|
+
return P.value = T.filter((w) => Ze.includes(w.key)).map((w) => ({
|
|
105
105
|
...w,
|
|
106
106
|
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
107
|
key: w.key,
|
|
@@ -119,8 +119,8 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
119
119
|
}, l = () => {
|
|
120
120
|
try {
|
|
121
121
|
const C = {
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
122
|
+
originalList: T,
|
|
123
|
+
showList: x.value.map((g) => ({
|
|
124
124
|
...g,
|
|
125
125
|
key: g.key,
|
|
126
126
|
label: g.label,
|
|
@@ -128,20 +128,20 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
128
128
|
isLinked: g.isLinked,
|
|
129
129
|
labelLanguage: g?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
}, A =
|
|
131
|
+
}, A = $();
|
|
132
132
|
localStorage.setItem(A, JSON.stringify(C));
|
|
133
133
|
} catch (C) {
|
|
134
134
|
console.warn("保存搜索配置失败:", C);
|
|
135
135
|
}
|
|
136
136
|
}, d = K(() => {
|
|
137
|
-
const C =
|
|
137
|
+
const C = x.value.filter((g) => !g.isFixed && !g.isLinked).length, A = x.value.filter((g) => g.isFixed || g.isLinked).length;
|
|
138
138
|
return C >= r.showNumber - A;
|
|
139
139
|
});
|
|
140
140
|
ce(
|
|
141
141
|
() => r.list,
|
|
142
142
|
(C) => {
|
|
143
|
-
if (!t() &&
|
|
144
|
-
|
|
143
|
+
if (!t() && T.length === 0) {
|
|
144
|
+
T = JSON.parse(JSON.stringify(C));
|
|
145
145
|
const g = C.filter((M) => M?.isFixed), Y = C.filter((M) => M?.isLinked), G = C.filter((M) => !M?.isFixed && !M?.isLinked), ae = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - g.length - Y.length) : G.length, ue = g.map((M) => ({
|
|
146
146
|
...M,
|
|
147
147
|
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
@@ -164,7 +164,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
164
164
|
isLinked: M?.isLinked || !1,
|
|
165
165
|
labelLanguage: M?.labelLanguage || void 0
|
|
166
166
|
}));
|
|
167
|
-
|
|
167
|
+
x.value = [...ue, ...ve, ...ge];
|
|
168
168
|
const ye = G.slice(ae).map((M) => ({
|
|
169
169
|
...M,
|
|
170
170
|
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
@@ -174,39 +174,39 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
174
174
|
active: !1,
|
|
175
175
|
labelLanguage: M?.labelLanguage || void 0
|
|
176
176
|
}));
|
|
177
|
-
|
|
177
|
+
P.value = ye;
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{ immediate: !0 }
|
|
181
181
|
);
|
|
182
182
|
const y = (C) => {
|
|
183
|
-
const A =
|
|
184
|
-
A !== -1 && (
|
|
183
|
+
const A = x.value.findIndex((g) => g.key === C.key);
|
|
184
|
+
A !== -1 && (x.value.splice(A, 1), P.value.push({ ...C, active: !1 }));
|
|
185
185
|
}, i = (C) => {
|
|
186
186
|
if (d.value)
|
|
187
187
|
return;
|
|
188
|
-
const A =
|
|
188
|
+
const A = P.value.findIndex((g) => g.key === C.key);
|
|
189
189
|
if (A !== -1) {
|
|
190
|
-
const [g] =
|
|
191
|
-
|
|
190
|
+
const [g] = P.value.splice(A, 1);
|
|
191
|
+
x.value.push({ ...g, active: !1 });
|
|
192
192
|
}
|
|
193
193
|
}, U = () => {
|
|
194
194
|
H.value = !1;
|
|
195
195
|
}, z = () => {
|
|
196
196
|
H.value = !0;
|
|
197
197
|
}, ee = () => {
|
|
198
|
-
l(), a("confirm",
|
|
198
|
+
l(), a("confirm", x.value), U();
|
|
199
199
|
}, J = (C) => {
|
|
200
|
-
const A =
|
|
201
|
-
A !== -1 && (
|
|
200
|
+
const A = P.value.findIndex((g) => g.key === C.key);
|
|
201
|
+
A !== -1 && (P.value[A].active = !0);
|
|
202
202
|
}, q = (C) => {
|
|
203
|
-
const A =
|
|
204
|
-
A !== -1 && (
|
|
203
|
+
const A = P.value.findIndex((g) => g.key === C.key);
|
|
204
|
+
A !== -1 && (P.value[A].active = !1);
|
|
205
205
|
};
|
|
206
206
|
return f({
|
|
207
207
|
toOpenModal: z
|
|
208
208
|
}), (C, A) => (o(), k("div", {
|
|
209
|
-
class:
|
|
209
|
+
class: E(n(h).b())
|
|
210
210
|
}, [
|
|
211
211
|
S(n(_e), {
|
|
212
212
|
visible: H.value,
|
|
@@ -217,7 +217,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
217
217
|
}, {
|
|
218
218
|
title: c(() => [
|
|
219
219
|
v("div", {
|
|
220
|
-
class:
|
|
220
|
+
class: E(n(h).e("title"))
|
|
221
221
|
}, L(e.title), 3)
|
|
222
222
|
]),
|
|
223
223
|
footer: c(() => [
|
|
@@ -239,35 +239,35 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
239
239
|
]),
|
|
240
240
|
default: c(() => [
|
|
241
241
|
v("section", {
|
|
242
|
-
class:
|
|
242
|
+
class: E(n(h).e("show"))
|
|
243
243
|
}, [
|
|
244
244
|
v("div", {
|
|
245
|
-
class:
|
|
245
|
+
class: E(n(h).e("show__title"))
|
|
246
246
|
}, [
|
|
247
247
|
v("span", {
|
|
248
|
-
class:
|
|
248
|
+
class: E(n(h).e("title__tip"))
|
|
249
249
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
250
250
|
v("span", null, L(C.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(e.showNumber) + L(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
251
251
|
], 2),
|
|
252
252
|
v("div", {
|
|
253
|
-
class:
|
|
253
|
+
class: E(n(h).e("show__tag"))
|
|
254
254
|
}, [
|
|
255
255
|
S(n(fe), {
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue": A[0] || (A[0] = (g) =>
|
|
256
|
+
modelValue: x.value,
|
|
257
|
+
"onUpdate:modelValue": A[0] || (A[0] = (g) => x.value = g),
|
|
258
258
|
"item-key": "key",
|
|
259
259
|
tag: "div",
|
|
260
260
|
disabled: N.value,
|
|
261
|
-
move:
|
|
261
|
+
move: V
|
|
262
262
|
}, {
|
|
263
263
|
item: c(({ element: g }) => [
|
|
264
264
|
v("div", {
|
|
265
|
-
class:
|
|
265
|
+
class: E([n(h).e("show__tag__item"), n(h).is("fixed", g.isFixed), n(h).is("linked", g.isLinked)])
|
|
266
266
|
}, [
|
|
267
267
|
I(L(g.label) + " ", 1),
|
|
268
268
|
!g.isFixed && !g.isLinked && e.list.length > 1 ? (o(), B(n(ct), {
|
|
269
269
|
key: 0,
|
|
270
|
-
class:
|
|
270
|
+
class: E(n(h).e("show__tag__item-close")),
|
|
271
271
|
onClick: (Y) => y(g)
|
|
272
272
|
}, null, 8, ["class", "onClick"])) : R("", !0)
|
|
273
273
|
], 2)
|
|
@@ -277,20 +277,20 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
277
277
|
], 2)
|
|
278
278
|
], 2),
|
|
279
279
|
v("section", {
|
|
280
|
-
class:
|
|
280
|
+
class: E(n(h).e("unshow"))
|
|
281
281
|
}, [
|
|
282
282
|
v("div", {
|
|
283
|
-
class:
|
|
283
|
+
class: E(n(h).e("show__title"))
|
|
284
284
|
}, [
|
|
285
285
|
v("span", {
|
|
286
|
-
class:
|
|
286
|
+
class: E(n(h).e("title__tip"))
|
|
287
287
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
288
288
|
], 2),
|
|
289
289
|
v("div", {
|
|
290
|
-
class:
|
|
290
|
+
class: E(n(h).e("unshow__tag"))
|
|
291
291
|
}, [
|
|
292
|
-
|
|
293
|
-
class:
|
|
292
|
+
P.value.length > 0 ? (o(!0), k(W, { key: 0 }, ne(P.value, (g) => (o(), k("div", {
|
|
293
|
+
class: E([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
296
|
onMouseleave: (Y) => q(g)
|
|
@@ -298,12 +298,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
298
298
|
I(L(g.label) + " ", 1),
|
|
299
299
|
g.active ? (o(), k("aside", {
|
|
300
300
|
key: 0,
|
|
301
|
-
class:
|
|
301
|
+
class: E(n(h).e("unshow__tag__item-add")),
|
|
302
302
|
onClick: (Y) => i(g)
|
|
303
303
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.add")), 11, kt)) : R("", !0)
|
|
304
304
|
], 42, Lt))), 128)) : (o(), k("div", {
|
|
305
305
|
key: 1,
|
|
306
|
-
class:
|
|
306
|
+
class: E(n(h).e("unshow__tag__empty"))
|
|
307
307
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
308
308
|
], 2)
|
|
309
309
|
], 2)
|
|
@@ -355,9 +355,9 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
355
355
|
s("handleReset");
|
|
356
356
|
}, H = O(), Q = () => {
|
|
357
357
|
H.value && H.value.toOpenModal();
|
|
358
|
-
},
|
|
358
|
+
}, T = (_) => {
|
|
359
359
|
s("handleSfcmConfirm", _);
|
|
360
|
-
},
|
|
360
|
+
}, x = () => {
|
|
361
361
|
r.value = r.value === "show" ? "hide" : "show";
|
|
362
362
|
};
|
|
363
363
|
ce(
|
|
@@ -372,7 +372,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
);
|
|
375
|
-
const
|
|
375
|
+
const P = (_) => {
|
|
376
376
|
const t = _;
|
|
377
377
|
t.style.height = "", t.offsetHeight;
|
|
378
378
|
}, N = (_) => {
|
|
@@ -380,7 +380,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
380
380
|
t.style.height = "", t.style.overflow = "", he(() => {
|
|
381
381
|
F.calTableHeight && F.calTableHeight();
|
|
382
382
|
});
|
|
383
|
-
},
|
|
383
|
+
}, V = (_) => {
|
|
384
384
|
const t = _, l = t.querySelector(".hb-lib-form--container");
|
|
385
385
|
if (l) {
|
|
386
386
|
const d = l.offsetHeight;
|
|
@@ -388,7 +388,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
388
388
|
t.style.height = "0";
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
},
|
|
391
|
+
}, $ = () => {
|
|
392
392
|
he(() => {
|
|
393
393
|
F.calTableHeight && F.calTableHeight();
|
|
394
394
|
});
|
|
@@ -416,14 +416,14 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
416
416
|
return o(), k(W, null, [
|
|
417
417
|
S(Xe, {
|
|
418
418
|
name: "form-collapse",
|
|
419
|
-
onEnter:
|
|
419
|
+
onEnter: P,
|
|
420
420
|
onAfterEnter: N,
|
|
421
|
-
onLeave:
|
|
422
|
-
onAfterLeave:
|
|
421
|
+
onLeave: V,
|
|
422
|
+
onAfterLeave: $
|
|
423
423
|
}, {
|
|
424
424
|
default: c(() => [
|
|
425
425
|
ie(v("div", {
|
|
426
|
-
class:
|
|
426
|
+
class: E([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
427
427
|
}, [
|
|
428
428
|
S(n(Ee), X(_.$attrs, {
|
|
429
429
|
model: e.formData,
|
|
@@ -602,15 +602,15 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
602
602
|
}, 16, ["model", "class"]),
|
|
603
603
|
e.needFooter ? (o(), k("div", {
|
|
604
604
|
key: 0,
|
|
605
|
-
class:
|
|
605
|
+
class: E(n(m).e("footer"))
|
|
606
606
|
}, [
|
|
607
607
|
v("div", {
|
|
608
|
-
class:
|
|
608
|
+
class: E(n(m).e("footer__left"))
|
|
609
609
|
}, [
|
|
610
610
|
Z(_.$slots, "form-footer-left", {}, void 0, !0)
|
|
611
611
|
], 2),
|
|
612
612
|
v("div", {
|
|
613
|
-
class:
|
|
613
|
+
class: E(n(m).e("footer__right"))
|
|
614
614
|
}, [
|
|
615
615
|
r.value == "show" ? Z(_.$slots, "form-footer-right", {
|
|
616
616
|
key: 0,
|
|
@@ -637,7 +637,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
637
637
|
], !0) : R("", !0),
|
|
638
638
|
S(n(de), {
|
|
639
639
|
type: "primary",
|
|
640
|
-
onClick:
|
|
640
|
+
onClick: x
|
|
641
641
|
}, {
|
|
642
642
|
default: c(() => [
|
|
643
643
|
I(L(r.value == "show" ? `${_.$t("hbLibComp.hbListPageAct.close")}` : `${_.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
@@ -656,7 +656,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
656
656
|
list: e.items,
|
|
657
657
|
ref_key: "HbSfCmRef",
|
|
658
658
|
ref: H,
|
|
659
|
-
onConfirm:
|
|
659
|
+
onConfirm: T
|
|
660
660
|
}, null, 8, ["list"])
|
|
661
661
|
], 64);
|
|
662
662
|
};
|
|
@@ -834,10 +834,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
834
834
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
835
835
|
requestAnimationFrame(() => {
|
|
836
836
|
he(() => {
|
|
837
|
-
const N = document.querySelector(".ant-table"),
|
|
837
|
+
const N = document.querySelector(".ant-table"), V = document.querySelector(".ant-pagination");
|
|
838
838
|
if (N) {
|
|
839
|
-
const
|
|
840
|
-
let d = _ -
|
|
839
|
+
const $ = N.getBoundingClientRect().top, _ = window.innerHeight, l = (V ? V.offsetHeight + 20 : 40) + u;
|
|
840
|
+
let d = _ - $ - l;
|
|
841
841
|
d < s && (d = s), F.value = d;
|
|
842
842
|
}
|
|
843
843
|
});
|
|
@@ -846,22 +846,22 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
846
846
|
}, D = () => {
|
|
847
847
|
const N = document.querySelector(".ant-pagination");
|
|
848
848
|
if (N) {
|
|
849
|
-
const
|
|
849
|
+
const V = new MutationObserver(() => {
|
|
850
850
|
b();
|
|
851
851
|
});
|
|
852
|
-
return
|
|
852
|
+
return V.observe(N, {
|
|
853
853
|
childList: !0,
|
|
854
854
|
subtree: !0,
|
|
855
855
|
attributes: !0,
|
|
856
856
|
attributeFilter: ["style", "class"]
|
|
857
|
-
}),
|
|
857
|
+
}), V;
|
|
858
858
|
}
|
|
859
859
|
return null;
|
|
860
860
|
}, H = () => {
|
|
861
861
|
const N = document.querySelector(".hb-lib-list-page-form-box");
|
|
862
862
|
N && (m = new ResizeObserver(() => {
|
|
863
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
864
|
-
|
|
863
|
+
document.querySelectorAll(".ant-tooltip").forEach(($) => {
|
|
864
|
+
$.style.display = "none";
|
|
865
865
|
}), b();
|
|
866
866
|
}), m.observe(N));
|
|
867
867
|
}, Q = () => {
|
|
@@ -876,16 +876,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
876
876
|
attributes: !0,
|
|
877
877
|
attributeFilter: ["style", "class"]
|
|
878
878
|
}));
|
|
879
|
-
},
|
|
879
|
+
}, T = () => {
|
|
880
880
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
881
881
|
b();
|
|
882
882
|
}, 100);
|
|
883
|
-
},
|
|
884
|
-
window.addEventListener("resize",
|
|
883
|
+
}, x = () => {
|
|
884
|
+
window.addEventListener("resize", T), he(() => {
|
|
885
885
|
H(), Q(), p = D();
|
|
886
886
|
});
|
|
887
|
-
},
|
|
888
|
-
window.removeEventListener("resize",
|
|
887
|
+
}, P = () => {
|
|
888
|
+
window.removeEventListener("resize", T), m && m.disconnect(), r && r.disconnect(), p && p.disconnect(), a && clearTimeout(a), h && clearTimeout(h);
|
|
889
889
|
};
|
|
890
890
|
return f && ce(
|
|
891
891
|
() => f,
|
|
@@ -896,9 +896,9 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
896
896
|
},
|
|
897
897
|
{ deep: !0 }
|
|
898
898
|
), Fe(() => {
|
|
899
|
-
b(),
|
|
899
|
+
b(), x();
|
|
900
900
|
}), tt(() => {
|
|
901
|
-
|
|
901
|
+
P();
|
|
902
902
|
}), {
|
|
903
903
|
tableHeight: F,
|
|
904
904
|
calTableHeight: b
|
|
@@ -998,21 +998,21 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
998
998
|
{ immediate: !0 }
|
|
999
999
|
);
|
|
1000
1000
|
const Q = (t) => {
|
|
1001
|
-
t && (m.value = t,
|
|
1001
|
+
t && (m.value = t, T.value = [...r.value], p.value = "", setTimeout(() => {
|
|
1002
1002
|
if (a.value) {
|
|
1003
1003
|
const l = a.value.input || a.value.$el?.querySelector("input");
|
|
1004
1004
|
l && l.focus();
|
|
1005
1005
|
}
|
|
1006
1006
|
}, 100));
|
|
1007
|
-
},
|
|
1008
|
-
r.value = [...
|
|
1009
|
-
},
|
|
1007
|
+
}, T = O([]), x = () => {
|
|
1008
|
+
r.value = [...T.value], m.value = !1, s("cancel");
|
|
1009
|
+
}, P = O([]), N = () => {
|
|
1010
1010
|
const t = u.multiple ? r.value : r.value[0] || "", l = u.options.filter((d) => r.value.includes(d.value));
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1011
|
+
P.value = l, console.log(t, l), T.value = [...r.value], F.value = t, s("update:value", t), s("change", t, l), s("confirm", t, l), m.value = !1;
|
|
1012
|
+
}, V = gt((t) => {
|
|
1013
1013
|
const l = t !== void 0 ? t : p.value;
|
|
1014
1014
|
u.remoteSearch && (s("search", l), s("update:searchValue", l));
|
|
1015
|
-
}, 300),
|
|
1015
|
+
}, 300), $ = (t) => {
|
|
1016
1016
|
if (u.multiple) {
|
|
1017
1017
|
const l = new Set(r.value);
|
|
1018
1018
|
l.has(t.value) ? l.delete(t.value) : l.add(t.value), r.value = Array.from(l);
|
|
@@ -1047,9 +1047,9 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1047
1047
|
maxTagCount: e.maxTagCount,
|
|
1048
1048
|
options: h.value,
|
|
1049
1049
|
onDropdownVisibleChange: Q,
|
|
1050
|
-
onSearch: n(
|
|
1050
|
+
onSearch: n(V),
|
|
1051
1051
|
"max-tag-text-length": e.tagTextLength,
|
|
1052
|
-
class:
|
|
1052
|
+
class: E({ "has-prefix": e.prefix }),
|
|
1053
1053
|
"data-prefix": e.prefix,
|
|
1054
1054
|
style: { width: "100%" }
|
|
1055
1055
|
}, {
|
|
@@ -1076,7 +1076,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1076
1076
|
"onUpdate:value": l[1] || (l[1] = (q) => p.value = q),
|
|
1077
1077
|
placeholder: "请输入关键词搜索",
|
|
1078
1078
|
"allow-clear": "",
|
|
1079
|
-
onInput: l[2] || (l[2] = (q) => n(
|
|
1079
|
+
onInput: l[2] || (l[2] = (q) => n(V)(q.target.value))
|
|
1080
1080
|
}, {
|
|
1081
1081
|
prefix: c(() => [
|
|
1082
1082
|
S(n(xe))
|
|
@@ -1087,19 +1087,19 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1087
1087
|
v("div", Qt, [
|
|
1088
1088
|
(o(!0), k(W, null, ne(h.value, (q) => (o(), k("div", {
|
|
1089
1089
|
key: q.value,
|
|
1090
|
-
class:
|
|
1091
|
-
onClick: () =>
|
|
1090
|
+
class: E(["hb-lib-selector-option", { selected: r.value.includes(q.value) }]),
|
|
1091
|
+
onClick: () => $(q)
|
|
1092
1092
|
}, [
|
|
1093
1093
|
e.multiple ? (o(), B(i, {
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
checked: r.value.includes(q.value),
|
|
1096
|
-
onChange: () =>
|
|
1096
|
+
onChange: () => $(q),
|
|
1097
1097
|
onClick: l[3] || (l[3] = ke(() => {
|
|
1098
1098
|
}, ["stop"]))
|
|
1099
1099
|
}, null, 8, ["checked", "onChange"])) : (o(), B(U, {
|
|
1100
1100
|
key: 1,
|
|
1101
1101
|
checked: r.value.includes(q.value),
|
|
1102
|
-
onChange: () =>
|
|
1102
|
+
onChange: () => $(q),
|
|
1103
1103
|
onClick: l[4] || (l[4] = ke(() => {
|
|
1104
1104
|
}, ["stop"]))
|
|
1105
1105
|
}, null, 8, ["checked", "onChange"])),
|
|
@@ -1123,7 +1123,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1123
1123
|
v("div", ol, [
|
|
1124
1124
|
S(z, {
|
|
1125
1125
|
size: "small",
|
|
1126
|
-
onClick:
|
|
1126
|
+
onClick: x
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: c(() => [
|
|
1129
1129
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
@@ -1146,7 +1146,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1146
1146
|
v("div", nl, [
|
|
1147
1147
|
S(z, {
|
|
1148
1148
|
size: "small",
|
|
1149
|
-
onClick:
|
|
1149
|
+
onClick: x
|
|
1150
1150
|
}, {
|
|
1151
1151
|
default: c(() => [
|
|
1152
1152
|
I(L(t.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
@@ -1179,26 +1179,26 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1179
1179
|
const s = e, F = u, m = O(!1), p = O(""), r = O(), a = O(), h = O([]), b = O([]), D = O(), H = Je({
|
|
1180
1180
|
searchText: "",
|
|
1181
1181
|
searchedColumn: ""
|
|
1182
|
-
}), Q = K(() => s.tableData.map((d) => (d.id = d.id || Math.random(), d))),
|
|
1182
|
+
}), Q = K(() => s.tableData.map((d) => (d.id = d.id || Math.random(), d))), T = K(() => s.tableColumn.map((d) => (d.customFilterDropdown && (d.onFilter = (y, i) => i[d.dataIndex].toString().toLowerCase().includes(y.toLowerCase()), d.onFilterDropdownVisibleChange = (y) => {
|
|
1183
1183
|
y && setTimeout(() => {
|
|
1184
1184
|
r.value?.focus();
|
|
1185
1185
|
}, 100);
|
|
1186
|
-
}), { ...d }))),
|
|
1186
|
+
}), { ...d }))), x = () => {
|
|
1187
1187
|
let d = "";
|
|
1188
1188
|
b.value.forEach((y) => {
|
|
1189
1189
|
d = d + y[s.labelKey] + ",";
|
|
1190
1190
|
}), p.value = d.substring(0, d.length - 1), m.value = !1, F("handleConfirm", b.value);
|
|
1191
|
-
},
|
|
1191
|
+
}, P = () => {
|
|
1192
1192
|
m.value = !1;
|
|
1193
1193
|
}, N = () => {
|
|
1194
1194
|
m.value = !0, he(() => {
|
|
1195
1195
|
const d = D.value?.$el?.querySelector(".ant-table-body");
|
|
1196
1196
|
d && (d.scrollTop = 0);
|
|
1197
1197
|
});
|
|
1198
|
-
},
|
|
1198
|
+
}, V = () => {
|
|
1199
1199
|
h.value = [], b.value = [];
|
|
1200
|
-
},
|
|
1201
|
-
p.value = "",
|
|
1200
|
+
}, $ = () => {
|
|
1201
|
+
p.value = "", V();
|
|
1202
1202
|
}, _ = (d, y, i) => {
|
|
1203
1203
|
y(), H.searchText = d[0], H.searchedColumn = i;
|
|
1204
1204
|
}, t = (d, y) => {
|
|
@@ -1207,7 +1207,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1207
1207
|
h.value = d, b.value = y;
|
|
1208
1208
|
};
|
|
1209
1209
|
return f({
|
|
1210
|
-
resetInputVal:
|
|
1210
|
+
resetInputVal: $
|
|
1211
1211
|
}), (d, y) => {
|
|
1212
1212
|
const i = j("a-input"), U = j("a-button"), z = j("a-table"), ee = j("a-modal");
|
|
1213
1213
|
return o(), k("div", {
|
|
@@ -1235,13 +1235,13 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1235
1235
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1236
1236
|
}, {
|
|
1237
1237
|
footer: c(() => [
|
|
1238
|
-
S(U, { onClick:
|
|
1238
|
+
S(U, { onClick: V }, {
|
|
1239
1239
|
default: c(() => [
|
|
1240
1240
|
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1241
1241
|
]),
|
|
1242
1242
|
_: 1
|
|
1243
1243
|
}),
|
|
1244
|
-
S(U, { onClick:
|
|
1244
|
+
S(U, { onClick: P }, {
|
|
1245
1245
|
default: c(() => [
|
|
1246
1246
|
I(L(d.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1247
1247
|
]),
|
|
@@ -1249,7 +1249,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1249
1249
|
}),
|
|
1250
1250
|
S(U, {
|
|
1251
1251
|
type: "primary",
|
|
1252
|
-
onClick:
|
|
1252
|
+
onClick: x
|
|
1253
1253
|
}, {
|
|
1254
1254
|
default: c(() => [
|
|
1255
1255
|
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1261,7 +1261,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1261
1261
|
S(z, {
|
|
1262
1262
|
ref_key: "tableRef",
|
|
1263
1263
|
ref: D,
|
|
1264
|
-
columns:
|
|
1264
|
+
columns: T.value,
|
|
1265
1265
|
dataSource: Q.value,
|
|
1266
1266
|
rowSelection: { selectedRowKeys: h.value, onChange: l },
|
|
1267
1267
|
rowKey: (J) => J[e.tableKey],
|
|
@@ -1342,10 +1342,10 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1342
1342
|
buttonDisplaysQuantity: {}
|
|
1343
1343
|
},
|
|
1344
1344
|
setup(e, { expose: f }) {
|
|
1345
|
-
const u = e, { t: s } = re(), F = O(!1), m = O(!1), p = O(null), r = K(() => u.actions.filter((
|
|
1346
|
-
|
|
1347
|
-
}, D = (
|
|
1348
|
-
p.value =
|
|
1345
|
+
const u = e, { t: s } = re(), F = O(!1), m = O(!1), p = O(null), r = K(() => u.actions.filter((x) => x.condition !== void 0 ? x.condition : !0)), a = K(() => r.value.slice(0, u.buttonDisplaysQuantity)), h = K(() => r.value.slice(u.buttonDisplaysQuantity)), b = (x) => {
|
|
1346
|
+
x.handler && x.handler(u.record);
|
|
1347
|
+
}, D = (x) => {
|
|
1348
|
+
p.value = x, F.value = !0;
|
|
1349
1349
|
}, H = () => {
|
|
1350
1350
|
if (p.value) {
|
|
1351
1351
|
m.value = !0;
|
|
@@ -1357,7 +1357,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
}, Q = () => {
|
|
1359
1359
|
F.value = !1, p.value = null;
|
|
1360
|
-
},
|
|
1360
|
+
}, T = K(() => p.value ? {
|
|
1361
1361
|
title: p.value.confirmTitle,
|
|
1362
1362
|
content: p.value.confirmContent || p.value.confirmTitle
|
|
1363
1363
|
} : {
|
|
@@ -1371,30 +1371,30 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1371
1371
|
APopconfirm: Ce,
|
|
1372
1372
|
AModal: _e,
|
|
1373
1373
|
DownOutlined: Ie
|
|
1374
|
-
}), (
|
|
1375
|
-
const N = j("a-divider"),
|
|
1374
|
+
}), (x, P) => {
|
|
1375
|
+
const N = j("a-divider"), V = nt("has");
|
|
1376
1376
|
return o(), k("div", fl, [
|
|
1377
|
-
(o(!0), k(W, null, ne(a.value, (
|
|
1378
|
-
|
|
1379
|
-
|
|
1377
|
+
(o(!0), k(W, null, ne(a.value, ($, _) => (o(), k(W, { key: _ }, [
|
|
1378
|
+
$.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1379
|
+
$.confirmType === "modal" ? ie((o(), k("a", {
|
|
1380
1380
|
key: 0,
|
|
1381
1381
|
href: "javascript:;",
|
|
1382
|
-
onClick: (t) => D(
|
|
1382
|
+
onClick: (t) => D($),
|
|
1383
1383
|
class: "hb-lib-table-main-action"
|
|
1384
1384
|
}, [
|
|
1385
|
-
I(L(
|
|
1385
|
+
I(L($.label), 1)
|
|
1386
1386
|
], 8, pl)), [
|
|
1387
|
-
[
|
|
1387
|
+
[V, $.permissionsTag || null]
|
|
1388
1388
|
]) : (o(), B(n(Ce), {
|
|
1389
1389
|
key: 1,
|
|
1390
|
-
title:
|
|
1391
|
-
onConfirm: (t) => b(
|
|
1390
|
+
title: $.confirmTitle,
|
|
1391
|
+
onConfirm: (t) => b($)
|
|
1392
1392
|
}, {
|
|
1393
1393
|
default: c(() => [
|
|
1394
1394
|
ie((o(), k("a", ml, [
|
|
1395
|
-
I(L(
|
|
1395
|
+
I(L($.label), 1)
|
|
1396
1396
|
])), [
|
|
1397
|
-
[
|
|
1397
|
+
[V, $.permissionsTag || null]
|
|
1398
1398
|
])
|
|
1399
1399
|
]),
|
|
1400
1400
|
_: 2
|
|
@@ -1402,12 +1402,12 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1402
1402
|
], 64)) : (o(), k(W, { key: 1 }, [
|
|
1403
1403
|
ie((o(), k("a", {
|
|
1404
1404
|
href: "javascript:;",
|
|
1405
|
-
onClick: (t) => b(
|
|
1405
|
+
onClick: (t) => b($),
|
|
1406
1406
|
class: "hb-lib-table-main-action"
|
|
1407
1407
|
}, [
|
|
1408
|
-
I(L(
|
|
1408
|
+
I(L($.label), 1)
|
|
1409
1409
|
], 8, vl)), [
|
|
1410
|
-
[
|
|
1410
|
+
[V, $.permissionsTag || null]
|
|
1411
1411
|
]),
|
|
1412
1412
|
h.value && h.value.length > 0 || _ !== a.value.length - 1 ? (o(), B(N, {
|
|
1413
1413
|
key: 0,
|
|
@@ -1419,29 +1419,29 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1419
1419
|
overlay: c(() => [
|
|
1420
1420
|
S(n(je), null, {
|
|
1421
1421
|
default: c(() => [
|
|
1422
|
-
(o(!0), k(W, null, ne(h.value, (
|
|
1423
|
-
key:
|
|
1422
|
+
(o(!0), k(W, null, ne(h.value, ($) => (o(), B(n(Ye), {
|
|
1423
|
+
key: $.key
|
|
1424
1424
|
}, {
|
|
1425
1425
|
default: c(() => [
|
|
1426
|
-
|
|
1427
|
-
|
|
1426
|
+
$.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1427
|
+
$.confirmType === "modal" ? ie((o(), k("a", {
|
|
1428
1428
|
key: 0,
|
|
1429
1429
|
href: "javascript:;",
|
|
1430
|
-
onClick: (_) => D(
|
|
1430
|
+
onClick: (_) => D($)
|
|
1431
1431
|
}, [
|
|
1432
|
-
I(L(
|
|
1432
|
+
I(L($.label), 1)
|
|
1433
1433
|
], 8, yl)), [
|
|
1434
|
-
[
|
|
1434
|
+
[V, $.permissionsTag || null]
|
|
1435
1435
|
]) : (o(), B(n(Ce), {
|
|
1436
1436
|
key: 1,
|
|
1437
|
-
title:
|
|
1438
|
-
onConfirm: (_) => b(
|
|
1437
|
+
title: $.confirmTitle,
|
|
1438
|
+
onConfirm: (_) => b($)
|
|
1439
1439
|
}, {
|
|
1440
1440
|
default: c(() => [
|
|
1441
1441
|
ie((o(), k("a", Cl, [
|
|
1442
|
-
I(L(
|
|
1442
|
+
I(L($.label), 1)
|
|
1443
1443
|
])), [
|
|
1444
|
-
[
|
|
1444
|
+
[V, $.permissionsTag || null]
|
|
1445
1445
|
])
|
|
1446
1446
|
]),
|
|
1447
1447
|
_: 2
|
|
@@ -1449,11 +1449,11 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1449
1449
|
], 64)) : ie((o(), k("a", {
|
|
1450
1450
|
key: 1,
|
|
1451
1451
|
href: "javascript:;",
|
|
1452
|
-
onClick: (_) => b(
|
|
1452
|
+
onClick: (_) => b($)
|
|
1453
1453
|
}, [
|
|
1454
|
-
I(L(
|
|
1454
|
+
I(L($.label), 1)
|
|
1455
1455
|
], 8, Ll)), [
|
|
1456
|
-
[
|
|
1456
|
+
[V, $.permissionsTag || null]
|
|
1457
1457
|
])
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 2
|
|
@@ -1464,7 +1464,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1464
1464
|
]),
|
|
1465
1465
|
default: c(() => [
|
|
1466
1466
|
v("a", gl, [
|
|
1467
|
-
I(L(
|
|
1467
|
+
I(L(x.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1468
1468
|
S(n(Ie), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1469
1469
|
])
|
|
1470
1470
|
]),
|
|
@@ -1472,13 +1472,13 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1472
1472
|
})) : R("", !0),
|
|
1473
1473
|
S(n(_e), {
|
|
1474
1474
|
visible: F.value,
|
|
1475
|
-
title:
|
|
1475
|
+
title: T.value.title,
|
|
1476
1476
|
"confirm-loading": m.value,
|
|
1477
1477
|
onOk: H,
|
|
1478
1478
|
onCancel: Q
|
|
1479
1479
|
}, {
|
|
1480
1480
|
default: c(() => [
|
|
1481
|
-
v("p", kl, L(
|
|
1481
|
+
v("p", kl, L(T.value.content), 1)
|
|
1482
1482
|
]),
|
|
1483
1483
|
_: 1
|
|
1484
1484
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
@@ -1531,7 +1531,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1531
1531
|
return (a, h) => {
|
|
1532
1532
|
const b = j("a-empty"), D = j("a-tooltip"), H = j("HbLibCopy"), Q = j("a-table");
|
|
1533
1533
|
return o(), k("div", {
|
|
1534
|
-
class:
|
|
1534
|
+
class: E(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1535
1535
|
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1536
1536
|
}, [
|
|
1537
1537
|
a.$slots.tableActLeft ? (o(), k("section", xl, [
|
|
@@ -1539,6 +1539,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1539
1539
|
Z(a.$slots, "tableActRight", {}, void 0, !0)
|
|
1540
1540
|
])) : R("", !0),
|
|
1541
1541
|
S(Q, X(a.$attrs, {
|
|
1542
|
+
bordered: "",
|
|
1542
1543
|
columns: s.value,
|
|
1543
1544
|
onResizeColumn: p,
|
|
1544
1545
|
scroll: {
|
|
@@ -1557,49 +1558,52 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1557
1558
|
}, [
|
|
1558
1559
|
a.$slots.headerCell ? {
|
|
1559
1560
|
name: "headerCell",
|
|
1560
|
-
fn: c(({ column:
|
|
1561
|
-
Z(a.$slots, "headerCell", { column:
|
|
1562
|
-
I(L(
|
|
1561
|
+
fn: c(({ column: T }) => [
|
|
1562
|
+
Z(a.$slots, "headerCell", { column: T }, () => [
|
|
1563
|
+
I(L(T.title), 1)
|
|
1563
1564
|
], !0)
|
|
1564
1565
|
]),
|
|
1565
1566
|
key: "0"
|
|
1566
1567
|
} : void 0,
|
|
1567
1568
|
a.$slots.bodyCell ? {
|
|
1568
1569
|
name: "bodyCell",
|
|
1569
|
-
fn: c(({ column:
|
|
1570
|
+
fn: c(({ column: T, record: x, index: P, text: N }) => [
|
|
1570
1571
|
Z(a.$slots, "bodyCell", {
|
|
1571
|
-
column:
|
|
1572
|
-
record:
|
|
1573
|
-
index:
|
|
1572
|
+
column: T,
|
|
1573
|
+
record: x,
|
|
1574
|
+
index: P,
|
|
1575
|
+
text: N
|
|
1574
1576
|
}, void 0, !0),
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
+
T && T.needTooltip ? (o(), k(W, { key: 0 }, [
|
|
1578
|
+
T.needTooltip ? (o(), B(D, { key: 0 }, {
|
|
1577
1579
|
title: c(() => [
|
|
1578
|
-
I(L(
|
|
1580
|
+
I(L(x[T.dataIndex]), 1)
|
|
1579
1581
|
]),
|
|
1580
1582
|
default: c(() => [
|
|
1581
|
-
I(" " + L(
|
|
1583
|
+
I(" " + L(x[T.dataIndex]), 1)
|
|
1582
1584
|
]),
|
|
1583
1585
|
_: 2
|
|
1584
1586
|
}, 1024)) : R("", !0)
|
|
1585
1587
|
], 64)) : R("", !0),
|
|
1586
|
-
|
|
1588
|
+
T && T.needCopy ? (o(), B(H, {
|
|
1587
1589
|
key: 1,
|
|
1588
|
-
"cp-text":
|
|
1590
|
+
"cp-text": x[T.dataIndex],
|
|
1589
1591
|
style: { position: "relative" }
|
|
1590
1592
|
}, null, 8, ["cp-text"])) : R("", !0),
|
|
1591
|
-
|
|
1592
|
-
I(L(r(
|
|
1593
|
+
T && T.needFormat ? (o(), k(W, { key: 2 }, [
|
|
1594
|
+
I(L(r(x[T.dataIndex], T.format)), 1)
|
|
1593
1595
|
], 64)) : R("", !0)
|
|
1594
1596
|
]),
|
|
1595
1597
|
key: "1"
|
|
1596
1598
|
} : void 0,
|
|
1597
1599
|
a.$slots.expandedRowRender ? {
|
|
1598
1600
|
name: "expandedRowRender",
|
|
1599
|
-
fn: c(({ record: x }) => [
|
|
1601
|
+
fn: c(({ column: T, record: x, index: P, text: N }) => [
|
|
1600
1602
|
Z(a.$slots, "expandedRowRender", {
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
+
record: x,
|
|
1604
|
+
column: T,
|
|
1605
|
+
index: P,
|
|
1606
|
+
text: N
|
|
1603
1607
|
}, void 0, !0)
|
|
1604
1608
|
]),
|
|
1605
1609
|
key: "2"
|
|
@@ -1608,7 +1612,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1608
1612
|
], 6);
|
|
1609
1613
|
};
|
|
1610
1614
|
}
|
|
1611
|
-
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-
|
|
1615
|
+
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-b3580a68"]]), Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1612
1616
|
key: 0,
|
|
1613
1617
|
class: "hb-lib-table-drag-item"
|
|
1614
1618
|
}, Dl = {
|
|
@@ -1664,16 +1668,16 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1664
1668
|
}
|
|
1665
1669
|
}
|
|
1666
1670
|
h.value = null;
|
|
1667
|
-
},
|
|
1671
|
+
}, T = (t) => {
|
|
1668
1672
|
t.target.checked ? a.value.forEach((d) => d.checked = !0) : a.value.forEach((d) => d.checked = !1);
|
|
1669
|
-
},
|
|
1673
|
+
}, x = (t, l) => {
|
|
1670
1674
|
l ? t.checked = !0 : t.checked = !1;
|
|
1671
|
-
},
|
|
1675
|
+
}, P = () => {
|
|
1672
1676
|
m.value = [...a.value], u("on-get-columns", m.value), r.value = !1;
|
|
1673
1677
|
}, N = () => {
|
|
1674
1678
|
m.value = F.tableColumns.map((l) => ({
|
|
1675
1679
|
...l,
|
|
1676
|
-
label: l.title && l.title.tag ?
|
|
1680
|
+
label: l.title && l.title.tag ? V(l.title) : l.title || l.title2,
|
|
1677
1681
|
value: l.dataIndex,
|
|
1678
1682
|
checked: l.checked || l.checked === void 0
|
|
1679
1683
|
})), a.value = [...m.value];
|
|
@@ -1681,7 +1685,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1681
1685
|
F.tableColumns.forEach(function(l) {
|
|
1682
1686
|
t.push(l.dataIndex);
|
|
1683
1687
|
});
|
|
1684
|
-
},
|
|
1688
|
+
}, V = (t) => t.children[0].text, $ = (t) => {
|
|
1685
1689
|
delete t.fixed;
|
|
1686
1690
|
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1687
1691
|
if (l !== -1) {
|
|
@@ -1732,7 +1736,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1732
1736
|
i.fixed !== "right" ? (o(), k("div", Al, [
|
|
1733
1737
|
S(n(pe), {
|
|
1734
1738
|
checked: i.checked,
|
|
1735
|
-
onChange: (U) =>
|
|
1739
|
+
onChange: (U) => x(i, U.target.checked)
|
|
1736
1740
|
}, {
|
|
1737
1741
|
default: c(() => [
|
|
1738
1742
|
I(L(i.label), 1)
|
|
@@ -1741,7 +1745,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1741
1745
|
}, 1032, ["checked", "onChange"]),
|
|
1742
1746
|
i.checked ? (o(), k("section", Dl, [
|
|
1743
1747
|
v("span", {
|
|
1744
|
-
class:
|
|
1748
|
+
class: E(i.fixed ? "drag-hide" : "drag-handle")
|
|
1745
1749
|
}, "⋮⋮", 2),
|
|
1746
1750
|
i.fixed ? (o(), B(d, { key: 0 }, {
|
|
1747
1751
|
title: c(() => [
|
|
@@ -1750,7 +1754,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1750
1754
|
default: c(() => [
|
|
1751
1755
|
v("span", {
|
|
1752
1756
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1753
|
-
onClick: (U) =>
|
|
1757
|
+
onClick: (U) => $(i)
|
|
1754
1758
|
}, [...l[2] || (l[2] = [
|
|
1755
1759
|
v("svg", {
|
|
1756
1760
|
t: "1759048615600",
|
|
@@ -1811,7 +1815,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1811
1815
|
S(n(pe), {
|
|
1812
1816
|
checked: b.value,
|
|
1813
1817
|
indeterminate: D.value,
|
|
1814
|
-
onChange:
|
|
1818
|
+
onChange: T
|
|
1815
1819
|
}, {
|
|
1816
1820
|
default: c(() => [
|
|
1817
1821
|
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
@@ -1820,7 +1824,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1820
1824
|
}, 8, ["checked", "indeterminate"])
|
|
1821
1825
|
]),
|
|
1822
1826
|
S(y, {
|
|
1823
|
-
onClick:
|
|
1827
|
+
onClick: P,
|
|
1824
1828
|
type: "primary"
|
|
1825
1829
|
}, {
|
|
1826
1830
|
default: c(() => [
|
|
@@ -1957,7 +1961,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
1957
1961
|
}, {
|
|
1958
1962
|
default: c(() => [
|
|
1959
1963
|
v("i", {
|
|
1960
|
-
class:
|
|
1964
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
1961
1965
|
style: me({ ...m.cpStyle }),
|
|
1962
1966
|
onClick: ke(F, ["stop", "prevent"])
|
|
1963
1967
|
}, null, 6)
|
|
@@ -2032,7 +2036,7 @@ const yt = "hb-", $e = (e = "") => {
|
|
|
2032
2036
|
console.log("drag remove", b), m("handleDragRemove", b);
|
|
2033
2037
|
};
|
|
2034
2038
|
return (b, D) => (o(), k("div", {
|
|
2035
|
-
class:
|
|
2039
|
+
class: E(n(F).b())
|
|
2036
2040
|
}, [
|
|
2037
2041
|
b.childrenType == "component" ? (o(), B(n(fe), X({
|
|
2038
2042
|
key: 0,
|