@hb-hellotech/hb-ui 1.2.5-beta.6 → 1.2.5-beta.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +575 -575
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as ee, reactive as Je, ref as P, computed as
|
|
2
|
+
import { defineComponent as ee, reactive as Je, ref as P, computed as K, watch as se, createElementBlock as w, openBlock as a, normalizeClass as V, unref as n, createVNode as T, withCtx as s, createElementVNode as y, toDisplayString as L, createTextVNode as O, createBlock as B, createCommentVNode as z, Fragment as J, renderList as ae, inject as $e, resolveComponent as q, Transition as tt, withDirectives as re, mergeProps as X, createSlots as Ge, renderSlot as Y, vShow as lt, nextTick as be, onMounted as Me, onUnmounted as ot, useTemplateRef as at, provide as nt, normalizeStyle as me, mergeModels as ke, useModel as Qe, withModifiers as _e, resolveDirective as st, useAttrs as it, watchEffect as rt, shallowRef as ct, resolveDynamicComponent as dt } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
4
|
import { CloseOutlined as ut, QuestionCircleOutlined as bt, SearchOutlined as Ie, UpCircleOutlined as ht, DownCircleOutlined as ft, UnorderedListOutlined as pt, DownOutlined as De } from "@ant-design/icons-vue";
|
|
5
5
|
import { Modal as Se, Button as ue, Tooltip as we, Switch as Oe, Radio as Re, RadioGroup as Be, InputNumber as Pe, DatePicker as Ne, Checkbox as pe, CheckboxGroup as ze, Select as Fe, Input as Ve, Col as mt, Row as vt, FormItem as Ee, Form as Ue, SelectOption as xe, Popconfirm as Ce, MenuItem as Ye, Menu as je, Dropdown as qe, Popover as gt, message as Te } from "ant-design-vue";
|
|
@@ -38,89 +38,89 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
40
|
setup(e, { expose: f, emit: r }) {
|
|
41
|
-
const i = ce().t,
|
|
41
|
+
const i = ce().t, x = ce().messages.value.en_US, m = ce().messages.value.ja_JP, b = ce().messages.value.zh_CN, c = e, t = r, u = Ae("sfcm"), v = Ze(), R = Je({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}), A = P(!1),
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
43
|
+
}), A = P(!1), G = P(600);
|
|
44
|
+
let p = [];
|
|
45
|
+
const g = P([]), S = P([]), M = K(() => g.value.every((_) => _.isLinked || _.isFixed)), E = (_) => {
|
|
46
|
+
const H = _.draggedContext.element, C = _.relatedContext.index;
|
|
47
|
+
if (H.isLinked || H.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
49
|
+
const U = g.value.map((Z, ne) => ({ item: Z, index: ne })).filter(({ item: Z }) => Z.isLinked).map(({ index: Z }) => Z);
|
|
50
|
+
if (U.length === 0)
|
|
51
51
|
return !0;
|
|
52
|
-
for (let Z = 0; Z <
|
|
53
|
-
const ne =
|
|
52
|
+
for (let Z = 0; Z < U.length - 1; Z++) {
|
|
53
|
+
const ne = U[Z], de = U[Z + 1];
|
|
54
54
|
if (C > ne && C < de)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
|
-
},
|
|
58
|
+
}, I = () => {
|
|
59
59
|
const _ = localStorage.getItem("pro__Login_Userinfo");
|
|
60
|
-
let
|
|
60
|
+
let H = "anonymous";
|
|
61
61
|
if (_)
|
|
62
62
|
try {
|
|
63
|
-
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
63
|
+
H = JSON.parse(_).value.jobNumber || "anonymous";
|
|
64
|
+
} catch (U) {
|
|
65
|
+
console.warn("解析用户信息失败:", U);
|
|
66
66
|
}
|
|
67
67
|
let C = v?.path;
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
68
|
+
return `searchFormConfig_${H}_${C}`;
|
|
69
|
+
}, F = (_) => ({
|
|
70
70
|
ja_JP: () => Le.get(m, _.labelLanguage || ""),
|
|
71
|
-
en_US: () => Le.get(
|
|
71
|
+
en_US: () => Le.get(x, _.labelLanguage || ""),
|
|
72
72
|
zh_CN: () => Le.get(b, _.labelLanguage || "")
|
|
73
73
|
})[R.lan]?.() || _.label, l = (_) => {
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
75
|
+
const H = I(), C = localStorage.getItem(H);
|
|
76
76
|
if (C) {
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
const Z =
|
|
81
|
-
|
|
82
|
-
label:
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})), ye = ne.map((
|
|
88
|
-
|
|
89
|
-
label:
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
77
|
+
const U = JSON.parse(C);
|
|
78
|
+
if (U.originalList && Array.isArray(U.originalList)) {
|
|
79
|
+
p = JSON.parse(JSON.stringify(U.originalList));
|
|
80
|
+
const Z = p.filter(($) => $?.isFixed), ne = p.filter(($) => $?.isLinked), de = U.showList.filter(($) => !$.isFixed && !$.isLinked), ve = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - Z.length - ne.length) : de.length, ge = Z.map(($) => ({
|
|
81
|
+
...$,
|
|
82
|
+
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: $.key,
|
|
84
|
+
isFixed: $?.isFixed || !1,
|
|
85
|
+
isLinked: $?.isLinked || !1,
|
|
86
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
87
|
+
})), ye = ne.map(($) => ({
|
|
88
|
+
...$,
|
|
89
|
+
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: $.key,
|
|
91
|
+
isFixed: $?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})), D = de.slice(0, ve).map((
|
|
95
|
-
|
|
96
|
-
label:
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
94
|
+
})), D = de.slice(0, ve).map(($) => ({
|
|
95
|
+
...$,
|
|
96
|
+
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: $.key,
|
|
98
|
+
isFixed: $?.isFixed || !1,
|
|
99
|
+
isLinked: $?.isLinked || !1,
|
|
100
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const Xe =
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
label:
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
g.value = [...ge, ...ye, ...D];
|
|
103
|
+
const Xe = g.value.map(($) => $.key), et = p.map(($) => $.key).filter(($) => !Xe.includes($));
|
|
104
|
+
return S.value = p.filter(($) => et.includes($.key)).map(($) => ({
|
|
105
|
+
...$,
|
|
106
|
+
label: F($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
+
key: $.key,
|
|
108
|
+
isFixed: $?.isFixed || !1,
|
|
109
|
+
isLinked: $?.isLinked || !1,
|
|
110
110
|
active: !1,
|
|
111
|
-
labelLanguage:
|
|
111
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
112
112
|
})), !0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
} catch (
|
|
116
|
-
console.warn("加载保存的搜索配置失败:",
|
|
115
|
+
} catch (H) {
|
|
116
|
+
console.warn("加载保存的搜索配置失败:", H);
|
|
117
117
|
}
|
|
118
118
|
return !1;
|
|
119
119
|
}, o = () => {
|
|
120
120
|
try {
|
|
121
121
|
const _ = {
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
122
|
+
originalList: p,
|
|
123
|
+
showList: g.value.map((C) => ({
|
|
124
124
|
...C,
|
|
125
125
|
key: C.key,
|
|
126
126
|
label: C.label,
|
|
@@ -128,107 +128,107 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
128
128
|
isLinked: C.isLinked,
|
|
129
129
|
labelLanguage: C?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
131
|
+
}, H = I();
|
|
132
|
+
localStorage.setItem(H, JSON.stringify(_));
|
|
133
133
|
} catch (_) {
|
|
134
134
|
console.warn("保存搜索配置失败:", _);
|
|
135
135
|
}
|
|
136
|
-
}, h =
|
|
137
|
-
const _ =
|
|
138
|
-
return _ >= c.showNumber -
|
|
136
|
+
}, h = K(() => {
|
|
137
|
+
const _ = g.value.filter((C) => !C.isFixed && !C.isLinked).length, H = g.value.filter((C) => C.isFixed || C.isLinked).length;
|
|
138
|
+
return _ >= c.showNumber - H;
|
|
139
139
|
});
|
|
140
140
|
se(
|
|
141
141
|
() => c.list,
|
|
142
142
|
(_) => {
|
|
143
|
-
let
|
|
144
|
-
if (!(!
|
|
145
|
-
|
|
146
|
-
const C = _.filter((D) => D?.isFixed),
|
|
143
|
+
let H = JSON.stringify(g.value) !== JSON.stringify(_);
|
|
144
|
+
if (!(!H && l()) && (p.length === 0 || H)) {
|
|
145
|
+
p = JSON.parse(JSON.stringify(_));
|
|
146
|
+
const C = _.filter((D) => D?.isFixed), U = _.filter((D) => D?.isLinked), Z = _.filter((D) => !D?.isFixed && !D?.isLinked), ne = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - C.length - U.length) : Z.length, de = C.map((D) => ({
|
|
147
147
|
...D,
|
|
148
|
-
label:
|
|
148
|
+
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
149
149
|
key: D.key,
|
|
150
150
|
isFixed: D?.isFixed || !1,
|
|
151
151
|
isLinked: D?.isLinked || !1,
|
|
152
152
|
labelLanguage: D?.labelLanguage || void 0
|
|
153
|
-
})), ve =
|
|
153
|
+
})), ve = U.map((D) => ({
|
|
154
154
|
...D,
|
|
155
|
-
label:
|
|
155
|
+
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
156
156
|
key: D.key,
|
|
157
157
|
isFixed: D?.isFixed || !1,
|
|
158
158
|
isLinked: !0,
|
|
159
159
|
labelLanguage: D?.labelLanguage || void 0
|
|
160
160
|
})), ge = Z.slice(0, ne).map((D) => ({
|
|
161
161
|
...D,
|
|
162
|
-
label:
|
|
162
|
+
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
163
163
|
key: D.key,
|
|
164
164
|
isFixed: D?.isFixed || !1,
|
|
165
165
|
isLinked: D?.isLinked || !1,
|
|
166
166
|
labelLanguage: D?.labelLanguage || void 0
|
|
167
167
|
}));
|
|
168
|
-
|
|
168
|
+
g.value = [...de, ...ve, ...ge];
|
|
169
169
|
const ye = Z.slice(ne).map((D) => ({
|
|
170
170
|
...D,
|
|
171
|
-
label:
|
|
171
|
+
label: F(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
172
172
|
key: D.key,
|
|
173
173
|
isFixed: D?.isFixed || !1,
|
|
174
174
|
isLinked: D?.isLinked || !1,
|
|
175
175
|
active: !1,
|
|
176
176
|
labelLanguage: D?.labelLanguage || void 0
|
|
177
177
|
}));
|
|
178
|
-
|
|
178
|
+
S.value = ye;
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
{ immediate: !0 }
|
|
182
182
|
);
|
|
183
183
|
const k = (_) => {
|
|
184
|
-
const
|
|
185
|
-
|
|
184
|
+
const H = g.value.findIndex((C) => C.key === _.key);
|
|
185
|
+
H !== -1 && (g.value.splice(H, 1), S.value.push({ ..._, active: !1 }));
|
|
186
186
|
}, d = (_) => {
|
|
187
187
|
if (h.value)
|
|
188
188
|
return;
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
const [C] =
|
|
192
|
-
|
|
189
|
+
const H = S.value.findIndex((C) => C.key === _.key);
|
|
190
|
+
if (H !== -1) {
|
|
191
|
+
const [C] = S.value.splice(H, 1);
|
|
192
|
+
g.value.push({ ...C, active: !1 });
|
|
193
193
|
}
|
|
194
|
-
},
|
|
194
|
+
}, j = () => {
|
|
195
195
|
A.value = !1;
|
|
196
196
|
}, N = () => {
|
|
197
197
|
A.value = !0;
|
|
198
198
|
}, le = () => {
|
|
199
|
-
o(), t("confirm",
|
|
199
|
+
o(), t("confirm", g.value), j();
|
|
200
200
|
}, Q = (_) => {
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
},
|
|
204
|
-
const
|
|
205
|
-
|
|
201
|
+
const H = S.value.findIndex((C) => C.key === _.key);
|
|
202
|
+
H !== -1 && (S.value[H].active = !0);
|
|
203
|
+
}, W = (_) => {
|
|
204
|
+
const H = S.value.findIndex((C) => C.key === _.key);
|
|
205
|
+
H !== -1 && (S.value[H].active = !1);
|
|
206
206
|
};
|
|
207
207
|
return f({
|
|
208
208
|
toOpenModal: N
|
|
209
|
-
}), (_,
|
|
210
|
-
class:
|
|
209
|
+
}), (_, H) => (a(), w("div", {
|
|
210
|
+
class: V(n(u).b())
|
|
211
211
|
}, [
|
|
212
|
-
|
|
212
|
+
T(n(Se), {
|
|
213
213
|
visible: A.value,
|
|
214
|
-
"onUpdate:visible":
|
|
215
|
-
width:
|
|
216
|
-
onCancel:
|
|
214
|
+
"onUpdate:visible": H[1] || (H[1] = (C) => A.value = C),
|
|
215
|
+
width: G.value,
|
|
216
|
+
onCancel: j,
|
|
217
217
|
onOk: le
|
|
218
218
|
}, {
|
|
219
219
|
title: s(() => [
|
|
220
|
-
|
|
221
|
-
class:
|
|
220
|
+
y("div", {
|
|
221
|
+
class: V(n(u).e("title"))
|
|
222
222
|
}, L(e.title), 3)
|
|
223
223
|
]),
|
|
224
224
|
footer: s(() => [
|
|
225
|
-
|
|
225
|
+
T(n(ue), { onClick: j }, {
|
|
226
226
|
default: s(() => [
|
|
227
227
|
O(L(_.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
}),
|
|
231
|
-
|
|
231
|
+
T(n(ue), {
|
|
232
232
|
type: "primary",
|
|
233
233
|
onClick: le
|
|
234
234
|
}, {
|
|
@@ -239,37 +239,37 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
239
239
|
})
|
|
240
240
|
]),
|
|
241
241
|
default: s(() => [
|
|
242
|
-
|
|
243
|
-
class:
|
|
242
|
+
y("section", {
|
|
243
|
+
class: V(n(u).e("show"))
|
|
244
244
|
}, [
|
|
245
|
-
|
|
246
|
-
class:
|
|
245
|
+
y("div", {
|
|
246
|
+
class: V(n(u).e("show__title"))
|
|
247
247
|
}, [
|
|
248
|
-
|
|
249
|
-
class:
|
|
248
|
+
y("span", {
|
|
249
|
+
class: V(n(u).e("title__tip"))
|
|
250
250
|
}, L(_.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
251
|
-
|
|
251
|
+
y("span", null, L(_.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(e.showNumber) + L(_.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
252
252
|
], 2),
|
|
253
|
-
|
|
254
|
-
class:
|
|
253
|
+
y("div", {
|
|
254
|
+
class: V(n(u).e("show__tag"))
|
|
255
255
|
}, [
|
|
256
|
-
|
|
257
|
-
modelValue:
|
|
258
|
-
"onUpdate:modelValue":
|
|
256
|
+
T(n(fe), {
|
|
257
|
+
modelValue: g.value,
|
|
258
|
+
"onUpdate:modelValue": H[0] || (H[0] = (C) => g.value = C),
|
|
259
259
|
"item-key": "key",
|
|
260
260
|
tag: "div",
|
|
261
|
-
disabled:
|
|
262
|
-
move:
|
|
261
|
+
disabled: M.value,
|
|
262
|
+
move: E
|
|
263
263
|
}, {
|
|
264
264
|
item: s(({ element: C }) => [
|
|
265
|
-
|
|
266
|
-
class:
|
|
265
|
+
y("div", {
|
|
266
|
+
class: V([n(u).e("show__tag__item"), n(u).is("fixed", C.isFixed), n(u).is("linked", C.isLinked)])
|
|
267
267
|
}, [
|
|
268
268
|
O(L(C.label) + " ", 1),
|
|
269
269
|
!C.isFixed && !C.isLinked && e.list.length > 1 ? (a(), B(n(ut), {
|
|
270
270
|
key: 0,
|
|
271
|
-
class:
|
|
272
|
-
onClick: (
|
|
271
|
+
class: V(n(u).e("show__tag__item-close")),
|
|
272
|
+
onClick: (U) => k(C)
|
|
273
273
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
274
274
|
], 2)
|
|
275
275
|
]),
|
|
@@ -277,34 +277,34 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
277
277
|
}, 8, ["modelValue", "disabled"])
|
|
278
278
|
], 2)
|
|
279
279
|
], 2),
|
|
280
|
-
|
|
281
|
-
class:
|
|
280
|
+
y("section", {
|
|
281
|
+
class: V(n(u).e("unshow"))
|
|
282
282
|
}, [
|
|
283
|
-
|
|
284
|
-
class:
|
|
283
|
+
y("div", {
|
|
284
|
+
class: V(n(u).e("show__title"))
|
|
285
285
|
}, [
|
|
286
|
-
|
|
287
|
-
class:
|
|
286
|
+
y("span", {
|
|
287
|
+
class: V(n(u).e("title__tip"))
|
|
288
288
|
}, L(_.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
289
289
|
], 2),
|
|
290
|
-
|
|
291
|
-
class:
|
|
290
|
+
y("div", {
|
|
291
|
+
class: V(n(u).e("unshow__tag"))
|
|
292
292
|
}, [
|
|
293
|
-
|
|
294
|
-
class:
|
|
293
|
+
S.value.length > 0 ? (a(!0), w(J, { key: 0 }, ae(S.value, (C) => (a(), w("div", {
|
|
294
|
+
class: V([n(u).e("unshow__tag__item"), n(u).is("fixed", C.isFixed || ""), n(u).is("linked", C.isLinked || "")]),
|
|
295
295
|
key: C.key,
|
|
296
|
-
onMouseenter: (
|
|
297
|
-
onMouseleave: (
|
|
296
|
+
onMouseenter: (U) => Q(C),
|
|
297
|
+
onMouseleave: (U) => W(C)
|
|
298
298
|
}, [
|
|
299
299
|
O(L(C.label) + " ", 1),
|
|
300
|
-
C.active ? (a(),
|
|
300
|
+
C.active ? (a(), w("aside", {
|
|
301
301
|
key: 0,
|
|
302
|
-
class:
|
|
303
|
-
onClick: (
|
|
302
|
+
class: V(n(u).e("unshow__tag__item-add")),
|
|
303
|
+
onClick: (U) => d(C)
|
|
304
304
|
}, L(_.$t("hbLibComp.hbFormItemFilterModal.add")), 11, St)) : z("", !0)
|
|
305
|
-
], 42, _t))), 128)) : (a(),
|
|
305
|
+
], 42, _t))), 128)) : (a(), w("div", {
|
|
306
306
|
key: 1,
|
|
307
|
-
class:
|
|
307
|
+
class: V(n(u).e("unshow__tag__empty"))
|
|
308
308
|
}, L(_.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
309
309
|
], 2)
|
|
310
310
|
], 2)
|
|
@@ -315,8 +315,8 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
315
315
|
}
|
|
316
316
|
}), oe = (e, f) => {
|
|
317
317
|
const r = e.__vccOpts || e;
|
|
318
|
-
for (const [i,
|
|
319
|
-
r[i] =
|
|
318
|
+
for (const [i, x] of f)
|
|
319
|
+
r[i] = x;
|
|
320
320
|
return r;
|
|
321
321
|
}, Ft = /* @__PURE__ */ oe(wt, [["__scopeId", "data-v-52ee50f2"]]), te = (e, f) => (e.install = (r) => {
|
|
322
322
|
for (const i of [e, ...Object.values({})])
|
|
@@ -350,22 +350,22 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
350
350
|
},
|
|
351
351
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm"],
|
|
352
352
|
setup(e, { expose: f, emit: r }) {
|
|
353
|
-
const i = r,
|
|
353
|
+
const i = r, x = $e("HB_LIST_PAGE_CONTAINER"), m = Ae("form"), b = e, c = P("show"), t = K(() => [...b.items]), u = P(), v = () => {
|
|
354
354
|
i("handleSearch");
|
|
355
355
|
}, R = () => {
|
|
356
356
|
i("handleReset");
|
|
357
|
-
}, A = P(),
|
|
357
|
+
}, A = P(), G = () => {
|
|
358
358
|
A.value && A.value.toOpenModal();
|
|
359
|
-
},
|
|
360
|
-
i("handleSfcmConfirm",
|
|
361
|
-
},
|
|
359
|
+
}, p = (F) => {
|
|
360
|
+
i("handleSfcmConfirm", F);
|
|
361
|
+
}, g = () => {
|
|
362
362
|
c.value = c.value === "show" ? "hide" : "show";
|
|
363
363
|
};
|
|
364
364
|
se(
|
|
365
365
|
() => b.isFormExpanded,
|
|
366
|
-
(
|
|
367
|
-
if (
|
|
368
|
-
console.log(
|
|
366
|
+
(F) => {
|
|
367
|
+
if (F) {
|
|
368
|
+
console.log(F);
|
|
369
369
|
const l = document.querySelector("#subpackage_container");
|
|
370
370
|
l instanceof HTMLElement && (l.style.overflow = "hidden", setTimeout(() => {
|
|
371
371
|
l.style.overflow = "auto";
|
|
@@ -373,25 +373,25 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
);
|
|
376
|
-
const
|
|
377
|
-
const l =
|
|
376
|
+
const S = (F) => {
|
|
377
|
+
const l = F;
|
|
378
378
|
l.style.height = "", l.offsetHeight;
|
|
379
|
-
},
|
|
380
|
-
const l =
|
|
379
|
+
}, M = (F) => {
|
|
380
|
+
const l = F;
|
|
381
381
|
l.style.height = "", l.style.overflow = "", be(() => {
|
|
382
|
-
|
|
382
|
+
x.calTableHeight && x.calTableHeight();
|
|
383
383
|
});
|
|
384
|
-
},
|
|
385
|
-
const l =
|
|
384
|
+
}, E = (F) => {
|
|
385
|
+
const l = F, o = l.querySelector(".hb-lib-form--container");
|
|
386
386
|
if (o) {
|
|
387
387
|
const h = o.offsetHeight;
|
|
388
388
|
l.style.height = h + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
389
389
|
l.style.height = "0";
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, I = () => {
|
|
393
393
|
be(() => {
|
|
394
|
-
|
|
394
|
+
x.calTableHeight && x.calTableHeight();
|
|
395
395
|
});
|
|
396
396
|
};
|
|
397
397
|
return f({
|
|
@@ -412,41 +412,41 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
412
412
|
Switch: Oe,
|
|
413
413
|
Button: ue,
|
|
414
414
|
Tooltip: we
|
|
415
|
-
}), (
|
|
416
|
-
const o =
|
|
417
|
-
return a(),
|
|
418
|
-
|
|
415
|
+
}), (F, l) => {
|
|
416
|
+
const o = q("a-button"), h = q("a-tooltip"), k = q("HbLibFormItemFilterModal");
|
|
417
|
+
return a(), w(J, null, [
|
|
418
|
+
T(tt, {
|
|
419
419
|
name: "form-collapse",
|
|
420
|
-
onEnter:
|
|
421
|
-
onAfterEnter:
|
|
422
|
-
onLeave:
|
|
423
|
-
onAfterLeave:
|
|
420
|
+
onEnter: S,
|
|
421
|
+
onAfterEnter: M,
|
|
422
|
+
onLeave: E,
|
|
423
|
+
onAfterLeave: I
|
|
424
424
|
}, {
|
|
425
425
|
default: s(() => [
|
|
426
|
-
re(
|
|
427
|
-
class:
|
|
426
|
+
re(y("div", {
|
|
427
|
+
class: V([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
428
428
|
}, [
|
|
429
|
-
|
|
429
|
+
T(n(Ue), X(F.$attrs, {
|
|
430
430
|
model: e.formData,
|
|
431
431
|
ref_key: "formRef",
|
|
432
432
|
ref: u,
|
|
433
433
|
class: ["hb-lib-form--container", c.value == "show" ? "" : "hide"]
|
|
434
434
|
}), {
|
|
435
435
|
default: s(() => [
|
|
436
|
-
(a(!0),
|
|
437
|
-
key:
|
|
436
|
+
(a(!0), w(J, null, ae(t.value, (d, j) => (a(), B(n(Ee), X({
|
|
437
|
+
key: j,
|
|
438
438
|
ref_for: !0
|
|
439
439
|
}, d, {
|
|
440
440
|
name: d.key,
|
|
441
441
|
class: d.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
442
442
|
}), Ge({
|
|
443
443
|
default: s(() => [
|
|
444
|
-
d.type === "slot" ?
|
|
444
|
+
d.type === "slot" ? Y(F.$slots, d.key, {
|
|
445
445
|
key: 0,
|
|
446
446
|
formData: e.formData,
|
|
447
447
|
item: d
|
|
448
448
|
}, void 0, !0) : z("", !0),
|
|
449
|
-
d.type === "mixin" ?
|
|
449
|
+
d.type === "mixin" ? Y(F.$slots, d.key, {
|
|
450
450
|
key: 1,
|
|
451
451
|
formData: e.formData,
|
|
452
452
|
item: d
|
|
@@ -462,7 +462,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
462
462
|
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
463
463
|
}, { ref_for: !0 }, d.attrs), {
|
|
464
464
|
default: s(() => [
|
|
465
|
-
(a(!0),
|
|
465
|
+
(a(!0), w(J, null, ae(d.options, (N, le) => (a(), B(n(xe), {
|
|
466
466
|
key: le,
|
|
467
467
|
value: N.value
|
|
468
468
|
}, {
|
|
@@ -480,7 +480,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
480
480
|
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
481
481
|
}, { ref_for: !0 }, d.attrs), {
|
|
482
482
|
default: s(() => [
|
|
483
|
-
(a(!0),
|
|
483
|
+
(a(!0), w(J, null, ae(d.options, (N, le) => (a(), B(n(pe), {
|
|
484
484
|
key: le,
|
|
485
485
|
value: N.value
|
|
486
486
|
}, {
|
|
@@ -508,7 +508,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
508
508
|
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
509
509
|
}, { ref_for: !0 }, d.attrs), {
|
|
510
510
|
default: s(() => [
|
|
511
|
-
(a(!0),
|
|
511
|
+
(a(!0), w(J, null, ae(d.options, (N, le) => (a(), B(n(Re), {
|
|
512
512
|
key: le,
|
|
513
513
|
value: N.value
|
|
514
514
|
}, {
|
|
@@ -532,11 +532,11 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
532
532
|
name: "label",
|
|
533
533
|
fn: s(() => [
|
|
534
534
|
O(L(d.label) + " ", 1),
|
|
535
|
-
|
|
535
|
+
T(n(we), {
|
|
536
536
|
title: d.tooltip
|
|
537
537
|
}, {
|
|
538
538
|
default: s(() => [
|
|
539
|
-
|
|
539
|
+
T(n(bt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
540
540
|
]),
|
|
541
541
|
_: 1
|
|
542
542
|
}, 8, ["title"])
|
|
@@ -544,39 +544,39 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
544
544
|
key: "0"
|
|
545
545
|
} : void 0
|
|
546
546
|
]), 1040, ["name", "class"]))), 128)),
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
y("section", Tt, [
|
|
548
|
+
T(o, {
|
|
549
549
|
type: "primary",
|
|
550
550
|
onClick: v,
|
|
551
551
|
class: "hb_list_page_button"
|
|
552
552
|
}, {
|
|
553
553
|
icon: s(() => [
|
|
554
|
-
|
|
554
|
+
T(n(Ie))
|
|
555
555
|
]),
|
|
556
556
|
default: s(() => [
|
|
557
|
-
O(" " + L(
|
|
557
|
+
O(" " + L(F.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
|
-
|
|
561
|
+
T(o, {
|
|
562
562
|
type: "link",
|
|
563
563
|
onClick: R
|
|
564
564
|
}, {
|
|
565
565
|
default: s(() => [
|
|
566
|
-
O(L(
|
|
566
|
+
O(L(F.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
569
|
}),
|
|
570
570
|
e.needFilter ? (a(), B(h, {
|
|
571
571
|
key: 0,
|
|
572
|
-
title:
|
|
572
|
+
title: F.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
573
573
|
}, {
|
|
574
574
|
default: s(() => [
|
|
575
|
-
|
|
575
|
+
y("span", {
|
|
576
576
|
class: "hb-lib-form-svg",
|
|
577
|
-
onClick:
|
|
577
|
+
onClick: G
|
|
578
578
|
}, [...l[0] || (l[0] = [
|
|
579
|
-
|
|
579
|
+
y("svg", {
|
|
580
580
|
t: "1757915025410",
|
|
581
581
|
class: "icon",
|
|
582
582
|
viewBox: "0 0 1024 1024",
|
|
@@ -586,7 +586,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
586
586
|
width: "200",
|
|
587
587
|
height: "200"
|
|
588
588
|
}, [
|
|
589
|
-
|
|
589
|
+
y("path", {
|
|
590
590
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
591
591
|
fill: "#ff5000",
|
|
592
592
|
"p-id": "16347"
|
|
@@ -596,52 +596,52 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
596
596
|
]),
|
|
597
597
|
_: 1
|
|
598
598
|
}, 8, ["title"])) : z("", !0),
|
|
599
|
-
|
|
599
|
+
Y(F.$slots, "formBtns", {}, void 0, !0)
|
|
600
600
|
])
|
|
601
601
|
]),
|
|
602
602
|
_: 3
|
|
603
603
|
}, 16, ["model", "class"]),
|
|
604
|
-
e.needFooter ? (a(),
|
|
604
|
+
e.needFooter ? (a(), w("div", {
|
|
605
605
|
key: 0,
|
|
606
|
-
class:
|
|
606
|
+
class: V(n(m).e("footer"))
|
|
607
607
|
}, [
|
|
608
|
-
|
|
609
|
-
class:
|
|
608
|
+
y("div", {
|
|
609
|
+
class: V(n(m).e("footer__left"))
|
|
610
610
|
}, [
|
|
611
|
-
|
|
611
|
+
Y(F.$slots, "form-footer-left", {}, void 0, !0)
|
|
612
612
|
], 2),
|
|
613
|
-
|
|
614
|
-
class:
|
|
613
|
+
y("div", {
|
|
614
|
+
class: V(n(m).e("footer__right"))
|
|
615
615
|
}, [
|
|
616
|
-
c.value == "show" ?
|
|
616
|
+
c.value == "show" ? Y(F.$slots, "form-footer-right", {
|
|
617
617
|
key: 0,
|
|
618
618
|
formRef: u.value
|
|
619
619
|
}, () => [
|
|
620
|
-
|
|
620
|
+
T(n(ue), {
|
|
621
621
|
type: "primary",
|
|
622
622
|
onClick: R
|
|
623
623
|
}, {
|
|
624
624
|
default: s(() => [
|
|
625
|
-
O(L(
|
|
625
|
+
O(L(F.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
626
626
|
]),
|
|
627
627
|
_: 1
|
|
628
628
|
}),
|
|
629
|
-
|
|
629
|
+
T(n(ue), {
|
|
630
630
|
type: "primary",
|
|
631
631
|
onClick: v
|
|
632
632
|
}, {
|
|
633
633
|
default: s(() => [
|
|
634
|
-
O(L(
|
|
634
|
+
O(L(F.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
637
|
})
|
|
638
638
|
], !0) : z("", !0),
|
|
639
|
-
|
|
639
|
+
T(n(ue), {
|
|
640
640
|
type: "primary",
|
|
641
|
-
onClick:
|
|
641
|
+
onClick: g
|
|
642
642
|
}, {
|
|
643
643
|
default: s(() => [
|
|
644
|
-
O(L(c.value == "show" ? `${
|
|
644
|
+
O(L(c.value == "show" ? `${F.$t("hbLibComp.hbListPageAct.close")}` : `${F.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
645
645
|
]),
|
|
646
646
|
_: 1
|
|
647
647
|
})
|
|
@@ -653,11 +653,11 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
655
|
}),
|
|
656
|
-
|
|
656
|
+
T(k, {
|
|
657
657
|
list: t.value,
|
|
658
658
|
ref_key: "HbSfCmRef",
|
|
659
659
|
ref: A,
|
|
660
|
-
onConfirm:
|
|
660
|
+
onConfirm: p
|
|
661
661
|
}, null, 8, ["list"])
|
|
662
662
|
], 64);
|
|
663
663
|
};
|
|
@@ -689,49 +689,49 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
689
689
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
690
690
|
},
|
|
691
691
|
setup(e) {
|
|
692
|
-
const f = $e("HB_LIST_PAGE_CONTAINER"), { isFullscreen: r, toggle: i } = yt(f.PageContainerRef),
|
|
692
|
+
const f = $e("HB_LIST_PAGE_CONTAINER"), { isFullscreen: r, toggle: i } = yt(f.PageContainerRef), x = P(""), m = () => {
|
|
693
693
|
const b = Ze();
|
|
694
694
|
let c = localStorage.getItem("BreadCrumb") || "[]", t = b?.path;
|
|
695
695
|
if (c !== "[]") {
|
|
696
696
|
let u = JSON.parse(c).find((v) => v.value === t);
|
|
697
|
-
u && (
|
|
697
|
+
u && (x.value = u.label.replace(/-/g, " / "));
|
|
698
698
|
}
|
|
699
699
|
};
|
|
700
700
|
return Me(() => {
|
|
701
701
|
m();
|
|
702
702
|
}), (b, c) => {
|
|
703
|
-
const t =
|
|
704
|
-
return a(),
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
703
|
+
const t = q("a-tooltip");
|
|
704
|
+
return a(), w("section", Ht, [
|
|
705
|
+
y("aside", At, L(x.value), 1),
|
|
706
|
+
y("aside", Dt, [
|
|
707
|
+
T(t, {
|
|
708
708
|
title: n(r) ? `${b.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${b.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
709
709
|
placement: "leftTop"
|
|
710
710
|
}, {
|
|
711
711
|
default: s(() => [
|
|
712
|
-
|
|
712
|
+
y("span", {
|
|
713
713
|
class: "hb-lib-list-page-act-svg",
|
|
714
714
|
onClick: c[0] || (c[0] = //@ts-ignore
|
|
715
715
|
(...u) => n(i) && n(i)(...u))
|
|
716
716
|
}, [
|
|
717
|
-
n(r) ? (a(),
|
|
718
|
-
|
|
717
|
+
n(r) ? (a(), w("svg", Rt, [...c[2] || (c[2] = [
|
|
718
|
+
y("path", {
|
|
719
719
|
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",
|
|
720
720
|
fill: "#ff5000",
|
|
721
721
|
"p-id": "23905"
|
|
722
722
|
}, null, -1),
|
|
723
|
-
|
|
723
|
+
y("path", {
|
|
724
724
|
d: "M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
725
725
|
fill: "#ff5000",
|
|
726
726
|
"p-id": "23906"
|
|
727
727
|
}, null, -1),
|
|
728
|
-
|
|
728
|
+
y("path", {
|
|
729
729
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
730
730
|
fill: "#ff5000",
|
|
731
731
|
"p-id": "23907"
|
|
732
732
|
}, null, -1)
|
|
733
|
-
])])) : (a(),
|
|
734
|
-
|
|
733
|
+
])])) : (a(), w("svg", Ot, [...c[1] || (c[1] = [
|
|
734
|
+
y("path", {
|
|
735
735
|
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",
|
|
736
736
|
fill: "#ff5000",
|
|
737
737
|
"p-id": "22886"
|
|
@@ -741,7 +741,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
741
741
|
]),
|
|
742
742
|
_: 1
|
|
743
743
|
}, 8, ["title"]),
|
|
744
|
-
|
|
744
|
+
Y(b.$slots, "listAct", {}, void 0, !0)
|
|
745
745
|
])
|
|
746
746
|
]);
|
|
747
747
|
};
|
|
@@ -755,29 +755,29 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
755
755
|
},
|
|
756
756
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
757
757
|
setup(e, { emit: f }) {
|
|
758
|
-
const r = f, i = P(!0),
|
|
758
|
+
const r = f, i = P(!0), x = () => {
|
|
759
759
|
i.value = !i.value, r("handleOpenOrClose", i.value);
|
|
760
760
|
}, m = () => {
|
|
761
761
|
r("handleReload");
|
|
762
762
|
};
|
|
763
763
|
return Me(() => {
|
|
764
764
|
}), (b, c) => {
|
|
765
|
-
const t =
|
|
766
|
-
return a(),
|
|
767
|
-
|
|
768
|
-
|
|
765
|
+
const t = q("a-tooltip");
|
|
766
|
+
return a(), w("section", zt, [
|
|
767
|
+
y("aside", Vt, [
|
|
768
|
+
Y(b.$slots, "btnsLeft", {}, void 0, !0)
|
|
769
769
|
]),
|
|
770
|
-
|
|
770
|
+
y("aside", Et, [
|
|
771
771
|
e.needReload ? (a(), B(t, {
|
|
772
772
|
key: 0,
|
|
773
773
|
title: b.$t("hbLibComp.hbListBtnsAct.reload")
|
|
774
774
|
}, {
|
|
775
775
|
default: s(() => [
|
|
776
|
-
|
|
776
|
+
y("span", {
|
|
777
777
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
778
778
|
onClick: m
|
|
779
779
|
}, [...c[0] || (c[0] = [
|
|
780
|
-
|
|
780
|
+
y("svg", {
|
|
781
781
|
t: "1759041224819",
|
|
782
782
|
class: "icon",
|
|
783
783
|
viewBox: "0 0 1024 1024",
|
|
@@ -787,7 +787,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
787
787
|
width: "200",
|
|
788
788
|
height: "200"
|
|
789
789
|
}, [
|
|
790
|
-
|
|
790
|
+
y("path", {
|
|
791
791
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
792
792
|
fill: "#ff5000",
|
|
793
793
|
"p-id": "4203"
|
|
@@ -802,9 +802,9 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
802
802
|
title: i.value ? `${b.$t("hbLibComp.hbListBtnsAct.close")}` : `${b.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
803
803
|
}, {
|
|
804
804
|
default: s(() => [
|
|
805
|
-
|
|
805
|
+
y("span", {
|
|
806
806
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
807
|
-
onClick:
|
|
807
|
+
onClick: x
|
|
808
808
|
}, [
|
|
809
809
|
i.value ? (a(), B(n(ht), {
|
|
810
810
|
key: 0,
|
|
@@ -817,70 +817,70 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
817
817
|
]),
|
|
818
818
|
_: 1
|
|
819
819
|
}, 8, ["title"])) : z("", !0),
|
|
820
|
-
|
|
820
|
+
Y(b.$slots, "btnsRight", {}, void 0, !0)
|
|
821
821
|
])
|
|
822
822
|
]);
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
825
|
}), Yt = /* @__PURE__ */ oe(Ut, [["__scopeId", "data-v-da13672b"]]), jt = te(Yt), qt = (e = {}) => {
|
|
826
|
-
const { formRef: f, offsetBottom: r = 50, minHeight: i = 300 } = e,
|
|
826
|
+
const { formRef: f, offsetBottom: r = 50, minHeight: i = 300 } = e, x = P(0);
|
|
827
827
|
let m = null, b = null, c = null, t = null, u = null;
|
|
828
828
|
const v = () => {
|
|
829
829
|
u && clearTimeout(u), u = setTimeout(() => {
|
|
830
830
|
requestAnimationFrame(() => {
|
|
831
831
|
be(() => {
|
|
832
|
-
const
|
|
833
|
-
if (
|
|
834
|
-
const
|
|
835
|
-
let h =
|
|
836
|
-
h < i && (h = i),
|
|
832
|
+
const M = document.querySelector(".ant-table"), E = document.querySelector(".ant-pagination");
|
|
833
|
+
if (M) {
|
|
834
|
+
const I = M.getBoundingClientRect().top, F = window.innerHeight, o = (E ? E.offsetHeight + 20 : 40) + r;
|
|
835
|
+
let h = F - I - o;
|
|
836
|
+
h < i && (h = i), x.value = h;
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
839
|
});
|
|
840
840
|
}, 100);
|
|
841
841
|
}, R = () => {
|
|
842
|
-
const
|
|
843
|
-
if (
|
|
844
|
-
const
|
|
842
|
+
const M = document.querySelector(".ant-pagination");
|
|
843
|
+
if (M) {
|
|
844
|
+
const E = new MutationObserver(() => {
|
|
845
845
|
v();
|
|
846
846
|
});
|
|
847
|
-
return
|
|
847
|
+
return E.observe(M, {
|
|
848
848
|
childList: !0,
|
|
849
849
|
subtree: !0,
|
|
850
850
|
attributes: !0,
|
|
851
851
|
attributeFilter: ["style", "class"]
|
|
852
|
-
}),
|
|
852
|
+
}), E;
|
|
853
853
|
}
|
|
854
854
|
return null;
|
|
855
855
|
}, A = () => {
|
|
856
|
-
const
|
|
857
|
-
|
|
858
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
859
|
-
|
|
856
|
+
const M = document.querySelector(".hb-lib-list-page-form-box");
|
|
857
|
+
M && (m = new ResizeObserver(() => {
|
|
858
|
+
document.querySelectorAll(".ant-tooltip").forEach((I) => {
|
|
859
|
+
I.style.display = "none";
|
|
860
860
|
}), v();
|
|
861
|
-
}), m.observe(
|
|
862
|
-
},
|
|
863
|
-
const
|
|
864
|
-
|
|
861
|
+
}), m.observe(M));
|
|
862
|
+
}, G = () => {
|
|
863
|
+
const M = document.querySelector(".hb-lib-list-page-form-box");
|
|
864
|
+
M && (c = new MutationObserver(() => {
|
|
865
865
|
setTimeout(() => {
|
|
866
866
|
v();
|
|
867
867
|
}, 100);
|
|
868
|
-
}), c.observe(
|
|
868
|
+
}), c.observe(M, {
|
|
869
869
|
childList: !0,
|
|
870
870
|
subtree: !0,
|
|
871
871
|
attributes: !0,
|
|
872
872
|
attributeFilter: ["style", "class"]
|
|
873
873
|
}));
|
|
874
|
-
},
|
|
874
|
+
}, p = () => {
|
|
875
875
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
876
876
|
v();
|
|
877
877
|
}, 100);
|
|
878
|
-
},
|
|
879
|
-
window.addEventListener("resize",
|
|
880
|
-
A(),
|
|
878
|
+
}, g = () => {
|
|
879
|
+
window.addEventListener("resize", p), be(() => {
|
|
880
|
+
A(), G(), b = R();
|
|
881
881
|
});
|
|
882
|
-
},
|
|
883
|
-
window.removeEventListener("resize",
|
|
882
|
+
}, S = () => {
|
|
883
|
+
window.removeEventListener("resize", p), m && m.disconnect(), c && c.disconnect(), b && b.disconnect(), t && clearTimeout(t), u && clearTimeout(u);
|
|
884
884
|
};
|
|
885
885
|
return f && se(
|
|
886
886
|
() => f,
|
|
@@ -891,11 +891,11 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
891
891
|
},
|
|
892
892
|
{ deep: !0 }
|
|
893
893
|
), Me(() => {
|
|
894
|
-
v(),
|
|
894
|
+
v(), g();
|
|
895
895
|
}), ot(() => {
|
|
896
|
-
|
|
896
|
+
S();
|
|
897
897
|
}), {
|
|
898
|
-
tableHeight:
|
|
898
|
+
tableHeight: x,
|
|
899
899
|
calTableHeight: v
|
|
900
900
|
};
|
|
901
901
|
}, Kt = /* @__PURE__ */ ee({
|
|
@@ -908,31 +908,31 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
908
908
|
minHeight: {}
|
|
909
909
|
},
|
|
910
910
|
setup(e) {
|
|
911
|
-
const f = e, r = at("PageContainerRef"), { calTableHeight: i, tableHeight:
|
|
911
|
+
const f = e, r = at("PageContainerRef"), { calTableHeight: i, tableHeight: x } = qt({
|
|
912
912
|
offsetBottom: f.offsetBottom || 20,
|
|
913
913
|
// 底部预留空间
|
|
914
914
|
minHeight: f.minHeight || 300
|
|
915
915
|
// table最小高度 请勿随便修改!!
|
|
916
|
-
}), m =
|
|
916
|
+
}), m = K(() => x.value);
|
|
917
917
|
return nt("HB_LIST_PAGE_CONTAINER", {
|
|
918
918
|
PageContainerRef: r,
|
|
919
919
|
// 通过函数访问,
|
|
920
|
-
tableHeight:
|
|
920
|
+
tableHeight: x,
|
|
921
921
|
calTableHeight: i
|
|
922
|
-
}), (b, c) => (a(),
|
|
922
|
+
}), (b, c) => (a(), w("section", {
|
|
923
923
|
class: "hb-lib-list-page-container",
|
|
924
924
|
ref_key: "PageContainerRef",
|
|
925
925
|
ref: r
|
|
926
926
|
}, [
|
|
927
|
-
|
|
928
|
-
|
|
927
|
+
Y(b.$slots, "header"),
|
|
928
|
+
y("section", {
|
|
929
929
|
class: "list-page-box",
|
|
930
930
|
style: me({
|
|
931
931
|
"--hb-list-table-height": m.value - 20 + "px",
|
|
932
932
|
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value - 20 + "px"
|
|
933
933
|
})
|
|
934
934
|
}, [
|
|
935
|
-
|
|
935
|
+
Y(b.$slots, "default")
|
|
936
936
|
], 4)
|
|
937
937
|
], 512));
|
|
938
938
|
}
|
|
@@ -969,17 +969,17 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
969
969
|
}),
|
|
970
970
|
emits: /* @__PURE__ */ ke(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
971
971
|
setup(e, { emit: f }) {
|
|
972
|
-
const r = e, i = f,
|
|
972
|
+
const r = e, i = f, x = Qe(e, "value"), m = P(!1), b = P(""), c = P([]), t = P(), u = K(() => {
|
|
973
973
|
if (r.remoteSearch || !b.value) return r.options;
|
|
974
974
|
const l = b.value.toLowerCase();
|
|
975
975
|
return r.options.filter((o) => o.label.toLowerCase().includes(l) || o.description?.toLowerCase().includes(l));
|
|
976
|
-
}), v =
|
|
976
|
+
}), v = K(() => r.prefix ? `${r.prefix.length * 14 + 8}px` : "0px"), R = K(() => u.value.length === 0 ? !1 : u.value.every((l) => c.value.includes(l.value))), A = K(() => {
|
|
977
977
|
if (u.value.length === 0) return !1;
|
|
978
978
|
const l = u.value.filter((o) => c.value.includes(o.value)).length;
|
|
979
979
|
return l > 0 && l < u.value.length;
|
|
980
980
|
});
|
|
981
981
|
se(
|
|
982
|
-
() =>
|
|
982
|
+
() => x.value,
|
|
983
983
|
(l) => {
|
|
984
984
|
l ? c.value = Array.isArray(l) ? [...l] : [l] : c.value = [];
|
|
985
985
|
},
|
|
@@ -991,28 +991,28 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
991
991
|
},
|
|
992
992
|
{ immediate: !0 }
|
|
993
993
|
);
|
|
994
|
-
const
|
|
995
|
-
l && (m.value = l,
|
|
994
|
+
const G = (l) => {
|
|
995
|
+
l && (m.value = l, p.value = [...c.value], b.value = "", setTimeout(() => {
|
|
996
996
|
if (t.value) {
|
|
997
997
|
const o = t.value.input || t.value.$el?.querySelector("input");
|
|
998
998
|
o && o.focus();
|
|
999
999
|
}
|
|
1000
1000
|
}, 100));
|
|
1001
|
-
},
|
|
1002
|
-
c.value = [...
|
|
1003
|
-
},
|
|
1001
|
+
}, p = P([]), g = () => {
|
|
1002
|
+
c.value = [...p.value], m.value = !1, i("cancel");
|
|
1003
|
+
}, S = P([]), M = () => {
|
|
1004
1004
|
const l = r.multiple ? c.value : c.value[0] || "", o = r.options.filter((h) => c.value.includes(h.value));
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1005
|
+
S.value = o, console.log(l, o), p.value = [...c.value], x.value = l, i("update:value", l), i("change", l, o), i("confirm", l, o), m.value = !1;
|
|
1006
|
+
}, E = Ct((l) => {
|
|
1007
1007
|
const o = l !== void 0 ? l : b.value;
|
|
1008
1008
|
r.remoteSearch && (i("search", o), i("update:searchValue", o));
|
|
1009
|
-
}, 300),
|
|
1009
|
+
}, 300), I = (l) => {
|
|
1010
1010
|
if (r.multiple) {
|
|
1011
1011
|
const o = new Set(c.value);
|
|
1012
1012
|
o.has(l.value) ? o.delete(l.value) : o.add(l.value), c.value = Array.from(o);
|
|
1013
1013
|
} else
|
|
1014
|
-
c.value = [l.value],
|
|
1015
|
-
},
|
|
1014
|
+
c.value = [l.value], M();
|
|
1015
|
+
}, F = (l) => {
|
|
1016
1016
|
if (l.target.checked) {
|
|
1017
1017
|
const h = new Set(c.value);
|
|
1018
1018
|
u.value.forEach((k) => {
|
|
@@ -1024,14 +1024,14 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
1026
|
return (l, o) => {
|
|
1027
|
-
const h =
|
|
1028
|
-
return a(),
|
|
1027
|
+
const h = q("a-tag"), k = q("a-input"), d = q("a-checkbox"), j = q("a-radio"), N = q("a-button"), le = q("a-select");
|
|
1028
|
+
return a(), w("div", X({
|
|
1029
1029
|
class: "hb-lib-selector-wrapper",
|
|
1030
1030
|
style: { "--prefix-width": v.value }
|
|
1031
1031
|
}, l.$attrs), [
|
|
1032
|
-
|
|
1033
|
-
value:
|
|
1034
|
-
"onUpdate:value": o[5] || (o[5] = (Q) =>
|
|
1032
|
+
T(le, {
|
|
1033
|
+
value: x.value,
|
|
1034
|
+
"onUpdate:value": o[5] || (o[5] = (Q) => x.value = Q),
|
|
1035
1035
|
mode: e.multiple ? "multiple" : void 0,
|
|
1036
1036
|
placeholder: e.placeholder,
|
|
1037
1037
|
"show-search": !0,
|
|
@@ -1040,94 +1040,94 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1040
1040
|
allowClear: "",
|
|
1041
1041
|
maxTagCount: e.maxTagCount,
|
|
1042
1042
|
options: u.value,
|
|
1043
|
-
onDropdownVisibleChange:
|
|
1044
|
-
onSearch: n(
|
|
1043
|
+
onDropdownVisibleChange: G,
|
|
1044
|
+
onSearch: n(E),
|
|
1045
1045
|
"max-tag-text-length": e.tagTextLength,
|
|
1046
|
-
class:
|
|
1046
|
+
class: V({ "has-prefix": e.prefix }),
|
|
1047
1047
|
"data-prefix": e.prefix,
|
|
1048
1048
|
style: { width: "100%" }
|
|
1049
1049
|
}, {
|
|
1050
|
-
tagRender: s(({ value: Q, label:
|
|
1051
|
-
|
|
1050
|
+
tagRender: s(({ value: Q, label: W, closable: _, option: H }) => [
|
|
1051
|
+
T(h, {
|
|
1052
1052
|
class: "hb-lib-search-tag",
|
|
1053
|
-
onClick: o[0] || (o[0] = () =>
|
|
1053
|
+
onClick: o[0] || (o[0] = () => G(!0))
|
|
1054
1054
|
}, {
|
|
1055
1055
|
default: s(() => [
|
|
1056
|
-
|
|
1057
|
-
|
|
1056
|
+
y("span", Jt, L(W), 1),
|
|
1057
|
+
H?.description ? (a(), w("span", Gt, " (" + L(H.description) + ") ", 1)) : z("", !0)
|
|
1058
1058
|
]),
|
|
1059
1059
|
_: 2
|
|
1060
1060
|
}, 1024)
|
|
1061
1061
|
]),
|
|
1062
1062
|
dropdownRender: s(({ menuNode: Q }) => [
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1063
|
+
y("div", Qt, [
|
|
1064
|
+
y("div", Zt, [
|
|
1065
|
+
T(k, {
|
|
1066
1066
|
ref_key: "searchInputRef",
|
|
1067
1067
|
ref: t,
|
|
1068
1068
|
class: "hb-lib-selector-search-input",
|
|
1069
1069
|
value: b.value,
|
|
1070
|
-
"onUpdate:value": o[1] || (o[1] = (
|
|
1070
|
+
"onUpdate:value": o[1] || (o[1] = (W) => b.value = W),
|
|
1071
1071
|
placeholder: "请输入关键词搜索",
|
|
1072
1072
|
"allow-clear": "",
|
|
1073
|
-
onInput: o[2] || (o[2] = (
|
|
1073
|
+
onInput: o[2] || (o[2] = (W) => n(E)(W.target.value))
|
|
1074
1074
|
}, {
|
|
1075
1075
|
prefix: s(() => [
|
|
1076
|
-
|
|
1076
|
+
T(n(Ie))
|
|
1077
1077
|
]),
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
}, 8, ["value"])
|
|
1080
1080
|
]),
|
|
1081
|
-
|
|
1082
|
-
(a(!0),
|
|
1083
|
-
key:
|
|
1084
|
-
class:
|
|
1085
|
-
onClick: () =>
|
|
1081
|
+
y("div", Xt, [
|
|
1082
|
+
(a(!0), w(J, null, ae(u.value, (W) => (a(), w("div", {
|
|
1083
|
+
key: W.value,
|
|
1084
|
+
class: V(["hb-lib-selector-option", { selected: c.value.includes(W.value) }]),
|
|
1085
|
+
onClick: () => I(W)
|
|
1086
1086
|
}, [
|
|
1087
1087
|
e.multiple ? (a(), B(d, {
|
|
1088
1088
|
key: 0,
|
|
1089
|
-
checked: c.value.includes(
|
|
1090
|
-
onChange: () =>
|
|
1089
|
+
checked: c.value.includes(W.value),
|
|
1090
|
+
onChange: () => I(W),
|
|
1091
1091
|
onClick: o[3] || (o[3] = _e(() => {
|
|
1092
1092
|
}, ["stop"]))
|
|
1093
|
-
}, null, 8, ["checked", "onChange"])) : (a(), B(
|
|
1093
|
+
}, null, 8, ["checked", "onChange"])) : (a(), B(j, {
|
|
1094
1094
|
key: 1,
|
|
1095
|
-
checked: c.value.includes(
|
|
1096
|
-
onChange: () =>
|
|
1095
|
+
checked: c.value.includes(W.value),
|
|
1096
|
+
onChange: () => I(W),
|
|
1097
1097
|
onClick: o[4] || (o[4] = _e(() => {
|
|
1098
1098
|
}, ["stop"]))
|
|
1099
1099
|
}, null, 8, ["checked", "onChange"])),
|
|
1100
|
-
|
|
1101
|
-
|
|
1100
|
+
y("div", tl, [
|
|
1101
|
+
y("div", ll, L(W.label), 1)
|
|
1102
1102
|
])
|
|
1103
1103
|
], 10, el))), 128))
|
|
1104
1104
|
]),
|
|
1105
|
-
u.value.length === 0 ? (a(),
|
|
1106
|
-
e.multiple ? (a(),
|
|
1107
|
-
|
|
1105
|
+
u.value.length === 0 ? (a(), w("div", ol, L(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1106
|
+
e.multiple ? (a(), w("div", al, [
|
|
1107
|
+
T(d, {
|
|
1108
1108
|
checked: R.value,
|
|
1109
1109
|
indeterminate: A.value,
|
|
1110
|
-
onChange:
|
|
1110
|
+
onChange: F
|
|
1111
1111
|
}, {
|
|
1112
1112
|
default: s(() => [
|
|
1113
1113
|
O(L(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1114
1114
|
]),
|
|
1115
1115
|
_: 1
|
|
1116
1116
|
}, 8, ["checked", "indeterminate"]),
|
|
1117
|
-
|
|
1118
|
-
|
|
1117
|
+
y("div", nl, [
|
|
1118
|
+
T(N, {
|
|
1119
1119
|
size: "small",
|
|
1120
|
-
onClick:
|
|
1120
|
+
onClick: g
|
|
1121
1121
|
}, {
|
|
1122
1122
|
default: s(() => [
|
|
1123
1123
|
O(L(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1124
1124
|
]),
|
|
1125
1125
|
_: 1
|
|
1126
1126
|
}),
|
|
1127
|
-
|
|
1127
|
+
T(N, {
|
|
1128
1128
|
type: "primary",
|
|
1129
1129
|
size: "small",
|
|
1130
|
-
onClick:
|
|
1130
|
+
onClick: M
|
|
1131
1131
|
}, {
|
|
1132
1132
|
default: s(() => [
|
|
1133
1133
|
O(L(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1135,12 +1135,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1135
1135
|
_: 1
|
|
1136
1136
|
})
|
|
1137
1137
|
])
|
|
1138
|
-
])) : (a(),
|
|
1139
|
-
o[6] || (o[6] =
|
|
1140
|
-
|
|
1141
|
-
|
|
1138
|
+
])) : (a(), w("div", sl, [
|
|
1139
|
+
o[6] || (o[6] = y("div", null, null, -1)),
|
|
1140
|
+
y("div", il, [
|
|
1141
|
+
T(N, {
|
|
1142
1142
|
size: "small",
|
|
1143
|
-
onClick:
|
|
1143
|
+
onClick: g
|
|
1144
1144
|
}, {
|
|
1145
1145
|
default: s(() => [
|
|
1146
1146
|
O(L(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
@@ -1170,30 +1170,30 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1170
1170
|
},
|
|
1171
1171
|
emits: ["handleConfirm", "handleCancel"],
|
|
1172
1172
|
setup(e, { expose: f, emit: r }) {
|
|
1173
|
-
const i = e,
|
|
1173
|
+
const i = e, x = r, m = P(!1), b = P(""), c = P(), t = P(), u = P([]), v = P([]), R = P(), A = Je({
|
|
1174
1174
|
searchText: "",
|
|
1175
1175
|
searchedColumn: ""
|
|
1176
|
-
}),
|
|
1176
|
+
}), G = K(() => i.tableData.map((h) => (h.id = h.id || Math.random(), h))), p = K(() => i.tableColumn.map((h) => (h.customFilterDropdown && (h.onFilter = (k, d) => d[h.dataIndex].toString().toLowerCase().includes(k.toLowerCase()), h.onFilterDropdownVisibleChange = (k) => {
|
|
1177
1177
|
k && setTimeout(() => {
|
|
1178
1178
|
c.value?.focus();
|
|
1179
1179
|
}, 100);
|
|
1180
|
-
}), { ...h }))),
|
|
1180
|
+
}), { ...h }))), g = () => {
|
|
1181
1181
|
let h = "";
|
|
1182
1182
|
v.value.forEach((k) => {
|
|
1183
1183
|
h = h + k[i.labelKey] + ",";
|
|
1184
|
-
}), b.value = h.substring(0, h.length - 1), m.value = !1,
|
|
1185
|
-
},
|
|
1184
|
+
}), b.value = h.substring(0, h.length - 1), m.value = !1, x("handleConfirm", v.value);
|
|
1185
|
+
}, S = () => {
|
|
1186
1186
|
m.value = !1;
|
|
1187
|
-
},
|
|
1187
|
+
}, M = () => {
|
|
1188
1188
|
m.value = !0, be(() => {
|
|
1189
1189
|
const h = R.value?.$el?.querySelector(".ant-table-body");
|
|
1190
1190
|
h && (h.scrollTop = 0);
|
|
1191
1191
|
});
|
|
1192
|
-
},
|
|
1192
|
+
}, E = () => {
|
|
1193
1193
|
u.value = [], v.value = [];
|
|
1194
|
-
},
|
|
1195
|
-
b.value = "",
|
|
1196
|
-
},
|
|
1194
|
+
}, I = () => {
|
|
1195
|
+
b.value = "", E();
|
|
1196
|
+
}, F = (h, k, d) => {
|
|
1197
1197
|
k(), A.searchText = h[0], A.searchedColumn = d;
|
|
1198
1198
|
}, l = (h, k) => {
|
|
1199
1199
|
h({ confirm: !0 }), A.searchText = "", k();
|
|
@@ -1201,27 +1201,27 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1201
1201
|
u.value = h, v.value = k;
|
|
1202
1202
|
};
|
|
1203
1203
|
return f({
|
|
1204
|
-
resetInputVal:
|
|
1204
|
+
resetInputVal: I
|
|
1205
1205
|
}), (h, k) => {
|
|
1206
|
-
const d =
|
|
1207
|
-
return a(),
|
|
1206
|
+
const d = q("a-input"), j = q("a-button"), N = q("a-table"), le = q("a-modal");
|
|
1207
|
+
return a(), w("div", {
|
|
1208
1208
|
class: "hb-lib-multipleSelectModal-box",
|
|
1209
1209
|
ref_key: "hbMultipSelectModalRef",
|
|
1210
1210
|
ref: t
|
|
1211
1211
|
}, [
|
|
1212
|
-
|
|
1212
|
+
T(d, {
|
|
1213
1213
|
readonly: "",
|
|
1214
|
-
onClick:
|
|
1214
|
+
onClick: M,
|
|
1215
1215
|
value: b.value,
|
|
1216
1216
|
"onUpdate:value": k[0] || (k[0] = (Q) => b.value = Q),
|
|
1217
1217
|
placeholder: h.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1218
1218
|
}, {
|
|
1219
1219
|
addonAfter: s(() => [
|
|
1220
|
-
|
|
1220
|
+
T(n(pt), { onClick: M })
|
|
1221
1221
|
]),
|
|
1222
1222
|
_: 1
|
|
1223
1223
|
}, 8, ["value", "placeholder"]),
|
|
1224
|
-
|
|
1224
|
+
T(le, {
|
|
1225
1225
|
visible: m.value,
|
|
1226
1226
|
"onUpdate:visible": k[1] || (k[1] = (Q) => m.value = Q),
|
|
1227
1227
|
title: e.modelTitle,
|
|
@@ -1229,21 +1229,21 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1229
1229
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1230
1230
|
}, {
|
|
1231
1231
|
footer: s(() => [
|
|
1232
|
-
|
|
1232
|
+
T(j, { onClick: E }, {
|
|
1233
1233
|
default: s(() => [
|
|
1234
1234
|
O(L(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1235
1235
|
]),
|
|
1236
1236
|
_: 1
|
|
1237
1237
|
}),
|
|
1238
|
-
|
|
1238
|
+
T(j, { onClick: S }, {
|
|
1239
1239
|
default: s(() => [
|
|
1240
1240
|
O(L(h.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1241
1241
|
]),
|
|
1242
1242
|
_: 1
|
|
1243
1243
|
}),
|
|
1244
|
-
|
|
1244
|
+
T(j, {
|
|
1245
1245
|
type: "primary",
|
|
1246
|
-
onClick:
|
|
1246
|
+
onClick: g
|
|
1247
1247
|
}, {
|
|
1248
1248
|
default: s(() => [
|
|
1249
1249
|
O(L(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1252,41 +1252,41 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1252
1252
|
})
|
|
1253
1253
|
]),
|
|
1254
1254
|
default: s(() => [
|
|
1255
|
-
|
|
1255
|
+
T(N, {
|
|
1256
1256
|
ref_key: "tableRef",
|
|
1257
1257
|
ref: R,
|
|
1258
|
-
columns:
|
|
1259
|
-
dataSource:
|
|
1258
|
+
columns: p.value,
|
|
1259
|
+
dataSource: G.value,
|
|
1260
1260
|
rowSelection: { selectedRowKeys: u.value, onChange: o },
|
|
1261
1261
|
rowKey: (Q) => Q[e.tableKey],
|
|
1262
1262
|
scroll: { y: e.tableHeight }
|
|
1263
1263
|
}, {
|
|
1264
|
-
customFilterDropdown: s(({ setSelectedKeys: Q, selectedKeys:
|
|
1265
|
-
|
|
1266
|
-
|
|
1264
|
+
customFilterDropdown: s(({ setSelectedKeys: Q, selectedKeys: W, confirm: _, clearFilters: H, column: C }) => [
|
|
1265
|
+
y("div", ul, [
|
|
1266
|
+
T(d, {
|
|
1267
1267
|
ref_key: "searchInput",
|
|
1268
1268
|
ref: c,
|
|
1269
1269
|
placeholder: `请输入${C.title}`,
|
|
1270
|
-
value:
|
|
1270
|
+
value: W[0],
|
|
1271
1271
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1272
|
-
onChange: (
|
|
1273
|
-
onPressEnter: (
|
|
1272
|
+
onChange: (U) => Q(U.target.value ? [U.target.value] : []),
|
|
1273
|
+
onPressEnter: (U) => F(W, _, C.dataIndex)
|
|
1274
1274
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1275
|
-
|
|
1276
|
-
|
|
1275
|
+
y("section", bl, [
|
|
1276
|
+
T(j, {
|
|
1277
1277
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1278
1278
|
type: "ghost",
|
|
1279
|
-
onClick: (
|
|
1279
|
+
onClick: (U) => l(H, _)
|
|
1280
1280
|
}, {
|
|
1281
1281
|
default: s(() => [
|
|
1282
1282
|
O(L(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1283
1283
|
]),
|
|
1284
1284
|
_: 1
|
|
1285
1285
|
}, 8, ["onClick"]),
|
|
1286
|
-
|
|
1286
|
+
T(j, {
|
|
1287
1287
|
type: "primary",
|
|
1288
1288
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1289
|
-
onClick: (
|
|
1289
|
+
onClick: (U) => F(W, _, C.dataIndex)
|
|
1290
1290
|
}, {
|
|
1291
1291
|
default: s(() => [
|
|
1292
1292
|
O(L(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1297,17 +1297,17 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1297
1297
|
])
|
|
1298
1298
|
]),
|
|
1299
1299
|
customFilterIcon: s(({ filtered: Q }) => [
|
|
1300
|
-
|
|
1300
|
+
T(n(Ie), {
|
|
1301
1301
|
style: me({ color: Q ? "#108ee9" : void 0 })
|
|
1302
1302
|
}, null, 8, ["style"])
|
|
1303
1303
|
]),
|
|
1304
|
-
bodyCell: s(({ text: Q, column:
|
|
1305
|
-
A.searchText && A.searchedColumn ===
|
|
1306
|
-
(a(!0),
|
|
1307
|
-
_.toLowerCase() === A.searchText.toLowerCase() ? (a(),
|
|
1308
|
-
key:
|
|
1304
|
+
bodyCell: s(({ text: Q, column: W }) => [
|
|
1305
|
+
A.searchText && A.searchedColumn === W.dataIndex ? (a(), w("span", hl, [
|
|
1306
|
+
(a(!0), w(J, null, ae(Q.toString().split(new RegExp(`(?<=${A.searchText})|(?=${A.searchText})`, "i")), (_, H) => (a(), w(J, null, [
|
|
1307
|
+
_.toLowerCase() === A.searchText.toLowerCase() ? (a(), w("mark", {
|
|
1308
|
+
key: H,
|
|
1309
1309
|
class: "highlight"
|
|
1310
|
-
}, L(_), 1)) : (a(),
|
|
1310
|
+
}, L(_), 1)) : (a(), w(J, { key: 1 }, [
|
|
1311
1311
|
O(L(_), 1)
|
|
1312
1312
|
], 64))
|
|
1313
1313
|
], 64))), 256))
|
|
@@ -1336,22 +1336,22 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1336
1336
|
buttonDisplaysQuantity: {}
|
|
1337
1337
|
},
|
|
1338
1338
|
setup(e, { expose: f }) {
|
|
1339
|
-
const r = e, { t: i } = ce(),
|
|
1340
|
-
|
|
1341
|
-
}, R = (
|
|
1342
|
-
b.value =
|
|
1339
|
+
const r = e, { t: i } = ce(), x = P(!1), m = P(!1), b = P(null), c = K(() => r.actions.filter((g) => g.condition !== void 0 ? g.condition : !0)), t = K(() => c.value.slice(0, r.buttonDisplaysQuantity)), u = K(() => c.value.slice(r.buttonDisplaysQuantity)), v = (g) => {
|
|
1340
|
+
g.handler && g.handler(r.record);
|
|
1341
|
+
}, R = (g) => {
|
|
1342
|
+
b.value = g, x.value = !0;
|
|
1343
1343
|
}, A = () => {
|
|
1344
1344
|
if (b.value) {
|
|
1345
1345
|
m.value = !0;
|
|
1346
1346
|
try {
|
|
1347
|
-
v(b.value), m.value = !1,
|
|
1347
|
+
v(b.value), m.value = !1, x.value = !1;
|
|
1348
1348
|
} catch {
|
|
1349
1349
|
m.value = !1;
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
},
|
|
1352
|
+
}, G = () => {
|
|
1353
|
+
x.value = !1, b.value = null;
|
|
1354
|
+
}, p = K(() => b.value ? {
|
|
1355
1355
|
title: b.value.confirmTitle,
|
|
1356
1356
|
content: b.value.confirmContent || b.value.confirmTitle
|
|
1357
1357
|
} : {
|
|
@@ -1365,45 +1365,45 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1365
1365
|
APopconfirm: Ce,
|
|
1366
1366
|
AModal: Se,
|
|
1367
1367
|
DownOutlined: De
|
|
1368
|
-
}), (
|
|
1369
|
-
const
|
|
1370
|
-
return a(),
|
|
1371
|
-
(a(!0),
|
|
1372
|
-
|
|
1373
|
-
|
|
1368
|
+
}), (g, S) => {
|
|
1369
|
+
const M = q("a-divider"), E = st("has");
|
|
1370
|
+
return a(), w("div", ml, [
|
|
1371
|
+
(a(!0), w(J, null, ae(t.value, (I, F) => (a(), w(J, { key: F }, [
|
|
1372
|
+
I.needConfirm ? (a(), w(J, { key: 0 }, [
|
|
1373
|
+
I.confirmType === "modal" ? re((a(), w("a", {
|
|
1374
1374
|
key: 0,
|
|
1375
1375
|
href: "javascript:;",
|
|
1376
|
-
onClick: (l) => R(
|
|
1376
|
+
onClick: (l) => R(I),
|
|
1377
1377
|
class: "hb-lib-table-main-action"
|
|
1378
1378
|
}, [
|
|
1379
|
-
O(L(
|
|
1379
|
+
O(L(I.label), 1)
|
|
1380
1380
|
], 8, vl)), [
|
|
1381
|
-
[
|
|
1381
|
+
[E, I.permissionsTag || null]
|
|
1382
1382
|
]) : (a(), B(n(Ce), {
|
|
1383
1383
|
key: 1,
|
|
1384
|
-
title:
|
|
1385
|
-
onConfirm: (l) => v(
|
|
1384
|
+
title: I.confirmTitle,
|
|
1385
|
+
onConfirm: (l) => v(I)
|
|
1386
1386
|
}, {
|
|
1387
1387
|
default: s(() => [
|
|
1388
|
-
re((a(),
|
|
1389
|
-
O(L(
|
|
1388
|
+
re((a(), w("a", gl, [
|
|
1389
|
+
O(L(I.label), 1)
|
|
1390
1390
|
])), [
|
|
1391
|
-
[
|
|
1391
|
+
[E, I.permissionsTag || null]
|
|
1392
1392
|
])
|
|
1393
1393
|
]),
|
|
1394
1394
|
_: 2
|
|
1395
1395
|
}, 1032, ["title", "onConfirm"]))
|
|
1396
|
-
], 64)) : (a(),
|
|
1397
|
-
re((a(),
|
|
1396
|
+
], 64)) : (a(), w(J, { key: 1 }, [
|
|
1397
|
+
re((a(), w("a", {
|
|
1398
1398
|
href: "javascript:;",
|
|
1399
|
-
onClick: (l) => v(
|
|
1399
|
+
onClick: (l) => v(I),
|
|
1400
1400
|
class: "hb-lib-table-main-action"
|
|
1401
1401
|
}, [
|
|
1402
|
-
O(L(
|
|
1402
|
+
O(L(I.label), 1)
|
|
1403
1403
|
], 8, yl)), [
|
|
1404
|
-
[
|
|
1404
|
+
[E, I.permissionsTag || null]
|
|
1405
1405
|
]),
|
|
1406
|
-
u.value && u.value.length > 0 ||
|
|
1406
|
+
u.value && u.value.length > 0 || F !== t.value.length - 1 ? (a(), B(M, {
|
|
1407
1407
|
key: 0,
|
|
1408
1408
|
type: "vertical"
|
|
1409
1409
|
})) : z("", !0)
|
|
@@ -1411,43 +1411,43 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1411
1411
|
], 64))), 128)),
|
|
1412
1412
|
u.value && u.value.length > 0 ? (a(), B(n(qe), { key: 0 }, {
|
|
1413
1413
|
overlay: s(() => [
|
|
1414
|
-
|
|
1414
|
+
T(n(je), null, {
|
|
1415
1415
|
default: s(() => [
|
|
1416
|
-
(a(!0),
|
|
1417
|
-
key:
|
|
1416
|
+
(a(!0), w(J, null, ae(u.value, (I) => (a(), B(n(Ye), {
|
|
1417
|
+
key: I.key
|
|
1418
1418
|
}, {
|
|
1419
1419
|
default: s(() => [
|
|
1420
|
-
|
|
1421
|
-
|
|
1420
|
+
I.needConfirm ? (a(), w(J, { key: 0 }, [
|
|
1421
|
+
I.confirmType === "modal" ? re((a(), w("a", {
|
|
1422
1422
|
key: 0,
|
|
1423
1423
|
href: "javascript:;",
|
|
1424
|
-
onClick: (
|
|
1424
|
+
onClick: (F) => R(I)
|
|
1425
1425
|
}, [
|
|
1426
|
-
O(L(
|
|
1426
|
+
O(L(I.label), 1)
|
|
1427
1427
|
], 8, Ll)), [
|
|
1428
|
-
[
|
|
1428
|
+
[E, I.permissionsTag || null]
|
|
1429
1429
|
]) : (a(), B(n(Ce), {
|
|
1430
1430
|
key: 1,
|
|
1431
|
-
title:
|
|
1432
|
-
onConfirm: (
|
|
1431
|
+
title: I.confirmTitle,
|
|
1432
|
+
onConfirm: (F) => v(I)
|
|
1433
1433
|
}, {
|
|
1434
1434
|
default: s(() => [
|
|
1435
|
-
re((a(),
|
|
1436
|
-
O(L(
|
|
1435
|
+
re((a(), w("a", kl, [
|
|
1436
|
+
O(L(I.label), 1)
|
|
1437
1437
|
])), [
|
|
1438
|
-
[
|
|
1438
|
+
[E, I.permissionsTag || null]
|
|
1439
1439
|
])
|
|
1440
1440
|
]),
|
|
1441
1441
|
_: 2
|
|
1442
1442
|
}, 1032, ["title", "onConfirm"]))
|
|
1443
|
-
], 64)) : re((a(),
|
|
1443
|
+
], 64)) : re((a(), w("a", {
|
|
1444
1444
|
key: 1,
|
|
1445
1445
|
href: "javascript:;",
|
|
1446
|
-
onClick: (
|
|
1446
|
+
onClick: (F) => v(I)
|
|
1447
1447
|
}, [
|
|
1448
|
-
O(L(
|
|
1448
|
+
O(L(I.label), 1)
|
|
1449
1449
|
], 8, _l)), [
|
|
1450
|
-
[
|
|
1450
|
+
[E, I.permissionsTag || null]
|
|
1451
1451
|
])
|
|
1452
1452
|
]),
|
|
1453
1453
|
_: 2
|
|
@@ -1457,31 +1457,31 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1457
1457
|
})
|
|
1458
1458
|
]),
|
|
1459
1459
|
default: s(() => [
|
|
1460
|
-
|
|
1461
|
-
O(L(
|
|
1462
|
-
|
|
1460
|
+
y("a", Cl, [
|
|
1461
|
+
O(L(g.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1462
|
+
T(n(De), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1463
1463
|
])
|
|
1464
1464
|
]),
|
|
1465
1465
|
_: 1
|
|
1466
1466
|
})) : z("", !0),
|
|
1467
|
-
|
|
1468
|
-
visible:
|
|
1469
|
-
title:
|
|
1467
|
+
T(n(Se), {
|
|
1468
|
+
visible: x.value,
|
|
1469
|
+
title: p.value.title,
|
|
1470
1470
|
"confirm-loading": m.value,
|
|
1471
1471
|
onOk: A,
|
|
1472
|
-
onCancel:
|
|
1472
|
+
onCancel: G
|
|
1473
1473
|
}, {
|
|
1474
1474
|
default: s(() => [
|
|
1475
|
-
|
|
1475
|
+
y("p", Sl, L(p.value.content), 1)
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1479
1479
|
]);
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
}), Fl = /* @__PURE__ */ oe(wl, [["__scopeId", "data-v-ecac600b"]]), xl = te(Fl), Tl = (e) => ({ tableWidth:
|
|
1482
|
+
}), Fl = /* @__PURE__ */ oe(wl, [["__scopeId", "data-v-ecac600b"]]), xl = te(Fl), Tl = (e) => ({ tableWidth: K(() => {
|
|
1483
1483
|
const r = Array.isArray(e) ? e : e.value;
|
|
1484
|
-
return !r || r.length === 0 ? 0 : r.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i,
|
|
1484
|
+
return !r || r.length === 0 ? 0 : r.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i, x) => i + x, 0);
|
|
1485
1485
|
}) }), $l = {
|
|
1486
1486
|
key: 0,
|
|
1487
1487
|
class: "hb-lib-list-table-act"
|
|
@@ -1495,7 +1495,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1495
1495
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1496
1496
|
},
|
|
1497
1497
|
setup(e) {
|
|
1498
|
-
const { t: f } = ce(), r = e, i = P([]),
|
|
1498
|
+
const { t: f } = ce(), r = e, i = P([]), x = $e("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Tl(K(() => r.columns));
|
|
1499
1499
|
se(
|
|
1500
1500
|
() => r.columns,
|
|
1501
1501
|
(t) => {
|
|
@@ -1523,27 +1523,27 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}, c = (t, u = "YYYY-MM-DD HH:mm:ss") => t ? He(t).format(u) : "";
|
|
1525
1525
|
return (t, u) => {
|
|
1526
|
-
const v =
|
|
1527
|
-
return a(),
|
|
1528
|
-
class:
|
|
1526
|
+
const v = q("a-empty"), R = q("a-tooltip"), A = q("HbLibCopy"), G = q("a-table");
|
|
1527
|
+
return a(), w("div", {
|
|
1528
|
+
class: V(["hb-lib-list-table", { "nowrap-table": r.rowHeight }]),
|
|
1529
1529
|
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1530
1530
|
}, [
|
|
1531
|
-
t.$slots.tableActLeft ? (a(),
|
|
1532
|
-
|
|
1533
|
-
|
|
1531
|
+
t.$slots.tableActLeft ? (a(), w("section", $l, [
|
|
1532
|
+
Y(t.$slots, "tableActLeft", {}, void 0, !0),
|
|
1533
|
+
Y(t.$slots, "tableActRight", {}, void 0, !0)
|
|
1534
1534
|
])) : z("", !0),
|
|
1535
|
-
|
|
1535
|
+
T(G, X(t.$attrs, {
|
|
1536
1536
|
bordered: "",
|
|
1537
1537
|
columns: i.value,
|
|
1538
1538
|
onResizeColumn: b,
|
|
1539
1539
|
scroll: {
|
|
1540
1540
|
x: n(m),
|
|
1541
|
-
y: n(
|
|
1541
|
+
y: n(x).tableHeight
|
|
1542
1542
|
}
|
|
1543
1543
|
}), Ge({
|
|
1544
1544
|
emptyText: s(() => [
|
|
1545
|
-
|
|
1546
|
-
|
|
1545
|
+
y("div", Ml, [
|
|
1546
|
+
T(v, {
|
|
1547
1547
|
description: n(f)("hbLibComp.hbListTable.noData")
|
|
1548
1548
|
}, null, 8, ["description"])
|
|
1549
1549
|
])
|
|
@@ -1552,137 +1552,137 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1552
1552
|
}, [
|
|
1553
1553
|
t.$slots.headerCell ? {
|
|
1554
1554
|
name: "headerCell",
|
|
1555
|
-
fn: s(({ column:
|
|
1556
|
-
|
|
1557
|
-
O(L(
|
|
1555
|
+
fn: s(({ column: p }) => [
|
|
1556
|
+
Y(t.$slots, "headerCell", { column: p }, () => [
|
|
1557
|
+
O(L(p.title), 1)
|
|
1558
1558
|
], !0)
|
|
1559
1559
|
]),
|
|
1560
1560
|
key: "0"
|
|
1561
1561
|
} : void 0,
|
|
1562
1562
|
t.$slots.bodyCell ? {
|
|
1563
1563
|
name: "bodyCell",
|
|
1564
|
-
fn: s(({ column:
|
|
1565
|
-
|
|
1566
|
-
column:
|
|
1567
|
-
record:
|
|
1568
|
-
index:
|
|
1569
|
-
text:
|
|
1564
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1565
|
+
Y(t.$slots, "bodyCell", {
|
|
1566
|
+
column: p,
|
|
1567
|
+
record: g,
|
|
1568
|
+
index: S,
|
|
1569
|
+
text: M
|
|
1570
1570
|
}, void 0, !0),
|
|
1571
|
-
|
|
1571
|
+
p && p.needTooltip ? (a(), B(R, {
|
|
1572
1572
|
key: 0,
|
|
1573
1573
|
placement: e.tooltipPlacement
|
|
1574
1574
|
}, {
|
|
1575
1575
|
title: s(() => [
|
|
1576
|
-
O(L(p
|
|
1576
|
+
O(L(g[p.dataIndex]), 1)
|
|
1577
1577
|
]),
|
|
1578
1578
|
default: s(() => [
|
|
1579
|
-
O(" " + L(p
|
|
1579
|
+
O(" " + L(g[p.dataIndex]), 1)
|
|
1580
1580
|
]),
|
|
1581
1581
|
_: 2
|
|
1582
1582
|
}, 1032, ["placement"])) : z("", !0),
|
|
1583
|
-
|
|
1583
|
+
p && p.needCopy ? (a(), B(A, {
|
|
1584
1584
|
key: 1,
|
|
1585
|
-
"cp-text": p
|
|
1585
|
+
"cp-text": g[p.dataIndex],
|
|
1586
1586
|
style: { position: "relative" }
|
|
1587
1587
|
}, null, 8, ["cp-text"])) : z("", !0),
|
|
1588
|
-
|
|
1589
|
-
O(L(c(p
|
|
1588
|
+
p && p.needFormat ? (a(), w(J, { key: 2 }, [
|
|
1589
|
+
O(L(c(g[p.dataIndex], p.format)), 1)
|
|
1590
1590
|
], 64)) : z("", !0)
|
|
1591
1591
|
]),
|
|
1592
1592
|
key: "1"
|
|
1593
1593
|
} : void 0,
|
|
1594
1594
|
t.$slots.expandedRowRender ? {
|
|
1595
1595
|
name: "expandedRowRender",
|
|
1596
|
-
fn: s(({ column:
|
|
1597
|
-
|
|
1598
|
-
record:
|
|
1599
|
-
column:
|
|
1600
|
-
index:
|
|
1601
|
-
text:
|
|
1596
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1597
|
+
Y(t.$slots, "expandedRowRender", {
|
|
1598
|
+
record: g,
|
|
1599
|
+
column: p,
|
|
1600
|
+
index: S,
|
|
1601
|
+
text: M
|
|
1602
1602
|
}, void 0, !0)
|
|
1603
1603
|
]),
|
|
1604
1604
|
key: "2"
|
|
1605
1605
|
} : void 0,
|
|
1606
1606
|
t.$slots.customFilterDropdown ? {
|
|
1607
1607
|
name: "customFilterDropdown",
|
|
1608
|
-
fn: s(({ column:
|
|
1609
|
-
|
|
1610
|
-
record:
|
|
1611
|
-
column:
|
|
1612
|
-
index:
|
|
1613
|
-
text:
|
|
1608
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1609
|
+
Y(t.$slots, "customFilterDropdown", {
|
|
1610
|
+
record: g,
|
|
1611
|
+
column: p,
|
|
1612
|
+
index: S,
|
|
1613
|
+
text: M
|
|
1614
1614
|
}, void 0, !0)
|
|
1615
1615
|
]),
|
|
1616
1616
|
key: "3"
|
|
1617
1617
|
} : void 0,
|
|
1618
1618
|
t.$slots.customFilterIcon ? {
|
|
1619
1619
|
name: "customFilterIcon",
|
|
1620
|
-
fn: s(({ column:
|
|
1621
|
-
|
|
1622
|
-
record:
|
|
1623
|
-
column:
|
|
1624
|
-
index:
|
|
1625
|
-
text:
|
|
1620
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1621
|
+
Y(t.$slots, "customFilterIcon", {
|
|
1622
|
+
record: g,
|
|
1623
|
+
column: p,
|
|
1624
|
+
index: S,
|
|
1625
|
+
text: M
|
|
1626
1626
|
}, void 0, !0)
|
|
1627
1627
|
]),
|
|
1628
1628
|
key: "4"
|
|
1629
1629
|
} : void 0,
|
|
1630
1630
|
t.$slots.expandIcon ? {
|
|
1631
1631
|
name: "expandIcon",
|
|
1632
|
-
fn: s(({ column:
|
|
1633
|
-
|
|
1634
|
-
record:
|
|
1635
|
-
column:
|
|
1636
|
-
index:
|
|
1637
|
-
text:
|
|
1632
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1633
|
+
Y(t.$slots, "expandIcon", {
|
|
1634
|
+
record: g,
|
|
1635
|
+
column: p,
|
|
1636
|
+
index: S,
|
|
1637
|
+
text: M
|
|
1638
1638
|
}, void 0, !0)
|
|
1639
1639
|
]),
|
|
1640
1640
|
key: "5"
|
|
1641
1641
|
} : void 0,
|
|
1642
1642
|
t.$slots.footer ? {
|
|
1643
1643
|
name: "footer",
|
|
1644
|
-
fn: s(({ column:
|
|
1645
|
-
|
|
1646
|
-
record:
|
|
1647
|
-
column:
|
|
1648
|
-
index:
|
|
1649
|
-
text:
|
|
1644
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1645
|
+
Y(t.$slots, "footer", {
|
|
1646
|
+
record: g,
|
|
1647
|
+
column: p,
|
|
1648
|
+
index: S,
|
|
1649
|
+
text: M
|
|
1650
1650
|
}, void 0, !0)
|
|
1651
1651
|
]),
|
|
1652
1652
|
key: "6"
|
|
1653
1653
|
} : void 0,
|
|
1654
1654
|
t.$slots.headerCell ? {
|
|
1655
1655
|
name: "headerCell",
|
|
1656
|
-
fn: s(({ column:
|
|
1657
|
-
|
|
1658
|
-
record:
|
|
1659
|
-
column:
|
|
1660
|
-
index:
|
|
1661
|
-
text:
|
|
1656
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1657
|
+
Y(t.$slots, "headerCell", {
|
|
1658
|
+
record: g,
|
|
1659
|
+
column: p,
|
|
1660
|
+
index: S,
|
|
1661
|
+
text: M
|
|
1662
1662
|
}, void 0, !0)
|
|
1663
1663
|
]),
|
|
1664
1664
|
key: "7"
|
|
1665
1665
|
} : void 0,
|
|
1666
1666
|
t.$slots.summary ? {
|
|
1667
1667
|
name: "summary",
|
|
1668
|
-
fn: s(({ column:
|
|
1669
|
-
|
|
1670
|
-
record:
|
|
1671
|
-
column:
|
|
1672
|
-
index:
|
|
1673
|
-
text:
|
|
1668
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1669
|
+
Y(t.$slots, "summary", {
|
|
1670
|
+
record: g,
|
|
1671
|
+
column: p,
|
|
1672
|
+
index: S,
|
|
1673
|
+
text: M
|
|
1674
1674
|
}, void 0, !0)
|
|
1675
1675
|
]),
|
|
1676
1676
|
key: "8"
|
|
1677
1677
|
} : void 0,
|
|
1678
1678
|
t.$slots.title ? {
|
|
1679
1679
|
name: "title",
|
|
1680
|
-
fn: s(({ column:
|
|
1681
|
-
|
|
1682
|
-
record:
|
|
1683
|
-
column:
|
|
1684
|
-
index:
|
|
1685
|
-
text:
|
|
1680
|
+
fn: s(({ column: p, record: g, index: S, text: M }) => [
|
|
1681
|
+
Y(t.$slots, "title", {
|
|
1682
|
+
record: g,
|
|
1683
|
+
column: p,
|
|
1684
|
+
index: S,
|
|
1685
|
+
text: M
|
|
1686
1686
|
}, void 0, !0)
|
|
1687
1687
|
]),
|
|
1688
1688
|
key: "9"
|
|
@@ -1733,38 +1733,38 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1733
1733
|
},
|
|
1734
1734
|
emits: ["on-get-columns"],
|
|
1735
1735
|
setup(e, { emit: f }) {
|
|
1736
|
-
const r = f, { t: i } = ce(),
|
|
1736
|
+
const r = f, { t: i } = ce(), x = e, m = P([]), b = K(() => t.value.filter((l) => l.checked));
|
|
1737
1737
|
P([]);
|
|
1738
|
-
const c = P(!1), t = P([]), u = P(null), v =
|
|
1738
|
+
const c = P(!1), t = P([]), u = P(null), v = K(() => b.value.length > 0 && b.value.length === m.value.length), R = K(() => b.value.length > 0 && b.value.length < m.value.length), A = (l) => {
|
|
1739
1739
|
u.value = l.oldIndex;
|
|
1740
|
-
},
|
|
1740
|
+
}, G = (l) => {
|
|
1741
1741
|
const o = l.newIndex;
|
|
1742
1742
|
if (m.value.some((k) => k.fixed === "left" || k.fixed === "right" || k.fixed === !0)) {
|
|
1743
|
-
const k = m.value.filter((
|
|
1743
|
+
const k = m.value.filter((j) => j.fixed === "left").length, d = m.value.length - m.value.filter((j) => j.fixed === "right").length;
|
|
1744
1744
|
if ((k > 0 && o < k || d < m.value.length && o >= d) && (Te.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")), u.value !== null)) {
|
|
1745
|
-
const
|
|
1746
|
-
t.value.splice(u.value, 0,
|
|
1745
|
+
const j = t.value.splice(o, 1)[0];
|
|
1746
|
+
t.value.splice(u.value, 0, j);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
u.value = null;
|
|
1750
|
-
},
|
|
1750
|
+
}, p = (l) => {
|
|
1751
1751
|
l.target.checked ? t.value.forEach((h) => h.checked = !0) : t.value.forEach((h) => h.checked = !1);
|
|
1752
|
-
},
|
|
1752
|
+
}, g = (l, o) => {
|
|
1753
1753
|
o ? l.checked = !0 : l.checked = !1;
|
|
1754
|
-
},
|
|
1754
|
+
}, S = () => {
|
|
1755
1755
|
m.value = [...t.value], r("on-get-columns", m.value), c.value = !1;
|
|
1756
|
-
},
|
|
1757
|
-
m.value =
|
|
1756
|
+
}, M = () => {
|
|
1757
|
+
m.value = x.tableColumns.map((o) => ({
|
|
1758
1758
|
...o,
|
|
1759
|
-
label: o.title && o.title.tag ?
|
|
1759
|
+
label: o.title && o.title.tag ? E(o.title) : o.title || o.title2,
|
|
1760
1760
|
value: o.dataIndex,
|
|
1761
1761
|
checked: o.checked || o.checked === void 0
|
|
1762
1762
|
})), t.value = [...m.value];
|
|
1763
1763
|
let l = [];
|
|
1764
|
-
|
|
1764
|
+
x.tableColumns.forEach(function(o) {
|
|
1765
1765
|
l.push(o.dataIndex);
|
|
1766
1766
|
});
|
|
1767
|
-
},
|
|
1767
|
+
}, E = (l) => l.children[0].text, I = (l) => {
|
|
1768
1768
|
delete l.fixed;
|
|
1769
1769
|
const o = t.value.findIndex((h) => h.value === l.value);
|
|
1770
1770
|
if (o !== -1) {
|
|
@@ -1776,7 +1776,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1776
1776
|
k.splice(h + 1, 0, d), t.value = k;
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
},
|
|
1779
|
+
}, F = (l) => {
|
|
1780
1780
|
const o = t.value.findIndex((h) => h.value === l.value);
|
|
1781
1781
|
if (o !== -1) {
|
|
1782
1782
|
let h = -1;
|
|
@@ -1789,18 +1789,18 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
};
|
|
1791
1791
|
return se(
|
|
1792
|
-
() =>
|
|
1792
|
+
() => x.tableColumns,
|
|
1793
1793
|
() => {
|
|
1794
|
-
|
|
1794
|
+
M();
|
|
1795
1795
|
},
|
|
1796
1796
|
{
|
|
1797
1797
|
immediate: !0,
|
|
1798
1798
|
deep: !0
|
|
1799
1799
|
}
|
|
1800
1800
|
), (l, o) => {
|
|
1801
|
-
const h =
|
|
1802
|
-
return a(),
|
|
1803
|
-
|
|
1801
|
+
const h = q("a-tooltip"), k = q("a-button");
|
|
1802
|
+
return a(), w("div", Dl, [
|
|
1803
|
+
T(n(gt), {
|
|
1804
1804
|
title: n(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1805
1805
|
trigger: "click",
|
|
1806
1806
|
placement: "leftTop",
|
|
@@ -1809,7 +1809,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1809
1809
|
"onUpdate:visible": o[1] || (o[1] = (d) => c.value = d)
|
|
1810
1810
|
}, {
|
|
1811
1811
|
content: s(() => [
|
|
1812
|
-
|
|
1812
|
+
T(n(fe), {
|
|
1813
1813
|
modelValue: t.value,
|
|
1814
1814
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => t.value = d),
|
|
1815
1815
|
"item-key": "value",
|
|
@@ -1818,33 +1818,33 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1818
1818
|
animation: "200",
|
|
1819
1819
|
handle: ".drag-handle",
|
|
1820
1820
|
onStart: A,
|
|
1821
|
-
onEnd:
|
|
1821
|
+
onEnd: G
|
|
1822
1822
|
}, {
|
|
1823
1823
|
item: s(({ element: d }) => [
|
|
1824
|
-
d.fixed !== "right" ? (a(),
|
|
1825
|
-
|
|
1824
|
+
d.fixed !== "right" ? (a(), w("div", Ol, [
|
|
1825
|
+
T(n(pe), {
|
|
1826
1826
|
checked: d.checked,
|
|
1827
|
-
onChange: (
|
|
1827
|
+
onChange: (j) => g(d, j.target.checked)
|
|
1828
1828
|
}, {
|
|
1829
1829
|
default: s(() => [
|
|
1830
1830
|
O(L(d.label), 1)
|
|
1831
1831
|
]),
|
|
1832
1832
|
_: 2
|
|
1833
1833
|
}, 1032, ["checked", "onChange"]),
|
|
1834
|
-
d.checked ? (a(),
|
|
1835
|
-
|
|
1836
|
-
class:
|
|
1834
|
+
d.checked ? (a(), w("section", Rl, [
|
|
1835
|
+
y("span", {
|
|
1836
|
+
class: V(d.fixed ? "drag-hide" : "drag-handle")
|
|
1837
1837
|
}, "⋮⋮", 2),
|
|
1838
1838
|
d.fixed ? (a(), B(h, { key: 0 }, {
|
|
1839
1839
|
title: s(() => [
|
|
1840
1840
|
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1841
1841
|
]),
|
|
1842
1842
|
default: s(() => [
|
|
1843
|
-
|
|
1843
|
+
y("span", {
|
|
1844
1844
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1845
|
-
onClick: (
|
|
1845
|
+
onClick: (j) => I(d)
|
|
1846
1846
|
}, [...o[2] || (o[2] = [
|
|
1847
|
-
|
|
1847
|
+
y("svg", {
|
|
1848
1848
|
t: "1759048615600",
|
|
1849
1849
|
class: "icon",
|
|
1850
1850
|
viewBox: "0 0 1024 1024",
|
|
@@ -1854,7 +1854,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1854
1854
|
width: "200",
|
|
1855
1855
|
height: "200"
|
|
1856
1856
|
}, [
|
|
1857
|
-
|
|
1857
|
+
y("path", {
|
|
1858
1858
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
1859
1859
|
"p-id": "7284",
|
|
1860
1860
|
fill: "#ff5000"
|
|
@@ -1869,11 +1869,11 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1869
1869
|
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1870
1870
|
]),
|
|
1871
1871
|
default: s(() => [
|
|
1872
|
-
|
|
1872
|
+
y("span", {
|
|
1873
1873
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1874
|
-
onClick: (
|
|
1874
|
+
onClick: (j) => F(d)
|
|
1875
1875
|
}, [...o[3] || (o[3] = [
|
|
1876
|
-
|
|
1876
|
+
y("svg", {
|
|
1877
1877
|
t: "1759048735643",
|
|
1878
1878
|
class: "icon",
|
|
1879
1879
|
viewBox: "0 0 1024 1024",
|
|
@@ -1883,7 +1883,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1883
1883
|
width: "200",
|
|
1884
1884
|
height: "200"
|
|
1885
1885
|
}, [
|
|
1886
|
-
|
|
1886
|
+
y("path", {
|
|
1887
1887
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
1888
1888
|
"p-id": "7482",
|
|
1889
1889
|
fill: "#ff5000"
|
|
@@ -1898,12 +1898,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1898
1898
|
]),
|
|
1899
1899
|
_: 1
|
|
1900
1900
|
}, 8, ["modelValue"]),
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1901
|
+
y("div", Nl, [
|
|
1902
|
+
y("div", zl, [
|
|
1903
|
+
T(n(pe), {
|
|
1904
1904
|
checked: v.value,
|
|
1905
1905
|
indeterminate: R.value,
|
|
1906
|
-
onChange:
|
|
1906
|
+
onChange: p
|
|
1907
1907
|
}, {
|
|
1908
1908
|
default: s(() => [
|
|
1909
1909
|
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
@@ -1911,8 +1911,8 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1911
1911
|
_: 1
|
|
1912
1912
|
}, 8, ["checked", "indeterminate"])
|
|
1913
1913
|
]),
|
|
1914
|
-
|
|
1915
|
-
onClick:
|
|
1914
|
+
T(k, {
|
|
1915
|
+
onClick: S,
|
|
1916
1916
|
type: "primary"
|
|
1917
1917
|
}, {
|
|
1918
1918
|
default: s(() => [
|
|
@@ -1923,13 +1923,13 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1923
1923
|
])
|
|
1924
1924
|
]),
|
|
1925
1925
|
default: s(() => [
|
|
1926
|
-
|
|
1926
|
+
T(h, {
|
|
1927
1927
|
title: n(i)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1928
1928
|
placement: "leftTop"
|
|
1929
1929
|
}, {
|
|
1930
1930
|
default: s(() => [...o[4] || (o[4] = [
|
|
1931
|
-
|
|
1932
|
-
|
|
1931
|
+
y("span", { class: "hb-lib-table-col-set" }, [
|
|
1932
|
+
y("svg", {
|
|
1933
1933
|
t: "1759041858618",
|
|
1934
1934
|
class: "icon",
|
|
1935
1935
|
viewBox: "0 0 1024 1024",
|
|
@@ -1939,12 +1939,12 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1939
1939
|
width: "200",
|
|
1940
1940
|
height: "200"
|
|
1941
1941
|
}, [
|
|
1942
|
-
|
|
1942
|
+
y("path", {
|
|
1943
1943
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
1944
1944
|
"p-id": "5220",
|
|
1945
1945
|
fill: "#ff5000"
|
|
1946
1946
|
}),
|
|
1947
|
-
|
|
1947
|
+
y("path", {
|
|
1948
1948
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
1949
1949
|
"p-id": "5221",
|
|
1950
1950
|
fill: "#ff5000"
|
|
@@ -1990,15 +1990,15 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
1990
1990
|
}),
|
|
1991
1991
|
emits: ["update:value"],
|
|
1992
1992
|
setup(e, { expose: f }) {
|
|
1993
|
-
const r = e, i = it(),
|
|
1994
|
-
const
|
|
1993
|
+
const r = e, i = it(), x = K(() => {
|
|
1994
|
+
const p = i, g = p.dropdownClassName;
|
|
1995
1995
|
return {
|
|
1996
|
-
...
|
|
1997
|
-
dropdownClassName:
|
|
1996
|
+
...p,
|
|
1997
|
+
dropdownClassName: g ?? "hb_lib_form_tooltip_select__dropdown"
|
|
1998
1998
|
};
|
|
1999
|
-
}), m = P(), b = Qe(e, "value"), c =
|
|
1999
|
+
}), m = P(), b = Qe(e, "value"), c = K(() => r.options ?? []), t = K(() => ({
|
|
2000
2000
|
maxWidth: typeof r.tooltipMaxWidth == "number" ? `${r.tooltipMaxWidth}px` : r.tooltipMaxWidth
|
|
2001
|
-
})), u = (
|
|
2001
|
+
})), u = (p) => p.tooltip ?? p.label, v = (p) => p.key ?? p.label, R = (p) => !!(r.enableTooltip && u(p));
|
|
2002
2002
|
return f({
|
|
2003
2003
|
focus: () => {
|
|
2004
2004
|
m.value?.focus?.();
|
|
@@ -2007,37 +2007,37 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2007
2007
|
m.value?.blur?.();
|
|
2008
2008
|
},
|
|
2009
2009
|
selectRef: m
|
|
2010
|
-
}), (
|
|
2010
|
+
}), (p, g) => (a(), B(n(Fe), X({
|
|
2011
2011
|
ref_key: "selectRef",
|
|
2012
2012
|
ref: m,
|
|
2013
|
-
class: "
|
|
2014
|
-
},
|
|
2013
|
+
class: "hb_lib_form_tooltip_select"
|
|
2014
|
+
}, x.value, {
|
|
2015
2015
|
value: b.value,
|
|
2016
|
-
"onUpdate:value":
|
|
2016
|
+
"onUpdate:value": g[0] || (g[0] = (S) => b.value = S)
|
|
2017
2017
|
}), {
|
|
2018
2018
|
default: s(() => [
|
|
2019
|
-
|
|
2020
|
-
key:
|
|
2021
|
-
value:
|
|
2022
|
-
disabled:
|
|
2023
|
-
}, { ref_for: !0 },
|
|
2019
|
+
p.$slots.default ? Y(p.$slots, "default", { key: 0 }, void 0, !0) : (a(!0), w(J, { key: 1 }, ae(c.value, (S) => (a(), B(n(xe), X({
|
|
2020
|
+
key: v(S),
|
|
2021
|
+
value: S.value,
|
|
2022
|
+
disabled: S.disabled
|
|
2023
|
+
}, { ref_for: !0 }, S.optionProps), {
|
|
2024
2024
|
default: s(() => [
|
|
2025
|
-
|
|
2025
|
+
R(S) ? (a(), B(n(we), {
|
|
2026
2026
|
key: 0,
|
|
2027
|
-
title: u(
|
|
2027
|
+
title: u(S),
|
|
2028
2028
|
placement: r.tooltipPlacement,
|
|
2029
2029
|
overlayStyle: t.value
|
|
2030
2030
|
}, {
|
|
2031
2031
|
default: s(() => [
|
|
2032
|
-
|
|
2033
|
-
class:
|
|
2034
|
-
}, L(
|
|
2032
|
+
y("span", {
|
|
2033
|
+
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2034
|
+
}, L(S.label), 3)
|
|
2035
2035
|
]),
|
|
2036
2036
|
_: 2
|
|
2037
|
-
}, 1032, ["title", "placement", "overlayStyle"])) : (a(),
|
|
2037
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (a(), w("span", {
|
|
2038
2038
|
key: 1,
|
|
2039
|
-
class:
|
|
2040
|
-
}, L(
|
|
2039
|
+
class: V(["hb_lib_form_tooltip_select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2040
|
+
}, L(S.label), 3))
|
|
2041
2041
|
]),
|
|
2042
2042
|
_: 2
|
|
2043
2043
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2045,7 +2045,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2045
2045
|
_: 3
|
|
2046
2046
|
}, 16, ["value"]));
|
|
2047
2047
|
}
|
|
2048
|
-
}), ql = /* @__PURE__ */ oe(jl, [["__scopeId", "data-v-
|
|
2048
|
+
}), ql = /* @__PURE__ */ oe(jl, [["__scopeId", "data-v-b04f5675"]]), Kl = te(ql), Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2049
2049
|
__proto__: null,
|
|
2050
2050
|
HbLibFormTooltipSelect: Kl
|
|
2051
2051
|
}, Symbol.toStringTag, { value: "Module" })), Jl = {
|
|
@@ -2098,7 +2098,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2098
2098
|
rt(() => {
|
|
2099
2099
|
r.value = f.data;
|
|
2100
2100
|
});
|
|
2101
|
-
const i =
|
|
2101
|
+
const i = K(() => {
|
|
2102
2102
|
if (f.cpText) return f.cpText;
|
|
2103
2103
|
let m = "";
|
|
2104
2104
|
if (f.data)
|
|
@@ -2110,7 +2110,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2110
2110
|
} else
|
|
2111
2111
|
f.K && (m = f.data[f.K]);
|
|
2112
2112
|
return m;
|
|
2113
|
-
}),
|
|
2113
|
+
}), x = () => {
|
|
2114
2114
|
navigator.clipboard.writeText(i.value).then(() => {
|
|
2115
2115
|
Te.success(f.copySuccessTip);
|
|
2116
2116
|
}).catch(() => {
|
|
@@ -2118,16 +2118,16 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
};
|
|
2120
2120
|
return (m, b) => {
|
|
2121
|
-
const c =
|
|
2121
|
+
const c = q("a-tooltip");
|
|
2122
2122
|
return i.value ? (a(), B(c, {
|
|
2123
2123
|
key: 0,
|
|
2124
2124
|
title: m.tooltipTitle
|
|
2125
2125
|
}, {
|
|
2126
2126
|
default: s(() => [
|
|
2127
|
-
|
|
2128
|
-
class:
|
|
2127
|
+
y("i", {
|
|
2128
|
+
class: V(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
2129
2129
|
style: me({ ...m.cpStyle }),
|
|
2130
|
-
onClick: _e(
|
|
2130
|
+
onClick: _e(x, ["stop", "prevent"])
|
|
2131
2131
|
}, null, 6)
|
|
2132
2132
|
]),
|
|
2133
2133
|
_: 1
|
|
@@ -2190,7 +2190,7 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2190
2190
|
immediate: !0
|
|
2191
2191
|
}
|
|
2192
2192
|
);
|
|
2193
|
-
const
|
|
2193
|
+
const x = Ae("drag"), m = f, b = (v) => {
|
|
2194
2194
|
console.log("drag start", v), m("handleDragStart", v);
|
|
2195
2195
|
}, c = (v) => {
|
|
2196
2196
|
console.log("drag end", v), m("handleDragEnd", v);
|
|
@@ -2199,8 +2199,8 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2199
2199
|
}, u = (v) => {
|
|
2200
2200
|
console.log("drag remove", v), m("handleDragRemove", v);
|
|
2201
2201
|
};
|
|
2202
|
-
return (v, R) => (a(),
|
|
2203
|
-
class:
|
|
2202
|
+
return (v, R) => (a(), w("div", {
|
|
2203
|
+
class: V(n(x).b())
|
|
2204
2204
|
}, [
|
|
2205
2205
|
v.childrenType == "component" ? (a(), B(n(fe), X({
|
|
2206
2206
|
key: 0,
|
|
@@ -2233,8 +2233,8 @@ const Lt = "hb-", Ae = (e = "") => {
|
|
|
2233
2233
|
onRemove: u
|
|
2234
2234
|
}), {
|
|
2235
2235
|
item: s(({ element: A }) => [
|
|
2236
|
-
|
|
2237
|
-
|
|
2236
|
+
y("div", null, [
|
|
2237
|
+
Y(v.$slots, "default", { item: A }, void 0, !0)
|
|
2238
2238
|
])
|
|
2239
2239
|
]),
|
|
2240
2240
|
_: 3
|
|
@@ -2269,13 +2269,13 @@ function fo() {
|
|
|
2269
2269
|
function i(b) {
|
|
2270
2270
|
return b && typeof b == "object" && "default" in b ? b : { default: b };
|
|
2271
2271
|
}
|
|
2272
|
-
var
|
|
2272
|
+
var x = i(r), m = { 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(b, c) {
|
|
2273
2273
|
return c === "W" ? b + "周" : b + "日";
|
|
2274
2274
|
}, 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(b, c) {
|
|
2275
2275
|
var t = 100 * b + c;
|
|
2276
2276
|
return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
|
|
2277
2277
|
} };
|
|
2278
|
-
return
|
|
2278
|
+
return x.default.locale(m, null, !0), m;
|
|
2279
2279
|
}));
|
|
2280
2280
|
})(he)), he.exports;
|
|
2281
2281
|
}
|