@hb-hellotech/hb-ui 1.3.14-beta.2 → 1.3.14-beta.4
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/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.vue.d.ts +12 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.vue.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_modal/src/HbLibModal.vue.d.ts +1 -1
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +676 -664
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as Q, inject as
|
|
2
|
+
import { defineComponent as Q, inject as pe, computed as P, reactive as Te, ref as O, watch as le, onMounted as he, createElementBlock as T, openBlock as i, normalizeClass as Y, unref as g, createVNode as S, withCtx as r, createElementVNode as d, toDisplayString as L, createTextVNode as A, createBlock as E, createCommentVNode as z, Fragment as q, renderList as se, resolveComponent as R, Transition as Dt, withDirectives as ue, mergeProps as oe, createSlots as Be, renderSlot as j, vShow as At, nextTick as Ce, onUnmounted as we, useTemplateRef as Bt, provide as Ct, normalizeStyle as re, mergeModels as Ve, useModel as kt, withModifiers as He, resolveDirective as St, useAttrs as Ot, watchEffect as Tt, shallowRef as zt, resolveDynamicComponent as wt, onBeforeUnmount as Je, createApp as Et } from "vue";
|
|
3
3
|
import $e from "vuedraggable";
|
|
4
|
-
import { Modal as je, Button as We, message as Se, Tooltip as Ie, Switch as
|
|
4
|
+
import { Modal as je, Button as We, message as Se, Tooltip as Ie, Switch as tt, Radio as lt, RadioGroup as ot, InputNumber as at, DatePicker as nt, Checkbox as Me, CheckboxGroup as it, Select as Ye, Input as st, Col as Pt, Row as Nt, FormItem as rt, Form as ct, SelectOption as qe, Popconfirm as Re, MenuItem as dt, Menu as ut, Dropdown as ft, Popover as Rt, BackTop as xt, Spin as Ut } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
6
6
|
import { useI18n as fe } from "vue-i18n";
|
|
7
7
|
import Le, { merge as Vt } from "lodash";
|
|
8
|
-
import { CloseOutlined as jt, QuestionCircleOutlined as Wt, SearchOutlined as De, UpCircleOutlined as Yt, DownCircleOutlined as qt, UnorderedListOutlined as Kt, DownOutlined as Ke, PlusCircleOutlined as
|
|
9
|
-
import { useFullscreen as
|
|
8
|
+
import { CloseOutlined as jt, QuestionCircleOutlined as Wt, SearchOutlined as De, UpCircleOutlined as Yt, DownCircleOutlined as qt, UnorderedListOutlined as Kt, DownOutlined as Ke, PlusCircleOutlined as Gt, ToTopOutlined as Ft } from "@ant-design/icons-vue";
|
|
9
|
+
import { useFullscreen as Ht, useDebounceFn as Jt, useElementBounding as Qt, useScroll as Zt, useDraggable as Xt, isClient as el } from "@vueuse/core";
|
|
10
10
|
import Oe from "dayjs";
|
|
11
11
|
const tl = "hb-", Ze = (e = "") => {
|
|
12
12
|
const t = `${tl}${e}`;
|
|
@@ -39,13 +39,13 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: l }) {
|
|
42
|
-
const n =
|
|
42
|
+
const n = pe("globalCompConfig", {}), c = fe().t, f = fe().messages.value.en_US, u = fe().messages.value.ja_JP, b = fe().messages.value.zh_CN, o = e, a = P(() => o.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = P(() => o.title || c("hbLibComp.hbFormItemFilterModal.title")), _ = l, p = Ze("sfcm"), $ = Qe(), I = Te({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), V = O(!1), w = O(600);
|
|
45
45
|
let v = [];
|
|
46
46
|
const k = O([]), M = O([]), F = P(() => k.value.every((D) => D.isLinked || D.isFixed)), C = (D) => ({
|
|
47
47
|
...D,
|
|
48
|
-
label: H(D) || `${x(D) || ""} (${
|
|
48
|
+
label: H(D) || `${x(D) || ""} (${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: D.key,
|
|
50
50
|
isFixed: D?.isFixed || !1,
|
|
51
51
|
isLinked: D?.isLinked || !1,
|
|
@@ -75,14 +75,14 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
75
75
|
let U = $?.path;
|
|
76
76
|
return `searchFormConfig_${W}_${U}`;
|
|
77
77
|
}, H = (D) => ({
|
|
78
|
-
ja_JP: () => Le.get(
|
|
79
|
-
en_US: () => Le.get(
|
|
80
|
-
zh_CN: () => Le.get(
|
|
78
|
+
ja_JP: () => Le.get(u, D.labelLanguage || ""),
|
|
79
|
+
en_US: () => Le.get(f, D.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => Le.get(b, D.labelLanguage || "")
|
|
81
81
|
})[I.lan]?.() || D.label, x = (D) => ({
|
|
82
|
-
ja_JP: () => Le.get(
|
|
83
|
-
en_US: () => Le.get(
|
|
84
|
-
zh_CN: () => Le.get(
|
|
85
|
-
})[I.lan]?.() || D.subLabel,
|
|
82
|
+
ja_JP: () => Le.get(u, D.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => Le.get(f, D.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => Le.get(b, D.subLabelLanguage || "")
|
|
85
|
+
})[I.lan]?.() || D.subLabel, N = (D) => {
|
|
86
86
|
try {
|
|
87
87
|
const W = localStorage.getItem(s.value);
|
|
88
88
|
if (W) {
|
|
@@ -97,7 +97,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
97
97
|
...C(Z)
|
|
98
98
|
}));
|
|
99
99
|
k.value = [...xe, ...Ee, ...Pe];
|
|
100
|
-
const
|
|
100
|
+
const Ne = k.value.map((Z) => Z.key), ie = v.map((Z) => Z.key).filter((Z) => !Ne.includes(Z));
|
|
101
101
|
return M.value = v.filter((Z) => ie.includes(Z.key)).map((Z) => ({
|
|
102
102
|
...C(Z),
|
|
103
103
|
active: !1
|
|
@@ -125,7 +125,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
125
125
|
} catch (D) {
|
|
126
126
|
console.warn("保存搜索配置失败:", D);
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, G = P(() => {
|
|
129
129
|
const D = k.value.filter((U) => !U.isFixed && !U.isLinked).length, W = k.value.filter((U) => U.isFixed || U.isLinked).length;
|
|
130
130
|
return D >= a.value - W;
|
|
131
131
|
});
|
|
@@ -137,16 +137,16 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
137
137
|
return;
|
|
138
138
|
const U = localStorage.getItem(s.value), te = JSON.parse(U || "{}");
|
|
139
139
|
if (te && te?.originalList && Array.isArray(te.originalList))
|
|
140
|
-
|
|
140
|
+
N(), _("confirm", k.value);
|
|
141
141
|
else if (W) {
|
|
142
142
|
v = JSON.parse(JSON.stringify(D));
|
|
143
|
-
const ne = D.filter((ie) => ie?.isFixed), be = D.filter((ie) => ie?.isLinked), ge = D.filter((ie) => !ie?.isFixed && !ie?.isLinked), xe = a.value && a.value > 0 ? Math.max(0, a.value - ne.length - be.length) : ge.length, Ee = ne.map((ie) => C(ie)), Pe = be.map((ie) => C(ie)),
|
|
144
|
-
k.value = [...Ee, ...Pe, ...
|
|
145
|
-
const
|
|
143
|
+
const ne = D.filter((ie) => ie?.isFixed), be = D.filter((ie) => ie?.isLinked), ge = D.filter((ie) => !ie?.isFixed && !ie?.isLinked), xe = a.value && a.value > 0 ? Math.max(0, a.value - ne.length - be.length) : ge.length, Ee = ne.map((ie) => C(ie)), Pe = be.map((ie) => C(ie)), Ne = ge.slice(0, xe).map((ie) => C(ie));
|
|
144
|
+
k.value = [...Ee, ...Pe, ...Ne];
|
|
145
|
+
const et = ge.slice(xe).map((ie) => ({
|
|
146
146
|
...C(ie),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
M.value =
|
|
149
|
+
M.value = et, _("confirm", k.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
@@ -154,9 +154,9 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
154
154
|
const K = (D) => {
|
|
155
155
|
const W = k.value.findIndex((U) => U.key === D.key);
|
|
156
156
|
W !== -1 && (k.value.splice(W, 1), M.value.push({ ...D, active: !1 }));
|
|
157
|
-
},
|
|
158
|
-
if (
|
|
159
|
-
Se.warning(`当前已经超过${
|
|
157
|
+
}, ce = (D) => {
|
|
158
|
+
if (G.value) {
|
|
159
|
+
Se.warning(`当前已经超过${c(a.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
const W = M.value.findIndex((U) => U.key === D.key);
|
|
@@ -164,22 +164,22 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
164
164
|
const [U] = M.value.splice(W, 1);
|
|
165
165
|
k.value.push({ ...U, active: !1 });
|
|
166
166
|
}
|
|
167
|
-
},
|
|
167
|
+
}, de = () => {
|
|
168
168
|
V.value = !1;
|
|
169
169
|
}, ve = () => {
|
|
170
170
|
V.value = !0;
|
|
171
171
|
}, B = () => {
|
|
172
|
-
ee(), _("confirm", k.value),
|
|
172
|
+
ee(), _("confirm", k.value), de();
|
|
173
173
|
}, ze = (D) => {
|
|
174
174
|
const W = M.value.findIndex((U) => U.key === D.key);
|
|
175
175
|
W !== -1 && (M.value[W].active = !0);
|
|
176
|
-
},
|
|
176
|
+
}, J = (D) => {
|
|
177
177
|
const W = M.value.findIndex((U) => U.key === D.key);
|
|
178
178
|
W !== -1 && (M.value[W].active = !1);
|
|
179
179
|
};
|
|
180
180
|
return t({
|
|
181
181
|
toOpenModal: ve
|
|
182
|
-
}),
|
|
182
|
+
}), he(() => {
|
|
183
183
|
}), (D, W) => (i(), T("div", {
|
|
184
184
|
class: Y(g(p).b())
|
|
185
185
|
}, [
|
|
@@ -187,16 +187,16 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
187
187
|
visible: V.value,
|
|
188
188
|
"onUpdate:visible": W[1] || (W[1] = (U) => V.value = U),
|
|
189
189
|
width: w.value,
|
|
190
|
-
onCancel:
|
|
190
|
+
onCancel: de,
|
|
191
191
|
onOk: B
|
|
192
192
|
}, {
|
|
193
193
|
title: r(() => [
|
|
194
|
-
|
|
194
|
+
d("div", {
|
|
195
195
|
class: Y(g(p).e("title"))
|
|
196
196
|
}, L(m.value), 3)
|
|
197
197
|
]),
|
|
198
198
|
footer: r(() => [
|
|
199
|
-
S(g(We), { onClick:
|
|
199
|
+
S(g(We), { onClick: de }, {
|
|
200
200
|
default: r(() => [
|
|
201
201
|
A(L(D.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
@@ -213,18 +213,18 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
213
213
|
})
|
|
214
214
|
]),
|
|
215
215
|
default: r(() => [
|
|
216
|
-
|
|
216
|
+
d("section", {
|
|
217
217
|
class: Y(g(p).e("show"))
|
|
218
218
|
}, [
|
|
219
|
-
|
|
219
|
+
d("div", {
|
|
220
220
|
class: Y(g(p).e("show__title"))
|
|
221
221
|
}, [
|
|
222
|
-
|
|
222
|
+
d("span", {
|
|
223
223
|
class: Y(g(p).e("title__tip"))
|
|
224
224
|
}, L(D.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
225
|
-
|
|
225
|
+
d("span", null, L(D.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(a.value) + L(D.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
226
226
|
], 2),
|
|
227
|
-
|
|
227
|
+
d("div", {
|
|
228
228
|
class: Y(g(p).e("show__tag"))
|
|
229
229
|
}, [
|
|
230
230
|
S(g($e), {
|
|
@@ -236,7 +236,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
236
236
|
move: y
|
|
237
237
|
}, {
|
|
238
238
|
item: r(({ element: U }) => [
|
|
239
|
-
|
|
239
|
+
d("div", {
|
|
240
240
|
class: Y([g(p).e("show__tag__item"), g(p).is("fixed", U.isFixed), g(p).is("linked", U.isLinked)])
|
|
241
241
|
}, [
|
|
242
242
|
A(L(U.label) + " ", 1),
|
|
@@ -251,30 +251,30 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
251
251
|
}, 8, ["modelValue", "disabled"])
|
|
252
252
|
], 2)
|
|
253
253
|
], 2),
|
|
254
|
-
|
|
254
|
+
d("section", {
|
|
255
255
|
class: Y(g(p).e("unshow"))
|
|
256
256
|
}, [
|
|
257
|
-
|
|
257
|
+
d("div", {
|
|
258
258
|
class: Y(g(p).e("show__title"))
|
|
259
259
|
}, [
|
|
260
|
-
|
|
260
|
+
d("span", {
|
|
261
261
|
class: Y(g(p).e("title__tip"))
|
|
262
262
|
}, L(D.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
263
263
|
], 2),
|
|
264
|
-
|
|
264
|
+
d("div", {
|
|
265
265
|
class: Y(g(p).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
267
|
M.value.length > 0 ? (i(!0), T(q, { key: 0 }, se(M.value, (U) => (i(), T("div", {
|
|
268
268
|
class: Y([g(p).e("unshow__tag__item"), g(p).is("fixed", U.isFixed || ""), g(p).is("linked", U.isLinked || "")]),
|
|
269
269
|
key: U.key,
|
|
270
270
|
onMouseenter: (te) => ze(U),
|
|
271
|
-
onMouseleave: (te) =>
|
|
271
|
+
onMouseleave: (te) => J(U)
|
|
272
272
|
}, [
|
|
273
273
|
A(L(U.label) + " ", 1),
|
|
274
274
|
U.active ? (i(), T("aside", {
|
|
275
275
|
key: 0,
|
|
276
276
|
class: Y(g(p).e("unshow__tag__item-add")),
|
|
277
|
-
onClick: (te) =>
|
|
277
|
+
onClick: (te) => ce(U)
|
|
278
278
|
}, L(D.$t("hbLibComp.hbFormItemFilterModal.add")), 11, al)) : z("", !0)
|
|
279
279
|
], 42, ol))), 128)) : (i(), T("div", {
|
|
280
280
|
key: 1,
|
|
@@ -289,8 +289,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
289
289
|
}
|
|
290
290
|
}), X = (e, t) => {
|
|
291
291
|
const l = e.__vccOpts || e;
|
|
292
|
-
for (const [n,
|
|
293
|
-
l[n] =
|
|
292
|
+
for (const [n, c] of t)
|
|
293
|
+
l[n] = c;
|
|
294
294
|
return l;
|
|
295
295
|
}, il = /* @__PURE__ */ X(nl, [["__scopeId", "data-v-93f23c9d"]]), ae = (e) => (e.install = (t) => {
|
|
296
296
|
t.component(e.name || "AnonymousComponent", e);
|
|
@@ -330,75 +330,75 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
332
|
setup(e, { expose: t, emit: l }) {
|
|
333
|
-
const n =
|
|
333
|
+
const n = pe("globalCompConfig", {}), c = l, f = pe("HB_LIST_PAGE_CONTAINER"), u = P(() => o.searchList || []), b = Ze("form"), o = e, a = P(() => o.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), _ = P(() => o.needFooter || n.HbLibListForm?.needFooter), p = P(() => [...o.items]), $ = P(() => [...o.items].map((x) => ({
|
|
334
334
|
...x,
|
|
335
335
|
label: x.label?.includes("多项搜索") ? "" : x.label
|
|
336
336
|
})));
|
|
337
337
|
console.log($.value);
|
|
338
338
|
const I = P(() => o.saveKey), V = O(), w = () => {
|
|
339
|
-
|
|
339
|
+
c("handleSearch");
|
|
340
340
|
}, v = () => {
|
|
341
|
-
|
|
341
|
+
c("handleReset");
|
|
342
342
|
}, k = O(), M = () => {
|
|
343
343
|
k.value && k.value.toOpenModal();
|
|
344
344
|
}, F = (x) => {
|
|
345
|
-
|
|
345
|
+
c("handleMenuClick", x);
|
|
346
346
|
}, C = (x) => {
|
|
347
|
-
|
|
347
|
+
c("handleSfcmConfirm", x);
|
|
348
348
|
};
|
|
349
349
|
le(
|
|
350
350
|
() => o.isFormExpanded,
|
|
351
351
|
(x) => {
|
|
352
352
|
if (x) {
|
|
353
353
|
console.log(x);
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
|
|
354
|
+
const N = document.querySelector("#subpackage_container");
|
|
355
|
+
N instanceof HTMLElement && (N.style.overflow = "hidden", setTimeout(() => {
|
|
356
|
+
N.style.overflow = "auto";
|
|
357
357
|
}, 500));
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
361
|
const y = (x) => {
|
|
362
|
-
const
|
|
363
|
-
|
|
362
|
+
const N = x;
|
|
363
|
+
N.style.height = "", N.offsetHeight;
|
|
364
364
|
}, s = (x) => {
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
|
|
365
|
+
const N = x;
|
|
366
|
+
N.style.height = "", N.style.overflow = "", Ce(() => {
|
|
367
|
+
f.calTableHeight && f.calTableHeight();
|
|
368
368
|
});
|
|
369
369
|
}, h = (x) => {
|
|
370
|
-
const
|
|
370
|
+
const N = x, ee = N.querySelector(".hb-lib-form--container");
|
|
371
371
|
if (ee) {
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
372
|
+
const G = ee.offsetHeight;
|
|
373
|
+
N.style.height = G + "px", N.style.overflow = "hidden", N.offsetHeight, requestAnimationFrame(() => {
|
|
374
|
+
N.style.height = "0";
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
}, H = () => {
|
|
378
378
|
Ce(() => {
|
|
379
|
-
|
|
379
|
+
f.calTableHeight && f.calTableHeight();
|
|
380
380
|
});
|
|
381
381
|
};
|
|
382
382
|
return t({
|
|
383
383
|
formRef: V,
|
|
384
384
|
SelectOption: qe,
|
|
385
|
-
Form:
|
|
386
|
-
FormItem:
|
|
387
|
-
Row:
|
|
385
|
+
Form: ct,
|
|
386
|
+
FormItem: rt,
|
|
387
|
+
Row: Nt,
|
|
388
388
|
Col: Pt,
|
|
389
|
-
Input:
|
|
389
|
+
Input: st,
|
|
390
390
|
Select: Ye,
|
|
391
|
-
CheckboxGroup:
|
|
391
|
+
CheckboxGroup: it,
|
|
392
392
|
Checkbox: Me,
|
|
393
|
-
DatePicker:
|
|
394
|
-
InputNumber:
|
|
395
|
-
RadioGroup:
|
|
396
|
-
Radio:
|
|
397
|
-
Switch:
|
|
393
|
+
DatePicker: nt,
|
|
394
|
+
InputNumber: at,
|
|
395
|
+
RadioGroup: ot,
|
|
396
|
+
Radio: lt,
|
|
397
|
+
Switch: tt,
|
|
398
398
|
Button: We,
|
|
399
399
|
Tooltip: Ie
|
|
400
|
-
}), (x,
|
|
401
|
-
const ee =
|
|
400
|
+
}), (x, N) => {
|
|
401
|
+
const ee = R("a-button"), G = R("a-tooltip"), K = R("a-menu-item"), ce = R("a-menu"), de = R("a-dropdown"), ve = R("HbLibFormItemFilterModal");
|
|
402
402
|
return i(), T(q, null, [
|
|
403
403
|
S(Dt, {
|
|
404
404
|
name: "form-collapse",
|
|
@@ -408,17 +408,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
408
408
|
onAfterLeave: H
|
|
409
409
|
}, {
|
|
410
410
|
default: r(() => [
|
|
411
|
-
ue(
|
|
412
|
-
class: Y([g(
|
|
411
|
+
ue(d("div", {
|
|
412
|
+
class: Y([g(b).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", _.value ? "isNeedFooterCss" : ""])
|
|
413
413
|
}, [
|
|
414
|
-
S(g(
|
|
414
|
+
S(g(ct), oe(x.$attrs, {
|
|
415
415
|
model: e.formData,
|
|
416
416
|
ref_key: "formRef",
|
|
417
417
|
ref: V,
|
|
418
418
|
class: ["hb-lib-form--container", m.value == "show" ? "" : "hide"]
|
|
419
419
|
}), {
|
|
420
420
|
default: r(() => [
|
|
421
|
-
(i(!0), T(q, null, se($.value, (B, ze) => (i(), E(g(
|
|
421
|
+
(i(!0), T(q, null, se($.value, (B, ze) => (i(), E(g(rt), oe({
|
|
422
422
|
key: ze,
|
|
423
423
|
ref_for: !0
|
|
424
424
|
}, B, {
|
|
@@ -439,79 +439,79 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
439
439
|
formData: e.formData,
|
|
440
440
|
item: B
|
|
441
441
|
}, void 0, !0) : z("", !0),
|
|
442
|
-
B.type === "input" ? (i(), E(g(
|
|
442
|
+
B.type === "input" ? (i(), E(g(st), oe({
|
|
443
443
|
key: 2,
|
|
444
444
|
value: e.formData[B.key],
|
|
445
|
-
"onUpdate:value": (
|
|
445
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
446
446
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
447
447
|
B.type === "select" ? (i(), E(g(Ye), oe({
|
|
448
448
|
key: 3,
|
|
449
449
|
value: e.formData[B.key],
|
|
450
|
-
"onUpdate:value": (
|
|
450
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
451
451
|
}, { ref_for: !0 }, B.attrs), {
|
|
452
452
|
default: r(() => [
|
|
453
|
-
(i(!0), T(q, null, se(B.options, (
|
|
453
|
+
(i(!0), T(q, null, se(B.options, (J, D) => (i(), E(g(qe), {
|
|
454
454
|
key: D,
|
|
455
|
-
value:
|
|
455
|
+
value: J.value
|
|
456
456
|
}, {
|
|
457
457
|
default: r(() => [
|
|
458
|
-
A(L(
|
|
458
|
+
A(L(J.label), 1)
|
|
459
459
|
]),
|
|
460
460
|
_: 2
|
|
461
461
|
}, 1032, ["value"]))), 128))
|
|
462
462
|
]),
|
|
463
463
|
_: 2
|
|
464
464
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
465
|
-
B.type === "checkbox" ? (i(), E(g(
|
|
465
|
+
B.type === "checkbox" ? (i(), E(g(it), oe({
|
|
466
466
|
key: 4,
|
|
467
467
|
value: e.formData[B.key],
|
|
468
|
-
"onUpdate:value": (
|
|
468
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
469
469
|
}, { ref_for: !0 }, B.attrs), {
|
|
470
470
|
default: r(() => [
|
|
471
|
-
(i(!0), T(q, null, se(B.options, (
|
|
471
|
+
(i(!0), T(q, null, se(B.options, (J, D) => (i(), E(g(Me), {
|
|
472
472
|
key: D,
|
|
473
|
-
value:
|
|
473
|
+
value: J.value
|
|
474
474
|
}, {
|
|
475
475
|
default: r(() => [
|
|
476
|
-
A(L(
|
|
476
|
+
A(L(J.label), 1)
|
|
477
477
|
]),
|
|
478
478
|
_: 2
|
|
479
479
|
}, 1032, ["value"]))), 128))
|
|
480
480
|
]),
|
|
481
481
|
_: 2
|
|
482
482
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
483
|
-
B.type === "date-picker" ? (i(), E(g(
|
|
483
|
+
B.type === "date-picker" ? (i(), E(g(nt), oe({
|
|
484
484
|
key: 5,
|
|
485
485
|
value: e.formData[B.key],
|
|
486
|
-
"onUpdate:value": (
|
|
486
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
487
487
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
488
|
-
B.type === "input-number" ? (i(), E(g(
|
|
488
|
+
B.type === "input-number" ? (i(), E(g(at), oe({
|
|
489
489
|
key: 6,
|
|
490
490
|
value: e.formData[B.key],
|
|
491
|
-
"onUpdate:value": (
|
|
491
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
492
492
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
493
|
-
B.type === "radio" ? (i(), E(g(
|
|
493
|
+
B.type === "radio" ? (i(), E(g(ot), oe({
|
|
494
494
|
key: 7,
|
|
495
495
|
value: e.formData[B.key],
|
|
496
|
-
"onUpdate:value": (
|
|
496
|
+
"onUpdate:value": (J) => e.formData[B.key] = J
|
|
497
497
|
}, { ref_for: !0 }, B.attrs), {
|
|
498
498
|
default: r(() => [
|
|
499
|
-
(i(!0), T(q, null, se(B.options, (
|
|
499
|
+
(i(!0), T(q, null, se(B.options, (J, D) => (i(), E(g(lt), {
|
|
500
500
|
key: D,
|
|
501
|
-
value:
|
|
501
|
+
value: J.value
|
|
502
502
|
}, {
|
|
503
503
|
default: r(() => [
|
|
504
|
-
A(L(
|
|
504
|
+
A(L(J.label), 1)
|
|
505
505
|
]),
|
|
506
506
|
_: 2
|
|
507
507
|
}, 1032, ["value"]))), 128))
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
511
|
-
B.type === "switch" ? (i(), E(g(
|
|
511
|
+
B.type === "switch" ? (i(), E(g(tt), oe({
|
|
512
512
|
key: 8,
|
|
513
513
|
checked: e.formData[B.key],
|
|
514
|
-
"onUpdate:checked": (
|
|
514
|
+
"onUpdate:checked": (J) => e.formData[B.key] = J
|
|
515
515
|
}, { ref_for: !0 }, B.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
|
|
516
516
|
]),
|
|
517
517
|
_: 2
|
|
@@ -555,16 +555,16 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}),
|
|
558
|
-
e.needFilter ? (i(), E(
|
|
558
|
+
e.needFilter ? (i(), E(G, {
|
|
559
559
|
key: 0,
|
|
560
560
|
title: x.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
561
561
|
}, {
|
|
562
562
|
default: r(() => [
|
|
563
|
-
|
|
563
|
+
d("span", {
|
|
564
564
|
class: "hb-lib-form-svg",
|
|
565
565
|
onClick: M
|
|
566
|
-
}, [...
|
|
567
|
-
|
|
566
|
+
}, [...N[0] || (N[0] = [
|
|
567
|
+
d("svg", {
|
|
568
568
|
t: "1757915025410",
|
|
569
569
|
class: "icon",
|
|
570
570
|
viewBox: "0 0 1024 1024",
|
|
@@ -574,7 +574,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
574
574
|
width: "200",
|
|
575
575
|
height: "200"
|
|
576
576
|
}, [
|
|
577
|
-
|
|
577
|
+
d("path", {
|
|
578
578
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
579
579
|
fill: "#ff5000",
|
|
580
580
|
"p-id": "16347"
|
|
@@ -585,11 +585,11 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
585
585
|
_: 1
|
|
586
586
|
}, 8, ["title"])) : z("", !0),
|
|
587
587
|
j(x.$slots, "formBtns", {}, () => [
|
|
588
|
-
e.needSearchCase ? (i(), E(
|
|
588
|
+
e.needSearchCase ? (i(), E(de, { key: 0 }, {
|
|
589
589
|
overlay: r(() => [
|
|
590
|
-
S(
|
|
590
|
+
S(ce, { onClick: F }, {
|
|
591
591
|
default: r(() => [
|
|
592
|
-
(i(!0), T(q, null, se(
|
|
592
|
+
(i(!0), T(q, null, se(u.value, (B) => (i(), E(K, {
|
|
593
593
|
key: B.id
|
|
594
594
|
}, {
|
|
595
595
|
default: r(() => [
|
|
@@ -614,12 +614,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
614
614
|
})
|
|
615
615
|
]),
|
|
616
616
|
default: r(() => [
|
|
617
|
-
S(
|
|
617
|
+
S(G, {
|
|
618
618
|
title: x.$t("hbLibComp.hbLibListForm.queryCase")
|
|
619
619
|
}, {
|
|
620
|
-
default: r(() => [...
|
|
621
|
-
|
|
622
|
-
|
|
620
|
+
default: r(() => [...N[1] || (N[1] = [
|
|
621
|
+
d("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
622
|
+
d("svg", {
|
|
623
623
|
t: "1765936014161",
|
|
624
624
|
class: "icon",
|
|
625
625
|
viewBox: "0 0 1024 1024",
|
|
@@ -627,17 +627,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
627
627
|
xmlns: "http://www.w3.org/2000/svg",
|
|
628
628
|
"p-id": "4751"
|
|
629
629
|
}, [
|
|
630
|
-
|
|
630
|
+
d("path", {
|
|
631
631
|
d: "M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",
|
|
632
632
|
fill: "#ff5000",
|
|
633
633
|
"p-id": "4752"
|
|
634
634
|
}),
|
|
635
|
-
|
|
635
|
+
d("path", {
|
|
636
636
|
d: "M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",
|
|
637
637
|
fill: "#ff5000",
|
|
638
638
|
"p-id": "4753"
|
|
639
639
|
}),
|
|
640
|
-
|
|
640
|
+
d("path", {
|
|
641
641
|
d: "M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",
|
|
642
642
|
fill: "#ff5000",
|
|
643
643
|
"p-id": "4754"
|
|
@@ -657,15 +657,15 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
657
657
|
}, 16, ["model", "class"]),
|
|
658
658
|
_.value ? (i(), T("div", {
|
|
659
659
|
key: 0,
|
|
660
|
-
class: Y([g(
|
|
660
|
+
class: Y([g(b).e("footer"), "form-footer"])
|
|
661
661
|
}, [
|
|
662
|
-
|
|
663
|
-
class: Y(g(
|
|
662
|
+
d("div", {
|
|
663
|
+
class: Y(g(b).e("footer__left"))
|
|
664
664
|
}, [
|
|
665
665
|
j(x.$slots, "form-footer-left", {}, void 0, !0)
|
|
666
666
|
], 2),
|
|
667
|
-
|
|
668
|
-
class: Y(g(
|
|
667
|
+
d("div", {
|
|
668
|
+
class: Y(g(b).e("footer__right"))
|
|
669
669
|
}, [
|
|
670
670
|
m.value == "show" ? j(x.$slots, "form-footer-right", {
|
|
671
671
|
key: 0,
|
|
@@ -694,16 +694,16 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
694
694
|
]),
|
|
695
695
|
_: 1
|
|
696
696
|
}),
|
|
697
|
-
e.needFilter ? (i(), E(
|
|
697
|
+
e.needFilter ? (i(), E(G, {
|
|
698
698
|
key: 0,
|
|
699
699
|
title: x.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
700
700
|
}, {
|
|
701
701
|
default: r(() => [
|
|
702
|
-
|
|
702
|
+
d("span", {
|
|
703
703
|
class: "hb-lib-form-svg",
|
|
704
704
|
onClick: M
|
|
705
|
-
}, [...
|
|
706
|
-
|
|
705
|
+
}, [...N[2] || (N[2] = [
|
|
706
|
+
d("svg", {
|
|
707
707
|
t: "1757915025410",
|
|
708
708
|
class: "icon",
|
|
709
709
|
viewBox: "0 0 1024 1024",
|
|
@@ -713,7 +713,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
713
713
|
width: "200",
|
|
714
714
|
height: "200"
|
|
715
715
|
}, [
|
|
716
|
-
|
|
716
|
+
d("path", {
|
|
717
717
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
718
718
|
fill: "#ff5000",
|
|
719
719
|
"p-id": "16347"
|
|
@@ -724,11 +724,11 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
724
724
|
_: 1
|
|
725
725
|
}, 8, ["title"])) : z("", !0),
|
|
726
726
|
j(x.$slots, "formBtns", {}, () => [
|
|
727
|
-
e.needSearchCase ? (i(), E(
|
|
727
|
+
e.needSearchCase ? (i(), E(de, { key: 0 }, {
|
|
728
728
|
overlay: r(() => [
|
|
729
|
-
S(
|
|
729
|
+
S(ce, { onClick: F }, {
|
|
730
730
|
default: r(() => [
|
|
731
|
-
(i(!0), T(q, null, se(
|
|
731
|
+
(i(!0), T(q, null, se(u.value, (B) => (i(), E(K, {
|
|
732
732
|
key: B.id
|
|
733
733
|
}, {
|
|
734
734
|
default: r(() => [
|
|
@@ -753,15 +753,15 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
753
753
|
})
|
|
754
754
|
]),
|
|
755
755
|
default: r(() => [
|
|
756
|
-
S(
|
|
756
|
+
S(G, {
|
|
757
757
|
title: x.$t("hbLibComp.hbLibListForm.queryCase")
|
|
758
758
|
}, {
|
|
759
|
-
default: r(() => [...
|
|
760
|
-
|
|
759
|
+
default: r(() => [...N[3] || (N[3] = [
|
|
760
|
+
d("span", {
|
|
761
761
|
class: "hb-lib-form-svg",
|
|
762
762
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
763
763
|
}, [
|
|
764
|
-
|
|
764
|
+
d("svg", {
|
|
765
765
|
t: "1765936014161",
|
|
766
766
|
class: "icon",
|
|
767
767
|
viewBox: "0 0 1024 1024",
|
|
@@ -769,17 +769,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
769
769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
770
770
|
"p-id": "4751"
|
|
771
771
|
}, [
|
|
772
|
-
|
|
772
|
+
d("path", {
|
|
773
773
|
d: "M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",
|
|
774
774
|
fill: "#ff5000",
|
|
775
775
|
"p-id": "4752"
|
|
776
776
|
}),
|
|
777
|
-
|
|
777
|
+
d("path", {
|
|
778
778
|
d: "M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",
|
|
779
779
|
fill: "#ff5000",
|
|
780
780
|
"p-id": "4753"
|
|
781
781
|
}),
|
|
782
|
-
|
|
782
|
+
d("path", {
|
|
783
783
|
d: "M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",
|
|
784
784
|
fill: "#ff5000",
|
|
785
785
|
"p-id": "4754"
|
|
@@ -841,7 +841,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
841
841
|
hideDomList: {}
|
|
842
842
|
},
|
|
843
843
|
setup(e) {
|
|
844
|
-
const t =
|
|
844
|
+
const t = pe("globalCompConfig", {}), l = e, { isFullscreen: n, toggle: c } = Ht(document.body);
|
|
845
845
|
le(
|
|
846
846
|
() => n.value,
|
|
847
847
|
(o) => {
|
|
@@ -866,57 +866,57 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
866
866
|
}, 0);
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
const
|
|
869
|
+
const f = O(""), u = () => {
|
|
870
870
|
const o = Qe();
|
|
871
871
|
let a = localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", m = o?.path;
|
|
872
872
|
if (a !== "[]") {
|
|
873
873
|
let _ = JSON.parse(a).find((p) => p.value === m);
|
|
874
|
-
_ && (
|
|
874
|
+
_ && (f.value = _.label.replace(/-/g, " / "));
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
|
-
|
|
878
|
-
|
|
877
|
+
he(() => {
|
|
878
|
+
u();
|
|
879
879
|
});
|
|
880
|
-
const
|
|
881
|
-
o.keyCode === 192 &&
|
|
880
|
+
const b = (o) => {
|
|
881
|
+
o.keyCode === 192 && c();
|
|
882
882
|
};
|
|
883
|
-
return
|
|
884
|
-
window.addEventListener("keydown",
|
|
883
|
+
return he(() => {
|
|
884
|
+
window.addEventListener("keydown", b);
|
|
885
885
|
}), we(() => {
|
|
886
|
-
window.removeEventListener("keydown",
|
|
886
|
+
window.removeEventListener("keydown", b);
|
|
887
887
|
}), (o, a) => {
|
|
888
|
-
const m =
|
|
888
|
+
const m = R("a-tooltip");
|
|
889
889
|
return i(), T("section", fl, [
|
|
890
|
-
|
|
891
|
-
|
|
890
|
+
d("aside", bl, L(f.value), 1),
|
|
891
|
+
d("aside", pl, [
|
|
892
892
|
S(m, {
|
|
893
893
|
title: g(n) ? `${o.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${o.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
894
894
|
placement: "leftTop"
|
|
895
895
|
}, {
|
|
896
896
|
default: r(() => [
|
|
897
|
-
|
|
897
|
+
d("span", {
|
|
898
898
|
class: "hb-lib-list-page-act-svg",
|
|
899
899
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
900
|
-
(..._) => g(
|
|
900
|
+
(..._) => g(c) && g(c)(..._))
|
|
901
901
|
}, [
|
|
902
902
|
g(n) ? (i(), T("svg", ml, [...a[2] || (a[2] = [
|
|
903
|
-
|
|
903
|
+
d("path", {
|
|
904
904
|
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",
|
|
905
905
|
fill: "#ff5000",
|
|
906
906
|
"p-id": "23905"
|
|
907
907
|
}, null, -1),
|
|
908
|
-
|
|
908
|
+
d("path", {
|
|
909
909
|
d: "M896 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.333333zM257.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.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
910
910
|
fill: "#ff5000",
|
|
911
911
|
"p-id": "23906"
|
|
912
912
|
}, null, -1),
|
|
913
|
-
|
|
913
|
+
d("path", {
|
|
914
914
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
915
915
|
fill: "#ff5000",
|
|
916
916
|
"p-id": "23907"
|
|
917
917
|
}, null, -1)
|
|
918
918
|
])])) : (i(), T("svg", hl, [...a[1] || (a[1] = [
|
|
919
|
-
|
|
919
|
+
d("path", {
|
|
920
920
|
d: "M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",
|
|
921
921
|
fill: "#ff5000",
|
|
922
922
|
"p-id": "22886"
|
|
@@ -940,33 +940,33 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
940
940
|
},
|
|
941
941
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
942
942
|
setup(e, { emit: t }) {
|
|
943
|
-
const l = t, n = O(!0),
|
|
943
|
+
const l = t, n = O(!0), c = () => {
|
|
944
944
|
n.value = !n.value, l("handleOpenOrClose", n.value);
|
|
945
|
-
},
|
|
945
|
+
}, f = () => {
|
|
946
946
|
l("handleReload");
|
|
947
|
-
},
|
|
947
|
+
}, u = (b) => {
|
|
948
948
|
};
|
|
949
|
-
return
|
|
950
|
-
window.addEventListener("keydown",
|
|
949
|
+
return he(() => {
|
|
950
|
+
window.addEventListener("keydown", u);
|
|
951
951
|
}), we(() => {
|
|
952
|
-
window.removeEventListener("keydown",
|
|
953
|
-
}), (
|
|
954
|
-
const a =
|
|
952
|
+
window.removeEventListener("keydown", u);
|
|
953
|
+
}), (b, o) => {
|
|
954
|
+
const a = R("a-tooltip");
|
|
955
955
|
return i(), T("section", _l, [
|
|
956
|
-
|
|
957
|
-
j(
|
|
956
|
+
d("aside", Ll, [
|
|
957
|
+
j(b.$slots, "btnsLeft", {}, void 0, !0)
|
|
958
958
|
]),
|
|
959
|
-
|
|
959
|
+
d("aside", Cl, [
|
|
960
960
|
e.needReload ? (i(), E(a, {
|
|
961
961
|
key: 0,
|
|
962
|
-
title:
|
|
962
|
+
title: b.$t("hbLibComp.hbListBtnsAct.reload")
|
|
963
963
|
}, {
|
|
964
964
|
default: r(() => [
|
|
965
|
-
|
|
965
|
+
d("span", {
|
|
966
966
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
967
|
-
onClick:
|
|
967
|
+
onClick: f
|
|
968
968
|
}, [...o[0] || (o[0] = [
|
|
969
|
-
|
|
969
|
+
d("svg", {
|
|
970
970
|
t: "1759041224819",
|
|
971
971
|
class: "icon",
|
|
972
972
|
viewBox: "0 0 1024 1024",
|
|
@@ -976,7 +976,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
976
976
|
width: "200",
|
|
977
977
|
height: "200"
|
|
978
978
|
}, [
|
|
979
|
-
|
|
979
|
+
d("path", {
|
|
980
980
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
981
981
|
fill: "#ff5000",
|
|
982
982
|
"p-id": "4203"
|
|
@@ -988,12 +988,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
988
988
|
}, 8, ["title"])) : z("", !0),
|
|
989
989
|
e.needOpenOrClose ? (i(), E(a, {
|
|
990
990
|
key: 1,
|
|
991
|
-
title: n.value ? `${
|
|
991
|
+
title: n.value ? `${b.$t("hbLibComp.hbListBtnsAct.close")}` : `${b.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
992
992
|
}, {
|
|
993
993
|
default: r(() => [
|
|
994
|
-
|
|
994
|
+
d("span", {
|
|
995
995
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
996
|
-
onClick:
|
|
996
|
+
onClick: c
|
|
997
997
|
}, [
|
|
998
998
|
n.value ? (i(), E(g(Yt), {
|
|
999
999
|
key: 0,
|
|
@@ -1006,14 +1006,14 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1006
1006
|
]),
|
|
1007
1007
|
_: 1
|
|
1008
1008
|
}, 8, ["title"])) : z("", !0),
|
|
1009
|
-
j(
|
|
1009
|
+
j(b.$slots, "btnsRight", {}, void 0, !0)
|
|
1010
1010
|
])
|
|
1011
1011
|
]);
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
1014
|
}), Sl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-de62f20a"]]), Tl = ae(Sl), wl = (e = {}) => {
|
|
1015
|
-
const { formRef: t, offsetBottom: l = 50, minHeight: n = 300, timeOut:
|
|
1016
|
-
let
|
|
1015
|
+
const { formRef: t, offsetBottom: l = 50, minHeight: n = 300, timeOut: c = 100 } = e, f = O(0);
|
|
1016
|
+
let u = null, b = null, o = null, a = null, m = null;
|
|
1017
1017
|
const _ = () => {
|
|
1018
1018
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
1019
1019
|
requestAnimationFrame(() => {
|
|
@@ -1022,7 +1022,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1022
1022
|
if (k) {
|
|
1023
1023
|
const F = Math.floor(k.getBoundingClientRect().top), C = window.innerHeight, s = (M ? M.offsetHeight + 20 : 40) + l;
|
|
1024
1024
|
let h = C - F - s;
|
|
1025
|
-
h < n && (h = n),
|
|
1025
|
+
h < n && (h = n), f.value = h;
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
});
|
|
@@ -1043,17 +1043,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1043
1043
|
return null;
|
|
1044
1044
|
}, $ = () => {
|
|
1045
1045
|
const k = document.querySelector(".hb-lib-list-page-form-box");
|
|
1046
|
-
k && (
|
|
1046
|
+
k && (u = new ResizeObserver(() => {
|
|
1047
1047
|
document.querySelectorAll(".ant-tooltip").forEach((F) => {
|
|
1048
1048
|
F.style.display = "none";
|
|
1049
1049
|
}), _();
|
|
1050
|
-
}),
|
|
1050
|
+
}), u.observe(k));
|
|
1051
1051
|
}, I = () => {
|
|
1052
1052
|
const k = document.querySelector(".hb-lib-list-page-form-box");
|
|
1053
1053
|
k && (o = new MutationObserver(() => {
|
|
1054
1054
|
setTimeout(() => {
|
|
1055
1055
|
_();
|
|
1056
|
-
},
|
|
1056
|
+
}, c);
|
|
1057
1057
|
}), o.observe(k, {
|
|
1058
1058
|
childList: !0,
|
|
1059
1059
|
subtree: !0,
|
|
@@ -1063,13 +1063,13 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1063
1063
|
}, V = () => {
|
|
1064
1064
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
1065
1065
|
_();
|
|
1066
|
-
},
|
|
1066
|
+
}, c);
|
|
1067
1067
|
}, w = () => {
|
|
1068
1068
|
window.addEventListener("resize", V), Ce(() => {
|
|
1069
|
-
$(), I(),
|
|
1069
|
+
$(), I(), b = p();
|
|
1070
1070
|
});
|
|
1071
1071
|
}, v = () => {
|
|
1072
|
-
window.removeEventListener("resize", V),
|
|
1072
|
+
window.removeEventListener("resize", V), u && u.disconnect(), o && o.disconnect(), b && b.disconnect(), a && clearTimeout(a), m && clearTimeout(m);
|
|
1073
1073
|
};
|
|
1074
1074
|
return t && le(
|
|
1075
1075
|
() => t,
|
|
@@ -1079,12 +1079,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1079
1079
|
}, 200);
|
|
1080
1080
|
},
|
|
1081
1081
|
{ deep: !0 }
|
|
1082
|
-
),
|
|
1082
|
+
), he(() => {
|
|
1083
1083
|
_(), w();
|
|
1084
1084
|
}), we(() => {
|
|
1085
1085
|
v();
|
|
1086
1086
|
}), {
|
|
1087
|
-
tableHeight:
|
|
1087
|
+
tableHeight: f,
|
|
1088
1088
|
calTableHeight: _
|
|
1089
1089
|
};
|
|
1090
1090
|
}, xl = /* @__PURE__ */ Q({
|
|
@@ -1100,32 +1100,32 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1100
1100
|
isUnFixTbHeight: { type: Boolean }
|
|
1101
1101
|
},
|
|
1102
1102
|
setup(e) {
|
|
1103
|
-
const t =
|
|
1103
|
+
const t = pe("globalCompConfig", {}), { isFullscreen: l } = Ht(document.body), n = e, c = Bt("PageContainerRef"), f = P(() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110), u = P(() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20), b = P(() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300), o = P(() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100), a = P(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1104
1104
|
console.log(n.isUnFixTbHeight);
|
|
1105
1105
|
const { calTableHeight: m, tableHeight: _ } = wl({
|
|
1106
|
-
offsetBottom:
|
|
1106
|
+
offsetBottom: u.value,
|
|
1107
1107
|
// 底部预留空间
|
|
1108
|
-
minHeight:
|
|
1108
|
+
minHeight: b.value,
|
|
1109
1109
|
// table最小高度 请勿随便修改!!
|
|
1110
1110
|
timeOut: o.value
|
|
1111
1111
|
}), p = P(() => _.value);
|
|
1112
|
-
return
|
|
1113
|
-
PageContainerRef:
|
|
1112
|
+
return Ct("HB_LIST_PAGE_CONTAINER", {
|
|
1113
|
+
PageContainerRef: c,
|
|
1114
1114
|
// 通过函数访问,
|
|
1115
1115
|
tableHeight: _,
|
|
1116
1116
|
calTableHeight: m
|
|
1117
1117
|
}), ($, I) => (i(), T("section", {
|
|
1118
1118
|
class: "hb-lib-list-page-container",
|
|
1119
1119
|
ref_key: "PageContainerRef",
|
|
1120
|
-
ref:
|
|
1120
|
+
ref: c
|
|
1121
1121
|
}, [
|
|
1122
1122
|
j($.$slots, "header"),
|
|
1123
|
-
|
|
1123
|
+
d("section", {
|
|
1124
1124
|
class: "list-page-box",
|
|
1125
|
-
style:
|
|
1125
|
+
style: re(
|
|
1126
1126
|
a.value ? null : {
|
|
1127
|
-
"--hb-list-table-height": g(l) ? p.value -
|
|
1128
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" : g(l) ? p.value -
|
|
1127
|
+
"--hb-list-table-height": g(l) ? p.value - f.value + "px" : p.value - u.value + "px",
|
|
1128
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : g(l) ? p.value - f.value + "px" : p.value - u.value + "px"
|
|
1129
1129
|
}
|
|
1130
1130
|
)
|
|
1131
1131
|
}, [
|
|
@@ -1142,10 +1142,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1142
1142
|
}, El = {
|
|
1143
1143
|
key: 1,
|
|
1144
1144
|
class: "hb-lib-selector-footer"
|
|
1145
|
-
}, Pl = { class: "hb-lib-footer-buttons" },
|
|
1145
|
+
}, Pl = { class: "hb-lib-footer-buttons" }, Nl = {
|
|
1146
1146
|
key: 2,
|
|
1147
1147
|
class: "hb-lib-selector-footer"
|
|
1148
|
-
},
|
|
1148
|
+
}, Rl = { class: "hb-lib-footer-buttons" }, Ul = /* @__PURE__ */ Q({
|
|
1149
1149
|
name: "HbLibListMultiSelect",
|
|
1150
1150
|
__name: "HbListMultiSelect",
|
|
1151
1151
|
props: /* @__PURE__ */ Ve({
|
|
@@ -1166,74 +1166,74 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1166
1166
|
}),
|
|
1167
1167
|
emits: /* @__PURE__ */ Ve(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1168
1168
|
setup(e, { emit: t }) {
|
|
1169
|
-
const l = e, n = t,
|
|
1170
|
-
if (l.remoteSearch || !
|
|
1171
|
-
const C =
|
|
1169
|
+
const l = e, n = t, c = kt(e, "value"), f = O(!1), u = O(""), b = O([]), o = O(), a = P(() => {
|
|
1170
|
+
if (l.remoteSearch || !u.value) return l.options;
|
|
1171
|
+
const C = u.value.toLowerCase();
|
|
1172
1172
|
return l.options.filter((y) => y.label.toLowerCase().includes(C) || y.description?.toLowerCase().includes(C));
|
|
1173
|
-
}), m = P(() => l.prefix ? `${l.prefix.length * 14 + 8}px` : "0px"), _ = P(() => a.value.length === 0 ? !1 : a.value.every((C) =>
|
|
1173
|
+
}), m = P(() => l.prefix ? `${l.prefix.length * 14 + 8}px` : "0px"), _ = P(() => a.value.length === 0 ? !1 : a.value.every((C) => b.value.includes(C.value))), p = P(() => {
|
|
1174
1174
|
if (a.value.length === 0) return !1;
|
|
1175
|
-
const C = a.value.filter((y) =>
|
|
1175
|
+
const C = a.value.filter((y) => b.value.includes(y.value)).length;
|
|
1176
1176
|
return C > 0 && C < a.value.length;
|
|
1177
1177
|
});
|
|
1178
1178
|
le(
|
|
1179
|
-
() =>
|
|
1179
|
+
() => c.value,
|
|
1180
1180
|
(C) => {
|
|
1181
|
-
C ?
|
|
1181
|
+
C ? b.value = Array.isArray(C) ? [...C] : [C] : b.value = [];
|
|
1182
1182
|
},
|
|
1183
1183
|
{ immediate: !0 }
|
|
1184
1184
|
), le(
|
|
1185
1185
|
() => l.searchValue,
|
|
1186
1186
|
(C) => {
|
|
1187
|
-
l.remoteSearch && C !== void 0 && (
|
|
1187
|
+
l.remoteSearch && C !== void 0 && (u.value = C);
|
|
1188
1188
|
},
|
|
1189
1189
|
{ immediate: !0 }
|
|
1190
1190
|
);
|
|
1191
1191
|
const $ = (C) => {
|
|
1192
|
-
C && (
|
|
1192
|
+
C && (f.value = C, I.value = [...b.value], u.value = "", setTimeout(() => {
|
|
1193
1193
|
if (o.value) {
|
|
1194
1194
|
const y = o.value.input || o.value.$el?.querySelector("input");
|
|
1195
1195
|
y && y.focus();
|
|
1196
1196
|
}
|
|
1197
1197
|
}, 100));
|
|
1198
1198
|
}, I = O([]), V = () => {
|
|
1199
|
-
|
|
1199
|
+
b.value = [...I.value], f.value = !1, n("cancel");
|
|
1200
1200
|
}, w = O([]), v = () => {
|
|
1201
|
-
const C = l.multiple ?
|
|
1202
|
-
w.value = y, console.log(C, y), I.value = [...
|
|
1203
|
-
}, k =
|
|
1204
|
-
const y = C !== void 0 ? C :
|
|
1201
|
+
const C = l.multiple ? b.value : b.value[0] || "", y = l.options.filter((s) => b.value.includes(s.value));
|
|
1202
|
+
w.value = y, console.log(C, y), I.value = [...b.value], c.value = C, n("update:value", C), n("change", C, y), n("confirm", C, y), f.value = !1;
|
|
1203
|
+
}, k = Jt((C) => {
|
|
1204
|
+
const y = C !== void 0 ? C : u.value;
|
|
1205
1205
|
l.remoteSearch && (n("search", y), n("update:searchValue", y));
|
|
1206
1206
|
}, 300), M = (C) => {
|
|
1207
1207
|
if (l.multiple) {
|
|
1208
|
-
const y = new Set(
|
|
1209
|
-
y.has(C.value) ? y.delete(C.value) : y.add(C.value),
|
|
1208
|
+
const y = new Set(b.value);
|
|
1209
|
+
y.has(C.value) ? y.delete(C.value) : y.add(C.value), b.value = Array.from(y);
|
|
1210
1210
|
} else
|
|
1211
|
-
|
|
1211
|
+
b.value = [C.value], v();
|
|
1212
1212
|
}, F = (C) => {
|
|
1213
1213
|
if (C.target.checked) {
|
|
1214
|
-
const s = new Set(
|
|
1214
|
+
const s = new Set(b.value);
|
|
1215
1215
|
a.value.forEach((h) => {
|
|
1216
1216
|
s.add(h.value);
|
|
1217
|
-
}),
|
|
1217
|
+
}), b.value = Array.from(s);
|
|
1218
1218
|
} else {
|
|
1219
1219
|
const s = new Set(a.value.map((h) => h.value));
|
|
1220
|
-
|
|
1220
|
+
b.value = b.value.filter((h) => !s.has(h));
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
1223
|
return (C, y) => {
|
|
1224
|
-
const s =
|
|
1224
|
+
const s = R("a-tag"), h = R("a-input"), H = R("a-checkbox"), x = R("a-radio"), N = R("a-button"), ee = R("a-select");
|
|
1225
1225
|
return i(), T("div", oe({
|
|
1226
1226
|
class: "hb-lib-selector-wrapper",
|
|
1227
1227
|
style: { "--prefix-width": m.value }
|
|
1228
1228
|
}, C.$attrs), [
|
|
1229
1229
|
S(ee, {
|
|
1230
|
-
value:
|
|
1231
|
-
"onUpdate:value": y[5] || (y[5] = (
|
|
1230
|
+
value: c.value,
|
|
1231
|
+
"onUpdate:value": y[5] || (y[5] = (G) => c.value = G),
|
|
1232
1232
|
mode: e.multiple ? "multiple" : void 0,
|
|
1233
1233
|
placeholder: e.placeholder,
|
|
1234
1234
|
"show-search": !0,
|
|
1235
1235
|
"filter-option": !1,
|
|
1236
|
-
open:
|
|
1236
|
+
open: f.value,
|
|
1237
1237
|
allowClear: "",
|
|
1238
1238
|
maxTagCount: e.maxTagCount,
|
|
1239
1239
|
options: a.value,
|
|
@@ -1244,27 +1244,27 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1244
1244
|
"data-prefix": e.prefix,
|
|
1245
1245
|
style: { width: "100%" }
|
|
1246
1246
|
}, {
|
|
1247
|
-
tagRender: r(({ value:
|
|
1247
|
+
tagRender: r(({ value: G, label: K, closable: ce, option: de }) => [
|
|
1248
1248
|
S(s, {
|
|
1249
1249
|
class: "hb-lib-search-tag",
|
|
1250
1250
|
onClick: y[0] || (y[0] = () => $(!0))
|
|
1251
1251
|
}, {
|
|
1252
1252
|
default: r(() => [
|
|
1253
|
-
|
|
1254
|
-
|
|
1253
|
+
d("span", Hl, L(K), 1),
|
|
1254
|
+
de?.description ? (i(), T("span", $l, " (" + L(de.description) + ") ", 1)) : z("", !0)
|
|
1255
1255
|
]),
|
|
1256
1256
|
_: 2
|
|
1257
1257
|
}, 1024)
|
|
1258
1258
|
]),
|
|
1259
|
-
dropdownRender: r(({ menuNode:
|
|
1260
|
-
|
|
1261
|
-
|
|
1259
|
+
dropdownRender: r(({ menuNode: G }) => [
|
|
1260
|
+
d("div", Il, [
|
|
1261
|
+
d("div", Ml, [
|
|
1262
1262
|
S(h, {
|
|
1263
1263
|
ref_key: "searchInputRef",
|
|
1264
1264
|
ref: o,
|
|
1265
1265
|
class: "hb-lib-selector-search-input",
|
|
1266
|
-
value:
|
|
1267
|
-
"onUpdate:value": y[1] || (y[1] = (K) =>
|
|
1266
|
+
value: u.value,
|
|
1267
|
+
"onUpdate:value": y[1] || (y[1] = (K) => u.value = K),
|
|
1268
1268
|
placeholder: "请输入关键词搜索",
|
|
1269
1269
|
"allow-clear": "",
|
|
1270
1270
|
onInput: y[2] || (y[2] = (K) => g(k)(K.target.value))
|
|
@@ -1275,27 +1275,27 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
}, 8, ["value"])
|
|
1277
1277
|
]),
|
|
1278
|
-
|
|
1278
|
+
d("div", Dl, [
|
|
1279
1279
|
(i(!0), T(q, null, se(a.value, (K) => (i(), T("div", {
|
|
1280
1280
|
key: K.value,
|
|
1281
|
-
class: Y(["hb-lib-selector-option", { selected:
|
|
1281
|
+
class: Y(["hb-lib-selector-option", { selected: b.value.includes(K.value) }]),
|
|
1282
1282
|
onClick: () => M(K)
|
|
1283
1283
|
}, [
|
|
1284
1284
|
e.multiple ? (i(), E(H, {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
checked:
|
|
1286
|
+
checked: b.value.includes(K.value),
|
|
1287
1287
|
onChange: () => M(K),
|
|
1288
1288
|
onClick: y[3] || (y[3] = He(() => {
|
|
1289
1289
|
}, ["stop"]))
|
|
1290
1290
|
}, null, 8, ["checked", "onChange"])) : (i(), E(x, {
|
|
1291
1291
|
key: 1,
|
|
1292
|
-
checked:
|
|
1292
|
+
checked: b.value.includes(K.value),
|
|
1293
1293
|
onChange: () => M(K),
|
|
1294
1294
|
onClick: y[4] || (y[4] = He(() => {
|
|
1295
1295
|
}, ["stop"]))
|
|
1296
1296
|
}, null, 8, ["checked", "onChange"])),
|
|
1297
|
-
|
|
1298
|
-
|
|
1297
|
+
d("div", Bl, [
|
|
1298
|
+
d("div", Ol, L(K.label), 1)
|
|
1299
1299
|
])
|
|
1300
1300
|
], 10, Al))), 128))
|
|
1301
1301
|
]),
|
|
@@ -1311,8 +1311,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1311
1311
|
]),
|
|
1312
1312
|
_: 1
|
|
1313
1313
|
}, 8, ["checked", "indeterminate"]),
|
|
1314
|
-
|
|
1315
|
-
S(
|
|
1314
|
+
d("div", Pl, [
|
|
1315
|
+
S(N, {
|
|
1316
1316
|
size: "small",
|
|
1317
1317
|
onClick: V
|
|
1318
1318
|
}, {
|
|
@@ -1321,7 +1321,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1321
1321
|
]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}),
|
|
1324
|
-
S(
|
|
1324
|
+
S(N, {
|
|
1325
1325
|
type: "primary",
|
|
1326
1326
|
size: "small",
|
|
1327
1327
|
onClick: v
|
|
@@ -1332,10 +1332,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1332
1332
|
_: 1
|
|
1333
1333
|
})
|
|
1334
1334
|
])
|
|
1335
|
-
])) : (i(), T("div",
|
|
1336
|
-
y[6] || (y[6] =
|
|
1337
|
-
|
|
1338
|
-
S(
|
|
1335
|
+
])) : (i(), T("div", Nl, [
|
|
1336
|
+
y[6] || (y[6] = d("div", null, null, -1)),
|
|
1337
|
+
d("div", Rl, [
|
|
1338
|
+
S(N, {
|
|
1339
1339
|
size: "small",
|
|
1340
1340
|
onClick: V
|
|
1341
1341
|
}, {
|
|
@@ -1367,29 +1367,29 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1367
1367
|
},
|
|
1368
1368
|
emits: ["handleConfirm", "handleCancel"],
|
|
1369
1369
|
setup(e, { expose: t, emit: l }) {
|
|
1370
|
-
const n = e,
|
|
1370
|
+
const n = e, c = l, f = O(!1), u = O(""), b = O(), o = O(), a = O([]), m = O([]), _ = O(), p = Te({
|
|
1371
1371
|
searchText: "",
|
|
1372
1372
|
searchedColumn: ""
|
|
1373
1373
|
}), $ = P(() => n.tableData.map((s) => (s.id = s.id || Math.random(), s))), I = P(() => n.tableColumn.map((s) => (s.customFilterDropdown && (s.onFilter = (h, H) => H[s.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), s.onFilterDropdownVisibleChange = (h) => {
|
|
1374
1374
|
h && setTimeout(() => {
|
|
1375
|
-
|
|
1375
|
+
b.value?.focus();
|
|
1376
1376
|
}, 100);
|
|
1377
1377
|
}), { ...s }))), V = () => {
|
|
1378
1378
|
let s = "";
|
|
1379
1379
|
m.value.forEach((h) => {
|
|
1380
1380
|
s = s + h[n.labelKey] + ",";
|
|
1381
|
-
}),
|
|
1381
|
+
}), u.value = s.substring(0, s.length - 1), f.value = !1, c("handleConfirm", m.value);
|
|
1382
1382
|
}, w = () => {
|
|
1383
|
-
|
|
1383
|
+
f.value = !1;
|
|
1384
1384
|
}, v = () => {
|
|
1385
|
-
|
|
1385
|
+
f.value = !0, Ce(() => {
|
|
1386
1386
|
const s = _.value?.$el?.querySelector(".ant-table-body");
|
|
1387
1387
|
s && (s.scrollTop = 0);
|
|
1388
1388
|
});
|
|
1389
1389
|
}, k = () => {
|
|
1390
1390
|
a.value = [], m.value = [];
|
|
1391
1391
|
}, M = () => {
|
|
1392
|
-
|
|
1392
|
+
u.value = "", k();
|
|
1393
1393
|
}, F = (s, h, H) => {
|
|
1394
1394
|
h(), p.searchText = s[0], p.searchedColumn = H;
|
|
1395
1395
|
}, C = (s, h) => {
|
|
@@ -1400,7 +1400,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1400
1400
|
return t({
|
|
1401
1401
|
resetInputVal: M
|
|
1402
1402
|
}), (s, h) => {
|
|
1403
|
-
const H =
|
|
1403
|
+
const H = R("a-input"), x = R("a-button"), N = R("a-table"), ee = R("a-modal");
|
|
1404
1404
|
return i(), T("div", {
|
|
1405
1405
|
class: "hb-lib-multipleSelectModal-box",
|
|
1406
1406
|
ref_key: "hbMultipSelectModalRef",
|
|
@@ -1409,8 +1409,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1409
1409
|
S(H, {
|
|
1410
1410
|
readonly: "",
|
|
1411
1411
|
onClick: v,
|
|
1412
|
-
value:
|
|
1413
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
1412
|
+
value: u.value,
|
|
1413
|
+
"onUpdate:value": h[0] || (h[0] = (G) => u.value = G),
|
|
1414
1414
|
placeholder: s.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1415
1415
|
}, {
|
|
1416
1416
|
addonAfter: r(() => [
|
|
@@ -1419,8 +1419,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1419
1419
|
_: 1
|
|
1420
1420
|
}, 8, ["value", "placeholder"]),
|
|
1421
1421
|
S(ee, {
|
|
1422
|
-
visible:
|
|
1423
|
-
"onUpdate:visible": h[1] || (h[1] = (
|
|
1422
|
+
visible: f.value,
|
|
1423
|
+
"onUpdate:visible": h[1] || (h[1] = (G) => f.value = G),
|
|
1424
1424
|
title: e.modelTitle,
|
|
1425
1425
|
width: e.modalWidth,
|
|
1426
1426
|
class: "hb-lib-multipleSelectModal-modal"
|
|
@@ -1449,31 +1449,31 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1449
1449
|
})
|
|
1450
1450
|
]),
|
|
1451
1451
|
default: r(() => [
|
|
1452
|
-
S(
|
|
1452
|
+
S(N, {
|
|
1453
1453
|
ref_key: "tableRef",
|
|
1454
1454
|
ref: _,
|
|
1455
1455
|
columns: I.value,
|
|
1456
1456
|
dataSource: $.value,
|
|
1457
1457
|
rowSelection: { selectedRowKeys: a.value, onChange: y },
|
|
1458
|
-
rowKey: (
|
|
1458
|
+
rowKey: (G) => G[e.tableKey],
|
|
1459
1459
|
scroll: { y: e.tableHeight }
|
|
1460
1460
|
}, {
|
|
1461
|
-
customFilterDropdown: r(({ setSelectedKeys:
|
|
1462
|
-
|
|
1461
|
+
customFilterDropdown: r(({ setSelectedKeys: G, selectedKeys: K, confirm: ce, clearFilters: de, column: ve }) => [
|
|
1462
|
+
d("div", Wl, [
|
|
1463
1463
|
S(H, {
|
|
1464
1464
|
ref_key: "searchInput",
|
|
1465
|
-
ref:
|
|
1465
|
+
ref: b,
|
|
1466
1466
|
placeholder: `请输入${ve.title}`,
|
|
1467
1467
|
value: K[0],
|
|
1468
1468
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1469
|
-
onChange: (B) =>
|
|
1470
|
-
onPressEnter: (B) => F(K,
|
|
1469
|
+
onChange: (B) => G(B.target.value ? [B.target.value] : []),
|
|
1470
|
+
onPressEnter: (B) => F(K, ce, ve.dataIndex)
|
|
1471
1471
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1472
|
-
|
|
1472
|
+
d("section", Yl, [
|
|
1473
1473
|
S(x, {
|
|
1474
1474
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1475
1475
|
type: "ghost",
|
|
1476
|
-
onClick: (B) => C(
|
|
1476
|
+
onClick: (B) => C(de, ce)
|
|
1477
1477
|
}, {
|
|
1478
1478
|
default: r(() => [
|
|
1479
1479
|
A(L(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
@@ -1483,7 +1483,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1483
1483
|
S(x, {
|
|
1484
1484
|
type: "primary",
|
|
1485
1485
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1486
|
-
onClick: (B) => F(K,
|
|
1486
|
+
onClick: (B) => F(K, ce, ve.dataIndex)
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: r(() => [
|
|
1489
1489
|
A(L(s.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1493,19 +1493,19 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1493
1493
|
])
|
|
1494
1494
|
])
|
|
1495
1495
|
]),
|
|
1496
|
-
customFilterIcon: r(({ filtered:
|
|
1496
|
+
customFilterIcon: r(({ filtered: G }) => [
|
|
1497
1497
|
S(g(De), {
|
|
1498
|
-
style:
|
|
1498
|
+
style: re({ color: G ? "#108ee9" : void 0 })
|
|
1499
1499
|
}, null, 8, ["style"])
|
|
1500
1500
|
]),
|
|
1501
|
-
bodyCell: r(({ text:
|
|
1501
|
+
bodyCell: r(({ text: G, column: K }) => [
|
|
1502
1502
|
p.searchText && p.searchedColumn === K.dataIndex ? (i(), T("span", ql, [
|
|
1503
|
-
(i(!0), T(q, null, se(
|
|
1504
|
-
|
|
1505
|
-
key:
|
|
1503
|
+
(i(!0), T(q, null, se(G.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (ce, de) => (i(), T(q, null, [
|
|
1504
|
+
ce.toLowerCase() === p.searchText.toLowerCase() ? (i(), T("mark", {
|
|
1505
|
+
key: de,
|
|
1506
1506
|
class: "highlight"
|
|
1507
|
-
}, L(
|
|
1508
|
-
A(L(
|
|
1507
|
+
}, L(ce), 1)) : (i(), T(q, { key: 1 }, [
|
|
1508
|
+
A(L(ce), 1)
|
|
1509
1509
|
], 64))
|
|
1510
1510
|
], 64))), 256))
|
|
1511
1511
|
])) : z("", !0)
|
|
@@ -1518,7 +1518,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1518
1518
|
], 512);
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
|
-
}),
|
|
1521
|
+
}), Gl = ae(Kl), Jl = { class: "hb-lib-table-act-box" }, Ql = ["onClick"], Zl = {
|
|
1522
1522
|
href: "javascript:;",
|
|
1523
1523
|
class: "hb-lib-table-main-action"
|
|
1524
1524
|
}, Xl = ["onClick"], eo = {
|
|
@@ -1534,7 +1534,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1534
1534
|
buttonDisplaysQuantity: {}
|
|
1535
1535
|
},
|
|
1536
1536
|
setup(e, { expose: t }) {
|
|
1537
|
-
const l = e, { t: n } = fe(),
|
|
1537
|
+
const l = e, { t: n } = fe(), c = O(!1), f = O(!1), u = O(null), b = P(() => l.actions.filter((w) => w.condition !== void 0 ? w.condition : !0)), o = P(() => b.value.slice(0, l.buttonDisplaysQuantity)), a = P(() => m(b.value.slice(l.buttonDisplaysQuantity)));
|
|
1538
1538
|
function m(w) {
|
|
1539
1539
|
if (l.filterPermission)
|
|
1540
1540
|
return l.filterPermission(w);
|
|
@@ -1546,35 +1546,35 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1546
1546
|
const _ = (w) => {
|
|
1547
1547
|
w.handler && w.handler(l.record);
|
|
1548
1548
|
}, p = (w) => {
|
|
1549
|
-
|
|
1549
|
+
u.value = w, c.value = !0;
|
|
1550
1550
|
}, $ = () => {
|
|
1551
|
-
if (
|
|
1552
|
-
|
|
1551
|
+
if (u.value) {
|
|
1552
|
+
f.value = !0;
|
|
1553
1553
|
try {
|
|
1554
|
-
_(
|
|
1554
|
+
_(u.value), f.value = !1, c.value = !1;
|
|
1555
1555
|
} catch {
|
|
1556
|
-
|
|
1556
|
+
f.value = !1;
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
1559
|
}, I = () => {
|
|
1560
|
-
|
|
1561
|
-
}, V = P(() =>
|
|
1562
|
-
title:
|
|
1563
|
-
content:
|
|
1560
|
+
c.value = !1, u.value = null;
|
|
1561
|
+
}, V = P(() => u.value ? {
|
|
1562
|
+
title: u.value.confirmTitle,
|
|
1563
|
+
content: u.value.confirmContent || u.value.confirmTitle
|
|
1564
1564
|
} : {
|
|
1565
1565
|
title: n("hbLibComp.hbTableAct.secendConfirm"),
|
|
1566
1566
|
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1567
1567
|
});
|
|
1568
1568
|
return t({
|
|
1569
|
-
ADropdown:
|
|
1570
|
-
AMenu:
|
|
1571
|
-
AMenuItem:
|
|
1572
|
-
APopconfirm:
|
|
1569
|
+
ADropdown: ft,
|
|
1570
|
+
AMenu: ut,
|
|
1571
|
+
AMenuItem: dt,
|
|
1572
|
+
APopconfirm: Re,
|
|
1573
1573
|
AModal: je,
|
|
1574
1574
|
DownOutlined: Ke
|
|
1575
1575
|
}), (w, v) => {
|
|
1576
|
-
const k =
|
|
1577
|
-
return i(), T("div",
|
|
1576
|
+
const k = R("a-divider"), M = St("has");
|
|
1577
|
+
return i(), T("div", Jl, [
|
|
1578
1578
|
(i(!0), T(q, null, se(o.value, (F, C) => (i(), T(q, { key: C }, [
|
|
1579
1579
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1580
1580
|
F.confirmType === "modal" ? (i(), T(q, { key: 0 }, [
|
|
@@ -1592,7 +1592,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1592
1592
|
type: "vertical"
|
|
1593
1593
|
})) : z("", !0)
|
|
1594
1594
|
], 64)) : (i(), T(q, { key: 1 }, [
|
|
1595
|
-
S(g(
|
|
1595
|
+
S(g(Re), {
|
|
1596
1596
|
title: F.confirmTitle,
|
|
1597
1597
|
onConfirm: (y) => _(F)
|
|
1598
1598
|
}, {
|
|
@@ -1634,11 +1634,11 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1634
1634
|
]) : z("", !0)
|
|
1635
1635
|
], 64))
|
|
1636
1636
|
], 64))), 128)),
|
|
1637
|
-
a.value && a.value.length > 0 ? (i(), E(g(
|
|
1637
|
+
a.value && a.value.length > 0 ? (i(), E(g(ft), { key: 0 }, {
|
|
1638
1638
|
overlay: r(() => [
|
|
1639
|
-
S(g(
|
|
1639
|
+
S(g(ut), null, {
|
|
1640
1640
|
default: r(() => [
|
|
1641
|
-
(i(!0), T(q, null, se(a.value, (F, C) => ue((i(), E(g(
|
|
1641
|
+
(i(!0), T(q, null, se(a.value, (F, C) => ue((i(), E(g(dt), { key: C }, {
|
|
1642
1642
|
default: r(() => [
|
|
1643
1643
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1644
1644
|
F.confirmType === "modal" ? ue((i(), T("a", {
|
|
@@ -1649,7 +1649,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1649
1649
|
A(L(F.label), 1)
|
|
1650
1650
|
], 8, to)), [
|
|
1651
1651
|
[M, F.permissionsTag || null]
|
|
1652
|
-
]) : ue((i(), E(g(
|
|
1652
|
+
]) : ue((i(), E(g(Re), {
|
|
1653
1653
|
key: 1,
|
|
1654
1654
|
title: F.confirmTitle,
|
|
1655
1655
|
onConfirm: (y) => _(F)
|
|
@@ -1684,7 +1684,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1684
1684
|
})
|
|
1685
1685
|
]),
|
|
1686
1686
|
default: r(() => [
|
|
1687
|
-
|
|
1687
|
+
d("a", eo, [
|
|
1688
1688
|
A(L(w.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1689
1689
|
S(g(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1690
1690
|
])
|
|
@@ -1692,25 +1692,25 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1692
1692
|
_: 1
|
|
1693
1693
|
})) : z("", !0),
|
|
1694
1694
|
S(g(je), {
|
|
1695
|
-
visible:
|
|
1695
|
+
visible: c.value,
|
|
1696
1696
|
title: V.value.title,
|
|
1697
|
-
"confirm-loading":
|
|
1697
|
+
"confirm-loading": f.value,
|
|
1698
1698
|
onOk: $,
|
|
1699
1699
|
onCancel: I
|
|
1700
1700
|
}, {
|
|
1701
1701
|
default: r(() => [
|
|
1702
|
-
|
|
1702
|
+
d("p", ao, L(V.value.content), 1)
|
|
1703
1703
|
]),
|
|
1704
1704
|
_: 1
|
|
1705
1705
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1706
1706
|
]);
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
}), io = /* @__PURE__ */ X(no, [["__scopeId", "data-v-2e9541c9"]]), so = ae(io),
|
|
1709
|
+
}), io = /* @__PURE__ */ X(no, [["__scopeId", "data-v-2e9541c9"]]), so = ae(io), bt = (e) => ({ tableWidth: P(() => {
|
|
1710
1710
|
const l = Array.isArray(e) ? e : e.value;
|
|
1711
|
-
return !l || l.length === 0 ? 0 : l.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n,
|
|
1711
|
+
return !l || l.length === 0 ? 0 : l.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, c) => n + c, 0);
|
|
1712
1712
|
}) });
|
|
1713
|
-
var ro = typeof global == "object" && global && global.Object === Object && global, co = typeof self == "object" && self && self.Object === Object && self,
|
|
1713
|
+
var ro = typeof global == "object" && global && global.Object === Object && global, co = typeof self == "object" && self && self.Object === Object && self, $t = ro || co || Function("return this")(), Ae = $t.Symbol, It = Object.prototype, uo = It.hasOwnProperty, fo = It.toString, ke = Ae ? Ae.toStringTag : void 0;
|
|
1714
1714
|
function bo(e) {
|
|
1715
1715
|
var t = uo.call(e, ke), l = e[ke];
|
|
1716
1716
|
try {
|
|
@@ -1718,16 +1718,16 @@ function bo(e) {
|
|
|
1718
1718
|
var n = !0;
|
|
1719
1719
|
} catch {
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1722
|
-
return n && (t ? e[ke] = l : delete e[ke]),
|
|
1721
|
+
var c = fo.call(e);
|
|
1722
|
+
return n && (t ? e[ke] = l : delete e[ke]), c;
|
|
1723
1723
|
}
|
|
1724
1724
|
var po = Object.prototype, ho = po.toString;
|
|
1725
1725
|
function mo(e) {
|
|
1726
1726
|
return ho.call(e);
|
|
1727
1727
|
}
|
|
1728
|
-
var vo = "[object Null]", go = "[object Undefined]",
|
|
1728
|
+
var vo = "[object Null]", go = "[object Undefined]", pt = Ae ? Ae.toStringTag : void 0;
|
|
1729
1729
|
function yo(e) {
|
|
1730
|
-
return e == null ? e === void 0 ? go : vo :
|
|
1730
|
+
return e == null ? e === void 0 ? go : vo : pt && pt in Object(e) ? bo(e) : mo(e);
|
|
1731
1731
|
}
|
|
1732
1732
|
function _o(e) {
|
|
1733
1733
|
return e != null && typeof e == "object";
|
|
@@ -1746,73 +1746,73 @@ var To = /^\s+/;
|
|
|
1746
1746
|
function wo(e) {
|
|
1747
1747
|
return e && e.slice(0, So(e) + 1).replace(To, "");
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Ge(e) {
|
|
1750
1750
|
var t = typeof e;
|
|
1751
1751
|
return e != null && (t == "object" || t == "function");
|
|
1752
1752
|
}
|
|
1753
|
-
var
|
|
1754
|
-
function
|
|
1753
|
+
var ht = NaN, xo = /^[-+]0x[0-9a-f]+$/i, Fo = /^0b[01]+$/i, Ho = /^0o[0-7]+$/i, $o = parseInt;
|
|
1754
|
+
function mt(e) {
|
|
1755
1755
|
if (typeof e == "number")
|
|
1756
1756
|
return e;
|
|
1757
1757
|
if (Co(e))
|
|
1758
|
-
return
|
|
1759
|
-
if (
|
|
1758
|
+
return ht;
|
|
1759
|
+
if (Ge(e)) {
|
|
1760
1760
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1761
|
-
e =
|
|
1761
|
+
e = Ge(t) ? t + "" : t;
|
|
1762
1762
|
}
|
|
1763
1763
|
if (typeof e != "string")
|
|
1764
1764
|
return e === 0 ? e : +e;
|
|
1765
1765
|
e = wo(e);
|
|
1766
1766
|
var l = Fo.test(e);
|
|
1767
|
-
return l || Ho.test(e) ? $o(e.slice(2), l ? 2 : 8) : xo.test(e) ?
|
|
1767
|
+
return l || Ho.test(e) ? $o(e.slice(2), l ? 2 : 8) : xo.test(e) ? ht : +e;
|
|
1768
1768
|
}
|
|
1769
1769
|
var Ue = function() {
|
|
1770
|
-
return
|
|
1770
|
+
return $t.Date.now();
|
|
1771
1771
|
}, Io = "Expected a function", Mo = Math.max, Do = Math.min;
|
|
1772
1772
|
function Ao(e, t, l) {
|
|
1773
|
-
var n,
|
|
1773
|
+
var n, c, f, u, b, o, a = 0, m = !1, _ = !1, p = !0;
|
|
1774
1774
|
if (typeof e != "function")
|
|
1775
1775
|
throw new TypeError(Io);
|
|
1776
|
-
t =
|
|
1776
|
+
t = mt(t) || 0, Ge(l) && (m = !!l.leading, _ = "maxWait" in l, f = _ ? Mo(mt(l.maxWait) || 0, t) : f, p = "trailing" in l ? !!l.trailing : p);
|
|
1777
1777
|
function $(y) {
|
|
1778
|
-
var s = n, h =
|
|
1779
|
-
return n =
|
|
1778
|
+
var s = n, h = c;
|
|
1779
|
+
return n = c = void 0, a = y, u = e.apply(h, s), u;
|
|
1780
1780
|
}
|
|
1781
1781
|
function I(y) {
|
|
1782
|
-
return a = y,
|
|
1782
|
+
return a = y, b = setTimeout(v, t), m ? $(y) : u;
|
|
1783
1783
|
}
|
|
1784
1784
|
function V(y) {
|
|
1785
1785
|
var s = y - o, h = y - a, H = t - s;
|
|
1786
|
-
return _ ? Do(H,
|
|
1786
|
+
return _ ? Do(H, f - h) : H;
|
|
1787
1787
|
}
|
|
1788
1788
|
function w(y) {
|
|
1789
1789
|
var s = y - o, h = y - a;
|
|
1790
|
-
return o === void 0 || s >= t || s < 0 || _ && h >=
|
|
1790
|
+
return o === void 0 || s >= t || s < 0 || _ && h >= f;
|
|
1791
1791
|
}
|
|
1792
1792
|
function v() {
|
|
1793
1793
|
var y = Ue();
|
|
1794
1794
|
if (w(y))
|
|
1795
1795
|
return k(y);
|
|
1796
|
-
|
|
1796
|
+
b = setTimeout(v, V(y));
|
|
1797
1797
|
}
|
|
1798
1798
|
function k(y) {
|
|
1799
|
-
return
|
|
1799
|
+
return b = void 0, p && n ? $(y) : (n = c = void 0, u);
|
|
1800
1800
|
}
|
|
1801
1801
|
function M() {
|
|
1802
|
-
|
|
1802
|
+
b !== void 0 && clearTimeout(b), a = 0, n = o = c = b = void 0;
|
|
1803
1803
|
}
|
|
1804
1804
|
function F() {
|
|
1805
|
-
return
|
|
1805
|
+
return b === void 0 ? u : k(Ue());
|
|
1806
1806
|
}
|
|
1807
1807
|
function C() {
|
|
1808
1808
|
var y = Ue(), s = w(y);
|
|
1809
|
-
if (n = arguments,
|
|
1810
|
-
if (
|
|
1809
|
+
if (n = arguments, c = this, o = y, s) {
|
|
1810
|
+
if (b === void 0)
|
|
1811
1811
|
return I(o);
|
|
1812
1812
|
if (_)
|
|
1813
|
-
return clearTimeout(
|
|
1813
|
+
return clearTimeout(b), b = setTimeout(v, t), $(o);
|
|
1814
1814
|
}
|
|
1815
|
-
return
|
|
1815
|
+
return b === void 0 && (b = setTimeout(v, t)), u;
|
|
1816
1816
|
}
|
|
1817
1817
|
return C.cancel = M, C.flush = F, C;
|
|
1818
1818
|
}
|
|
@@ -1831,15 +1831,15 @@ const Bo = {
|
|
|
1831
1831
|
},
|
|
1832
1832
|
emits: ["change", "resizeCol"],
|
|
1833
1833
|
setup(e, { emit: t }) {
|
|
1834
|
-
const l =
|
|
1834
|
+
const l = pe("globalCompConfig", {}), n = t, { t: c } = fe(), f = e, u = O([]), b = pe("HB_LIST_PAGE_CONTAINER"), { tableWidth: o } = bt(u), a = O(o.value), m = P(() => f.isUnFixTbHeight || l.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1835
1835
|
le(
|
|
1836
|
-
() =>
|
|
1836
|
+
() => f.columns,
|
|
1837
1837
|
(v) => {
|
|
1838
1838
|
const k = v.filter((F) => F != null && F.checked);
|
|
1839
|
-
|
|
1839
|
+
u.value = k.map((F) => {
|
|
1840
1840
|
let C = { ...F, title: F.title || F.label, align: F.align || l.listTable?.align || "center" };
|
|
1841
1841
|
C.ellipsis && !C.needTooltip && (C.needTooltip = !0);
|
|
1842
|
-
let y =
|
|
1842
|
+
let y = f.defaultWidth || l.listTable?.defaultColWidth || 150;
|
|
1843
1843
|
if (!C.width)
|
|
1844
1844
|
C.width = y;
|
|
1845
1845
|
else if (typeof C.width == "string") {
|
|
@@ -1848,7 +1848,7 @@ const Bo = {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
return C.resizable === void 0 && (C.resizable = !0), C;
|
|
1850
1850
|
});
|
|
1851
|
-
const { tableWidth: M } =
|
|
1851
|
+
const { tableWidth: M } = bt(u);
|
|
1852
1852
|
a.value = M.value;
|
|
1853
1853
|
},
|
|
1854
1854
|
{
|
|
@@ -1857,7 +1857,7 @@ const Bo = {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
);
|
|
1859
1859
|
const _ = Ao(() => {
|
|
1860
|
-
n("resizeCol",
|
|
1860
|
+
n("resizeCol", u);
|
|
1861
1861
|
}, l.listTable?.colSaveTimeOut || 800), p = (v, k) => {
|
|
1862
1862
|
if (k) {
|
|
1863
1863
|
const M = typeof v == "string" ? parseInt(v, 10) : v;
|
|
@@ -1869,10 +1869,10 @@ const Bo = {
|
|
|
1869
1869
|
v?.current && n("change", v, k, M);
|
|
1870
1870
|
}, I = (v, k = "YYYY-MM-DD HH:mm:ss") => v ? Oe(v).format(k) : "", V = (v, k) => v && k[v] || "", w = (v, k = l.listTable?.ellipsisNumber || 20) => v ? v.length > k ? `${v.substring(0, k)}...` : v : "";
|
|
1871
1871
|
return (v, k) => {
|
|
1872
|
-
const M =
|
|
1872
|
+
const M = R("a-empty"), F = R("a-tooltip"), C = R("HbLibCopy"), y = R("a-tag"), s = R("a-table");
|
|
1873
1873
|
return i(), T("div", {
|
|
1874
|
-
class: Y(["hb-lib-list-table", { "nowrap-table":
|
|
1875
|
-
style:
|
|
1874
|
+
class: Y(["hb-lib-list-table", { "nowrap-table": f.rowHeight }]),
|
|
1875
|
+
style: re({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1876
1876
|
}, [
|
|
1877
1877
|
v.$slots.tableActLeft ? (i(), T("section", Bo, [
|
|
1878
1878
|
j(v.$slots, "tableActLeft", {}, void 0, !0),
|
|
@@ -1880,18 +1880,18 @@ const Bo = {
|
|
|
1880
1880
|
])) : z("", !0),
|
|
1881
1881
|
S(s, oe(v.$attrs, {
|
|
1882
1882
|
bordered: "",
|
|
1883
|
-
columns:
|
|
1883
|
+
columns: u.value,
|
|
1884
1884
|
tableLayout: "fixed",
|
|
1885
1885
|
onResizeColumn: p,
|
|
1886
1886
|
onChange: $,
|
|
1887
1887
|
scroll: m.value ? {
|
|
1888
1888
|
x: a.value
|
|
1889
|
-
} : { x: a.value, y: g(
|
|
1889
|
+
} : { x: a.value, y: g(b).tableHeight }
|
|
1890
1890
|
}), Be({
|
|
1891
1891
|
emptyText: r(() => [
|
|
1892
|
-
|
|
1892
|
+
d("div", Oo, [
|
|
1893
1893
|
S(M, {
|
|
1894
|
-
description: g(
|
|
1894
|
+
description: g(c)("hbLibComp.hbListTable.noData")
|
|
1895
1895
|
}, null, 8, ["description"])
|
|
1896
1896
|
])
|
|
1897
1897
|
]),
|
|
@@ -1911,12 +1911,12 @@ const Bo = {
|
|
|
1911
1911
|
} : void 0,
|
|
1912
1912
|
v.$slots.bodyCell ? {
|
|
1913
1913
|
name: "bodyCell",
|
|
1914
|
-
fn: r(({ column: h, record: H, index: x, text:
|
|
1914
|
+
fn: r(({ column: h, record: H, index: x, text: N }) => [
|
|
1915
1915
|
j(v.$slots, "bodyCell", {
|
|
1916
1916
|
column: h,
|
|
1917
1917
|
record: H,
|
|
1918
1918
|
index: x,
|
|
1919
|
-
text:
|
|
1919
|
+
text: N
|
|
1920
1920
|
}, void 0, !0),
|
|
1921
1921
|
h && h.needTooltip && !h.needCopy ? (i(), E(F, {
|
|
1922
1922
|
key: 0,
|
|
@@ -2026,7 +2026,7 @@ const Bo = {
|
|
|
2026
2026
|
], 6);
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
}),
|
|
2029
|
+
}), No = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-4a8b9aaa"]]), Ro = ae(No), Uo = { class: "hb-lib-table-setting-box" }, Vo = {
|
|
2030
2030
|
key: 0,
|
|
2031
2031
|
class: "hb-lib-table-drag-item"
|
|
2032
2032
|
}, jo = {
|
|
@@ -2035,7 +2035,7 @@ const Bo = {
|
|
|
2035
2035
|
}, Wo = ["onClick"], Yo = ["onClick"], qo = { class: "hb-lib-table-set-btn-group" }, Ko = {
|
|
2036
2036
|
class: "select-all-container",
|
|
2037
2037
|
style: { "margin-right": "10px" }
|
|
2038
|
-
},
|
|
2038
|
+
}, Go = /* @__PURE__ */ Q({
|
|
2039
2039
|
name: "HbLibTableColumnSet",
|
|
2040
2040
|
__name: "HbTableColumnSet",
|
|
2041
2041
|
props: {
|
|
@@ -2068,17 +2068,17 @@ const Bo = {
|
|
|
2068
2068
|
},
|
|
2069
2069
|
emits: ["on-get-columns"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
const l = t, { t: n } = fe(),
|
|
2071
|
+
const l = t, { t: n } = fe(), c = e, f = O([]), u = P(() => o.value.filter((y) => y.checked));
|
|
2072
2072
|
O([]);
|
|
2073
|
-
const
|
|
2073
|
+
const b = O(!1), o = O([]), a = O(null), m = P(() => u.value.length > 0 && u.value.length === f.value.length), _ = P(() => u.value.length > 0 && u.value.length < f.value.length), p = (y) => {
|
|
2074
2074
|
a.value = y.oldIndex;
|
|
2075
2075
|
}, $ = (y) => {
|
|
2076
2076
|
const s = y.newIndex;
|
|
2077
|
-
if (
|
|
2078
|
-
const H =
|
|
2079
|
-
if ((H > 0 && s < H || x <
|
|
2080
|
-
const
|
|
2081
|
-
o.value.splice(a.value, 0,
|
|
2077
|
+
if (f.value.some((H) => H.fixed === "left" || H.fixed === "right" || H.fixed === !0)) {
|
|
2078
|
+
const H = f.value.filter((N) => N.fixed === "left").length, x = f.value.length - f.value.filter((N) => N.fixed === "right").length;
|
|
2079
|
+
if ((H > 0 && s < H || x < f.value.length && s >= x) && (Se.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2080
|
+
const N = o.value.splice(s, 1)[0];
|
|
2081
|
+
o.value.splice(a.value, 0, N);
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
a.value = null;
|
|
@@ -2087,29 +2087,29 @@ const Bo = {
|
|
|
2087
2087
|
h.dataIndex !== "action" && h.dataIndex !== "actions" && (h.checked = !1);
|
|
2088
2088
|
});
|
|
2089
2089
|
}, V = () => {
|
|
2090
|
-
|
|
2090
|
+
f.value = c.localColumns.map((s) => ({
|
|
2091
2091
|
...s,
|
|
2092
2092
|
label: s.title && s.title.tag ? M(s.title) : s.title || s.title2,
|
|
2093
2093
|
value: s.dataIndex,
|
|
2094
2094
|
checked: s.checked || s.checked === void 0
|
|
2095
|
-
})), o.value = [...
|
|
2095
|
+
})), o.value = [...f.value];
|
|
2096
2096
|
let y = [];
|
|
2097
|
-
|
|
2097
|
+
c.tableColumns.forEach(function(s) {
|
|
2098
2098
|
y.push(s.dataIndex);
|
|
2099
2099
|
});
|
|
2100
2100
|
}, w = (y, s) => {
|
|
2101
2101
|
s ? y.checked = !0 : y.checked = !1;
|
|
2102
2102
|
}, v = () => {
|
|
2103
|
-
|
|
2103
|
+
f.value = [...o.value], l("on-get-columns", f.value), b.value = !1;
|
|
2104
2104
|
}, k = () => {
|
|
2105
|
-
|
|
2105
|
+
f.value = c.tableColumns.map((s) => ({
|
|
2106
2106
|
...s,
|
|
2107
2107
|
label: s.title && s.title.tag ? M(s.title) : s.title || s.title2,
|
|
2108
2108
|
value: s.dataIndex,
|
|
2109
2109
|
checked: s.checked || s.checked === void 0
|
|
2110
|
-
})), o.value = [...
|
|
2110
|
+
})), o.value = [...f.value];
|
|
2111
2111
|
let y = [];
|
|
2112
|
-
|
|
2112
|
+
c.tableColumns.forEach(function(s) {
|
|
2113
2113
|
y.push(s.dataIndex);
|
|
2114
2114
|
});
|
|
2115
2115
|
}, M = (y) => y.children[0].text, F = (y) => {
|
|
@@ -2132,12 +2132,12 @@ const Bo = {
|
|
|
2132
2132
|
o.value[ee].fixed === "left" && (h = ee);
|
|
2133
2133
|
const H = [...o.value], [x] = H.splice(s, 1);
|
|
2134
2134
|
x.fixed = "left";
|
|
2135
|
-
const
|
|
2136
|
-
H.splice(
|
|
2135
|
+
const N = h === -1 ? 0 : h + 1;
|
|
2136
|
+
H.splice(N, 0, x), o.value = H;
|
|
2137
2137
|
}
|
|
2138
2138
|
};
|
|
2139
2139
|
return le(
|
|
2140
|
-
() =>
|
|
2140
|
+
() => c.tableColumns,
|
|
2141
2141
|
() => {
|
|
2142
2142
|
k();
|
|
2143
2143
|
},
|
|
@@ -2146,15 +2146,15 @@ const Bo = {
|
|
|
2146
2146
|
deep: !0
|
|
2147
2147
|
}
|
|
2148
2148
|
), (y, s) => {
|
|
2149
|
-
const h =
|
|
2149
|
+
const h = R("a-tooltip"), H = R("a-button");
|
|
2150
2150
|
return i(), T("div", Uo, [
|
|
2151
|
-
S(g(
|
|
2151
|
+
S(g(Rt), {
|
|
2152
2152
|
title: g(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2153
2153
|
trigger: "click",
|
|
2154
2154
|
placement: "leftTop",
|
|
2155
2155
|
overlayClassName: "column_setting_popover",
|
|
2156
|
-
visible:
|
|
2157
|
-
"onUpdate:visible": s[1] || (s[1] = (x) =>
|
|
2156
|
+
visible: b.value,
|
|
2157
|
+
"onUpdate:visible": s[1] || (s[1] = (x) => b.value = x)
|
|
2158
2158
|
}, {
|
|
2159
2159
|
content: r(() => [
|
|
2160
2160
|
S(g($e), {
|
|
@@ -2172,7 +2172,7 @@ const Bo = {
|
|
|
2172
2172
|
x.fixed !== "right" ? (i(), T("div", Vo, [
|
|
2173
2173
|
S(g(Me), {
|
|
2174
2174
|
checked: x.checked,
|
|
2175
|
-
onChange: (
|
|
2175
|
+
onChange: (N) => w(x, N.target.checked)
|
|
2176
2176
|
}, {
|
|
2177
2177
|
default: r(() => [
|
|
2178
2178
|
A(L(x.label), 1)
|
|
@@ -2180,7 +2180,7 @@ const Bo = {
|
|
|
2180
2180
|
_: 2
|
|
2181
2181
|
}, 1032, ["checked", "onChange"]),
|
|
2182
2182
|
x.checked ? (i(), T("section", jo, [
|
|
2183
|
-
|
|
2183
|
+
d("span", {
|
|
2184
2184
|
class: Y(x.fixed ? "drag-hide" : "drag-handle")
|
|
2185
2185
|
}, "⋮⋮", 2),
|
|
2186
2186
|
x.fixed ? (i(), E(h, { key: 0 }, {
|
|
@@ -2188,11 +2188,11 @@ const Bo = {
|
|
|
2188
2188
|
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2189
2189
|
]),
|
|
2190
2190
|
default: r(() => [
|
|
2191
|
-
|
|
2191
|
+
d("span", {
|
|
2192
2192
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2193
|
-
onClick: (
|
|
2193
|
+
onClick: (N) => F(x)
|
|
2194
2194
|
}, [...s[2] || (s[2] = [
|
|
2195
|
-
|
|
2195
|
+
d("svg", {
|
|
2196
2196
|
t: "1759048615600",
|
|
2197
2197
|
class: "icon",
|
|
2198
2198
|
viewBox: "0 0 1024 1024",
|
|
@@ -2202,7 +2202,7 @@ const Bo = {
|
|
|
2202
2202
|
width: "200",
|
|
2203
2203
|
height: "200"
|
|
2204
2204
|
}, [
|
|
2205
|
-
|
|
2205
|
+
d("path", {
|
|
2206
2206
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
2207
2207
|
"p-id": "7284",
|
|
2208
2208
|
fill: "#ff5000"
|
|
@@ -2217,11 +2217,11 @@ const Bo = {
|
|
|
2217
2217
|
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2218
2218
|
]),
|
|
2219
2219
|
default: r(() => [
|
|
2220
|
-
|
|
2220
|
+
d("span", {
|
|
2221
2221
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2222
|
-
onClick: (
|
|
2222
|
+
onClick: (N) => C(x)
|
|
2223
2223
|
}, [...s[3] || (s[3] = [
|
|
2224
|
-
|
|
2224
|
+
d("svg", {
|
|
2225
2225
|
t: "1759048735643",
|
|
2226
2226
|
class: "icon",
|
|
2227
2227
|
viewBox: "0 0 1024 1024",
|
|
@@ -2231,7 +2231,7 @@ const Bo = {
|
|
|
2231
2231
|
width: "200",
|
|
2232
2232
|
height: "200"
|
|
2233
2233
|
}, [
|
|
2234
|
-
|
|
2234
|
+
d("path", {
|
|
2235
2235
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
2236
2236
|
"p-id": "7482",
|
|
2237
2237
|
fill: "#ff5000"
|
|
@@ -2246,8 +2246,8 @@ const Bo = {
|
|
|
2246
2246
|
]),
|
|
2247
2247
|
_: 1
|
|
2248
2248
|
}, 8, ["modelValue"]),
|
|
2249
|
-
|
|
2250
|
-
|
|
2249
|
+
d("div", qo, [
|
|
2250
|
+
d("div", Ko, [
|
|
2251
2251
|
S(g(Me), {
|
|
2252
2252
|
checked: m.value,
|
|
2253
2253
|
indeterminate: _.value,
|
|
@@ -2259,7 +2259,7 @@ const Bo = {
|
|
|
2259
2259
|
_: 1
|
|
2260
2260
|
}, 8, ["checked", "indeterminate"])
|
|
2261
2261
|
]),
|
|
2262
|
-
|
|
2262
|
+
c.localColumns.length ? (i(), E(H, {
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
style: { "margin-right": "6px" },
|
|
2265
2265
|
onClick: V
|
|
@@ -2286,8 +2286,8 @@ const Bo = {
|
|
|
2286
2286
|
placement: "leftTop"
|
|
2287
2287
|
}, {
|
|
2288
2288
|
default: r(() => [...s[4] || (s[4] = [
|
|
2289
|
-
|
|
2290
|
-
|
|
2289
|
+
d("span", { class: "hb-lib-table-col-set" }, [
|
|
2290
|
+
d("svg", {
|
|
2291
2291
|
t: "1759041858618",
|
|
2292
2292
|
class: "icon",
|
|
2293
2293
|
viewBox: "0 0 1024 1024",
|
|
@@ -2297,12 +2297,12 @@ const Bo = {
|
|
|
2297
2297
|
width: "200",
|
|
2298
2298
|
height: "200"
|
|
2299
2299
|
}, [
|
|
2300
|
-
|
|
2300
|
+
d("path", {
|
|
2301
2301
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
2302
2302
|
"p-id": "5220",
|
|
2303
2303
|
fill: "#ff5000"
|
|
2304
2304
|
}),
|
|
2305
|
-
|
|
2305
|
+
d("path", {
|
|
2306
2306
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
2307
2307
|
"p-id": "5221",
|
|
2308
2308
|
fill: "#ff5000"
|
|
@@ -2318,7 +2318,7 @@ const Bo = {
|
|
|
2318
2318
|
]);
|
|
2319
2319
|
};
|
|
2320
2320
|
}
|
|
2321
|
-
}),
|
|
2321
|
+
}), Jo = /* @__PURE__ */ X(Go, [["__scopeId", "data-v-07a63550"]]), Qo = ae(Jo), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2322
2322
|
__proto__: null,
|
|
2323
2323
|
HbLibFormItemFilterModal: sl,
|
|
2324
2324
|
HbLibListBtnsAct: Tl,
|
|
@@ -2326,8 +2326,8 @@ const Bo = {
|
|
|
2326
2326
|
HbLibListMultiSelect: jl,
|
|
2327
2327
|
HbLibListPageAct: yl,
|
|
2328
2328
|
HbLibListPageContainer: Fl,
|
|
2329
|
-
HbLibListTable:
|
|
2330
|
-
HbLibMutilpleSelectModal:
|
|
2329
|
+
HbLibListTable: Ro,
|
|
2330
|
+
HbLibMutilpleSelectModal: Gl,
|
|
2331
2331
|
HbLibTableAct: so,
|
|
2332
2332
|
HbLibTableColumnSet: Qo
|
|
2333
2333
|
}, Symbol.toStringTag, { value: "Module" })), Xo = /* @__PURE__ */ Q({
|
|
@@ -2348,33 +2348,33 @@ const Bo = {
|
|
|
2348
2348
|
}),
|
|
2349
2349
|
emits: ["update:value"],
|
|
2350
2350
|
setup(e, { expose: t }) {
|
|
2351
|
-
const l = e, n = Ot(),
|
|
2351
|
+
const l = e, n = Ot(), c = P(() => {
|
|
2352
2352
|
const I = n, V = I.dropdownClassName;
|
|
2353
2353
|
return {
|
|
2354
2354
|
...I,
|
|
2355
2355
|
dropdownClassName: V ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2356
2356
|
};
|
|
2357
|
-
}),
|
|
2357
|
+
}), f = O(), u = kt(e, "value"), b = P(() => l.options ?? []), o = P(() => ({
|
|
2358
2358
|
maxWidth: typeof l.tooltipMaxWidth == "number" ? `${l.tooltipMaxWidth}px` : l.tooltipMaxWidth
|
|
2359
2359
|
})), a = (I) => I.tooltip ?? I.label, m = (I) => I.key ?? I.label, _ = (I) => !!(l.enableTooltip && a(I));
|
|
2360
2360
|
return t({
|
|
2361
2361
|
focus: () => {
|
|
2362
|
-
|
|
2362
|
+
f.value?.focus?.();
|
|
2363
2363
|
},
|
|
2364
2364
|
blur: () => {
|
|
2365
|
-
|
|
2365
|
+
f.value?.blur?.();
|
|
2366
2366
|
},
|
|
2367
|
-
selectRef:
|
|
2367
|
+
selectRef: f
|
|
2368
2368
|
}), (I, V) => (i(), E(g(Ye), oe({
|
|
2369
2369
|
ref_key: "selectRef",
|
|
2370
|
-
ref:
|
|
2370
|
+
ref: f,
|
|
2371
2371
|
class: "hb_lib_form_tooltip_select"
|
|
2372
|
-
},
|
|
2373
|
-
value:
|
|
2374
|
-
"onUpdate:value": V[0] || (V[0] = (w) =>
|
|
2372
|
+
}, c.value, {
|
|
2373
|
+
value: u.value,
|
|
2374
|
+
"onUpdate:value": V[0] || (V[0] = (w) => u.value = w)
|
|
2375
2375
|
}), {
|
|
2376
2376
|
default: r(() => [
|
|
2377
|
-
I.$slots.default ? j(I.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(q, { key: 1 }, se(
|
|
2377
|
+
I.$slots.default ? j(I.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(q, { key: 1 }, se(b.value, (w) => (i(), E(g(qe), oe({
|
|
2378
2378
|
key: m(w),
|
|
2379
2379
|
value: w.value,
|
|
2380
2380
|
disabled: w.disabled
|
|
@@ -2387,7 +2387,7 @@ const Bo = {
|
|
|
2387
2387
|
overlayStyle: o.value
|
|
2388
2388
|
}, {
|
|
2389
2389
|
default: r(() => [
|
|
2390
|
-
|
|
2390
|
+
d("span", {
|
|
2391
2391
|
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": l.enableEllipsis }])
|
|
2392
2392
|
}, L(w.label), 3)
|
|
2393
2393
|
]),
|
|
@@ -2425,78 +2425,78 @@ const Bo = {
|
|
|
2425
2425
|
beforeSubmit: {}
|
|
2426
2426
|
},
|
|
2427
2427
|
setup(e, { expose: t }) {
|
|
2428
|
-
const { t: l } = fe(), n = O(),
|
|
2428
|
+
const { t: l } = fe(), n = O(), c = e, f = O(!1), u = Te({
|
|
2429
2429
|
fileList: [],
|
|
2430
2430
|
visible: !1
|
|
2431
|
-
}),
|
|
2431
|
+
}), b = (p) => {
|
|
2432
2432
|
if (p == null)
|
|
2433
2433
|
return;
|
|
2434
|
-
const $ =
|
|
2434
|
+
const $ = u.fileList.indexOf(p);
|
|
2435
2435
|
if ($ !== -1) {
|
|
2436
|
-
const I =
|
|
2437
|
-
I.splice($, 1),
|
|
2436
|
+
const I = u.fileList.slice();
|
|
2437
|
+
I.splice($, 1), u.fileList = I;
|
|
2438
2438
|
}
|
|
2439
2439
|
}, o = () => {
|
|
2440
|
-
|
|
2441
|
-
}, a = (p) => (
|
|
2440
|
+
u.visible = !1, u.fileList = [], f.value = !1;
|
|
2441
|
+
}, a = (p) => (u.fileList = [p], c.beforeUpload ? c.beforeUpload(p) : !1), m = () => {
|
|
2442
2442
|
n.value.validateFields().then(() => {
|
|
2443
|
-
|
|
2443
|
+
c.beforeSubmit && (f.value = !0, c.beforeSubmit(u.fileList).then((p) => {
|
|
2444
2444
|
}).finally(() => {
|
|
2445
|
-
|
|
2445
|
+
f.value = !1;
|
|
2446
2446
|
}));
|
|
2447
2447
|
});
|
|
2448
2448
|
}, _ = () => {
|
|
2449
|
-
|
|
2449
|
+
u.visible = !0;
|
|
2450
2450
|
};
|
|
2451
2451
|
return t({
|
|
2452
2452
|
handleCancel: o,
|
|
2453
2453
|
openModal: _,
|
|
2454
2454
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2455
|
-
confirmLoading:
|
|
2455
|
+
confirmLoading: f
|
|
2456
2456
|
}), (p, $) => {
|
|
2457
|
-
const I =
|
|
2457
|
+
const I = R("a-upload-dragger"), V = R("a-form-item"), w = R("a-form"), v = R("a-modal"), k = R("a-button");
|
|
2458
2458
|
return i(), T(q, null, [
|
|
2459
2459
|
S(v, oe({
|
|
2460
|
-
title:
|
|
2461
|
-
visible:
|
|
2462
|
-
"onUpdate:visible": $[0] || ($[0] = (M) =>
|
|
2463
|
-
"confirm-loading":
|
|
2460
|
+
title: c.title,
|
|
2461
|
+
visible: u.visible,
|
|
2462
|
+
"onUpdate:visible": $[0] || ($[0] = (M) => u.visible = M),
|
|
2463
|
+
"confirm-loading": f.value
|
|
2464
2464
|
}, p.$attrs, {
|
|
2465
2465
|
onCancel: o,
|
|
2466
2466
|
onOk: m,
|
|
2467
|
-
width:
|
|
2467
|
+
width: c.modalWidth
|
|
2468
2468
|
}), {
|
|
2469
2469
|
default: r(() => [
|
|
2470
2470
|
S(w, {
|
|
2471
2471
|
ref_key: "modalFormRef",
|
|
2472
2472
|
ref: n,
|
|
2473
|
-
model:
|
|
2473
|
+
model: u
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: r(() => [
|
|
2476
2476
|
S(V, {
|
|
2477
2477
|
name: "fileList",
|
|
2478
2478
|
label: g(l)("hbLibComp.HbImportFile.fileLabel"),
|
|
2479
|
-
rules: [{ required:
|
|
2479
|
+
rules: [{ required: c.isRequired, message: g(l)("hbLibComp.HbImportFile.clickUp") }]
|
|
2480
2480
|
}, {
|
|
2481
2481
|
default: r(() => [
|
|
2482
2482
|
S(I, {
|
|
2483
|
-
maxCount:
|
|
2484
|
-
multiple:
|
|
2485
|
-
accept:
|
|
2483
|
+
maxCount: c.maxCount,
|
|
2484
|
+
multiple: c.multiple,
|
|
2485
|
+
accept: c.acceptFile,
|
|
2486
2486
|
name: "file",
|
|
2487
|
-
fileList:
|
|
2488
|
-
onRemove:
|
|
2487
|
+
fileList: u.fileList,
|
|
2488
|
+
onRemove: b,
|
|
2489
2489
|
beforeUpload: a
|
|
2490
2490
|
}, {
|
|
2491
2491
|
default: r(() => [
|
|
2492
|
-
|
|
2493
|
-
S(g(
|
|
2492
|
+
d("p", oa, [
|
|
2493
|
+
S(g(Gt), { style: { "font-size": "37px" } })
|
|
2494
2494
|
]),
|
|
2495
|
-
|
|
2495
|
+
d("p", aa, [
|
|
2496
2496
|
A(L(g(l)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2497
|
-
|
|
2497
|
+
d("span", na, L(g(l)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2498
2498
|
]),
|
|
2499
|
-
|
|
2499
|
+
d("p", ia, L(g(l)("hbLibComp.HbFileUploadModal.format")) + ": " + L(c.acceptFile), 1)
|
|
2500
2500
|
]),
|
|
2501
2501
|
_: 1
|
|
2502
2502
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2506,10 +2506,10 @@ const Bo = {
|
|
|
2506
2506
|
]),
|
|
2507
2507
|
_: 1
|
|
2508
2508
|
}, 8, ["model"]),
|
|
2509
|
-
|
|
2510
|
-
|
|
2509
|
+
c.templateUrl ? (i(), T("p", sa, [
|
|
2510
|
+
d("a", {
|
|
2511
2511
|
download: "Import_number-template.xlsx",
|
|
2512
|
-
href:
|
|
2512
|
+
href: c.templateUrl
|
|
2513
2513
|
}, L(g(l)("hbLibComp.HbImportFile.downloadTemplate")), 9, ra)
|
|
2514
2514
|
])) : z("", !0)
|
|
2515
2515
|
]),
|
|
@@ -2583,10 +2583,10 @@ const Bo = {
|
|
|
2583
2583
|
props: ba,
|
|
2584
2584
|
setup(e) {
|
|
2585
2585
|
const t = e, l = O();
|
|
2586
|
-
|
|
2586
|
+
Tt(() => {
|
|
2587
2587
|
l.value = t.data;
|
|
2588
2588
|
});
|
|
2589
|
-
const n = P(() => t.tooltipTitle || "复制"),
|
|
2589
|
+
const n = P(() => t.tooltipTitle || "复制"), c = P(() => t.copySuccessTip || "复制成功"), f = P(() => t.copyFailTip || "复制失败"), u = P(() => {
|
|
2590
2590
|
if (t.cpText) return t.cpText;
|
|
2591
2591
|
let o = "";
|
|
2592
2592
|
if (t.data)
|
|
@@ -2598,24 +2598,24 @@ const Bo = {
|
|
|
2598
2598
|
} else
|
|
2599
2599
|
t.K && (o = t.data[t.K]);
|
|
2600
2600
|
return o;
|
|
2601
|
-
}),
|
|
2602
|
-
navigator.clipboard.writeText(
|
|
2603
|
-
Se.success(
|
|
2601
|
+
}), b = () => {
|
|
2602
|
+
navigator.clipboard.writeText(u.value).then(() => {
|
|
2603
|
+
Se.success(c.value);
|
|
2604
2604
|
}).catch(() => {
|
|
2605
|
-
Se.error(
|
|
2605
|
+
Se.error(f.value);
|
|
2606
2606
|
});
|
|
2607
2607
|
};
|
|
2608
|
-
return (o, a) =>
|
|
2608
|
+
return (o, a) => u.value ? (i(), E(g(Ie), {
|
|
2609
2609
|
key: 0,
|
|
2610
2610
|
title: n.value
|
|
2611
2611
|
}, {
|
|
2612
2612
|
default: r(() => [
|
|
2613
|
-
|
|
2613
|
+
d("span", {
|
|
2614
2614
|
class: "hb-lib-copy-text-eyevue",
|
|
2615
|
-
style:
|
|
2616
|
-
onClick: He(
|
|
2615
|
+
style: re({ ...o.cpStyle }),
|
|
2616
|
+
onClick: He(b, ["stop", "prevent"])
|
|
2617
2617
|
}, [...a[0] || (a[0] = [
|
|
2618
|
-
|
|
2618
|
+
d("svg", {
|
|
2619
2619
|
t: "1766643849597",
|
|
2620
2620
|
class: "icon",
|
|
2621
2621
|
viewBox: "0 0 1024 1024",
|
|
@@ -2625,17 +2625,17 @@ const Bo = {
|
|
|
2625
2625
|
width: "200",
|
|
2626
2626
|
height: "200"
|
|
2627
2627
|
}, [
|
|
2628
|
-
|
|
2628
|
+
d("path", {
|
|
2629
2629
|
d: "M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z",
|
|
2630
2630
|
"p-id": "5023",
|
|
2631
2631
|
fill: "#808080ba"
|
|
2632
2632
|
}),
|
|
2633
|
-
|
|
2633
|
+
d("path", {
|
|
2634
2634
|
d: "M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z",
|
|
2635
2635
|
"p-id": "5024",
|
|
2636
2636
|
fill: "#808080ba"
|
|
2637
2637
|
}),
|
|
2638
|
-
|
|
2638
|
+
d("path", {
|
|
2639
2639
|
d: "M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z",
|
|
2640
2640
|
"p-id": "5025",
|
|
2641
2641
|
fill: "#808080ba"
|
|
@@ -2646,7 +2646,7 @@ const Bo = {
|
|
|
2646
2646
|
_: 1
|
|
2647
2647
|
}, 8, ["title"])) : z("", !0);
|
|
2648
2648
|
}
|
|
2649
|
-
}), ha = /* @__PURE__ */ X(pa, [["__scopeId", "data-v-2b6710a1"]]),
|
|
2649
|
+
}), ha = /* @__PURE__ */ X(pa, [["__scopeId", "data-v-2b6710a1"]]), Mt = ae(ha), ma = {
|
|
2650
2650
|
dragList: {
|
|
2651
2651
|
type: Array,
|
|
2652
2652
|
required: !0
|
|
@@ -2702,17 +2702,17 @@ const Bo = {
|
|
|
2702
2702
|
immediate: !0
|
|
2703
2703
|
}
|
|
2704
2704
|
);
|
|
2705
|
-
const
|
|
2706
|
-
console.log("drag start", m),
|
|
2707
|
-
},
|
|
2708
|
-
console.log("drag end", m),
|
|
2705
|
+
const c = Ze("drag"), f = t, u = (m) => {
|
|
2706
|
+
console.log("drag start", m), f("handleDragStart", m);
|
|
2707
|
+
}, b = (m) => {
|
|
2708
|
+
console.log("drag end", m), f("handleDragEnd", m);
|
|
2709
2709
|
}, o = (m) => {
|
|
2710
|
-
console.log("drag add", m),
|
|
2710
|
+
console.log("drag add", m), f("handleDragAdd", m);
|
|
2711
2711
|
}, a = (m) => {
|
|
2712
|
-
console.log("drag remove", m),
|
|
2712
|
+
console.log("drag remove", m), f("handleDragRemove", m);
|
|
2713
2713
|
};
|
|
2714
2714
|
return (m, _) => (i(), T("div", {
|
|
2715
|
-
class: Y(g(
|
|
2715
|
+
class: Y(g(c).b())
|
|
2716
2716
|
}, [
|
|
2717
2717
|
m.childrenType == "component" ? (i(), E(g($e), oe({
|
|
2718
2718
|
key: 0,
|
|
@@ -2722,13 +2722,13 @@ const Bo = {
|
|
|
2722
2722
|
class: { [m.dragClass]: m.dragClass }
|
|
2723
2723
|
}, m.$attrs, {
|
|
2724
2724
|
"ghost-class": m.ghostClass,
|
|
2725
|
-
onStart:
|
|
2726
|
-
onEnd:
|
|
2725
|
+
onStart: u,
|
|
2726
|
+
onEnd: b,
|
|
2727
2727
|
onAdd: o,
|
|
2728
2728
|
onRemove: a
|
|
2729
2729
|
}), {
|
|
2730
2730
|
item: r(({ element: p }) => [
|
|
2731
|
-
(i(), E(
|
|
2731
|
+
(i(), E(wt(p.component)))
|
|
2732
2732
|
]),
|
|
2733
2733
|
_: 1
|
|
2734
2734
|
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), E(g($e), oe({
|
|
@@ -2739,13 +2739,13 @@ const Bo = {
|
|
|
2739
2739
|
class: { [m.dragClass]: m.dragClass }
|
|
2740
2740
|
}, m.$attrs, {
|
|
2741
2741
|
"ghost-class": m.ghostClass,
|
|
2742
|
-
onStart:
|
|
2743
|
-
onEnd:
|
|
2742
|
+
onStart: u,
|
|
2743
|
+
onEnd: b,
|
|
2744
2744
|
onAdd: o,
|
|
2745
2745
|
onRemove: a
|
|
2746
2746
|
}), {
|
|
2747
2747
|
item: r(({ element: p }) => [
|
|
2748
|
-
|
|
2748
|
+
d("div", null, [
|
|
2749
2749
|
j(m.$slots, "default", { item: p }, void 0, !0)
|
|
2750
2750
|
])
|
|
2751
2751
|
]),
|
|
@@ -2775,7 +2775,7 @@ const Bo = {
|
|
|
2775
2775
|
props: _a,
|
|
2776
2776
|
emits: ["change"],
|
|
2777
2777
|
setup(e, { expose: t, emit: l }) {
|
|
2778
|
-
const n = e,
|
|
2778
|
+
const n = e, c = l, f = O([]), u = O("");
|
|
2779
2779
|
le(
|
|
2780
2780
|
() => n.menuItems,
|
|
2781
2781
|
(o) => {
|
|
@@ -2786,36 +2786,36 @@ const Bo = {
|
|
|
2786
2786
|
{ label: `${m.label}升序`, value: `${m.value}`, sort: "Asc" },
|
|
2787
2787
|
{ label: `${m.label}降序`, value: `${m.value}`, sort: "Desc" }
|
|
2788
2788
|
];
|
|
2789
|
-
}),
|
|
2789
|
+
}), f.value = a;
|
|
2790
2790
|
},
|
|
2791
2791
|
{
|
|
2792
2792
|
deep: !0,
|
|
2793
2793
|
immediate: !0
|
|
2794
2794
|
}
|
|
2795
2795
|
);
|
|
2796
|
-
const
|
|
2797
|
-
|
|
2796
|
+
const b = (o) => {
|
|
2797
|
+
u.value = o.value + o.sort, n.getSort && n.getSort({
|
|
2798
2798
|
orderFeild: o.value,
|
|
2799
2799
|
orderBy: o.sort
|
|
2800
|
-
}),
|
|
2800
|
+
}), c("change", u);
|
|
2801
2801
|
};
|
|
2802
2802
|
return t({
|
|
2803
|
-
currentActiveItem:
|
|
2803
|
+
currentActiveItem: u
|
|
2804
2804
|
}), (o, a) => {
|
|
2805
|
-
const m =
|
|
2805
|
+
const m = R("a-menu-item"), _ = R("a-menu"), p = R("a-dropdown");
|
|
2806
2806
|
return i(), E(p, {
|
|
2807
2807
|
trigger: [n.triggerWay]
|
|
2808
2808
|
}, {
|
|
2809
2809
|
overlay: r(() => [
|
|
2810
2810
|
S(_, null, {
|
|
2811
2811
|
default: r(() => [
|
|
2812
|
-
(i(!0), T(q, null, se(
|
|
2812
|
+
(i(!0), T(q, null, se(f.value, ($) => (i(), E(m, {
|
|
2813
2813
|
key: $.value + $.sort,
|
|
2814
|
-
onClick: (I) =>
|
|
2814
|
+
onClick: (I) => b($)
|
|
2815
2815
|
}, {
|
|
2816
2816
|
default: r(() => [
|
|
2817
|
-
|
|
2818
|
-
class: Y(
|
|
2817
|
+
d("span", {
|
|
2818
|
+
class: Y(u.value == $.value + $.sort ? "activted" : "")
|
|
2819
2819
|
}, L($.label), 3)
|
|
2820
2820
|
]),
|
|
2821
2821
|
_: 2
|
|
@@ -2825,7 +2825,7 @@ const Bo = {
|
|
|
2825
2825
|
})
|
|
2826
2826
|
]),
|
|
2827
2827
|
default: r(() => [
|
|
2828
|
-
|
|
2828
|
+
d("span", {
|
|
2829
2829
|
class: "ant-dropdown-link",
|
|
2830
2830
|
onClick: a[0] || (a[0] = He(() => {
|
|
2831
2831
|
}, ["prevent"]))
|
|
@@ -2871,6 +2871,10 @@ const Bo = {
|
|
|
2871
2871
|
needSetDesDefault: !1,
|
|
2872
2872
|
desDefault: "-",
|
|
2873
2873
|
setDefaultValueTimeOut: 600
|
|
2874
|
+
},
|
|
2875
|
+
HbLibCard: {
|
|
2876
|
+
// 表单距离底部的距离
|
|
2877
|
+
formItemMb: 10
|
|
2874
2878
|
}
|
|
2875
2879
|
}, Ta = { class: "hb_ui_config" }, wa = /* @__PURE__ */ Q({
|
|
2876
2880
|
name: "HbUiConfig",
|
|
@@ -2887,13 +2891,13 @@ const Bo = {
|
|
|
2887
2891
|
l = Te(Vt({}, Sa, n));
|
|
2888
2892
|
},
|
|
2889
2893
|
{ deep: !0, immediate: !0 }
|
|
2890
|
-
),
|
|
2894
|
+
), Ct(Xe, l), (n, c) => (i(), T("div", Ta, [
|
|
2891
2895
|
j(n.$slots, "default")
|
|
2892
2896
|
]));
|
|
2893
2897
|
}
|
|
2894
|
-
}),
|
|
2898
|
+
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), xa = ae(wa), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2895
2899
|
__proto__: null,
|
|
2896
|
-
HbLibCopy:
|
|
2900
|
+
HbLibCopy: Mt,
|
|
2897
2901
|
HbLibFuncCompDrag: ya,
|
|
2898
2902
|
HbLibSort: ka,
|
|
2899
2903
|
HbUiConfig: xa
|
|
@@ -2917,7 +2921,7 @@ const Bo = {
|
|
|
2917
2921
|
},
|
|
2918
2922
|
emits: ["update:visible"],
|
|
2919
2923
|
setup(e, { expose: t, emit: l }) {
|
|
2920
|
-
const { t: n } = fe(),
|
|
2924
|
+
const { t: n } = fe(), c = e, f = [
|
|
2921
2925
|
{
|
|
2922
2926
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
2923
2927
|
dataIndex: "userName",
|
|
@@ -2929,7 +2933,7 @@ const Bo = {
|
|
|
2929
2933
|
width: "25%"
|
|
2930
2934
|
},
|
|
2931
2935
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2932
|
-
],
|
|
2936
|
+
], u = P(() => c.columns || f), b = P(() => c.title || n("hbLibComp.HbLogModal.operateLogs")), o = O(!1), a = Te({
|
|
2933
2937
|
list: [],
|
|
2934
2938
|
pagination: {
|
|
2935
2939
|
current: 1,
|
|
@@ -2942,7 +2946,7 @@ const Bo = {
|
|
|
2942
2946
|
}
|
|
2943
2947
|
});
|
|
2944
2948
|
le(
|
|
2945
|
-
() =>
|
|
2949
|
+
() => c.pagination,
|
|
2946
2950
|
(w) => {
|
|
2947
2951
|
w && (a.pagination = {
|
|
2948
2952
|
...a.pagination,
|
|
@@ -2958,10 +2962,10 @@ const Bo = {
|
|
|
2958
2962
|
const w = {
|
|
2959
2963
|
pageIndex: a.pagination.current,
|
|
2960
2964
|
pageSize: a.pagination.pageSize,
|
|
2961
|
-
query:
|
|
2965
|
+
query: c.params
|
|
2962
2966
|
};
|
|
2963
|
-
|
|
2964
|
-
Number(v.code) == 200 ? (a.pagination.total = Number(v.data.total), a.list = v.data[
|
|
2967
|
+
c.getLogData && (o.value = !0, c.getLogData(w).then((v) => {
|
|
2968
|
+
Number(v.code) == 200 ? (a.pagination.total = Number(v.data.total), a.list = v.data[c.dataStr] || []) : Se.error(v.message);
|
|
2965
2969
|
}).finally(() => {
|
|
2966
2970
|
o.value = !1;
|
|
2967
2971
|
}));
|
|
@@ -2973,7 +2977,7 @@ const Bo = {
|
|
|
2973
2977
|
V("update:visible", !0);
|
|
2974
2978
|
}, I = (w, v = "YYYY-MM-DD HH:mm:ss") => w ? Oe(w).format(v) : "", V = l;
|
|
2975
2979
|
return le(
|
|
2976
|
-
() =>
|
|
2980
|
+
() => c.visible,
|
|
2977
2981
|
(w) => {
|
|
2978
2982
|
w && m();
|
|
2979
2983
|
}
|
|
@@ -2981,11 +2985,11 @@ const Bo = {
|
|
|
2981
2985
|
close: p,
|
|
2982
2986
|
loading: o
|
|
2983
2987
|
}), (w, v) => {
|
|
2984
|
-
const k =
|
|
2988
|
+
const k = R("a-tooltip"), M = R("HbLibCopy"), F = R("a-table"), C = R("a-button"), y = R("a-modal");
|
|
2985
2989
|
return i(), T(q, null, [
|
|
2986
2990
|
S(y, {
|
|
2987
2991
|
visible: e.visible,
|
|
2988
|
-
title:
|
|
2992
|
+
title: b.value,
|
|
2989
2993
|
width: e.width,
|
|
2990
2994
|
height: e.height,
|
|
2991
2995
|
onCancel: p
|
|
@@ -3002,7 +3006,7 @@ const Bo = {
|
|
|
3002
3006
|
S(F, {
|
|
3003
3007
|
bordered: "",
|
|
3004
3008
|
rowKey: "id",
|
|
3005
|
-
columns:
|
|
3009
|
+
columns: u.value,
|
|
3006
3010
|
dataSource: a.list,
|
|
3007
3011
|
pagination: a.pagination,
|
|
3008
3012
|
loading: o.value,
|
|
@@ -3022,7 +3026,7 @@ const Bo = {
|
|
|
3022
3026
|
}, 1024)) : z("", !0)
|
|
3023
3027
|
], 64)) : z("", !0),
|
|
3024
3028
|
s && s.needCopy ? (i(), T(q, { key: 1 }, [
|
|
3025
|
-
|
|
3029
|
+
d("div", Ha, L(h[s.dataIndex]), 1),
|
|
3026
3030
|
S(M, {
|
|
3027
3031
|
"cp-text": h[s.dataIndex],
|
|
3028
3032
|
style: { position: "relative" }
|
|
@@ -3066,7 +3070,7 @@ const Bo = {
|
|
|
3066
3070
|
}, e), Aa = { class: "hb_card_wrapper" }, Ba = { class: "hb_card" }, Oa = {
|
|
3067
3071
|
key: 0,
|
|
3068
3072
|
class: "hb_card_header"
|
|
3069
|
-
}, za = { class: "hb_fix" }, Ea = { class: "hb_card_header-title" }, Pa = { class: "hb_card_header-action" },
|
|
3073
|
+
}, za = { class: "hb_fix" }, Ea = { class: "hb_card_header-title" }, Pa = { class: "hb_card_header-action" }, Na = { class: "hb_card_body" }, Ra = /* @__PURE__ */ Q({
|
|
3070
3074
|
name: "HbLibCard",
|
|
3071
3075
|
__name: "HbLibCard",
|
|
3072
3076
|
props: {
|
|
@@ -3090,44 +3094,52 @@ const Bo = {
|
|
|
3090
3094
|
layout: {
|
|
3091
3095
|
type: Number,
|
|
3092
3096
|
default: 2
|
|
3097
|
+
},
|
|
3098
|
+
formItemMb: {
|
|
3099
|
+
type: Number
|
|
3093
3100
|
}
|
|
3094
3101
|
},
|
|
3095
3102
|
setup(e) {
|
|
3096
|
-
|
|
3097
|
-
c
|
|
3103
|
+
const t = pe(Xe), l = e, n = P(() => {
|
|
3104
|
+
let c = l.formItemMb || t?.HbLibCard?.formItemMb;
|
|
3105
|
+
return console.log("GLOBAL_CONFIG?.HbLibCard?.formItemMb", t?.HbLibCard?.formItemMb), console.log("mb", c), c ? { "--hb-card-form-item-mb": c + "px" } : {};
|
|
3106
|
+
});
|
|
3107
|
+
return (c, f) => (i(), T("div", Aa, [
|
|
3108
|
+
d("div", {
|
|
3098
3109
|
class: Y(e.isModal ? "modal__module-card" : "__module-card")
|
|
3099
3110
|
}, [
|
|
3100
|
-
|
|
3111
|
+
d("div", Ba, [
|
|
3101
3112
|
e.cardTitle ? (i(), T("div", Oa, [
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
j(
|
|
3113
|
+
d("div", za, [
|
|
3114
|
+
d("span", Ea, [
|
|
3115
|
+
j(c.$slots, "cardTitle", {}, () => [
|
|
3105
3116
|
A(L(e.cardTitle), 1)
|
|
3106
3117
|
], !0)
|
|
3107
3118
|
]),
|
|
3108
|
-
|
|
3109
|
-
j(
|
|
3119
|
+
d("div", Pa, [
|
|
3120
|
+
j(c.$slots, "cardAct", {}, void 0, !0)
|
|
3110
3121
|
])
|
|
3111
3122
|
])
|
|
3112
3123
|
])) : z("", !0),
|
|
3113
|
-
|
|
3114
|
-
|
|
3124
|
+
d("div", Na, [
|
|
3125
|
+
d("section", {
|
|
3115
3126
|
class: Y({
|
|
3116
3127
|
hb_card_form: e.isForm && !e.isModal,
|
|
3117
3128
|
hb_card_flex_form: e.isForm && e.isModal,
|
|
3118
3129
|
l1c: e.layout == 1,
|
|
3119
3130
|
l3c: e.layout == 3,
|
|
3120
3131
|
l4c: e.layout == 4
|
|
3121
|
-
})
|
|
3132
|
+
}),
|
|
3133
|
+
style: re(n.value)
|
|
3122
3134
|
}, [
|
|
3123
|
-
j(
|
|
3124
|
-
],
|
|
3135
|
+
j(c.$slots, "default", {}, void 0, !0)
|
|
3136
|
+
], 6)
|
|
3125
3137
|
])
|
|
3126
3138
|
])
|
|
3127
3139
|
], 2)
|
|
3128
3140
|
]));
|
|
3129
3141
|
}
|
|
3130
|
-
}), Ua = /* @__PURE__ */ X(
|
|
3142
|
+
}), Ua = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-1af6cdac"]]), Va = _e(Ua), ja = ["onClick"], Wa = { class: "step" }, Ya = {
|
|
3131
3143
|
key: 0,
|
|
3132
3144
|
class: "line"
|
|
3133
3145
|
}, qa = ["title"], Ka = /* @__PURE__ */ Q({
|
|
@@ -3139,20 +3151,20 @@ const Bo = {
|
|
|
3139
3151
|
containerSelector: {}
|
|
3140
3152
|
},
|
|
3141
3153
|
setup(e) {
|
|
3142
|
-
const t = e, l = O(""), n = t.offsetTop ?? 160,
|
|
3154
|
+
const t = e, l = O(""), n = t.offsetTop ?? 160, c = P(() => t.anchors.filter((o) => typeof o.visible == "function" ? o.visible() : o.visible !== !1)), f = () => {
|
|
3143
3155
|
const o = t.containerSelector || "#subpackage_container";
|
|
3144
3156
|
return document.querySelector(o) || window;
|
|
3145
|
-
},
|
|
3146
|
-
const a =
|
|
3157
|
+
}, u = (o) => {
|
|
3158
|
+
const a = f(), m = o.target.startsWith("#") || o.target.startsWith(".") ? o.target : `#${o.target}`, _ = document.querySelector(m);
|
|
3147
3159
|
if (!_) return;
|
|
3148
3160
|
let p = _.offsetTop;
|
|
3149
3161
|
a instanceof HTMLElement && (p -= a.offsetTop), p -= n, a instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : a.scrollTo({ top: p, behavior: "smooth" }), l.value = o.target;
|
|
3150
|
-
},
|
|
3151
|
-
const o =
|
|
3162
|
+
}, b = () => {
|
|
3163
|
+
const o = f();
|
|
3152
3164
|
let a = 0;
|
|
3153
3165
|
o instanceof Window ? a = window.scrollY + n + 5 : a = o.scrollTop + n + 5;
|
|
3154
|
-
let m =
|
|
3155
|
-
for (const _ of
|
|
3166
|
+
let m = c.value[0]?.target || "";
|
|
3167
|
+
for (const _ of c.value) {
|
|
3156
3168
|
const p = _.target.startsWith("#") || _.target.startsWith(".") ? _.target : `#${_.target}`, $ = document.querySelector(p);
|
|
3157
3169
|
if (!$) continue;
|
|
3158
3170
|
let I = $.offsetTop;
|
|
@@ -3160,31 +3172,31 @@ const Bo = {
|
|
|
3160
3172
|
}
|
|
3161
3173
|
l.value = m;
|
|
3162
3174
|
};
|
|
3163
|
-
return
|
|
3164
|
-
|
|
3165
|
-
}),
|
|
3166
|
-
|
|
3175
|
+
return he(() => {
|
|
3176
|
+
f().addEventListener("scroll", b), b();
|
|
3177
|
+
}), Je(() => {
|
|
3178
|
+
f().removeEventListener("scroll", b);
|
|
3167
3179
|
}), (o, a) => (i(), T("div", {
|
|
3168
3180
|
class: "anchors",
|
|
3169
|
-
style:
|
|
3181
|
+
style: re({ top: `${g(n)}px` })
|
|
3170
3182
|
}, [
|
|
3171
|
-
(i(!0), T(q, null, se(
|
|
3183
|
+
(i(!0), T(q, null, se(c.value, (m, _) => (i(), T("div", {
|
|
3172
3184
|
key: m.target,
|
|
3173
3185
|
class: Y(["anchor-item", { isActive: l.value === m.target }]),
|
|
3174
|
-
onClick: (p) =>
|
|
3186
|
+
onClick: (p) => u(m)
|
|
3175
3187
|
}, [
|
|
3176
|
-
|
|
3177
|
-
_ !==
|
|
3178
|
-
a[0] || (a[0] =
|
|
3188
|
+
d("div", Wa, [
|
|
3189
|
+
_ !== c.value.length - 1 ? (i(), T("div", Ya)) : z("", !0),
|
|
3190
|
+
a[0] || (a[0] = d("div", { class: "circle" }, null, -1))
|
|
3179
3191
|
]),
|
|
3180
|
-
|
|
3192
|
+
d("span", {
|
|
3181
3193
|
class: "title",
|
|
3182
3194
|
title: m.title
|
|
3183
3195
|
}, L(m.title.length > 12 ? m.title.slice(0, 12) + "..." : m.title), 9, qa)
|
|
3184
3196
|
], 10, ja))), 128))
|
|
3185
3197
|
], 4));
|
|
3186
3198
|
}
|
|
3187
|
-
}),
|
|
3199
|
+
}), Ga = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-d51548d8"]]), Ja = _e(Ga), Qa = { class: "hb_detail_top_act_left" }, Za = {
|
|
3188
3200
|
key: 1,
|
|
3189
3201
|
class: "hb_detail_top_wrapper_sticky"
|
|
3190
3202
|
}, Xa = { class: "hb_detail_top_act" }, en = {
|
|
@@ -3256,19 +3268,19 @@ const Bo = {
|
|
|
3256
3268
|
}
|
|
3257
3269
|
},
|
|
3258
3270
|
setup(e) {
|
|
3259
|
-
const { t } = fe(), l = e, n =
|
|
3271
|
+
const { t } = fe(), l = e, n = pe(Xe), c = () => {
|
|
3260
3272
|
l.backFn ? l.backFn() : window.history.back();
|
|
3261
|
-
},
|
|
3273
|
+
}, f = P(() => {
|
|
3262
3274
|
const I = {};
|
|
3263
3275
|
return l.needFixWidth ? {
|
|
3264
3276
|
hb_need_set_desc_label_width: l.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3265
3277
|
hb_need_set_desc_value_width: l.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3266
3278
|
} : I;
|
|
3267
|
-
}),
|
|
3279
|
+
}), u = () => document.querySelector(l.container), b = O(!1), o = O(null), { top: a } = Qt(o), m = P(u), { y: _ } = Zt(m);
|
|
3268
3280
|
le(
|
|
3269
3281
|
_,
|
|
3270
3282
|
(I) => {
|
|
3271
|
-
|
|
3283
|
+
b.value = I > a.value;
|
|
3272
3284
|
},
|
|
3273
3285
|
{ immediate: !0 }
|
|
3274
3286
|
);
|
|
@@ -3280,77 +3292,77 @@ const Bo = {
|
|
|
3280
3292
|
});
|
|
3281
3293
|
};
|
|
3282
3294
|
let $ = null;
|
|
3283
|
-
return
|
|
3295
|
+
return he(() => {
|
|
3284
3296
|
n?.HbLibDetailBox?.needSetDesDefault && ($ = setTimeout(() => {
|
|
3285
3297
|
p(n?.HbLibDetailBox?.desDefault);
|
|
3286
3298
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3287
3299
|
}), we(() => {
|
|
3288
3300
|
$ && clearTimeout($);
|
|
3289
3301
|
}), (I, V) => {
|
|
3290
|
-
const w =
|
|
3302
|
+
const w = R("RollbackOutlined"), v = R("a-divider"), k = R("a-spin");
|
|
3291
3303
|
return i(), E(k, { spinning: e.spinning }, {
|
|
3292
3304
|
default: r(() => [
|
|
3293
|
-
|
|
3294
|
-
class: Y(["hb_detail_wrapper",
|
|
3295
|
-
style:
|
|
3296
|
-
"--hb-detail-desc-label-width":
|
|
3297
|
-
"--hb-detail-desc-value-width":
|
|
3305
|
+
d("div", {
|
|
3306
|
+
class: Y(["hb_detail_wrapper", f.value]),
|
|
3307
|
+
style: re({
|
|
3308
|
+
"--hb-detail-desc-label-width": f.value?.hb_need_set_desc_label_width + "px",
|
|
3309
|
+
"--hb-detail-desc-value-width": f.value?.hb_need_set_desc_value_width + "px"
|
|
3298
3310
|
})
|
|
3299
3311
|
}, [
|
|
3300
3312
|
e.needTotalInfoBox ? (i(), T("div", {
|
|
3301
3313
|
key: 0,
|
|
3302
|
-
class: Y(["hb_detail_top_act_sticky",
|
|
3314
|
+
class: Y(["hb_detail_top_act_sticky", b.value ? "can_show" : ""])
|
|
3303
3315
|
}, [
|
|
3304
|
-
|
|
3316
|
+
d("div", Qa, [
|
|
3305
3317
|
S(w, { style: { color: "#ff5000" } }),
|
|
3306
|
-
|
|
3318
|
+
d("a", {
|
|
3307
3319
|
href: "javascript:;",
|
|
3308
3320
|
class: "ml6",
|
|
3309
|
-
onClick:
|
|
3321
|
+
onClick: c
|
|
3310
3322
|
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3311
3323
|
S(v, { type: "vertical" }),
|
|
3312
|
-
|
|
3324
|
+
d("span", null, L(e.stickyTitle), 1)
|
|
3313
3325
|
]),
|
|
3314
|
-
V[0] || (V[0] =
|
|
3326
|
+
V[0] || (V[0] = d("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3315
3327
|
], 2)) : z("", !0),
|
|
3316
3328
|
e.needTotalInfoBox ? (i(), T("div", Za, [
|
|
3317
|
-
|
|
3329
|
+
d("div", Xa, [
|
|
3318
3330
|
S(w),
|
|
3319
|
-
|
|
3331
|
+
d("a", {
|
|
3320
3332
|
href: "javascript:;",
|
|
3321
3333
|
class: "ml6",
|
|
3322
|
-
onClick:
|
|
3334
|
+
onClick: c
|
|
3323
3335
|
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3324
3336
|
S(v, { type: "vertical" }),
|
|
3325
|
-
|
|
3337
|
+
d("span", null, L(e.stickyTitle), 1)
|
|
3326
3338
|
]),
|
|
3327
3339
|
e.needTotalInfoBox ? (i(), T("div", en, [
|
|
3328
|
-
|
|
3340
|
+
d("aside", tn, [
|
|
3329
3341
|
j(I.$slots, "totalInfoLeft", {}, () => [
|
|
3330
|
-
|
|
3342
|
+
d("div", ln, L(e.totalInfo.totalInfoTitle), 1),
|
|
3331
3343
|
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div", on, [
|
|
3332
|
-
|
|
3333
|
-
|
|
3344
|
+
d("span", an, L(e.totalInfo.totalInfoSubTitle1) + L(e.totalInfo.totalInfoSubVal1), 1),
|
|
3345
|
+
d("span", null, L(e.totalInfo.totalInfoSubTitle2) + L(e.totalInfo.totalInfoSubVal2), 1)
|
|
3334
3346
|
])) : z("", !0)
|
|
3335
3347
|
], !0)
|
|
3336
3348
|
]),
|
|
3337
|
-
|
|
3349
|
+
d("aside", nn, [
|
|
3338
3350
|
j(I.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3339
3351
|
])
|
|
3340
3352
|
])) : z("", !0)
|
|
3341
3353
|
])) : z("", !0),
|
|
3342
|
-
|
|
3343
|
-
|
|
3354
|
+
d("div", sn, [
|
|
3355
|
+
d("div", rn, [
|
|
3344
3356
|
j(I.$slots, "detailContent", {}, void 0, !0)
|
|
3345
3357
|
])
|
|
3346
3358
|
]),
|
|
3347
|
-
S(g(
|
|
3348
|
-
target:
|
|
3349
|
-
style:
|
|
3359
|
+
S(g(xt), {
|
|
3360
|
+
target: u,
|
|
3361
|
+
style: re({ bottom: e.backTopBottom + "px" })
|
|
3350
3362
|
}, {
|
|
3351
3363
|
default: r(() => [
|
|
3352
|
-
|
|
3353
|
-
S(g(
|
|
3364
|
+
d("div", cn, [
|
|
3365
|
+
S(g(Ft))
|
|
3354
3366
|
])
|
|
3355
3367
|
]),
|
|
3356
3368
|
_: 1
|
|
@@ -3393,9 +3405,9 @@ const Bo = {
|
|
|
3393
3405
|
}
|
|
3394
3406
|
},
|
|
3395
3407
|
setup(e) {
|
|
3396
|
-
const t = e, l = P(() => t.buttons.filter((
|
|
3408
|
+
const t = e, l = P(() => t.buttons.filter((b) => b.condition !== void 0 ? b.condition : !0)), n = O(0), c = (b) => {
|
|
3397
3409
|
let o = 0;
|
|
3398
|
-
return (Array.isArray(
|
|
3410
|
+
return (Array.isArray(b) ? b : [b]).forEach((m) => {
|
|
3399
3411
|
let _ = [];
|
|
3400
3412
|
if (m.startsWith("#")) {
|
|
3401
3413
|
const p = document.getElementById(m.slice(1));
|
|
@@ -3406,18 +3418,18 @@ const Bo = {
|
|
|
3406
3418
|
o += p.offsetWidth || 0;
|
|
3407
3419
|
});
|
|
3408
3420
|
}), o;
|
|
3409
|
-
},
|
|
3410
|
-
t.leftElements && (n.value =
|
|
3421
|
+
}, f = () => {
|
|
3422
|
+
t.leftElements && (n.value = c(t.leftElements) + 1);
|
|
3411
3423
|
};
|
|
3412
|
-
let
|
|
3413
|
-
return
|
|
3414
|
-
const
|
|
3415
|
-
|
|
3416
|
-
}),
|
|
3417
|
-
|
|
3424
|
+
let u = null;
|
|
3425
|
+
return he(() => {
|
|
3426
|
+
const b = t.getContainer();
|
|
3427
|
+
b !== window && b instanceof HTMLElement && b.addEventListener("scroll", () => {
|
|
3428
|
+
}), f(), u = new MutationObserver(() => {
|
|
3429
|
+
f();
|
|
3418
3430
|
});
|
|
3419
3431
|
const o = document.body;
|
|
3420
|
-
|
|
3432
|
+
u.observe(o, {
|
|
3421
3433
|
childList: !0,
|
|
3422
3434
|
// 子节点的变动
|
|
3423
3435
|
subtree: !0,
|
|
@@ -3425,13 +3437,13 @@ const Bo = {
|
|
|
3425
3437
|
attributes: !0
|
|
3426
3438
|
// 属性的变动
|
|
3427
3439
|
});
|
|
3428
|
-
}),
|
|
3429
|
-
|
|
3430
|
-
}), (
|
|
3431
|
-
const a =
|
|
3440
|
+
}), Je(() => {
|
|
3441
|
+
u && u.disconnect();
|
|
3442
|
+
}), (b, o) => {
|
|
3443
|
+
const a = R("a-button"), m = R("a-space"), _ = R("a-affix"), p = St("has");
|
|
3432
3444
|
return i(), T("div", {
|
|
3433
3445
|
class: "footer-affix-wrapper",
|
|
3434
|
-
style:
|
|
3446
|
+
style: re({ "--pageHeaderOrFonterLeft": n.value + "px" })
|
|
3435
3447
|
}, [
|
|
3436
3448
|
S(_, {
|
|
3437
3449
|
"offset-bottom": 0,
|
|
@@ -3439,7 +3451,7 @@ const Bo = {
|
|
|
3439
3451
|
style: { width: "100%" }
|
|
3440
3452
|
}, {
|
|
3441
3453
|
default: r(() => [
|
|
3442
|
-
|
|
3454
|
+
d("div", {
|
|
3443
3455
|
class: Y({
|
|
3444
3456
|
"page-footer-bar": !0,
|
|
3445
3457
|
page_footer_btn_left: e.placeLeft,
|
|
@@ -3516,33 +3528,33 @@ const Bo = {
|
|
|
3516
3528
|
},
|
|
3517
3529
|
emits: ["ok", "cancel"],
|
|
3518
3530
|
setup(e, { expose: t, emit: l }) {
|
|
3519
|
-
const n = l,
|
|
3531
|
+
const n = l, c = e, f = O(!1), u = O(null), b = P(() => ({ ...c.modalStyle })), o = P(() => ({ overflow: "hidden", ...c.modalStyle })), a = P(() => ({
|
|
3520
3532
|
maxHeight: "calc(100vh - 120px)",
|
|
3521
3533
|
overflowY: "auto",
|
|
3522
3534
|
padding: "0 6px",
|
|
3523
|
-
...
|
|
3524
|
-
})), { x: m, y: _, isDragging: p } = Xt(
|
|
3535
|
+
...c.bodyStyle
|
|
3536
|
+
})), { x: m, y: _, isDragging: p } = Xt(u), $ = O(0), I = O(0), V = O(!1), w = O(0), v = O(0), k = O(0), M = O(0), F = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3525
3537
|
let C = null;
|
|
3526
|
-
le(
|
|
3538
|
+
le(f, (H) => {
|
|
3527
3539
|
H || (C && clearTimeout(C), C = setTimeout(() => {
|
|
3528
3540
|
w.value = 0, v.value = 0, k.value = 0, M.value = 0;
|
|
3529
3541
|
}, 300));
|
|
3530
3542
|
}), le([m, _], () => {
|
|
3531
3543
|
if (!V.value) {
|
|
3532
3544
|
$.value = m.value, I.value = _.value;
|
|
3533
|
-
const H = document.body.getBoundingClientRect(), x =
|
|
3545
|
+
const H = document.body.getBoundingClientRect(), x = u.value.getBoundingClientRect();
|
|
3534
3546
|
F.value.right = H.width - x.width, F.value.bottom = H.height - x.height, k.value = w.value, M.value = v.value;
|
|
3535
3547
|
}
|
|
3536
3548
|
V.value = !0;
|
|
3537
3549
|
}), le(p, () => {
|
|
3538
3550
|
p || (V.value = !1);
|
|
3539
|
-
}),
|
|
3551
|
+
}), Tt(() => {
|
|
3540
3552
|
V.value && (w.value = k.value + Math.min(Math.max(F.value.left, m.value), F.value.right) - $.value, v.value = M.value + Math.min(Math.max(F.value.top, _.value), F.value.bottom) - I.value);
|
|
3541
3553
|
});
|
|
3542
3554
|
const y = P(() => ({
|
|
3543
3555
|
transform: `translate(${w.value}px, ${v.value}px)`
|
|
3544
3556
|
})), s = () => {
|
|
3545
|
-
|
|
3557
|
+
f.value = !1, n("cancel");
|
|
3546
3558
|
}, h = () => {
|
|
3547
3559
|
n("ok");
|
|
3548
3560
|
};
|
|
@@ -3551,23 +3563,23 @@ const Bo = {
|
|
|
3551
3563
|
}), t({
|
|
3552
3564
|
handleOk: h,
|
|
3553
3565
|
handleCancel: s,
|
|
3554
|
-
visible:
|
|
3566
|
+
visible: f
|
|
3555
3567
|
}), (H, x) => {
|
|
3556
|
-
const
|
|
3568
|
+
const N = R("a-spin"), ee = R("a-modal");
|
|
3557
3569
|
return i(), E(ee, oe({
|
|
3558
|
-
style:
|
|
3570
|
+
style: b.value,
|
|
3559
3571
|
bodyStyle: a.value,
|
|
3560
3572
|
ref: "modalRef",
|
|
3561
|
-
visible:
|
|
3562
|
-
"onUpdate:visible": x[0] || (x[0] = (
|
|
3573
|
+
visible: f.value,
|
|
3574
|
+
"onUpdate:visible": x[0] || (x[0] = (G) => f.value = G),
|
|
3563
3575
|
"wrap-style": o.value,
|
|
3564
3576
|
onOk: h,
|
|
3565
3577
|
onCancel: s
|
|
3566
3578
|
}, H.$attrs), Be({
|
|
3567
3579
|
title: r(() => [
|
|
3568
|
-
|
|
3580
|
+
d("div", {
|
|
3569
3581
|
ref_key: "modalTitleRef",
|
|
3570
|
-
ref:
|
|
3582
|
+
ref: u,
|
|
3571
3583
|
style: { width: "100%", cursor: "move" }
|
|
3572
3584
|
}, [
|
|
3573
3585
|
j(H.$slots, "title", {}, () => [
|
|
@@ -3575,27 +3587,27 @@ const Bo = {
|
|
|
3575
3587
|
], !0)
|
|
3576
3588
|
], 512)
|
|
3577
3589
|
]),
|
|
3578
|
-
modalRender: r(({ originVNode:
|
|
3579
|
-
|
|
3580
|
-
style:
|
|
3590
|
+
modalRender: r(({ originVNode: G }) => [
|
|
3591
|
+
d("div", {
|
|
3592
|
+
style: re(y.value)
|
|
3581
3593
|
}, [
|
|
3582
|
-
(i(), E(
|
|
3594
|
+
(i(), E(wt(G)))
|
|
3583
3595
|
], 4)
|
|
3584
3596
|
]),
|
|
3585
3597
|
default: r(() => [
|
|
3586
|
-
S(
|
|
3587
|
-
spinning:
|
|
3598
|
+
S(N, {
|
|
3599
|
+
spinning: c.spinning
|
|
3588
3600
|
}, {
|
|
3589
3601
|
default: r(() => [
|
|
3590
|
-
|
|
3602
|
+
d("div", {
|
|
3591
3603
|
class: Y([
|
|
3592
3604
|
e.type == "detail" ? "hb_detail_modal_wrapper" : "hb_modal_wrapper",
|
|
3593
3605
|
e.descLabelWidth && "hb_need_set_desc_label_width",
|
|
3594
3606
|
e.descValueWidth && "hb_need_set_desc_value_width"
|
|
3595
3607
|
]),
|
|
3596
|
-
style:
|
|
3608
|
+
style: re({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3597
3609
|
}, [
|
|
3598
|
-
|
|
3610
|
+
d("div", mn, [
|
|
3599
3611
|
j(H.$slots, "default", {}, void 0, !0)
|
|
3600
3612
|
])
|
|
3601
3613
|
], 6)
|
|
@@ -3615,7 +3627,7 @@ const Bo = {
|
|
|
3615
3627
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3616
3628
|
};
|
|
3617
3629
|
}
|
|
3618
|
-
}), gn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-
|
|
3630
|
+
}), gn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-2c15ecab"]]), yn = _e(gn), _n = {
|
|
3619
3631
|
key: 0,
|
|
3620
3632
|
class: "hb_edit_header"
|
|
3621
3633
|
}, Ln = { class: "__detail-content" }, Cn = {
|
|
@@ -3647,32 +3659,32 @@ const Bo = {
|
|
|
3647
3659
|
},
|
|
3648
3660
|
setup(e) {
|
|
3649
3661
|
const t = O("vertical"), l = e, n = () => document.querySelector(l.container);
|
|
3650
|
-
return (
|
|
3662
|
+
return (c, f) => (i(), E(g(Ut), { spinning: e.spinning }, {
|
|
3651
3663
|
default: r(() => [
|
|
3652
|
-
|
|
3664
|
+
d("div", {
|
|
3653
3665
|
class: Y(["hb_edit_wrapper", e.formLabelWidth ? "isNeedSetLabelWidth" : ""]),
|
|
3654
|
-
style:
|
|
3666
|
+
style: re({ "--hb-edit-form-label": e.formLabelWidth })
|
|
3655
3667
|
}, [
|
|
3656
|
-
|
|
3657
|
-
j(
|
|
3668
|
+
c.$slots.editHeader ? (i(), T("div", _n, [
|
|
3669
|
+
j(c.$slots, "editHeader", {}, void 0, !0)
|
|
3658
3670
|
])) : z("", !0),
|
|
3659
|
-
|
|
3671
|
+
d("div", {
|
|
3660
3672
|
class: Y(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3661
3673
|
}, [
|
|
3662
|
-
|
|
3663
|
-
j(
|
|
3674
|
+
d("div", Ln, [
|
|
3675
|
+
j(c.$slots, "editContent", {}, void 0, !0)
|
|
3664
3676
|
])
|
|
3665
3677
|
], 2),
|
|
3666
|
-
|
|
3667
|
-
j(
|
|
3678
|
+
c.$slots.editFooter ? (i(), T("div", Cn, [
|
|
3679
|
+
j(c.$slots, "editFooter", {}, void 0, !0)
|
|
3668
3680
|
])) : z("", !0),
|
|
3669
|
-
S(g(
|
|
3681
|
+
S(g(xt), {
|
|
3670
3682
|
target: n,
|
|
3671
|
-
style:
|
|
3683
|
+
style: re({ bottom: e.backTopBottom + "px" })
|
|
3672
3684
|
}, {
|
|
3673
3685
|
default: r(() => [
|
|
3674
|
-
|
|
3675
|
-
S(g(
|
|
3686
|
+
d("div", kn, [
|
|
3687
|
+
S(g(Ft))
|
|
3676
3688
|
])
|
|
3677
3689
|
]),
|
|
3678
3690
|
_: 1
|
|
@@ -3700,8 +3712,8 @@ const Bo = {
|
|
|
3700
3712
|
}
|
|
3701
3713
|
},
|
|
3702
3714
|
setup(e) {
|
|
3703
|
-
const { t } = fe(), l = e, n = Qe(),
|
|
3704
|
-
function
|
|
3715
|
+
const { t } = fe(), l = e, n = Qe(), c = O(0), f = P(() => n?.meta?.title || "");
|
|
3716
|
+
function u(p, $ = "offsetHeight") {
|
|
3705
3717
|
let I = 0;
|
|
3706
3718
|
return (Array.isArray(p) ? p : [p]).forEach((w) => {
|
|
3707
3719
|
let v = [];
|
|
@@ -3715,14 +3727,14 @@ const Bo = {
|
|
|
3715
3727
|
});
|
|
3716
3728
|
}), I;
|
|
3717
3729
|
}
|
|
3718
|
-
const
|
|
3719
|
-
l.topElements && (
|
|
3730
|
+
const b = () => {
|
|
3731
|
+
l.topElements && (c.value = u(l.topElements));
|
|
3720
3732
|
}, o = O(0), a = () => {
|
|
3721
|
-
l.leftElements && (o.value =
|
|
3733
|
+
l.leftElements && (o.value = u(l.leftElements, "offsetWidth") + 1);
|
|
3722
3734
|
};
|
|
3723
3735
|
let m = null;
|
|
3724
|
-
|
|
3725
|
-
|
|
3736
|
+
he(() => {
|
|
3737
|
+
b(), a(), window.addEventListener("resize", b), m = new MutationObserver(() => {
|
|
3726
3738
|
a();
|
|
3727
3739
|
});
|
|
3728
3740
|
const p = document.body;
|
|
@@ -3734,12 +3746,12 @@ const Bo = {
|
|
|
3734
3746
|
attributes: !0
|
|
3735
3747
|
// 属性的变动
|
|
3736
3748
|
});
|
|
3737
|
-
}),
|
|
3738
|
-
window.removeEventListener("resize",
|
|
3749
|
+
}), Je(() => {
|
|
3750
|
+
window.removeEventListener("resize", b), m && m.disconnect();
|
|
3739
3751
|
}), le(
|
|
3740
3752
|
() => l.topElements,
|
|
3741
3753
|
() => {
|
|
3742
|
-
|
|
3754
|
+
b();
|
|
3743
3755
|
},
|
|
3744
3756
|
{ immediate: !0 }
|
|
3745
3757
|
);
|
|
@@ -3747,21 +3759,21 @@ const Bo = {
|
|
|
3747
3759
|
l.backFn ? l.backFn() : window.history.back();
|
|
3748
3760
|
};
|
|
3749
3761
|
return (p, $) => {
|
|
3750
|
-
const I =
|
|
3762
|
+
const I = R("a-divider");
|
|
3751
3763
|
return i(), T("div", {
|
|
3752
3764
|
class: "hb_edit_header",
|
|
3753
|
-
style:
|
|
3765
|
+
style: re({ top: c.value + "px", "--pageHeaderOrFonterLeft": o.value + "px" })
|
|
3754
3766
|
}, [
|
|
3755
|
-
|
|
3756
|
-
|
|
3767
|
+
d("aside", xn, [
|
|
3768
|
+
d("a", {
|
|
3757
3769
|
href: "#",
|
|
3758
3770
|
class: "backBtn",
|
|
3759
3771
|
onClick: _
|
|
3760
3772
|
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3761
3773
|
S(I, { type: "vertical" }),
|
|
3762
|
-
|
|
3774
|
+
d("span", Fn, L(f.value), 1)
|
|
3763
3775
|
]),
|
|
3764
|
-
|
|
3776
|
+
d("aside", Hn, [
|
|
3765
3777
|
j(p.$slots, "right", {}, void 0, !0)
|
|
3766
3778
|
])
|
|
3767
3779
|
], 4);
|
|
@@ -3769,7 +3781,7 @@ const Bo = {
|
|
|
3769
3781
|
}
|
|
3770
3782
|
}), In = /* @__PURE__ */ X($n, [["__scopeId", "data-v-83fcd208"]]), Mn = _e(In), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3771
3783
|
__proto__: null,
|
|
3772
|
-
HbLibAnchor:
|
|
3784
|
+
HbLibAnchor: Ja,
|
|
3773
3785
|
HbLibCard: Va,
|
|
3774
3786
|
HbLibDetailBox: fn,
|
|
3775
3787
|
HbLibFooterBar: hn,
|
|
@@ -3777,7 +3789,7 @@ const Bo = {
|
|
|
3777
3789
|
HbLibPageHeader: Mn,
|
|
3778
3790
|
HbLibUnDetailBox: wn
|
|
3779
3791
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3780
|
-
let
|
|
3792
|
+
let vt = {
|
|
3781
3793
|
...Zo,
|
|
3782
3794
|
...la,
|
|
3783
3795
|
...fa,
|
|
@@ -3785,37 +3797,37 @@ let mt = {
|
|
|
3785
3797
|
...Fa,
|
|
3786
3798
|
...Dn
|
|
3787
3799
|
};
|
|
3788
|
-
const
|
|
3789
|
-
let
|
|
3790
|
-
el && (document.addEventListener("mousedown", (e) =>
|
|
3791
|
-
for (const t of
|
|
3800
|
+
const me = /* @__PURE__ */ new Map();
|
|
3801
|
+
let gt;
|
|
3802
|
+
el && (document.addEventListener("mousedown", (e) => gt = e), document.addEventListener("mouseup", (e) => {
|
|
3803
|
+
for (const t of me.values())
|
|
3792
3804
|
for (const { documentHandler: l } of t)
|
|
3793
|
-
l(e,
|
|
3805
|
+
l(e, gt);
|
|
3794
3806
|
}));
|
|
3795
|
-
function
|
|
3807
|
+
function yt(e, t) {
|
|
3796
3808
|
let l = [];
|
|
3797
|
-
return Array.isArray(t.arg) ? l = t.arg : t.arg instanceof HTMLElement && l.push(t.arg), function(n,
|
|
3798
|
-
const
|
|
3799
|
-
o || a || m || _ || p || $ || t.value(n,
|
|
3809
|
+
return Array.isArray(t.arg) ? l = t.arg : t.arg instanceof HTMLElement && l.push(t.arg), function(n, c) {
|
|
3810
|
+
const f = t.instance.popperRef, u = n.target, b = c?.target, o = !t || !t.instance, a = !u || !b, m = e.contains(u) || e.contains(b), _ = e === u, p = l.length && l.some((I) => I?.contains(u)) || l.length && l.includes(b), $ = f && (f.contains(u) || f.contains(b));
|
|
3811
|
+
o || a || m || _ || p || $ || t.value(n, c);
|
|
3800
3812
|
};
|
|
3801
3813
|
}
|
|
3802
3814
|
const An = {
|
|
3803
3815
|
beforeMount(e, t) {
|
|
3804
|
-
|
|
3805
|
-
documentHandler:
|
|
3816
|
+
me.has(e) || me.set(e, []), me.get(e).push({
|
|
3817
|
+
documentHandler: yt(e, t),
|
|
3806
3818
|
bindingFn: t.value
|
|
3807
3819
|
});
|
|
3808
3820
|
},
|
|
3809
3821
|
updated(e, t) {
|
|
3810
|
-
|
|
3811
|
-
const l =
|
|
3812
|
-
documentHandler:
|
|
3822
|
+
me.has(e) || me.set(e, []);
|
|
3823
|
+
const l = me.get(e), n = l.findIndex((f) => f.bindingFn === t.oldValue), c = {
|
|
3824
|
+
documentHandler: yt(e, t),
|
|
3813
3825
|
bindingFn: t.value
|
|
3814
3826
|
};
|
|
3815
|
-
n >= 0 ? l.splice(n, 1,
|
|
3827
|
+
n >= 0 ? l.splice(n, 1, c) : l.push(c);
|
|
3816
3828
|
},
|
|
3817
3829
|
unmounted(e) {
|
|
3818
|
-
|
|
3830
|
+
me.delete(e);
|
|
3819
3831
|
}
|
|
3820
3832
|
}, Bn = {
|
|
3821
3833
|
mounted(e, t) {
|
|
@@ -3824,20 +3836,20 @@ const An = {
|
|
|
3824
3836
|
console.warn("[v-debounce-click] 绑定值必须是一个函数");
|
|
3825
3837
|
return;
|
|
3826
3838
|
}
|
|
3827
|
-
const
|
|
3828
|
-
let
|
|
3829
|
-
e.__debounceHandler__ = function(...
|
|
3830
|
-
|
|
3831
|
-
l(...
|
|
3832
|
-
},
|
|
3839
|
+
const c = parseInt(n, 10) || 300;
|
|
3840
|
+
let f;
|
|
3841
|
+
e.__debounceHandler__ = function(...u) {
|
|
3842
|
+
f && clearTimeout(f), f = setTimeout(() => {
|
|
3843
|
+
l(...u);
|
|
3844
|
+
}, c);
|
|
3833
3845
|
}, e.addEventListener("click", e.__debounceHandler__);
|
|
3834
3846
|
},
|
|
3835
3847
|
unmounted(e) {
|
|
3836
3848
|
e.__debounceHandler__ && (e.removeEventListener("click", e.__debounceHandler__), delete e.__debounceHandler__);
|
|
3837
3849
|
}
|
|
3838
|
-
},
|
|
3850
|
+
}, _t = (e, t) => {
|
|
3839
3851
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
3840
|
-
const l = Et(
|
|
3852
|
+
const l = Et(Mt, {
|
|
3841
3853
|
cpText: t
|
|
3842
3854
|
});
|
|
3843
3855
|
l.mount(e._dynamicContainer), e._dynamicApp = l, e._dynamicPrevValue = t;
|
|
@@ -3847,39 +3859,39 @@ const An = {
|
|
|
3847
3859
|
const l = document.createElement("div");
|
|
3848
3860
|
l.style.display = "inline-flex", l.style.alignItems = "center", l.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(l, e.nextSibling), e._dynamicContainer = l;
|
|
3849
3861
|
}
|
|
3850
|
-
|
|
3862
|
+
_t(e, t.value);
|
|
3851
3863
|
},
|
|
3852
3864
|
updated(e, t) {
|
|
3853
|
-
t.value !== e._dynamicPrevValue &&
|
|
3865
|
+
t.value !== e._dynamicPrevValue && _t(e, t.value);
|
|
3854
3866
|
},
|
|
3855
3867
|
unmounted(e) {
|
|
3856
3868
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
3857
3869
|
}
|
|
3858
3870
|
}, zn = { cos: An, dc: Bn, icp: On }, En = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload", format: "Supported formats" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown", overTip1: "Currently has exceeded", overTip2: "Optional quantity, please delete the displayed conditions first", title: "Custom query conditions" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan", addScheme: "Add scenario", editScheme: "Edit plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings", reset: "reduction" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" }, HbImportFile: { clickUp: "Click to upload", downloadTemplate: "Click to download template", pleaseUploadFiles: "Please upload files", uploadText: "Drag files here or", fileLabel: "document", importBtn: "File upload" }, HbFuncCompCopy: { copy: "copy", copyFail: "Copy failed", copySuccess: "Copied successfully" }, HbLibDetailBox: { back: "return" } }, Pn = {
|
|
3859
3871
|
hbLibComp: En
|
|
3860
|
-
},
|
|
3861
|
-
hbLibComp:
|
|
3872
|
+
}, Nn = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください", format: "サポートされている形式" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件", overTip1: "現在は超えています", overTip2: "オプションの数量です。最初に表示されている条件を削除してください", title: "カスタムクエリ条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン", addScheme: "シナリオの追加", editScheme: "計画の編集" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定", reset: "削減" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" }, HbImportFile: { clickUp: "クリックしてアップロード", downloadTemplate: "クリックしてテンプレートをダウンロード", pleaseUploadFiles: "ファイルをアップロードしてください", uploadText: "ファイルをここにドラッグするか、", fileLabel: "書類", importBtn: "ファイルのアップロード" }, HbFuncCompCopy: { copy: "コピー", copyFail: "コピーに失敗しました", copySuccess: "正常にコピーされました" }, HbLibDetailBox: { back: "戻る" } }, Rn = {
|
|
3873
|
+
hbLibComp: Nn
|
|
3862
3874
|
}, Un = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索", title: "自定义查询条件", overTip1: "当前已经超过", overTip2: "个可选数量,请先删除已显示条件" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置", reset: "还原" }, hbLibListForm: { queryCase: "查询方案", addScheme: "添加方案", editScheme: "编辑方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载", format: "支持格式" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" }, HbImportFile: { uploadText: "将文件拖到此处或", clickUp: "请上传文件", downloadTemplate: "点击下载模板", pleaseUploadFiles: "请上传文件", fileLabel: "文件", importBtn: "文件上传" }, HbFuncCompCopy: { copySuccess: "复制成功", copyFail: "复制失败", copy: "复制" }, HbLibDetailBox: { back: "返回" } }, Vn = {
|
|
3863
3875
|
hbLibComp: Un
|
|
3864
3876
|
}, jn = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan", addScheme: "Szenario hinzufügen", editScheme: "Plan bearbeiten" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen", reset: "Reduktion" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren", importBtn: "Datei-Upload" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, Wn = {
|
|
3865
3877
|
hbLibComp: jn
|
|
3866
3878
|
};
|
|
3867
|
-
var Fe = { exports: {} }, Yn = Fe.exports,
|
|
3879
|
+
var Fe = { exports: {} }, Yn = Fe.exports, Lt;
|
|
3868
3880
|
function qn() {
|
|
3869
|
-
return
|
|
3881
|
+
return Lt || (Lt = 1, (function(e, t) {
|
|
3870
3882
|
(function(l, n) {
|
|
3871
3883
|
e.exports = n(Oe);
|
|
3872
3884
|
})(Yn, (function(l) {
|
|
3873
|
-
function n(
|
|
3874
|
-
return
|
|
3885
|
+
function n(u) {
|
|
3886
|
+
return u && typeof u == "object" && "default" in u ? u : { default: u };
|
|
3875
3887
|
}
|
|
3876
|
-
var
|
|
3877
|
-
return
|
|
3878
|
-
}, 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(
|
|
3879
|
-
var o = 100 *
|
|
3888
|
+
var c = n(l), f = { 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(u, b) {
|
|
3889
|
+
return b === "W" ? u + "周" : u + "日";
|
|
3890
|
+
}, 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(u, b) {
|
|
3891
|
+
var o = 100 * u + b;
|
|
3880
3892
|
return o < 600 ? "凌晨" : o < 900 ? "早上" : o < 1100 ? "上午" : o < 1300 ? "中午" : o < 1800 ? "下午" : "晚上";
|
|
3881
3893
|
} };
|
|
3882
|
-
return
|
|
3894
|
+
return c.default.locale(f, null, !0), f;
|
|
3883
3895
|
}));
|
|
3884
3896
|
})(Fe)), Fe.exports;
|
|
3885
3897
|
}
|
|
@@ -3887,14 +3899,14 @@ qn();
|
|
|
3887
3899
|
Oe.locale("zh-cn");
|
|
3888
3900
|
const oi = {
|
|
3889
3901
|
en_US: Pn,
|
|
3890
|
-
ja_JP:
|
|
3902
|
+
ja_JP: Rn,
|
|
3891
3903
|
zh_CN: Vn,
|
|
3892
3904
|
de_DE: Wn
|
|
3893
3905
|
}, ai = function(e, t = {}) {
|
|
3894
|
-
e.provide("globalCompConfig", t || {}), Object.keys(
|
|
3895
|
-
e.use(
|
|
3896
|
-
}), Object.entries(zn).forEach(([n,
|
|
3897
|
-
e.directive(n,
|
|
3906
|
+
e.provide("globalCompConfig", t || {}), Object.keys(vt).forEach((n) => {
|
|
3907
|
+
e.use(vt[n]);
|
|
3908
|
+
}), Object.entries(zn).forEach(([n, c]) => {
|
|
3909
|
+
e.directive(n, c);
|
|
3898
3910
|
});
|
|
3899
3911
|
};
|
|
3900
3912
|
export {
|