@hb-hellotech/hb-ui 1.2.2 → 1.2.5-beta.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/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts +5 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +623 -615
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, reactive as
|
|
2
|
+
import { defineComponent as te, reactive as We, ref as R, computed as W, watch as se, createElementBlock as S, openBlock as a, normalizeClass as E, unref as n, createVNode as F, withCtx as s, createElementVNode as v, toDisplayString as _, createTextVNode as D, createBlock as P, createCommentVNode as N, Fragment as G, renderList as ae, inject as Se, resolveComponent as q, Transition as Xe, withDirectives as re, mergeProps as X, createSlots as Je, renderSlot as j, vShow as et, nextTick as he, onMounted as we, onUnmounted as tt, useTemplateRef as lt, provide as ot, normalizeStyle as me, mergeModels as Te, useModel as at, withModifiers as Le, resolveDirective as nt, watchEffect as st, shallowRef as it, resolveDynamicComponent as rt } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
|
-
import { CloseOutlined as ct, QuestionCircleOutlined as dt, SearchOutlined as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import
|
|
4
|
+
import { CloseOutlined as ct, QuestionCircleOutlined as dt, SearchOutlined as Fe, UpCircleOutlined as ut, DownCircleOutlined as ht, UnorderedListOutlined as bt, DownOutlined as Me } from "@ant-design/icons-vue";
|
|
5
|
+
import { Modal as ke, Button as de, Tooltip as Ie, Switch as He, Radio as Ae, RadioGroup as De, InputNumber as Oe, DatePicker as Be, Checkbox as pe, CheckboxGroup as Re, Select as Pe, Input as ze, Col as ft, Row as pt, FormItem as Ne, Form as Ve, SelectOption as Ee, Popconfirm as ye, MenuItem as Ue, Menu as Ye, Dropdown as je, Popover as mt, message as _e } from "ant-design-vue";
|
|
6
|
+
import { useRoute as Ge } from "vue-router";
|
|
7
|
+
import { useI18n as ce } from "vue-i18n";
|
|
8
|
+
import Ce from "lodash";
|
|
9
9
|
import { useFullscreen as vt, useDebounceFn as gt } from "@vueuse/core";
|
|
10
|
-
import
|
|
11
|
-
const yt = "hb-",
|
|
12
|
-
const f = `${yt}${
|
|
10
|
+
import xe from "dayjs";
|
|
11
|
+
const yt = "hb-", $e = (t = "") => {
|
|
12
|
+
const f = `${yt}${t}`;
|
|
13
13
|
return Ct(f);
|
|
14
|
-
},
|
|
14
|
+
}, ie = (t, f, u, i) => (f && (t += `-${f}`), u && (t += `__${u}`), i && (t += `--${i}`), t), Ct = (t) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (f) => f ?
|
|
16
|
+
b: (f) => f ? ie(t, f, "", "") : ie(t, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (f) => f ?
|
|
18
|
+
e: (f) => f ? ie(t, "", f, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (f) =>
|
|
20
|
+
m: (f) => ie(t, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (f, u) =>
|
|
22
|
+
be: (f, u) => ie(t, f, u, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (f, u) =>
|
|
24
|
+
em: (f, u) => ie(t, "", f, u),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (f, u, i) =>
|
|
26
|
+
bem: (f, u, i) => ie(t, f, u, i),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (f, u) => u ? `is-${f}` : ""
|
|
29
29
|
}), Lt = ["onMouseenter", "onMouseleave"], kt = ["onClick"], _t = /* @__PURE__ */ te({
|
|
@@ -37,78 +37,78 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(
|
|
41
|
-
const i =
|
|
40
|
+
setup(t, { expose: f, emit: u }) {
|
|
41
|
+
const i = ce().t, x = ce().messages.value.en_US, m = ce().messages.value.ja_JP, p = ce().messages.value.zh_CN, c = t, e = u, h = $e("sfcm"), b = Ge(), B = We({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
43
|
+
}), O = R(!1), Q = R(600);
|
|
44
44
|
let C = [];
|
|
45
45
|
const y = R([]), I = R([]), T = W(() => y.value.every((k) => k.isLinked || k.isFixed)), V = (k) => {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
46
|
+
const H = k.draggedContext.element, g = k.relatedContext.index;
|
|
47
|
+
if (H.isLinked || H.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
49
|
+
const U = y.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
|
|
53
|
-
const
|
|
54
|
-
if (g >
|
|
52
|
+
for (let Z = 0; Z < U.length - 1; Z++) {
|
|
53
|
+
const ne = U[Z], ue = U[Z + 1];
|
|
54
|
+
if (g > ne && g < ue)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
58
|
}, M = () => {
|
|
59
59
|
const k = localStorage.getItem("pro__Login_Userinfo");
|
|
60
|
-
let
|
|
60
|
+
let H = "anonymous";
|
|
61
61
|
if (k)
|
|
62
62
|
try {
|
|
63
|
-
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
63
|
+
H = JSON.parse(k).value.jobNumber || "anonymous";
|
|
64
|
+
} catch (U) {
|
|
65
|
+
console.warn("解析用户信息失败:", U);
|
|
66
66
|
}
|
|
67
67
|
let g = b?.path;
|
|
68
|
-
return `searchFormConfig_${
|
|
68
|
+
return `searchFormConfig_${H}_${g}`;
|
|
69
69
|
}, w = (k) => ({
|
|
70
|
-
ja_JP: () =>
|
|
71
|
-
en_US: () =>
|
|
72
|
-
zh_CN: () =>
|
|
70
|
+
ja_JP: () => Ce.get(m, k.labelLanguage || ""),
|
|
71
|
+
en_US: () => Ce.get(x, k.labelLanguage || ""),
|
|
72
|
+
zh_CN: () => Ce.get(p, k.labelLanguage || "")
|
|
73
73
|
})[B.lan]?.() || k.label, l = () => {
|
|
74
74
|
try {
|
|
75
|
-
const k = M(),
|
|
76
|
-
if (
|
|
77
|
-
const g = JSON.parse(
|
|
75
|
+
const k = M(), H = localStorage.getItem(k);
|
|
76
|
+
if (H) {
|
|
77
|
+
const g = JSON.parse(H);
|
|
78
78
|
if (g.originalList && Array.isArray(g.originalList)) {
|
|
79
79
|
C = JSON.parse(JSON.stringify(g.originalList));
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
label: w(
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})), ge =
|
|
88
|
-
|
|
89
|
-
label: w(
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
80
|
+
const U = C.filter(($) => $?.isFixed), Z = C.filter(($) => $?.isLinked), ne = g.showList.filter(($) => !$.isFixed && !$.isLinked), ue = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - U.length - Z.length) : ne.length, ve = U.map(($) => ({
|
|
81
|
+
...$,
|
|
82
|
+
label: w($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: $.key,
|
|
84
|
+
isFixed: $?.isFixed || !1,
|
|
85
|
+
isLinked: $?.isLinked || !1,
|
|
86
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
87
|
+
})), ge = Z.map(($) => ({
|
|
88
|
+
...$,
|
|
89
|
+
label: w($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: $.key,
|
|
91
|
+
isFixed: $?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})),
|
|
95
|
-
|
|
96
|
-
label: w(
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
94
|
+
})), A = ne.slice(0, ue).map(($) => ({
|
|
95
|
+
...$,
|
|
96
|
+
label: w($) || `${$.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: $.key,
|
|
98
|
+
isFixed: $?.isFixed || !1,
|
|
99
|
+
isLinked: $?.isLinked || !1,
|
|
100
|
+
labelLanguage: $?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
y.value = [...ve, ...ge, ...
|
|
103
|
-
const
|
|
104
|
-
return I.value = C.filter((
|
|
105
|
-
|
|
106
|
-
label: w(
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
y.value = [...ve, ...ge, ...A];
|
|
103
|
+
const Qe = y.value.map(($) => $.key), Ze = C.map(($) => $.key).filter(($) => !Qe.includes($));
|
|
104
|
+
return I.value = C.filter(($) => Ze.includes($.key)).map(($) => ({
|
|
105
|
+
...$,
|
|
106
|
+
label: w($) || `${$.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
|
}
|
|
@@ -128,102 +128,100 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
128
128
|
isLinked: g.isLinked,
|
|
129
129
|
labelLanguage: g?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
131
|
+
}, H = M();
|
|
132
|
+
localStorage.setItem(H, JSON.stringify(k));
|
|
133
133
|
} catch (k) {
|
|
134
134
|
console.warn("保存搜索配置失败:", k);
|
|
135
135
|
}
|
|
136
136
|
}, d = W(() => {
|
|
137
|
-
const k = y.value.filter((g) => !g.isFixed && !g.isLinked).length,
|
|
138
|
-
return k >= c.showNumber -
|
|
137
|
+
const k = y.value.filter((g) => !g.isFixed && !g.isLinked).length, H = y.value.filter((g) => g.isFixed || g.isLinked).length;
|
|
138
|
+
return k >= c.showNumber - H;
|
|
139
139
|
});
|
|
140
|
-
|
|
140
|
+
se(
|
|
141
141
|
() => c.list,
|
|
142
142
|
(k) => {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
I.value = ye;
|
|
178
|
-
}
|
|
143
|
+
l(), C = JSON.parse(JSON.stringify(k));
|
|
144
|
+
const H = k.filter((A) => A?.isFixed), g = k.filter((A) => A?.isLinked), U = k.filter((A) => !A?.isFixed && !A?.isLinked), Z = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - H.length - g.length) : U.length, ne = H.map((A) => ({
|
|
145
|
+
...A,
|
|
146
|
+
label: w(A) || `${A.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
147
|
+
key: A.key,
|
|
148
|
+
isFixed: A?.isFixed || !1,
|
|
149
|
+
isLinked: A?.isLinked || !1,
|
|
150
|
+
labelLanguage: A?.labelLanguage || void 0
|
|
151
|
+
})), ue = g.map((A) => ({
|
|
152
|
+
...A,
|
|
153
|
+
label: w(A) || `${A.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
154
|
+
key: A.key,
|
|
155
|
+
isFixed: A?.isFixed || !1,
|
|
156
|
+
isLinked: !0,
|
|
157
|
+
labelLanguage: A?.labelLanguage || void 0
|
|
158
|
+
})), ve = U.slice(0, Z).map((A) => ({
|
|
159
|
+
...A,
|
|
160
|
+
label: w(A) || `${A.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
161
|
+
key: A.key,
|
|
162
|
+
isFixed: A?.isFixed || !1,
|
|
163
|
+
isLinked: A?.isLinked || !1,
|
|
164
|
+
labelLanguage: A?.labelLanguage || void 0
|
|
165
|
+
}));
|
|
166
|
+
y.value = [...ne, ...ue, ...ve];
|
|
167
|
+
const ge = U.slice(Z).map((A) => ({
|
|
168
|
+
...A,
|
|
169
|
+
label: w(A) || `${A.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
170
|
+
key: A.key,
|
|
171
|
+
isFixed: A?.isFixed || !1,
|
|
172
|
+
isLinked: A?.isLinked || !1,
|
|
173
|
+
active: !1,
|
|
174
|
+
labelLanguage: A?.labelLanguage || void 0
|
|
175
|
+
}));
|
|
176
|
+
I.value = ge;
|
|
179
177
|
},
|
|
180
|
-
{ immediate: !0 }
|
|
178
|
+
{ immediate: !0, deep: !0 }
|
|
181
179
|
);
|
|
182
180
|
const L = (k) => {
|
|
183
|
-
const
|
|
184
|
-
|
|
181
|
+
const H = y.value.findIndex((g) => g.key === k.key);
|
|
182
|
+
H !== -1 && (y.value.splice(H, 1), I.value.push({ ...k, active: !1 }));
|
|
185
183
|
}, r = (k) => {
|
|
186
184
|
if (d.value)
|
|
187
185
|
return;
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const [g] = I.value.splice(
|
|
186
|
+
const H = I.value.findIndex((g) => g.key === k.key);
|
|
187
|
+
if (H !== -1) {
|
|
188
|
+
const [g] = I.value.splice(H, 1);
|
|
191
189
|
y.value.push({ ...g, active: !1 });
|
|
192
190
|
}
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
|
|
191
|
+
}, Y = () => {
|
|
192
|
+
O.value = !1;
|
|
193
|
+
}, z = () => {
|
|
194
|
+
O.value = !0;
|
|
197
195
|
}, ee = () => {
|
|
198
|
-
o(),
|
|
196
|
+
o(), e("confirm", y.value), Y();
|
|
199
197
|
}, J = (k) => {
|
|
200
|
-
const
|
|
201
|
-
|
|
198
|
+
const H = I.value.findIndex((g) => g.key === k.key);
|
|
199
|
+
H !== -1 && (I.value[H].active = !0);
|
|
202
200
|
}, K = (k) => {
|
|
203
|
-
const
|
|
204
|
-
|
|
201
|
+
const H = I.value.findIndex((g) => g.key === k.key);
|
|
202
|
+
H !== -1 && (I.value[H].active = !1);
|
|
205
203
|
};
|
|
206
204
|
return f({
|
|
207
|
-
toOpenModal:
|
|
208
|
-
}), (k,
|
|
205
|
+
toOpenModal: z
|
|
206
|
+
}), (k, H) => (a(), S("div", {
|
|
209
207
|
class: E(n(h).b())
|
|
210
208
|
}, [
|
|
211
|
-
F(n(
|
|
212
|
-
visible:
|
|
213
|
-
"onUpdate:visible":
|
|
214
|
-
width:
|
|
215
|
-
onCancel:
|
|
209
|
+
F(n(ke), {
|
|
210
|
+
visible: O.value,
|
|
211
|
+
"onUpdate:visible": H[1] || (H[1] = (g) => O.value = g),
|
|
212
|
+
width: Q.value,
|
|
213
|
+
onCancel: Y,
|
|
216
214
|
onOk: ee
|
|
217
215
|
}, {
|
|
218
216
|
title: s(() => [
|
|
219
217
|
v("div", {
|
|
220
218
|
class: E(n(h).e("title"))
|
|
221
|
-
}, _(
|
|
219
|
+
}, _(t.title), 3)
|
|
222
220
|
]),
|
|
223
221
|
footer: s(() => [
|
|
224
|
-
F(n(de), { onClick:
|
|
222
|
+
F(n(de), { onClick: Y }, {
|
|
225
223
|
default: s(() => [
|
|
226
|
-
|
|
224
|
+
D(_(k.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
227
225
|
]),
|
|
228
226
|
_: 1
|
|
229
227
|
}),
|
|
@@ -232,7 +230,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
232
230
|
onClick: ee
|
|
233
231
|
}, {
|
|
234
232
|
default: s(() => [
|
|
235
|
-
|
|
233
|
+
D(_(k.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
236
234
|
]),
|
|
237
235
|
_: 1
|
|
238
236
|
})
|
|
@@ -247,14 +245,14 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
247
245
|
v("span", {
|
|
248
246
|
class: E(n(h).e("title__tip"))
|
|
249
247
|
}, _(k.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
250
|
-
v("span", null, _(k.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(
|
|
248
|
+
v("span", null, _(k.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + _(t.showNumber) + _(k.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
251
249
|
], 2),
|
|
252
250
|
v("div", {
|
|
253
251
|
class: E(n(h).e("show__tag"))
|
|
254
252
|
}, [
|
|
255
253
|
F(n(fe), {
|
|
256
254
|
modelValue: y.value,
|
|
257
|
-
"onUpdate:modelValue":
|
|
255
|
+
"onUpdate:modelValue": H[0] || (H[0] = (g) => y.value = g),
|
|
258
256
|
"item-key": "key",
|
|
259
257
|
tag: "div",
|
|
260
258
|
disabled: T.value,
|
|
@@ -264,12 +262,12 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
264
262
|
v("div", {
|
|
265
263
|
class: E([n(h).e("show__tag__item"), n(h).is("fixed", g.isFixed), n(h).is("linked", g.isLinked)])
|
|
266
264
|
}, [
|
|
267
|
-
|
|
268
|
-
!g.isFixed && !g.isLinked &&
|
|
265
|
+
D(_(g.label) + " ", 1),
|
|
266
|
+
!g.isFixed && !g.isLinked && t.list.length > 1 ? (a(), P(n(ct), {
|
|
269
267
|
key: 0,
|
|
270
268
|
class: E(n(h).e("show__tag__item-close")),
|
|
271
|
-
onClick: (
|
|
272
|
-
}, null, 8, ["class", "onClick"])) :
|
|
269
|
+
onClick: (U) => L(g)
|
|
270
|
+
}, null, 8, ["class", "onClick"])) : N("", !0)
|
|
273
271
|
], 2)
|
|
274
272
|
]),
|
|
275
273
|
_: 1
|
|
@@ -289,18 +287,18 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
289
287
|
v("div", {
|
|
290
288
|
class: E(n(h).e("unshow__tag"))
|
|
291
289
|
}, [
|
|
292
|
-
I.value.length > 0 ? (a(!0), S(
|
|
290
|
+
I.value.length > 0 ? (a(!0), S(G, { key: 0 }, ae(I.value, (g) => (a(), S("div", {
|
|
293
291
|
class: E([n(h).e("unshow__tag__item"), n(h).is("fixed", g.isFixed || ""), n(h).is("linked", g.isLinked || "")]),
|
|
294
292
|
key: g.key,
|
|
295
|
-
onMouseenter: (
|
|
296
|
-
onMouseleave: (
|
|
293
|
+
onMouseenter: (U) => J(g),
|
|
294
|
+
onMouseleave: (U) => K(g)
|
|
297
295
|
}, [
|
|
298
|
-
|
|
296
|
+
D(_(g.label) + " ", 1),
|
|
299
297
|
g.active ? (a(), S("aside", {
|
|
300
298
|
key: 0,
|
|
301
299
|
class: E(n(h).e("unshow__tag__item-add")),
|
|
302
|
-
onClick: (
|
|
303
|
-
}, _(k.$t("hbLibComp.hbFormItemFilterModal.add")), 11, kt)) :
|
|
300
|
+
onClick: (U) => r(g)
|
|
301
|
+
}, _(k.$t("hbLibComp.hbFormItemFilterModal.add")), 11, kt)) : N("", !0)
|
|
304
302
|
], 42, Lt))), 128)) : (a(), S("div", {
|
|
305
303
|
key: 1,
|
|
306
304
|
class: E(n(h).e("unshow__tag__empty"))
|
|
@@ -312,15 +310,15 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
312
310
|
}, 8, ["visible", "width"])
|
|
313
311
|
], 2));
|
|
314
312
|
}
|
|
315
|
-
}), oe = (
|
|
316
|
-
const u =
|
|
317
|
-
for (const [i,
|
|
318
|
-
u[i] =
|
|
313
|
+
}), oe = (t, f) => {
|
|
314
|
+
const u = t.__vccOpts || t;
|
|
315
|
+
for (const [i, x] of f)
|
|
316
|
+
u[i] = x;
|
|
319
317
|
return u;
|
|
320
|
-
}, St = /* @__PURE__ */ oe(_t, [["__scopeId", "data-v-
|
|
321
|
-
for (const i of [
|
|
318
|
+
}, St = /* @__PURE__ */ oe(_t, [["__scopeId", "data-v-d4bf349a"]]), le = (t, f) => (t.install = (u) => {
|
|
319
|
+
for (const i of [t, ...Object.values({})])
|
|
322
320
|
u.component(i.name, i);
|
|
323
|
-
},
|
|
321
|
+
}, t), wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
324
322
|
name: "HbLibListForm",
|
|
325
323
|
__name: "HbListForm",
|
|
326
324
|
props: {
|
|
@@ -348,20 +346,20 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
348
346
|
} }
|
|
349
347
|
},
|
|
350
348
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
351
|
-
setup(
|
|
352
|
-
const i = u,
|
|
349
|
+
setup(t, { expose: f, emit: u }) {
|
|
350
|
+
const i = u, x = Se("HB_LIST_PAGE_CONTAINER"), m = $e("form"), p = t, c = R("show"), e = W(() => [...p.items]), h = R(), b = () => {
|
|
353
351
|
i("handleSearch");
|
|
354
352
|
}, B = () => {
|
|
355
353
|
i("handleReset");
|
|
356
|
-
},
|
|
357
|
-
|
|
354
|
+
}, O = R(), Q = () => {
|
|
355
|
+
O.value && O.value.toOpenModal();
|
|
358
356
|
}, C = (w) => {
|
|
359
357
|
i("handleSfcmConfirm", w);
|
|
360
358
|
}, y = () => {
|
|
361
359
|
c.value = c.value === "show" ? "hide" : "show";
|
|
362
360
|
};
|
|
363
|
-
|
|
364
|
-
() =>
|
|
361
|
+
se(
|
|
362
|
+
() => p.isFormExpanded,
|
|
365
363
|
(w) => {
|
|
366
364
|
if (w) {
|
|
367
365
|
console.log(w);
|
|
@@ -378,7 +376,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
378
376
|
}, T = (w) => {
|
|
379
377
|
const l = w;
|
|
380
378
|
l.style.height = "", l.style.overflow = "", he(() => {
|
|
381
|
-
|
|
379
|
+
x.calTableHeight && x.calTableHeight();
|
|
382
380
|
});
|
|
383
381
|
}, V = (w) => {
|
|
384
382
|
const l = w, o = l.querySelector(".hb-lib-form--container");
|
|
@@ -390,30 +388,30 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
390
388
|
}
|
|
391
389
|
}, M = () => {
|
|
392
390
|
he(() => {
|
|
393
|
-
|
|
391
|
+
x.calTableHeight && x.calTableHeight();
|
|
394
392
|
});
|
|
395
393
|
};
|
|
396
394
|
return f({
|
|
397
395
|
formRef: h,
|
|
398
|
-
SelectOption:
|
|
399
|
-
Form:
|
|
400
|
-
FormItem:
|
|
401
|
-
Row:
|
|
396
|
+
SelectOption: Ee,
|
|
397
|
+
Form: Ve,
|
|
398
|
+
FormItem: Ne,
|
|
399
|
+
Row: pt,
|
|
402
400
|
Col: ft,
|
|
403
|
-
Input:
|
|
404
|
-
Select:
|
|
405
|
-
CheckboxGroup:
|
|
406
|
-
Checkbox:
|
|
407
|
-
DatePicker:
|
|
408
|
-
InputNumber:
|
|
409
|
-
RadioGroup:
|
|
410
|
-
Radio:
|
|
411
|
-
Switch:
|
|
401
|
+
Input: ze,
|
|
402
|
+
Select: Pe,
|
|
403
|
+
CheckboxGroup: Re,
|
|
404
|
+
Checkbox: pe,
|
|
405
|
+
DatePicker: Be,
|
|
406
|
+
InputNumber: Oe,
|
|
407
|
+
RadioGroup: De,
|
|
408
|
+
Radio: Ae,
|
|
409
|
+
Switch: He,
|
|
412
410
|
Button: de,
|
|
413
|
-
Tooltip:
|
|
411
|
+
Tooltip: Ie
|
|
414
412
|
}), (w, l) => {
|
|
415
413
|
const o = q("a-button"), d = q("a-tooltip"), L = q("HbLibFormItemFilterModal");
|
|
416
|
-
return a(), S(
|
|
414
|
+
return a(), S(G, null, [
|
|
417
415
|
F(Xe, {
|
|
418
416
|
name: "form-collapse",
|
|
419
417
|
onEnter: I,
|
|
@@ -422,116 +420,116 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
422
420
|
onAfterLeave: M
|
|
423
421
|
}, {
|
|
424
422
|
default: s(() => [
|
|
425
|
-
|
|
426
|
-
class: E([n(
|
|
423
|
+
re(v("div", {
|
|
424
|
+
class: E([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
427
425
|
}, [
|
|
428
|
-
F(n(
|
|
429
|
-
model:
|
|
426
|
+
F(n(Ve), X(w.$attrs, {
|
|
427
|
+
model: t.formData,
|
|
430
428
|
ref_key: "formRef",
|
|
431
429
|
ref: h,
|
|
432
430
|
class: ["hb-lib-form--container", c.value == "show" ? "" : "hide"]
|
|
433
431
|
}), {
|
|
434
432
|
default: s(() => [
|
|
435
|
-
(a(!0), S(
|
|
436
|
-
key:
|
|
433
|
+
(a(!0), S(G, null, ae(e.value, (r, Y) => (a(), P(n(Ne), X({
|
|
434
|
+
key: Y,
|
|
437
435
|
ref_for: !0
|
|
438
436
|
}, r, {
|
|
439
437
|
name: r.key,
|
|
440
438
|
class: r.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
441
|
-
}),
|
|
439
|
+
}), Je({
|
|
442
440
|
default: s(() => [
|
|
443
441
|
r.type === "slot" ? j(w.$slots, r.key, {
|
|
444
442
|
key: 0,
|
|
445
|
-
formData:
|
|
443
|
+
formData: t.formData,
|
|
446
444
|
item: r
|
|
447
|
-
}, void 0, !0) :
|
|
445
|
+
}, void 0, !0) : N("", !0),
|
|
448
446
|
r.type === "mixin" ? j(w.$slots, r.key, {
|
|
449
447
|
key: 1,
|
|
450
|
-
formData:
|
|
448
|
+
formData: t.formData,
|
|
451
449
|
item: r
|
|
452
|
-
}, void 0, !0) :
|
|
453
|
-
r.type === "input" ? (a(),
|
|
450
|
+
}, void 0, !0) : N("", !0),
|
|
451
|
+
r.type === "input" ? (a(), P(n(ze), X({
|
|
454
452
|
key: 2,
|
|
455
|
-
value:
|
|
456
|
-
"onUpdate:value": (
|
|
457
|
-
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
458
|
-
r.type === "select" ? (a(),
|
|
453
|
+
value: t.formData[r.key],
|
|
454
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
455
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
456
|
+
r.type === "select" ? (a(), P(n(Pe), X({
|
|
459
457
|
key: 3,
|
|
460
|
-
value:
|
|
461
|
-
"onUpdate:value": (
|
|
458
|
+
value: t.formData[r.key],
|
|
459
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
462
460
|
}, { ref_for: !0 }, r.attrs), {
|
|
463
461
|
default: s(() => [
|
|
464
|
-
(a(!0), S(
|
|
462
|
+
(a(!0), S(G, null, ae(r.options, (z, ee) => (a(), P(n(Ee), {
|
|
465
463
|
key: ee,
|
|
466
|
-
value:
|
|
464
|
+
value: z.value
|
|
467
465
|
}, {
|
|
468
466
|
default: s(() => [
|
|
469
|
-
|
|
467
|
+
D(_(z.label), 1)
|
|
470
468
|
]),
|
|
471
469
|
_: 2
|
|
472
470
|
}, 1032, ["value"]))), 128))
|
|
473
471
|
]),
|
|
474
472
|
_: 2
|
|
475
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
476
|
-
r.type === "checkbox" ? (a(),
|
|
473
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
474
|
+
r.type === "checkbox" ? (a(), P(n(Re), X({
|
|
477
475
|
key: 4,
|
|
478
|
-
value:
|
|
479
|
-
"onUpdate:value": (
|
|
476
|
+
value: t.formData[r.key],
|
|
477
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
480
478
|
}, { ref_for: !0 }, r.attrs), {
|
|
481
479
|
default: s(() => [
|
|
482
|
-
(a(!0), S(
|
|
480
|
+
(a(!0), S(G, null, ae(r.options, (z, ee) => (a(), P(n(pe), {
|
|
483
481
|
key: ee,
|
|
484
|
-
value:
|
|
482
|
+
value: z.value
|
|
485
483
|
}, {
|
|
486
484
|
default: s(() => [
|
|
487
|
-
|
|
485
|
+
D(_(z.label), 1)
|
|
488
486
|
]),
|
|
489
487
|
_: 2
|
|
490
488
|
}, 1032, ["value"]))), 128))
|
|
491
489
|
]),
|
|
492
490
|
_: 2
|
|
493
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
494
|
-
r.type === "date-picker" ? (a(),
|
|
491
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
492
|
+
r.type === "date-picker" ? (a(), P(n(Be), X({
|
|
495
493
|
key: 5,
|
|
496
|
-
value:
|
|
497
|
-
"onUpdate:value": (
|
|
498
|
-
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
499
|
-
r.type === "input-number" ? (a(),
|
|
494
|
+
value: t.formData[r.key],
|
|
495
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
496
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
497
|
+
r.type === "input-number" ? (a(), P(n(Oe), X({
|
|
500
498
|
key: 6,
|
|
501
|
-
value:
|
|
502
|
-
"onUpdate:value": (
|
|
503
|
-
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
504
|
-
r.type === "radio" ? (a(),
|
|
499
|
+
value: t.formData[r.key],
|
|
500
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
501
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["value", "onUpdate:value"])) : N("", !0),
|
|
502
|
+
r.type === "radio" ? (a(), P(n(De), X({
|
|
505
503
|
key: 7,
|
|
506
|
-
value:
|
|
507
|
-
"onUpdate:value": (
|
|
504
|
+
value: t.formData[r.key],
|
|
505
|
+
"onUpdate:value": (z) => t.formData[r.key] = z
|
|
508
506
|
}, { ref_for: !0 }, r.attrs), {
|
|
509
507
|
default: s(() => [
|
|
510
|
-
(a(!0), S(
|
|
508
|
+
(a(!0), S(G, null, ae(r.options, (z, ee) => (a(), P(n(Ae), {
|
|
511
509
|
key: ee,
|
|
512
|
-
value:
|
|
510
|
+
value: z.value
|
|
513
511
|
}, {
|
|
514
512
|
default: s(() => [
|
|
515
|
-
|
|
513
|
+
D(_(z.label), 1)
|
|
516
514
|
]),
|
|
517
515
|
_: 2
|
|
518
516
|
}, 1032, ["value"]))), 128))
|
|
519
517
|
]),
|
|
520
518
|
_: 2
|
|
521
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
522
|
-
r.type === "switch" ? (a(),
|
|
519
|
+
}, 1040, ["value", "onUpdate:value"])) : N("", !0),
|
|
520
|
+
r.type === "switch" ? (a(), P(n(He), X({
|
|
523
521
|
key: 8,
|
|
524
|
-
checked:
|
|
525
|
-
"onUpdate:checked": (
|
|
526
|
-
}, { ref_for: !0 }, r.attrs), null, 16, ["checked", "onUpdate:checked"])) :
|
|
522
|
+
checked: t.formData[r.key],
|
|
523
|
+
"onUpdate:checked": (z) => t.formData[r.key] = z
|
|
524
|
+
}, { ref_for: !0 }, r.attrs), null, 16, ["checked", "onUpdate:checked"])) : N("", !0)
|
|
527
525
|
]),
|
|
528
526
|
_: 2
|
|
529
527
|
}, [
|
|
530
528
|
r.tooltip ? {
|
|
531
529
|
name: "label",
|
|
532
530
|
fn: s(() => [
|
|
533
|
-
|
|
534
|
-
F(n(
|
|
531
|
+
D(_(r.label) + " ", 1),
|
|
532
|
+
F(n(Ie), {
|
|
535
533
|
title: r.tooltip
|
|
536
534
|
}, {
|
|
537
535
|
default: s(() => [
|
|
@@ -550,10 +548,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
550
548
|
class: "hb_list_page_button"
|
|
551
549
|
}, {
|
|
552
550
|
icon: s(() => [
|
|
553
|
-
F(n(
|
|
551
|
+
F(n(Fe))
|
|
554
552
|
]),
|
|
555
553
|
default: s(() => [
|
|
556
|
-
|
|
554
|
+
D(" " + _(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
557
555
|
]),
|
|
558
556
|
_: 1
|
|
559
557
|
}),
|
|
@@ -562,18 +560,18 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
562
560
|
onClick: B
|
|
563
561
|
}, {
|
|
564
562
|
default: s(() => [
|
|
565
|
-
|
|
563
|
+
D(_(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
566
564
|
]),
|
|
567
565
|
_: 1
|
|
568
566
|
}),
|
|
569
|
-
|
|
567
|
+
t.needFilter ? (a(), P(d, {
|
|
570
568
|
key: 0,
|
|
571
569
|
title: w.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
572
570
|
}, {
|
|
573
571
|
default: s(() => [
|
|
574
572
|
v("span", {
|
|
575
573
|
class: "hb-lib-form-svg",
|
|
576
|
-
onClick:
|
|
574
|
+
onClick: Q
|
|
577
575
|
}, [...l[0] || (l[0] = [
|
|
578
576
|
v("svg", {
|
|
579
577
|
t: "1757915025410",
|
|
@@ -594,23 +592,23 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
594
592
|
])])
|
|
595
593
|
]),
|
|
596
594
|
_: 1
|
|
597
|
-
}, 8, ["title"])) :
|
|
595
|
+
}, 8, ["title"])) : N("", !0),
|
|
598
596
|
j(w.$slots, "formBtns", {}, void 0, !0)
|
|
599
597
|
])
|
|
600
598
|
]),
|
|
601
599
|
_: 3
|
|
602
600
|
}, 16, ["model", "class"]),
|
|
603
|
-
|
|
601
|
+
t.needFooter ? (a(), S("div", {
|
|
604
602
|
key: 0,
|
|
605
|
-
class: E(n(
|
|
603
|
+
class: E(n(m).e("footer"))
|
|
606
604
|
}, [
|
|
607
605
|
v("div", {
|
|
608
|
-
class: E(n(
|
|
606
|
+
class: E(n(m).e("footer__left"))
|
|
609
607
|
}, [
|
|
610
608
|
j(w.$slots, "form-footer-left", {}, void 0, !0)
|
|
611
609
|
], 2),
|
|
612
610
|
v("div", {
|
|
613
|
-
class: E(n(
|
|
611
|
+
class: E(n(m).e("footer__right"))
|
|
614
612
|
}, [
|
|
615
613
|
c.value == "show" ? j(w.$slots, "form-footer-right", {
|
|
616
614
|
key: 0,
|
|
@@ -621,7 +619,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
621
619
|
onClick: B
|
|
622
620
|
}, {
|
|
623
621
|
default: s(() => [
|
|
624
|
-
|
|
622
|
+
D(_(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
625
623
|
]),
|
|
626
624
|
_: 1
|
|
627
625
|
}),
|
|
@@ -630,38 +628,38 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
630
628
|
onClick: b
|
|
631
629
|
}, {
|
|
632
630
|
default: s(() => [
|
|
633
|
-
|
|
631
|
+
D(_(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
634
632
|
]),
|
|
635
633
|
_: 1
|
|
636
634
|
})
|
|
637
|
-
], !0) :
|
|
635
|
+
], !0) : N("", !0),
|
|
638
636
|
F(n(de), {
|
|
639
637
|
type: "primary",
|
|
640
638
|
onClick: y
|
|
641
639
|
}, {
|
|
642
640
|
default: s(() => [
|
|
643
|
-
|
|
641
|
+
D(_(c.value == "show" ? `${w.$t("hbLibComp.hbListPageAct.close")}` : `${w.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
644
642
|
]),
|
|
645
643
|
_: 1
|
|
646
644
|
})
|
|
647
645
|
], 2)
|
|
648
|
-
], 2)) :
|
|
646
|
+
], 2)) : N("", !0)
|
|
649
647
|
], 2), [
|
|
650
|
-
[et,
|
|
648
|
+
[et, t.isFormExpanded]
|
|
651
649
|
])
|
|
652
650
|
]),
|
|
653
651
|
_: 3
|
|
654
652
|
}),
|
|
655
653
|
F(L, {
|
|
656
|
-
list: e.
|
|
654
|
+
list: e.value,
|
|
657
655
|
ref_key: "HbSfCmRef",
|
|
658
|
-
ref:
|
|
656
|
+
ref: O,
|
|
659
657
|
onConfirm: C
|
|
660
658
|
}, null, 8, ["list"])
|
|
661
659
|
], 64);
|
|
662
660
|
};
|
|
663
661
|
}
|
|
664
|
-
}), $t = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-
|
|
662
|
+
}), $t = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-5df81ec2"]]), Tt = le($t), Mt = { class: "hb-lib-list-page-act-box" }, It = { class: "hb-lib-list-page-breadcrumb" }, Ht = { class: "hb-lib-list-page-act" }, At = {
|
|
665
663
|
key: 0,
|
|
666
664
|
t: "1757915338760",
|
|
667
665
|
class: "icon",
|
|
@@ -691,21 +689,21 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
691
689
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
692
690
|
},
|
|
693
691
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
694
|
-
setup(
|
|
695
|
-
const u =
|
|
696
|
-
const c =
|
|
697
|
-
let
|
|
698
|
-
if (
|
|
699
|
-
let b = JSON.parse(
|
|
700
|
-
b && (
|
|
692
|
+
setup(t, { emit: f }) {
|
|
693
|
+
const u = Se("HB_LIST_PAGE_CONTAINER"), { isFullscreen: i, toggle: x } = vt(u.PageContainerRef), m = R(""), p = () => {
|
|
694
|
+
const c = Ge();
|
|
695
|
+
let e = localStorage.getItem("BreadCrumb") || "[]", h = c?.path;
|
|
696
|
+
if (e !== "[]") {
|
|
697
|
+
let b = JSON.parse(e).find((B) => B.value === h);
|
|
698
|
+
b && (m.value = b.label.replace(/-/g, " / "));
|
|
701
699
|
}
|
|
702
700
|
};
|
|
703
|
-
return
|
|
704
|
-
|
|
705
|
-
}), (c,
|
|
701
|
+
return we(() => {
|
|
702
|
+
p();
|
|
703
|
+
}), (c, e) => {
|
|
706
704
|
const h = q("a-tooltip");
|
|
707
705
|
return a(), S("section", Mt, [
|
|
708
|
-
v("aside", It, _(
|
|
706
|
+
v("aside", It, _(m.value), 1),
|
|
709
707
|
v("aside", Ht, [
|
|
710
708
|
F(h, {
|
|
711
709
|
title: n(i) ? `${c.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${c.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
@@ -714,10 +712,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
714
712
|
default: s(() => [
|
|
715
713
|
v("span", {
|
|
716
714
|
class: "hb-lib-list-page-act-svg",
|
|
717
|
-
onClick:
|
|
718
|
-
(...b) => n(
|
|
715
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
716
|
+
(...b) => n(x) && n(x)(...b))
|
|
719
717
|
}, [
|
|
720
|
-
n(i) ? (a(), S("svg", Dt, [...
|
|
718
|
+
n(i) ? (a(), S("svg", Dt, [...e[2] || (e[2] = [
|
|
721
719
|
v("path", {
|
|
722
720
|
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",
|
|
723
721
|
fill: "#ff5000",
|
|
@@ -733,7 +731,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
733
731
|
fill: "#ff5000",
|
|
734
732
|
"p-id": "23907"
|
|
735
733
|
}, null, -1)
|
|
736
|
-
])])) : (a(), S("svg", At, [...
|
|
734
|
+
])])) : (a(), S("svg", At, [...e[1] || (e[1] = [
|
|
737
735
|
v("path", {
|
|
738
736
|
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",
|
|
739
737
|
fill: "#ff5000",
|
|
@@ -749,7 +747,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
749
747
|
]);
|
|
750
748
|
};
|
|
751
749
|
}
|
|
752
|
-
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]), Rt = le(Bt),
|
|
750
|
+
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]), Rt = le(Bt), Pt = { class: "hb-lib-list-btns-box" }, zt = { class: "hb-lib-list-btns-left" }, Nt = { class: "hb-lib-list-btns-right" }, Vt = /* @__PURE__ */ te({
|
|
753
751
|
name: "HbLibListBtnsAct",
|
|
754
752
|
__name: "HbListBtns",
|
|
755
753
|
props: {
|
|
@@ -759,28 +757,28 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
759
757
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
760
758
|
},
|
|
761
759
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
762
|
-
setup(
|
|
763
|
-
const u = f, i = R(!0),
|
|
760
|
+
setup(t, { emit: f }) {
|
|
761
|
+
const u = f, i = R(!0), x = () => {
|
|
764
762
|
i.value = !i.value, u("handleOpenOrClose", i.value);
|
|
765
|
-
},
|
|
763
|
+
}, m = () => {
|
|
766
764
|
u("handleReload");
|
|
767
765
|
};
|
|
768
|
-
return
|
|
769
|
-
}), (
|
|
770
|
-
const
|
|
771
|
-
return a(), S("section",
|
|
772
|
-
v("aside",
|
|
773
|
-
j(
|
|
766
|
+
return we(() => {
|
|
767
|
+
}), (p, c) => {
|
|
768
|
+
const e = q("a-tooltip");
|
|
769
|
+
return a(), S("section", Pt, [
|
|
770
|
+
v("aside", zt, [
|
|
771
|
+
j(p.$slots, "btnsLeft", {}, void 0, !0)
|
|
774
772
|
]),
|
|
775
|
-
v("aside",
|
|
776
|
-
|
|
773
|
+
v("aside", Nt, [
|
|
774
|
+
t.needReload ? (a(), P(e, {
|
|
777
775
|
key: 0,
|
|
778
|
-
title:
|
|
776
|
+
title: p.$t("hbLibComp.hbListBtnsAct.reload")
|
|
779
777
|
}, {
|
|
780
778
|
default: s(() => [
|
|
781
779
|
v("span", {
|
|
782
780
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
783
|
-
onClick:
|
|
781
|
+
onClick: m
|
|
784
782
|
}, [...c[0] || (c[0] = [
|
|
785
783
|
v("svg", {
|
|
786
784
|
t: "1759041224819",
|
|
@@ -801,35 +799,35 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
801
799
|
])])
|
|
802
800
|
]),
|
|
803
801
|
_: 1
|
|
804
|
-
}, 8, ["title"])) :
|
|
805
|
-
|
|
802
|
+
}, 8, ["title"])) : N("", !0),
|
|
803
|
+
t.needOpenOrClose ? (a(), P(e, {
|
|
806
804
|
key: 1,
|
|
807
|
-
title: i.value ? `${
|
|
805
|
+
title: i.value ? `${p.$t("hbLibComp.hbListBtnsAct.close")}` : `${p.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
808
806
|
}, {
|
|
809
807
|
default: s(() => [
|
|
810
808
|
v("span", {
|
|
811
809
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
812
|
-
onClick:
|
|
810
|
+
onClick: x
|
|
813
811
|
}, [
|
|
814
|
-
i.value ? (a(),
|
|
812
|
+
i.value ? (a(), P(n(ut), {
|
|
815
813
|
key: 0,
|
|
816
814
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
817
|
-
})) : (a(),
|
|
815
|
+
})) : (a(), P(n(ht), {
|
|
818
816
|
key: 1,
|
|
819
817
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
820
818
|
}))
|
|
821
819
|
])
|
|
822
820
|
]),
|
|
823
821
|
_: 1
|
|
824
|
-
}, 8, ["title"])) :
|
|
825
|
-
j(
|
|
822
|
+
}, 8, ["title"])) : N("", !0),
|
|
823
|
+
j(p.$slots, "btnsRight", {}, void 0, !0)
|
|
826
824
|
])
|
|
827
825
|
]);
|
|
828
826
|
};
|
|
829
827
|
}
|
|
830
|
-
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), Ut = le(Et), Yt = (
|
|
831
|
-
const { formRef: f, offsetBottom: u = 50, minHeight: i = 300 } =
|
|
832
|
-
let
|
|
828
|
+
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), Ut = le(Et), Yt = (t = {}) => {
|
|
829
|
+
const { formRef: f, offsetBottom: u = 50, minHeight: i = 300 } = t, x = R(0);
|
|
830
|
+
let m = null, p = null, c = null, e = null, h = null;
|
|
833
831
|
const b = () => {
|
|
834
832
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
835
833
|
requestAnimationFrame(() => {
|
|
@@ -838,7 +836,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
838
836
|
if (T) {
|
|
839
837
|
const M = T.getBoundingClientRect().top, w = window.innerHeight, o = (V ? V.offsetHeight + 20 : 40) + u;
|
|
840
838
|
let d = w - M - o;
|
|
841
|
-
d < i && (d = i),
|
|
839
|
+
d < i && (d = i), x.value = d;
|
|
842
840
|
}
|
|
843
841
|
});
|
|
844
842
|
});
|
|
@@ -857,14 +855,14 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
857
855
|
}), V;
|
|
858
856
|
}
|
|
859
857
|
return null;
|
|
860
|
-
},
|
|
858
|
+
}, O = () => {
|
|
861
859
|
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
862
|
-
T && (
|
|
860
|
+
T && (m = new ResizeObserver(() => {
|
|
863
861
|
document.querySelectorAll(".ant-tooltip").forEach((M) => {
|
|
864
862
|
M.style.display = "none";
|
|
865
863
|
}), b();
|
|
866
|
-
}),
|
|
867
|
-
},
|
|
864
|
+
}), m.observe(T));
|
|
865
|
+
}, Q = () => {
|
|
868
866
|
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
869
867
|
T && (c = new MutationObserver(() => {
|
|
870
868
|
setTimeout(() => {
|
|
@@ -877,17 +875,17 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
877
875
|
attributeFilter: ["style", "class"]
|
|
878
876
|
}));
|
|
879
877
|
}, C = () => {
|
|
880
|
-
|
|
878
|
+
e && clearTimeout(e), e = setTimeout(() => {
|
|
881
879
|
b();
|
|
882
880
|
}, 100);
|
|
883
881
|
}, y = () => {
|
|
884
882
|
window.addEventListener("resize", C), he(() => {
|
|
885
|
-
|
|
883
|
+
O(), Q(), p = B();
|
|
886
884
|
});
|
|
887
885
|
}, I = () => {
|
|
888
|
-
window.removeEventListener("resize", C),
|
|
886
|
+
window.removeEventListener("resize", C), m && m.disconnect(), c && c.disconnect(), p && p.disconnect(), e && clearTimeout(e), h && clearTimeout(h);
|
|
889
887
|
};
|
|
890
|
-
return f &&
|
|
888
|
+
return f && se(
|
|
891
889
|
() => f,
|
|
892
890
|
() => {
|
|
893
891
|
setTimeout(() => {
|
|
@@ -895,12 +893,12 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
895
893
|
}, 200);
|
|
896
894
|
},
|
|
897
895
|
{ deep: !0 }
|
|
898
|
-
),
|
|
896
|
+
), we(() => {
|
|
899
897
|
b(), y();
|
|
900
898
|
}), tt(() => {
|
|
901
899
|
I();
|
|
902
900
|
}), {
|
|
903
|
-
tableHeight:
|
|
901
|
+
tableHeight: x,
|
|
904
902
|
calTableHeight: b
|
|
905
903
|
};
|
|
906
904
|
}, jt = /* @__PURE__ */ te({
|
|
@@ -912,32 +910,32 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
912
910
|
offsetBottom: {},
|
|
913
911
|
minHeight: {}
|
|
914
912
|
},
|
|
915
|
-
setup(
|
|
916
|
-
const f =
|
|
913
|
+
setup(t) {
|
|
914
|
+
const f = t, u = lt("PageContainerRef"), { calTableHeight: i, tableHeight: x } = Yt({
|
|
917
915
|
offsetBottom: f.offsetBottom || 20,
|
|
918
916
|
// 底部预留空间
|
|
919
917
|
minHeight: f.minHeight || 300
|
|
920
918
|
// table最小高度 请勿随便修改!!
|
|
921
|
-
}),
|
|
919
|
+
}), m = W(() => x.value);
|
|
922
920
|
return ot("HB_LIST_PAGE_CONTAINER", {
|
|
923
921
|
PageContainerRef: u,
|
|
924
922
|
// 通过函数访问,
|
|
925
|
-
tableHeight:
|
|
923
|
+
tableHeight: x,
|
|
926
924
|
calTableHeight: i
|
|
927
|
-
}), (
|
|
925
|
+
}), (p, c) => (a(), S("section", {
|
|
928
926
|
class: "hb-lib-list-page-container",
|
|
929
927
|
ref_key: "PageContainerRef",
|
|
930
928
|
ref: u
|
|
931
929
|
}, [
|
|
932
|
-
j(
|
|
930
|
+
j(p.$slots, "header"),
|
|
933
931
|
v("section", {
|
|
934
932
|
class: "list-page-box",
|
|
935
|
-
style:
|
|
936
|
-
"--hb-list-table-height":
|
|
937
|
-
"--hb-list-ttable-height":
|
|
933
|
+
style: me({
|
|
934
|
+
"--hb-list-table-height": m.value - 20 + "px",
|
|
935
|
+
"--hb-list-ttable-height": t.tabelData.length ? "" : m.value - 20 + "px"
|
|
938
936
|
})
|
|
939
937
|
}, [
|
|
940
|
-
j(
|
|
938
|
+
j(p.$slots, "default")
|
|
941
939
|
], 4)
|
|
942
940
|
], 512));
|
|
943
941
|
}
|
|
@@ -956,7 +954,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
956
954
|
}, nl = { class: "hb-lib-footer-buttons" }, sl = /* @__PURE__ */ te({
|
|
957
955
|
name: "HbLibListMultiSelect",
|
|
958
956
|
__name: "HbListMultiSelect",
|
|
959
|
-
props: /* @__PURE__ */
|
|
957
|
+
props: /* @__PURE__ */ Te({
|
|
960
958
|
title: { default: "请选择" },
|
|
961
959
|
placeholder: { default: "点击选择" },
|
|
962
960
|
searchPlaceholder: { default: "搜索选项" },
|
|
@@ -973,44 +971,44 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
973
971
|
value: {},
|
|
974
972
|
valueModifiers: {}
|
|
975
973
|
}),
|
|
976
|
-
emits: /* @__PURE__ */
|
|
977
|
-
setup(
|
|
978
|
-
const u =
|
|
979
|
-
if (u.remoteSearch || !
|
|
980
|
-
const l =
|
|
974
|
+
emits: /* @__PURE__ */ Te(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
975
|
+
setup(t, { emit: f }) {
|
|
976
|
+
const u = t, i = f, x = at(t, "value"), m = R(!1), p = R(""), c = R([]), e = R(), h = W(() => {
|
|
977
|
+
if (u.remoteSearch || !p.value) return u.options;
|
|
978
|
+
const l = p.value.toLowerCase();
|
|
981
979
|
return u.options.filter((o) => o.label.toLowerCase().includes(l) || o.description?.toLowerCase().includes(l));
|
|
982
|
-
}), b = W(() => u.prefix ? `${u.prefix.length * 14 + 8}px` : "0px"), B = W(() => h.value.length === 0 ? !1 : h.value.every((l) => c.value.includes(l.value))),
|
|
980
|
+
}), b = W(() => u.prefix ? `${u.prefix.length * 14 + 8}px` : "0px"), B = W(() => h.value.length === 0 ? !1 : h.value.every((l) => c.value.includes(l.value))), O = W(() => {
|
|
983
981
|
if (h.value.length === 0) return !1;
|
|
984
982
|
const l = h.value.filter((o) => c.value.includes(o.value)).length;
|
|
985
983
|
return l > 0 && l < h.value.length;
|
|
986
984
|
});
|
|
987
|
-
|
|
988
|
-
() =>
|
|
985
|
+
se(
|
|
986
|
+
() => x.value,
|
|
989
987
|
(l) => {
|
|
990
988
|
l ? c.value = Array.isArray(l) ? [...l] : [l] : c.value = [];
|
|
991
989
|
},
|
|
992
990
|
{ immediate: !0 }
|
|
993
|
-
),
|
|
991
|
+
), se(
|
|
994
992
|
() => u.searchValue,
|
|
995
993
|
(l) => {
|
|
996
|
-
u.remoteSearch && l !== void 0 && (
|
|
994
|
+
u.remoteSearch && l !== void 0 && (p.value = l);
|
|
997
995
|
},
|
|
998
996
|
{ immediate: !0 }
|
|
999
997
|
);
|
|
1000
|
-
const
|
|
1001
|
-
l && (
|
|
1002
|
-
if (
|
|
1003
|
-
const o =
|
|
998
|
+
const Q = (l) => {
|
|
999
|
+
l && (m.value = l, C.value = [...c.value], p.value = "", setTimeout(() => {
|
|
1000
|
+
if (e.value) {
|
|
1001
|
+
const o = e.value.input || e.value.$el?.querySelector("input");
|
|
1004
1002
|
o && o.focus();
|
|
1005
1003
|
}
|
|
1006
1004
|
}, 100));
|
|
1007
1005
|
}, C = R([]), y = () => {
|
|
1008
|
-
c.value = [...C.value],
|
|
1006
|
+
c.value = [...C.value], m.value = !1, i("cancel");
|
|
1009
1007
|
}, I = R([]), T = () => {
|
|
1010
1008
|
const l = u.multiple ? c.value : c.value[0] || "", o = u.options.filter((d) => c.value.includes(d.value));
|
|
1011
|
-
I.value = o, console.log(l, o), C.value = [...c.value],
|
|
1009
|
+
I.value = o, console.log(l, o), C.value = [...c.value], x.value = l, i("update:value", l), i("change", l, o), i("confirm", l, o), m.value = !1;
|
|
1012
1010
|
}, V = gt((l) => {
|
|
1013
|
-
const o = l !== void 0 ? l :
|
|
1011
|
+
const o = l !== void 0 ? l : p.value;
|
|
1014
1012
|
u.remoteSearch && (i("search", o), i("update:searchValue", o));
|
|
1015
1013
|
}, 300), M = (l) => {
|
|
1016
1014
|
if (u.multiple) {
|
|
@@ -1030,37 +1028,37 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1030
1028
|
}
|
|
1031
1029
|
};
|
|
1032
1030
|
return (l, o) => {
|
|
1033
|
-
const d = q("a-tag"), L = q("a-input"), r = q("a-checkbox"),
|
|
1031
|
+
const d = q("a-tag"), L = q("a-input"), r = q("a-checkbox"), Y = q("a-radio"), z = q("a-button"), ee = q("a-select");
|
|
1034
1032
|
return a(), S("div", X({
|
|
1035
1033
|
class: "hb-lib-selector-wrapper",
|
|
1036
1034
|
style: { "--prefix-width": b.value }
|
|
1037
1035
|
}, l.$attrs), [
|
|
1038
1036
|
F(ee, {
|
|
1039
|
-
value:
|
|
1040
|
-
"onUpdate:value": o[5] || (o[5] = (J) =>
|
|
1041
|
-
mode:
|
|
1042
|
-
placeholder:
|
|
1037
|
+
value: x.value,
|
|
1038
|
+
"onUpdate:value": o[5] || (o[5] = (J) => x.value = J),
|
|
1039
|
+
mode: t.multiple ? "multiple" : void 0,
|
|
1040
|
+
placeholder: t.placeholder,
|
|
1043
1041
|
"show-search": !0,
|
|
1044
1042
|
"filter-option": !1,
|
|
1045
|
-
open:
|
|
1043
|
+
open: m.value,
|
|
1046
1044
|
allowClear: "",
|
|
1047
|
-
maxTagCount:
|
|
1045
|
+
maxTagCount: t.maxTagCount,
|
|
1048
1046
|
options: h.value,
|
|
1049
|
-
onDropdownVisibleChange:
|
|
1047
|
+
onDropdownVisibleChange: Q,
|
|
1050
1048
|
onSearch: n(V),
|
|
1051
|
-
"max-tag-text-length":
|
|
1052
|
-
class: E({ "has-prefix":
|
|
1053
|
-
"data-prefix":
|
|
1049
|
+
"max-tag-text-length": t.tagTextLength,
|
|
1050
|
+
class: E({ "has-prefix": t.prefix }),
|
|
1051
|
+
"data-prefix": t.prefix,
|
|
1054
1052
|
style: { width: "100%" }
|
|
1055
1053
|
}, {
|
|
1056
|
-
tagRender: s(({ value: J, label: K, closable: k, option:
|
|
1054
|
+
tagRender: s(({ value: J, label: K, closable: k, option: H }) => [
|
|
1057
1055
|
F(d, {
|
|
1058
1056
|
class: "hb-lib-search-tag",
|
|
1059
|
-
onClick: o[0] || (o[0] = () =>
|
|
1057
|
+
onClick: o[0] || (o[0] = () => Q(!0))
|
|
1060
1058
|
}, {
|
|
1061
1059
|
default: s(() => [
|
|
1062
1060
|
v("span", Kt, _(K), 1),
|
|
1063
|
-
|
|
1061
|
+
H?.description ? (a(), S("span", Wt, " (" + _(H.description) + ") ", 1)) : N("", !0)
|
|
1064
1062
|
]),
|
|
1065
1063
|
_: 2
|
|
1066
1064
|
}, 1024)
|
|
@@ -1070,37 +1068,37 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1070
1068
|
v("div", Gt, [
|
|
1071
1069
|
F(L, {
|
|
1072
1070
|
ref_key: "searchInputRef",
|
|
1073
|
-
ref:
|
|
1071
|
+
ref: e,
|
|
1074
1072
|
class: "hb-lib-selector-search-input",
|
|
1075
|
-
value:
|
|
1076
|
-
"onUpdate:value": o[1] || (o[1] = (K) =>
|
|
1073
|
+
value: p.value,
|
|
1074
|
+
"onUpdate:value": o[1] || (o[1] = (K) => p.value = K),
|
|
1077
1075
|
placeholder: "请输入关键词搜索",
|
|
1078
1076
|
"allow-clear": "",
|
|
1079
1077
|
onInput: o[2] || (o[2] = (K) => n(V)(K.target.value))
|
|
1080
1078
|
}, {
|
|
1081
1079
|
prefix: s(() => [
|
|
1082
|
-
F(n(
|
|
1080
|
+
F(n(Fe))
|
|
1083
1081
|
]),
|
|
1084
1082
|
_: 1
|
|
1085
1083
|
}, 8, ["value"])
|
|
1086
1084
|
]),
|
|
1087
1085
|
v("div", Qt, [
|
|
1088
|
-
(a(!0), S(
|
|
1086
|
+
(a(!0), S(G, null, ae(h.value, (K) => (a(), S("div", {
|
|
1089
1087
|
key: K.value,
|
|
1090
1088
|
class: E(["hb-lib-selector-option", { selected: c.value.includes(K.value) }]),
|
|
1091
1089
|
onClick: () => M(K)
|
|
1092
1090
|
}, [
|
|
1093
|
-
|
|
1091
|
+
t.multiple ? (a(), P(r, {
|
|
1094
1092
|
key: 0,
|
|
1095
1093
|
checked: c.value.includes(K.value),
|
|
1096
1094
|
onChange: () => M(K),
|
|
1097
|
-
onClick: o[3] || (o[3] =
|
|
1095
|
+
onClick: o[3] || (o[3] = Le(() => {
|
|
1098
1096
|
}, ["stop"]))
|
|
1099
|
-
}, null, 8, ["checked", "onChange"])) : (a(),
|
|
1097
|
+
}, null, 8, ["checked", "onChange"])) : (a(), P(Y, {
|
|
1100
1098
|
key: 1,
|
|
1101
1099
|
checked: c.value.includes(K.value),
|
|
1102
1100
|
onChange: () => M(K),
|
|
1103
|
-
onClick: o[4] || (o[4] =
|
|
1101
|
+
onClick: o[4] || (o[4] = Le(() => {
|
|
1104
1102
|
}, ["stop"]))
|
|
1105
1103
|
}, null, 8, ["checked", "onChange"])),
|
|
1106
1104
|
v("div", Xt, [
|
|
@@ -1108,35 +1106,35 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1108
1106
|
])
|
|
1109
1107
|
], 10, Zt))), 128))
|
|
1110
1108
|
]),
|
|
1111
|
-
h.value.length === 0 ? (a(), S("div", tl, _(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) :
|
|
1112
|
-
|
|
1109
|
+
h.value.length === 0 ? (a(), S("div", tl, _(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : N("", !0),
|
|
1110
|
+
t.multiple ? (a(), S("div", ll, [
|
|
1113
1111
|
F(r, {
|
|
1114
1112
|
checked: B.value,
|
|
1115
|
-
indeterminate:
|
|
1113
|
+
indeterminate: O.value,
|
|
1116
1114
|
onChange: w
|
|
1117
1115
|
}, {
|
|
1118
1116
|
default: s(() => [
|
|
1119
|
-
|
|
1117
|
+
D(_(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1120
1118
|
]),
|
|
1121
1119
|
_: 1
|
|
1122
1120
|
}, 8, ["checked", "indeterminate"]),
|
|
1123
1121
|
v("div", ol, [
|
|
1124
|
-
F(
|
|
1122
|
+
F(z, {
|
|
1125
1123
|
size: "small",
|
|
1126
1124
|
onClick: y
|
|
1127
1125
|
}, {
|
|
1128
1126
|
default: s(() => [
|
|
1129
|
-
|
|
1127
|
+
D(_(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1130
1128
|
]),
|
|
1131
1129
|
_: 1
|
|
1132
1130
|
}),
|
|
1133
|
-
F(
|
|
1131
|
+
F(z, {
|
|
1134
1132
|
type: "primary",
|
|
1135
1133
|
size: "small",
|
|
1136
1134
|
onClick: T
|
|
1137
1135
|
}, {
|
|
1138
1136
|
default: s(() => [
|
|
1139
|
-
|
|
1137
|
+
D(_(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1140
1138
|
]),
|
|
1141
1139
|
_: 1
|
|
1142
1140
|
})
|
|
@@ -1144,12 +1142,12 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1144
1142
|
])) : (a(), S("div", al, [
|
|
1145
1143
|
o[6] || (o[6] = v("div", null, null, -1)),
|
|
1146
1144
|
v("div", nl, [
|
|
1147
|
-
F(
|
|
1145
|
+
F(z, {
|
|
1148
1146
|
size: "small",
|
|
1149
1147
|
onClick: y
|
|
1150
1148
|
}, {
|
|
1151
1149
|
default: s(() => [
|
|
1152
|
-
|
|
1150
|
+
D(_(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1153
1151
|
]),
|
|
1154
1152
|
_: 1
|
|
1155
1153
|
})
|
|
@@ -1175,11 +1173,11 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1175
1173
|
labelKey: { default: "label" }
|
|
1176
1174
|
},
|
|
1177
1175
|
emits: ["handleConfirm", "handleCancel"],
|
|
1178
|
-
setup(
|
|
1179
|
-
const i =
|
|
1176
|
+
setup(t, { expose: f, emit: u }) {
|
|
1177
|
+
const i = t, x = u, m = R(!1), p = R(""), c = R(), e = R(), h = R([]), b = R([]), B = R(), O = We({
|
|
1180
1178
|
searchText: "",
|
|
1181
1179
|
searchedColumn: ""
|
|
1182
|
-
}),
|
|
1180
|
+
}), Q = W(() => i.tableData.map((d) => (d.id = d.id || Math.random(), d))), C = W(() => i.tableColumn.map((d) => (d.customFilterDropdown && (d.onFilter = (L, r) => r[d.dataIndex].toString().toLowerCase().includes(L.toLowerCase()), d.onFilterDropdownVisibleChange = (L) => {
|
|
1183
1181
|
L && setTimeout(() => {
|
|
1184
1182
|
c.value?.focus();
|
|
1185
1183
|
}, 100);
|
|
@@ -1187,39 +1185,39 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1187
1185
|
let d = "";
|
|
1188
1186
|
b.value.forEach((L) => {
|
|
1189
1187
|
d = d + L[i.labelKey] + ",";
|
|
1190
|
-
}),
|
|
1188
|
+
}), p.value = d.substring(0, d.length - 1), m.value = !1, x("handleConfirm", b.value);
|
|
1191
1189
|
}, I = () => {
|
|
1192
|
-
|
|
1190
|
+
m.value = !1;
|
|
1193
1191
|
}, T = () => {
|
|
1194
|
-
|
|
1192
|
+
m.value = !0, he(() => {
|
|
1195
1193
|
const d = B.value?.$el?.querySelector(".ant-table-body");
|
|
1196
1194
|
d && (d.scrollTop = 0);
|
|
1197
1195
|
});
|
|
1198
1196
|
}, V = () => {
|
|
1199
1197
|
h.value = [], b.value = [];
|
|
1200
1198
|
}, M = () => {
|
|
1201
|
-
|
|
1199
|
+
p.value = "", V();
|
|
1202
1200
|
}, w = (d, L, r) => {
|
|
1203
|
-
L(),
|
|
1201
|
+
L(), O.searchText = d[0], O.searchedColumn = r;
|
|
1204
1202
|
}, l = (d, L) => {
|
|
1205
|
-
d({ confirm: !0 }),
|
|
1203
|
+
d({ confirm: !0 }), O.searchText = "", L();
|
|
1206
1204
|
}, o = (d, L) => {
|
|
1207
1205
|
h.value = d, b.value = L;
|
|
1208
1206
|
};
|
|
1209
1207
|
return f({
|
|
1210
1208
|
resetInputVal: M
|
|
1211
1209
|
}), (d, L) => {
|
|
1212
|
-
const r = q("a-input"),
|
|
1210
|
+
const r = q("a-input"), Y = q("a-button"), z = q("a-table"), ee = q("a-modal");
|
|
1213
1211
|
return a(), S("div", {
|
|
1214
1212
|
class: "hb-lib-multipleSelectModal-box",
|
|
1215
1213
|
ref_key: "hbMultipSelectModalRef",
|
|
1216
|
-
ref:
|
|
1214
|
+
ref: e
|
|
1217
1215
|
}, [
|
|
1218
1216
|
F(r, {
|
|
1219
1217
|
readonly: "",
|
|
1220
1218
|
onClick: T,
|
|
1221
|
-
value:
|
|
1222
|
-
"onUpdate:value": L[0] || (L[0] = (J) =>
|
|
1219
|
+
value: p.value,
|
|
1220
|
+
"onUpdate:value": L[0] || (L[0] = (J) => p.value = J),
|
|
1223
1221
|
placeholder: d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1224
1222
|
}, {
|
|
1225
1223
|
addonAfter: s(() => [
|
|
@@ -1228,46 +1226,46 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1228
1226
|
_: 1
|
|
1229
1227
|
}, 8, ["value", "placeholder"]),
|
|
1230
1228
|
F(ee, {
|
|
1231
|
-
visible:
|
|
1232
|
-
"onUpdate:visible": L[1] || (L[1] = (J) =>
|
|
1233
|
-
title:
|
|
1234
|
-
width:
|
|
1229
|
+
visible: m.value,
|
|
1230
|
+
"onUpdate:visible": L[1] || (L[1] = (J) => m.value = J),
|
|
1231
|
+
title: t.modelTitle,
|
|
1232
|
+
width: t.modalWidth,
|
|
1235
1233
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1236
1234
|
}, {
|
|
1237
1235
|
footer: s(() => [
|
|
1238
|
-
F(
|
|
1236
|
+
F(Y, { onClick: V }, {
|
|
1239
1237
|
default: s(() => [
|
|
1240
|
-
|
|
1238
|
+
D(_(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1241
1239
|
]),
|
|
1242
1240
|
_: 1
|
|
1243
1241
|
}),
|
|
1244
|
-
F(
|
|
1242
|
+
F(Y, { onClick: I }, {
|
|
1245
1243
|
default: s(() => [
|
|
1246
|
-
|
|
1244
|
+
D(_(d.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1247
1245
|
]),
|
|
1248
1246
|
_: 1
|
|
1249
1247
|
}),
|
|
1250
|
-
F(
|
|
1248
|
+
F(Y, {
|
|
1251
1249
|
type: "primary",
|
|
1252
1250
|
onClick: y
|
|
1253
1251
|
}, {
|
|
1254
1252
|
default: s(() => [
|
|
1255
|
-
|
|
1253
|
+
D(_(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1256
1254
|
]),
|
|
1257
1255
|
_: 1
|
|
1258
1256
|
})
|
|
1259
1257
|
]),
|
|
1260
1258
|
default: s(() => [
|
|
1261
|
-
F(
|
|
1259
|
+
F(z, {
|
|
1262
1260
|
ref_key: "tableRef",
|
|
1263
1261
|
ref: B,
|
|
1264
1262
|
columns: C.value,
|
|
1265
|
-
dataSource:
|
|
1263
|
+
dataSource: Q.value,
|
|
1266
1264
|
rowSelection: { selectedRowKeys: h.value, onChange: o },
|
|
1267
|
-
rowKey: (J) => J[
|
|
1268
|
-
scroll: { y:
|
|
1265
|
+
rowKey: (J) => J[t.tableKey],
|
|
1266
|
+
scroll: { y: t.tableHeight }
|
|
1269
1267
|
}, {
|
|
1270
|
-
customFilterDropdown: s(({ setSelectedKeys: J, selectedKeys: K, confirm: k, clearFilters:
|
|
1268
|
+
customFilterDropdown: s(({ setSelectedKeys: J, selectedKeys: K, confirm: k, clearFilters: H, column: g }) => [
|
|
1271
1269
|
v("div", cl, [
|
|
1272
1270
|
F(r, {
|
|
1273
1271
|
ref_key: "searchInput",
|
|
@@ -1275,27 +1273,27 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1275
1273
|
placeholder: `请输入${g.title}`,
|
|
1276
1274
|
value: K[0],
|
|
1277
1275
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1278
|
-
onChange: (
|
|
1279
|
-
onPressEnter: (
|
|
1276
|
+
onChange: (U) => J(U.target.value ? [U.target.value] : []),
|
|
1277
|
+
onPressEnter: (U) => w(K, k, g.dataIndex)
|
|
1280
1278
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1281
1279
|
v("section", dl, [
|
|
1282
|
-
F(
|
|
1280
|
+
F(Y, {
|
|
1283
1281
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1284
1282
|
type: "ghost",
|
|
1285
|
-
onClick: (
|
|
1283
|
+
onClick: (U) => l(H, k)
|
|
1286
1284
|
}, {
|
|
1287
1285
|
default: s(() => [
|
|
1288
|
-
|
|
1286
|
+
D(_(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1289
1287
|
]),
|
|
1290
1288
|
_: 1
|
|
1291
1289
|
}, 8, ["onClick"]),
|
|
1292
|
-
F(
|
|
1290
|
+
F(Y, {
|
|
1293
1291
|
type: "primary",
|
|
1294
1292
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1295
|
-
onClick: (
|
|
1293
|
+
onClick: (U) => w(K, k, g.dataIndex)
|
|
1296
1294
|
}, {
|
|
1297
1295
|
default: s(() => [
|
|
1298
|
-
|
|
1296
|
+
D(_(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1299
1297
|
]),
|
|
1300
1298
|
_: 1
|
|
1301
1299
|
}, 8, ["onClick"])
|
|
@@ -1303,21 +1301,21 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1303
1301
|
])
|
|
1304
1302
|
]),
|
|
1305
1303
|
customFilterIcon: s(({ filtered: J }) => [
|
|
1306
|
-
F(n(
|
|
1307
|
-
style:
|
|
1304
|
+
F(n(Fe), {
|
|
1305
|
+
style: me({ color: J ? "#108ee9" : void 0 })
|
|
1308
1306
|
}, null, 8, ["style"])
|
|
1309
1307
|
]),
|
|
1310
1308
|
bodyCell: s(({ text: J, column: K }) => [
|
|
1311
|
-
|
|
1312
|
-
(a(!0), S(
|
|
1313
|
-
k.toLowerCase() ===
|
|
1314
|
-
key:
|
|
1309
|
+
O.searchText && O.searchedColumn === K.dataIndex ? (a(), S("span", ul, [
|
|
1310
|
+
(a(!0), S(G, null, ae(J.toString().split(new RegExp(`(?<=${O.searchText})|(?=${O.searchText})`, "i")), (k, H) => (a(), S(G, null, [
|
|
1311
|
+
k.toLowerCase() === O.searchText.toLowerCase() ? (a(), S("mark", {
|
|
1312
|
+
key: H,
|
|
1315
1313
|
class: "highlight"
|
|
1316
|
-
}, _(k), 1)) : (a(), S(
|
|
1317
|
-
|
|
1314
|
+
}, _(k), 1)) : (a(), S(G, { key: 1 }, [
|
|
1315
|
+
D(_(k), 1)
|
|
1318
1316
|
], 64))
|
|
1319
1317
|
], 64))), 256))
|
|
1320
|
-
])) :
|
|
1318
|
+
])) : N("", !0)
|
|
1321
1319
|
]),
|
|
1322
1320
|
_: 1
|
|
1323
1321
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1327,7 +1325,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1327
1325
|
], 512);
|
|
1328
1326
|
};
|
|
1329
1327
|
}
|
|
1330
|
-
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" },
|
|
1328
|
+
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1331
1329
|
href: "javascript:;",
|
|
1332
1330
|
class: "hb-lib-table-main-action"
|
|
1333
1331
|
}, vl = ["onClick"], gl = {
|
|
@@ -1341,117 +1339,117 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1341
1339
|
record: {},
|
|
1342
1340
|
buttonDisplaysQuantity: {}
|
|
1343
1341
|
},
|
|
1344
|
-
setup(
|
|
1345
|
-
const u =
|
|
1342
|
+
setup(t, { expose: f }) {
|
|
1343
|
+
const u = t, { t: i } = ce(), x = R(!1), m = R(!1), p = R(null), c = W(() => u.actions.filter((y) => y.condition !== void 0 ? y.condition : !0)), e = W(() => c.value.slice(0, u.buttonDisplaysQuantity)), h = W(() => c.value.slice(u.buttonDisplaysQuantity)), b = (y) => {
|
|
1346
1344
|
y.handler && y.handler(u.record);
|
|
1347
1345
|
}, B = (y) => {
|
|
1348
|
-
|
|
1349
|
-
},
|
|
1350
|
-
if (
|
|
1351
|
-
|
|
1346
|
+
p.value = y, x.value = !0;
|
|
1347
|
+
}, O = () => {
|
|
1348
|
+
if (p.value) {
|
|
1349
|
+
m.value = !0;
|
|
1352
1350
|
try {
|
|
1353
|
-
b(
|
|
1351
|
+
b(p.value), m.value = !1, x.value = !1;
|
|
1354
1352
|
} catch {
|
|
1355
|
-
|
|
1353
|
+
m.value = !1;
|
|
1356
1354
|
}
|
|
1357
1355
|
}
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1360
|
-
}, C = W(() =>
|
|
1361
|
-
title:
|
|
1362
|
-
content:
|
|
1356
|
+
}, Q = () => {
|
|
1357
|
+
x.value = !1, p.value = null;
|
|
1358
|
+
}, C = W(() => p.value ? {
|
|
1359
|
+
title: p.value.confirmTitle,
|
|
1360
|
+
content: p.value.confirmContent || p.value.confirmTitle
|
|
1363
1361
|
} : {
|
|
1364
1362
|
title: i("hbLibComp.hbTableAct.secendConfirm"),
|
|
1365
1363
|
content: i("hbLibComp.hbTableAct.confirmContent")
|
|
1366
1364
|
});
|
|
1367
1365
|
return f({
|
|
1368
|
-
ADropdown:
|
|
1369
|
-
AMenu:
|
|
1370
|
-
AMenuItem:
|
|
1371
|
-
APopconfirm:
|
|
1372
|
-
AModal:
|
|
1373
|
-
DownOutlined:
|
|
1366
|
+
ADropdown: je,
|
|
1367
|
+
AMenu: Ye,
|
|
1368
|
+
AMenuItem: Ue,
|
|
1369
|
+
APopconfirm: ye,
|
|
1370
|
+
AModal: ke,
|
|
1371
|
+
DownOutlined: Me
|
|
1374
1372
|
}), (y, I) => {
|
|
1375
1373
|
const T = q("a-divider"), V = nt("has");
|
|
1376
1374
|
return a(), S("div", fl, [
|
|
1377
|
-
(a(!0), S(
|
|
1378
|
-
M.needConfirm ? (a(), S(
|
|
1379
|
-
M.confirmType === "modal" ?
|
|
1375
|
+
(a(!0), S(G, null, ae(e.value, (M, w) => (a(), S(G, { key: w }, [
|
|
1376
|
+
M.needConfirm ? (a(), S(G, { key: 0 }, [
|
|
1377
|
+
M.confirmType === "modal" ? re((a(), S("a", {
|
|
1380
1378
|
key: 0,
|
|
1381
1379
|
href: "javascript:;",
|
|
1382
1380
|
onClick: (l) => B(M),
|
|
1383
1381
|
class: "hb-lib-table-main-action"
|
|
1384
1382
|
}, [
|
|
1385
|
-
|
|
1386
|
-
], 8,
|
|
1383
|
+
D(_(M.label), 1)
|
|
1384
|
+
], 8, pl)), [
|
|
1387
1385
|
[V, M.permissionsTag || null]
|
|
1388
|
-
]) : (a(),
|
|
1386
|
+
]) : (a(), P(n(ye), {
|
|
1389
1387
|
key: 1,
|
|
1390
1388
|
title: M.confirmTitle,
|
|
1391
1389
|
onConfirm: (l) => b(M)
|
|
1392
1390
|
}, {
|
|
1393
1391
|
default: s(() => [
|
|
1394
|
-
|
|
1395
|
-
|
|
1392
|
+
re((a(), S("a", ml, [
|
|
1393
|
+
D(_(M.label), 1)
|
|
1396
1394
|
])), [
|
|
1397
1395
|
[V, M.permissionsTag || null]
|
|
1398
1396
|
])
|
|
1399
1397
|
]),
|
|
1400
1398
|
_: 2
|
|
1401
1399
|
}, 1032, ["title", "onConfirm"]))
|
|
1402
|
-
], 64)) : (a(), S(
|
|
1403
|
-
|
|
1400
|
+
], 64)) : (a(), S(G, { key: 1 }, [
|
|
1401
|
+
re((a(), S("a", {
|
|
1404
1402
|
href: "javascript:;",
|
|
1405
1403
|
onClick: (l) => b(M),
|
|
1406
1404
|
class: "hb-lib-table-main-action"
|
|
1407
1405
|
}, [
|
|
1408
|
-
|
|
1406
|
+
D(_(M.label), 1)
|
|
1409
1407
|
], 8, vl)), [
|
|
1410
1408
|
[V, M.permissionsTag || null]
|
|
1411
1409
|
]),
|
|
1412
|
-
h.value && h.value.length > 0 || w !==
|
|
1410
|
+
h.value && h.value.length > 0 || w !== e.value.length - 1 ? (a(), P(T, {
|
|
1413
1411
|
key: 0,
|
|
1414
1412
|
type: "vertical"
|
|
1415
|
-
})) :
|
|
1413
|
+
})) : N("", !0)
|
|
1416
1414
|
], 64))
|
|
1417
1415
|
], 64))), 128)),
|
|
1418
|
-
h.value && h.value.length > 0 ? (a(),
|
|
1416
|
+
h.value && h.value.length > 0 ? (a(), P(n(je), { key: 0 }, {
|
|
1419
1417
|
overlay: s(() => [
|
|
1420
|
-
F(n(
|
|
1418
|
+
F(n(Ye), null, {
|
|
1421
1419
|
default: s(() => [
|
|
1422
|
-
(a(!0), S(
|
|
1420
|
+
(a(!0), S(G, null, ae(h.value, (M) => (a(), P(n(Ue), {
|
|
1423
1421
|
key: M.key
|
|
1424
1422
|
}, {
|
|
1425
1423
|
default: s(() => [
|
|
1426
|
-
M.needConfirm ? (a(), S(
|
|
1427
|
-
M.confirmType === "modal" ?
|
|
1424
|
+
M.needConfirm ? (a(), S(G, { key: 0 }, [
|
|
1425
|
+
M.confirmType === "modal" ? re((a(), S("a", {
|
|
1428
1426
|
key: 0,
|
|
1429
1427
|
href: "javascript:;",
|
|
1430
1428
|
onClick: (w) => B(M)
|
|
1431
1429
|
}, [
|
|
1432
|
-
|
|
1430
|
+
D(_(M.label), 1)
|
|
1433
1431
|
], 8, yl)), [
|
|
1434
1432
|
[V, M.permissionsTag || null]
|
|
1435
|
-
]) : (a(),
|
|
1433
|
+
]) : (a(), P(n(ye), {
|
|
1436
1434
|
key: 1,
|
|
1437
1435
|
title: M.confirmTitle,
|
|
1438
1436
|
onConfirm: (w) => b(M)
|
|
1439
1437
|
}, {
|
|
1440
1438
|
default: s(() => [
|
|
1441
|
-
|
|
1442
|
-
|
|
1439
|
+
re((a(), S("a", Cl, [
|
|
1440
|
+
D(_(M.label), 1)
|
|
1443
1441
|
])), [
|
|
1444
1442
|
[V, M.permissionsTag || null]
|
|
1445
1443
|
])
|
|
1446
1444
|
]),
|
|
1447
1445
|
_: 2
|
|
1448
1446
|
}, 1032, ["title", "onConfirm"]))
|
|
1449
|
-
], 64)) :
|
|
1447
|
+
], 64)) : re((a(), S("a", {
|
|
1450
1448
|
key: 1,
|
|
1451
1449
|
href: "javascript:;",
|
|
1452
1450
|
onClick: (w) => b(M)
|
|
1453
1451
|
}, [
|
|
1454
|
-
|
|
1452
|
+
D(_(M.label), 1)
|
|
1455
1453
|
], 8, Ll)), [
|
|
1456
1454
|
[V, M.permissionsTag || null]
|
|
1457
1455
|
])
|
|
@@ -1464,18 +1462,18 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1464
1462
|
]),
|
|
1465
1463
|
default: s(() => [
|
|
1466
1464
|
v("a", gl, [
|
|
1467
|
-
|
|
1468
|
-
F(n(
|
|
1465
|
+
D(_(y.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1466
|
+
F(n(Me), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1469
1467
|
])
|
|
1470
1468
|
]),
|
|
1471
1469
|
_: 1
|
|
1472
|
-
})) :
|
|
1473
|
-
F(n(
|
|
1474
|
-
visible:
|
|
1470
|
+
})) : N("", !0),
|
|
1471
|
+
F(n(ke), {
|
|
1472
|
+
visible: x.value,
|
|
1475
1473
|
title: C.value.title,
|
|
1476
|
-
"confirm-loading":
|
|
1477
|
-
onOk:
|
|
1478
|
-
onCancel:
|
|
1474
|
+
"confirm-loading": m.value,
|
|
1475
|
+
onOk: O,
|
|
1476
|
+
onCancel: Q
|
|
1479
1477
|
}, {
|
|
1480
1478
|
default: s(() => [
|
|
1481
1479
|
v("p", kl, _(C.value.content), 1)
|
|
@@ -1485,9 +1483,9 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1485
1483
|
]);
|
|
1486
1484
|
};
|
|
1487
1485
|
}
|
|
1488
|
-
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (
|
|
1489
|
-
const u = Array.isArray(
|
|
1490
|
-
return !u || u.length === 0 ? 0 : u.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i,
|
|
1486
|
+
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (t) => ({ tableWidth: W(() => {
|
|
1487
|
+
const u = Array.isArray(t) ? t : t.value;
|
|
1488
|
+
return !u || u.length === 0 ? 0 : u.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i, x) => i + x, 0);
|
|
1491
1489
|
}) }), xl = {
|
|
1492
1490
|
key: 0,
|
|
1493
1491
|
class: "hb-lib-list-table-act"
|
|
@@ -1498,21 +1496,22 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1498
1496
|
columns: {},
|
|
1499
1497
|
childColumns: {},
|
|
1500
1498
|
rowHeight: {},
|
|
1501
|
-
defaultWidth: { default: () => 150 }
|
|
1499
|
+
defaultWidth: { default: () => 150 },
|
|
1500
|
+
tooltipPlacement: { default: () => "topLeft" }
|
|
1502
1501
|
},
|
|
1503
|
-
setup(
|
|
1504
|
-
const { t: f } =
|
|
1505
|
-
|
|
1502
|
+
setup(t) {
|
|
1503
|
+
const { t: f } = ce(), u = t, i = R([]), x = Se("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Fl(W(() => u.columns));
|
|
1504
|
+
se(
|
|
1506
1505
|
() => u.columns,
|
|
1507
|
-
(
|
|
1508
|
-
const h =
|
|
1506
|
+
(e) => {
|
|
1507
|
+
const h = e.filter((b) => b != null && b.checked);
|
|
1509
1508
|
i.value = h.map((b) => {
|
|
1510
1509
|
let B = { ...b, title: b.title || b.label };
|
|
1511
1510
|
if (B.ellipsis && !B.needTooltip && (B.needTooltip = !0), !B.width)
|
|
1512
1511
|
B.width = u.defaultWidth;
|
|
1513
1512
|
else if (typeof B.width == "string") {
|
|
1514
|
-
const
|
|
1515
|
-
B.width = isNaN(
|
|
1513
|
+
const O = parseInt(B.width, 10);
|
|
1514
|
+
B.width = isNaN(O) ? u.defaultWidth : O;
|
|
1516
1515
|
}
|
|
1517
1516
|
return B.resizable === void 0 && (B.resizable = !0), B;
|
|
1518
1517
|
});
|
|
@@ -1522,31 +1521,31 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1522
1521
|
deep: !0
|
|
1523
1522
|
}
|
|
1524
1523
|
);
|
|
1525
|
-
const
|
|
1524
|
+
const p = (e, h) => {
|
|
1526
1525
|
if (h) {
|
|
1527
|
-
const b = typeof
|
|
1526
|
+
const b = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1528
1527
|
h.width = isNaN(b) ? 150 : b;
|
|
1529
1528
|
}
|
|
1530
|
-
}, c = (
|
|
1531
|
-
return (
|
|
1532
|
-
const b = q("a-empty"), B = q("a-tooltip"),
|
|
1529
|
+
}, c = (e, h = "YYYY-MM-DD HH:mm:ss") => e ? xe(e).format(h) : "";
|
|
1530
|
+
return (e, h) => {
|
|
1531
|
+
const b = q("a-empty"), B = q("a-tooltip"), O = q("HbLibCopy"), Q = q("a-table");
|
|
1533
1532
|
return a(), S("div", {
|
|
1534
1533
|
class: E(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1535
|
-
style:
|
|
1534
|
+
style: me({ "--hb-lib-table-td-height": t.rowHeight && t.rowHeight + "px" || "" })
|
|
1536
1535
|
}, [
|
|
1537
|
-
|
|
1538
|
-
j(
|
|
1539
|
-
j(
|
|
1540
|
-
])) :
|
|
1541
|
-
F(
|
|
1536
|
+
e.$slots.tableActLeft ? (a(), S("section", xl, [
|
|
1537
|
+
j(e.$slots, "tableActLeft", {}, void 0, !0),
|
|
1538
|
+
j(e.$slots, "tableActRight", {}, void 0, !0)
|
|
1539
|
+
])) : N("", !0),
|
|
1540
|
+
F(Q, X(e.$attrs, {
|
|
1542
1541
|
bordered: "",
|
|
1543
1542
|
columns: i.value,
|
|
1544
|
-
onResizeColumn:
|
|
1543
|
+
onResizeColumn: p,
|
|
1545
1544
|
scroll: {
|
|
1546
|
-
x: n(
|
|
1547
|
-
y: n(
|
|
1545
|
+
x: n(m),
|
|
1546
|
+
y: n(x).tableHeight
|
|
1548
1547
|
}
|
|
1549
|
-
}),
|
|
1548
|
+
}), Je({
|
|
1550
1549
|
emptyText: s(() => [
|
|
1551
1550
|
v("div", $l, [
|
|
1552
1551
|
F(b, {
|
|
@@ -1556,51 +1555,51 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1556
1555
|
]),
|
|
1557
1556
|
_: 2
|
|
1558
1557
|
}, [
|
|
1559
|
-
|
|
1558
|
+
e.$slots.headerCell ? {
|
|
1560
1559
|
name: "headerCell",
|
|
1561
1560
|
fn: s(({ column: C }) => [
|
|
1562
|
-
j(
|
|
1563
|
-
|
|
1561
|
+
j(e.$slots, "headerCell", { column: C }, () => [
|
|
1562
|
+
D(_(C.title), 1)
|
|
1564
1563
|
], !0)
|
|
1565
1564
|
]),
|
|
1566
1565
|
key: "0"
|
|
1567
1566
|
} : void 0,
|
|
1568
|
-
|
|
1567
|
+
e.$slots.bodyCell ? {
|
|
1569
1568
|
name: "bodyCell",
|
|
1570
1569
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1571
|
-
j(
|
|
1570
|
+
j(e.$slots, "bodyCell", {
|
|
1572
1571
|
column: C,
|
|
1573
1572
|
record: y,
|
|
1574
1573
|
index: I,
|
|
1575
1574
|
text: T
|
|
1576
1575
|
}, void 0, !0),
|
|
1577
|
-
C && C.needTooltip ? (a(),
|
|
1576
|
+
C && C.needTooltip ? (a(), P(B, {
|
|
1578
1577
|
key: 0,
|
|
1579
|
-
placement:
|
|
1578
|
+
placement: t.tooltipPlacement
|
|
1580
1579
|
}, {
|
|
1581
1580
|
title: s(() => [
|
|
1582
|
-
|
|
1581
|
+
D(_(y[C.dataIndex]), 1)
|
|
1583
1582
|
]),
|
|
1584
1583
|
default: s(() => [
|
|
1585
|
-
|
|
1584
|
+
D(" " + _(y[C.dataIndex]), 1)
|
|
1586
1585
|
]),
|
|
1587
1586
|
_: 2
|
|
1588
|
-
},
|
|
1589
|
-
C && C.needCopy ? (a(),
|
|
1587
|
+
}, 1032, ["placement"])) : N("", !0),
|
|
1588
|
+
C && C.needCopy ? (a(), P(O, {
|
|
1590
1589
|
key: 1,
|
|
1591
1590
|
"cp-text": y[C.dataIndex],
|
|
1592
1591
|
style: { position: "relative" }
|
|
1593
|
-
}, null, 8, ["cp-text"])) :
|
|
1594
|
-
C && C.needFormat ? (a(), S(
|
|
1595
|
-
|
|
1596
|
-
], 64)) :
|
|
1592
|
+
}, null, 8, ["cp-text"])) : N("", !0),
|
|
1593
|
+
C && C.needFormat ? (a(), S(G, { key: 2 }, [
|
|
1594
|
+
D(_(c(y[C.dataIndex], C.format)), 1)
|
|
1595
|
+
], 64)) : N("", !0)
|
|
1597
1596
|
]),
|
|
1598
1597
|
key: "1"
|
|
1599
1598
|
} : void 0,
|
|
1600
|
-
|
|
1599
|
+
e.$slots.expandedRowRender ? {
|
|
1601
1600
|
name: "expandedRowRender",
|
|
1602
1601
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1603
|
-
j(
|
|
1602
|
+
j(e.$slots, "expandedRowRender", {
|
|
1604
1603
|
record: y,
|
|
1605
1604
|
column: C,
|
|
1606
1605
|
index: I,
|
|
@@ -1609,10 +1608,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1609
1608
|
]),
|
|
1610
1609
|
key: "2"
|
|
1611
1610
|
} : void 0,
|
|
1612
|
-
|
|
1611
|
+
e.$slots.customFilterDropdown ? {
|
|
1613
1612
|
name: "customFilterDropdown",
|
|
1614
1613
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1615
|
-
j(
|
|
1614
|
+
j(e.$slots, "customFilterDropdown", {
|
|
1616
1615
|
record: y,
|
|
1617
1616
|
column: C,
|
|
1618
1617
|
index: I,
|
|
@@ -1621,10 +1620,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1621
1620
|
]),
|
|
1622
1621
|
key: "3"
|
|
1623
1622
|
} : void 0,
|
|
1624
|
-
|
|
1623
|
+
e.$slots.customFilterIcon ? {
|
|
1625
1624
|
name: "customFilterIcon",
|
|
1626
1625
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1627
|
-
j(
|
|
1626
|
+
j(e.$slots, "customFilterIcon", {
|
|
1628
1627
|
record: y,
|
|
1629
1628
|
column: C,
|
|
1630
1629
|
index: I,
|
|
@@ -1633,10 +1632,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1633
1632
|
]),
|
|
1634
1633
|
key: "4"
|
|
1635
1634
|
} : void 0,
|
|
1636
|
-
|
|
1635
|
+
e.$slots.expandIcon ? {
|
|
1637
1636
|
name: "expandIcon",
|
|
1638
1637
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1639
|
-
j(
|
|
1638
|
+
j(e.$slots, "expandIcon", {
|
|
1640
1639
|
record: y,
|
|
1641
1640
|
column: C,
|
|
1642
1641
|
index: I,
|
|
@@ -1645,10 +1644,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1645
1644
|
]),
|
|
1646
1645
|
key: "5"
|
|
1647
1646
|
} : void 0,
|
|
1648
|
-
|
|
1647
|
+
e.$slots.footer ? {
|
|
1649
1648
|
name: "footer",
|
|
1650
1649
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1651
|
-
j(
|
|
1650
|
+
j(e.$slots, "footer", {
|
|
1652
1651
|
record: y,
|
|
1653
1652
|
column: C,
|
|
1654
1653
|
index: I,
|
|
@@ -1657,10 +1656,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1657
1656
|
]),
|
|
1658
1657
|
key: "6"
|
|
1659
1658
|
} : void 0,
|
|
1660
|
-
|
|
1659
|
+
e.$slots.headerCell ? {
|
|
1661
1660
|
name: "headerCell",
|
|
1662
1661
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1663
|
-
j(
|
|
1662
|
+
j(e.$slots, "headerCell", {
|
|
1664
1663
|
record: y,
|
|
1665
1664
|
column: C,
|
|
1666
1665
|
index: I,
|
|
@@ -1669,10 +1668,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1669
1668
|
]),
|
|
1670
1669
|
key: "7"
|
|
1671
1670
|
} : void 0,
|
|
1672
|
-
|
|
1671
|
+
e.$slots.summary ? {
|
|
1673
1672
|
name: "summary",
|
|
1674
1673
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1675
|
-
j(
|
|
1674
|
+
j(e.$slots, "summary", {
|
|
1676
1675
|
record: y,
|
|
1677
1676
|
column: C,
|
|
1678
1677
|
index: I,
|
|
@@ -1681,10 +1680,10 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1681
1680
|
]),
|
|
1682
1681
|
key: "8"
|
|
1683
1682
|
} : void 0,
|
|
1684
|
-
|
|
1683
|
+
e.$slots.title ? {
|
|
1685
1684
|
name: "title",
|
|
1686
1685
|
fn: s(({ column: C, record: y, index: I, text: T }) => [
|
|
1687
|
-
j(
|
|
1686
|
+
j(e.$slots, "title", {
|
|
1688
1687
|
record: y,
|
|
1689
1688
|
column: C,
|
|
1690
1689
|
index: I,
|
|
@@ -1697,16 +1696,16 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1697
1696
|
], 6);
|
|
1698
1697
|
};
|
|
1699
1698
|
}
|
|
1700
|
-
}), Ml = /* @__PURE__ */ oe(Tl, [["__scopeId", "data-v-
|
|
1699
|
+
}), Ml = /* @__PURE__ */ oe(Tl, [["__scopeId", "data-v-d4abbf25"]]), Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1701
1700
|
key: 0,
|
|
1702
1701
|
class: "hb-lib-table-drag-item"
|
|
1703
1702
|
}, Dl = {
|
|
1704
1703
|
key: 0,
|
|
1705
1704
|
class: "hb-lib-table-drag-item-act"
|
|
1706
|
-
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" },
|
|
1705
|
+
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" }, Pl = {
|
|
1707
1706
|
class: "select-all-container",
|
|
1708
1707
|
style: { "margin-right": "10px" }
|
|
1709
|
-
},
|
|
1708
|
+
}, zl = /* @__PURE__ */ te({
|
|
1710
1709
|
name: "HbLibTableColumnSet",
|
|
1711
1710
|
__name: "HbTableColumnSet",
|
|
1712
1711
|
props: {
|
|
@@ -1738,66 +1737,75 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1738
1737
|
}
|
|
1739
1738
|
},
|
|
1740
1739
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1741
|
-
setup(
|
|
1742
|
-
const u = f, { t: i } =
|
|
1740
|
+
setup(t, { emit: f }) {
|
|
1741
|
+
const u = f, { t: i } = ce(), x = t, m = R([]), p = W(() => e.value.filter((l) => l.checked));
|
|
1743
1742
|
R([]);
|
|
1744
|
-
const c = R(!1),
|
|
1743
|
+
const c = R(!1), e = R([]), h = R(null), b = W(() => p.value.length > 0 && p.value.length === m.value.length), B = W(() => p.value.length > 0 && p.value.length < m.value.length), O = (l) => {
|
|
1745
1744
|
h.value = l.oldIndex;
|
|
1746
|
-
},
|
|
1745
|
+
}, Q = (l) => {
|
|
1747
1746
|
const o = l.newIndex;
|
|
1748
|
-
if (
|
|
1749
|
-
const L =
|
|
1750
|
-
if ((L > 0 && o < L || r <
|
|
1751
|
-
const
|
|
1752
|
-
|
|
1747
|
+
if (m.value.some((L) => L.fixed === "left" || L.fixed === "right" || L.fixed === !0)) {
|
|
1748
|
+
const L = m.value.filter((Y) => Y.fixed === "left").length, r = m.value.length - m.value.filter((Y) => Y.fixed === "right").length;
|
|
1749
|
+
if ((L > 0 && o < L || r < m.value.length && o >= r) && (_e.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")), h.value !== null)) {
|
|
1750
|
+
const Y = e.value.splice(o, 1)[0];
|
|
1751
|
+
e.value.splice(h.value, 0, Y);
|
|
1753
1752
|
}
|
|
1754
1753
|
}
|
|
1755
1754
|
h.value = null;
|
|
1756
1755
|
}, C = (l) => {
|
|
1757
|
-
l.target.checked ?
|
|
1756
|
+
l.target.checked ? e.value.forEach((d) => d.checked = !0) : e.value.forEach((d) => d.checked = !1);
|
|
1758
1757
|
}, y = (l, o) => {
|
|
1759
1758
|
o ? l.checked = !0 : l.checked = !1;
|
|
1760
1759
|
}, I = () => {
|
|
1761
|
-
|
|
1760
|
+
m.value = [...e.value], u("on-get-columns", m.value), c.value = !1;
|
|
1762
1761
|
}, T = () => {
|
|
1763
|
-
|
|
1762
|
+
m.value = x.tableColumns.map((o) => ({
|
|
1764
1763
|
...o,
|
|
1765
1764
|
label: o.title && o.title.tag ? V(o.title) : o.title || o.title2,
|
|
1766
1765
|
value: o.dataIndex,
|
|
1767
1766
|
checked: o.checked || o.checked === void 0
|
|
1768
|
-
})),
|
|
1767
|
+
})), e.value = [...m.value];
|
|
1769
1768
|
let l = [];
|
|
1770
|
-
|
|
1769
|
+
x.tableColumns.forEach(function(o) {
|
|
1771
1770
|
l.push(o.dataIndex);
|
|
1772
1771
|
});
|
|
1773
1772
|
}, V = (l) => l.children[0].text, M = (l) => {
|
|
1774
1773
|
delete l.fixed;
|
|
1775
|
-
const o =
|
|
1774
|
+
const o = e.value.findIndex((d) => d.value === l.value);
|
|
1776
1775
|
if (o !== -1) {
|
|
1777
1776
|
let d = -1;
|
|
1778
|
-
for (let L = 0; L <
|
|
1779
|
-
|
|
1777
|
+
for (let L = 0; L < e.value.length; L++)
|
|
1778
|
+
e.value[L].fixed === "left" && (d = L);
|
|
1780
1779
|
if (d !== -1 && o !== d + 1) {
|
|
1781
|
-
const L = [...
|
|
1782
|
-
L.splice(d + 1, 0, r),
|
|
1780
|
+
const L = [...e.value], [r] = L.splice(o, 1);
|
|
1781
|
+
L.splice(d + 1, 0, r), e.value = L;
|
|
1783
1782
|
}
|
|
1784
1783
|
}
|
|
1785
1784
|
}, w = (l) => {
|
|
1786
|
-
const o =
|
|
1785
|
+
const o = e.value.findIndex((d) => d.value === l.value);
|
|
1787
1786
|
if (o !== -1) {
|
|
1788
1787
|
let d = -1;
|
|
1789
|
-
for (let L = 0; L <
|
|
1790
|
-
|
|
1788
|
+
for (let L = 0; L < e.value.length; L++)
|
|
1789
|
+
e.value[L].fixed === "left" && (d = L);
|
|
1791
1790
|
if (d !== -1 && o !== d + 1) {
|
|
1792
|
-
const L = [...
|
|
1793
|
-
r[0].fixed = "left", L.splice(d + 1, 0, r[0]),
|
|
1791
|
+
const L = [...e.value], r = L.splice(o, 1);
|
|
1792
|
+
r[0].fixed = "left", L.splice(d + 1, 0, r[0]), e.value = L;
|
|
1794
1793
|
}
|
|
1795
1794
|
}
|
|
1796
1795
|
};
|
|
1797
|
-
return
|
|
1796
|
+
return se(
|
|
1797
|
+
() => x.tableColumns,
|
|
1798
|
+
() => {
|
|
1799
|
+
T();
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
immediate: !0,
|
|
1803
|
+
deep: !0
|
|
1804
|
+
}
|
|
1805
|
+
), (l, o) => {
|
|
1798
1806
|
const d = q("a-tooltip"), L = q("a-button");
|
|
1799
1807
|
return a(), S("div", Hl, [
|
|
1800
|
-
F(n(
|
|
1808
|
+
F(n(mt), {
|
|
1801
1809
|
title: n(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1802
1810
|
trigger: "click",
|
|
1803
1811
|
placement: "leftTop",
|
|
@@ -1807,24 +1815,24 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1807
1815
|
}, {
|
|
1808
1816
|
content: s(() => [
|
|
1809
1817
|
F(n(fe), {
|
|
1810
|
-
modelValue:
|
|
1811
|
-
"onUpdate:modelValue": o[0] || (o[0] = (r) =>
|
|
1818
|
+
modelValue: e.value,
|
|
1819
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value = r),
|
|
1812
1820
|
"item-key": "value",
|
|
1813
1821
|
class: "hb-lib-table-set-drag",
|
|
1814
1822
|
"ghost-class": "ghost",
|
|
1815
1823
|
animation: "200",
|
|
1816
1824
|
handle: ".drag-handle",
|
|
1817
|
-
onStart:
|
|
1818
|
-
onEnd:
|
|
1825
|
+
onStart: O,
|
|
1826
|
+
onEnd: Q
|
|
1819
1827
|
}, {
|
|
1820
1828
|
item: s(({ element: r }) => [
|
|
1821
1829
|
r.fixed !== "right" ? (a(), S("div", Al, [
|
|
1822
|
-
F(n(
|
|
1830
|
+
F(n(pe), {
|
|
1823
1831
|
checked: r.checked,
|
|
1824
|
-
onChange: (
|
|
1832
|
+
onChange: (Y) => y(r, Y.target.checked)
|
|
1825
1833
|
}, {
|
|
1826
1834
|
default: s(() => [
|
|
1827
|
-
|
|
1835
|
+
D(_(r.label), 1)
|
|
1828
1836
|
]),
|
|
1829
1837
|
_: 2
|
|
1830
1838
|
}, 1032, ["checked", "onChange"]),
|
|
@@ -1832,14 +1840,14 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1832
1840
|
v("span", {
|
|
1833
1841
|
class: E(r.fixed ? "drag-hide" : "drag-handle")
|
|
1834
1842
|
}, "⋮⋮", 2),
|
|
1835
|
-
r.fixed ? (a(),
|
|
1843
|
+
r.fixed ? (a(), P(d, { key: 0 }, {
|
|
1836
1844
|
title: s(() => [
|
|
1837
|
-
|
|
1845
|
+
D(_(n(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1838
1846
|
]),
|
|
1839
1847
|
default: s(() => [
|
|
1840
1848
|
v("span", {
|
|
1841
1849
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1842
|
-
onClick: (
|
|
1850
|
+
onClick: (Y) => M(r)
|
|
1843
1851
|
}, [...o[2] || (o[2] = [
|
|
1844
1852
|
v("svg", {
|
|
1845
1853
|
t: "1759048615600",
|
|
@@ -1860,15 +1868,15 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1860
1868
|
])], 8, Ol)
|
|
1861
1869
|
]),
|
|
1862
1870
|
_: 2
|
|
1863
|
-
}, 1024)) :
|
|
1864
|
-
r.fixed ?
|
|
1871
|
+
}, 1024)) : N("", !0),
|
|
1872
|
+
r.fixed ? N("", !0) : (a(), P(d, { key: 1 }, {
|
|
1865
1873
|
title: s(() => [
|
|
1866
|
-
|
|
1874
|
+
D(_(n(i)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1867
1875
|
]),
|
|
1868
1876
|
default: s(() => [
|
|
1869
1877
|
v("span", {
|
|
1870
1878
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1871
|
-
onClick: (
|
|
1879
|
+
onClick: (Y) => w(r)
|
|
1872
1880
|
}, [...o[3] || (o[3] = [
|
|
1873
1881
|
v("svg", {
|
|
1874
1882
|
t: "1759048735643",
|
|
@@ -1890,20 +1898,20 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1890
1898
|
]),
|
|
1891
1899
|
_: 2
|
|
1892
1900
|
}, 1024))
|
|
1893
|
-
])) :
|
|
1894
|
-
])) :
|
|
1901
|
+
])) : N("", !0)
|
|
1902
|
+
])) : N("", !0)
|
|
1895
1903
|
]),
|
|
1896
1904
|
_: 1
|
|
1897
1905
|
}, 8, ["modelValue"]),
|
|
1898
1906
|
v("div", Rl, [
|
|
1899
|
-
v("div",
|
|
1900
|
-
F(n(
|
|
1907
|
+
v("div", Pl, [
|
|
1908
|
+
F(n(pe), {
|
|
1901
1909
|
checked: b.value,
|
|
1902
1910
|
indeterminate: B.value,
|
|
1903
1911
|
onChange: C
|
|
1904
1912
|
}, {
|
|
1905
1913
|
default: s(() => [
|
|
1906
|
-
|
|
1914
|
+
D(_(n(i)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1907
1915
|
]),
|
|
1908
1916
|
_: 1
|
|
1909
1917
|
}, 8, ["checked", "indeterminate"])
|
|
@@ -1913,7 +1921,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1913
1921
|
type: "primary"
|
|
1914
1922
|
}, {
|
|
1915
1923
|
default: s(() => [
|
|
1916
|
-
|
|
1924
|
+
D(_(n(i)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1917
1925
|
]),
|
|
1918
1926
|
_: 1
|
|
1919
1927
|
})
|
|
@@ -1957,7 +1965,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1957
1965
|
]);
|
|
1958
1966
|
};
|
|
1959
1967
|
}
|
|
1960
|
-
}),
|
|
1968
|
+
}), Nl = /* @__PURE__ */ oe(zl, [["__scopeId", "data-v-9200ee57"]]), Vl = le(Nl), El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1961
1969
|
__proto__: null,
|
|
1962
1970
|
HbLibFormItemFilterModal: wt,
|
|
1963
1971
|
HbLibListBtnsAct: Ut,
|
|
@@ -2014,45 +2022,45 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2014
2022
|
name: "HbLibCopy",
|
|
2015
2023
|
__name: "copy",
|
|
2016
2024
|
props: Ul,
|
|
2017
|
-
setup(
|
|
2018
|
-
const f =
|
|
2025
|
+
setup(t) {
|
|
2026
|
+
const f = t, u = R();
|
|
2019
2027
|
st(() => {
|
|
2020
2028
|
u.value = f.data;
|
|
2021
2029
|
});
|
|
2022
2030
|
const i = W(() => {
|
|
2023
2031
|
if (f.cpText) return f.cpText;
|
|
2024
|
-
let
|
|
2032
|
+
let m = "";
|
|
2025
2033
|
if (f.data)
|
|
2026
2034
|
if (Array.isArray(f.data)) {
|
|
2027
2035
|
if (f.K && f.V && f.L) {
|
|
2028
|
-
const
|
|
2029
|
-
|
|
2036
|
+
const p = f.data.find((c) => c?.[f.K] === f.V);
|
|
2037
|
+
m = p ? p[f.L] : "";
|
|
2030
2038
|
}
|
|
2031
2039
|
} else
|
|
2032
|
-
f.K && (
|
|
2033
|
-
return
|
|
2034
|
-
}),
|
|
2040
|
+
f.K && (m = f.data[f.K]);
|
|
2041
|
+
return m;
|
|
2042
|
+
}), x = () => {
|
|
2035
2043
|
navigator.clipboard.writeText(i.value).then(() => {
|
|
2036
|
-
|
|
2044
|
+
_e.success(f.copySuccessTip);
|
|
2037
2045
|
}).catch(() => {
|
|
2038
|
-
|
|
2046
|
+
_e.error("复制失败");
|
|
2039
2047
|
});
|
|
2040
2048
|
};
|
|
2041
|
-
return (
|
|
2049
|
+
return (m, p) => {
|
|
2042
2050
|
const c = q("a-tooltip");
|
|
2043
|
-
return i.value ? (a(),
|
|
2051
|
+
return i.value ? (a(), P(c, {
|
|
2044
2052
|
key: 0,
|
|
2045
|
-
title:
|
|
2053
|
+
title: m.tooltipTitle
|
|
2046
2054
|
}, {
|
|
2047
2055
|
default: s(() => [
|
|
2048
2056
|
v("i", {
|
|
2049
|
-
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy",
|
|
2050
|
-
style:
|
|
2051
|
-
onClick:
|
|
2057
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
2058
|
+
style: me({ ...m.cpStyle }),
|
|
2059
|
+
onClick: Le(x, ["stop", "prevent"])
|
|
2052
2060
|
}, null, 6)
|
|
2053
2061
|
]),
|
|
2054
2062
|
_: 1
|
|
2055
|
-
}, 8, ["title"])) :
|
|
2063
|
+
}, 8, ["title"])) : N("", !0);
|
|
2056
2064
|
};
|
|
2057
2065
|
}
|
|
2058
2066
|
}), jl = /* @__PURE__ */ oe(Yl, [["__scopeId", "data-v-d5ca4420"]]), ql = le(jl), Kl = {
|
|
@@ -2099,9 +2107,9 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2099
2107
|
__name: "index",
|
|
2100
2108
|
props: Kl,
|
|
2101
2109
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2102
|
-
setup(
|
|
2103
|
-
const u =
|
|
2104
|
-
|
|
2110
|
+
setup(t, { emit: f }) {
|
|
2111
|
+
const u = t, i = it([]);
|
|
2112
|
+
se(
|
|
2105
2113
|
() => u.dragList,
|
|
2106
2114
|
(b) => {
|
|
2107
2115
|
i.value = b;
|
|
@@ -2111,51 +2119,51 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2111
2119
|
immediate: !0
|
|
2112
2120
|
}
|
|
2113
2121
|
);
|
|
2114
|
-
const
|
|
2115
|
-
console.log("drag start", b),
|
|
2122
|
+
const x = $e("drag"), m = f, p = (b) => {
|
|
2123
|
+
console.log("drag start", b), m("handleDragStart", b);
|
|
2116
2124
|
}, c = (b) => {
|
|
2117
|
-
console.log("drag end", b),
|
|
2118
|
-
},
|
|
2119
|
-
console.log("drag add", b),
|
|
2125
|
+
console.log("drag end", b), m("handleDragEnd", b);
|
|
2126
|
+
}, e = (b) => {
|
|
2127
|
+
console.log("drag add", b), m("handleDragAdd", b);
|
|
2120
2128
|
}, h = (b) => {
|
|
2121
|
-
console.log("drag remove", b),
|
|
2129
|
+
console.log("drag remove", b), m("handleDragRemove", b);
|
|
2122
2130
|
};
|
|
2123
2131
|
return (b, B) => (a(), S("div", {
|
|
2124
|
-
class: E(n(
|
|
2132
|
+
class: E(n(x).b())
|
|
2125
2133
|
}, [
|
|
2126
|
-
b.childrenType == "component" ? (a(),
|
|
2134
|
+
b.childrenType == "component" ? (a(), P(n(fe), X({
|
|
2127
2135
|
key: 0,
|
|
2128
2136
|
modelValue: i.value,
|
|
2129
|
-
"onUpdate:modelValue": B[0] || (B[0] = (
|
|
2137
|
+
"onUpdate:modelValue": B[0] || (B[0] = (O) => i.value = O),
|
|
2130
2138
|
"item-key": "key",
|
|
2131
2139
|
class: { [b.dragClass]: b.dragClass }
|
|
2132
2140
|
}, b.$attrs, {
|
|
2133
2141
|
"ghost-class": b.ghostClass,
|
|
2134
|
-
onStart:
|
|
2142
|
+
onStart: p,
|
|
2135
2143
|
onEnd: c,
|
|
2136
|
-
onAdd:
|
|
2144
|
+
onAdd: e,
|
|
2137
2145
|
onRemove: h
|
|
2138
2146
|
}), {
|
|
2139
|
-
item: s(({ element:
|
|
2140
|
-
(a(),
|
|
2147
|
+
item: s(({ element: O }) => [
|
|
2148
|
+
(a(), P(rt(O.component)))
|
|
2141
2149
|
]),
|
|
2142
2150
|
_: 1
|
|
2143
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (a(),
|
|
2151
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), P(n(fe), X({
|
|
2144
2152
|
key: 1,
|
|
2145
2153
|
modelValue: i.value,
|
|
2146
|
-
"onUpdate:modelValue": B[1] || (B[1] = (
|
|
2154
|
+
"onUpdate:modelValue": B[1] || (B[1] = (O) => i.value = O),
|
|
2147
2155
|
"item-key": "id",
|
|
2148
2156
|
class: { [b.dragClass]: b.dragClass }
|
|
2149
2157
|
}, b.$attrs, {
|
|
2150
2158
|
"ghost-class": b.ghostClass,
|
|
2151
|
-
onStart:
|
|
2159
|
+
onStart: p,
|
|
2152
2160
|
onEnd: c,
|
|
2153
|
-
onAdd:
|
|
2161
|
+
onAdd: e,
|
|
2154
2162
|
onRemove: h
|
|
2155
2163
|
}), {
|
|
2156
|
-
item: s(({ element:
|
|
2164
|
+
item: s(({ element: O }) => [
|
|
2157
2165
|
v("div", null, [
|
|
2158
|
-
j(b.$slots, "default", { item:
|
|
2166
|
+
j(b.$slots, "default", { item: O }, void 0, !0)
|
|
2159
2167
|
])
|
|
2160
2168
|
]),
|
|
2161
2169
|
_: 3
|
|
@@ -2167,7 +2175,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2167
2175
|
HbLibFuncCompCopy: ql,
|
|
2168
2176
|
HbLibFuncCompDrag: Gl
|
|
2169
2177
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2170
|
-
let
|
|
2178
|
+
let qe = {
|
|
2171
2179
|
...El,
|
|
2172
2180
|
...Ql
|
|
2173
2181
|
};
|
|
@@ -2180,35 +2188,35 @@ const Zl = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to uploa
|
|
|
2180
2188
|
}, ao = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" } }, no = {
|
|
2181
2189
|
hbLibComp: ao
|
|
2182
2190
|
};
|
|
2183
|
-
var be = { exports: {} }, so = be.exports,
|
|
2191
|
+
var be = { exports: {} }, so = be.exports, Ke;
|
|
2184
2192
|
function io() {
|
|
2185
|
-
return
|
|
2193
|
+
return Ke || (Ke = 1, (function(t, f) {
|
|
2186
2194
|
(function(u, i) {
|
|
2187
|
-
|
|
2195
|
+
t.exports = i(xe);
|
|
2188
2196
|
})(so, (function(u) {
|
|
2189
|
-
function i(
|
|
2190
|
-
return
|
|
2197
|
+
function i(p) {
|
|
2198
|
+
return p && typeof p == "object" && "default" in p ? p : { default: p };
|
|
2191
2199
|
}
|
|
2192
|
-
var
|
|
2193
|
-
return c === "W" ?
|
|
2194
|
-
}, 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(
|
|
2195
|
-
var
|
|
2196
|
-
return
|
|
2200
|
+
var x = i(u), 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(p, c) {
|
|
2201
|
+
return c === "W" ? p + "周" : p + "日";
|
|
2202
|
+
}, 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(p, c) {
|
|
2203
|
+
var e = 100 * p + c;
|
|
2204
|
+
return e < 600 ? "凌晨" : e < 900 ? "早上" : e < 1100 ? "上午" : e < 1300 ? "中午" : e < 1800 ? "下午" : "晚上";
|
|
2197
2205
|
} };
|
|
2198
|
-
return
|
|
2206
|
+
return x.default.locale(m, null, !0), m;
|
|
2199
2207
|
}));
|
|
2200
2208
|
})(be)), be.exports;
|
|
2201
2209
|
}
|
|
2202
2210
|
io();
|
|
2203
|
-
|
|
2211
|
+
xe.locale("zh-cn");
|
|
2204
2212
|
const yo = {
|
|
2205
2213
|
en_US: Xl,
|
|
2206
2214
|
ja_JP: to,
|
|
2207
2215
|
zh_CN: oo,
|
|
2208
2216
|
de_DE: no
|
|
2209
|
-
}, Co = function(
|
|
2210
|
-
Object.keys(
|
|
2211
|
-
|
|
2217
|
+
}, Co = function(t) {
|
|
2218
|
+
Object.keys(qe).forEach((u) => {
|
|
2219
|
+
t.use(qe[u]);
|
|
2212
2220
|
});
|
|
2213
2221
|
};
|
|
2214
2222
|
export {
|