@hb-hellotech/hb-ui 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/file_comp/import_file/index.d.ts +1 -0
- package/dist/components/business_comp/file_comp/import_file/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/utils.d.ts +1 -1
- package/dist/components/business_comp/unlist_page_comp/utils.d.ts.map +1 -1
- package/dist/components/utils/withInstall.d.ts +14 -1
- package/dist/components/utils/withInstall.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +942 -938
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/shims-vue.d.ts +5 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import
|
|
8
|
-
import { CloseOutlined as
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const o = `${
|
|
13
|
-
return
|
|
14
|
-
},
|
|
2
|
+
import { defineComponent as J, inject as be, computed as z, reactive as ke, ref as E, watch as oe, onMounted as fe, createElementBlock as T, openBlock as i, normalizeClass as q, unref as L, createVNode as w, withCtx as s, createElementVNode as c, toDisplayString as C, createTextVNode as A, createBlock as P, createCommentVNode as N, Fragment as K, renderList as ne, resolveComponent as V, Transition as It, withDirectives as ue, mergeProps as ee, createSlots as Le, renderSlot as j, vShow as Mt, nextTick as ye, onUnmounted as Se, useTemplateRef as Dt, provide as yt, normalizeStyle as se, mergeModels as Pe, useModel as _t, withModifiers as xe, resolveDirective as Lt, useAttrs as Bt, useSlots as At, onBeforeUnmount as Ke, watchEffect as Ct, resolveDynamicComponent as kt, shallowRef as Ot, createStaticVNode as Et, createApp as zt } from "vue";
|
|
3
|
+
import Fe from "vuedraggable";
|
|
4
|
+
import { Modal as Ue, Button as Ve, message as Ce, Tooltip as $e, Switch as Xe, Radio as et, RadioGroup as tt, InputNumber as ot, DatePicker as lt, Checkbox as Ie, CheckboxGroup as at, Select as We, Input as nt, Col as Nt, Row as Rt, FormItem as it, Form as st, SelectOption as je, Popconfirm as Ne, MenuItem as rt, Menu as ct, Dropdown as dt, Popover as Pt, BackTop as St, Spin as Ut } from "ant-design-vue";
|
|
5
|
+
import { useRoute as Ge } from "vue-router";
|
|
6
|
+
import { useI18n as ce } from "vue-i18n";
|
|
7
|
+
import ge, { merge as Vt } from "lodash";
|
|
8
|
+
import { CloseOutlined as Wt, QuestionCircleOutlined as jt, SearchOutlined as Me, UpCircleOutlined as Yt, DownCircleOutlined as qt, UnorderedListOutlined as Kt, DownOutlined as Ye, PlusCircleOutlined as Gt, ToTopOutlined as Tt } from "@ant-design/icons-vue";
|
|
9
|
+
import { useFullscreen as wt, useDebounceFn as Jt, useElementBounding as Qt, useScroll as Zt, useDraggable as Xt, isClient as eo } from "@vueuse/core";
|
|
10
|
+
import Be from "dayjs";
|
|
11
|
+
const to = "hb-", Je = (e = "") => {
|
|
12
|
+
const o = `${to}${e}`;
|
|
13
|
+
return oo(o);
|
|
14
|
+
}, ve = (e, o, t, n) => (o && (e += `-${o}`), t && (e += `__${t}`), n && (e += `--${n}`), e), oo = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (o) => o ?
|
|
16
|
+
b: (o) => o ? ve(e, o, "", "") : ve(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (o) => o ?
|
|
18
|
+
e: (o) => o ? ve(e, "", o, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (o) =>
|
|
20
|
+
m: (o) => ve(e, "", "", o),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (o, t) =>
|
|
22
|
+
be: (o, t) => ve(e, o, t, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (o, t) =>
|
|
24
|
+
em: (o, t) => ve(e, "", o, t),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (o, t, n) =>
|
|
26
|
+
bem: (o, t, n) => ve(e, o, t, n),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (o, t) => t ? `is-${o}` : ""
|
|
29
|
-
}),
|
|
29
|
+
}), lo = ["onMouseenter", "onMouseleave"], ao = ["onClick"], no = /* @__PURE__ */ J({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -39,78 +39,78 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: o, emit: t }) {
|
|
42
|
-
const n =
|
|
42
|
+
const n = be("globalCompConfig", {}), u = ce().t, d = ce().messages.value.en_US, r = ce().messages.value.ja_JP, h = ce().messages.value.zh_CN, a = e, l = z(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), v = z(() => a.title || u("hbLibComp.hbFormItemFilterModal.title")), g = t, p = Je("sfcm"), B = Ge(), $ = ke({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), U = E(!1), D = E(600);
|
|
45
45
|
let k = [];
|
|
46
|
-
const y = E([]), H = E([]), F = z(() => y.value.every((
|
|
47
|
-
...
|
|
48
|
-
label: x(
|
|
49
|
-
key:
|
|
50
|
-
isFixed:
|
|
51
|
-
isLinked:
|
|
52
|
-
labelLanguage:
|
|
53
|
-
}), _ = (
|
|
54
|
-
const W =
|
|
46
|
+
const y = E([]), H = E([]), F = z(() => y.value.every((f) => f.isLinked || f.isFixed)), S = (f) => ({
|
|
47
|
+
...f,
|
|
48
|
+
label: x(f) || `${O(f) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
|
+
key: f.key,
|
|
50
|
+
isFixed: f?.isFixed || !1,
|
|
51
|
+
isLinked: f?.isLinked || !1,
|
|
52
|
+
labelLanguage: f?.labelLanguage || void 0
|
|
53
|
+
}), _ = (f) => {
|
|
54
|
+
const W = f.draggedContext.element, I = f.relatedContext.index;
|
|
55
55
|
if (W.isLinked || W.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const Z = y.value.map((ae, pe) => ({ item: ae, index: pe })).filter(({ item: ae }) => ae.isLinked).map(({ index: ae }) => ae);
|
|
58
|
+
if (Z.length === 0)
|
|
59
59
|
return !0;
|
|
60
|
-
for (let ae = 0; ae <
|
|
61
|
-
const pe =
|
|
62
|
-
if (I > pe && I <
|
|
60
|
+
for (let ae = 0; ae < Z.length - 1; ae++) {
|
|
61
|
+
const pe = Z[ae], me = Z[ae + 1];
|
|
62
|
+
if (I > pe && I < me)
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, b = z(() =>
|
|
67
|
-
const
|
|
66
|
+
}, b = z(() => m() + "_" + a.saveKey), m = () => {
|
|
67
|
+
const f = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let W = "anonymous";
|
|
69
|
-
if (
|
|
69
|
+
if (f)
|
|
70
70
|
try {
|
|
71
|
-
W = JSON.parse(
|
|
72
|
-
} catch (
|
|
73
|
-
console.warn("解析用户信息失败:",
|
|
71
|
+
W = JSON.parse(f).value.jobNumber || "anonymous";
|
|
72
|
+
} catch (Z) {
|
|
73
|
+
console.warn("解析用户信息失败:", Z);
|
|
74
74
|
}
|
|
75
75
|
let I = B?.path;
|
|
76
76
|
return `searchFormConfig_${W}_${I}`;
|
|
77
|
-
}, x = (
|
|
78
|
-
ja_JP: () =>
|
|
79
|
-
en_US: () =>
|
|
80
|
-
zh_CN: () =>
|
|
81
|
-
})[$.lan]?.() ||
|
|
82
|
-
ja_JP: () =>
|
|
83
|
-
en_US: () =>
|
|
84
|
-
zh_CN: () =>
|
|
85
|
-
})[$.lan]?.() ||
|
|
77
|
+
}, x = (f) => ({
|
|
78
|
+
ja_JP: () => ge.get(r, f.labelLanguage || ""),
|
|
79
|
+
en_US: () => ge.get(d, f.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => ge.get(h, f.labelLanguage || "")
|
|
81
|
+
})[$.lan]?.() || f.label, O = (f) => ({
|
|
82
|
+
ja_JP: () => ge.get(r, f.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => ge.get(d, f.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => ge.get(h, f.subLabelLanguage || "")
|
|
85
|
+
})[$.lan]?.() || f.subLabel, G = () => {
|
|
86
86
|
try {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
k = JSON.parse(JSON.stringify(
|
|
92
|
-
const
|
|
93
|
-
...S(
|
|
94
|
-
})),
|
|
95
|
-
...S(
|
|
96
|
-
})),
|
|
97
|
-
...S(
|
|
87
|
+
const f = localStorage.getItem(b.value);
|
|
88
|
+
if (f) {
|
|
89
|
+
const W = JSON.parse(f);
|
|
90
|
+
if (W.originalList && Array.isArray(W.originalList)) {
|
|
91
|
+
k = JSON.parse(JSON.stringify(W.originalList));
|
|
92
|
+
const I = k.filter((Y) => Y?.isFixed), Z = k.filter((Y) => Y?.isLinked), ae = W.showList.filter((Y) => !Y.isFixed && !Y.isLinked), pe = l.value && l.value > 0 ? Math.max(0, l.value - I.length - Z.length) : ae.length, me = I.map((Y) => ({
|
|
93
|
+
...S(Y)
|
|
94
|
+
})), we = Z.map((Y) => ({
|
|
95
|
+
...S(Y)
|
|
96
|
+
})), Oe = ae.slice(0, pe).map((Y) => ({
|
|
97
|
+
...S(Y)
|
|
98
98
|
}));
|
|
99
|
-
y.value = [...
|
|
100
|
-
const
|
|
101
|
-
return H.value = k.filter((
|
|
102
|
-
...S(
|
|
99
|
+
y.value = [...me, ...we, ...Oe];
|
|
100
|
+
const Ee = y.value.map((Y) => Y.key), ze = k.map((Y) => Y.key).filter((Y) => !Ee.includes(Y));
|
|
101
|
+
return H.value = k.filter((Y) => ze.includes(Y.key)).map((Y) => ({
|
|
102
|
+
...S(Y),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
} catch (
|
|
108
|
-
console.warn("加载保存的搜索配置失败:",
|
|
107
|
+
} catch (f) {
|
|
108
|
+
console.warn("加载保存的搜索配置失败:", f);
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
|
-
},
|
|
111
|
+
}, ie = () => {
|
|
112
112
|
try {
|
|
113
|
-
const
|
|
113
|
+
const f = {
|
|
114
114
|
originalList: k,
|
|
115
115
|
showList: y.value.map((W) => ({
|
|
116
116
|
...W,
|
|
@@ -121,113 +121,113 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
121
121
|
labelLanguage: W?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(b.value, JSON.stringify(
|
|
125
|
-
} catch (
|
|
126
|
-
console.warn("保存搜索配置失败:",
|
|
124
|
+
localStorage.setItem(b.value, JSON.stringify(f));
|
|
125
|
+
} catch (f) {
|
|
126
|
+
console.warn("保存搜索配置失败:", f);
|
|
127
127
|
}
|
|
128
128
|
}, M = z(() => {
|
|
129
|
-
const
|
|
130
|
-
return
|
|
129
|
+
const f = y.value.filter((I) => !I.isFixed && !I.isLinked).length, W = y.value.filter((I) => I.isFixed || I.isLinked).length;
|
|
130
|
+
return f >= l.value - W;
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
oe(
|
|
133
133
|
() => a.list,
|
|
134
|
-
(
|
|
135
|
-
let W = JSON.stringify(y.value) !== JSON.stringify(
|
|
134
|
+
(f) => {
|
|
135
|
+
let W = JSON.stringify(y.value) !== JSON.stringify(f);
|
|
136
136
|
if (!W)
|
|
137
137
|
return;
|
|
138
|
-
const I = localStorage.getItem(b.value),
|
|
139
|
-
if (
|
|
140
|
-
|
|
138
|
+
const I = localStorage.getItem(b.value), Z = JSON.parse(I || "{}");
|
|
139
|
+
if (Z && Z?.originalList && Array.isArray(Z.originalList))
|
|
140
|
+
G(), g("confirm", y.value);
|
|
141
141
|
else if (W) {
|
|
142
|
-
k = JSON.parse(JSON.stringify(
|
|
143
|
-
const ae =
|
|
144
|
-
y.value = [...
|
|
145
|
-
const
|
|
146
|
-
...S(
|
|
142
|
+
k = JSON.parse(JSON.stringify(f));
|
|
143
|
+
const ae = f.filter((Y) => Y?.isFixed), pe = f.filter((Y) => Y?.isLinked), me = f.filter((Y) => !Y?.isFixed && !Y?.isLinked), we = l.value && l.value > 0 ? Math.max(0, l.value - ae.length - pe.length) : me.length, Oe = ae.map((Y) => S(Y)), Ee = pe.map((Y) => S(Y)), Ze = me.slice(0, we).map((Y) => S(Y));
|
|
144
|
+
y.value = [...Oe, ...Ee, ...Ze];
|
|
145
|
+
const ze = me.slice(we).map((Y) => ({
|
|
146
|
+
...S(Y),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
H.value =
|
|
149
|
+
H.value = ze, g("confirm", y.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const R = (
|
|
155
|
-
const W = y.value.findIndex((I) => I.key ===
|
|
156
|
-
W !== -1 && (y.value.splice(W, 1), H.value.push({ ...
|
|
157
|
-
},
|
|
154
|
+
const R = (f) => {
|
|
155
|
+
const W = y.value.findIndex((I) => I.key === f.key);
|
|
156
|
+
W !== -1 && (y.value.splice(W, 1), H.value.push({ ...f, active: !1 }));
|
|
157
|
+
}, te = (f) => {
|
|
158
158
|
if (M.value) {
|
|
159
|
-
|
|
159
|
+
Ce.warning(`当前已经超过${u(l.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const W = H.value.findIndex((I) => I.key ===
|
|
162
|
+
const W = H.value.findIndex((I) => I.key === f.key);
|
|
163
163
|
if (W !== -1) {
|
|
164
164
|
const [I] = H.value.splice(W, 1);
|
|
165
165
|
y.value.push({ ...I, active: !1 });
|
|
166
166
|
}
|
|
167
167
|
}, le = () => {
|
|
168
168
|
U.value = !1;
|
|
169
|
-
},
|
|
169
|
+
}, re = () => {
|
|
170
170
|
U.value = !0;
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
const W = H.value.findIndex((I) => I.key ===
|
|
171
|
+
}, de = () => {
|
|
172
|
+
ie(), g("confirm", y.value), le();
|
|
173
|
+
}, Te = (f) => {
|
|
174
|
+
const W = H.value.findIndex((I) => I.key === f.key);
|
|
175
175
|
W !== -1 && (H.value[W].active = !0);
|
|
176
|
-
},
|
|
177
|
-
const W = H.value.findIndex((I) => I.key ===
|
|
176
|
+
}, Ae = (f) => {
|
|
177
|
+
const W = H.value.findIndex((I) => I.key === f.key);
|
|
178
178
|
W !== -1 && (H.value[W].active = !1);
|
|
179
179
|
};
|
|
180
180
|
return o({
|
|
181
|
-
toOpenModal:
|
|
182
|
-
}),
|
|
183
|
-
}), (
|
|
184
|
-
class:
|
|
181
|
+
toOpenModal: re
|
|
182
|
+
}), fe(() => {
|
|
183
|
+
}), (f, W) => (i(), T("div", {
|
|
184
|
+
class: q(L(p).b())
|
|
185
185
|
}, [
|
|
186
|
-
w(L(
|
|
186
|
+
w(L(Ue), {
|
|
187
187
|
visible: U.value,
|
|
188
188
|
"onUpdate:visible": W[1] || (W[1] = (I) => U.value = I),
|
|
189
189
|
width: D.value,
|
|
190
190
|
onCancel: le,
|
|
191
|
-
onOk:
|
|
191
|
+
onOk: de
|
|
192
192
|
}, {
|
|
193
193
|
title: s(() => [
|
|
194
194
|
c("div", {
|
|
195
|
-
class:
|
|
195
|
+
class: q(L(p).e("title"))
|
|
196
196
|
}, C(v.value), 3)
|
|
197
197
|
]),
|
|
198
198
|
footer: s(() => [
|
|
199
|
-
w(L(
|
|
199
|
+
w(L(Ve), { onClick: le }, {
|
|
200
200
|
default: s(() => [
|
|
201
|
-
A(C(
|
|
201
|
+
A(C(f.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
205
|
-
w(L(
|
|
205
|
+
w(L(Ve), {
|
|
206
206
|
type: "primary",
|
|
207
|
-
onClick:
|
|
207
|
+
onClick: de
|
|
208
208
|
}, {
|
|
209
209
|
default: s(() => [
|
|
210
|
-
A(C(
|
|
210
|
+
A(C(f.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
})
|
|
214
214
|
]),
|
|
215
215
|
default: s(() => [
|
|
216
216
|
c("section", {
|
|
217
|
-
class:
|
|
217
|
+
class: q(L(p).e("show"))
|
|
218
218
|
}, [
|
|
219
219
|
c("div", {
|
|
220
|
-
class:
|
|
220
|
+
class: q(L(p).e("show__title"))
|
|
221
221
|
}, [
|
|
222
222
|
c("span", {
|
|
223
|
-
class:
|
|
224
|
-
}, C(
|
|
225
|
-
c("span", null, C(
|
|
223
|
+
class: q(L(p).e("title__tip"))
|
|
224
|
+
}, C(f.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
225
|
+
c("span", null, C(f.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(l.value) + C(f.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
226
226
|
], 2),
|
|
227
227
|
c("div", {
|
|
228
|
-
class:
|
|
228
|
+
class: q(L(p).e("show__tag"))
|
|
229
229
|
}, [
|
|
230
|
-
w(L(
|
|
230
|
+
w(L(Fe), {
|
|
231
231
|
modelValue: y.value,
|
|
232
232
|
"onUpdate:modelValue": W[0] || (W[0] = (I) => y.value = I),
|
|
233
233
|
"item-key": "key",
|
|
@@ -237,13 +237,13 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
237
237
|
}, {
|
|
238
238
|
item: s(({ element: I }) => [
|
|
239
239
|
c("div", {
|
|
240
|
-
class:
|
|
240
|
+
class: q([L(p).e("show__tag__item"), L(p).is("fixed", I.isFixed), L(p).is("linked", I.isLinked)])
|
|
241
241
|
}, [
|
|
242
242
|
A(C(I.label) + " ", 1),
|
|
243
|
-
!I.isFixed && !I.isLinked && e.list.length > 1 ? (i(), P(L(
|
|
243
|
+
!I.isFixed && !I.isLinked && e.list.length > 1 ? (i(), P(L(Wt), {
|
|
244
244
|
key: 0,
|
|
245
|
-
class:
|
|
246
|
-
onClick: (
|
|
245
|
+
class: q(L(p).e("show__tag__item-close")),
|
|
246
|
+
onClick: (Z) => R(I)
|
|
247
247
|
}, null, 8, ["class", "onClick"])) : N("", !0)
|
|
248
248
|
], 2)
|
|
249
249
|
]),
|
|
@@ -252,34 +252,34 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
252
252
|
], 2)
|
|
253
253
|
], 2),
|
|
254
254
|
c("section", {
|
|
255
|
-
class:
|
|
255
|
+
class: q(L(p).e("unshow"))
|
|
256
256
|
}, [
|
|
257
257
|
c("div", {
|
|
258
|
-
class:
|
|
258
|
+
class: q(L(p).e("show__title"))
|
|
259
259
|
}, [
|
|
260
260
|
c("span", {
|
|
261
|
-
class:
|
|
262
|
-
}, C(
|
|
261
|
+
class: q(L(p).e("title__tip"))
|
|
262
|
+
}, C(f.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
263
263
|
], 2),
|
|
264
264
|
c("div", {
|
|
265
|
-
class:
|
|
265
|
+
class: q(L(p).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
|
-
H.value.length > 0 ? (i(!0), T(
|
|
267
|
+
H.value.length > 0 ? (i(!0), T(K, { key: 0 }, ne(H.value, (I) => (i(), T("div", {
|
|
268
268
|
key: I.key,
|
|
269
|
-
class:
|
|
270
|
-
onMouseenter: (
|
|
271
|
-
onMouseleave: (
|
|
269
|
+
class: q([L(p).e("unshow__tag__item"), L(p).is("fixed", I.isFixed || ""), L(p).is("linked", I.isLinked || "")]),
|
|
270
|
+
onMouseenter: (Z) => Te(I),
|
|
271
|
+
onMouseleave: (Z) => Ae(I)
|
|
272
272
|
}, [
|
|
273
273
|
A(C(I.label) + " ", 1),
|
|
274
274
|
I.active ? (i(), T("aside", {
|
|
275
275
|
key: 0,
|
|
276
|
-
class:
|
|
277
|
-
onClick: (
|
|
278
|
-
}, C(
|
|
279
|
-
], 42,
|
|
276
|
+
class: q(L(p).e("unshow__tag__item-add")),
|
|
277
|
+
onClick: (Z) => te(I)
|
|
278
|
+
}, C(f.$t("hbLibComp.hbFormItemFilterModal.add")), 11, ao)) : N("", !0)
|
|
279
|
+
], 42, lo))), 128)) : (i(), T("div", {
|
|
280
280
|
key: 1,
|
|
281
|
-
class:
|
|
282
|
-
}, C(
|
|
281
|
+
class: q(L(p).e("unshow__tag__empty"))
|
|
282
|
+
}, C(f.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
283
283
|
], 2)
|
|
284
284
|
], 2)
|
|
285
285
|
]),
|
|
@@ -287,17 +287,23 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
287
287
|
}, 8, ["visible", "width"])
|
|
288
288
|
], 2));
|
|
289
289
|
}
|
|
290
|
-
}),
|
|
290
|
+
}), X = (e, o) => {
|
|
291
291
|
const t = e.__vccOpts || e;
|
|
292
292
|
for (const [n, u] of o)
|
|
293
293
|
t[n] = u;
|
|
294
294
|
return t;
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
}, io = /* @__PURE__ */ X(no, [["__scopeId", "data-v-657502f3"]]);
|
|
296
|
+
function Q(e) {
|
|
297
|
+
const o = e;
|
|
298
|
+
return o.install = (t) => {
|
|
299
|
+
const n = e.name;
|
|
300
|
+
t.component(n ?? "AnonymousComponent", e);
|
|
301
|
+
}, o;
|
|
302
|
+
}
|
|
303
|
+
const so = Q(io), ro = {
|
|
298
304
|
key: 0,
|
|
299
305
|
class: "form-footer"
|
|
300
|
-
},
|
|
306
|
+
}, co = /* @__PURE__ */ J({
|
|
301
307
|
name: "HbLibListForm",
|
|
302
308
|
__name: "HbListForm",
|
|
303
309
|
props: {
|
|
@@ -330,7 +336,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
330
336
|
},
|
|
331
337
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
338
|
setup(e, { expose: o, emit: t }) {
|
|
333
|
-
const n =
|
|
339
|
+
const n = be("globalCompConfig", {}), u = t, d = be("HB_LIST_PAGE_CONTAINER"), r = z(() => a.searchList || []), h = Je("form"), a = e, l = z(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), v = E("show"), g = z(() => a.needFooter || n.HbLibListForm?.needFooter), p = z(() => [...a.items]), B = (M) => M !== void 0, $ = (M) => typeof M == "function", U = (M) => B(M.condition) ? $(M.condition) ? M.condition() : M.condition : !0, D = z(() => [...a.items].map((M) => ({
|
|
334
340
|
...M,
|
|
335
341
|
condition: U(M),
|
|
336
342
|
label: M.label?.includes("多项搜索") ? "" : M.label
|
|
@@ -344,10 +350,10 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
344
350
|
S.value && S.value.toOpenModal();
|
|
345
351
|
}, b = (M) => {
|
|
346
352
|
u("handleMenuClick", M);
|
|
347
|
-
},
|
|
353
|
+
}, m = (M) => {
|
|
348
354
|
u("handleSfcmConfirm", M);
|
|
349
355
|
};
|
|
350
|
-
|
|
356
|
+
oe(
|
|
351
357
|
() => a.isFormExpanded,
|
|
352
358
|
(M) => {
|
|
353
359
|
if (M) {
|
|
@@ -364,96 +370,96 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
364
370
|
R.style.height = "", R.offsetHeight;
|
|
365
371
|
}, O = (M) => {
|
|
366
372
|
const R = M;
|
|
367
|
-
R.style.height = "", R.style.overflow = "",
|
|
373
|
+
R.style.height = "", R.style.overflow = "", ye(() => {
|
|
368
374
|
d.calTableHeight && d.calTableHeight();
|
|
369
375
|
});
|
|
370
|
-
},
|
|
371
|
-
const R = M,
|
|
372
|
-
if (
|
|
373
|
-
const le =
|
|
376
|
+
}, G = (M) => {
|
|
377
|
+
const R = M, te = R.querySelector(".hb-lib-form--container");
|
|
378
|
+
if (te) {
|
|
379
|
+
const le = te.offsetHeight;
|
|
374
380
|
R.style.height = le + "px", R.style.overflow = "hidden", R.offsetHeight, requestAnimationFrame(() => {
|
|
375
381
|
R.style.height = "0";
|
|
376
382
|
});
|
|
377
383
|
}
|
|
378
|
-
},
|
|
379
|
-
|
|
384
|
+
}, ie = () => {
|
|
385
|
+
ye(() => {
|
|
380
386
|
d.calTableHeight && d.calTableHeight();
|
|
381
387
|
});
|
|
382
388
|
};
|
|
383
389
|
return o({
|
|
384
390
|
formRef: y,
|
|
385
|
-
SelectOption:
|
|
386
|
-
Form:
|
|
387
|
-
FormItem:
|
|
388
|
-
Row:
|
|
389
|
-
Col:
|
|
390
|
-
Input:
|
|
391
|
-
Select:
|
|
392
|
-
CheckboxGroup:
|
|
393
|
-
Checkbox:
|
|
394
|
-
DatePicker:
|
|
395
|
-
InputNumber:
|
|
396
|
-
RadioGroup:
|
|
397
|
-
Radio:
|
|
398
|
-
Switch:
|
|
399
|
-
Button:
|
|
400
|
-
Tooltip:
|
|
391
|
+
SelectOption: je,
|
|
392
|
+
Form: st,
|
|
393
|
+
FormItem: it,
|
|
394
|
+
Row: Rt,
|
|
395
|
+
Col: Nt,
|
|
396
|
+
Input: nt,
|
|
397
|
+
Select: We,
|
|
398
|
+
CheckboxGroup: at,
|
|
399
|
+
Checkbox: Ie,
|
|
400
|
+
DatePicker: lt,
|
|
401
|
+
InputNumber: ot,
|
|
402
|
+
RadioGroup: tt,
|
|
403
|
+
Radio: et,
|
|
404
|
+
Switch: Xe,
|
|
405
|
+
Button: Ve,
|
|
406
|
+
Tooltip: $e
|
|
401
407
|
}), (M, R) => {
|
|
402
|
-
const
|
|
403
|
-
return i(), T(
|
|
404
|
-
w(
|
|
408
|
+
const te = V("a-button"), le = V("a-tooltip"), re = V("a-menu-item"), de = V("a-menu"), Te = V("a-dropdown"), Ae = V("HbLibFormItemFilterModal");
|
|
409
|
+
return i(), T(K, null, [
|
|
410
|
+
w(It, {
|
|
405
411
|
name: "form-collapse",
|
|
406
412
|
onEnter: x,
|
|
407
413
|
onAfterEnter: O,
|
|
408
|
-
onLeave:
|
|
409
|
-
onAfterLeave:
|
|
414
|
+
onLeave: G,
|
|
415
|
+
onAfterLeave: ie
|
|
410
416
|
}, {
|
|
411
417
|
default: s(() => [
|
|
412
|
-
|
|
413
|
-
class:
|
|
418
|
+
ue(c("div", {
|
|
419
|
+
class: q([L(h).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", g.value ? "isNeedFooterCss" : ""])
|
|
414
420
|
}, [
|
|
415
|
-
w(L(
|
|
421
|
+
w(L(st), ee(M.$attrs, {
|
|
416
422
|
model: e.formData,
|
|
417
423
|
ref_key: "formRef",
|
|
418
424
|
ref: y,
|
|
419
425
|
class: ["hb-lib-form--container", v.value == "show" ? "" : "hide"]
|
|
420
426
|
}), {
|
|
421
427
|
default: s(() => [
|
|
422
|
-
(i(!0), T(
|
|
423
|
-
|
|
428
|
+
(i(!0), T(K, null, ne(D.value, (f, W) => (i(), T(K, { key: W }, [
|
|
429
|
+
f.condition ? (i(), P(L(it), ee({
|
|
424
430
|
key: 0,
|
|
425
431
|
ref_for: !0
|
|
426
|
-
},
|
|
427
|
-
name:
|
|
432
|
+
}, f, {
|
|
433
|
+
name: f.key,
|
|
428
434
|
class: {
|
|
429
|
-
"hb-lib-form-item-border--unneed":
|
|
430
|
-
"hb_lib_form_item--needShowAll":
|
|
435
|
+
"hb-lib-form-item-border--unneed": f.isUnNeedBorder,
|
|
436
|
+
"hb_lib_form_item--needShowAll": f.showAll
|
|
431
437
|
}
|
|
432
|
-
}),
|
|
438
|
+
}), Le({
|
|
433
439
|
default: s(() => [
|
|
434
|
-
|
|
440
|
+
f.type === "slot" ? j(M.$slots, f.key, {
|
|
435
441
|
key: 0,
|
|
436
442
|
formData: e.formData,
|
|
437
|
-
item:
|
|
443
|
+
item: f
|
|
438
444
|
}, void 0, !0) : N("", !0),
|
|
439
|
-
|
|
445
|
+
f.type === "mixin" ? j(M.$slots, f.key, {
|
|
440
446
|
key: 1,
|
|
441
447
|
formData: e.formData,
|
|
442
|
-
item:
|
|
448
|
+
item: f
|
|
443
449
|
}, void 0, !0) : N("", !0),
|
|
444
|
-
|
|
450
|
+
f.type === "input" ? (i(), P(L(nt), ee({
|
|
445
451
|
key: 2,
|
|
446
|
-
value: e.formData[
|
|
447
|
-
"onUpdate:value": (I) => e.formData[
|
|
448
|
-
}, { ref_for: !0 },
|
|
449
|
-
|
|
452
|
+
value: e.formData[f.key],
|
|
453
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
454
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
455
|
+
f.type === "select" ? (i(), P(L(We), ee({
|
|
450
456
|
key: 3,
|
|
451
|
-
value: e.formData[
|
|
452
|
-
"onUpdate:value": (I) => e.formData[
|
|
453
|
-
}, { ref_for: !0 },
|
|
457
|
+
value: e.formData[f.key],
|
|
458
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
459
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
454
460
|
default: s(() => [
|
|
455
|
-
(i(!0), T(
|
|
456
|
-
key:
|
|
461
|
+
(i(!0), T(K, null, ne(f.options, (I, Z) => (i(), P(L(je), {
|
|
462
|
+
key: Z,
|
|
457
463
|
value: I.value
|
|
458
464
|
}, {
|
|
459
465
|
default: s(() => [
|
|
@@ -464,14 +470,14 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
464
470
|
]),
|
|
465
471
|
_: 2
|
|
466
472
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
467
|
-
|
|
473
|
+
f.type === "checkbox" ? (i(), P(L(at), ee({
|
|
468
474
|
key: 4,
|
|
469
|
-
value: e.formData[
|
|
470
|
-
"onUpdate:value": (I) => e.formData[
|
|
471
|
-
}, { ref_for: !0 },
|
|
475
|
+
value: e.formData[f.key],
|
|
476
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
477
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
472
478
|
default: s(() => [
|
|
473
|
-
(i(!0), T(
|
|
474
|
-
key:
|
|
479
|
+
(i(!0), T(K, null, ne(f.options, (I, Z) => (i(), P(L(Ie), {
|
|
480
|
+
key: Z,
|
|
475
481
|
value: I.value
|
|
476
482
|
}, {
|
|
477
483
|
default: s(() => [
|
|
@@ -482,24 +488,24 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
482
488
|
]),
|
|
483
489
|
_: 2
|
|
484
490
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
485
|
-
|
|
491
|
+
f.type === "date-picker" ? (i(), P(L(lt), ee({
|
|
486
492
|
key: 5,
|
|
487
|
-
value: e.formData[
|
|
488
|
-
"onUpdate:value": (I) => e.formData[
|
|
489
|
-
}, { ref_for: !0 },
|
|
490
|
-
|
|
493
|
+
value: e.formData[f.key],
|
|
494
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
495
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
496
|
+
f.type === "input-number" ? (i(), P(L(ot), ee({
|
|
491
497
|
key: 6,
|
|
492
|
-
value: e.formData[
|
|
493
|
-
"onUpdate:value": (I) => e.formData[
|
|
494
|
-
}, { ref_for: !0 },
|
|
495
|
-
|
|
498
|
+
value: e.formData[f.key],
|
|
499
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
500
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
501
|
+
f.type === "radio" ? (i(), P(L(tt), ee({
|
|
496
502
|
key: 7,
|
|
497
|
-
value: e.formData[
|
|
498
|
-
"onUpdate:value": (I) => e.formData[
|
|
499
|
-
}, { ref_for: !0 },
|
|
503
|
+
value: e.formData[f.key],
|
|
504
|
+
"onUpdate:value": (I) => e.formData[f.key] = I
|
|
505
|
+
}, { ref_for: !0 }, f.attrs), {
|
|
500
506
|
default: s(() => [
|
|
501
|
-
(i(!0), T(
|
|
502
|
-
key:
|
|
507
|
+
(i(!0), T(K, null, ne(f.options, (I, Z) => (i(), P(L(et), {
|
|
508
|
+
key: Z,
|
|
503
509
|
value: I.value
|
|
504
510
|
}, {
|
|
505
511
|
default: s(() => [
|
|
@@ -510,23 +516,23 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
510
516
|
]),
|
|
511
517
|
_: 2
|
|
512
518
|
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
513
|
-
|
|
519
|
+
f.type === "switch" ? (i(), P(L(Xe), ee({
|
|
514
520
|
key: 8,
|
|
515
|
-
checked: e.formData[
|
|
516
|
-
"onUpdate:checked": (I) => e.formData[
|
|
517
|
-
}, { ref_for: !0 },
|
|
521
|
+
checked: e.formData[f.key],
|
|
522
|
+
"onUpdate:checked": (I) => e.formData[f.key] = I
|
|
523
|
+
}, { ref_for: !0 }, f.attrs), null, 16, ["checked", "onUpdate:checked"])) : N("", !0)
|
|
518
524
|
]),
|
|
519
525
|
_: 2
|
|
520
526
|
}, [
|
|
521
|
-
|
|
527
|
+
f.tooltip ? {
|
|
522
528
|
name: "label",
|
|
523
529
|
fn: s(() => [
|
|
524
|
-
A(C(
|
|
525
|
-
w(L(
|
|
526
|
-
title:
|
|
530
|
+
A(C(f.label) + " ", 1),
|
|
531
|
+
w(L($e), {
|
|
532
|
+
title: f.tooltip
|
|
527
533
|
}, {
|
|
528
534
|
default: s(() => [
|
|
529
|
-
w(L(
|
|
535
|
+
w(L(jt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
530
536
|
]),
|
|
531
537
|
_: 1
|
|
532
538
|
}, 8, ["title"])
|
|
@@ -535,21 +541,21 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
535
541
|
} : void 0
|
|
536
542
|
]), 1040, ["name", "class"])) : N("", !0)
|
|
537
543
|
], 64))), 128)),
|
|
538
|
-
g.value ? N("", !0) : (i(), T("section",
|
|
539
|
-
w(
|
|
544
|
+
g.value ? N("", !0) : (i(), T("section", ro, [
|
|
545
|
+
w(te, {
|
|
540
546
|
type: "primary",
|
|
541
547
|
onClick: H,
|
|
542
548
|
class: "hb_list_page_button"
|
|
543
549
|
}, {
|
|
544
550
|
icon: s(() => [
|
|
545
|
-
w(L(
|
|
551
|
+
w(L(Me))
|
|
546
552
|
]),
|
|
547
553
|
default: s(() => [
|
|
548
554
|
A(" " + C(M.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
549
555
|
]),
|
|
550
556
|
_: 1
|
|
551
557
|
}),
|
|
552
|
-
w(
|
|
558
|
+
w(te, {
|
|
553
559
|
type: "link",
|
|
554
560
|
onClick: F
|
|
555
561
|
}, {
|
|
@@ -588,25 +594,25 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
588
594
|
_: 1
|
|
589
595
|
}, 8, ["title"])) : N("", !0),
|
|
590
596
|
j(M.$slots, "formBtns", {}, () => [
|
|
591
|
-
e.needSearchCase ? (i(), P(
|
|
597
|
+
e.needSearchCase ? (i(), P(Te, { key: 0 }, {
|
|
592
598
|
overlay: s(() => [
|
|
593
|
-
w(
|
|
599
|
+
w(de, { onClick: b }, {
|
|
594
600
|
default: s(() => [
|
|
595
|
-
(i(!0), T(
|
|
596
|
-
key:
|
|
601
|
+
(i(!0), T(K, null, ne(r.value, (f) => (i(), P(re, {
|
|
602
|
+
key: f.id
|
|
597
603
|
}, {
|
|
598
604
|
default: s(() => [
|
|
599
|
-
A(C(
|
|
605
|
+
A(C(f.title), 1)
|
|
600
606
|
]),
|
|
601
607
|
_: 2
|
|
602
608
|
}, 1024))), 128)),
|
|
603
|
-
w(
|
|
609
|
+
w(re, { key: "add" }, {
|
|
604
610
|
default: s(() => [
|
|
605
611
|
A(C(M.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
606
612
|
]),
|
|
607
613
|
_: 1
|
|
608
614
|
}),
|
|
609
|
-
w(
|
|
615
|
+
w(re, { key: "edit" }, {
|
|
610
616
|
default: s(() => [
|
|
611
617
|
A(C(M.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
612
618
|
]),
|
|
@@ -660,34 +666,34 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
660
666
|
}, 16, ["model", "class"]),
|
|
661
667
|
g.value ? (i(), T("div", {
|
|
662
668
|
key: 0,
|
|
663
|
-
class:
|
|
669
|
+
class: q([L(h).e("footer"), "form-footer"])
|
|
664
670
|
}, [
|
|
665
671
|
c("div", {
|
|
666
|
-
class:
|
|
672
|
+
class: q(L(h).e("footer__left"))
|
|
667
673
|
}, [
|
|
668
674
|
j(M.$slots, "form-footer-left", {}, void 0, !0)
|
|
669
675
|
], 2),
|
|
670
676
|
c("div", {
|
|
671
|
-
class:
|
|
677
|
+
class: q(L(h).e("footer__right"))
|
|
672
678
|
}, [
|
|
673
679
|
v.value == "show" ? j(M.$slots, "form-footer-right", {
|
|
674
680
|
key: 0,
|
|
675
681
|
formRef: y.value
|
|
676
682
|
}, () => [
|
|
677
|
-
w(
|
|
683
|
+
w(te, {
|
|
678
684
|
type: "primary",
|
|
679
685
|
onClick: H,
|
|
680
686
|
class: "hb_list_page_button"
|
|
681
687
|
}, {
|
|
682
688
|
icon: s(() => [
|
|
683
|
-
w(L(
|
|
689
|
+
w(L(Me))
|
|
684
690
|
]),
|
|
685
691
|
default: s(() => [
|
|
686
692
|
A(" " + C(M.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
687
693
|
]),
|
|
688
694
|
_: 1
|
|
689
695
|
}),
|
|
690
|
-
w(
|
|
696
|
+
w(te, {
|
|
691
697
|
type: "link",
|
|
692
698
|
onClick: F,
|
|
693
699
|
class: "hb_list_page_button"
|
|
@@ -727,25 +733,25 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
727
733
|
_: 1
|
|
728
734
|
}, 8, ["title"])) : N("", !0),
|
|
729
735
|
j(M.$slots, "formBtns", {}, () => [
|
|
730
|
-
e.needSearchCase ? (i(), P(
|
|
736
|
+
e.needSearchCase ? (i(), P(Te, { key: 0 }, {
|
|
731
737
|
overlay: s(() => [
|
|
732
|
-
w(
|
|
738
|
+
w(de, { onClick: b }, {
|
|
733
739
|
default: s(() => [
|
|
734
|
-
(i(!0), T(
|
|
735
|
-
key:
|
|
740
|
+
(i(!0), T(K, null, ne(r.value, (f) => (i(), P(re, {
|
|
741
|
+
key: f.id
|
|
736
742
|
}, {
|
|
737
743
|
default: s(() => [
|
|
738
|
-
A(C(
|
|
744
|
+
A(C(f.title), 1)
|
|
739
745
|
]),
|
|
740
746
|
_: 2
|
|
741
747
|
}, 1024))), 128)),
|
|
742
|
-
w(
|
|
748
|
+
w(re, { key: "add" }, {
|
|
743
749
|
default: s(() => [
|
|
744
750
|
A(C(M.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
745
751
|
]),
|
|
746
752
|
_: 1
|
|
747
753
|
}),
|
|
748
|
-
w(
|
|
754
|
+
w(re, { key: "edit" }, {
|
|
749
755
|
default: s(() => [
|
|
750
756
|
A(C(M.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
751
757
|
]),
|
|
@@ -800,23 +806,23 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
800
806
|
], 2)
|
|
801
807
|
], 2)) : N("", !0)
|
|
802
808
|
], 2), [
|
|
803
|
-
[
|
|
809
|
+
[Mt, e.isFormExpanded]
|
|
804
810
|
])
|
|
805
811
|
]),
|
|
806
812
|
_: 3
|
|
807
813
|
}),
|
|
808
|
-
w(
|
|
814
|
+
w(Ae, {
|
|
809
815
|
showNumber: l.value,
|
|
810
|
-
list:
|
|
816
|
+
list: p.value,
|
|
811
817
|
ref_key: "HbSfCmRef",
|
|
812
818
|
ref: S,
|
|
813
|
-
onConfirm:
|
|
819
|
+
onConfirm: m,
|
|
814
820
|
saveKey: k.value
|
|
815
821
|
}, null, 8, ["showNumber", "list", "saveKey"])
|
|
816
822
|
], 64);
|
|
817
823
|
};
|
|
818
824
|
}
|
|
819
|
-
}),
|
|
825
|
+
}), uo = /* @__PURE__ */ X(co, [["__scopeId", "data-v-8307bb07"]]), bo = Q(uo), fo = { class: "hb-lib-list-page-act-box" }, po = { class: "hb-lib-list-page-breadcrumb" }, ho = { class: "hb-lib-list-page-act" }, mo = {
|
|
820
826
|
key: 0,
|
|
821
827
|
t: "1757915338760",
|
|
822
828
|
class: "icon",
|
|
@@ -826,7 +832,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
826
832
|
"p-id": "22885",
|
|
827
833
|
width: "200",
|
|
828
834
|
height: "200"
|
|
829
|
-
},
|
|
835
|
+
}, vo = {
|
|
830
836
|
key: 1,
|
|
831
837
|
t: "1757915360496",
|
|
832
838
|
class: "icon",
|
|
@@ -836,7 +842,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
836
842
|
"p-id": "23904",
|
|
837
843
|
width: "200",
|
|
838
844
|
height: "200"
|
|
839
|
-
},
|
|
845
|
+
}, go = /* @__PURE__ */ J({
|
|
840
846
|
name: "HbLibListPageAct",
|
|
841
847
|
__name: "HbListPageAct",
|
|
842
848
|
props: {
|
|
@@ -844,8 +850,8 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
844
850
|
hideDomList: {}
|
|
845
851
|
},
|
|
846
852
|
setup(e) {
|
|
847
|
-
const o =
|
|
848
|
-
|
|
853
|
+
const o = be("globalCompConfig", {}), t = e, { isFullscreen: n, toggle: u } = wt(document.body);
|
|
854
|
+
oe(
|
|
849
855
|
() => n.value,
|
|
850
856
|
(a) => {
|
|
851
857
|
let l = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
@@ -854,44 +860,44 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
854
860
|
setTimeout(a ? () => {
|
|
855
861
|
if (l?.length)
|
|
856
862
|
for (let g = 0; g < l.length; g++) {
|
|
857
|
-
const
|
|
858
|
-
|
|
863
|
+
const p = document.querySelector(l[g]);
|
|
864
|
+
p && (v.set(l[g], p.style.display), p.style.display = "none");
|
|
859
865
|
}
|
|
860
866
|
} : () => {
|
|
861
867
|
if (l?.length)
|
|
862
868
|
for (let g = 0; g < l.length; g++) {
|
|
863
|
-
const
|
|
864
|
-
if (
|
|
869
|
+
const p = document.querySelector(l[g]);
|
|
870
|
+
if (p) {
|
|
865
871
|
const B = v.get(l[g]);
|
|
866
|
-
|
|
872
|
+
p.style.display = B || "", v.delete(l[g]);
|
|
867
873
|
}
|
|
868
874
|
}
|
|
869
875
|
}, 0);
|
|
870
876
|
}
|
|
871
877
|
);
|
|
872
878
|
const d = E(""), r = () => {
|
|
873
|
-
const a =
|
|
879
|
+
const a = Ge();
|
|
874
880
|
let l = localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", v = a?.path;
|
|
875
881
|
if (l !== "[]") {
|
|
876
|
-
let g = JSON.parse(l).find((
|
|
882
|
+
let g = JSON.parse(l).find((p) => p.value === v);
|
|
877
883
|
g && (d.value = g.label.replace(/-/g, " / "));
|
|
878
884
|
}
|
|
879
885
|
};
|
|
880
|
-
|
|
886
|
+
fe(() => {
|
|
881
887
|
r();
|
|
882
888
|
});
|
|
883
|
-
const
|
|
889
|
+
const h = (a) => {
|
|
884
890
|
a.keyCode === 192 && u();
|
|
885
891
|
};
|
|
886
|
-
return
|
|
887
|
-
window.addEventListener("keydown",
|
|
888
|
-
}),
|
|
889
|
-
window.removeEventListener("keydown",
|
|
892
|
+
return fe(() => {
|
|
893
|
+
window.addEventListener("keydown", h);
|
|
894
|
+
}), Se(() => {
|
|
895
|
+
window.removeEventListener("keydown", h);
|
|
890
896
|
}), (a, l) => {
|
|
891
897
|
const v = V("a-tooltip");
|
|
892
|
-
return i(), T("section",
|
|
893
|
-
c("aside",
|
|
894
|
-
c("aside",
|
|
898
|
+
return i(), T("section", fo, [
|
|
899
|
+
c("aside", po, C(d.value), 1),
|
|
900
|
+
c("aside", ho, [
|
|
895
901
|
w(v, {
|
|
896
902
|
title: L(n) ? `${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
897
903
|
placement: "leftTop"
|
|
@@ -902,7 +908,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
902
908
|
onClick: l[0] || (l[0] = //@ts-ignore
|
|
903
909
|
(...g) => L(u) && L(u)(...g))
|
|
904
910
|
}, [
|
|
905
|
-
L(n) ? (i(), T("svg",
|
|
911
|
+
L(n) ? (i(), T("svg", vo, [...l[2] || (l[2] = [
|
|
906
912
|
c("path", {
|
|
907
913
|
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",
|
|
908
914
|
fill: "#ff5000",
|
|
@@ -918,7 +924,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
918
924
|
fill: "#ff5000",
|
|
919
925
|
"p-id": "23907"
|
|
920
926
|
}, null, -1)
|
|
921
|
-
])])) : (i(), T("svg",
|
|
927
|
+
])])) : (i(), T("svg", mo, [...l[1] || (l[1] = [
|
|
922
928
|
c("path", {
|
|
923
929
|
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",
|
|
924
930
|
fill: "#ff5000",
|
|
@@ -934,7 +940,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
934
940
|
]);
|
|
935
941
|
};
|
|
936
942
|
}
|
|
937
|
-
}),
|
|
943
|
+
}), yo = /* @__PURE__ */ X(go, [["__scopeId", "data-v-c7cd0710"]]), _o = Q(yo), Lo = { class: "hb-lib-list-btns-box" }, Co = { class: "hb-lib-list-btns-left" }, ko = { class: "hb-lib-list-btns-right" }, So = /* @__PURE__ */ J({
|
|
938
944
|
name: "HbLibListBtnsAct",
|
|
939
945
|
__name: "HbListBtns",
|
|
940
946
|
props: {
|
|
@@ -947,22 +953,22 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
947
953
|
n.value = !n.value, t("handleOpenOrClose", n.value);
|
|
948
954
|
}, d = () => {
|
|
949
955
|
t("handleReload");
|
|
950
|
-
}, r = (
|
|
956
|
+
}, r = (h) => {
|
|
951
957
|
};
|
|
952
|
-
return
|
|
958
|
+
return fe(() => {
|
|
953
959
|
window.addEventListener("keydown", r);
|
|
954
|
-
}),
|
|
960
|
+
}), Se(() => {
|
|
955
961
|
window.removeEventListener("keydown", r);
|
|
956
|
-
}), (
|
|
962
|
+
}), (h, a) => {
|
|
957
963
|
const l = V("a-tooltip");
|
|
958
|
-
return i(), T("section",
|
|
959
|
-
c("aside",
|
|
960
|
-
j(
|
|
964
|
+
return i(), T("section", Lo, [
|
|
965
|
+
c("aside", Co, [
|
|
966
|
+
j(h.$slots, "btnsLeft", {}, void 0, !0)
|
|
961
967
|
]),
|
|
962
|
-
c("aside",
|
|
968
|
+
c("aside", ko, [
|
|
963
969
|
e.needReload ? (i(), P(l, {
|
|
964
970
|
key: 0,
|
|
965
|
-
title:
|
|
971
|
+
title: h.$t("hbLibComp.hbListBtnsAct.reload")
|
|
966
972
|
}, {
|
|
967
973
|
default: s(() => [
|
|
968
974
|
c("span", {
|
|
@@ -991,17 +997,17 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
991
997
|
}, 8, ["title"])) : N("", !0),
|
|
992
998
|
e.needOpenOrClose ? (i(), P(l, {
|
|
993
999
|
key: 1,
|
|
994
|
-
title: n.value ? `${
|
|
1000
|
+
title: n.value ? `${h.$t("hbLibComp.hbListBtnsAct.close")}` : `${h.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
995
1001
|
}, {
|
|
996
1002
|
default: s(() => [
|
|
997
1003
|
c("span", {
|
|
998
1004
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
999
1005
|
onClick: u
|
|
1000
1006
|
}, [
|
|
1001
|
-
n.value ? (i(), P(L(
|
|
1007
|
+
n.value ? (i(), P(L(Yt), {
|
|
1002
1008
|
key: 0,
|
|
1003
1009
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
|
-
})) : (i(), P(L(
|
|
1010
|
+
})) : (i(), P(L(qt), {
|
|
1005
1011
|
key: 1,
|
|
1006
1012
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1007
1013
|
}))
|
|
@@ -1009,28 +1015,28 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1009
1015
|
]),
|
|
1010
1016
|
_: 1
|
|
1011
1017
|
}, 8, ["title"])) : N("", !0),
|
|
1012
|
-
j(
|
|
1018
|
+
j(h.$slots, "btnsRight", {}, void 0, !0)
|
|
1013
1019
|
])
|
|
1014
1020
|
]);
|
|
1015
1021
|
};
|
|
1016
1022
|
}
|
|
1017
|
-
}),
|
|
1023
|
+
}), To = /* @__PURE__ */ X(So, [["__scopeId", "data-v-40c1a746"]]), wo = Q(To), Ho = (e = {}) => {
|
|
1018
1024
|
const { formRef: o, offsetBottom: t = 50, minHeight: n = 300, timeOut: u = 100 } = e, d = E(0);
|
|
1019
|
-
let r = null,
|
|
1025
|
+
let r = null, h = null, a = null, l = null, v = null;
|
|
1020
1026
|
const g = () => {
|
|
1021
1027
|
v && clearTimeout(v), v = setTimeout(() => {
|
|
1022
1028
|
requestAnimationFrame(() => {
|
|
1023
|
-
|
|
1029
|
+
ye(() => {
|
|
1024
1030
|
const y = document.querySelector(".ant-table"), H = document.querySelector(".ant-pagination");
|
|
1025
1031
|
if (y) {
|
|
1026
1032
|
const F = Math.floor(y.getBoundingClientRect().top), S = window.innerHeight, b = (H ? H.offsetHeight + 20 : 40) + t;
|
|
1027
|
-
let
|
|
1028
|
-
|
|
1033
|
+
let m = S - F - b;
|
|
1034
|
+
m < n && (m = n), d.value = m;
|
|
1029
1035
|
}
|
|
1030
1036
|
});
|
|
1031
1037
|
});
|
|
1032
1038
|
}, 100);
|
|
1033
|
-
},
|
|
1039
|
+
}, p = () => {
|
|
1034
1040
|
const y = document.querySelector(".ant-pagination");
|
|
1035
1041
|
if (y) {
|
|
1036
1042
|
const H = new MutationObserver(() => {
|
|
@@ -1068,13 +1074,13 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1068
1074
|
g();
|
|
1069
1075
|
}, u);
|
|
1070
1076
|
}, D = () => {
|
|
1071
|
-
window.addEventListener("resize", U),
|
|
1072
|
-
B(), $(),
|
|
1077
|
+
window.addEventListener("resize", U), ye(() => {
|
|
1078
|
+
B(), $(), h = p();
|
|
1073
1079
|
});
|
|
1074
1080
|
}, k = () => {
|
|
1075
|
-
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(),
|
|
1081
|
+
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), h && h.disconnect(), l && clearTimeout(l), v && clearTimeout(v);
|
|
1076
1082
|
};
|
|
1077
|
-
return o &&
|
|
1083
|
+
return o && oe(
|
|
1078
1084
|
() => o,
|
|
1079
1085
|
() => {
|
|
1080
1086
|
setTimeout(() => {
|
|
@@ -1082,15 +1088,15 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1082
1088
|
}, 200);
|
|
1083
1089
|
},
|
|
1084
1090
|
{ deep: !0 }
|
|
1085
|
-
),
|
|
1091
|
+
), fe(() => {
|
|
1086
1092
|
g(), D();
|
|
1087
|
-
}),
|
|
1093
|
+
}), Se(() => {
|
|
1088
1094
|
k();
|
|
1089
1095
|
}), {
|
|
1090
1096
|
tableHeight: d,
|
|
1091
1097
|
calTableHeight: g
|
|
1092
1098
|
};
|
|
1093
|
-
},
|
|
1099
|
+
}, xo = /* @__PURE__ */ J({
|
|
1094
1100
|
name: "HbLibListPageContainer",
|
|
1095
1101
|
__name: "HbListPageContainer",
|
|
1096
1102
|
props: {
|
|
@@ -1103,16 +1109,16 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1103
1109
|
isUnFixTbHeight: { type: Boolean }
|
|
1104
1110
|
},
|
|
1105
1111
|
setup(e) {
|
|
1106
|
-
const o =
|
|
1112
|
+
const o = be("globalCompConfig", {}), { isFullscreen: t } = wt(document.body), n = e, u = Dt("PageContainerRef"), d = z(() => n.offsetHeight || o.HbLibListPageContainer?.offsetHeight || 110), r = z(() => n.offsetBottom || o.HbLibListPageContainer?.offsetBottom || 20), h = z(() => n.minHeight || o.HbLibListPageContainer?.minHeight || 300), a = z(() => n.timeOut || o.HbLibListPageContainer?.timeOut || 100), l = z(() => n.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1107
1113
|
console.log(n.isUnFixTbHeight);
|
|
1108
|
-
const { calTableHeight: v, tableHeight: g } =
|
|
1114
|
+
const { calTableHeight: v, tableHeight: g } = Ho({
|
|
1109
1115
|
offsetBottom: r.value,
|
|
1110
1116
|
// 底部预留空间
|
|
1111
|
-
minHeight:
|
|
1117
|
+
minHeight: h.value,
|
|
1112
1118
|
// table最小高度 请勿随便修改!!
|
|
1113
1119
|
timeOut: a.value
|
|
1114
|
-
}),
|
|
1115
|
-
return
|
|
1120
|
+
}), p = z(() => g.value);
|
|
1121
|
+
return yt("HB_LIST_PAGE_CONTAINER", {
|
|
1116
1122
|
PageContainerRef: u,
|
|
1117
1123
|
// 通过函数访问,
|
|
1118
1124
|
tableHeight: g,
|
|
@@ -1125,10 +1131,10 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1125
1131
|
j(B.$slots, "header"),
|
|
1126
1132
|
c("section", {
|
|
1127
1133
|
class: "list-page-box",
|
|
1128
|
-
style:
|
|
1134
|
+
style: se(
|
|
1129
1135
|
l.value ? null : {
|
|
1130
|
-
"--hb-list-table-height": L(t) ?
|
|
1131
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" : L(t) ?
|
|
1136
|
+
"--hb-list-table-height": L(t) ? p.value - d.value + "px" : p.value - r.value + "px",
|
|
1137
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : L(t) ? p.value - d.value + "px" : p.value - r.value + "px"
|
|
1132
1138
|
}
|
|
1133
1139
|
)
|
|
1134
1140
|
}, [
|
|
@@ -1136,22 +1142,22 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1136
1142
|
], 4)
|
|
1137
1143
|
], 512));
|
|
1138
1144
|
}
|
|
1139
|
-
}),
|
|
1145
|
+
}), Fo = Q(xo), $o = { style: { "font-weight": "500" } }, Io = {
|
|
1140
1146
|
key: 0,
|
|
1141
1147
|
class: "hb-lib-search-tag__description"
|
|
1142
|
-
},
|
|
1148
|
+
}, Mo = { class: "hb-lib-selector-dropdown" }, Do = { class: "hb-lib-selector-search" }, Bo = { class: "hb-lib-selector-list" }, Ao = ["onClick"], Oo = { class: "hb-lib-option-content" }, Eo = { class: "hb-lib-option-label" }, zo = {
|
|
1143
1149
|
key: 0,
|
|
1144
1150
|
class: "hb-lib-selector-empty"
|
|
1145
|
-
},
|
|
1151
|
+
}, No = {
|
|
1146
1152
|
key: 1,
|
|
1147
1153
|
class: "hb-lib-selector-footer"
|
|
1148
|
-
},
|
|
1154
|
+
}, Ro = { class: "hb-lib-footer-buttons" }, Po = {
|
|
1149
1155
|
key: 2,
|
|
1150
1156
|
class: "hb-lib-selector-footer"
|
|
1151
|
-
},
|
|
1157
|
+
}, Uo = { class: "hb-lib-footer-buttons" }, Vo = /* @__PURE__ */ J({
|
|
1152
1158
|
name: "HbLibListMultiSelect",
|
|
1153
1159
|
__name: "HbListMultiSelect",
|
|
1154
|
-
props: /* @__PURE__ */
|
|
1160
|
+
props: /* @__PURE__ */ Pe({
|
|
1155
1161
|
placeholder: { default: "点击选择" },
|
|
1156
1162
|
searchPlaceholder: { default: "搜索选项" },
|
|
1157
1163
|
width: { default: 600 },
|
|
@@ -1167,24 +1173,24 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1167
1173
|
value: {},
|
|
1168
1174
|
valueModifiers: {}
|
|
1169
1175
|
}),
|
|
1170
|
-
emits: /* @__PURE__ */
|
|
1176
|
+
emits: /* @__PURE__ */ Pe(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1171
1177
|
setup(e, { emit: o }) {
|
|
1172
|
-
const t = e, n = o, u =
|
|
1178
|
+
const t = e, n = o, u = _t(e, "value"), d = E(!1), r = E(""), h = E([]), a = E(), l = z(() => {
|
|
1173
1179
|
if (t.remoteSearch || !r.value) return t.options;
|
|
1174
1180
|
const S = r.value.toLowerCase();
|
|
1175
1181
|
return t.options.filter((_) => _.label.toLowerCase().includes(S) || _.description?.toLowerCase().includes(S));
|
|
1176
|
-
}), v = z(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), g = z(() => l.value.length === 0 ? !1 : l.value.every((S) =>
|
|
1182
|
+
}), v = z(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), g = z(() => l.value.length === 0 ? !1 : l.value.every((S) => h.value.includes(S.value))), p = z(() => {
|
|
1177
1183
|
if (l.value.length === 0) return !1;
|
|
1178
|
-
const S = l.value.filter((_) =>
|
|
1184
|
+
const S = l.value.filter((_) => h.value.includes(_.value)).length;
|
|
1179
1185
|
return S > 0 && S < l.value.length;
|
|
1180
1186
|
});
|
|
1181
|
-
|
|
1187
|
+
oe(
|
|
1182
1188
|
() => u.value,
|
|
1183
1189
|
(S) => {
|
|
1184
|
-
S ?
|
|
1190
|
+
S ? h.value = Array.isArray(S) ? [...S] : [S] : h.value = [];
|
|
1185
1191
|
},
|
|
1186
1192
|
{ immediate: !0 }
|
|
1187
|
-
),
|
|
1193
|
+
), oe(
|
|
1188
1194
|
() => t.searchValue,
|
|
1189
1195
|
(S) => {
|
|
1190
1196
|
t.remoteSearch && S !== void 0 && (r.value = S);
|
|
@@ -1192,44 +1198,44 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1192
1198
|
{ immediate: !0 }
|
|
1193
1199
|
);
|
|
1194
1200
|
const B = (S) => {
|
|
1195
|
-
S && (d.value = S, $.value = [...
|
|
1201
|
+
S && (d.value = S, $.value = [...h.value], r.value = "", setTimeout(() => {
|
|
1196
1202
|
if (a.value) {
|
|
1197
1203
|
const _ = a.value.input || a.value.$el?.querySelector("input");
|
|
1198
1204
|
_ && _.focus();
|
|
1199
1205
|
}
|
|
1200
1206
|
}, 100));
|
|
1201
1207
|
}, $ = E([]), U = () => {
|
|
1202
|
-
|
|
1208
|
+
h.value = [...$.value], d.value = !1, n("cancel");
|
|
1203
1209
|
}, D = E([]), k = () => {
|
|
1204
|
-
const S = t.multiple ?
|
|
1205
|
-
D.value = _, console.log(S, _), $.value = [...
|
|
1206
|
-
}, y =
|
|
1210
|
+
const S = t.multiple ? h.value : h.value[0] || "", _ = t.options.filter((b) => h.value.includes(b.value));
|
|
1211
|
+
D.value = _, console.log(S, _), $.value = [...h.value], u.value = S, n("update:value", S), n("change", S, _), n("confirm", S, _), d.value = !1;
|
|
1212
|
+
}, y = Jt((S) => {
|
|
1207
1213
|
const _ = S !== void 0 ? S : r.value;
|
|
1208
1214
|
t.remoteSearch && (n("search", _), n("update:searchValue", _));
|
|
1209
1215
|
}, 300), H = (S) => {
|
|
1210
1216
|
if (t.multiple) {
|
|
1211
|
-
const _ = new Set(
|
|
1212
|
-
_.has(S.value) ? _.delete(S.value) : _.add(S.value),
|
|
1217
|
+
const _ = new Set(h.value);
|
|
1218
|
+
_.has(S.value) ? _.delete(S.value) : _.add(S.value), h.value = Array.from(_);
|
|
1213
1219
|
} else
|
|
1214
|
-
|
|
1220
|
+
h.value = [S.value], k();
|
|
1215
1221
|
}, F = (S) => {
|
|
1216
1222
|
if (S.target.checked) {
|
|
1217
|
-
const b = new Set(
|
|
1218
|
-
l.value.forEach((
|
|
1219
|
-
b.add(
|
|
1220
|
-
}),
|
|
1223
|
+
const b = new Set(h.value);
|
|
1224
|
+
l.value.forEach((m) => {
|
|
1225
|
+
b.add(m.value);
|
|
1226
|
+
}), h.value = Array.from(b);
|
|
1221
1227
|
} else {
|
|
1222
|
-
const b = new Set(l.value.map((
|
|
1223
|
-
|
|
1228
|
+
const b = new Set(l.value.map((m) => m.value));
|
|
1229
|
+
h.value = h.value.filter((m) => !b.has(m));
|
|
1224
1230
|
}
|
|
1225
1231
|
};
|
|
1226
1232
|
return (S, _) => {
|
|
1227
|
-
const b = V("a-tag"),
|
|
1228
|
-
return i(), T("div",
|
|
1233
|
+
const b = V("a-tag"), m = V("a-input"), x = V("a-checkbox"), O = V("a-radio"), G = V("a-button"), ie = V("a-select");
|
|
1234
|
+
return i(), T("div", ee({
|
|
1229
1235
|
class: "hb-lib-selector-wrapper",
|
|
1230
1236
|
style: { "--prefix-width": v.value }
|
|
1231
1237
|
}, S.$attrs), [
|
|
1232
|
-
w(
|
|
1238
|
+
w(ie, {
|
|
1233
1239
|
value: u.value,
|
|
1234
1240
|
"onUpdate:value": _[5] || (_[5] = (M) => u.value = M),
|
|
1235
1241
|
mode: e.multiple ? "multiple" : void 0,
|
|
@@ -1243,26 +1249,26 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1243
1249
|
onDropdownVisibleChange: B,
|
|
1244
1250
|
onSearch: L(y),
|
|
1245
1251
|
"max-tag-text-length": e.tagTextLength,
|
|
1246
|
-
class:
|
|
1252
|
+
class: q({ "has-prefix": e.prefix }),
|
|
1247
1253
|
"data-prefix": e.prefix,
|
|
1248
1254
|
style: { width: "100%" }
|
|
1249
1255
|
}, {
|
|
1250
|
-
tagRender: s(({ value: M, label: R, closable:
|
|
1256
|
+
tagRender: s(({ value: M, label: R, closable: te, option: le }) => [
|
|
1251
1257
|
w(b, {
|
|
1252
1258
|
class: "hb-lib-search-tag",
|
|
1253
1259
|
onClick: _[0] || (_[0] = () => B(!0))
|
|
1254
1260
|
}, {
|
|
1255
1261
|
default: s(() => [
|
|
1256
|
-
c("span",
|
|
1257
|
-
le?.description ? (i(), T("span",
|
|
1262
|
+
c("span", $o, C(R), 1),
|
|
1263
|
+
le?.description ? (i(), T("span", Io, " (" + C(le.description) + ") ", 1)) : N("", !0)
|
|
1258
1264
|
]),
|
|
1259
1265
|
_: 2
|
|
1260
1266
|
}, 1024)
|
|
1261
1267
|
]),
|
|
1262
1268
|
dropdownRender: s(({ menuNode: M }) => [
|
|
1263
|
-
c("div",
|
|
1264
|
-
c("div",
|
|
1265
|
-
w(
|
|
1269
|
+
c("div", Mo, [
|
|
1270
|
+
c("div", Do, [
|
|
1271
|
+
w(m, {
|
|
1266
1272
|
ref_key: "searchInputRef",
|
|
1267
1273
|
ref: a,
|
|
1268
1274
|
class: "hb-lib-selector-search-input",
|
|
@@ -1273,40 +1279,40 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1273
1279
|
onInput: _[2] || (_[2] = (R) => L(y)(R.target.value))
|
|
1274
1280
|
}, {
|
|
1275
1281
|
prefix: s(() => [
|
|
1276
|
-
w(L(
|
|
1282
|
+
w(L(Me))
|
|
1277
1283
|
]),
|
|
1278
1284
|
_: 1
|
|
1279
1285
|
}, 8, ["value"])
|
|
1280
1286
|
]),
|
|
1281
|
-
c("div",
|
|
1282
|
-
(i(!0), T(
|
|
1287
|
+
c("div", Bo, [
|
|
1288
|
+
(i(!0), T(K, null, ne(l.value, (R) => (i(), T("div", {
|
|
1283
1289
|
key: R.value,
|
|
1284
|
-
class:
|
|
1290
|
+
class: q(["hb-lib-selector-option", { selected: h.value.includes(R.value) }]),
|
|
1285
1291
|
onClick: () => H(R)
|
|
1286
1292
|
}, [
|
|
1287
1293
|
e.multiple ? (i(), P(x, {
|
|
1288
1294
|
key: 0,
|
|
1289
|
-
checked:
|
|
1295
|
+
checked: h.value.includes(R.value),
|
|
1290
1296
|
onChange: () => H(R),
|
|
1291
|
-
onClick: _[3] || (_[3] =
|
|
1297
|
+
onClick: _[3] || (_[3] = xe(() => {
|
|
1292
1298
|
}, ["stop"]))
|
|
1293
1299
|
}, null, 8, ["checked", "onChange"])) : (i(), P(O, {
|
|
1294
1300
|
key: 1,
|
|
1295
|
-
checked:
|
|
1301
|
+
checked: h.value.includes(R.value),
|
|
1296
1302
|
onChange: () => H(R),
|
|
1297
|
-
onClick: _[4] || (_[4] =
|
|
1303
|
+
onClick: _[4] || (_[4] = xe(() => {
|
|
1298
1304
|
}, ["stop"]))
|
|
1299
1305
|
}, null, 8, ["checked", "onChange"])),
|
|
1300
|
-
c("div",
|
|
1301
|
-
c("div",
|
|
1306
|
+
c("div", Oo, [
|
|
1307
|
+
c("div", Eo, C(R.label), 1)
|
|
1302
1308
|
])
|
|
1303
|
-
], 10,
|
|
1309
|
+
], 10, Ao))), 128))
|
|
1304
1310
|
]),
|
|
1305
|
-
l.value.length === 0 ? (i(), T("div",
|
|
1306
|
-
e.multiple ? (i(), T("div",
|
|
1311
|
+
l.value.length === 0 ? (i(), T("div", zo, C(S.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : N("", !0),
|
|
1312
|
+
e.multiple ? (i(), T("div", No, [
|
|
1307
1313
|
w(x, {
|
|
1308
1314
|
checked: g.value,
|
|
1309
|
-
indeterminate:
|
|
1315
|
+
indeterminate: p.value,
|
|
1310
1316
|
onChange: F
|
|
1311
1317
|
}, {
|
|
1312
1318
|
default: s(() => [
|
|
@@ -1314,8 +1320,8 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1314
1320
|
]),
|
|
1315
1321
|
_: 1
|
|
1316
1322
|
}, 8, ["checked", "indeterminate"]),
|
|
1317
|
-
c("div",
|
|
1318
|
-
w(
|
|
1323
|
+
c("div", Ro, [
|
|
1324
|
+
w(G, {
|
|
1319
1325
|
size: "small",
|
|
1320
1326
|
onClick: U
|
|
1321
1327
|
}, {
|
|
@@ -1324,7 +1330,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1324
1330
|
]),
|
|
1325
1331
|
_: 1
|
|
1326
1332
|
}),
|
|
1327
|
-
w(
|
|
1333
|
+
w(G, {
|
|
1328
1334
|
type: "primary",
|
|
1329
1335
|
size: "small",
|
|
1330
1336
|
onClick: k
|
|
@@ -1335,10 +1341,10 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1335
1341
|
_: 1
|
|
1336
1342
|
})
|
|
1337
1343
|
])
|
|
1338
|
-
])) : (i(), T("div",
|
|
1344
|
+
])) : (i(), T("div", Po, [
|
|
1339
1345
|
_[6] || (_[6] = c("div", null, null, -1)),
|
|
1340
|
-
c("div",
|
|
1341
|
-
w(
|
|
1346
|
+
c("div", Uo, [
|
|
1347
|
+
w(G, {
|
|
1342
1348
|
size: "small",
|
|
1343
1349
|
onClick: U
|
|
1344
1350
|
}, {
|
|
@@ -1356,7 +1362,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1356
1362
|
], 16);
|
|
1357
1363
|
};
|
|
1358
1364
|
}
|
|
1359
|
-
}),
|
|
1365
|
+
}), Wo = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-87177371"]]), jo = Q(Wo), Yo = { class: "hb-lib-form-item-filter-modal-search" }, qo = { class: "hb-lib-form-item-filter-modal-buttons" }, Ko = { key: 0 }, Go = /* @__PURE__ */ J({
|
|
1360
1366
|
name: "HbLibMutilpleSelectModal",
|
|
1361
1367
|
__name: "HbMutilpleSelectModal",
|
|
1362
1368
|
props: {
|
|
@@ -1370,22 +1376,22 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1370
1376
|
},
|
|
1371
1377
|
emits: ["handleConfirm", "handleCancel"],
|
|
1372
1378
|
setup(e, { expose: o, emit: t }) {
|
|
1373
|
-
const n = e, u = t, d = E(!1), r = E(""),
|
|
1379
|
+
const n = e, u = t, d = E(!1), r = E(""), h = E(), a = E(), l = E([]), v = E([]), g = E(), p = ke({
|
|
1374
1380
|
searchText: "",
|
|
1375
1381
|
searchedColumn: ""
|
|
1376
|
-
}), B = z(() => n.tableData.map((b) => (b.id = b.id || Math.random(), b))), $ = z(() => n.tableColumn.map((b) => (b.customFilterDropdown && (b.onFilter = (
|
|
1377
|
-
|
|
1378
|
-
|
|
1382
|
+
}), B = z(() => n.tableData.map((b) => (b.id = b.id || Math.random(), b))), $ = z(() => n.tableColumn.map((b) => (b.customFilterDropdown && (b.onFilter = (m, x) => x[b.dataIndex].toString().toLowerCase().includes(m.toLowerCase()), b.onFilterDropdownVisibleChange = (m) => {
|
|
1383
|
+
m && setTimeout(() => {
|
|
1384
|
+
h.value?.focus();
|
|
1379
1385
|
}, 100);
|
|
1380
1386
|
}), { ...b }))), U = () => {
|
|
1381
1387
|
let b = "";
|
|
1382
|
-
v.value.forEach((
|
|
1383
|
-
b = b +
|
|
1388
|
+
v.value.forEach((m) => {
|
|
1389
|
+
b = b + m[n.labelKey] + ",";
|
|
1384
1390
|
}), r.value = b.substring(0, b.length - 1), d.value = !1, u("handleConfirm", v.value);
|
|
1385
1391
|
}, D = () => {
|
|
1386
1392
|
d.value = !1;
|
|
1387
1393
|
}, k = () => {
|
|
1388
|
-
d.value = !0,
|
|
1394
|
+
d.value = !0, ye(() => {
|
|
1389
1395
|
const b = g.value?.$el?.querySelector(".ant-table-body");
|
|
1390
1396
|
b && (b.scrollTop = 0);
|
|
1391
1397
|
});
|
|
@@ -1393,17 +1399,17 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1393
1399
|
l.value = [], v.value = [];
|
|
1394
1400
|
}, H = () => {
|
|
1395
1401
|
r.value = "", y();
|
|
1396
|
-
}, F = (b,
|
|
1397
|
-
|
|
1398
|
-
}, S = (b,
|
|
1399
|
-
b({ confirm: !0 }),
|
|
1400
|
-
}, _ = (b,
|
|
1401
|
-
l.value = b, v.value =
|
|
1402
|
+
}, F = (b, m, x) => {
|
|
1403
|
+
m(), p.searchText = b[0], p.searchedColumn = x;
|
|
1404
|
+
}, S = (b, m) => {
|
|
1405
|
+
b({ confirm: !0 }), p.searchText = "", m();
|
|
1406
|
+
}, _ = (b, m) => {
|
|
1407
|
+
l.value = b, v.value = m;
|
|
1402
1408
|
};
|
|
1403
1409
|
return o({
|
|
1404
1410
|
resetInputVal: H
|
|
1405
|
-
}), (b,
|
|
1406
|
-
const x = V("a-input"), O = V("a-button"),
|
|
1411
|
+
}), (b, m) => {
|
|
1412
|
+
const x = V("a-input"), O = V("a-button"), G = V("a-table"), ie = V("a-modal");
|
|
1407
1413
|
return i(), T("div", {
|
|
1408
1414
|
class: "hb-lib-multipleSelectModal-box",
|
|
1409
1415
|
ref_key: "hbMultipSelectModalRef",
|
|
@@ -1413,17 +1419,17 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1413
1419
|
readonly: "",
|
|
1414
1420
|
onClick: k,
|
|
1415
1421
|
value: r.value,
|
|
1416
|
-
"onUpdate:value":
|
|
1422
|
+
"onUpdate:value": m[0] || (m[0] = (M) => r.value = M),
|
|
1417
1423
|
placeholder: b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1418
1424
|
}, {
|
|
1419
1425
|
addonAfter: s(() => [
|
|
1420
|
-
w(L(
|
|
1426
|
+
w(L(Kt), { onClick: k })
|
|
1421
1427
|
]),
|
|
1422
1428
|
_: 1
|
|
1423
1429
|
}, 8, ["value", "placeholder"]),
|
|
1424
|
-
w(
|
|
1430
|
+
w(ie, {
|
|
1425
1431
|
visible: d.value,
|
|
1426
|
-
"onUpdate:visible":
|
|
1432
|
+
"onUpdate:visible": m[1] || (m[1] = (M) => d.value = M),
|
|
1427
1433
|
title: e.modelTitle,
|
|
1428
1434
|
width: e.modalWidth,
|
|
1429
1435
|
class: "hb-lib-multipleSelectModal-modal"
|
|
@@ -1452,7 +1458,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1452
1458
|
})
|
|
1453
1459
|
]),
|
|
1454
1460
|
default: s(() => [
|
|
1455
|
-
w(
|
|
1461
|
+
w(G, {
|
|
1456
1462
|
ref_key: "tableRef",
|
|
1457
1463
|
ref: g,
|
|
1458
1464
|
columns: $.value,
|
|
@@ -1461,22 +1467,22 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1461
1467
|
rowKey: (M) => M[e.tableKey],
|
|
1462
1468
|
scroll: { y: e.tableHeight }
|
|
1463
1469
|
}, {
|
|
1464
|
-
customFilterDropdown: s(({ setSelectedKeys: M, selectedKeys: R, confirm:
|
|
1465
|
-
c("div",
|
|
1470
|
+
customFilterDropdown: s(({ setSelectedKeys: M, selectedKeys: R, confirm: te, clearFilters: le, column: re }) => [
|
|
1471
|
+
c("div", Yo, [
|
|
1466
1472
|
w(x, {
|
|
1467
1473
|
ref_key: "searchInput",
|
|
1468
|
-
ref:
|
|
1469
|
-
placeholder: `请输入${
|
|
1474
|
+
ref: h,
|
|
1475
|
+
placeholder: `请输入${re.title}`,
|
|
1470
1476
|
value: R[0],
|
|
1471
1477
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1472
|
-
onChange: (
|
|
1473
|
-
onPressEnter: (
|
|
1478
|
+
onChange: (de) => M(de.target.value ? [de.target.value] : []),
|
|
1479
|
+
onPressEnter: (de) => F(R, te, re.dataIndex)
|
|
1474
1480
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1475
|
-
c("section",
|
|
1481
|
+
c("section", qo, [
|
|
1476
1482
|
w(O, {
|
|
1477
1483
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1478
1484
|
type: "ghost",
|
|
1479
|
-
onClick: (
|
|
1485
|
+
onClick: (de) => S(le, te)
|
|
1480
1486
|
}, {
|
|
1481
1487
|
default: s(() => [
|
|
1482
1488
|
A(C(b.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
@@ -1486,7 +1492,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1486
1492
|
w(O, {
|
|
1487
1493
|
type: "primary",
|
|
1488
1494
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1489
|
-
onClick: (
|
|
1495
|
+
onClick: (de) => F(R, te, re.dataIndex)
|
|
1490
1496
|
}, {
|
|
1491
1497
|
default: s(() => [
|
|
1492
1498
|
A(C(b.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1497,18 +1503,18 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1497
1503
|
])
|
|
1498
1504
|
]),
|
|
1499
1505
|
customFilterIcon: s(({ filtered: M }) => [
|
|
1500
|
-
w(L(
|
|
1501
|
-
style:
|
|
1506
|
+
w(L(Me), {
|
|
1507
|
+
style: se({ color: M ? "#108ee9" : void 0 })
|
|
1502
1508
|
}, null, 8, ["style"])
|
|
1503
1509
|
]),
|
|
1504
1510
|
bodyCell: s(({ text: M, column: R }) => [
|
|
1505
|
-
|
|
1506
|
-
(i(!0), T(
|
|
1507
|
-
|
|
1511
|
+
p.searchText && p.searchedColumn === R.dataIndex ? (i(), T("span", Ko, [
|
|
1512
|
+
(i(!0), T(K, null, ne(M.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (te, le) => (i(), T(K, null, [
|
|
1513
|
+
te.toLowerCase() === p.searchText.toLowerCase() ? (i(), T("mark", {
|
|
1508
1514
|
key: le,
|
|
1509
1515
|
class: "highlight"
|
|
1510
|
-
}, C(
|
|
1511
|
-
A(C(
|
|
1516
|
+
}, C(te), 1)) : (i(), T(K, { key: 1 }, [
|
|
1517
|
+
A(C(te), 1)
|
|
1512
1518
|
], 64))
|
|
1513
1519
|
], 64))), 256))
|
|
1514
1520
|
])) : N("", !0)
|
|
@@ -1521,13 +1527,13 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1521
1527
|
], 512);
|
|
1522
1528
|
};
|
|
1523
1529
|
}
|
|
1524
|
-
}),
|
|
1530
|
+
}), Jo = Q(Go), Qo = { class: "hb-lib-table-act-box" }, Zo = ["onClick"], Xo = {
|
|
1525
1531
|
href: "javascript:;",
|
|
1526
1532
|
class: "hb-lib-table-main-action"
|
|
1527
|
-
},
|
|
1533
|
+
}, el = ["onClick"], tl = {
|
|
1528
1534
|
href: "javascript:;",
|
|
1529
1535
|
class: "hb-lib-table-more-action"
|
|
1530
|
-
},
|
|
1536
|
+
}, ol = ["onClick"], ll = { href: "javascript:;" }, al = ["onClick"], nl = { class: "hb-lib-table-confirm-modal-content" }, il = /* @__PURE__ */ J({
|
|
1531
1537
|
name: "HbLibTableAct",
|
|
1532
1538
|
__name: "HbTableAct",
|
|
1533
1539
|
props: {
|
|
@@ -1537,7 +1543,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1537
1543
|
buttonDisplaysQuantity: {}
|
|
1538
1544
|
},
|
|
1539
1545
|
setup(e, { expose: o }) {
|
|
1540
|
-
const t = e, { t: n } =
|
|
1546
|
+
const t = e, { t: n } = ce(), u = E(!1), d = E(!1), r = E(null), h = z(() => t.actions.filter((D) => D.condition !== void 0 ? D.condition : !0)), a = z(() => h.value.slice(0, t.buttonDisplaysQuantity)), l = z(() => v(h.value.slice(t.buttonDisplaysQuantity)));
|
|
1541
1547
|
function v(D) {
|
|
1542
1548
|
if (t.filterPermission)
|
|
1543
1549
|
return t.filterPermission(D);
|
|
@@ -1548,7 +1554,7 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1548
1554
|
}
|
|
1549
1555
|
const g = (D) => {
|
|
1550
1556
|
D.handler && D.handler(t.record);
|
|
1551
|
-
},
|
|
1557
|
+
}, p = (D) => {
|
|
1552
1558
|
r.value = D, u.value = !0;
|
|
1553
1559
|
}, B = () => {
|
|
1554
1560
|
if (r.value) {
|
|
@@ -1569,38 +1575,38 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1569
1575
|
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1570
1576
|
});
|
|
1571
1577
|
return o({
|
|
1572
|
-
ADropdown:
|
|
1573
|
-
AMenu:
|
|
1574
|
-
AMenuItem:
|
|
1575
|
-
APopconfirm:
|
|
1576
|
-
AModal:
|
|
1577
|
-
DownOutlined:
|
|
1578
|
+
ADropdown: dt,
|
|
1579
|
+
AMenu: ct,
|
|
1580
|
+
AMenuItem: rt,
|
|
1581
|
+
APopconfirm: Ne,
|
|
1582
|
+
AModal: Ue,
|
|
1583
|
+
DownOutlined: Ye
|
|
1578
1584
|
}), (D, k) => {
|
|
1579
|
-
const y = V("a-divider"), H =
|
|
1580
|
-
return i(), T("div",
|
|
1581
|
-
(i(!0), T(
|
|
1582
|
-
F.needConfirm ? (i(), T(
|
|
1583
|
-
F.confirmType === "modal" ? (i(), T(
|
|
1584
|
-
|
|
1585
|
+
const y = V("a-divider"), H = Lt("has");
|
|
1586
|
+
return i(), T("div", Qo, [
|
|
1587
|
+
(i(!0), T(K, null, ne(a.value, (F, S) => (i(), T(K, { key: S }, [
|
|
1588
|
+
F.needConfirm ? (i(), T(K, { key: 0 }, [
|
|
1589
|
+
F.confirmType === "modal" ? (i(), T(K, { key: 0 }, [
|
|
1590
|
+
ue((i(), T("a", {
|
|
1585
1591
|
href: "javascript:;",
|
|
1586
|
-
onClick: (_) =>
|
|
1592
|
+
onClick: (_) => p(F),
|
|
1587
1593
|
class: "hb-lib-table-main-action"
|
|
1588
1594
|
}, [
|
|
1589
1595
|
A(C(F.label), 1)
|
|
1590
|
-
], 8,
|
|
1596
|
+
], 8, Zo)), [
|
|
1591
1597
|
[H, F.permissionsTag || null]
|
|
1592
1598
|
]),
|
|
1593
1599
|
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(), P(y, {
|
|
1594
1600
|
key: 0,
|
|
1595
1601
|
type: "vertical"
|
|
1596
1602
|
})) : N("", !0)
|
|
1597
|
-
], 64)) : (i(), T(
|
|
1598
|
-
w(L(
|
|
1603
|
+
], 64)) : (i(), T(K, { key: 1 }, [
|
|
1604
|
+
w(L(Ne), {
|
|
1599
1605
|
title: F.confirmTitle,
|
|
1600
1606
|
onConfirm: (_) => g(F)
|
|
1601
1607
|
}, {
|
|
1602
1608
|
default: s(() => [
|
|
1603
|
-
|
|
1609
|
+
ue((i(), T("a", Xo, [
|
|
1604
1610
|
A(C(F.label), 1)
|
|
1605
1611
|
])), [
|
|
1606
1612
|
[H, F.permissionsTag || null]
|
|
@@ -1613,23 +1619,23 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1613
1619
|
type: "vertical"
|
|
1614
1620
|
})) : N("", !0)
|
|
1615
1621
|
], 64))
|
|
1616
|
-
], 64)) : F.slot ? (i(), T(
|
|
1622
|
+
], 64)) : F.slot ? (i(), T(K, { key: 1 }, [
|
|
1617
1623
|
j(D.$slots, F.slot, { item: F }, void 0, !0),
|
|
1618
1624
|
l.value && l.value.length > 0 || S !== a.value.length - 1 ? (i(), P(y, {
|
|
1619
1625
|
key: 0,
|
|
1620
1626
|
type: "vertical"
|
|
1621
1627
|
})) : N("", !0)
|
|
1622
|
-
], 64)) : (i(), T(
|
|
1623
|
-
|
|
1628
|
+
], 64)) : (i(), T(K, { key: 2 }, [
|
|
1629
|
+
ue((i(), T("a", {
|
|
1624
1630
|
href: "javascript:;",
|
|
1625
1631
|
onClick: (_) => g(F),
|
|
1626
1632
|
class: "hb-lib-table-main-action"
|
|
1627
1633
|
}, [
|
|
1628
1634
|
A(C(F.label), 1)
|
|
1629
|
-
], 8,
|
|
1635
|
+
], 8, el)), [
|
|
1630
1636
|
[H, F.permissionsTag || null]
|
|
1631
1637
|
]),
|
|
1632
|
-
l.value && l.value.length > 0 || S !== a.value.length - 1 ?
|
|
1638
|
+
l.value && l.value.length > 0 || S !== a.value.length - 1 ? ue((i(), P(y, {
|
|
1633
1639
|
key: 0,
|
|
1634
1640
|
type: "vertical"
|
|
1635
1641
|
}, null, 512)), [
|
|
@@ -1637,28 +1643,28 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1637
1643
|
]) : N("", !0)
|
|
1638
1644
|
], 64))
|
|
1639
1645
|
], 64))), 128)),
|
|
1640
|
-
l.value && l.value.length > 0 ? (i(), P(L(
|
|
1646
|
+
l.value && l.value.length > 0 ? (i(), P(L(dt), { key: 0 }, {
|
|
1641
1647
|
overlay: s(() => [
|
|
1642
|
-
w(L(
|
|
1648
|
+
w(L(ct), null, {
|
|
1643
1649
|
default: s(() => [
|
|
1644
|
-
(i(!0), T(
|
|
1650
|
+
(i(!0), T(K, null, ne(l.value, (F, S) => ue((i(), P(L(rt), { key: S }, {
|
|
1645
1651
|
default: s(() => [
|
|
1646
|
-
F.needConfirm ? (i(), T(
|
|
1647
|
-
F.confirmType === "modal" ?
|
|
1652
|
+
F.needConfirm ? (i(), T(K, { key: 0 }, [
|
|
1653
|
+
F.confirmType === "modal" ? ue((i(), T("a", {
|
|
1648
1654
|
key: 0,
|
|
1649
1655
|
href: "javascript:;",
|
|
1650
|
-
onClick: (_) =>
|
|
1656
|
+
onClick: (_) => p(F)
|
|
1651
1657
|
}, [
|
|
1652
1658
|
A(C(F.label), 1)
|
|
1653
|
-
], 8,
|
|
1659
|
+
], 8, ol)), [
|
|
1654
1660
|
[H, F.permissionsTag || null]
|
|
1655
|
-
]) :
|
|
1661
|
+
]) : ue((i(), P(L(Ne), {
|
|
1656
1662
|
key: 1,
|
|
1657
1663
|
title: F.confirmTitle,
|
|
1658
1664
|
onConfirm: (_) => g(F)
|
|
1659
1665
|
}, {
|
|
1660
1666
|
default: s(() => [
|
|
1661
|
-
|
|
1667
|
+
ue((i(), T("a", ll, [
|
|
1662
1668
|
A(C(F.label), 1)
|
|
1663
1669
|
])), [
|
|
1664
1670
|
[H, F.permissionsTag || null]
|
|
@@ -1668,13 +1674,13 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1668
1674
|
}, 1032, ["title", "onConfirm"])), [
|
|
1669
1675
|
[H, F.permissionsTag || null]
|
|
1670
1676
|
])
|
|
1671
|
-
], 64)) :
|
|
1677
|
+
], 64)) : ue((i(), T("a", {
|
|
1672
1678
|
key: 1,
|
|
1673
1679
|
href: "javascript:;",
|
|
1674
1680
|
onClick: (_) => g(F)
|
|
1675
1681
|
}, [
|
|
1676
1682
|
A(C(F.label), 1)
|
|
1677
|
-
], 8,
|
|
1683
|
+
], 8, al)), [
|
|
1678
1684
|
[H, F.permissionsTag || null]
|
|
1679
1685
|
])
|
|
1680
1686
|
]),
|
|
@@ -1687,14 +1693,14 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1687
1693
|
})
|
|
1688
1694
|
]),
|
|
1689
1695
|
default: s(() => [
|
|
1690
|
-
c("a",
|
|
1696
|
+
c("a", tl, [
|
|
1691
1697
|
A(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1692
|
-
w(L(
|
|
1698
|
+
w(L(Ye), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1693
1699
|
])
|
|
1694
1700
|
]),
|
|
1695
1701
|
_: 1
|
|
1696
1702
|
})) : N("", !0),
|
|
1697
|
-
w(L(
|
|
1703
|
+
w(L(Ue), {
|
|
1698
1704
|
visible: u.value,
|
|
1699
1705
|
title: U.value.title,
|
|
1700
1706
|
"confirm-loading": d.value,
|
|
@@ -1702,127 +1708,127 @@ const lo = "hb-", Ze = (e = "") => {
|
|
|
1702
1708
|
onCancel: $
|
|
1703
1709
|
}, {
|
|
1704
1710
|
default: s(() => [
|
|
1705
|
-
c("p",
|
|
1711
|
+
c("p", nl, C(U.value.content), 1)
|
|
1706
1712
|
]),
|
|
1707
1713
|
_: 1
|
|
1708
1714
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1709
1715
|
]);
|
|
1710
1716
|
};
|
|
1711
1717
|
}
|
|
1712
|
-
}),
|
|
1718
|
+
}), sl = /* @__PURE__ */ X(il, [["__scopeId", "data-v-25fd055e"]]), rl = Q(sl), ut = (e) => ({ tableWidth: z(() => {
|
|
1713
1719
|
const t = Array.isArray(e) ? e : e.value;
|
|
1714
1720
|
return !t || t.length === 0 ? 0 : t.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, u) => n + u, 0);
|
|
1715
1721
|
}) });
|
|
1716
|
-
var
|
|
1717
|
-
function
|
|
1718
|
-
var o =
|
|
1722
|
+
var cl = typeof global == "object" && global && global.Object === Object && global, dl = typeof self == "object" && self && self.Object === Object && self, Ht = cl || dl || Function("return this")(), De = Ht.Symbol, xt = Object.prototype, ul = xt.hasOwnProperty, bl = xt.toString, _e = De ? De.toStringTag : void 0;
|
|
1723
|
+
function fl(e) {
|
|
1724
|
+
var o = ul.call(e, _e), t = e[_e];
|
|
1719
1725
|
try {
|
|
1720
|
-
e[
|
|
1726
|
+
e[_e] = void 0;
|
|
1721
1727
|
var n = !0;
|
|
1722
1728
|
} catch {
|
|
1723
1729
|
}
|
|
1724
|
-
var u =
|
|
1725
|
-
return n && (o ? e[
|
|
1730
|
+
var u = bl.call(e);
|
|
1731
|
+
return n && (o ? e[_e] = t : delete e[_e]), u;
|
|
1726
1732
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1729
|
-
return
|
|
1733
|
+
var pl = Object.prototype, hl = pl.toString;
|
|
1734
|
+
function ml(e) {
|
|
1735
|
+
return hl.call(e);
|
|
1730
1736
|
}
|
|
1731
|
-
var
|
|
1732
|
-
function
|
|
1733
|
-
return e == null ? e === void 0 ?
|
|
1737
|
+
var vl = "[object Null]", gl = "[object Undefined]", bt = De ? De.toStringTag : void 0;
|
|
1738
|
+
function yl(e) {
|
|
1739
|
+
return e == null ? e === void 0 ? gl : vl : bt && bt in Object(e) ? fl(e) : ml(e);
|
|
1734
1740
|
}
|
|
1735
|
-
function
|
|
1741
|
+
function _l(e) {
|
|
1736
1742
|
return e != null && typeof e == "object";
|
|
1737
1743
|
}
|
|
1738
|
-
var
|
|
1739
|
-
function
|
|
1740
|
-
return typeof e == "symbol" ||
|
|
1744
|
+
var Ll = "[object Symbol]";
|
|
1745
|
+
function Cl(e) {
|
|
1746
|
+
return typeof e == "symbol" || _l(e) && yl(e) == Ll;
|
|
1741
1747
|
}
|
|
1742
|
-
var
|
|
1743
|
-
function
|
|
1744
|
-
for (var o = e.length; o-- &&
|
|
1748
|
+
var kl = /\s/;
|
|
1749
|
+
function Sl(e) {
|
|
1750
|
+
for (var o = e.length; o-- && kl.test(e.charAt(o)); )
|
|
1745
1751
|
;
|
|
1746
1752
|
return o;
|
|
1747
1753
|
}
|
|
1748
|
-
var
|
|
1749
|
-
function
|
|
1750
|
-
return e && e.slice(0,
|
|
1754
|
+
var Tl = /^\s+/;
|
|
1755
|
+
function wl(e) {
|
|
1756
|
+
return e && e.slice(0, Sl(e) + 1).replace(Tl, "");
|
|
1751
1757
|
}
|
|
1752
|
-
function
|
|
1758
|
+
function qe(e) {
|
|
1753
1759
|
var o = typeof e;
|
|
1754
1760
|
return e != null && (o == "object" || o == "function");
|
|
1755
1761
|
}
|
|
1756
|
-
var
|
|
1757
|
-
function
|
|
1762
|
+
var ft = NaN, Hl = /^[-+]0x[0-9a-f]+$/i, xl = /^0b[01]+$/i, Fl = /^0o[0-7]+$/i, $l = parseInt;
|
|
1763
|
+
function pt(e) {
|
|
1758
1764
|
if (typeof e == "number")
|
|
1759
1765
|
return e;
|
|
1760
|
-
if (
|
|
1761
|
-
return
|
|
1762
|
-
if (
|
|
1766
|
+
if (Cl(e))
|
|
1767
|
+
return ft;
|
|
1768
|
+
if (qe(e)) {
|
|
1763
1769
|
var o = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1764
|
-
e =
|
|
1770
|
+
e = qe(o) ? o + "" : o;
|
|
1765
1771
|
}
|
|
1766
1772
|
if (typeof e != "string")
|
|
1767
1773
|
return e === 0 ? e : +e;
|
|
1768
|
-
e =
|
|
1769
|
-
var t =
|
|
1770
|
-
return t ||
|
|
1774
|
+
e = wl(e);
|
|
1775
|
+
var t = xl.test(e);
|
|
1776
|
+
return t || Fl.test(e) ? $l(e.slice(2), t ? 2 : 8) : Hl.test(e) ? ft : +e;
|
|
1771
1777
|
}
|
|
1772
|
-
var
|
|
1773
|
-
return
|
|
1774
|
-
},
|
|
1775
|
-
function
|
|
1776
|
-
var n, u, d, r,
|
|
1778
|
+
var Re = function() {
|
|
1779
|
+
return Ht.Date.now();
|
|
1780
|
+
}, Il = "Expected a function", Ml = Math.max, Dl = Math.min;
|
|
1781
|
+
function Ft(e, o, t) {
|
|
1782
|
+
var n, u, d, r, h, a, l = 0, v = !1, g = !1, p = !0;
|
|
1777
1783
|
if (typeof e != "function")
|
|
1778
|
-
throw new TypeError(
|
|
1779
|
-
o =
|
|
1784
|
+
throw new TypeError(Il);
|
|
1785
|
+
o = pt(o) || 0, qe(t) && (v = !!t.leading, g = "maxWait" in t, d = g ? Ml(pt(t.maxWait) || 0, o) : d, p = "trailing" in t ? !!t.trailing : p);
|
|
1780
1786
|
function B(_) {
|
|
1781
|
-
var b = n,
|
|
1782
|
-
return n = u = void 0, l = _, r = e.apply(
|
|
1787
|
+
var b = n, m = u;
|
|
1788
|
+
return n = u = void 0, l = _, r = e.apply(m, b), r;
|
|
1783
1789
|
}
|
|
1784
1790
|
function $(_) {
|
|
1785
|
-
return l = _,
|
|
1791
|
+
return l = _, h = setTimeout(k, o), v ? B(_) : r;
|
|
1786
1792
|
}
|
|
1787
1793
|
function U(_) {
|
|
1788
|
-
var b = _ - a,
|
|
1789
|
-
return g ?
|
|
1794
|
+
var b = _ - a, m = _ - l, x = o - b;
|
|
1795
|
+
return g ? Dl(x, d - m) : x;
|
|
1790
1796
|
}
|
|
1791
1797
|
function D(_) {
|
|
1792
|
-
var b = _ - a,
|
|
1793
|
-
return a === void 0 || b >= o || b < 0 || g &&
|
|
1798
|
+
var b = _ - a, m = _ - l;
|
|
1799
|
+
return a === void 0 || b >= o || b < 0 || g && m >= d;
|
|
1794
1800
|
}
|
|
1795
1801
|
function k() {
|
|
1796
|
-
var _ =
|
|
1802
|
+
var _ = Re();
|
|
1797
1803
|
if (D(_))
|
|
1798
1804
|
return y(_);
|
|
1799
|
-
|
|
1805
|
+
h = setTimeout(k, U(_));
|
|
1800
1806
|
}
|
|
1801
1807
|
function y(_) {
|
|
1802
|
-
return
|
|
1808
|
+
return h = void 0, p && n ? B(_) : (n = u = void 0, r);
|
|
1803
1809
|
}
|
|
1804
1810
|
function H() {
|
|
1805
|
-
|
|
1811
|
+
h !== void 0 && clearTimeout(h), l = 0, n = a = u = h = void 0;
|
|
1806
1812
|
}
|
|
1807
1813
|
function F() {
|
|
1808
|
-
return
|
|
1814
|
+
return h === void 0 ? r : y(Re());
|
|
1809
1815
|
}
|
|
1810
1816
|
function S() {
|
|
1811
|
-
var _ =
|
|
1817
|
+
var _ = Re(), b = D(_);
|
|
1812
1818
|
if (n = arguments, u = this, a = _, b) {
|
|
1813
|
-
if (
|
|
1819
|
+
if (h === void 0)
|
|
1814
1820
|
return $(a);
|
|
1815
1821
|
if (g)
|
|
1816
|
-
return clearTimeout(
|
|
1822
|
+
return clearTimeout(h), h = setTimeout(k, o), B(a);
|
|
1817
1823
|
}
|
|
1818
|
-
return
|
|
1824
|
+
return h === void 0 && (h = setTimeout(k, o)), r;
|
|
1819
1825
|
}
|
|
1820
1826
|
return S.cancel = H, S.flush = F, S;
|
|
1821
1827
|
}
|
|
1822
|
-
const
|
|
1828
|
+
const Bl = {
|
|
1823
1829
|
key: 0,
|
|
1824
1830
|
class: "hb-lib-list-table-act"
|
|
1825
|
-
},
|
|
1831
|
+
}, Al = { class: "empty-container" }, Ol = { key: 1 }, El = { key: 2 }, zl = /* @__PURE__ */ J({
|
|
1826
1832
|
name: "HbLibListTable",
|
|
1827
1833
|
__name: "HbListTable",
|
|
1828
1834
|
props: {
|
|
@@ -1834,8 +1840,8 @@ const Ol = {
|
|
|
1834
1840
|
},
|
|
1835
1841
|
emits: ["change", "resizeCol"],
|
|
1836
1842
|
setup(e, { emit: o }) {
|
|
1837
|
-
const t =
|
|
1838
|
-
|
|
1843
|
+
const t = be("globalCompConfig", {}), n = o, { t: u } = ce(), d = e, r = E([]), h = be("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = ut(r), l = E(a.value), v = z(() => d.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1844
|
+
oe(
|
|
1839
1845
|
() => d.columns,
|
|
1840
1846
|
(k) => {
|
|
1841
1847
|
const y = k.filter((F) => F != null && F.checked);
|
|
@@ -1851,7 +1857,7 @@ const Ol = {
|
|
|
1851
1857
|
}
|
|
1852
1858
|
return S.resizable === void 0 && (S.resizable = !0), S;
|
|
1853
1859
|
});
|
|
1854
|
-
const { tableWidth: H } =
|
|
1860
|
+
const { tableWidth: H } = ut(r);
|
|
1855
1861
|
l.value = H.value;
|
|
1856
1862
|
},
|
|
1857
1863
|
{
|
|
@@ -1859,40 +1865,40 @@ const Ol = {
|
|
|
1859
1865
|
deep: !0
|
|
1860
1866
|
}
|
|
1861
1867
|
);
|
|
1862
|
-
const g =
|
|
1868
|
+
const g = Ft(() => {
|
|
1863
1869
|
n("resizeCol", r);
|
|
1864
|
-
}, t.listTable?.colSaveTimeOut || 800),
|
|
1870
|
+
}, t.listTable?.colSaveTimeOut || 800), p = (k, y) => {
|
|
1865
1871
|
if (y) {
|
|
1866
1872
|
const H = typeof k == "string" ? parseInt(k, 10) : k;
|
|
1867
|
-
y.width = isNaN(H) ? t.listTable?.defaultColWidth || 150 : H,
|
|
1873
|
+
y.width = isNaN(H) ? t.listTable?.defaultColWidth || 150 : H, ye(() => {
|
|
1868
1874
|
g();
|
|
1869
1875
|
});
|
|
1870
1876
|
}
|
|
1871
1877
|
}, B = (k, y, H) => {
|
|
1872
1878
|
k?.current && n("change", k, y, H);
|
|
1873
|
-
}, $ = (k, y = "YYYY-MM-DD HH:mm:ss") => k ?
|
|
1879
|
+
}, $ = (k, y = "YYYY-MM-DD HH:mm:ss") => k ? Be(k).format(y) : "", U = (k, y) => k && y[k] || "", D = (k, y = t.listTable?.ellipsisNumber || 20) => k ? k.length > y ? `${k.substring(0, y)}...` : k : "";
|
|
1874
1880
|
return (k, y) => {
|
|
1875
1881
|
const H = V("a-empty"), F = V("a-tooltip"), S = V("HbLibCopy"), _ = V("a-tag"), b = V("a-table");
|
|
1876
1882
|
return i(), T("div", {
|
|
1877
|
-
class:
|
|
1878
|
-
style:
|
|
1883
|
+
class: q(["hb-lib-list-table", { "nowrap-table": d.rowHeight }]),
|
|
1884
|
+
style: se({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1879
1885
|
}, [
|
|
1880
|
-
k.$slots.tableActLeft ? (i(), T("section",
|
|
1886
|
+
k.$slots.tableActLeft ? (i(), T("section", Bl, [
|
|
1881
1887
|
j(k.$slots, "tableActLeft", {}, void 0, !0),
|
|
1882
1888
|
j(k.$slots, "tableActRight", {}, void 0, !0)
|
|
1883
1889
|
])) : N("", !0),
|
|
1884
|
-
w(b,
|
|
1890
|
+
w(b, ee(k.$attrs, {
|
|
1885
1891
|
bordered: "",
|
|
1886
1892
|
columns: r.value,
|
|
1887
1893
|
tableLayout: "fixed",
|
|
1888
|
-
onResizeColumn:
|
|
1894
|
+
onResizeColumn: p,
|
|
1889
1895
|
onChange: B,
|
|
1890
1896
|
scroll: v.value ? {
|
|
1891
1897
|
x: l.value
|
|
1892
|
-
} : { x: l.value, y: L(
|
|
1893
|
-
}),
|
|
1898
|
+
} : { x: l.value, y: L(h).tableHeight }
|
|
1899
|
+
}), Le({
|
|
1894
1900
|
emptyText: s(() => [
|
|
1895
|
-
c("div",
|
|
1901
|
+
c("div", Al, [
|
|
1896
1902
|
w(H, {
|
|
1897
1903
|
description: L(u)("hbLibComp.hbListTable.noData")
|
|
1898
1904
|
}, null, 8, ["description"])
|
|
@@ -1902,66 +1908,66 @@ const Ol = {
|
|
|
1902
1908
|
}, [
|
|
1903
1909
|
k.$slots.headerCell ? {
|
|
1904
1910
|
name: "headerCell",
|
|
1905
|
-
fn: s(({ column:
|
|
1911
|
+
fn: s(({ column: m }) => [
|
|
1906
1912
|
j(k.$slots, "headerCell", {
|
|
1907
|
-
column:
|
|
1908
|
-
title:
|
|
1913
|
+
column: m,
|
|
1914
|
+
title: m.title
|
|
1909
1915
|
}, () => [
|
|
1910
|
-
A(C(
|
|
1916
|
+
A(C(m.title), 1)
|
|
1911
1917
|
], !0)
|
|
1912
1918
|
]),
|
|
1913
1919
|
key: "0"
|
|
1914
1920
|
} : void 0,
|
|
1915
1921
|
k.$slots.bodyCell ? {
|
|
1916
1922
|
name: "bodyCell",
|
|
1917
|
-
fn: s(({ column:
|
|
1923
|
+
fn: s(({ column: m, record: x, index: O, text: G }) => [
|
|
1918
1924
|
j(k.$slots, "bodyCell", {
|
|
1919
|
-
column:
|
|
1925
|
+
column: m,
|
|
1920
1926
|
record: x,
|
|
1921
1927
|
index: O,
|
|
1922
|
-
text:
|
|
1928
|
+
text: G
|
|
1923
1929
|
}, void 0, !0),
|
|
1924
|
-
|
|
1930
|
+
m && m.needTooltip && !m.needCopy ? (i(), P(F, {
|
|
1925
1931
|
key: 0,
|
|
1926
1932
|
placement: e.tooltipPlacement
|
|
1927
1933
|
}, {
|
|
1928
1934
|
title: s(() => [
|
|
1929
|
-
A(C(x[
|
|
1935
|
+
A(C(x[m.dataIndex]), 1)
|
|
1930
1936
|
]),
|
|
1931
1937
|
default: s(() => [
|
|
1932
|
-
A(" " + C(x[
|
|
1938
|
+
A(" " + C(x[m.dataIndex]), 1)
|
|
1933
1939
|
]),
|
|
1934
1940
|
_: 2
|
|
1935
|
-
}, 1032, ["placement"])) :
|
|
1936
|
-
A(C(x[
|
|
1941
|
+
}, 1032, ["placement"])) : m && m.needCopy && !m.needTooltip ? (i(), T("div", Ol, [
|
|
1942
|
+
A(C(x[m.dataIndex]) + " ", 1),
|
|
1937
1943
|
w(S, {
|
|
1938
|
-
"cp-text": x[
|
|
1944
|
+
"cp-text": x[m.dataIndex],
|
|
1939
1945
|
style: { position: "relative" }
|
|
1940
1946
|
}, null, 8, ["cp-text"])
|
|
1941
1947
|
])) : N("", !0),
|
|
1942
|
-
|
|
1948
|
+
m && m.needTooltip && m.needCopy ? (i(), T("div", El, [
|
|
1943
1949
|
w(F, { placement: e.tooltipPlacement }, {
|
|
1944
1950
|
title: s(() => [
|
|
1945
|
-
A(C(x[
|
|
1951
|
+
A(C(x[m.dataIndex]), 1)
|
|
1946
1952
|
]),
|
|
1947
1953
|
default: s(() => [
|
|
1948
|
-
A(" " + C(D(x[
|
|
1954
|
+
A(" " + C(D(x[m.dataIndex], m.strLen)), 1)
|
|
1949
1955
|
]),
|
|
1950
1956
|
_: 2
|
|
1951
1957
|
}, 1032, ["placement"]),
|
|
1952
1958
|
w(S, {
|
|
1953
|
-
"cp-text": x[
|
|
1959
|
+
"cp-text": x[m.dataIndex],
|
|
1954
1960
|
style: { position: "relative" }
|
|
1955
1961
|
}, null, 8, ["cp-text"])
|
|
1956
|
-
])) :
|
|
1957
|
-
A(C($(x[
|
|
1958
|
-
], 64)) :
|
|
1959
|
-
U(x[
|
|
1962
|
+
])) : m && m.needFormat ? (i(), T(K, { key: 3 }, [
|
|
1963
|
+
A(C($(x[m.dataIndex], m.format)), 1)
|
|
1964
|
+
], 64)) : m && m.tags ? (i(), T(K, { key: 4 }, [
|
|
1965
|
+
U(x[m.dataIndex], m.tags) ? (i(), P(_, {
|
|
1960
1966
|
key: 0,
|
|
1961
|
-
color: U(x[
|
|
1967
|
+
color: U(x[m.dataIndex], m.tags)
|
|
1962
1968
|
}, {
|
|
1963
1969
|
default: s(() => [
|
|
1964
|
-
A(C(x[
|
|
1970
|
+
A(C(x[m.dataIndex]), 1)
|
|
1965
1971
|
]),
|
|
1966
1972
|
_: 2
|
|
1967
1973
|
}, 1032, ["color"])) : N("", !0)
|
|
@@ -1971,9 +1977,9 @@ const Ol = {
|
|
|
1971
1977
|
} : void 0,
|
|
1972
1978
|
k.$slots.expandedRowRender ? {
|
|
1973
1979
|
name: "expandedRowRender",
|
|
1974
|
-
fn: s(({ record:
|
|
1980
|
+
fn: s(({ record: m, index: x }) => [
|
|
1975
1981
|
j(k.$slots, "expandedRowRender", {
|
|
1976
|
-
record:
|
|
1982
|
+
record: m,
|
|
1977
1983
|
index: x
|
|
1978
1984
|
}, void 0, !0)
|
|
1979
1985
|
]),
|
|
@@ -1981,23 +1987,23 @@ const Ol = {
|
|
|
1981
1987
|
} : void 0,
|
|
1982
1988
|
k.$slots.customFilterDropdown ? {
|
|
1983
1989
|
name: "customFilterDropdown",
|
|
1984
|
-
fn: s(({ column:
|
|
1985
|
-
j(k.$slots, "customFilterDropdown", { column:
|
|
1990
|
+
fn: s(({ column: m }) => [
|
|
1991
|
+
j(k.$slots, "customFilterDropdown", { column: m }, void 0, !0)
|
|
1986
1992
|
]),
|
|
1987
1993
|
key: "3"
|
|
1988
1994
|
} : void 0,
|
|
1989
1995
|
k.$slots.customFilterIcon ? {
|
|
1990
1996
|
name: "customFilterIcon",
|
|
1991
|
-
fn: s(({ column:
|
|
1992
|
-
j(k.$slots, "customFilterIcon", { column:
|
|
1997
|
+
fn: s(({ column: m }) => [
|
|
1998
|
+
j(k.$slots, "customFilterIcon", { column: m }, void 0, !0)
|
|
1993
1999
|
]),
|
|
1994
2000
|
key: "4"
|
|
1995
2001
|
} : void 0,
|
|
1996
2002
|
k.$slots.expandIcon ? {
|
|
1997
2003
|
name: "expandIcon",
|
|
1998
|
-
fn: s(({ expanded:
|
|
2004
|
+
fn: s(({ expanded: m, record: x, index: O }) => [
|
|
1999
2005
|
j(k.$slots, "expandIcon", {
|
|
2000
|
-
expanded:
|
|
2006
|
+
expanded: m,
|
|
2001
2007
|
record: x,
|
|
2002
2008
|
index: O
|
|
2003
2009
|
}, void 0, !0)
|
|
@@ -2029,16 +2035,16 @@ const Ol = {
|
|
|
2029
2035
|
], 6);
|
|
2030
2036
|
};
|
|
2031
2037
|
}
|
|
2032
|
-
}),
|
|
2038
|
+
}), Nl = /* @__PURE__ */ X(zl, [["__scopeId", "data-v-4a8b9aaa"]]), Rl = Q(Nl), Pl = { class: "hb-lib-table-setting-box" }, Ul = {
|
|
2033
2039
|
key: 0,
|
|
2034
2040
|
class: "hb-lib-table-drag-item"
|
|
2035
|
-
},
|
|
2041
|
+
}, Vl = {
|
|
2036
2042
|
key: 0,
|
|
2037
2043
|
class: "hb-lib-table-drag-item-act"
|
|
2038
|
-
},
|
|
2044
|
+
}, Wl = ["onClick"], jl = ["onClick"], Yl = { class: "hb-lib-table-set-btn-group" }, ql = {
|
|
2039
2045
|
class: "select-all-container",
|
|
2040
2046
|
style: { "margin-right": "10px" }
|
|
2041
|
-
},
|
|
2047
|
+
}, Kl = /* @__PURE__ */ J({
|
|
2042
2048
|
name: "HbLibTableColumnSet",
|
|
2043
2049
|
__name: "HbTableColumnSet",
|
|
2044
2050
|
props: {
|
|
@@ -2071,23 +2077,23 @@ const Ol = {
|
|
|
2071
2077
|
},
|
|
2072
2078
|
emits: ["on-get-columns"],
|
|
2073
2079
|
setup(e, { emit: o }) {
|
|
2074
|
-
const t = o, { t: n } =
|
|
2080
|
+
const t = o, { t: n } = ce(), u = e, d = E([]), r = z(() => a.value.filter((_) => _.checked));
|
|
2075
2081
|
E([]);
|
|
2076
|
-
const
|
|
2082
|
+
const h = E(!1), a = E([]), l = E(null), v = z(() => r.value.length > 0 && r.value.length === d.value.length), g = z(() => r.value.length > 0 && r.value.length < d.value.length), p = (_) => {
|
|
2077
2083
|
l.value = _.oldIndex;
|
|
2078
2084
|
}, B = (_) => {
|
|
2079
2085
|
const b = _.newIndex;
|
|
2080
2086
|
if (d.value.some((x) => x.fixed === "left" || x.fixed === "right" || x.fixed === !0)) {
|
|
2081
|
-
const x = d.value.filter((
|
|
2082
|
-
if ((x > 0 && b < x || O < d.value.length && b >= O) && (
|
|
2083
|
-
const
|
|
2084
|
-
a.value.splice(l.value, 0,
|
|
2087
|
+
const x = d.value.filter((G) => G.fixed === "left").length, O = d.value.length - d.value.filter((G) => G.fixed === "right").length;
|
|
2088
|
+
if ((x > 0 && b < x || O < d.value.length && b >= O) && (Ce.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), l.value !== null)) {
|
|
2089
|
+
const G = a.value.splice(b, 1)[0];
|
|
2090
|
+
a.value.splice(l.value, 0, G);
|
|
2085
2091
|
}
|
|
2086
2092
|
}
|
|
2087
2093
|
l.value = null;
|
|
2088
2094
|
}, $ = (_) => {
|
|
2089
|
-
_.target.checked ? a.value.forEach((
|
|
2090
|
-
|
|
2095
|
+
_.target.checked ? a.value.forEach((m) => m.checked = !0) : a.value.forEach((m) => {
|
|
2096
|
+
m.dataIndex !== "action" && m.dataIndex !== "actions" && (m.checked = !1);
|
|
2091
2097
|
});
|
|
2092
2098
|
}, U = () => {
|
|
2093
2099
|
d.value = u.localColumns.map((b) => ({
|
|
@@ -2103,7 +2109,7 @@ const Ol = {
|
|
|
2103
2109
|
}, D = (_, b) => {
|
|
2104
2110
|
b ? _.checked = !0 : _.checked = !1;
|
|
2105
2111
|
}, k = () => {
|
|
2106
|
-
d.value = [...a.value], t("on-get-columns", d.value),
|
|
2112
|
+
d.value = [...a.value], t("on-get-columns", d.value), h.value = !1;
|
|
2107
2113
|
}, y = () => {
|
|
2108
2114
|
d.value = u.tableColumns.map((b) => ({
|
|
2109
2115
|
...b,
|
|
@@ -2117,29 +2123,29 @@ const Ol = {
|
|
|
2117
2123
|
});
|
|
2118
2124
|
}, H = (_) => _.children[0].text, F = (_) => {
|
|
2119
2125
|
delete _.fixed;
|
|
2120
|
-
const b = a.value.findIndex((
|
|
2126
|
+
const b = a.value.findIndex((m) => m.value === _.value);
|
|
2121
2127
|
if (b !== -1) {
|
|
2122
|
-
let
|
|
2128
|
+
let m = -1;
|
|
2123
2129
|
for (let x = 0; x < a.value.length; x++)
|
|
2124
|
-
a.value[x].fixed === "left" && (
|
|
2125
|
-
if (
|
|
2130
|
+
a.value[x].fixed === "left" && (m = x);
|
|
2131
|
+
if (m !== -1 && b !== m + 1) {
|
|
2126
2132
|
const x = [...a.value], [O] = x.splice(b, 1);
|
|
2127
|
-
x.splice(
|
|
2133
|
+
x.splice(m + 1, 0, O), a.value = x;
|
|
2128
2134
|
}
|
|
2129
2135
|
}
|
|
2130
2136
|
}, S = (_) => {
|
|
2131
|
-
const b = a.value.findIndex((
|
|
2137
|
+
const b = a.value.findIndex((m) => m.value === _.value);
|
|
2132
2138
|
if (b !== -1) {
|
|
2133
|
-
let
|
|
2134
|
-
for (let
|
|
2135
|
-
a.value[
|
|
2139
|
+
let m = -1;
|
|
2140
|
+
for (let ie = 0; ie < a.value.length; ie++)
|
|
2141
|
+
a.value[ie].fixed === "left" && (m = ie);
|
|
2136
2142
|
const x = [...a.value], [O] = x.splice(b, 1);
|
|
2137
2143
|
O.fixed = "left";
|
|
2138
|
-
const
|
|
2139
|
-
x.splice(
|
|
2144
|
+
const G = m === -1 ? 0 : m + 1;
|
|
2145
|
+
x.splice(G, 0, O), a.value = x;
|
|
2140
2146
|
}
|
|
2141
2147
|
};
|
|
2142
|
-
return
|
|
2148
|
+
return oe(
|
|
2143
2149
|
() => u.tableColumns,
|
|
2144
2150
|
() => {
|
|
2145
2151
|
y();
|
|
@@ -2149,18 +2155,18 @@ const Ol = {
|
|
|
2149
2155
|
deep: !0
|
|
2150
2156
|
}
|
|
2151
2157
|
), (_, b) => {
|
|
2152
|
-
const
|
|
2153
|
-
return i(), T("div",
|
|
2154
|
-
w(L(
|
|
2158
|
+
const m = V("a-tooltip"), x = V("a-button");
|
|
2159
|
+
return i(), T("div", Pl, [
|
|
2160
|
+
w(L(Pt), {
|
|
2155
2161
|
title: L(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2156
2162
|
trigger: "click",
|
|
2157
2163
|
placement: "leftTop",
|
|
2158
2164
|
overlayClassName: "column_setting_popover",
|
|
2159
|
-
visible:
|
|
2160
|
-
"onUpdate:visible": b[1] || (b[1] = (O) =>
|
|
2165
|
+
visible: h.value,
|
|
2166
|
+
"onUpdate:visible": b[1] || (b[1] = (O) => h.value = O)
|
|
2161
2167
|
}, {
|
|
2162
2168
|
content: s(() => [
|
|
2163
|
-
w(L(
|
|
2169
|
+
w(L(Fe), {
|
|
2164
2170
|
modelValue: a.value,
|
|
2165
2171
|
"onUpdate:modelValue": b[0] || (b[0] = (O) => a.value = O),
|
|
2166
2172
|
"item-key": "value",
|
|
@@ -2168,32 +2174,32 @@ const Ol = {
|
|
|
2168
2174
|
"ghost-class": "ghost",
|
|
2169
2175
|
animation: "200",
|
|
2170
2176
|
handle: ".drag-handle",
|
|
2171
|
-
onStart:
|
|
2177
|
+
onStart: p,
|
|
2172
2178
|
onEnd: B
|
|
2173
2179
|
}, {
|
|
2174
2180
|
item: s(({ element: O }) => [
|
|
2175
|
-
O.fixed !== "right" ? (i(), T("div",
|
|
2176
|
-
w(L(
|
|
2181
|
+
O.fixed !== "right" ? (i(), T("div", Ul, [
|
|
2182
|
+
w(L(Ie), {
|
|
2177
2183
|
checked: O.checked,
|
|
2178
|
-
onChange: (
|
|
2184
|
+
onChange: (G) => D(O, G.target.checked)
|
|
2179
2185
|
}, {
|
|
2180
2186
|
default: s(() => [
|
|
2181
2187
|
A(C(O.label), 1)
|
|
2182
2188
|
]),
|
|
2183
2189
|
_: 2
|
|
2184
2190
|
}, 1032, ["checked", "onChange"]),
|
|
2185
|
-
O.checked ? (i(), T("section",
|
|
2191
|
+
O.checked ? (i(), T("section", Vl, [
|
|
2186
2192
|
c("span", {
|
|
2187
|
-
class:
|
|
2193
|
+
class: q(O.fixed ? "drag-hide" : "drag-handle")
|
|
2188
2194
|
}, "⋮⋮", 2),
|
|
2189
|
-
O.fixed ? (i(), P(
|
|
2195
|
+
O.fixed ? (i(), P(m, { key: 0 }, {
|
|
2190
2196
|
title: s(() => [
|
|
2191
2197
|
A(C(L(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2192
2198
|
]),
|
|
2193
2199
|
default: s(() => [
|
|
2194
2200
|
c("span", {
|
|
2195
2201
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2196
|
-
onClick: (
|
|
2202
|
+
onClick: (G) => F(O)
|
|
2197
2203
|
}, [...b[2] || (b[2] = [
|
|
2198
2204
|
c("svg", {
|
|
2199
2205
|
t: "1759048615600",
|
|
@@ -2211,18 +2217,18 @@ const Ol = {
|
|
|
2211
2217
|
fill: "#ff5000"
|
|
2212
2218
|
})
|
|
2213
2219
|
], -1)
|
|
2214
|
-
])], 8,
|
|
2220
|
+
])], 8, Wl)
|
|
2215
2221
|
]),
|
|
2216
2222
|
_: 2
|
|
2217
2223
|
}, 1024)) : N("", !0),
|
|
2218
|
-
O.fixed ? N("", !0) : (i(), P(
|
|
2224
|
+
O.fixed ? N("", !0) : (i(), P(m, { key: 1 }, {
|
|
2219
2225
|
title: s(() => [
|
|
2220
2226
|
A(C(L(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2221
2227
|
]),
|
|
2222
2228
|
default: s(() => [
|
|
2223
2229
|
c("span", {
|
|
2224
2230
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2225
|
-
onClick: (
|
|
2231
|
+
onClick: (G) => S(O)
|
|
2226
2232
|
}, [...b[3] || (b[3] = [
|
|
2227
2233
|
c("svg", {
|
|
2228
2234
|
t: "1759048735643",
|
|
@@ -2240,7 +2246,7 @@ const Ol = {
|
|
|
2240
2246
|
fill: "#ff5000"
|
|
2241
2247
|
})
|
|
2242
2248
|
], -1)
|
|
2243
|
-
])], 8,
|
|
2249
|
+
])], 8, jl)
|
|
2244
2250
|
]),
|
|
2245
2251
|
_: 2
|
|
2246
2252
|
}, 1024))
|
|
@@ -2249,9 +2255,9 @@ const Ol = {
|
|
|
2249
2255
|
]),
|
|
2250
2256
|
_: 1
|
|
2251
2257
|
}, 8, ["modelValue"]),
|
|
2252
|
-
c("div",
|
|
2253
|
-
c("div",
|
|
2254
|
-
w(L(
|
|
2258
|
+
c("div", Yl, [
|
|
2259
|
+
c("div", ql, [
|
|
2260
|
+
w(L(Ie), {
|
|
2255
2261
|
checked: v.value,
|
|
2256
2262
|
indeterminate: g.value,
|
|
2257
2263
|
onChange: $
|
|
@@ -2284,7 +2290,7 @@ const Ol = {
|
|
|
2284
2290
|
])
|
|
2285
2291
|
]),
|
|
2286
2292
|
default: s(() => [
|
|
2287
|
-
w(
|
|
2293
|
+
w(m, {
|
|
2288
2294
|
title: L(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2289
2295
|
placement: "leftTop"
|
|
2290
2296
|
}, {
|
|
@@ -2321,11 +2327,11 @@ const Ol = {
|
|
|
2321
2327
|
]);
|
|
2322
2328
|
};
|
|
2323
2329
|
}
|
|
2324
|
-
}),
|
|
2330
|
+
}), Gl = /* @__PURE__ */ X(Kl, [["__scopeId", "data-v-07a63550"]]), Jl = Q(Gl), Ql = /* @__PURE__ */ J({
|
|
2325
2331
|
name: "HbLibFormTooltipSelect",
|
|
2326
2332
|
inheritAttrs: !1,
|
|
2327
2333
|
__name: "HbTooltipSelect",
|
|
2328
|
-
props: /* @__PURE__ */
|
|
2334
|
+
props: /* @__PURE__ */ Pe({
|
|
2329
2335
|
options: { default: () => [] },
|
|
2330
2336
|
tooltipPlacement: { default: "right" },
|
|
2331
2337
|
tooltipMaxWidth: { default: 280 },
|
|
@@ -2339,13 +2345,13 @@ const Ol = {
|
|
|
2339
2345
|
}),
|
|
2340
2346
|
emits: ["update:value"],
|
|
2341
2347
|
setup(e, { expose: o }) {
|
|
2342
|
-
const t = e, n =
|
|
2348
|
+
const t = e, n = Bt(), u = z(() => {
|
|
2343
2349
|
const $ = n, U = $.dropdownClassName;
|
|
2344
2350
|
return {
|
|
2345
2351
|
...$,
|
|
2346
2352
|
dropdownClassName: U ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2347
2353
|
};
|
|
2348
|
-
}), d = E(), r =
|
|
2354
|
+
}), d = E(), r = _t(e, "value"), h = z(() => t.options ?? []), a = z(() => ({
|
|
2349
2355
|
maxWidth: typeof t.tooltipMaxWidth == "number" ? `${t.tooltipMaxWidth}px` : t.tooltipMaxWidth
|
|
2350
2356
|
})), l = ($) => $.tooltip ?? $.label, v = ($) => $.key ?? $.label, g = ($) => !!(t.enableTooltip && l($));
|
|
2351
2357
|
return o({
|
|
@@ -2356,7 +2362,7 @@ const Ol = {
|
|
|
2356
2362
|
d.value?.blur?.();
|
|
2357
2363
|
},
|
|
2358
2364
|
selectRef: d
|
|
2359
|
-
}), ($, U) => (i(), P(L(
|
|
2365
|
+
}), ($, U) => (i(), P(L(We), ee({
|
|
2360
2366
|
ref_key: "selectRef",
|
|
2361
2367
|
ref: d
|
|
2362
2368
|
}, u.value, {
|
|
@@ -2365,13 +2371,13 @@ const Ol = {
|
|
|
2365
2371
|
class: "hb_lib_form_tooltip_select"
|
|
2366
2372
|
}), {
|
|
2367
2373
|
default: s(() => [
|
|
2368
|
-
$.$slots.default ? j($.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(
|
|
2374
|
+
$.$slots.default ? j($.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(K, { key: 1 }, ne(h.value, (D) => (i(), P(L(je), ee({
|
|
2369
2375
|
key: v(D),
|
|
2370
2376
|
value: D.value,
|
|
2371
2377
|
disabled: D.disabled
|
|
2372
2378
|
}, { ref_for: !0 }, D.optionProps), {
|
|
2373
2379
|
default: s(() => [
|
|
2374
|
-
g(D) ? (i(), P(L(
|
|
2380
|
+
g(D) ? (i(), P(L($e), {
|
|
2375
2381
|
key: 0,
|
|
2376
2382
|
title: l(D),
|
|
2377
2383
|
placement: t.tooltipPlacement,
|
|
@@ -2379,13 +2385,13 @@ const Ol = {
|
|
|
2379
2385
|
}, {
|
|
2380
2386
|
default: s(() => [
|
|
2381
2387
|
c("span", {
|
|
2382
|
-
class:
|
|
2388
|
+
class: q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2383
2389
|
}, C(D.label), 3)
|
|
2384
2390
|
]),
|
|
2385
2391
|
_: 2
|
|
2386
2392
|
}, 1032, ["title", "placement", "overlay-style"])) : (i(), T("span", {
|
|
2387
2393
|
key: 1,
|
|
2388
|
-
class:
|
|
2394
|
+
class: q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2389
2395
|
}, C(D.label), 3))
|
|
2390
2396
|
]),
|
|
2391
2397
|
_: 2
|
|
@@ -2394,10 +2400,10 @@ const Ol = {
|
|
|
2394
2400
|
_: 3
|
|
2395
2401
|
}, 16, ["value"]));
|
|
2396
2402
|
}
|
|
2397
|
-
}),
|
|
2403
|
+
}), Zl = /* @__PURE__ */ X(Ql, [["__scopeId", "data-v-13285691"]]), Xl = Q(Zl), ea = { class: "ant-upload-drag-icon" }, ta = { class: "ant-upload-text" }, oa = { style: { color: "#ff5000" } }, la = { class: "ant-upload-hint" }, aa = {
|
|
2398
2404
|
key: 0,
|
|
2399
2405
|
class: "hb_import_btn"
|
|
2400
|
-
},
|
|
2406
|
+
}, na = ["href"], ia = /* @__PURE__ */ J({
|
|
2401
2407
|
name: "HbLibImportFile",
|
|
2402
2408
|
__name: "HbImportFile",
|
|
2403
2409
|
props: {
|
|
@@ -2413,22 +2419,22 @@ const Ol = {
|
|
|
2413
2419
|
beforeSubmit: {}
|
|
2414
2420
|
},
|
|
2415
2421
|
setup(e, { expose: o }) {
|
|
2416
|
-
const { t } =
|
|
2422
|
+
const { t } = ce(), n = E(), u = e, d = E(!1), r = ke({
|
|
2417
2423
|
fileList: [],
|
|
2418
2424
|
visible: !1
|
|
2419
|
-
}),
|
|
2420
|
-
if (
|
|
2425
|
+
}), h = (p) => {
|
|
2426
|
+
if (p == null)
|
|
2421
2427
|
return;
|
|
2422
|
-
const B = r.fileList.indexOf(
|
|
2428
|
+
const B = r.fileList.indexOf(p);
|
|
2423
2429
|
if (B !== -1) {
|
|
2424
2430
|
const $ = r.fileList.slice();
|
|
2425
2431
|
$.splice(B, 1), r.fileList = $;
|
|
2426
2432
|
}
|
|
2427
2433
|
}, a = () => {
|
|
2428
2434
|
r.visible = !1, r.fileList = [], d.value = !1;
|
|
2429
|
-
}, l = (
|
|
2435
|
+
}, l = (p) => (r.fileList = [p], u.beforeUpload ? u.beforeUpload(p.originFileObj) : !1), v = () => {
|
|
2430
2436
|
n.value.validateFields().then(() => {
|
|
2431
|
-
u.beforeSubmit && (d.value = !0, u.beforeSubmit(r.fileList).then((
|
|
2437
|
+
u.beforeSubmit && (d.value = !0, u.beforeSubmit(r.fileList).then(() => {
|
|
2432
2438
|
}).finally(() => {
|
|
2433
2439
|
d.value = !1;
|
|
2434
2440
|
}));
|
|
@@ -2441,15 +2447,15 @@ const Ol = {
|
|
|
2441
2447
|
openModal: g,
|
|
2442
2448
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2443
2449
|
confirmLoading: d
|
|
2444
|
-
}), (
|
|
2450
|
+
}), (p, B) => {
|
|
2445
2451
|
const $ = V("a-upload-dragger"), U = V("a-form-item"), D = V("a-form"), k = V("a-modal"), y = V("a-button");
|
|
2446
|
-
return i(), T(
|
|
2447
|
-
w(k,
|
|
2452
|
+
return i(), T(K, null, [
|
|
2453
|
+
w(k, ee({
|
|
2448
2454
|
visible: r.visible,
|
|
2449
2455
|
"onUpdate:visible": B[0] || (B[0] = (H) => r.visible = H),
|
|
2450
2456
|
title: u.title,
|
|
2451
2457
|
"confirm-loading": d.value
|
|
2452
|
-
},
|
|
2458
|
+
}, p.$attrs, {
|
|
2453
2459
|
width: u.modalWidth,
|
|
2454
2460
|
onCancel: a,
|
|
2455
2461
|
onOk: v
|
|
@@ -2474,17 +2480,17 @@ const Ol = {
|
|
|
2474
2480
|
name: "file",
|
|
2475
2481
|
"file-list": r.fileList,
|
|
2476
2482
|
"before-upload": l,
|
|
2477
|
-
onRemove:
|
|
2483
|
+
onRemove: h
|
|
2478
2484
|
}, {
|
|
2479
2485
|
default: s(() => [
|
|
2480
|
-
c("p",
|
|
2481
|
-
w(L(
|
|
2486
|
+
c("p", ea, [
|
|
2487
|
+
w(L(Gt), { style: { "font-size": "37px" } })
|
|
2482
2488
|
]),
|
|
2483
|
-
c("p",
|
|
2489
|
+
c("p", ta, [
|
|
2484
2490
|
A(C(L(t)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2485
|
-
c("span",
|
|
2491
|
+
c("span", oa, C(L(t)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2486
2492
|
]),
|
|
2487
|
-
c("p",
|
|
2493
|
+
c("p", la, C(L(t)("hbLibComp.HbFileUploadModal.format")) + ": " + C(u.acceptFile), 1)
|
|
2488
2494
|
]),
|
|
2489
2495
|
_: 1
|
|
2490
2496
|
}, 8, ["max-count", "multiple", "accept", "file-list"])
|
|
@@ -2494,16 +2500,16 @@ const Ol = {
|
|
|
2494
2500
|
]),
|
|
2495
2501
|
_: 1
|
|
2496
2502
|
}, 8, ["model"]),
|
|
2497
|
-
u.templateUrl ? (i(), T("p",
|
|
2503
|
+
u.templateUrl ? (i(), T("p", aa, [
|
|
2498
2504
|
c("a", {
|
|
2499
2505
|
download: "Import_number-template.xlsx",
|
|
2500
2506
|
href: u.templateUrl
|
|
2501
|
-
}, C(L(t)("hbLibComp.HbImportFile.downloadTemplate")), 9,
|
|
2507
|
+
}, C(L(t)("hbLibComp.HbImportFile.downloadTemplate")), 9, na)
|
|
2502
2508
|
])) : N("", !0)
|
|
2503
2509
|
]),
|
|
2504
2510
|
_: 1
|
|
2505
2511
|
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2506
|
-
j(
|
|
2512
|
+
j(p.$slots, "btn", {}, () => [
|
|
2507
2513
|
w(y, {
|
|
2508
2514
|
type: "primary",
|
|
2509
2515
|
onClick: g
|
|
@@ -2517,7 +2523,7 @@ const Ol = {
|
|
|
2517
2523
|
], 64);
|
|
2518
2524
|
};
|
|
2519
2525
|
}
|
|
2520
|
-
}),
|
|
2526
|
+
}), sa = /* @__PURE__ */ X(ia, [["__scopeId", "data-v-a11cda0f"]]), ra = Q(sa), ca = { class: "hb_lib_log_modal_content" }, da = { class: "log_remark" }, ua = /* @__PURE__ */ J({
|
|
2521
2527
|
name: "HbLibLogModal",
|
|
2522
2528
|
__name: "HbLogModal",
|
|
2523
2529
|
props: {
|
|
@@ -2539,7 +2545,7 @@ const Ol = {
|
|
|
2539
2545
|
},
|
|
2540
2546
|
emits: ["update:visible"],
|
|
2541
2547
|
setup(e, { expose: o, emit: t }) {
|
|
2542
|
-
const { t: n } =
|
|
2548
|
+
const { t: n } = ce(), u = At(), d = e, r = [
|
|
2543
2549
|
{
|
|
2544
2550
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
2545
2551
|
dataIndex: "userName",
|
|
@@ -2551,7 +2557,7 @@ const Ol = {
|
|
|
2551
2557
|
width: "25%"
|
|
2552
2558
|
},
|
|
2553
2559
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2554
|
-
],
|
|
2560
|
+
], h = z(() => d.columns || r), a = z(() => d.title || n("hbLibComp.HbLogModal.operateLogs")), l = z(() => !!u.title), v = E(!1), g = ke({
|
|
2555
2561
|
list: [],
|
|
2556
2562
|
pagination: {
|
|
2557
2563
|
current: 1,
|
|
@@ -2563,7 +2569,7 @@ const Ol = {
|
|
|
2563
2569
|
total: 0
|
|
2564
2570
|
}
|
|
2565
2571
|
});
|
|
2566
|
-
|
|
2572
|
+
oe(
|
|
2567
2573
|
() => d.pagination,
|
|
2568
2574
|
(y) => {
|
|
2569
2575
|
y && (g.pagination = {
|
|
@@ -2576,36 +2582,36 @@ const Ol = {
|
|
|
2576
2582
|
immediate: !0
|
|
2577
2583
|
}
|
|
2578
2584
|
);
|
|
2579
|
-
const
|
|
2585
|
+
const p = () => {
|
|
2580
2586
|
const y = {
|
|
2581
2587
|
pageIndex: g.pagination.current,
|
|
2582
2588
|
pageSize: g.pagination.pageSize,
|
|
2583
2589
|
query: d.params
|
|
2584
2590
|
};
|
|
2585
2591
|
d.getLogData && (v.value = !0, d.getLogData(y).then((H) => {
|
|
2586
|
-
Number(H.code) == 200 ? (g.pagination.total = Number(H.data.total), g.list = H.data[d.dataStr] || []) :
|
|
2592
|
+
Number(H.code) == 200 ? (g.pagination.total = Number(H.data.total), g.list = H.data[d.dataStr] || []) : Ce.error(H.message);
|
|
2587
2593
|
}).finally(() => {
|
|
2588
2594
|
v.value = !1;
|
|
2589
2595
|
}));
|
|
2590
2596
|
}, B = (y) => {
|
|
2591
|
-
g.pagination.current = y.current, g.pagination.pageSize = y.pageSize,
|
|
2597
|
+
g.pagination.current = y.current, g.pagination.pageSize = y.pageSize, p();
|
|
2592
2598
|
}, $ = () => {
|
|
2593
2599
|
g.list = [], k("update:visible", !1);
|
|
2594
2600
|
}, U = () => {
|
|
2595
2601
|
k("update:visible", !0);
|
|
2596
|
-
}, D = (y, H = "YYYY-MM-DD HH:mm:ss") => y ?
|
|
2597
|
-
return
|
|
2602
|
+
}, D = (y, H = "YYYY-MM-DD HH:mm:ss") => y ? Be(y).format(H) : "", k = t;
|
|
2603
|
+
return oe(
|
|
2598
2604
|
() => d.visible,
|
|
2599
2605
|
(y) => {
|
|
2600
|
-
y &&
|
|
2606
|
+
y && p();
|
|
2601
2607
|
}
|
|
2602
2608
|
), o({
|
|
2603
2609
|
close: $,
|
|
2604
2610
|
loading: v
|
|
2605
2611
|
}), (y, H) => {
|
|
2606
|
-
const F = V("a-tooltip"), S = V("HbLibCopy"), _ = V("a-table"), b = V("a-button"),
|
|
2607
|
-
return i(), T(
|
|
2608
|
-
w(
|
|
2612
|
+
const F = V("a-tooltip"), S = V("HbLibCopy"), _ = V("a-table"), b = V("a-button"), m = V("HbLibModal");
|
|
2613
|
+
return i(), T(K, null, [
|
|
2614
|
+
w(m, ee(y.$attrs, {
|
|
2609
2615
|
visible: e.visible,
|
|
2610
2616
|
title: l.value ? void 0 : a.value,
|
|
2611
2617
|
width: e.width,
|
|
@@ -2613,7 +2619,7 @@ const Ol = {
|
|
|
2613
2619
|
modalStyle: e.modalStyle,
|
|
2614
2620
|
bodyStyle: e.bodyStyle,
|
|
2615
2621
|
onCancel: $
|
|
2616
|
-
}),
|
|
2622
|
+
}), Le({
|
|
2617
2623
|
footer: s(() => [
|
|
2618
2624
|
w(b, { onClick: $ }, {
|
|
2619
2625
|
default: s(() => [
|
|
@@ -2623,19 +2629,19 @@ const Ol = {
|
|
|
2623
2629
|
})
|
|
2624
2630
|
]),
|
|
2625
2631
|
default: s(() => [
|
|
2626
|
-
c("div",
|
|
2632
|
+
c("div", ca, [
|
|
2627
2633
|
w(_, {
|
|
2628
2634
|
bordered: "",
|
|
2629
2635
|
rowKey: "id",
|
|
2630
|
-
columns:
|
|
2636
|
+
columns: h.value,
|
|
2631
2637
|
dataSource: g.list,
|
|
2632
2638
|
pagination: g.pagination,
|
|
2633
2639
|
loading: v.value,
|
|
2634
2640
|
scroll: { y: e.scrollY },
|
|
2635
2641
|
onChange: B
|
|
2636
|
-
},
|
|
2642
|
+
}, Le({
|
|
2637
2643
|
bodyCell: s(({ column: x, record: O }) => [
|
|
2638
|
-
x && x.needTooltip ? (i(), T(
|
|
2644
|
+
x && x.needTooltip ? (i(), T(K, { key: 0 }, [
|
|
2639
2645
|
x.needTooltip ? (i(), P(F, { key: 0 }, {
|
|
2640
2646
|
title: s(() => [
|
|
2641
2647
|
A(C(O[x.dataIndex]), 1)
|
|
@@ -2646,14 +2652,14 @@ const Ol = {
|
|
|
2646
2652
|
_: 2
|
|
2647
2653
|
}, 1024)) : N("", !0)
|
|
2648
2654
|
], 64)) : N("", !0),
|
|
2649
|
-
x && x.needCopy ? (i(), T(
|
|
2650
|
-
c("div",
|
|
2655
|
+
x && x.needCopy ? (i(), T(K, { key: 1 }, [
|
|
2656
|
+
c("div", da, C(O[x.dataIndex]), 1),
|
|
2651
2657
|
w(S, {
|
|
2652
2658
|
"cp-text": O[x.dataIndex],
|
|
2653
2659
|
style: { position: "relative" }
|
|
2654
2660
|
}, null, 8, ["cp-text"])
|
|
2655
2661
|
], 64)) : N("", !0),
|
|
2656
|
-
x && x.needFormat ? (i(), T(
|
|
2662
|
+
x && x.needFormat ? (i(), T(K, { key: 2 }, [
|
|
2657
2663
|
A(C(D(O[x.dataIndex], x.operateTime)), 1)
|
|
2658
2664
|
], 64)) : N("", !0)
|
|
2659
2665
|
]),
|
|
@@ -2692,9 +2698,7 @@ const Ol = {
|
|
|
2692
2698
|
], 64);
|
|
2693
2699
|
};
|
|
2694
2700
|
}
|
|
2695
|
-
}),
|
|
2696
|
-
o.component(e.name || "AnonymousComponent", e);
|
|
2697
|
-
}, e), ma = {
|
|
2701
|
+
}), ba = /* @__PURE__ */ X(ua, [["__scopeId", "data-v-ac23253c"]]), fa = Q(ba), pa = {
|
|
2698
2702
|
// 图片上传组件的配置
|
|
2699
2703
|
importFile: {
|
|
2700
2704
|
isRequired: !1,
|
|
@@ -2736,7 +2740,7 @@ const Ol = {
|
|
|
2736
2740
|
// 表单距离底部的距离
|
|
2737
2741
|
formItemMb: 10
|
|
2738
2742
|
}
|
|
2739
|
-
},
|
|
2743
|
+
}, ha = { class: "hb_ui_config" }, ma = /* @__PURE__ */ J({
|
|
2740
2744
|
name: "HbUiConfig",
|
|
2741
2745
|
__name: "hbUiConfig",
|
|
2742
2746
|
props: {
|
|
@@ -2745,20 +2749,20 @@ const Ol = {
|
|
|
2745
2749
|
setup(e) {
|
|
2746
2750
|
const o = e;
|
|
2747
2751
|
let t = null;
|
|
2748
|
-
return
|
|
2752
|
+
return oe(
|
|
2749
2753
|
() => o.config,
|
|
2750
2754
|
(n) => {
|
|
2751
|
-
t =
|
|
2755
|
+
t = ke(Vt({}, pa, n));
|
|
2752
2756
|
},
|
|
2753
2757
|
{ deep: !0, immediate: !0 }
|
|
2754
|
-
),
|
|
2758
|
+
), yt(Qe, t), (n, u) => (i(), T("div", ha, [
|
|
2755
2759
|
j(n.$slots, "default")
|
|
2756
2760
|
]));
|
|
2757
2761
|
}
|
|
2758
|
-
}),
|
|
2762
|
+
}), Qe = Symbol("GLOBAL_CONFIG_KEY"), va = Q(ma), ga = { class: "hb_card" }, ya = {
|
|
2759
2763
|
key: 0,
|
|
2760
2764
|
class: "hb_card_header"
|
|
2761
|
-
},
|
|
2765
|
+
}, _a = { class: "hb_fix" }, La = { class: "hb_card_header-title" }, Ca = { class: "hb_card_header-action" }, ka = { class: "hb_card_body" }, Sa = /* @__PURE__ */ J({
|
|
2762
2766
|
name: "HbLibCard",
|
|
2763
2767
|
__name: "HbLibCard",
|
|
2764
2768
|
props: {
|
|
@@ -2788,37 +2792,37 @@ const Ol = {
|
|
|
2788
2792
|
}
|
|
2789
2793
|
},
|
|
2790
2794
|
setup(e) {
|
|
2791
|
-
const o =
|
|
2795
|
+
const o = be(Qe), t = e, n = z(() => {
|
|
2792
2796
|
let u = t.formItemMb || o?.HbLibCard?.formItemMb;
|
|
2793
2797
|
return u ? { "--hb-card-form-item-mb": u + "px" } : {};
|
|
2794
2798
|
});
|
|
2795
|
-
return (u, d) => (i(), T("div",
|
|
2799
|
+
return (u, d) => (i(), T("div", ee({ class: "hb_card_wrapper" }, u.$attrs), [
|
|
2796
2800
|
c("div", {
|
|
2797
|
-
class:
|
|
2801
|
+
class: q(e.isModal ? "modal__module-card" : "__module-card")
|
|
2798
2802
|
}, [
|
|
2799
|
-
c("div",
|
|
2800
|
-
e.cardTitle ? (i(), T("div",
|
|
2801
|
-
c("div",
|
|
2802
|
-
c("span",
|
|
2803
|
+
c("div", ga, [
|
|
2804
|
+
e.cardTitle ? (i(), T("div", ya, [
|
|
2805
|
+
c("div", _a, [
|
|
2806
|
+
c("span", La, [
|
|
2803
2807
|
j(u.$slots, "cardTitle", {}, () => [
|
|
2804
2808
|
A(C(e.cardTitle), 1)
|
|
2805
2809
|
], !0)
|
|
2806
2810
|
]),
|
|
2807
|
-
c("div",
|
|
2811
|
+
c("div", Ca, [
|
|
2808
2812
|
j(u.$slots, "cardAct", {}, void 0, !0)
|
|
2809
2813
|
])
|
|
2810
2814
|
])
|
|
2811
2815
|
])) : N("", !0),
|
|
2812
|
-
c("div",
|
|
2816
|
+
c("div", ka, [
|
|
2813
2817
|
c("section", {
|
|
2814
|
-
class:
|
|
2818
|
+
class: q({
|
|
2815
2819
|
hb_card_form: e.isForm && !e.isModal,
|
|
2816
2820
|
hb_card_flex_form: e.isForm && e.isModal,
|
|
2817
2821
|
l1c: e.layout == 1,
|
|
2818
2822
|
l3c: e.layout == 3,
|
|
2819
2823
|
l4c: e.layout == 4
|
|
2820
2824
|
}),
|
|
2821
|
-
style:
|
|
2825
|
+
style: se(n.value)
|
|
2822
2826
|
}, [
|
|
2823
2827
|
j(u.$slots, "default", {}, void 0, !0)
|
|
2824
2828
|
], 6)
|
|
@@ -2827,10 +2831,10 @@ const Ol = {
|
|
|
2827
2831
|
], 2)
|
|
2828
2832
|
], 16));
|
|
2829
2833
|
}
|
|
2830
|
-
}),
|
|
2834
|
+
}), Ta = /* @__PURE__ */ X(Sa, [["__scopeId", "data-v-4d8c1b1b"]]), wa = Q(Ta), Ha = ["onClick"], xa = { class: "step" }, Fa = {
|
|
2831
2835
|
key: 0,
|
|
2832
2836
|
class: "line"
|
|
2833
|
-
},
|
|
2837
|
+
}, $a = ["title"], Ia = /* @__PURE__ */ J({
|
|
2834
2838
|
name: "HbLibAnchor",
|
|
2835
2839
|
__name: "HbLibAnchor",
|
|
2836
2840
|
props: {
|
|
@@ -2845,55 +2849,55 @@ const Ol = {
|
|
|
2845
2849
|
}, r = (a) => {
|
|
2846
2850
|
const l = d(), v = a.target.startsWith("#") || a.target.startsWith(".") ? a.target : `#${a.target}`, g = document.querySelector(v);
|
|
2847
2851
|
if (!g) return;
|
|
2848
|
-
let
|
|
2849
|
-
l instanceof HTMLElement && (
|
|
2850
|
-
},
|
|
2852
|
+
let p = g.offsetTop;
|
|
2853
|
+
l instanceof HTMLElement && (p -= l.offsetTop), p -= n, l instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : l.scrollTo({ top: p, behavior: "smooth" }), t.value = a.target;
|
|
2854
|
+
}, h = () => {
|
|
2851
2855
|
const a = d();
|
|
2852
2856
|
let l = 0;
|
|
2853
2857
|
a instanceof Window ? l = window.scrollY + n + 5 : l = a.scrollTop + n + 5;
|
|
2854
2858
|
let v = u.value[0]?.target || "";
|
|
2855
2859
|
for (const g of u.value) {
|
|
2856
|
-
const
|
|
2860
|
+
const p = g.target.startsWith("#") || g.target.startsWith(".") ? g.target : `#${g.target}`, B = document.querySelector(p);
|
|
2857
2861
|
if (!B) continue;
|
|
2858
2862
|
let $ = B.offsetTop;
|
|
2859
2863
|
a instanceof HTMLElement && ($ -= a.offsetTop), l >= $ && (v = g.target);
|
|
2860
2864
|
}
|
|
2861
2865
|
t.value = v;
|
|
2862
2866
|
};
|
|
2863
|
-
return
|
|
2864
|
-
d().addEventListener("scroll",
|
|
2865
|
-
}),
|
|
2866
|
-
d().removeEventListener("scroll",
|
|
2867
|
+
return fe(() => {
|
|
2868
|
+
d().addEventListener("scroll", h), h();
|
|
2869
|
+
}), Ke(() => {
|
|
2870
|
+
d().removeEventListener("scroll", h);
|
|
2867
2871
|
}), (a, l) => (i(), T("div", {
|
|
2868
2872
|
class: "anchors",
|
|
2869
|
-
style:
|
|
2873
|
+
style: se({ top: `${L(n)}px` })
|
|
2870
2874
|
}, [
|
|
2871
|
-
(i(!0), T(
|
|
2875
|
+
(i(!0), T(K, null, ne(u.value, (v, g) => (i(), T("div", {
|
|
2872
2876
|
key: v.target,
|
|
2873
|
-
class:
|
|
2874
|
-
onClick: (
|
|
2877
|
+
class: q(["anchor-item", { isActive: t.value === v.target }]),
|
|
2878
|
+
onClick: (p) => r(v)
|
|
2875
2879
|
}, [
|
|
2876
|
-
c("div",
|
|
2877
|
-
g !== u.value.length - 1 ? (i(), T("div",
|
|
2880
|
+
c("div", xa, [
|
|
2881
|
+
g !== u.value.length - 1 ? (i(), T("div", Fa)) : N("", !0),
|
|
2878
2882
|
l[0] || (l[0] = c("div", { class: "circle" }, null, -1))
|
|
2879
2883
|
]),
|
|
2880
2884
|
c("span", {
|
|
2881
2885
|
class: "title",
|
|
2882
2886
|
title: v.title
|
|
2883
|
-
}, C(v.title.length > 12 ? v.title.slice(0, 12) + "..." : v.title), 9,
|
|
2884
|
-
], 10,
|
|
2887
|
+
}, C(v.title.length > 12 ? v.title.slice(0, 12) + "..." : v.title), 9, $a)
|
|
2888
|
+
], 10, Ha))), 128))
|
|
2885
2889
|
], 4));
|
|
2886
2890
|
}
|
|
2887
|
-
}),
|
|
2891
|
+
}), Ma = /* @__PURE__ */ X(Ia, [["__scopeId", "data-v-d51548d8"]]), Da = Q(Ma), Ba = { class: "hb_detail_top_act_left" }, Aa = {
|
|
2888
2892
|
key: 1,
|
|
2889
2893
|
class: "hb_detail_top_wrapper_sticky"
|
|
2890
|
-
},
|
|
2894
|
+
}, Oa = { class: "hb_detail_top_act" }, Ea = {
|
|
2891
2895
|
key: 0,
|
|
2892
2896
|
class: "hb_detail_all_info"
|
|
2893
|
-
},
|
|
2897
|
+
}, za = { class: "hb_detail_all_info_left" }, Na = { class: "hb_detail_info_title" }, Ra = {
|
|
2894
2898
|
key: 0,
|
|
2895
2899
|
class: "hb_detail_info_content"
|
|
2896
|
-
},
|
|
2900
|
+
}, Pa = { class: "create_by" }, Ua = { class: "hb_detail_all_info_right" }, Va = { class: "hb_edit_detail_content_wrapper" }, Wa = { class: "hb_detail_content" }, ja = { class: "hb-back-top-inner" }, Ya = /* @__PURE__ */ J({
|
|
2897
2901
|
name: "HbLibDetailBox",
|
|
2898
2902
|
__name: "HbLibDetailBox",
|
|
2899
2903
|
props: {
|
|
@@ -2955,7 +2959,7 @@ const Ol = {
|
|
|
2955
2959
|
}
|
|
2956
2960
|
},
|
|
2957
2961
|
setup(e) {
|
|
2958
|
-
const { t: o } =
|
|
2962
|
+
const { t: o } = ce(), t = e, n = be(Qe), u = () => {
|
|
2959
2963
|
t.backFn ? t.backFn() : window.history.back();
|
|
2960
2964
|
}, d = z(() => t.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), r = z(() => {
|
|
2961
2965
|
const U = {};
|
|
@@ -2963,9 +2967,9 @@ const Ol = {
|
|
|
2963
2967
|
hb_need_set_desc_label_width: t.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
2964
2968
|
hb_need_set_desc_value_width: t.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
2965
2969
|
} : U;
|
|
2966
|
-
}),
|
|
2967
|
-
|
|
2968
|
-
|
|
2970
|
+
}), h = () => document.querySelector(t.container), a = E(!1), l = E(null), { top: v } = Qt(l), g = z(h), { y: p } = Zt(g);
|
|
2971
|
+
oe(
|
|
2972
|
+
p,
|
|
2969
2973
|
(U) => {
|
|
2970
2974
|
a.value = U > v.value;
|
|
2971
2975
|
},
|
|
@@ -2979,28 +2983,28 @@ const Ol = {
|
|
|
2979
2983
|
});
|
|
2980
2984
|
};
|
|
2981
2985
|
let $ = null;
|
|
2982
|
-
return
|
|
2986
|
+
return fe(() => {
|
|
2983
2987
|
n?.HbLibDetailBox?.needSetDesDefault && ($ = setTimeout(() => {
|
|
2984
2988
|
B(n?.HbLibDetailBox?.desDefault);
|
|
2985
2989
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
2986
|
-
}),
|
|
2990
|
+
}), Se(() => {
|
|
2987
2991
|
$ && clearTimeout($);
|
|
2988
2992
|
}), (U, D) => {
|
|
2989
2993
|
const k = V("RollbackOutlined"), y = V("a-divider"), H = V("a-spin");
|
|
2990
2994
|
return i(), P(H, { spinning: e.spinning }, {
|
|
2991
2995
|
default: s(() => [
|
|
2992
2996
|
c("div", {
|
|
2993
|
-
class:
|
|
2994
|
-
style:
|
|
2997
|
+
class: q(["hb_detail_wrapper", r.value]),
|
|
2998
|
+
style: se({
|
|
2995
2999
|
"--hb-detail-desc-label-width": r.value?.hb_need_set_desc_label_width + "px",
|
|
2996
3000
|
"--hb-detail-desc-value-width": r.value?.hb_need_set_desc_value_width + "px"
|
|
2997
3001
|
})
|
|
2998
3002
|
}, [
|
|
2999
3003
|
e.needTotalInfoBox ? (i(), T("div", {
|
|
3000
3004
|
key: 0,
|
|
3001
|
-
class:
|
|
3005
|
+
class: q(["hb_detail_top_act_sticky", a.value ? "can_show" : ""])
|
|
3002
3006
|
}, [
|
|
3003
|
-
c("div",
|
|
3007
|
+
c("div", Ba, [
|
|
3004
3008
|
w(k, { style: { color: "#ff5000" } }),
|
|
3005
3009
|
c("a", {
|
|
3006
3010
|
href: "javascript:;",
|
|
@@ -3012,8 +3016,8 @@ const Ol = {
|
|
|
3012
3016
|
]),
|
|
3013
3017
|
D[0] || (D[0] = c("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3014
3018
|
], 2)) : N("", !0),
|
|
3015
|
-
e.needTotalInfoBox ? (i(), T("div",
|
|
3016
|
-
c("div",
|
|
3019
|
+
e.needTotalInfoBox ? (i(), T("div", Aa, [
|
|
3020
|
+
c("div", Oa, [
|
|
3017
3021
|
w(k),
|
|
3018
3022
|
c("a", {
|
|
3019
3023
|
href: "javascript:;",
|
|
@@ -3023,33 +3027,33 @@ const Ol = {
|
|
|
3023
3027
|
w(y, { type: "vertical" }),
|
|
3024
3028
|
c("span", null, C(e.stickyTitle), 1)
|
|
3025
3029
|
]),
|
|
3026
|
-
e.needTotalInfoBox ? (i(), T("div",
|
|
3027
|
-
c("aside",
|
|
3030
|
+
e.needTotalInfoBox ? (i(), T("div", Ea, [
|
|
3031
|
+
c("aside", za, [
|
|
3028
3032
|
j(U.$slots, "totalInfoLeft", {}, () => [
|
|
3029
|
-
c("div",
|
|
3030
|
-
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div",
|
|
3031
|
-
c("span",
|
|
3033
|
+
c("div", Na, C(e.totalInfo.totalInfoTitle), 1),
|
|
3034
|
+
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div", Ra, [
|
|
3035
|
+
c("span", Pa, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
|
|
3032
3036
|
c("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
|
|
3033
3037
|
])) : N("", !0)
|
|
3034
3038
|
], !0)
|
|
3035
3039
|
]),
|
|
3036
|
-
c("aside",
|
|
3040
|
+
c("aside", Ua, [
|
|
3037
3041
|
j(U.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3038
3042
|
])
|
|
3039
3043
|
])) : N("", !0)
|
|
3040
3044
|
])) : N("", !0),
|
|
3041
|
-
c("div",
|
|
3042
|
-
c("div",
|
|
3045
|
+
c("div", Va, [
|
|
3046
|
+
c("div", Wa, [
|
|
3043
3047
|
j(U.$slots, "detailContent", {}, void 0, !0)
|
|
3044
3048
|
])
|
|
3045
3049
|
]),
|
|
3046
|
-
w(L(
|
|
3047
|
-
target:
|
|
3048
|
-
style:
|
|
3050
|
+
w(L(St), {
|
|
3051
|
+
target: h,
|
|
3052
|
+
style: se({ bottom: d.value + "px" })
|
|
3049
3053
|
}, {
|
|
3050
3054
|
default: s(() => [
|
|
3051
|
-
c("div",
|
|
3052
|
-
w(L(
|
|
3055
|
+
c("div", ja, [
|
|
3056
|
+
w(L(Tt))
|
|
3053
3057
|
])
|
|
3054
3058
|
]),
|
|
3055
3059
|
_: 1
|
|
@@ -3060,7 +3064,7 @@ const Ol = {
|
|
|
3060
3064
|
}, 8, ["spinning"]);
|
|
3061
3065
|
};
|
|
3062
3066
|
}
|
|
3063
|
-
}),
|
|
3067
|
+
}), qa = /* @__PURE__ */ X(Ya, [["__scopeId", "data-v-f2c2c397"]]), Ka = Q(qa), Ga = /* @__PURE__ */ J({
|
|
3064
3068
|
name: "HbLibFooterBar",
|
|
3065
3069
|
__name: "HbLibFooterBar",
|
|
3066
3070
|
props: {
|
|
@@ -3092,7 +3096,7 @@ const Ol = {
|
|
|
3092
3096
|
}
|
|
3093
3097
|
},
|
|
3094
3098
|
setup(e) {
|
|
3095
|
-
const o = e, t = (a, l = 300) =>
|
|
3099
|
+
const o = e, t = (a, l = 300) => Ft(a, l), n = z(() => o.buttons.filter((l) => {
|
|
3096
3100
|
if (l.condition === void 0 || l.condition === null)
|
|
3097
3101
|
return !0;
|
|
3098
3102
|
if (typeof l.condition == "boolean")
|
|
@@ -3106,28 +3110,28 @@ const Ol = {
|
|
|
3106
3110
|
}))), u = E(0), d = (a) => {
|
|
3107
3111
|
let l = 0;
|
|
3108
3112
|
return (Array.isArray(a) ? a : [a]).forEach((g) => {
|
|
3109
|
-
let
|
|
3113
|
+
let p = [];
|
|
3110
3114
|
if (g.startsWith("#")) {
|
|
3111
3115
|
const B = document.getElementById(g.slice(1));
|
|
3112
|
-
B &&
|
|
3116
|
+
B && p.push(B);
|
|
3113
3117
|
} else
|
|
3114
|
-
|
|
3115
|
-
|
|
3118
|
+
p = Array.from(document.getElementsByClassName(g));
|
|
3119
|
+
p.forEach((B) => {
|
|
3116
3120
|
l += B.offsetWidth || 0;
|
|
3117
3121
|
});
|
|
3118
3122
|
}), l;
|
|
3119
3123
|
}, r = () => {
|
|
3120
3124
|
o.leftElements && (u.value = d(o.leftElements) + 1);
|
|
3121
3125
|
};
|
|
3122
|
-
let
|
|
3123
|
-
return
|
|
3126
|
+
let h = null;
|
|
3127
|
+
return fe(() => {
|
|
3124
3128
|
const a = o.getContainer();
|
|
3125
3129
|
a !== window && a instanceof HTMLElement && a.addEventListener("scroll", () => {
|
|
3126
|
-
}), r(),
|
|
3130
|
+
}), r(), h = new MutationObserver(() => {
|
|
3127
3131
|
r();
|
|
3128
3132
|
});
|
|
3129
3133
|
const l = document.body;
|
|
3130
|
-
|
|
3134
|
+
h.observe(l, {
|
|
3131
3135
|
childList: !0,
|
|
3132
3136
|
// 子节点的变动
|
|
3133
3137
|
subtree: !0,
|
|
@@ -3135,22 +3139,22 @@ const Ol = {
|
|
|
3135
3139
|
attributes: !0
|
|
3136
3140
|
// 属性的变动
|
|
3137
3141
|
});
|
|
3138
|
-
}),
|
|
3139
|
-
|
|
3142
|
+
}), Ke(() => {
|
|
3143
|
+
h && h.disconnect();
|
|
3140
3144
|
}), (a, l) => {
|
|
3141
|
-
const v = V("a-button"), g = V("a-space"),
|
|
3145
|
+
const v = V("a-button"), g = V("a-space"), p = V("a-affix"), B = Lt("has");
|
|
3142
3146
|
return i(), T("div", {
|
|
3143
3147
|
class: "footer-affix-wrapper",
|
|
3144
|
-
style:
|
|
3148
|
+
style: se({ "--pageHeaderOrFonterLeft": u.value + "px" })
|
|
3145
3149
|
}, [
|
|
3146
|
-
w(
|
|
3150
|
+
w(p, {
|
|
3147
3151
|
"offset-bottom": 0,
|
|
3148
3152
|
target: e.getContainer,
|
|
3149
3153
|
style: { width: "100%" }
|
|
3150
3154
|
}, {
|
|
3151
3155
|
default: s(() => [
|
|
3152
3156
|
c("div", {
|
|
3153
|
-
class:
|
|
3157
|
+
class: q({
|
|
3154
3158
|
"page-footer-bar": !0,
|
|
3155
3159
|
page_footer_btn_left: e.placeLeft,
|
|
3156
3160
|
page_footer_btn_right: e.placeRight
|
|
@@ -3158,7 +3162,7 @@ const Ol = {
|
|
|
3158
3162
|
}, [
|
|
3159
3163
|
w(g, null, {
|
|
3160
3164
|
default: s(() => [
|
|
3161
|
-
(i(!0), T(
|
|
3165
|
+
(i(!0), T(K, null, ne(n.value, ($) => ue((i(), P(v, {
|
|
3162
3166
|
key: $.key,
|
|
3163
3167
|
type: $.type || "default",
|
|
3164
3168
|
danger: $.danger,
|
|
@@ -3184,7 +3188,7 @@ const Ol = {
|
|
|
3184
3188
|
], 4);
|
|
3185
3189
|
};
|
|
3186
3190
|
}
|
|
3187
|
-
}),
|
|
3191
|
+
}), Ja = /* @__PURE__ */ X(Ga, [["__scopeId", "data-v-23f13fb5"]]), Qa = Q(Ja), Za = { class: "modal__detail-content" }, Xa = /* @__PURE__ */ J({
|
|
3188
3192
|
name: "HbLibModal",
|
|
3189
3193
|
__name: "HbLibModal",
|
|
3190
3194
|
props: {
|
|
@@ -3235,58 +3239,58 @@ const Ol = {
|
|
|
3235
3239
|
const n = t, u = e, d = z({
|
|
3236
3240
|
get: () => u.visible,
|
|
3237
3241
|
set: (O) => n("update:visible", O)
|
|
3238
|
-
}), r = E(null),
|
|
3242
|
+
}), r = E(null), h = z(() => ({ top: "10px", ...u.modalStyle })), a = z(() => ({ overflow: "hidden", ...u.modalStyle })), l = z(() => ({
|
|
3239
3243
|
maxHeight: "calc(100vh - 120px)",
|
|
3240
3244
|
overflowY: "auto",
|
|
3241
3245
|
padding: "0 6px",
|
|
3242
3246
|
...u.bodyStyle
|
|
3243
|
-
})), { x: v, y: g, isDragging:
|
|
3247
|
+
})), { x: v, y: g, isDragging: p } = Xt(r), B = E(0), $ = E(0), U = E(!1), D = E(0), k = E(0), y = E(0), H = E(0), F = E({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3244
3248
|
let S = null;
|
|
3245
3249
|
const _ = () => {
|
|
3246
3250
|
D.value = 0, k.value = 0, y.value = 0, H.value = 0, U.value = !1;
|
|
3247
3251
|
};
|
|
3248
|
-
|
|
3252
|
+
oe(d, (O) => {
|
|
3249
3253
|
O ? setTimeout(() => {
|
|
3250
3254
|
_();
|
|
3251
3255
|
}, 50) : (S && clearTimeout(S), S = setTimeout(() => {
|
|
3252
3256
|
D.value = 0, k.value = 0, y.value = 0, H.value = 0;
|
|
3253
3257
|
}, 300));
|
|
3254
|
-
}),
|
|
3258
|
+
}), oe([v, g], () => {
|
|
3255
3259
|
if (!U.value) {
|
|
3256
3260
|
B.value = v.value, $.value = g.value;
|
|
3257
|
-
const O = document.body.getBoundingClientRect(),
|
|
3258
|
-
F.value.right = O.width -
|
|
3261
|
+
const O = document.body.getBoundingClientRect(), G = r.value.getBoundingClientRect();
|
|
3262
|
+
F.value.right = O.width - G.width, F.value.bottom = O.height - G.height, y.value = D.value, H.value = k.value;
|
|
3259
3263
|
}
|
|
3260
3264
|
U.value = !0;
|
|
3261
|
-
}),
|
|
3262
|
-
|
|
3263
|
-
}),
|
|
3265
|
+
}), oe(p, () => {
|
|
3266
|
+
p || (U.value = !1);
|
|
3267
|
+
}), Ct(() => {
|
|
3264
3268
|
U.value && (D.value = y.value + Math.min(Math.max(F.value.left, v.value), F.value.right) - B.value, k.value = H.value + Math.min(Math.max(F.value.top, g.value), F.value.bottom) - $.value);
|
|
3265
3269
|
});
|
|
3266
3270
|
const b = z(() => ({
|
|
3267
3271
|
transform: `translate(${D.value}px, ${k.value}px)`
|
|
3268
|
-
})),
|
|
3272
|
+
})), m = () => {
|
|
3269
3273
|
n("cancel");
|
|
3270
3274
|
}, x = () => {
|
|
3271
3275
|
n("ok");
|
|
3272
3276
|
};
|
|
3273
|
-
return
|
|
3277
|
+
return Se(() => {
|
|
3274
3278
|
S && clearTimeout(S);
|
|
3275
3279
|
}), o({
|
|
3276
3280
|
handleOk: x,
|
|
3277
|
-
handleCancel:
|
|
3278
|
-
}), (O,
|
|
3279
|
-
const
|
|
3280
|
-
return i(), P(M,
|
|
3281
|
-
style:
|
|
3281
|
+
handleCancel: m
|
|
3282
|
+
}), (O, G) => {
|
|
3283
|
+
const ie = V("a-spin"), M = V("a-modal");
|
|
3284
|
+
return i(), P(M, ee({
|
|
3285
|
+
style: h.value,
|
|
3282
3286
|
bodyStyle: l.value,
|
|
3283
3287
|
ref: "modalRef",
|
|
3284
3288
|
visible: d.value,
|
|
3285
|
-
"onUpdate:visible":
|
|
3289
|
+
"onUpdate:visible": G[0] || (G[0] = (R) => d.value = R),
|
|
3286
3290
|
"wrap-style": a.value,
|
|
3287
3291
|
onOk: x,
|
|
3288
|
-
onCancel:
|
|
3289
|
-
}, O.$attrs),
|
|
3292
|
+
onCancel: m
|
|
3293
|
+
}, O.$attrs), Le({
|
|
3290
3294
|
title: s(() => [
|
|
3291
3295
|
c("div", {
|
|
3292
3296
|
ref_key: "modalTitleRef",
|
|
@@ -3301,25 +3305,25 @@ const Ol = {
|
|
|
3301
3305
|
modalRender: s(({ originVNode: R }) => [
|
|
3302
3306
|
(i(), T("div", {
|
|
3303
3307
|
key: d.value,
|
|
3304
|
-
style:
|
|
3308
|
+
style: se(b.value)
|
|
3305
3309
|
}, [
|
|
3306
|
-
(i(), P(
|
|
3310
|
+
(i(), P(kt(R)))
|
|
3307
3311
|
], 4))
|
|
3308
3312
|
]),
|
|
3309
3313
|
default: s(() => [
|
|
3310
|
-
w(
|
|
3314
|
+
w(ie, {
|
|
3311
3315
|
spinning: u.spinning
|
|
3312
3316
|
}, {
|
|
3313
3317
|
default: s(() => [
|
|
3314
3318
|
c("div", {
|
|
3315
|
-
class:
|
|
3319
|
+
class: q([
|
|
3316
3320
|
e.type == "detail" ? "hb_detail_modal_wrapper" : "hb_modal_wrapper",
|
|
3317
3321
|
e.descLabelWidth && "hb_need_set_desc_label_width",
|
|
3318
3322
|
e.descValueWidth && "hb_need_set_desc_value_width"
|
|
3319
3323
|
]),
|
|
3320
|
-
style:
|
|
3324
|
+
style: se({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3321
3325
|
}, [
|
|
3322
|
-
c("div",
|
|
3326
|
+
c("div", Za, [
|
|
3323
3327
|
j(O.$slots, "default", {}, void 0, !0)
|
|
3324
3328
|
])
|
|
3325
3329
|
], 6)
|
|
@@ -3339,13 +3343,13 @@ const Ol = {
|
|
|
3339
3343
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3340
3344
|
};
|
|
3341
3345
|
}
|
|
3342
|
-
}),
|
|
3346
|
+
}), en = /* @__PURE__ */ X(Xa, [["__scopeId", "data-v-866a050a"]]), tn = Q(en), on = {
|
|
3343
3347
|
key: 0,
|
|
3344
3348
|
class: "hb_edit_header"
|
|
3345
|
-
},
|
|
3349
|
+
}, ln = { class: "__detail-content" }, an = {
|
|
3346
3350
|
key: 1,
|
|
3347
3351
|
class: "hb_edit_footer"
|
|
3348
|
-
},
|
|
3352
|
+
}, nn = { class: "hb-back-top-inner" }, sn = /* @__PURE__ */ J({
|
|
3349
3353
|
name: "HbLibUnDetailBox",
|
|
3350
3354
|
__name: "HbLibUnDetailBox",
|
|
3351
3355
|
props: {
|
|
@@ -3369,33 +3373,33 @@ const Ol = {
|
|
|
3369
3373
|
}
|
|
3370
3374
|
},
|
|
3371
3375
|
setup(e) {
|
|
3372
|
-
const o = E("vertical"), t = e, n = () => document.querySelector(t.container), u =
|
|
3373
|
-
return (r,
|
|
3376
|
+
const o = E("vertical"), t = e, n = () => document.querySelector(t.container), u = be("GLOBAL_CONFIG_KEY"), d = z(() => t.backTopBottom || u?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3377
|
+
return (r, h) => (i(), P(L(Ut), { spinning: e.spinning }, {
|
|
3374
3378
|
default: s(() => [
|
|
3375
|
-
c("div",
|
|
3379
|
+
c("div", ee({ class: "hb_edit_wrapper" }, r.$attrs, {
|
|
3376
3380
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
3377
3381
|
class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
|
|
3378
3382
|
}), [
|
|
3379
|
-
r.$slots.editHeader ? (i(), T("div",
|
|
3383
|
+
r.$slots.editHeader ? (i(), T("div", on, [
|
|
3380
3384
|
j(r.$slots, "editHeader", {}, void 0, !0)
|
|
3381
3385
|
])) : N("", !0),
|
|
3382
3386
|
c("div", {
|
|
3383
|
-
class:
|
|
3387
|
+
class: q(["hb_edit_detail_content_wrapper", o.value === "vertical" ? "form_vertical" : ""])
|
|
3384
3388
|
}, [
|
|
3385
|
-
c("div",
|
|
3389
|
+
c("div", ln, [
|
|
3386
3390
|
j(r.$slots, "editContent", {}, void 0, !0)
|
|
3387
3391
|
])
|
|
3388
3392
|
], 2),
|
|
3389
|
-
r.$slots.editFooter ? (i(), T("div",
|
|
3393
|
+
r.$slots.editFooter ? (i(), T("div", an, [
|
|
3390
3394
|
j(r.$slots, "editFooter", {}, void 0, !0)
|
|
3391
3395
|
])) : N("", !0),
|
|
3392
|
-
w(L(
|
|
3396
|
+
w(L(St), {
|
|
3393
3397
|
target: n,
|
|
3394
|
-
style:
|
|
3398
|
+
style: se({ bottom: d.value + "px" })
|
|
3395
3399
|
}, {
|
|
3396
3400
|
default: s(() => [
|
|
3397
|
-
c("div",
|
|
3398
|
-
w(L(
|
|
3401
|
+
c("div", nn, [
|
|
3402
|
+
w(L(Tt))
|
|
3399
3403
|
])
|
|
3400
3404
|
]),
|
|
3401
3405
|
_: 1
|
|
@@ -3405,7 +3409,7 @@ const Ol = {
|
|
|
3405
3409
|
_: 3
|
|
3406
3410
|
}, 8, ["spinning"]));
|
|
3407
3411
|
}
|
|
3408
|
-
}),
|
|
3412
|
+
}), rn = /* @__PURE__ */ X(sn, [["__scopeId", "data-v-41f1fc73"]]), cn = Q(rn), dn = { class: "hb_edit_header_left" }, un = { class: "hb_edit_header_title" }, bn = { class: "hb_edit_header_right" }, fn = /* @__PURE__ */ J({
|
|
3409
3413
|
name: "HbLibPageHeader",
|
|
3410
3414
|
__name: "HbLibPageHeader",
|
|
3411
3415
|
props: {
|
|
@@ -3423,10 +3427,10 @@ const Ol = {
|
|
|
3423
3427
|
}
|
|
3424
3428
|
},
|
|
3425
3429
|
setup(e) {
|
|
3426
|
-
const { t: o } =
|
|
3427
|
-
function r(
|
|
3430
|
+
const { t: o } = ce(), t = e, n = Ge(), u = E(0), d = z(() => n?.meta?.title || "");
|
|
3431
|
+
function r(p, B = "offsetHeight") {
|
|
3428
3432
|
let $ = 0;
|
|
3429
|
-
return (Array.isArray(
|
|
3433
|
+
return (Array.isArray(p) ? p : [p]).forEach((D) => {
|
|
3430
3434
|
let k = [];
|
|
3431
3435
|
if (D.startsWith("#")) {
|
|
3432
3436
|
const y = document.getElementById(D.slice(1));
|
|
@@ -3438,18 +3442,18 @@ const Ol = {
|
|
|
3438
3442
|
});
|
|
3439
3443
|
}), $;
|
|
3440
3444
|
}
|
|
3441
|
-
const
|
|
3445
|
+
const h = () => {
|
|
3442
3446
|
t.topElements && (u.value = r(t.topElements));
|
|
3443
3447
|
}, a = E(0), l = () => {
|
|
3444
3448
|
t.leftElements && (a.value = r(t.leftElements, "offsetWidth") + 1);
|
|
3445
3449
|
};
|
|
3446
3450
|
let v = null;
|
|
3447
|
-
|
|
3448
|
-
|
|
3451
|
+
fe(() => {
|
|
3452
|
+
h(), l(), window.addEventListener("resize", h), v = new MutationObserver(() => {
|
|
3449
3453
|
l();
|
|
3450
3454
|
});
|
|
3451
|
-
const
|
|
3452
|
-
v.observe(
|
|
3455
|
+
const p = document.body;
|
|
3456
|
+
v.observe(p, {
|
|
3453
3457
|
childList: !0,
|
|
3454
3458
|
// 子节点的变动
|
|
3455
3459
|
subtree: !0,
|
|
@@ -3457,40 +3461,40 @@ const Ol = {
|
|
|
3457
3461
|
attributes: !0
|
|
3458
3462
|
// 属性的变动
|
|
3459
3463
|
});
|
|
3460
|
-
}),
|
|
3461
|
-
window.removeEventListener("resize",
|
|
3462
|
-
}),
|
|
3464
|
+
}), Ke(() => {
|
|
3465
|
+
window.removeEventListener("resize", h), v && v.disconnect();
|
|
3466
|
+
}), oe(
|
|
3463
3467
|
() => t.topElements,
|
|
3464
3468
|
() => {
|
|
3465
|
-
|
|
3469
|
+
h();
|
|
3466
3470
|
},
|
|
3467
3471
|
{ immediate: !0 }
|
|
3468
3472
|
);
|
|
3469
3473
|
const g = () => {
|
|
3470
3474
|
t.backFn ? t.backFn() : window.history.back();
|
|
3471
3475
|
};
|
|
3472
|
-
return (
|
|
3476
|
+
return (p, B) => {
|
|
3473
3477
|
const $ = V("a-divider");
|
|
3474
3478
|
return i(), T("div", {
|
|
3475
3479
|
class: "hb_edit_header",
|
|
3476
|
-
style:
|
|
3480
|
+
style: se({ top: u.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
|
|
3477
3481
|
}, [
|
|
3478
|
-
c("aside",
|
|
3482
|
+
c("aside", dn, [
|
|
3479
3483
|
c("a", {
|
|
3480
3484
|
href: "#",
|
|
3481
3485
|
class: "backBtn",
|
|
3482
3486
|
onClick: g
|
|
3483
3487
|
}, C(L(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3484
3488
|
w($, { type: "vertical" }),
|
|
3485
|
-
c("span",
|
|
3489
|
+
c("span", un, C(d.value), 1)
|
|
3486
3490
|
]),
|
|
3487
|
-
c("aside",
|
|
3488
|
-
j(
|
|
3491
|
+
c("aside", bn, [
|
|
3492
|
+
j(p.$slots, "right", {}, void 0, !0)
|
|
3489
3493
|
])
|
|
3490
3494
|
], 4);
|
|
3491
3495
|
};
|
|
3492
3496
|
}
|
|
3493
|
-
}),
|
|
3497
|
+
}), pn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-83fcd208"]]), hn = Q(pn), mn = {
|
|
3494
3498
|
// 如果存在cpText时,K和V无效
|
|
3495
3499
|
cpText: {
|
|
3496
3500
|
type: String,
|
|
@@ -3535,13 +3539,13 @@ const Ol = {
|
|
|
3535
3539
|
type: String,
|
|
3536
3540
|
default: "ab"
|
|
3537
3541
|
}
|
|
3538
|
-
},
|
|
3542
|
+
}, vn = /* @__PURE__ */ J({
|
|
3539
3543
|
name: "HbLibCopy",
|
|
3540
3544
|
__name: "copy",
|
|
3541
|
-
props:
|
|
3545
|
+
props: mn,
|
|
3542
3546
|
setup(e) {
|
|
3543
3547
|
const o = e, t = E();
|
|
3544
|
-
|
|
3548
|
+
Ct(() => {
|
|
3545
3549
|
t.value = o.data;
|
|
3546
3550
|
});
|
|
3547
3551
|
const n = z(() => o.tooltipTitle || "复制"), u = z(() => o.copySuccessTip || "复制成功"), d = z(() => o.copyFailTip || "复制失败"), r = z(() => {
|
|
@@ -3556,22 +3560,22 @@ const Ol = {
|
|
|
3556
3560
|
} else
|
|
3557
3561
|
o.K && (a = o.data[o.K]);
|
|
3558
3562
|
return a;
|
|
3559
|
-
}),
|
|
3563
|
+
}), h = () => {
|
|
3560
3564
|
navigator.clipboard.writeText(r.value).then(() => {
|
|
3561
|
-
|
|
3565
|
+
Ce.success(u.value);
|
|
3562
3566
|
}).catch(() => {
|
|
3563
|
-
|
|
3567
|
+
Ce.error(d.value);
|
|
3564
3568
|
});
|
|
3565
3569
|
};
|
|
3566
|
-
return (a, l) => r.value ? (i(), P(L(
|
|
3570
|
+
return (a, l) => r.value ? (i(), P(L($e), {
|
|
3567
3571
|
key: 0,
|
|
3568
3572
|
title: n.value
|
|
3569
3573
|
}, {
|
|
3570
3574
|
default: s(() => [
|
|
3571
3575
|
c("span", {
|
|
3572
3576
|
class: "hb-lib-copy-text-eyevue",
|
|
3573
|
-
style:
|
|
3574
|
-
onClick:
|
|
3577
|
+
style: se({ ...a.cpStyle }),
|
|
3578
|
+
onClick: xe(h, ["stop", "prevent"])
|
|
3575
3579
|
}, [...l[0] || (l[0] = [
|
|
3576
3580
|
c("svg", {
|
|
3577
3581
|
t: "1766643849597",
|
|
@@ -3604,7 +3608,7 @@ const Ol = {
|
|
|
3604
3608
|
_: 1
|
|
3605
3609
|
}, 8, ["title"])) : N("", !0);
|
|
3606
3610
|
}
|
|
3607
|
-
}),
|
|
3611
|
+
}), gn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-2b6710a1"]]), $t = Q(gn), yn = {
|
|
3608
3612
|
dragList: {
|
|
3609
3613
|
type: Array,
|
|
3610
3614
|
required: !0
|
|
@@ -3643,14 +3647,14 @@ const Ol = {
|
|
|
3643
3647
|
type: String,
|
|
3644
3648
|
default: ""
|
|
3645
3649
|
}
|
|
3646
|
-
},
|
|
3650
|
+
}, _n = /* @__PURE__ */ J({
|
|
3647
3651
|
name: "HbDrag",
|
|
3648
3652
|
__name: "index",
|
|
3649
|
-
props:
|
|
3653
|
+
props: yn,
|
|
3650
3654
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
3651
3655
|
setup(e, { emit: o }) {
|
|
3652
|
-
const t = e, n =
|
|
3653
|
-
|
|
3656
|
+
const t = e, n = Ot([]);
|
|
3657
|
+
oe(
|
|
3654
3658
|
() => t.dragList,
|
|
3655
3659
|
(v) => {
|
|
3656
3660
|
n.value = v;
|
|
@@ -3660,9 +3664,9 @@ const Ol = {
|
|
|
3660
3664
|
immediate: !0
|
|
3661
3665
|
}
|
|
3662
3666
|
);
|
|
3663
|
-
const u =
|
|
3667
|
+
const u = Je("drag"), d = o, r = (v) => {
|
|
3664
3668
|
console.log("drag start", v), d("handleDragStart", v);
|
|
3665
|
-
},
|
|
3669
|
+
}, h = (v) => {
|
|
3666
3670
|
console.log("drag end", v), d("handleDragEnd", v);
|
|
3667
3671
|
}, a = (v) => {
|
|
3668
3672
|
console.log("drag add", v), d("handleDragAdd", v);
|
|
@@ -3670,48 +3674,48 @@ const Ol = {
|
|
|
3670
3674
|
console.log("drag remove", v), d("handleDragRemove", v);
|
|
3671
3675
|
};
|
|
3672
3676
|
return (v, g) => (i(), T("div", {
|
|
3673
|
-
class:
|
|
3677
|
+
class: q(L(u).b())
|
|
3674
3678
|
}, [
|
|
3675
|
-
v.childrenType == "component" ? (i(), P(L(
|
|
3679
|
+
v.childrenType == "component" ? (i(), P(L(Fe), ee({
|
|
3676
3680
|
key: 0,
|
|
3677
3681
|
modelValue: n.value,
|
|
3678
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3682
|
+
"onUpdate:modelValue": g[0] || (g[0] = (p) => n.value = p),
|
|
3679
3683
|
"item-key": "key",
|
|
3680
3684
|
class: { [v.dragClass]: v.dragClass }
|
|
3681
3685
|
}, v.$attrs, {
|
|
3682
3686
|
"ghost-class": v.ghostClass,
|
|
3683
3687
|
onStart: r,
|
|
3684
|
-
onEnd:
|
|
3688
|
+
onEnd: h,
|
|
3685
3689
|
onAdd: a,
|
|
3686
3690
|
onRemove: l
|
|
3687
3691
|
}), {
|
|
3688
|
-
item: s(({ element:
|
|
3689
|
-
(i(), P(
|
|
3692
|
+
item: s(({ element: p }) => [
|
|
3693
|
+
(i(), P(kt(p.component)))
|
|
3690
3694
|
]),
|
|
3691
3695
|
_: 1
|
|
3692
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), P(L(
|
|
3696
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), P(L(Fe), ee({
|
|
3693
3697
|
key: 1,
|
|
3694
3698
|
modelValue: n.value,
|
|
3695
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
3699
|
+
"onUpdate:modelValue": g[1] || (g[1] = (p) => n.value = p),
|
|
3696
3700
|
"item-key": "id",
|
|
3697
3701
|
class: { [v.dragClass]: v.dragClass }
|
|
3698
3702
|
}, v.$attrs, {
|
|
3699
3703
|
"ghost-class": v.ghostClass,
|
|
3700
3704
|
onStart: r,
|
|
3701
|
-
onEnd:
|
|
3705
|
+
onEnd: h,
|
|
3702
3706
|
onAdd: a,
|
|
3703
3707
|
onRemove: l
|
|
3704
3708
|
}), {
|
|
3705
|
-
item: s(({ element:
|
|
3709
|
+
item: s(({ element: p }) => [
|
|
3706
3710
|
c("div", null, [
|
|
3707
|
-
j(v.$slots, "default", { item:
|
|
3711
|
+
j(v.$slots, "default", { item: p }, void 0, !0)
|
|
3708
3712
|
])
|
|
3709
3713
|
]),
|
|
3710
3714
|
_: 3
|
|
3711
3715
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3712
3716
|
], 2));
|
|
3713
3717
|
}
|
|
3714
|
-
}),
|
|
3718
|
+
}), Ln = /* @__PURE__ */ X(_n, [["__scopeId", "data-v-15b227f5"]]), Cn = Q(Ln), kn = {
|
|
3715
3719
|
triggerWay: {
|
|
3716
3720
|
type: String,
|
|
3717
3721
|
default: "click"
|
|
@@ -3727,14 +3731,14 @@ const Ol = {
|
|
|
3727
3731
|
getSort: {
|
|
3728
3732
|
type: Function
|
|
3729
3733
|
}
|
|
3730
|
-
},
|
|
3734
|
+
}, Sn = /* @__PURE__ */ J({
|
|
3731
3735
|
name: "HbLibSort",
|
|
3732
3736
|
__name: "sort",
|
|
3733
|
-
props:
|
|
3737
|
+
props: kn,
|
|
3734
3738
|
emits: ["change"],
|
|
3735
3739
|
setup(e, { expose: o, emit: t }) {
|
|
3736
3740
|
const n = e, u = t, d = E([]), r = E("");
|
|
3737
|
-
|
|
3741
|
+
oe(
|
|
3738
3742
|
() => n.menuItems,
|
|
3739
3743
|
(a) => {
|
|
3740
3744
|
let l = [];
|
|
@@ -3751,7 +3755,7 @@ const Ol = {
|
|
|
3751
3755
|
immediate: !0
|
|
3752
3756
|
}
|
|
3753
3757
|
);
|
|
3754
|
-
const
|
|
3758
|
+
const h = (a) => {
|
|
3755
3759
|
r.value = a.value + a.sort, n.getSort && n.getSort({
|
|
3756
3760
|
orderFeild: a.value,
|
|
3757
3761
|
orderBy: a.sort
|
|
@@ -3760,20 +3764,20 @@ const Ol = {
|
|
|
3760
3764
|
return o({
|
|
3761
3765
|
currentActiveItem: r
|
|
3762
3766
|
}), (a, l) => {
|
|
3763
|
-
const v = V("a-menu-item"), g = V("a-menu"),
|
|
3764
|
-
return i(), P(
|
|
3767
|
+
const v = V("a-menu-item"), g = V("a-menu"), p = V("a-dropdown");
|
|
3768
|
+
return i(), P(p, {
|
|
3765
3769
|
trigger: [n.triggerWay]
|
|
3766
3770
|
}, {
|
|
3767
3771
|
overlay: s(() => [
|
|
3768
3772
|
w(g, null, {
|
|
3769
3773
|
default: s(() => [
|
|
3770
|
-
(i(!0), T(
|
|
3774
|
+
(i(!0), T(K, null, ne(d.value, (B) => (i(), P(v, {
|
|
3771
3775
|
key: B.value + B.sort,
|
|
3772
|
-
onClick: ($) =>
|
|
3776
|
+
onClick: ($) => h(B)
|
|
3773
3777
|
}, {
|
|
3774
3778
|
default: s(() => [
|
|
3775
3779
|
c("span", {
|
|
3776
|
-
class:
|
|
3780
|
+
class: q(r.value == B.value + B.sort ? "activted" : "")
|
|
3777
3781
|
}, C(B.label), 3)
|
|
3778
3782
|
]),
|
|
3779
3783
|
_: 2
|
|
@@ -3785,18 +3789,18 @@ const Ol = {
|
|
|
3785
3789
|
default: s(() => [
|
|
3786
3790
|
c("span", {
|
|
3787
3791
|
class: "ant-dropdown-link",
|
|
3788
|
-
onClick: l[0] || (l[0] =
|
|
3792
|
+
onClick: l[0] || (l[0] = xe(() => {
|
|
3789
3793
|
}, ["prevent"]))
|
|
3790
3794
|
}, [
|
|
3791
3795
|
A(C(n.colText) + " ", 1),
|
|
3792
|
-
w(L(
|
|
3796
|
+
w(L(Ye))
|
|
3793
3797
|
])
|
|
3794
3798
|
]),
|
|
3795
3799
|
_: 1
|
|
3796
3800
|
}, 8, ["trigger"]);
|
|
3797
3801
|
};
|
|
3798
3802
|
}
|
|
3799
|
-
}),
|
|
3803
|
+
}), Tn = /* @__PURE__ */ X(Sn, [["__scopeId", "data-v-cf0b0a0d"]]), wn = Q(Tn), Hn = { class: "hb_lib_loading" }, xn = { class: "hb_lib_loading_loading_anima" }, Fn = { class: "hb_lib_loading_load_tips" }, $n = /* @__PURE__ */ J({
|
|
3800
3804
|
name: "HbLibLoading",
|
|
3801
3805
|
__name: "loading",
|
|
3802
3806
|
props: {
|
|
@@ -3806,74 +3810,74 @@ const Ol = {
|
|
|
3806
3810
|
}
|
|
3807
3811
|
},
|
|
3808
3812
|
setup(e) {
|
|
3809
|
-
const { t: o } =
|
|
3810
|
-
return (u, d) => (i(), T("div",
|
|
3811
|
-
c("div",
|
|
3812
|
-
d[0] || (d[0] =
|
|
3813
|
-
c("div",
|
|
3813
|
+
const { t: o } = ce(), t = e, n = z(() => t.loadTips || o("hbLibComp.HbLibLoading.loadingTips"));
|
|
3814
|
+
return (u, d) => (i(), T("div", Hn, [
|
|
3815
|
+
c("div", xn, [
|
|
3816
|
+
d[0] || (d[0] = Et('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
3817
|
+
c("div", Fn, C(n.value), 1)
|
|
3814
3818
|
])
|
|
3815
3819
|
]));
|
|
3816
3820
|
}
|
|
3817
|
-
}),
|
|
3821
|
+
}), In = /* @__PURE__ */ X($n, [["__scopeId", "data-v-22f438b9"]]), Mn = Q(In), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3818
3822
|
__proto__: null,
|
|
3819
|
-
HbLibAnchor:
|
|
3820
|
-
HbLibCard:
|
|
3821
|
-
HbLibCopy:
|
|
3822
|
-
HbLibDetailBox:
|
|
3823
|
-
HbLibFooterBar:
|
|
3824
|
-
HbLibFormItemFilterModal:
|
|
3825
|
-
HbLibFormTooltipSelect:
|
|
3826
|
-
HbLibFuncCompDrag:
|
|
3827
|
-
HbLibImportFile:
|
|
3828
|
-
HbLibListBtnsAct:
|
|
3829
|
-
HbLibListForm:
|
|
3830
|
-
HbLibListMultiSelect:
|
|
3831
|
-
HbLibListPageAct:
|
|
3832
|
-
HbLibListPageContainer:
|
|
3833
|
-
HbLibListTable:
|
|
3834
|
-
HbLibLoading:
|
|
3835
|
-
HbLibLogModal:
|
|
3836
|
-
HbLibModal:
|
|
3837
|
-
HbLibMutilpleSelectModal:
|
|
3838
|
-
HbLibPageHeader:
|
|
3839
|
-
HbLibSort:
|
|
3840
|
-
HbLibTableAct:
|
|
3841
|
-
HbLibTableColumnSet:
|
|
3842
|
-
HbLibUnDetailBox:
|
|
3843
|
-
HbUiConfig:
|
|
3844
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3845
|
-
let
|
|
3846
|
-
|
|
3847
|
-
for (const o of
|
|
3823
|
+
HbLibAnchor: Da,
|
|
3824
|
+
HbLibCard: wa,
|
|
3825
|
+
HbLibCopy: $t,
|
|
3826
|
+
HbLibDetailBox: Ka,
|
|
3827
|
+
HbLibFooterBar: Qa,
|
|
3828
|
+
HbLibFormItemFilterModal: so,
|
|
3829
|
+
HbLibFormTooltipSelect: Xl,
|
|
3830
|
+
HbLibFuncCompDrag: Cn,
|
|
3831
|
+
HbLibImportFile: ra,
|
|
3832
|
+
HbLibListBtnsAct: wo,
|
|
3833
|
+
HbLibListForm: bo,
|
|
3834
|
+
HbLibListMultiSelect: jo,
|
|
3835
|
+
HbLibListPageAct: _o,
|
|
3836
|
+
HbLibListPageContainer: Fo,
|
|
3837
|
+
HbLibListTable: Rl,
|
|
3838
|
+
HbLibLoading: Mn,
|
|
3839
|
+
HbLibLogModal: fa,
|
|
3840
|
+
HbLibModal: tn,
|
|
3841
|
+
HbLibMutilpleSelectModal: Jo,
|
|
3842
|
+
HbLibPageHeader: hn,
|
|
3843
|
+
HbLibSort: wn,
|
|
3844
|
+
HbLibTableAct: rl,
|
|
3845
|
+
HbLibTableColumnSet: Jl,
|
|
3846
|
+
HbLibUnDetailBox: cn,
|
|
3847
|
+
HbUiConfig: va
|
|
3848
|
+
}, Symbol.toStringTag, { value: "Module" })), he = /* @__PURE__ */ new Map();
|
|
3849
|
+
let ht;
|
|
3850
|
+
eo && (document.addEventListener("mousedown", (e) => ht = e), document.addEventListener("mouseup", (e) => {
|
|
3851
|
+
for (const o of he.values())
|
|
3848
3852
|
for (const { documentHandler: t } of o)
|
|
3849
|
-
t(e,
|
|
3853
|
+
t(e, ht);
|
|
3850
3854
|
}));
|
|
3851
|
-
function
|
|
3855
|
+
function mt(e, o) {
|
|
3852
3856
|
let t = [];
|
|
3853
3857
|
return Array.isArray(o.arg) ? t = o.arg : o.arg instanceof HTMLElement && t.push(o.arg), function(n, u) {
|
|
3854
|
-
const d = o.instance.popperRef, r = n.target,
|
|
3855
|
-
a || l || v || g ||
|
|
3858
|
+
const d = o.instance.popperRef, r = n.target, h = u?.target, a = !o || !o.instance, l = !r || !h, v = e.contains(r) || e.contains(h), g = e === r, p = t.length && t.some(($) => $?.contains(r)) || t.length && t.includes(h), B = d && (d.contains(r) || d.contains(h));
|
|
3859
|
+
a || l || v || g || p || B || o.value(n, u);
|
|
3856
3860
|
};
|
|
3857
3861
|
}
|
|
3858
|
-
const
|
|
3862
|
+
const Bn = {
|
|
3859
3863
|
beforeMount(e, o) {
|
|
3860
|
-
|
|
3861
|
-
documentHandler:
|
|
3864
|
+
he.has(e) || he.set(e, []), he.get(e).push({
|
|
3865
|
+
documentHandler: mt(e, o),
|
|
3862
3866
|
bindingFn: o.value
|
|
3863
3867
|
});
|
|
3864
3868
|
},
|
|
3865
3869
|
updated(e, o) {
|
|
3866
|
-
|
|
3867
|
-
const t =
|
|
3868
|
-
documentHandler:
|
|
3870
|
+
he.has(e) || he.set(e, []);
|
|
3871
|
+
const t = he.get(e), n = t.findIndex((d) => d.bindingFn === o.oldValue), u = {
|
|
3872
|
+
documentHandler: mt(e, o),
|
|
3869
3873
|
bindingFn: o.value
|
|
3870
3874
|
};
|
|
3871
3875
|
n >= 0 ? t.splice(n, 1, u) : t.push(u);
|
|
3872
3876
|
},
|
|
3873
3877
|
unmounted(e) {
|
|
3874
|
-
|
|
3878
|
+
he.delete(e);
|
|
3875
3879
|
}
|
|
3876
|
-
},
|
|
3880
|
+
}, An = {
|
|
3877
3881
|
mounted(e, o) {
|
|
3878
3882
|
const { value: t, arg: n } = o;
|
|
3879
3883
|
if (console.log(o), typeof t != "function") {
|
|
@@ -3891,94 +3895,94 @@ const On = {
|
|
|
3891
3895
|
unmounted(e) {
|
|
3892
3896
|
e.__debounceHandler__ && (e.removeEventListener("click", e.__debounceHandler__), delete e.__debounceHandler__);
|
|
3893
3897
|
}
|
|
3894
|
-
},
|
|
3898
|
+
}, vt = (e, o) => {
|
|
3895
3899
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
3896
|
-
const t =
|
|
3900
|
+
const t = zt($t, {
|
|
3897
3901
|
cpText: o
|
|
3898
3902
|
});
|
|
3899
3903
|
t.mount(e._dynamicContainer), e._dynamicApp = t, e._dynamicPrevValue = o;
|
|
3900
|
-
},
|
|
3904
|
+
}, On = {
|
|
3901
3905
|
mounted(e, o) {
|
|
3902
3906
|
if (!e._dynamicContainer) {
|
|
3903
3907
|
const t = document.createElement("div");
|
|
3904
3908
|
t.style.display = "inline-flex", t.style.alignItems = "center", t.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(t, e.nextSibling), e._dynamicContainer = t;
|
|
3905
3909
|
}
|
|
3906
|
-
|
|
3910
|
+
vt(e, o.value);
|
|
3907
3911
|
},
|
|
3908
3912
|
updated(e, o) {
|
|
3909
|
-
o.value !== e._dynamicPrevValue &&
|
|
3913
|
+
o.value !== e._dynamicPrevValue && vt(e, o.value);
|
|
3910
3914
|
},
|
|
3911
3915
|
unmounted(e) {
|
|
3912
3916
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
3913
3917
|
}
|
|
3914
|
-
},
|
|
3918
|
+
}, En = { cos: Bn, dc: An, icp: On }, zn = { 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" } }, Nn = {
|
|
3919
|
+
hbLibComp: zn
|
|
3920
|
+
}, Rn = { 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: "戻る" } }, Pn = {
|
|
3915
3921
|
hbLibComp: Rn
|
|
3916
|
-
}, Un = {
|
|
3922
|
+
}, 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: "返回" }, HbLibLoading: { loadingTips: "加载中...如长时间加载请重试!" } }, Vn = {
|
|
3917
3923
|
hbLibComp: Un
|
|
3918
|
-
}, Wn = {
|
|
3924
|
+
}, Wn = { 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" } }, jn = {
|
|
3919
3925
|
hbLibComp: Wn
|
|
3920
|
-
}, Yn = { 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" } }, qn = {
|
|
3921
|
-
hbLibComp: Yn
|
|
3922
3926
|
};
|
|
3923
|
-
var
|
|
3924
|
-
function
|
|
3925
|
-
return
|
|
3927
|
+
var He = { exports: {} }, Yn = He.exports, gt;
|
|
3928
|
+
function qn() {
|
|
3929
|
+
return gt || (gt = 1, (function(e, o) {
|
|
3926
3930
|
(function(t, n) {
|
|
3927
|
-
e.exports = n(
|
|
3928
|
-
})(
|
|
3931
|
+
e.exports = n(Be);
|
|
3932
|
+
})(Yn, (function(t) {
|
|
3929
3933
|
function n(r) {
|
|
3930
3934
|
return r && typeof r == "object" && "default" in r ? r : { default: r };
|
|
3931
3935
|
}
|
|
3932
|
-
var u = n(t), d = { 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(r,
|
|
3933
|
-
return
|
|
3934
|
-
}, 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(r,
|
|
3935
|
-
var a = 100 * r +
|
|
3936
|
+
var u = n(t), d = { 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(r, h) {
|
|
3937
|
+
return h === "W" ? r + "周" : r + "日";
|
|
3938
|
+
}, 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(r, h) {
|
|
3939
|
+
var a = 100 * r + h;
|
|
3936
3940
|
return a < 600 ? "凌晨" : a < 900 ? "早上" : a < 1100 ? "上午" : a < 1300 ? "中午" : a < 1800 ? "下午" : "晚上";
|
|
3937
3941
|
} };
|
|
3938
3942
|
return u.default.locale(d, null, !0), d;
|
|
3939
3943
|
}));
|
|
3940
|
-
})(
|
|
3944
|
+
})(He)), He.exports;
|
|
3941
3945
|
}
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
const
|
|
3945
|
-
en_US:
|
|
3946
|
-
ja_JP:
|
|
3947
|
-
zh_CN:
|
|
3948
|
-
de_DE:
|
|
3949
|
-
},
|
|
3950
|
-
e.provide("globalCompConfig", o || {}), Object.values(
|
|
3946
|
+
qn();
|
|
3947
|
+
Be.locale("zh-cn");
|
|
3948
|
+
const li = {
|
|
3949
|
+
en_US: Nn,
|
|
3950
|
+
ja_JP: Pn,
|
|
3951
|
+
zh_CN: Vn,
|
|
3952
|
+
de_DE: jn
|
|
3953
|
+
}, ai = function(e, o = {}) {
|
|
3954
|
+
e.provide("globalCompConfig", o || {}), Object.values(Dn).forEach((t) => {
|
|
3951
3955
|
t && typeof t.install == "function" && e.use(t);
|
|
3952
|
-
}), Object.entries(
|
|
3956
|
+
}), Object.entries(En).forEach(([t, n]) => {
|
|
3953
3957
|
e.directive(t, n);
|
|
3954
3958
|
});
|
|
3955
3959
|
};
|
|
3956
3960
|
export {
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3961
|
+
Da as HbLibAnchor,
|
|
3962
|
+
wa as HbLibCard,
|
|
3963
|
+
$t as HbLibCopy,
|
|
3964
|
+
Ka as HbLibDetailBox,
|
|
3965
|
+
Qa as HbLibFooterBar,
|
|
3966
|
+
so as HbLibFormItemFilterModal,
|
|
3967
|
+
Xl as HbLibFormTooltipSelect,
|
|
3968
|
+
Cn as HbLibFuncCompDrag,
|
|
3969
|
+
ra as HbLibImportFile,
|
|
3970
|
+
wo as HbLibListBtnsAct,
|
|
3971
|
+
bo as HbLibListForm,
|
|
3972
|
+
jo as HbLibListMultiSelect,
|
|
3973
|
+
_o as HbLibListPageAct,
|
|
3974
|
+
Fo as HbLibListPageContainer,
|
|
3975
|
+
Rl as HbLibListTable,
|
|
3976
|
+
Mn as HbLibLoading,
|
|
3977
|
+
fa as HbLibLogModal,
|
|
3978
|
+
tn as HbLibModal,
|
|
3979
|
+
Jo as HbLibMutilpleSelectModal,
|
|
3980
|
+
hn as HbLibPageHeader,
|
|
3981
|
+
wn as HbLibSort,
|
|
3982
|
+
rl as HbLibTableAct,
|
|
3983
|
+
Jl as HbLibTableColumnSet,
|
|
3984
|
+
cn as HbLibUnDetailBox,
|
|
3985
|
+
va as HbUiConfig,
|
|
3986
|
+
ai as install,
|
|
3987
|
+
li as locales
|
|
3984
3988
|
};
|