@hb-hellotech/hb-ui 1.2.5-beta.1 → 1.2.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1047 -1095
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { CloseOutlined as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const f = `${
|
|
13
|
-
return
|
|
14
|
-
},
|
|
2
|
+
import { defineComponent as Z, reactive as Ye, ref as B, computed as j, watch as oe, createElementBlock as S, openBlock as a, normalizeClass as E, unref as s, createVNode as w, withCtx as i, createElementVNode as g, toDisplayString as k, createTextVNode as H, createBlock as R, createCommentVNode as z, Fragment as J, renderList as le, inject as Ce, resolveComponent as U, Transition as Je, withDirectives as ne, mergeProps as Q, createSlots as je, renderSlot as V, vShow as Ge, nextTick as ce, onMounted as Le, onUnmounted as Qe, useTemplateRef as Ze, provide as Xe, normalizeStyle as be, mergeModels as we, useModel as et, withModifiers as ve, resolveDirective as tt, watchEffect as lt, shallowRef as ot, resolveDynamicComponent as at } from "vue";
|
|
3
|
+
import ue from "vuedraggable";
|
|
4
|
+
import { CloseOutlined as nt, QuestionCircleOutlined as st, SearchOutlined as ke, UpCircleOutlined as it, DownCircleOutlined as rt, UnorderedListOutlined as ct, DownOutlined as Fe } from "@ant-design/icons-vue";
|
|
5
|
+
import { Modal as ge, Button as ie, Tooltip as Te, Switch as $e, Radio as xe, RadioGroup as Me, InputNumber as Ie, DatePicker as He, Checkbox as he, CheckboxGroup as De, Select as Ae, Input as Oe, Col as dt, Row as ut, FormItem as Be, Form as Re, SelectOption as Pe, Popconfirm as me, MenuItem as ze, Menu as Ne, Dropdown as Ee, Popover as ht, message as ye } from "ant-design-vue";
|
|
6
|
+
import { useRoute as qe } from "vue-router";
|
|
7
|
+
import { useI18n as se } from "vue-i18n";
|
|
8
|
+
import pe from "lodash";
|
|
9
|
+
import { useFullscreen as bt, useDebounceFn as ft } from "@vueuse/core";
|
|
10
|
+
import _e from "dayjs";
|
|
11
|
+
const mt = "hb-", Se = (t = "") => {
|
|
12
|
+
const f = `${mt}${t}`;
|
|
13
|
+
return pt(f);
|
|
14
|
+
}, ae = (t, f, d, r) => (f && (t += `-${f}`), d && (t += `__${d}`), r && (t += `--${r}`), t), pt = (t) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (f) => f ?
|
|
16
|
+
b: (f) => f ? ae(t, f, "", "") : ae(t, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (f) => f ?
|
|
18
|
+
e: (f) => f ? ae(t, "", f, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (f) =>
|
|
20
|
+
m: (f) => ae(t, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (f,
|
|
22
|
+
be: (f, d) => ae(t, f, d, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (f,
|
|
24
|
+
em: (f, d) => ae(t, "", f, d),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (f,
|
|
26
|
+
bem: (f, d, r) => ae(t, f, d, r),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (f,
|
|
29
|
-
}),
|
|
28
|
+
is: (f, d) => d ? `is-${f}` : ""
|
|
29
|
+
}), vt = ["onMouseenter", "onMouseleave"], gt = ["onClick"], yt = /* @__PURE__ */ Z({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -37,272 +37,224 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(t, { expose: f, emit:
|
|
41
|
-
const
|
|
40
|
+
setup(t, { expose: f, emit: d }) {
|
|
41
|
+
const r = se().t, F = se().messages.value.en_US, p = se().messages.value.ja_JP, m = se().messages.value.zh_CN, u = t, e = d, h = Se("sfcm"), b = qe(), A = Ye({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const H = k.draggedContext.element, g = k.relatedContext.index;
|
|
47
|
-
if (H.isLinked || H.isFixed)
|
|
43
|
+
}), D = B(!1), G = B(600), _ = B([]), C = B([]), M = B([]), $ = j(() => C.value.every((v) => v.isLinked || v.isFixed)), N = (v) => {
|
|
44
|
+
const I = v.draggedContext.element, y = v.relatedContext.index;
|
|
45
|
+
if (I.isLinked || I.isFixed)
|
|
48
46
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
47
|
+
const q = C.value.map((K, re) => ({ item: K, index: re })).filter(({ item: K }) => K.isLinked).map(({ index: K }) => K);
|
|
48
|
+
if (q.length === 0)
|
|
51
49
|
return !0;
|
|
52
|
-
for (let
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
50
|
+
for (let K = 0; K < q.length - 1; K++) {
|
|
51
|
+
const re = q[K], fe = q[K + 1];
|
|
52
|
+
if (y > re && y < fe)
|
|
55
53
|
return !1;
|
|
56
54
|
}
|
|
57
55
|
return !0;
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
let
|
|
61
|
-
if (
|
|
56
|
+
}, x = () => {
|
|
57
|
+
const v = localStorage.getItem("pro__Login_Userinfo");
|
|
58
|
+
let I = "anonymous";
|
|
59
|
+
if (v)
|
|
62
60
|
try {
|
|
63
|
-
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
61
|
+
I = JSON.parse(v).value.jobNumber || "anonymous";
|
|
62
|
+
} catch (q) {
|
|
63
|
+
console.warn("解析用户信息失败:", q);
|
|
66
64
|
}
|
|
67
|
-
let
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
70
|
-
ja_JP: () =>
|
|
71
|
-
en_US: () =>
|
|
72
|
-
zh_CN: () =>
|
|
73
|
-
})[
|
|
65
|
+
let y = b?.path;
|
|
66
|
+
return `searchFormConfig_${I}_${y}`;
|
|
67
|
+
}, T = (v) => ({
|
|
68
|
+
ja_JP: () => pe.get(p, v.labelLanguage || ""),
|
|
69
|
+
en_US: () => pe.get(F, v.labelLanguage || ""),
|
|
70
|
+
zh_CN: () => pe.get(m, v.labelLanguage || "")
|
|
71
|
+
})[A.lan]?.() || v.label, l = () => {
|
|
74
72
|
try {
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
isLinked: !0,
|
|
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
|
-
}));
|
|
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
|
-
active: !1,
|
|
111
|
-
labelLanguage: $?.labelLanguage || void 0
|
|
112
|
-
})), !0;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
} catch (k) {
|
|
116
|
-
console.warn("加载保存的搜索配置失败:", k);
|
|
117
|
-
}
|
|
118
|
-
return !1;
|
|
119
|
-
}, o = () => {
|
|
120
|
-
try {
|
|
121
|
-
const k = {
|
|
122
|
-
originalList: C,
|
|
123
|
-
showList: y.value.map((g) => ({
|
|
124
|
-
...g,
|
|
125
|
-
key: g.key,
|
|
126
|
-
label: g.label,
|
|
127
|
-
isFixed: g.isFixed,
|
|
128
|
-
isLinked: g.isLinked,
|
|
129
|
-
labelLanguage: g?.labelLanguage || void 0
|
|
73
|
+
const v = {
|
|
74
|
+
originalList: _.value,
|
|
75
|
+
showList: C.value.map((y) => ({
|
|
76
|
+
...y,
|
|
77
|
+
key: y.key,
|
|
78
|
+
label: y.label,
|
|
79
|
+
isFixed: y.isFixed,
|
|
80
|
+
isLinked: y.isLinked,
|
|
81
|
+
labelLanguage: y?.labelLanguage || void 0
|
|
130
82
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
133
|
-
} catch (
|
|
134
|
-
console.warn("保存搜索配置失败:",
|
|
83
|
+
}, I = x();
|
|
84
|
+
localStorage.setItem(I, JSON.stringify(v));
|
|
85
|
+
} catch (v) {
|
|
86
|
+
console.warn("保存搜索配置失败:", v);
|
|
135
87
|
}
|
|
136
|
-
},
|
|
137
|
-
const
|
|
138
|
-
return
|
|
88
|
+
}, o = j(() => {
|
|
89
|
+
const v = C.value.filter((y) => !y.isFixed && !y.isLinked).length, I = C.value.filter((y) => y.isFixed || y.isLinked).length;
|
|
90
|
+
return v >= u.showNumber - I;
|
|
139
91
|
});
|
|
140
|
-
|
|
141
|
-
() =>
|
|
142
|
-
(
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
...
|
|
146
|
-
label:
|
|
147
|
-
key:
|
|
148
|
-
isFixed:
|
|
149
|
-
isLinked:
|
|
150
|
-
labelLanguage:
|
|
151
|
-
})),
|
|
152
|
-
...
|
|
153
|
-
label:
|
|
154
|
-
key:
|
|
155
|
-
isFixed:
|
|
92
|
+
oe(
|
|
93
|
+
() => u.list,
|
|
94
|
+
(v) => {
|
|
95
|
+
_.value = JSON.parse(JSON.stringify(v));
|
|
96
|
+
const I = v.filter((O) => O?.isFixed), y = v.filter((O) => O?.isLinked), q = v.filter((O) => !O?.isFixed && !O?.isLinked), K = u.showNumber && u.showNumber > 0 ? Math.max(0, u.showNumber - I.length - y.length) : q.length, re = I.map((O) => ({
|
|
97
|
+
...O,
|
|
98
|
+
label: T(O) || `${O.subLabel || ""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
99
|
+
key: O.key,
|
|
100
|
+
isFixed: O?.isFixed || !1,
|
|
101
|
+
isLinked: O?.isLinked || !1,
|
|
102
|
+
labelLanguage: O?.labelLanguage || void 0
|
|
103
|
+
})), fe = y.map((O) => ({
|
|
104
|
+
...O,
|
|
105
|
+
label: T(O) || `${O.subLabel || ""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
106
|
+
key: O.key,
|
|
107
|
+
isFixed: O?.isFixed || !1,
|
|
156
108
|
isLinked: !0,
|
|
157
|
-
labelLanguage:
|
|
158
|
-
})),
|
|
159
|
-
...
|
|
160
|
-
label:
|
|
161
|
-
key:
|
|
162
|
-
isFixed:
|
|
163
|
-
isLinked:
|
|
164
|
-
labelLanguage:
|
|
109
|
+
labelLanguage: O?.labelLanguage || void 0
|
|
110
|
+
})), Ke = q.slice(0, K).map((O) => ({
|
|
111
|
+
...O,
|
|
112
|
+
label: T(O) || `${O.subLabel || ""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
113
|
+
key: O.key,
|
|
114
|
+
isFixed: O?.isFixed || !1,
|
|
115
|
+
isLinked: O?.isLinked || !1,
|
|
116
|
+
labelLanguage: O?.labelLanguage || void 0
|
|
165
117
|
}));
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
...
|
|
169
|
-
label:
|
|
170
|
-
key:
|
|
171
|
-
isFixed:
|
|
172
|
-
isLinked:
|
|
118
|
+
C.value = [...re, ...fe, ...Ke];
|
|
119
|
+
const We = q.slice(K).map((O) => ({
|
|
120
|
+
...O,
|
|
121
|
+
label: T(O) || `${O.subLabel || ""}${r("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
122
|
+
key: O.key,
|
|
123
|
+
isFixed: O?.isFixed || !1,
|
|
124
|
+
isLinked: O?.isLinked || !1,
|
|
173
125
|
active: !1,
|
|
174
|
-
labelLanguage:
|
|
126
|
+
labelLanguage: O?.labelLanguage || void 0
|
|
175
127
|
}));
|
|
176
|
-
|
|
128
|
+
M.value = We;
|
|
177
129
|
},
|
|
178
130
|
{ immediate: !0, deep: !0 }
|
|
179
131
|
);
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
if (
|
|
132
|
+
const c = (v) => {
|
|
133
|
+
const I = C.value.findIndex((y) => y.key === v.key);
|
|
134
|
+
I !== -1 && (C.value.splice(I, 1), M.value.push({ ...v, active: !1 }));
|
|
135
|
+
}, L = (v) => {
|
|
136
|
+
if (o.value)
|
|
185
137
|
return;
|
|
186
|
-
const
|
|
187
|
-
if (
|
|
188
|
-
const [
|
|
189
|
-
|
|
138
|
+
const I = M.value.findIndex((y) => y.key === v.key);
|
|
139
|
+
if (I !== -1) {
|
|
140
|
+
const [y] = M.value.splice(I, 1);
|
|
141
|
+
C.value.push({ ...y, active: !1 });
|
|
190
142
|
}
|
|
143
|
+
}, n = () => {
|
|
144
|
+
D.value = !1;
|
|
191
145
|
}, Y = () => {
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
}, ee = () => {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const H = I.value.findIndex((g) => g.key === k.key);
|
|
202
|
-
H !== -1 && (I.value[H].active = !1);
|
|
146
|
+
D.value = !0;
|
|
147
|
+
}, P = () => {
|
|
148
|
+
l(), e("confirm", C.value), n();
|
|
149
|
+
}, ee = (v) => {
|
|
150
|
+
const I = M.value.findIndex((y) => y.key === v.key);
|
|
151
|
+
I !== -1 && (M.value[I].active = !0);
|
|
152
|
+
}, W = (v) => {
|
|
153
|
+
const I = M.value.findIndex((y) => y.key === v.key);
|
|
154
|
+
I !== -1 && (M.value[I].active = !1);
|
|
203
155
|
};
|
|
204
156
|
return f({
|
|
205
|
-
toOpenModal:
|
|
206
|
-
}), (
|
|
207
|
-
class: E(
|
|
157
|
+
toOpenModal: Y
|
|
158
|
+
}), (v, I) => (a(), S("div", {
|
|
159
|
+
class: E(s(h).b())
|
|
208
160
|
}, [
|
|
209
|
-
|
|
210
|
-
visible:
|
|
211
|
-
"onUpdate:visible":
|
|
212
|
-
width:
|
|
213
|
-
onCancel:
|
|
214
|
-
onOk:
|
|
161
|
+
w(s(ge), {
|
|
162
|
+
visible: D.value,
|
|
163
|
+
"onUpdate:visible": I[1] || (I[1] = (y) => D.value = y),
|
|
164
|
+
width: G.value,
|
|
165
|
+
onCancel: n,
|
|
166
|
+
onOk: P
|
|
215
167
|
}, {
|
|
216
|
-
title:
|
|
217
|
-
|
|
218
|
-
class: E(
|
|
219
|
-
},
|
|
168
|
+
title: i(() => [
|
|
169
|
+
g("div", {
|
|
170
|
+
class: E(s(h).e("title"))
|
|
171
|
+
}, k(t.title), 3)
|
|
220
172
|
]),
|
|
221
|
-
footer:
|
|
222
|
-
|
|
223
|
-
default:
|
|
224
|
-
|
|
173
|
+
footer: i(() => [
|
|
174
|
+
w(s(ie), { onClick: n }, {
|
|
175
|
+
default: i(() => [
|
|
176
|
+
H(k(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
225
177
|
]),
|
|
226
178
|
_: 1
|
|
227
179
|
}),
|
|
228
|
-
|
|
180
|
+
w(s(ie), {
|
|
229
181
|
type: "primary",
|
|
230
|
-
onClick:
|
|
182
|
+
onClick: P
|
|
231
183
|
}, {
|
|
232
|
-
default:
|
|
233
|
-
|
|
184
|
+
default: i(() => [
|
|
185
|
+
H(k(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
234
186
|
]),
|
|
235
187
|
_: 1
|
|
236
188
|
})
|
|
237
189
|
]),
|
|
238
|
-
default:
|
|
239
|
-
|
|
240
|
-
class: E(
|
|
190
|
+
default: i(() => [
|
|
191
|
+
g("section", {
|
|
192
|
+
class: E(s(h).e("show"))
|
|
241
193
|
}, [
|
|
242
|
-
|
|
243
|
-
class: E(
|
|
194
|
+
g("div", {
|
|
195
|
+
class: E(s(h).e("show__title"))
|
|
244
196
|
}, [
|
|
245
|
-
|
|
246
|
-
class: E(
|
|
247
|
-
},
|
|
248
|
-
|
|
197
|
+
g("span", {
|
|
198
|
+
class: E(s(h).e("title__tip"))
|
|
199
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
200
|
+
g("span", null, k(v.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + k(t.showNumber) + k(v.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
249
201
|
], 2),
|
|
250
|
-
|
|
251
|
-
class: E(
|
|
202
|
+
g("div", {
|
|
203
|
+
class: E(s(h).e("show__tag"))
|
|
252
204
|
}, [
|
|
253
|
-
|
|
254
|
-
modelValue:
|
|
255
|
-
"onUpdate:modelValue":
|
|
205
|
+
w(s(ue), {
|
|
206
|
+
modelValue: C.value,
|
|
207
|
+
"onUpdate:modelValue": I[0] || (I[0] = (y) => C.value = y),
|
|
256
208
|
"item-key": "key",
|
|
257
209
|
tag: "div",
|
|
258
|
-
disabled:
|
|
259
|
-
move:
|
|
210
|
+
disabled: $.value,
|
|
211
|
+
move: N
|
|
260
212
|
}, {
|
|
261
|
-
item:
|
|
262
|
-
|
|
263
|
-
class: E([
|
|
213
|
+
item: i(({ element: y }) => [
|
|
214
|
+
g("div", {
|
|
215
|
+
class: E([s(h).e("show__tag__item"), s(h).is("fixed", y.isFixed), s(h).is("linked", y.isLinked)])
|
|
264
216
|
}, [
|
|
265
|
-
|
|
266
|
-
!
|
|
217
|
+
H(k(y.label) + " ", 1),
|
|
218
|
+
!y.isFixed && !y.isLinked && t.list.length > 1 ? (a(), R(s(nt), {
|
|
267
219
|
key: 0,
|
|
268
|
-
class: E(
|
|
269
|
-
onClick: (
|
|
270
|
-
}, null, 8, ["class", "onClick"])) :
|
|
220
|
+
class: E(s(h).e("show__tag__item-close")),
|
|
221
|
+
onClick: (q) => c(y)
|
|
222
|
+
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
271
223
|
], 2)
|
|
272
224
|
]),
|
|
273
225
|
_: 1
|
|
274
226
|
}, 8, ["modelValue", "disabled"])
|
|
275
227
|
], 2)
|
|
276
228
|
], 2),
|
|
277
|
-
|
|
278
|
-
class: E(
|
|
229
|
+
g("section", {
|
|
230
|
+
class: E(s(h).e("unshow"))
|
|
279
231
|
}, [
|
|
280
|
-
|
|
281
|
-
class: E(
|
|
232
|
+
g("div", {
|
|
233
|
+
class: E(s(h).e("show__title"))
|
|
282
234
|
}, [
|
|
283
|
-
|
|
284
|
-
class: E(
|
|
285
|
-
},
|
|
235
|
+
g("span", {
|
|
236
|
+
class: E(s(h).e("title__tip"))
|
|
237
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
286
238
|
], 2),
|
|
287
|
-
|
|
288
|
-
class: E(
|
|
239
|
+
g("div", {
|
|
240
|
+
class: E(s(h).e("unshow__tag"))
|
|
289
241
|
}, [
|
|
290
|
-
|
|
291
|
-
class: E([
|
|
292
|
-
key:
|
|
293
|
-
onMouseenter: (
|
|
294
|
-
onMouseleave: (
|
|
242
|
+
M.value.length > 0 ? (a(!0), S(J, { key: 0 }, le(M.value, (y) => (a(), S("div", {
|
|
243
|
+
class: E([s(h).e("unshow__tag__item"), s(h).is("fixed", y.isFixed || ""), s(h).is("linked", y.isLinked || "")]),
|
|
244
|
+
key: y.key,
|
|
245
|
+
onMouseenter: (q) => ee(y),
|
|
246
|
+
onMouseleave: (q) => W(y)
|
|
295
247
|
}, [
|
|
296
|
-
|
|
297
|
-
|
|
248
|
+
H(k(y.label) + " ", 1),
|
|
249
|
+
y.active ? (a(), S("aside", {
|
|
298
250
|
key: 0,
|
|
299
|
-
class: E(
|
|
300
|
-
onClick: (
|
|
301
|
-
},
|
|
302
|
-
], 42,
|
|
251
|
+
class: E(s(h).e("unshow__tag__item-add")),
|
|
252
|
+
onClick: (q) => L(y)
|
|
253
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.add")), 11, gt)) : z("", !0)
|
|
254
|
+
], 42, vt))), 128)) : (a(), S("div", {
|
|
303
255
|
key: 1,
|
|
304
|
-
class: E(
|
|
305
|
-
},
|
|
256
|
+
class: E(s(h).e("unshow__tag__empty"))
|
|
257
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
306
258
|
], 2)
|
|
307
259
|
], 2)
|
|
308
260
|
]),
|
|
@@ -310,15 +262,15 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
310
262
|
}, 8, ["visible", "width"])
|
|
311
263
|
], 2));
|
|
312
264
|
}
|
|
313
|
-
}),
|
|
314
|
-
const
|
|
315
|
-
for (const [
|
|
316
|
-
|
|
317
|
-
return
|
|
318
|
-
},
|
|
319
|
-
for (const
|
|
320
|
-
|
|
321
|
-
}, t),
|
|
265
|
+
}), te = (t, f) => {
|
|
266
|
+
const d = t.__vccOpts || t;
|
|
267
|
+
for (const [r, F] of f)
|
|
268
|
+
d[r] = F;
|
|
269
|
+
return d;
|
|
270
|
+
}, Ct = /* @__PURE__ */ te(yt, [["__scopeId", "data-v-5d7f6d55"]]), X = (t, f) => (t.install = (d) => {
|
|
271
|
+
for (const r of [t, ...Object.values({})])
|
|
272
|
+
d.component(r.name, r);
|
|
273
|
+
}, t), Lt = X(Ct), kt = { class: "form-footer" }, _t = /* @__PURE__ */ Z({
|
|
322
274
|
name: "HbLibListForm",
|
|
323
275
|
__name: "HbListForm",
|
|
324
276
|
props: {
|
|
@@ -346,23 +298,23 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
346
298
|
} }
|
|
347
299
|
},
|
|
348
300
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
349
|
-
setup(t, { expose: f, emit:
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
},
|
|
357
|
-
|
|
358
|
-
},
|
|
359
|
-
|
|
301
|
+
setup(t, { expose: f, emit: d }) {
|
|
302
|
+
const r = d, F = Ce("HB_LIST_PAGE_CONTAINER"), p = Se("form"), m = t, u = B("show"), e = j(() => [...m.items]), h = B(), b = () => {
|
|
303
|
+
r("handleSearch");
|
|
304
|
+
}, A = () => {
|
|
305
|
+
r("handleReset");
|
|
306
|
+
}, D = B(), G = () => {
|
|
307
|
+
D.value && D.value.toOpenModal();
|
|
308
|
+
}, _ = (T) => {
|
|
309
|
+
r("handleSfcmConfirm", T);
|
|
310
|
+
}, C = () => {
|
|
311
|
+
u.value = u.value === "show" ? "hide" : "show";
|
|
360
312
|
};
|
|
361
|
-
|
|
362
|
-
() =>
|
|
363
|
-
(
|
|
364
|
-
if (
|
|
365
|
-
console.log(
|
|
313
|
+
oe(
|
|
314
|
+
() => m.isFormExpanded,
|
|
315
|
+
(T) => {
|
|
316
|
+
if (T) {
|
|
317
|
+
console.log(T);
|
|
366
318
|
const l = document.querySelector("#subpackage_container");
|
|
367
319
|
l instanceof HTMLElement && (l.style.overflow = "hidden", setTimeout(() => {
|
|
368
320
|
l.style.overflow = "auto";
|
|
@@ -370,170 +322,170 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
370
322
|
}
|
|
371
323
|
}
|
|
372
324
|
);
|
|
373
|
-
const
|
|
374
|
-
const l =
|
|
325
|
+
const M = (T) => {
|
|
326
|
+
const l = T;
|
|
375
327
|
l.style.height = "", l.offsetHeight;
|
|
376
|
-
},
|
|
377
|
-
const l =
|
|
378
|
-
l.style.height = "", l.style.overflow = "",
|
|
379
|
-
|
|
328
|
+
}, $ = (T) => {
|
|
329
|
+
const l = T;
|
|
330
|
+
l.style.height = "", l.style.overflow = "", ce(() => {
|
|
331
|
+
F.calTableHeight && F.calTableHeight();
|
|
380
332
|
});
|
|
381
|
-
},
|
|
382
|
-
const l =
|
|
333
|
+
}, N = (T) => {
|
|
334
|
+
const l = T, o = l.querySelector(".hb-lib-form--container");
|
|
383
335
|
if (o) {
|
|
384
|
-
const
|
|
385
|
-
l.style.height =
|
|
336
|
+
const c = o.offsetHeight;
|
|
337
|
+
l.style.height = c + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
386
338
|
l.style.height = "0";
|
|
387
339
|
});
|
|
388
340
|
}
|
|
389
|
-
},
|
|
390
|
-
|
|
391
|
-
|
|
341
|
+
}, x = () => {
|
|
342
|
+
ce(() => {
|
|
343
|
+
F.calTableHeight && F.calTableHeight();
|
|
392
344
|
});
|
|
393
345
|
};
|
|
394
346
|
return f({
|
|
395
347
|
formRef: h,
|
|
396
|
-
SelectOption:
|
|
397
|
-
Form:
|
|
398
|
-
FormItem:
|
|
399
|
-
Row:
|
|
400
|
-
Col:
|
|
401
|
-
Input:
|
|
402
|
-
Select:
|
|
403
|
-
CheckboxGroup:
|
|
404
|
-
Checkbox:
|
|
405
|
-
DatePicker:
|
|
406
|
-
InputNumber:
|
|
407
|
-
RadioGroup:
|
|
408
|
-
Radio:
|
|
409
|
-
Switch:
|
|
410
|
-
Button:
|
|
411
|
-
Tooltip:
|
|
412
|
-
}), (
|
|
413
|
-
const o =
|
|
414
|
-
return a(), S(
|
|
415
|
-
|
|
348
|
+
SelectOption: Pe,
|
|
349
|
+
Form: Re,
|
|
350
|
+
FormItem: Be,
|
|
351
|
+
Row: ut,
|
|
352
|
+
Col: dt,
|
|
353
|
+
Input: Oe,
|
|
354
|
+
Select: Ae,
|
|
355
|
+
CheckboxGroup: De,
|
|
356
|
+
Checkbox: he,
|
|
357
|
+
DatePicker: He,
|
|
358
|
+
InputNumber: Ie,
|
|
359
|
+
RadioGroup: Me,
|
|
360
|
+
Radio: xe,
|
|
361
|
+
Switch: $e,
|
|
362
|
+
Button: ie,
|
|
363
|
+
Tooltip: Te
|
|
364
|
+
}), (T, l) => {
|
|
365
|
+
const o = U("a-button"), c = U("a-tooltip"), L = U("HbLibFormItemFilterModal");
|
|
366
|
+
return a(), S(J, null, [
|
|
367
|
+
w(Je, {
|
|
416
368
|
name: "form-collapse",
|
|
417
|
-
onEnter:
|
|
418
|
-
onAfterEnter:
|
|
419
|
-
onLeave:
|
|
420
|
-
onAfterLeave:
|
|
369
|
+
onEnter: M,
|
|
370
|
+
onAfterEnter: $,
|
|
371
|
+
onLeave: N,
|
|
372
|
+
onAfterLeave: x
|
|
421
373
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
|
|
424
|
-
class: E([
|
|
374
|
+
default: i(() => [
|
|
375
|
+
ne(g("div", {
|
|
376
|
+
class: E([s(p).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
425
377
|
}, [
|
|
426
|
-
|
|
378
|
+
w(s(Re), Q(T.$attrs, {
|
|
427
379
|
model: t.formData,
|
|
428
380
|
ref_key: "formRef",
|
|
429
381
|
ref: h,
|
|
430
|
-
class: ["hb-lib-form--container",
|
|
382
|
+
class: ["hb-lib-form--container", u.value == "show" ? "" : "hide"]
|
|
431
383
|
}), {
|
|
432
|
-
default:
|
|
433
|
-
(a(!0), S(
|
|
384
|
+
default: i(() => [
|
|
385
|
+
(a(!0), S(J, null, le(e.value, (n, Y) => (a(), R(s(Be), Q({
|
|
434
386
|
key: Y,
|
|
435
387
|
ref_for: !0
|
|
436
|
-
},
|
|
437
|
-
name:
|
|
438
|
-
class:
|
|
439
|
-
}),
|
|
440
|
-
default:
|
|
441
|
-
|
|
388
|
+
}, n, {
|
|
389
|
+
name: n.key,
|
|
390
|
+
class: n.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
391
|
+
}), je({
|
|
392
|
+
default: i(() => [
|
|
393
|
+
n.type === "slot" ? V(T.$slots, n.key, {
|
|
442
394
|
key: 0,
|
|
443
395
|
formData: t.formData,
|
|
444
|
-
item:
|
|
445
|
-
}, void 0, !0) :
|
|
446
|
-
|
|
396
|
+
item: n
|
|
397
|
+
}, void 0, !0) : z("", !0),
|
|
398
|
+
n.type === "mixin" ? V(T.$slots, n.key, {
|
|
447
399
|
key: 1,
|
|
448
400
|
formData: t.formData,
|
|
449
|
-
item:
|
|
450
|
-
}, void 0, !0) :
|
|
451
|
-
|
|
401
|
+
item: n
|
|
402
|
+
}, void 0, !0) : z("", !0),
|
|
403
|
+
n.type === "input" ? (a(), R(s(Oe), Q({
|
|
452
404
|
key: 2,
|
|
453
|
-
value: t.formData[
|
|
454
|
-
"onUpdate:value": (
|
|
455
|
-
}, { ref_for: !0 },
|
|
456
|
-
|
|
405
|
+
value: t.formData[n.key],
|
|
406
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
407
|
+
}, { ref_for: !0 }, n.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
408
|
+
n.type === "select" ? (a(), R(s(Ae), Q({
|
|
457
409
|
key: 3,
|
|
458
|
-
value: t.formData[
|
|
459
|
-
"onUpdate:value": (
|
|
460
|
-
}, { ref_for: !0 },
|
|
461
|
-
default:
|
|
462
|
-
(a(!0), S(
|
|
410
|
+
value: t.formData[n.key],
|
|
411
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
412
|
+
}, { ref_for: !0 }, n.attrs), {
|
|
413
|
+
default: i(() => [
|
|
414
|
+
(a(!0), S(J, null, le(n.options, (P, ee) => (a(), R(s(Pe), {
|
|
463
415
|
key: ee,
|
|
464
|
-
value:
|
|
416
|
+
value: P.value
|
|
465
417
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
|
|
418
|
+
default: i(() => [
|
|
419
|
+
H(k(P.label), 1)
|
|
468
420
|
]),
|
|
469
421
|
_: 2
|
|
470
422
|
}, 1032, ["value"]))), 128))
|
|
471
423
|
]),
|
|
472
424
|
_: 2
|
|
473
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
474
|
-
|
|
425
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
426
|
+
n.type === "checkbox" ? (a(), R(s(De), Q({
|
|
475
427
|
key: 4,
|
|
476
|
-
value: t.formData[
|
|
477
|
-
"onUpdate:value": (
|
|
478
|
-
}, { ref_for: !0 },
|
|
479
|
-
default:
|
|
480
|
-
(a(!0), S(
|
|
428
|
+
value: t.formData[n.key],
|
|
429
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
430
|
+
}, { ref_for: !0 }, n.attrs), {
|
|
431
|
+
default: i(() => [
|
|
432
|
+
(a(!0), S(J, null, le(n.options, (P, ee) => (a(), R(s(he), {
|
|
481
433
|
key: ee,
|
|
482
|
-
value:
|
|
434
|
+
value: P.value
|
|
483
435
|
}, {
|
|
484
|
-
default:
|
|
485
|
-
|
|
436
|
+
default: i(() => [
|
|
437
|
+
H(k(P.label), 1)
|
|
486
438
|
]),
|
|
487
439
|
_: 2
|
|
488
440
|
}, 1032, ["value"]))), 128))
|
|
489
441
|
]),
|
|
490
442
|
_: 2
|
|
491
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
492
|
-
|
|
443
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
444
|
+
n.type === "date-picker" ? (a(), R(s(He), Q({
|
|
493
445
|
key: 5,
|
|
494
|
-
value: t.formData[
|
|
495
|
-
"onUpdate:value": (
|
|
496
|
-
}, { ref_for: !0 },
|
|
497
|
-
|
|
446
|
+
value: t.formData[n.key],
|
|
447
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
448
|
+
}, { ref_for: !0 }, n.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
449
|
+
n.type === "input-number" ? (a(), R(s(Ie), Q({
|
|
498
450
|
key: 6,
|
|
499
|
-
value: t.formData[
|
|
500
|
-
"onUpdate:value": (
|
|
501
|
-
}, { ref_for: !0 },
|
|
502
|
-
|
|
451
|
+
value: t.formData[n.key],
|
|
452
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
453
|
+
}, { ref_for: !0 }, n.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
454
|
+
n.type === "radio" ? (a(), R(s(Me), Q({
|
|
503
455
|
key: 7,
|
|
504
|
-
value: t.formData[
|
|
505
|
-
"onUpdate:value": (
|
|
506
|
-
}, { ref_for: !0 },
|
|
507
|
-
default:
|
|
508
|
-
(a(!0), S(
|
|
456
|
+
value: t.formData[n.key],
|
|
457
|
+
"onUpdate:value": (P) => t.formData[n.key] = P
|
|
458
|
+
}, { ref_for: !0 }, n.attrs), {
|
|
459
|
+
default: i(() => [
|
|
460
|
+
(a(!0), S(J, null, le(n.options, (P, ee) => (a(), R(s(xe), {
|
|
509
461
|
key: ee,
|
|
510
|
-
value:
|
|
462
|
+
value: P.value
|
|
511
463
|
}, {
|
|
512
|
-
default:
|
|
513
|
-
|
|
464
|
+
default: i(() => [
|
|
465
|
+
H(k(P.label), 1)
|
|
514
466
|
]),
|
|
515
467
|
_: 2
|
|
516
468
|
}, 1032, ["value"]))), 128))
|
|
517
469
|
]),
|
|
518
470
|
_: 2
|
|
519
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
520
|
-
|
|
471
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
472
|
+
n.type === "switch" ? (a(), R(s($e), Q({
|
|
521
473
|
key: 8,
|
|
522
|
-
checked: t.formData[
|
|
523
|
-
"onUpdate:checked": (
|
|
524
|
-
}, { ref_for: !0 },
|
|
474
|
+
checked: t.formData[n.key],
|
|
475
|
+
"onUpdate:checked": (P) => t.formData[n.key] = P
|
|
476
|
+
}, { ref_for: !0 }, n.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
|
|
525
477
|
]),
|
|
526
478
|
_: 2
|
|
527
479
|
}, [
|
|
528
|
-
|
|
480
|
+
n.tooltip ? {
|
|
529
481
|
name: "label",
|
|
530
|
-
fn:
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
title:
|
|
482
|
+
fn: i(() => [
|
|
483
|
+
H(k(n.label) + " ", 1),
|
|
484
|
+
w(s(Te), {
|
|
485
|
+
title: n.tooltip
|
|
534
486
|
}, {
|
|
535
|
-
default:
|
|
536
|
-
|
|
487
|
+
default: i(() => [
|
|
488
|
+
w(s(st), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
537
489
|
]),
|
|
538
490
|
_: 1
|
|
539
491
|
}, 8, ["title"])
|
|
@@ -541,39 +493,39 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
541
493
|
key: "0"
|
|
542
494
|
} : void 0
|
|
543
495
|
]), 1040, ["name", "class"]))), 128)),
|
|
544
|
-
|
|
545
|
-
|
|
496
|
+
g("section", kt, [
|
|
497
|
+
w(o, {
|
|
546
498
|
type: "primary",
|
|
547
499
|
onClick: b,
|
|
548
500
|
class: "hb_list_page_button"
|
|
549
501
|
}, {
|
|
550
|
-
icon:
|
|
551
|
-
|
|
502
|
+
icon: i(() => [
|
|
503
|
+
w(s(ke))
|
|
552
504
|
]),
|
|
553
|
-
default:
|
|
554
|
-
|
|
505
|
+
default: i(() => [
|
|
506
|
+
H(" " + k(T.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
555
507
|
]),
|
|
556
508
|
_: 1
|
|
557
509
|
}),
|
|
558
|
-
|
|
510
|
+
w(o, {
|
|
559
511
|
type: "link",
|
|
560
|
-
onClick:
|
|
512
|
+
onClick: A
|
|
561
513
|
}, {
|
|
562
|
-
default:
|
|
563
|
-
|
|
514
|
+
default: i(() => [
|
|
515
|
+
H(k(T.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
564
516
|
]),
|
|
565
517
|
_: 1
|
|
566
518
|
}),
|
|
567
|
-
t.needFilter ? (a(),
|
|
519
|
+
t.needFilter ? (a(), R(c, {
|
|
568
520
|
key: 0,
|
|
569
|
-
title:
|
|
521
|
+
title: T.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
570
522
|
}, {
|
|
571
|
-
default:
|
|
572
|
-
|
|
523
|
+
default: i(() => [
|
|
524
|
+
g("span", {
|
|
573
525
|
class: "hb-lib-form-svg",
|
|
574
|
-
onClick:
|
|
526
|
+
onClick: G
|
|
575
527
|
}, [...l[0] || (l[0] = [
|
|
576
|
-
|
|
528
|
+
g("svg", {
|
|
577
529
|
t: "1757915025410",
|
|
578
530
|
class: "icon",
|
|
579
531
|
viewBox: "0 0 1024 1024",
|
|
@@ -583,7 +535,7 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
583
535
|
width: "200",
|
|
584
536
|
height: "200"
|
|
585
537
|
}, [
|
|
586
|
-
|
|
538
|
+
g("path", {
|
|
587
539
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
588
540
|
fill: "#ff5000",
|
|
589
541
|
"p-id": "16347"
|
|
@@ -592,74 +544,74 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
592
544
|
])])
|
|
593
545
|
]),
|
|
594
546
|
_: 1
|
|
595
|
-
}, 8, ["title"])) :
|
|
596
|
-
|
|
547
|
+
}, 8, ["title"])) : z("", !0),
|
|
548
|
+
V(T.$slots, "formBtns", {}, void 0, !0)
|
|
597
549
|
])
|
|
598
550
|
]),
|
|
599
551
|
_: 3
|
|
600
552
|
}, 16, ["model", "class"]),
|
|
601
553
|
t.needFooter ? (a(), S("div", {
|
|
602
554
|
key: 0,
|
|
603
|
-
class: E(
|
|
555
|
+
class: E(s(p).e("footer"))
|
|
604
556
|
}, [
|
|
605
|
-
|
|
606
|
-
class: E(
|
|
557
|
+
g("div", {
|
|
558
|
+
class: E(s(p).e("footer__left"))
|
|
607
559
|
}, [
|
|
608
|
-
|
|
560
|
+
V(T.$slots, "form-footer-left", {}, void 0, !0)
|
|
609
561
|
], 2),
|
|
610
|
-
|
|
611
|
-
class: E(
|
|
562
|
+
g("div", {
|
|
563
|
+
class: E(s(p).e("footer__right"))
|
|
612
564
|
}, [
|
|
613
|
-
|
|
565
|
+
u.value == "show" ? V(T.$slots, "form-footer-right", {
|
|
614
566
|
key: 0,
|
|
615
567
|
formRef: h.value
|
|
616
568
|
}, () => [
|
|
617
|
-
|
|
569
|
+
w(s(ie), {
|
|
618
570
|
type: "primary",
|
|
619
|
-
onClick:
|
|
571
|
+
onClick: A
|
|
620
572
|
}, {
|
|
621
|
-
default:
|
|
622
|
-
|
|
573
|
+
default: i(() => [
|
|
574
|
+
H(k(T.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
623
575
|
]),
|
|
624
576
|
_: 1
|
|
625
577
|
}),
|
|
626
|
-
|
|
578
|
+
w(s(ie), {
|
|
627
579
|
type: "primary",
|
|
628
580
|
onClick: b
|
|
629
581
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
|
|
582
|
+
default: i(() => [
|
|
583
|
+
H(k(T.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
632
584
|
]),
|
|
633
585
|
_: 1
|
|
634
586
|
})
|
|
635
|
-
], !0) :
|
|
636
|
-
|
|
587
|
+
], !0) : z("", !0),
|
|
588
|
+
w(s(ie), {
|
|
637
589
|
type: "primary",
|
|
638
|
-
onClick:
|
|
590
|
+
onClick: C
|
|
639
591
|
}, {
|
|
640
|
-
default:
|
|
641
|
-
|
|
592
|
+
default: i(() => [
|
|
593
|
+
H(k(u.value == "show" ? `${T.$t("hbLibComp.hbListPageAct.close")}` : `${T.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
642
594
|
]),
|
|
643
595
|
_: 1
|
|
644
596
|
})
|
|
645
597
|
], 2)
|
|
646
|
-
], 2)) :
|
|
598
|
+
], 2)) : z("", !0)
|
|
647
599
|
], 2), [
|
|
648
|
-
[
|
|
600
|
+
[Ge, t.isFormExpanded]
|
|
649
601
|
])
|
|
650
602
|
]),
|
|
651
603
|
_: 3
|
|
652
604
|
}),
|
|
653
|
-
|
|
605
|
+
w(L, {
|
|
654
606
|
list: e.value,
|
|
655
607
|
ref_key: "HbSfCmRef",
|
|
656
|
-
ref:
|
|
657
|
-
onConfirm:
|
|
608
|
+
ref: D,
|
|
609
|
+
onConfirm: _
|
|
658
610
|
}, null, 8, ["list"])
|
|
659
611
|
], 64);
|
|
660
612
|
};
|
|
661
613
|
}
|
|
662
|
-
}),
|
|
614
|
+
}), St = /* @__PURE__ */ te(_t, [["__scopeId", "data-v-5df81ec2"]]), wt = X(St), Ft = { class: "hb-lib-list-page-act-box" }, Tt = { class: "hb-lib-list-page-breadcrumb" }, $t = { class: "hb-lib-list-page-act" }, xt = {
|
|
663
615
|
key: 0,
|
|
664
616
|
t: "1757915338760",
|
|
665
617
|
class: "icon",
|
|
@@ -669,7 +621,7 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
669
621
|
"p-id": "22885",
|
|
670
622
|
width: "200",
|
|
671
623
|
height: "200"
|
|
672
|
-
},
|
|
624
|
+
}, Mt = {
|
|
673
625
|
key: 1,
|
|
674
626
|
t: "1757915360496",
|
|
675
627
|
class: "icon",
|
|
@@ -679,7 +631,7 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
679
631
|
"p-id": "23904",
|
|
680
632
|
width: "200",
|
|
681
633
|
height: "200"
|
|
682
|
-
},
|
|
634
|
+
}, It = /* @__PURE__ */ Z({
|
|
683
635
|
name: "HbLibListPageAct",
|
|
684
636
|
__name: "HbListPageAct",
|
|
685
637
|
props: {
|
|
@@ -690,49 +642,49 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
690
642
|
},
|
|
691
643
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
692
644
|
setup(t, { emit: f }) {
|
|
693
|
-
const
|
|
694
|
-
const
|
|
695
|
-
let e = localStorage.getItem("BreadCrumb") || "[]", h =
|
|
645
|
+
const d = Ce("HB_LIST_PAGE_CONTAINER"), { isFullscreen: r, toggle: F } = bt(d.PageContainerRef), p = B(""), m = () => {
|
|
646
|
+
const u = qe();
|
|
647
|
+
let e = localStorage.getItem("BreadCrumb") || "[]", h = u?.path;
|
|
696
648
|
if (e !== "[]") {
|
|
697
|
-
let b = JSON.parse(e).find((
|
|
698
|
-
b && (
|
|
649
|
+
let b = JSON.parse(e).find((A) => A.value === h);
|
|
650
|
+
b && (p.value = b.label.replace(/-/g, " / "));
|
|
699
651
|
}
|
|
700
652
|
};
|
|
701
|
-
return
|
|
702
|
-
|
|
703
|
-
}), (
|
|
704
|
-
const h =
|
|
705
|
-
return a(), S("section",
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
title:
|
|
653
|
+
return Le(() => {
|
|
654
|
+
m();
|
|
655
|
+
}), (u, e) => {
|
|
656
|
+
const h = U("a-tooltip");
|
|
657
|
+
return a(), S("section", Ft, [
|
|
658
|
+
g("aside", Tt, k(p.value), 1),
|
|
659
|
+
g("aside", $t, [
|
|
660
|
+
w(h, {
|
|
661
|
+
title: s(r) ? `${u.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${u.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
710
662
|
placement: "leftTop"
|
|
711
663
|
}, {
|
|
712
|
-
default:
|
|
713
|
-
|
|
664
|
+
default: i(() => [
|
|
665
|
+
g("span", {
|
|
714
666
|
class: "hb-lib-list-page-act-svg",
|
|
715
667
|
onClick: e[0] || (e[0] = //@ts-ignore
|
|
716
|
-
(...b) =>
|
|
668
|
+
(...b) => s(F) && s(F)(...b))
|
|
717
669
|
}, [
|
|
718
|
-
|
|
719
|
-
|
|
670
|
+
s(r) ? (a(), S("svg", Mt, [...e[2] || (e[2] = [
|
|
671
|
+
g("path", {
|
|
720
672
|
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",
|
|
721
673
|
fill: "#ff5000",
|
|
722
674
|
"p-id": "23905"
|
|
723
675
|
}, null, -1),
|
|
724
|
-
|
|
676
|
+
g("path", {
|
|
725
677
|
d: "M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
726
678
|
fill: "#ff5000",
|
|
727
679
|
"p-id": "23906"
|
|
728
680
|
}, null, -1),
|
|
729
|
-
|
|
681
|
+
g("path", {
|
|
730
682
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
731
683
|
fill: "#ff5000",
|
|
732
684
|
"p-id": "23907"
|
|
733
685
|
}, null, -1)
|
|
734
|
-
])])) : (a(), S("svg",
|
|
735
|
-
|
|
686
|
+
])])) : (a(), S("svg", xt, [...e[1] || (e[1] = [
|
|
687
|
+
g("path", {
|
|
736
688
|
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",
|
|
737
689
|
fill: "#ff5000",
|
|
738
690
|
"p-id": "22886"
|
|
@@ -742,12 +694,12 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
742
694
|
]),
|
|
743
695
|
_: 1
|
|
744
696
|
}, 8, ["title"]),
|
|
745
|
-
|
|
697
|
+
V(u.$slots, "listAct", {}, void 0, !0)
|
|
746
698
|
])
|
|
747
699
|
]);
|
|
748
700
|
};
|
|
749
701
|
}
|
|
750
|
-
}),
|
|
702
|
+
}), Ht = /* @__PURE__ */ te(It, [["__scopeId", "data-v-cb524b69"]]), Dt = X(Ht), At = { class: "hb-lib-list-btns-box" }, Ot = { class: "hb-lib-list-btns-left" }, Bt = { class: "hb-lib-list-btns-right" }, Rt = /* @__PURE__ */ Z({
|
|
751
703
|
name: "HbLibListBtnsAct",
|
|
752
704
|
__name: "HbListBtns",
|
|
753
705
|
props: {
|
|
@@ -758,29 +710,29 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
758
710
|
},
|
|
759
711
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
760
712
|
setup(t, { emit: f }) {
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
},
|
|
764
|
-
|
|
713
|
+
const d = f, r = B(!0), F = () => {
|
|
714
|
+
r.value = !r.value, d("handleOpenOrClose", r.value);
|
|
715
|
+
}, p = () => {
|
|
716
|
+
d("handleReload");
|
|
765
717
|
};
|
|
766
|
-
return
|
|
767
|
-
}), (
|
|
768
|
-
const e =
|
|
769
|
-
return a(), S("section",
|
|
770
|
-
|
|
771
|
-
|
|
718
|
+
return Le(() => {
|
|
719
|
+
}), (m, u) => {
|
|
720
|
+
const e = U("a-tooltip");
|
|
721
|
+
return a(), S("section", At, [
|
|
722
|
+
g("aside", Ot, [
|
|
723
|
+
V(m.$slots, "btnsLeft", {}, void 0, !0)
|
|
772
724
|
]),
|
|
773
|
-
|
|
774
|
-
t.needReload ? (a(),
|
|
725
|
+
g("aside", Bt, [
|
|
726
|
+
t.needReload ? (a(), R(e, {
|
|
775
727
|
key: 0,
|
|
776
|
-
title:
|
|
728
|
+
title: m.$t("hbLibComp.hbListBtnsAct.reload")
|
|
777
729
|
}, {
|
|
778
|
-
default:
|
|
779
|
-
|
|
730
|
+
default: i(() => [
|
|
731
|
+
g("span", {
|
|
780
732
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
781
|
-
onClick:
|
|
782
|
-
}, [...
|
|
783
|
-
|
|
733
|
+
onClick: p
|
|
734
|
+
}, [...u[0] || (u[0] = [
|
|
735
|
+
g("svg", {
|
|
784
736
|
t: "1759041224819",
|
|
785
737
|
class: "icon",
|
|
786
738
|
viewBox: "0 0 1024 1024",
|
|
@@ -790,7 +742,7 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
790
742
|
width: "200",
|
|
791
743
|
height: "200"
|
|
792
744
|
}, [
|
|
793
|
-
|
|
745
|
+
g("path", {
|
|
794
746
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
795
747
|
fill: "#ff5000",
|
|
796
748
|
"p-id": "4203"
|
|
@@ -799,93 +751,93 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
799
751
|
])])
|
|
800
752
|
]),
|
|
801
753
|
_: 1
|
|
802
|
-
}, 8, ["title"])) :
|
|
803
|
-
t.needOpenOrClose ? (a(),
|
|
754
|
+
}, 8, ["title"])) : z("", !0),
|
|
755
|
+
t.needOpenOrClose ? (a(), R(e, {
|
|
804
756
|
key: 1,
|
|
805
|
-
title:
|
|
757
|
+
title: r.value ? `${m.$t("hbLibComp.hbListBtnsAct.close")}` : `${m.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
806
758
|
}, {
|
|
807
|
-
default:
|
|
808
|
-
|
|
759
|
+
default: i(() => [
|
|
760
|
+
g("span", {
|
|
809
761
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
810
|
-
onClick:
|
|
762
|
+
onClick: F
|
|
811
763
|
}, [
|
|
812
|
-
|
|
764
|
+
r.value ? (a(), R(s(it), {
|
|
813
765
|
key: 0,
|
|
814
766
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
815
|
-
})) : (a(),
|
|
767
|
+
})) : (a(), R(s(rt), {
|
|
816
768
|
key: 1,
|
|
817
769
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
818
770
|
}))
|
|
819
771
|
])
|
|
820
772
|
]),
|
|
821
773
|
_: 1
|
|
822
|
-
}, 8, ["title"])) :
|
|
823
|
-
|
|
774
|
+
}, 8, ["title"])) : z("", !0),
|
|
775
|
+
V(m.$slots, "btnsRight", {}, void 0, !0)
|
|
824
776
|
])
|
|
825
777
|
]);
|
|
826
778
|
};
|
|
827
779
|
}
|
|
828
|
-
}),
|
|
829
|
-
const { formRef: f, offsetBottom:
|
|
830
|
-
let
|
|
780
|
+
}), Pt = /* @__PURE__ */ te(Rt, [["__scopeId", "data-v-0ab77a2c"]]), zt = X(Pt), Nt = (t = {}) => {
|
|
781
|
+
const { formRef: f, offsetBottom: d = 50, minHeight: r = 300 } = t, F = B(0);
|
|
782
|
+
let p = null, m = null, u = null, e = null, h = null;
|
|
831
783
|
const b = () => {
|
|
832
784
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
833
785
|
requestAnimationFrame(() => {
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
if (
|
|
837
|
-
const
|
|
838
|
-
let
|
|
839
|
-
|
|
786
|
+
ce(() => {
|
|
787
|
+
const $ = document.querySelector(".ant-table"), N = document.querySelector(".ant-pagination");
|
|
788
|
+
if ($) {
|
|
789
|
+
const x = $.getBoundingClientRect().top, T = window.innerHeight, o = (N ? N.offsetHeight + 20 : 40) + d;
|
|
790
|
+
let c = T - x - o;
|
|
791
|
+
c < r && (c = r), F.value = c;
|
|
840
792
|
}
|
|
841
793
|
});
|
|
842
794
|
});
|
|
843
795
|
}, 100);
|
|
844
|
-
},
|
|
845
|
-
const
|
|
846
|
-
if (
|
|
847
|
-
const
|
|
796
|
+
}, A = () => {
|
|
797
|
+
const $ = document.querySelector(".ant-pagination");
|
|
798
|
+
if ($) {
|
|
799
|
+
const N = new MutationObserver(() => {
|
|
848
800
|
b();
|
|
849
801
|
});
|
|
850
|
-
return
|
|
802
|
+
return N.observe($, {
|
|
851
803
|
childList: !0,
|
|
852
804
|
subtree: !0,
|
|
853
805
|
attributes: !0,
|
|
854
806
|
attributeFilter: ["style", "class"]
|
|
855
|
-
}),
|
|
807
|
+
}), N;
|
|
856
808
|
}
|
|
857
809
|
return null;
|
|
858
|
-
},
|
|
859
|
-
const
|
|
860
|
-
|
|
861
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
862
|
-
|
|
810
|
+
}, D = () => {
|
|
811
|
+
const $ = document.querySelector(".hb-lib-list-page-form-box");
|
|
812
|
+
$ && (p = new ResizeObserver(() => {
|
|
813
|
+
document.querySelectorAll(".ant-tooltip").forEach((x) => {
|
|
814
|
+
x.style.display = "none";
|
|
863
815
|
}), b();
|
|
864
|
-
}),
|
|
865
|
-
},
|
|
866
|
-
const
|
|
867
|
-
|
|
816
|
+
}), p.observe($));
|
|
817
|
+
}, G = () => {
|
|
818
|
+
const $ = document.querySelector(".hb-lib-list-page-form-box");
|
|
819
|
+
$ && (u = new MutationObserver(() => {
|
|
868
820
|
setTimeout(() => {
|
|
869
821
|
b();
|
|
870
822
|
}, 100);
|
|
871
|
-
}),
|
|
823
|
+
}), u.observe($, {
|
|
872
824
|
childList: !0,
|
|
873
825
|
subtree: !0,
|
|
874
826
|
attributes: !0,
|
|
875
827
|
attributeFilter: ["style", "class"]
|
|
876
828
|
}));
|
|
877
|
-
},
|
|
829
|
+
}, _ = () => {
|
|
878
830
|
e && clearTimeout(e), e = setTimeout(() => {
|
|
879
831
|
b();
|
|
880
832
|
}, 100);
|
|
881
|
-
},
|
|
882
|
-
window.addEventListener("resize",
|
|
883
|
-
|
|
833
|
+
}, C = () => {
|
|
834
|
+
window.addEventListener("resize", _), ce(() => {
|
|
835
|
+
D(), G(), m = A();
|
|
884
836
|
});
|
|
885
|
-
},
|
|
886
|
-
window.removeEventListener("resize",
|
|
837
|
+
}, M = () => {
|
|
838
|
+
window.removeEventListener("resize", _), p && p.disconnect(), u && u.disconnect(), m && m.disconnect(), e && clearTimeout(e), h && clearTimeout(h);
|
|
887
839
|
};
|
|
888
|
-
return f &&
|
|
840
|
+
return f && oe(
|
|
889
841
|
() => f,
|
|
890
842
|
() => {
|
|
891
843
|
setTimeout(() => {
|
|
@@ -893,15 +845,15 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
893
845
|
}, 200);
|
|
894
846
|
},
|
|
895
847
|
{ deep: !0 }
|
|
896
|
-
),
|
|
897
|
-
b(),
|
|
898
|
-
}),
|
|
899
|
-
|
|
848
|
+
), Le(() => {
|
|
849
|
+
b(), C();
|
|
850
|
+
}), Qe(() => {
|
|
851
|
+
M();
|
|
900
852
|
}), {
|
|
901
|
-
tableHeight:
|
|
853
|
+
tableHeight: F,
|
|
902
854
|
calTableHeight: b
|
|
903
855
|
};
|
|
904
|
-
},
|
|
856
|
+
}, Et = /* @__PURE__ */ Z({
|
|
905
857
|
name: "HbLibListPageContainer",
|
|
906
858
|
__name: "HbListPageContainer",
|
|
907
859
|
props: {
|
|
@@ -911,50 +863,50 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
911
863
|
minHeight: {}
|
|
912
864
|
},
|
|
913
865
|
setup(t) {
|
|
914
|
-
const f = t,
|
|
866
|
+
const f = t, d = Ze("PageContainerRef"), { calTableHeight: r, tableHeight: F } = Nt({
|
|
915
867
|
offsetBottom: f.offsetBottom || 20,
|
|
916
868
|
// 底部预留空间
|
|
917
869
|
minHeight: f.minHeight || 300
|
|
918
870
|
// table最小高度 请勿随便修改!!
|
|
919
|
-
}),
|
|
920
|
-
return
|
|
921
|
-
PageContainerRef:
|
|
871
|
+
}), p = j(() => F.value);
|
|
872
|
+
return Xe("HB_LIST_PAGE_CONTAINER", {
|
|
873
|
+
PageContainerRef: d,
|
|
922
874
|
// 通过函数访问,
|
|
923
|
-
tableHeight:
|
|
924
|
-
calTableHeight:
|
|
925
|
-
}), (
|
|
875
|
+
tableHeight: F,
|
|
876
|
+
calTableHeight: r
|
|
877
|
+
}), (m, u) => (a(), S("section", {
|
|
926
878
|
class: "hb-lib-list-page-container",
|
|
927
879
|
ref_key: "PageContainerRef",
|
|
928
|
-
ref:
|
|
880
|
+
ref: d
|
|
929
881
|
}, [
|
|
930
|
-
|
|
931
|
-
|
|
882
|
+
V(m.$slots, "header"),
|
|
883
|
+
g("section", {
|
|
932
884
|
class: "list-page-box",
|
|
933
|
-
style:
|
|
934
|
-
"--hb-list-table-height":
|
|
935
|
-
"--hb-list-ttable-height": t.tabelData.length ? "" :
|
|
885
|
+
style: be({
|
|
886
|
+
"--hb-list-table-height": p.value - 20 + "px",
|
|
887
|
+
"--hb-list-ttable-height": t.tabelData.length ? "" : p.value - 20 + "px"
|
|
936
888
|
})
|
|
937
889
|
}, [
|
|
938
|
-
|
|
890
|
+
V(m.$slots, "default")
|
|
939
891
|
], 4)
|
|
940
892
|
], 512));
|
|
941
893
|
}
|
|
942
|
-
}),
|
|
894
|
+
}), Vt = X(Et), Ut = { style: { "font-weight": "500" } }, Yt = {
|
|
943
895
|
key: 0,
|
|
944
896
|
class: "hb-lib-search-tag__description"
|
|
945
|
-
},
|
|
897
|
+
}, jt = { class: "hb-lib-selector-dropdown" }, qt = { class: "hb-lib-selector-search" }, Kt = { class: "hb-lib-selector-list" }, Wt = ["onClick"], Jt = { class: "hb-lib-option-content" }, Gt = { class: "hb-lib-option-label" }, Qt = {
|
|
946
898
|
key: 0,
|
|
947
899
|
class: "hb-lib-selector-empty"
|
|
948
|
-
},
|
|
900
|
+
}, Zt = {
|
|
949
901
|
key: 1,
|
|
950
902
|
class: "hb-lib-selector-footer"
|
|
951
|
-
},
|
|
903
|
+
}, Xt = { class: "hb-lib-footer-buttons" }, el = {
|
|
952
904
|
key: 2,
|
|
953
905
|
class: "hb-lib-selector-footer"
|
|
954
|
-
},
|
|
906
|
+
}, tl = { class: "hb-lib-footer-buttons" }, ll = /* @__PURE__ */ Z({
|
|
955
907
|
name: "HbLibListMultiSelect",
|
|
956
908
|
__name: "HbListMultiSelect",
|
|
957
|
-
props: /* @__PURE__ */
|
|
909
|
+
props: /* @__PURE__ */ we({
|
|
958
910
|
title: { default: "请选择" },
|
|
959
911
|
placeholder: { default: "点击选择" },
|
|
960
912
|
searchPlaceholder: { default: "搜索选项" },
|
|
@@ -971,183 +923,183 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
971
923
|
value: {},
|
|
972
924
|
valueModifiers: {}
|
|
973
925
|
}),
|
|
974
|
-
emits: /* @__PURE__ */
|
|
926
|
+
emits: /* @__PURE__ */ we(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
975
927
|
setup(t, { emit: f }) {
|
|
976
|
-
const
|
|
977
|
-
if (
|
|
978
|
-
const l =
|
|
979
|
-
return
|
|
980
|
-
}), b =
|
|
928
|
+
const d = t, r = f, F = et(t, "value"), p = B(!1), m = B(""), u = B([]), e = B(), h = j(() => {
|
|
929
|
+
if (d.remoteSearch || !m.value) return d.options;
|
|
930
|
+
const l = m.value.toLowerCase();
|
|
931
|
+
return d.options.filter((o) => o.label.toLowerCase().includes(l) || o.description?.toLowerCase().includes(l));
|
|
932
|
+
}), b = j(() => d.prefix ? `${d.prefix.length * 14 + 8}px` : "0px"), A = j(() => h.value.length === 0 ? !1 : h.value.every((l) => u.value.includes(l.value))), D = j(() => {
|
|
981
933
|
if (h.value.length === 0) return !1;
|
|
982
|
-
const l = h.value.filter((o) =>
|
|
934
|
+
const l = h.value.filter((o) => u.value.includes(o.value)).length;
|
|
983
935
|
return l > 0 && l < h.value.length;
|
|
984
936
|
});
|
|
985
|
-
|
|
986
|
-
() =>
|
|
937
|
+
oe(
|
|
938
|
+
() => F.value,
|
|
987
939
|
(l) => {
|
|
988
|
-
l ?
|
|
940
|
+
l ? u.value = Array.isArray(l) ? [...l] : [l] : u.value = [];
|
|
989
941
|
},
|
|
990
942
|
{ immediate: !0 }
|
|
991
|
-
),
|
|
992
|
-
() =>
|
|
943
|
+
), oe(
|
|
944
|
+
() => d.searchValue,
|
|
993
945
|
(l) => {
|
|
994
|
-
|
|
946
|
+
d.remoteSearch && l !== void 0 && (m.value = l);
|
|
995
947
|
},
|
|
996
948
|
{ immediate: !0 }
|
|
997
949
|
);
|
|
998
|
-
const
|
|
999
|
-
l && (
|
|
950
|
+
const G = (l) => {
|
|
951
|
+
l && (p.value = l, _.value = [...u.value], m.value = "", setTimeout(() => {
|
|
1000
952
|
if (e.value) {
|
|
1001
953
|
const o = e.value.input || e.value.$el?.querySelector("input");
|
|
1002
954
|
o && o.focus();
|
|
1003
955
|
}
|
|
1004
956
|
}, 100));
|
|
1005
|
-
},
|
|
1006
|
-
|
|
1007
|
-
},
|
|
1008
|
-
const l =
|
|
1009
|
-
|
|
1010
|
-
},
|
|
1011
|
-
const o = l !== void 0 ? l :
|
|
1012
|
-
|
|
1013
|
-
}, 300),
|
|
1014
|
-
if (
|
|
1015
|
-
const o = new Set(
|
|
1016
|
-
o.has(l.value) ? o.delete(l.value) : o.add(l.value),
|
|
957
|
+
}, _ = B([]), C = () => {
|
|
958
|
+
u.value = [..._.value], p.value = !1, r("cancel");
|
|
959
|
+
}, M = B([]), $ = () => {
|
|
960
|
+
const l = d.multiple ? u.value : u.value[0] || "", o = d.options.filter((c) => u.value.includes(c.value));
|
|
961
|
+
M.value = o, console.log(l, o), _.value = [...u.value], F.value = l, r("update:value", l), r("change", l, o), r("confirm", l, o), p.value = !1;
|
|
962
|
+
}, N = ft((l) => {
|
|
963
|
+
const o = l !== void 0 ? l : m.value;
|
|
964
|
+
d.remoteSearch && (r("search", o), r("update:searchValue", o));
|
|
965
|
+
}, 300), x = (l) => {
|
|
966
|
+
if (d.multiple) {
|
|
967
|
+
const o = new Set(u.value);
|
|
968
|
+
o.has(l.value) ? o.delete(l.value) : o.add(l.value), u.value = Array.from(o);
|
|
1017
969
|
} else
|
|
1018
|
-
|
|
1019
|
-
},
|
|
970
|
+
u.value = [l.value], $();
|
|
971
|
+
}, T = (l) => {
|
|
1020
972
|
if (l.target.checked) {
|
|
1021
|
-
const
|
|
973
|
+
const c = new Set(u.value);
|
|
1022
974
|
h.value.forEach((L) => {
|
|
1023
|
-
|
|
1024
|
-
}),
|
|
975
|
+
c.add(L.value);
|
|
976
|
+
}), u.value = Array.from(c);
|
|
1025
977
|
} else {
|
|
1026
|
-
const
|
|
1027
|
-
|
|
978
|
+
const c = new Set(h.value.map((L) => L.value));
|
|
979
|
+
u.value = u.value.filter((L) => !c.has(L));
|
|
1028
980
|
}
|
|
1029
981
|
};
|
|
1030
982
|
return (l, o) => {
|
|
1031
|
-
const
|
|
1032
|
-
return a(), S("div",
|
|
983
|
+
const c = U("a-tag"), L = U("a-input"), n = U("a-checkbox"), Y = U("a-radio"), P = U("a-button"), ee = U("a-select");
|
|
984
|
+
return a(), S("div", Q({
|
|
1033
985
|
class: "hb-lib-selector-wrapper",
|
|
1034
986
|
style: { "--prefix-width": b.value }
|
|
1035
987
|
}, l.$attrs), [
|
|
1036
|
-
|
|
1037
|
-
value:
|
|
1038
|
-
"onUpdate:value": o[5] || (o[5] = (
|
|
988
|
+
w(ee, {
|
|
989
|
+
value: F.value,
|
|
990
|
+
"onUpdate:value": o[5] || (o[5] = (W) => F.value = W),
|
|
1039
991
|
mode: t.multiple ? "multiple" : void 0,
|
|
1040
992
|
placeholder: t.placeholder,
|
|
1041
993
|
"show-search": !0,
|
|
1042
994
|
"filter-option": !1,
|
|
1043
|
-
open:
|
|
995
|
+
open: p.value,
|
|
1044
996
|
allowClear: "",
|
|
1045
997
|
maxTagCount: t.maxTagCount,
|
|
1046
998
|
options: h.value,
|
|
1047
|
-
onDropdownVisibleChange:
|
|
1048
|
-
onSearch:
|
|
999
|
+
onDropdownVisibleChange: G,
|
|
1000
|
+
onSearch: s(N),
|
|
1049
1001
|
"max-tag-text-length": t.tagTextLength,
|
|
1050
1002
|
class: E({ "has-prefix": t.prefix }),
|
|
1051
1003
|
"data-prefix": t.prefix,
|
|
1052
1004
|
style: { width: "100%" }
|
|
1053
1005
|
}, {
|
|
1054
|
-
tagRender:
|
|
1055
|
-
|
|
1006
|
+
tagRender: i(({ value: W, label: v, closable: I, option: y }) => [
|
|
1007
|
+
w(c, {
|
|
1056
1008
|
class: "hb-lib-search-tag",
|
|
1057
|
-
onClick: o[0] || (o[0] = () =>
|
|
1009
|
+
onClick: o[0] || (o[0] = () => G(!0))
|
|
1058
1010
|
}, {
|
|
1059
|
-
default:
|
|
1060
|
-
|
|
1061
|
-
|
|
1011
|
+
default: i(() => [
|
|
1012
|
+
g("span", Ut, k(v), 1),
|
|
1013
|
+
y?.description ? (a(), S("span", Yt, " (" + k(y.description) + ") ", 1)) : z("", !0)
|
|
1062
1014
|
]),
|
|
1063
1015
|
_: 2
|
|
1064
1016
|
}, 1024)
|
|
1065
1017
|
]),
|
|
1066
|
-
dropdownRender:
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1018
|
+
dropdownRender: i(({ menuNode: W }) => [
|
|
1019
|
+
g("div", jt, [
|
|
1020
|
+
g("div", qt, [
|
|
1021
|
+
w(L, {
|
|
1070
1022
|
ref_key: "searchInputRef",
|
|
1071
1023
|
ref: e,
|
|
1072
1024
|
class: "hb-lib-selector-search-input",
|
|
1073
|
-
value:
|
|
1074
|
-
"onUpdate:value": o[1] || (o[1] = (
|
|
1025
|
+
value: m.value,
|
|
1026
|
+
"onUpdate:value": o[1] || (o[1] = (v) => m.value = v),
|
|
1075
1027
|
placeholder: "请输入关键词搜索",
|
|
1076
1028
|
"allow-clear": "",
|
|
1077
|
-
onInput: o[2] || (o[2] = (
|
|
1029
|
+
onInput: o[2] || (o[2] = (v) => s(N)(v.target.value))
|
|
1078
1030
|
}, {
|
|
1079
|
-
prefix:
|
|
1080
|
-
|
|
1031
|
+
prefix: i(() => [
|
|
1032
|
+
w(s(ke))
|
|
1081
1033
|
]),
|
|
1082
1034
|
_: 1
|
|
1083
1035
|
}, 8, ["value"])
|
|
1084
1036
|
]),
|
|
1085
|
-
|
|
1086
|
-
(a(!0), S(
|
|
1087
|
-
key:
|
|
1088
|
-
class: E(["hb-lib-selector-option", { selected:
|
|
1089
|
-
onClick: () =>
|
|
1037
|
+
g("div", Kt, [
|
|
1038
|
+
(a(!0), S(J, null, le(h.value, (v) => (a(), S("div", {
|
|
1039
|
+
key: v.value,
|
|
1040
|
+
class: E(["hb-lib-selector-option", { selected: u.value.includes(v.value) }]),
|
|
1041
|
+
onClick: () => x(v)
|
|
1090
1042
|
}, [
|
|
1091
|
-
t.multiple ? (a(),
|
|
1043
|
+
t.multiple ? (a(), R(n, {
|
|
1092
1044
|
key: 0,
|
|
1093
|
-
checked:
|
|
1094
|
-
onChange: () =>
|
|
1095
|
-
onClick: o[3] || (o[3] =
|
|
1045
|
+
checked: u.value.includes(v.value),
|
|
1046
|
+
onChange: () => x(v),
|
|
1047
|
+
onClick: o[3] || (o[3] = ve(() => {
|
|
1096
1048
|
}, ["stop"]))
|
|
1097
|
-
}, null, 8, ["checked", "onChange"])) : (a(),
|
|
1049
|
+
}, null, 8, ["checked", "onChange"])) : (a(), R(Y, {
|
|
1098
1050
|
key: 1,
|
|
1099
|
-
checked:
|
|
1100
|
-
onChange: () =>
|
|
1101
|
-
onClick: o[4] || (o[4] =
|
|
1051
|
+
checked: u.value.includes(v.value),
|
|
1052
|
+
onChange: () => x(v),
|
|
1053
|
+
onClick: o[4] || (o[4] = ve(() => {
|
|
1102
1054
|
}, ["stop"]))
|
|
1103
1055
|
}, null, 8, ["checked", "onChange"])),
|
|
1104
|
-
|
|
1105
|
-
|
|
1056
|
+
g("div", Jt, [
|
|
1057
|
+
g("div", Gt, k(v.label), 1)
|
|
1106
1058
|
])
|
|
1107
|
-
], 10,
|
|
1059
|
+
], 10, Wt))), 128))
|
|
1108
1060
|
]),
|
|
1109
|
-
h.value.length === 0 ? (a(), S("div",
|
|
1110
|
-
t.multiple ? (a(), S("div",
|
|
1111
|
-
|
|
1112
|
-
checked:
|
|
1113
|
-
indeterminate:
|
|
1114
|
-
onChange:
|
|
1061
|
+
h.value.length === 0 ? (a(), S("div", Qt, k(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1062
|
+
t.multiple ? (a(), S("div", Zt, [
|
|
1063
|
+
w(n, {
|
|
1064
|
+
checked: A.value,
|
|
1065
|
+
indeterminate: D.value,
|
|
1066
|
+
onChange: T
|
|
1115
1067
|
}, {
|
|
1116
|
-
default:
|
|
1117
|
-
|
|
1068
|
+
default: i(() => [
|
|
1069
|
+
H(k(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1118
1070
|
]),
|
|
1119
1071
|
_: 1
|
|
1120
1072
|
}, 8, ["checked", "indeterminate"]),
|
|
1121
|
-
|
|
1122
|
-
|
|
1073
|
+
g("div", Xt, [
|
|
1074
|
+
w(P, {
|
|
1123
1075
|
size: "small",
|
|
1124
|
-
onClick:
|
|
1076
|
+
onClick: C
|
|
1125
1077
|
}, {
|
|
1126
|
-
default:
|
|
1127
|
-
|
|
1078
|
+
default: i(() => [
|
|
1079
|
+
H(k(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1128
1080
|
]),
|
|
1129
1081
|
_: 1
|
|
1130
1082
|
}),
|
|
1131
|
-
|
|
1083
|
+
w(P, {
|
|
1132
1084
|
type: "primary",
|
|
1133
1085
|
size: "small",
|
|
1134
|
-
onClick:
|
|
1086
|
+
onClick: $
|
|
1135
1087
|
}, {
|
|
1136
|
-
default:
|
|
1137
|
-
|
|
1088
|
+
default: i(() => [
|
|
1089
|
+
H(k(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1138
1090
|
]),
|
|
1139
1091
|
_: 1
|
|
1140
1092
|
})
|
|
1141
1093
|
])
|
|
1142
|
-
])) : (a(), S("div",
|
|
1143
|
-
o[6] || (o[6] =
|
|
1144
|
-
|
|
1145
|
-
|
|
1094
|
+
])) : (a(), S("div", el, [
|
|
1095
|
+
o[6] || (o[6] = g("div", null, null, -1)),
|
|
1096
|
+
g("div", tl, [
|
|
1097
|
+
w(P, {
|
|
1146
1098
|
size: "small",
|
|
1147
|
-
onClick:
|
|
1099
|
+
onClick: C
|
|
1148
1100
|
}, {
|
|
1149
|
-
default:
|
|
1150
|
-
|
|
1101
|
+
default: i(() => [
|
|
1102
|
+
H(k(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1151
1103
|
]),
|
|
1152
1104
|
_: 1
|
|
1153
1105
|
})
|
|
@@ -1160,7 +1112,7 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1160
1112
|
], 16);
|
|
1161
1113
|
};
|
|
1162
1114
|
}
|
|
1163
|
-
}),
|
|
1115
|
+
}), ol = /* @__PURE__ */ te(ll, [["__scopeId", "data-v-11422adb"]]), al = X(ol), nl = { class: "hb-lib-form-item-filter-modal-search" }, sl = { class: "hb-lib-form-item-filter-modal-buttons" }, il = { key: 0 }, rl = /* @__PURE__ */ Z({
|
|
1164
1116
|
name: "HbLibMutilpleSelectModal",
|
|
1165
1117
|
__name: "HbMutilpleSelectModal",
|
|
1166
1118
|
props: {
|
|
@@ -1173,149 +1125,149 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1173
1125
|
labelKey: { default: "label" }
|
|
1174
1126
|
},
|
|
1175
1127
|
emits: ["handleConfirm", "handleCancel"],
|
|
1176
|
-
setup(t, { expose: f, emit:
|
|
1177
|
-
const
|
|
1128
|
+
setup(t, { expose: f, emit: d }) {
|
|
1129
|
+
const r = t, F = d, p = B(!1), m = B(""), u = B(), e = B(), h = B([]), b = B([]), A = B(), D = Ye({
|
|
1178
1130
|
searchText: "",
|
|
1179
1131
|
searchedColumn: ""
|
|
1180
|
-
}),
|
|
1132
|
+
}), G = j(() => r.tableData.map((c) => (c.id = c.id || Math.random(), c))), _ = j(() => r.tableColumn.map((c) => (c.customFilterDropdown && (c.onFilter = (L, n) => n[c.dataIndex].toString().toLowerCase().includes(L.toLowerCase()), c.onFilterDropdownVisibleChange = (L) => {
|
|
1181
1133
|
L && setTimeout(() => {
|
|
1182
|
-
|
|
1134
|
+
u.value?.focus();
|
|
1183
1135
|
}, 100);
|
|
1184
|
-
}), { ...
|
|
1185
|
-
let
|
|
1136
|
+
}), { ...c }))), C = () => {
|
|
1137
|
+
let c = "";
|
|
1186
1138
|
b.value.forEach((L) => {
|
|
1187
|
-
|
|
1188
|
-
}),
|
|
1189
|
-
},
|
|
1190
|
-
|
|
1191
|
-
},
|
|
1192
|
-
|
|
1193
|
-
const
|
|
1194
|
-
|
|
1139
|
+
c = c + L[r.labelKey] + ",";
|
|
1140
|
+
}), m.value = c.substring(0, c.length - 1), p.value = !1, F("handleConfirm", b.value);
|
|
1141
|
+
}, M = () => {
|
|
1142
|
+
p.value = !1;
|
|
1143
|
+
}, $ = () => {
|
|
1144
|
+
p.value = !0, ce(() => {
|
|
1145
|
+
const c = A.value?.$el?.querySelector(".ant-table-body");
|
|
1146
|
+
c && (c.scrollTop = 0);
|
|
1195
1147
|
});
|
|
1196
|
-
},
|
|
1148
|
+
}, N = () => {
|
|
1197
1149
|
h.value = [], b.value = [];
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
L(),
|
|
1202
|
-
}, l = (
|
|
1203
|
-
|
|
1204
|
-
}, o = (
|
|
1205
|
-
h.value =
|
|
1150
|
+
}, x = () => {
|
|
1151
|
+
m.value = "", N();
|
|
1152
|
+
}, T = (c, L, n) => {
|
|
1153
|
+
L(), D.searchText = c[0], D.searchedColumn = n;
|
|
1154
|
+
}, l = (c, L) => {
|
|
1155
|
+
c({ confirm: !0 }), D.searchText = "", L();
|
|
1156
|
+
}, o = (c, L) => {
|
|
1157
|
+
h.value = c, b.value = L;
|
|
1206
1158
|
};
|
|
1207
1159
|
return f({
|
|
1208
|
-
resetInputVal:
|
|
1209
|
-
}), (
|
|
1210
|
-
const
|
|
1160
|
+
resetInputVal: x
|
|
1161
|
+
}), (c, L) => {
|
|
1162
|
+
const n = U("a-input"), Y = U("a-button"), P = U("a-table"), ee = U("a-modal");
|
|
1211
1163
|
return a(), S("div", {
|
|
1212
1164
|
class: "hb-lib-multipleSelectModal-box",
|
|
1213
1165
|
ref_key: "hbMultipSelectModalRef",
|
|
1214
1166
|
ref: e
|
|
1215
1167
|
}, [
|
|
1216
|
-
|
|
1168
|
+
w(n, {
|
|
1217
1169
|
readonly: "",
|
|
1218
|
-
onClick:
|
|
1219
|
-
value:
|
|
1220
|
-
"onUpdate:value": L[0] || (L[0] = (
|
|
1221
|
-
placeholder:
|
|
1170
|
+
onClick: $,
|
|
1171
|
+
value: m.value,
|
|
1172
|
+
"onUpdate:value": L[0] || (L[0] = (W) => m.value = W),
|
|
1173
|
+
placeholder: c.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1222
1174
|
}, {
|
|
1223
|
-
addonAfter:
|
|
1224
|
-
|
|
1175
|
+
addonAfter: i(() => [
|
|
1176
|
+
w(s(ct), { onClick: $ })
|
|
1225
1177
|
]),
|
|
1226
1178
|
_: 1
|
|
1227
1179
|
}, 8, ["value", "placeholder"]),
|
|
1228
|
-
|
|
1229
|
-
visible:
|
|
1230
|
-
"onUpdate:visible": L[1] || (L[1] = (
|
|
1180
|
+
w(ee, {
|
|
1181
|
+
visible: p.value,
|
|
1182
|
+
"onUpdate:visible": L[1] || (L[1] = (W) => p.value = W),
|
|
1231
1183
|
title: t.modelTitle,
|
|
1232
1184
|
width: t.modalWidth,
|
|
1233
1185
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1234
1186
|
}, {
|
|
1235
|
-
footer:
|
|
1236
|
-
|
|
1237
|
-
default:
|
|
1238
|
-
|
|
1187
|
+
footer: i(() => [
|
|
1188
|
+
w(Y, { onClick: N }, {
|
|
1189
|
+
default: i(() => [
|
|
1190
|
+
H(k(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1239
1191
|
]),
|
|
1240
1192
|
_: 1
|
|
1241
1193
|
}),
|
|
1242
|
-
|
|
1243
|
-
default:
|
|
1244
|
-
|
|
1194
|
+
w(Y, { onClick: M }, {
|
|
1195
|
+
default: i(() => [
|
|
1196
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1245
1197
|
]),
|
|
1246
1198
|
_: 1
|
|
1247
1199
|
}),
|
|
1248
|
-
|
|
1200
|
+
w(Y, {
|
|
1249
1201
|
type: "primary",
|
|
1250
|
-
onClick:
|
|
1202
|
+
onClick: C
|
|
1251
1203
|
}, {
|
|
1252
|
-
default:
|
|
1253
|
-
|
|
1204
|
+
default: i(() => [
|
|
1205
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1254
1206
|
]),
|
|
1255
1207
|
_: 1
|
|
1256
1208
|
})
|
|
1257
1209
|
]),
|
|
1258
|
-
default:
|
|
1259
|
-
|
|
1210
|
+
default: i(() => [
|
|
1211
|
+
w(P, {
|
|
1260
1212
|
ref_key: "tableRef",
|
|
1261
|
-
ref:
|
|
1262
|
-
columns:
|
|
1263
|
-
dataSource:
|
|
1213
|
+
ref: A,
|
|
1214
|
+
columns: _.value,
|
|
1215
|
+
dataSource: G.value,
|
|
1264
1216
|
rowSelection: { selectedRowKeys: h.value, onChange: o },
|
|
1265
|
-
rowKey: (
|
|
1217
|
+
rowKey: (W) => W[t.tableKey],
|
|
1266
1218
|
scroll: { y: t.tableHeight }
|
|
1267
1219
|
}, {
|
|
1268
|
-
customFilterDropdown:
|
|
1269
|
-
|
|
1270
|
-
|
|
1220
|
+
customFilterDropdown: i(({ setSelectedKeys: W, selectedKeys: v, confirm: I, clearFilters: y, column: q }) => [
|
|
1221
|
+
g("div", nl, [
|
|
1222
|
+
w(n, {
|
|
1271
1223
|
ref_key: "searchInput",
|
|
1272
|
-
ref:
|
|
1273
|
-
placeholder: `请输入${
|
|
1274
|
-
value:
|
|
1224
|
+
ref: u,
|
|
1225
|
+
placeholder: `请输入${q.title}`,
|
|
1226
|
+
value: v[0],
|
|
1275
1227
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1276
|
-
onChange: (
|
|
1277
|
-
onPressEnter: (
|
|
1228
|
+
onChange: (K) => W(K.target.value ? [K.target.value] : []),
|
|
1229
|
+
onPressEnter: (K) => T(v, I, q.dataIndex)
|
|
1278
1230
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1279
|
-
|
|
1280
|
-
|
|
1231
|
+
g("section", sl, [
|
|
1232
|
+
w(Y, {
|
|
1281
1233
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1282
1234
|
type: "ghost",
|
|
1283
|
-
onClick: (
|
|
1235
|
+
onClick: (K) => l(y, I)
|
|
1284
1236
|
}, {
|
|
1285
|
-
default:
|
|
1286
|
-
|
|
1237
|
+
default: i(() => [
|
|
1238
|
+
H(k(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1287
1239
|
]),
|
|
1288
1240
|
_: 1
|
|
1289
1241
|
}, 8, ["onClick"]),
|
|
1290
|
-
|
|
1242
|
+
w(Y, {
|
|
1291
1243
|
type: "primary",
|
|
1292
1244
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1293
|
-
onClick: (
|
|
1245
|
+
onClick: (K) => T(v, I, q.dataIndex)
|
|
1294
1246
|
}, {
|
|
1295
|
-
default:
|
|
1296
|
-
|
|
1247
|
+
default: i(() => [
|
|
1248
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1297
1249
|
]),
|
|
1298
1250
|
_: 1
|
|
1299
1251
|
}, 8, ["onClick"])
|
|
1300
1252
|
])
|
|
1301
1253
|
])
|
|
1302
1254
|
]),
|
|
1303
|
-
customFilterIcon:
|
|
1304
|
-
|
|
1305
|
-
style:
|
|
1255
|
+
customFilterIcon: i(({ filtered: W }) => [
|
|
1256
|
+
w(s(ke), {
|
|
1257
|
+
style: be({ color: W ? "#108ee9" : void 0 })
|
|
1306
1258
|
}, null, 8, ["style"])
|
|
1307
1259
|
]),
|
|
1308
|
-
bodyCell:
|
|
1309
|
-
|
|
1310
|
-
(a(!0), S(
|
|
1311
|
-
|
|
1312
|
-
key:
|
|
1260
|
+
bodyCell: i(({ text: W, column: v }) => [
|
|
1261
|
+
D.searchText && D.searchedColumn === v.dataIndex ? (a(), S("span", il, [
|
|
1262
|
+
(a(!0), S(J, null, le(W.toString().split(new RegExp(`(?<=${D.searchText})|(?=${D.searchText})`, "i")), (I, y) => (a(), S(J, null, [
|
|
1263
|
+
I.toLowerCase() === D.searchText.toLowerCase() ? (a(), S("mark", {
|
|
1264
|
+
key: y,
|
|
1313
1265
|
class: "highlight"
|
|
1314
|
-
},
|
|
1315
|
-
|
|
1266
|
+
}, k(I), 1)) : (a(), S(J, { key: 1 }, [
|
|
1267
|
+
H(k(I), 1)
|
|
1316
1268
|
], 64))
|
|
1317
1269
|
], 64))), 256))
|
|
1318
|
-
])) :
|
|
1270
|
+
])) : z("", !0)
|
|
1319
1271
|
]),
|
|
1320
1272
|
_: 1
|
|
1321
1273
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1325,13 +1277,13 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1325
1277
|
], 512);
|
|
1326
1278
|
};
|
|
1327
1279
|
}
|
|
1328
|
-
}),
|
|
1280
|
+
}), cl = X(rl), dl = { class: "hb-lib-table-act-box" }, ul = ["onClick"], hl = {
|
|
1329
1281
|
href: "javascript:;",
|
|
1330
1282
|
class: "hb-lib-table-main-action"
|
|
1331
|
-
},
|
|
1283
|
+
}, bl = ["onClick"], fl = {
|
|
1332
1284
|
href: "javascript:;",
|
|
1333
1285
|
class: "hb-lib-table-more-action"
|
|
1334
|
-
},
|
|
1286
|
+
}, ml = ["onClick"], pl = { href: "javascript:;" }, vl = ["onClick"], gl = { class: "hb-lib-table-confirm-modal-content" }, yl = /* @__PURE__ */ Z({
|
|
1335
1287
|
name: "HbLibTableAct",
|
|
1336
1288
|
__name: "HbTableAct",
|
|
1337
1289
|
props: {
|
|
@@ -1340,118 +1292,118 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1340
1292
|
buttonDisplaysQuantity: {}
|
|
1341
1293
|
},
|
|
1342
1294
|
setup(t, { expose: f }) {
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1345
|
-
},
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
if (
|
|
1349
|
-
|
|
1295
|
+
const d = t, { t: r } = se(), F = B(!1), p = B(!1), m = B(null), u = j(() => d.actions.filter((C) => C.condition !== void 0 ? C.condition : !0)), e = j(() => u.value.slice(0, d.buttonDisplaysQuantity)), h = j(() => u.value.slice(d.buttonDisplaysQuantity)), b = (C) => {
|
|
1296
|
+
C.handler && C.handler(d.record);
|
|
1297
|
+
}, A = (C) => {
|
|
1298
|
+
m.value = C, F.value = !0;
|
|
1299
|
+
}, D = () => {
|
|
1300
|
+
if (m.value) {
|
|
1301
|
+
p.value = !0;
|
|
1350
1302
|
try {
|
|
1351
|
-
b(
|
|
1303
|
+
b(m.value), p.value = !1, F.value = !1;
|
|
1352
1304
|
} catch {
|
|
1353
|
-
|
|
1305
|
+
p.value = !1;
|
|
1354
1306
|
}
|
|
1355
1307
|
}
|
|
1356
|
-
},
|
|
1357
|
-
|
|
1358
|
-
},
|
|
1359
|
-
title:
|
|
1360
|
-
content:
|
|
1308
|
+
}, G = () => {
|
|
1309
|
+
F.value = !1, m.value = null;
|
|
1310
|
+
}, _ = j(() => m.value ? {
|
|
1311
|
+
title: m.value.confirmTitle,
|
|
1312
|
+
content: m.value.confirmContent || m.value.confirmTitle
|
|
1361
1313
|
} : {
|
|
1362
|
-
title:
|
|
1363
|
-
content:
|
|
1314
|
+
title: r("hbLibComp.hbTableAct.secendConfirm"),
|
|
1315
|
+
content: r("hbLibComp.hbTableAct.confirmContent")
|
|
1364
1316
|
});
|
|
1365
1317
|
return f({
|
|
1366
|
-
ADropdown:
|
|
1367
|
-
AMenu:
|
|
1368
|
-
AMenuItem:
|
|
1369
|
-
APopconfirm:
|
|
1370
|
-
AModal:
|
|
1371
|
-
DownOutlined:
|
|
1372
|
-
}), (
|
|
1373
|
-
const
|
|
1374
|
-
return a(), S("div",
|
|
1375
|
-
(a(!0), S(
|
|
1376
|
-
|
|
1377
|
-
|
|
1318
|
+
ADropdown: Ee,
|
|
1319
|
+
AMenu: Ne,
|
|
1320
|
+
AMenuItem: ze,
|
|
1321
|
+
APopconfirm: me,
|
|
1322
|
+
AModal: ge,
|
|
1323
|
+
DownOutlined: Fe
|
|
1324
|
+
}), (C, M) => {
|
|
1325
|
+
const $ = U("a-divider"), N = tt("has");
|
|
1326
|
+
return a(), S("div", dl, [
|
|
1327
|
+
(a(!0), S(J, null, le(e.value, (x, T) => (a(), S(J, { key: T }, [
|
|
1328
|
+
x.needConfirm ? (a(), S(J, { key: 0 }, [
|
|
1329
|
+
x.confirmType === "modal" ? ne((a(), S("a", {
|
|
1378
1330
|
key: 0,
|
|
1379
1331
|
href: "javascript:;",
|
|
1380
|
-
onClick: (l) =>
|
|
1332
|
+
onClick: (l) => A(x),
|
|
1381
1333
|
class: "hb-lib-table-main-action"
|
|
1382
1334
|
}, [
|
|
1383
|
-
|
|
1384
|
-
], 8,
|
|
1385
|
-
[
|
|
1386
|
-
]) : (a(),
|
|
1335
|
+
H(k(x.label), 1)
|
|
1336
|
+
], 8, ul)), [
|
|
1337
|
+
[N, x.permissionsTag || null]
|
|
1338
|
+
]) : (a(), R(s(me), {
|
|
1387
1339
|
key: 1,
|
|
1388
|
-
title:
|
|
1389
|
-
onConfirm: (l) => b(
|
|
1340
|
+
title: x.confirmTitle,
|
|
1341
|
+
onConfirm: (l) => b(x)
|
|
1390
1342
|
}, {
|
|
1391
|
-
default:
|
|
1392
|
-
|
|
1393
|
-
|
|
1343
|
+
default: i(() => [
|
|
1344
|
+
ne((a(), S("a", hl, [
|
|
1345
|
+
H(k(x.label), 1)
|
|
1394
1346
|
])), [
|
|
1395
|
-
[
|
|
1347
|
+
[N, x.permissionsTag || null]
|
|
1396
1348
|
])
|
|
1397
1349
|
]),
|
|
1398
1350
|
_: 2
|
|
1399
1351
|
}, 1032, ["title", "onConfirm"]))
|
|
1400
|
-
], 64)) : (a(), S(
|
|
1401
|
-
|
|
1352
|
+
], 64)) : (a(), S(J, { key: 1 }, [
|
|
1353
|
+
ne((a(), S("a", {
|
|
1402
1354
|
href: "javascript:;",
|
|
1403
|
-
onClick: (l) => b(
|
|
1355
|
+
onClick: (l) => b(x),
|
|
1404
1356
|
class: "hb-lib-table-main-action"
|
|
1405
1357
|
}, [
|
|
1406
|
-
|
|
1407
|
-
], 8,
|
|
1408
|
-
[
|
|
1358
|
+
H(k(x.label), 1)
|
|
1359
|
+
], 8, bl)), [
|
|
1360
|
+
[N, x.permissionsTag || null]
|
|
1409
1361
|
]),
|
|
1410
|
-
h.value && h.value.length > 0 ||
|
|
1362
|
+
h.value && h.value.length > 0 || T !== e.value.length - 1 ? (a(), R($, {
|
|
1411
1363
|
key: 0,
|
|
1412
1364
|
type: "vertical"
|
|
1413
|
-
})) :
|
|
1365
|
+
})) : z("", !0)
|
|
1414
1366
|
], 64))
|
|
1415
1367
|
], 64))), 128)),
|
|
1416
|
-
h.value && h.value.length > 0 ? (a(),
|
|
1417
|
-
overlay:
|
|
1418
|
-
|
|
1419
|
-
default:
|
|
1420
|
-
(a(!0), S(
|
|
1421
|
-
key:
|
|
1368
|
+
h.value && h.value.length > 0 ? (a(), R(s(Ee), { key: 0 }, {
|
|
1369
|
+
overlay: i(() => [
|
|
1370
|
+
w(s(Ne), null, {
|
|
1371
|
+
default: i(() => [
|
|
1372
|
+
(a(!0), S(J, null, le(h.value, (x) => (a(), R(s(ze), {
|
|
1373
|
+
key: x.key
|
|
1422
1374
|
}, {
|
|
1423
|
-
default:
|
|
1424
|
-
|
|
1425
|
-
|
|
1375
|
+
default: i(() => [
|
|
1376
|
+
x.needConfirm ? (a(), S(J, { key: 0 }, [
|
|
1377
|
+
x.confirmType === "modal" ? ne((a(), S("a", {
|
|
1426
1378
|
key: 0,
|
|
1427
1379
|
href: "javascript:;",
|
|
1428
|
-
onClick: (
|
|
1380
|
+
onClick: (T) => A(x)
|
|
1429
1381
|
}, [
|
|
1430
|
-
|
|
1431
|
-
], 8,
|
|
1432
|
-
[
|
|
1433
|
-
]) : (a(),
|
|
1382
|
+
H(k(x.label), 1)
|
|
1383
|
+
], 8, ml)), [
|
|
1384
|
+
[N, x.permissionsTag || null]
|
|
1385
|
+
]) : (a(), R(s(me), {
|
|
1434
1386
|
key: 1,
|
|
1435
|
-
title:
|
|
1436
|
-
onConfirm: (
|
|
1387
|
+
title: x.confirmTitle,
|
|
1388
|
+
onConfirm: (T) => b(x)
|
|
1437
1389
|
}, {
|
|
1438
|
-
default:
|
|
1439
|
-
|
|
1440
|
-
|
|
1390
|
+
default: i(() => [
|
|
1391
|
+
ne((a(), S("a", pl, [
|
|
1392
|
+
H(k(x.label), 1)
|
|
1441
1393
|
])), [
|
|
1442
|
-
[
|
|
1394
|
+
[N, x.permissionsTag || null]
|
|
1443
1395
|
])
|
|
1444
1396
|
]),
|
|
1445
1397
|
_: 2
|
|
1446
1398
|
}, 1032, ["title", "onConfirm"]))
|
|
1447
|
-
], 64)) :
|
|
1399
|
+
], 64)) : ne((a(), S("a", {
|
|
1448
1400
|
key: 1,
|
|
1449
1401
|
href: "javascript:;",
|
|
1450
|
-
onClick: (
|
|
1402
|
+
onClick: (T) => b(x)
|
|
1451
1403
|
}, [
|
|
1452
|
-
|
|
1453
|
-
], 8,
|
|
1454
|
-
[
|
|
1404
|
+
H(k(x.label), 1)
|
|
1405
|
+
], 8, vl)), [
|
|
1406
|
+
[N, x.permissionsTag || null]
|
|
1455
1407
|
])
|
|
1456
1408
|
]),
|
|
1457
1409
|
_: 2
|
|
@@ -1460,36 +1412,36 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1460
1412
|
_: 1
|
|
1461
1413
|
})
|
|
1462
1414
|
]),
|
|
1463
|
-
default:
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1415
|
+
default: i(() => [
|
|
1416
|
+
g("a", fl, [
|
|
1417
|
+
H(k(C.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1418
|
+
w(s(Fe), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1467
1419
|
])
|
|
1468
1420
|
]),
|
|
1469
1421
|
_: 1
|
|
1470
|
-
})) :
|
|
1471
|
-
|
|
1472
|
-
visible:
|
|
1473
|
-
title:
|
|
1474
|
-
"confirm-loading":
|
|
1475
|
-
onOk:
|
|
1476
|
-
onCancel:
|
|
1422
|
+
})) : z("", !0),
|
|
1423
|
+
w(s(ge), {
|
|
1424
|
+
visible: F.value,
|
|
1425
|
+
title: _.value.title,
|
|
1426
|
+
"confirm-loading": p.value,
|
|
1427
|
+
onOk: D,
|
|
1428
|
+
onCancel: G
|
|
1477
1429
|
}, {
|
|
1478
|
-
default:
|
|
1479
|
-
|
|
1430
|
+
default: i(() => [
|
|
1431
|
+
g("p", gl, k(_.value.content), 1)
|
|
1480
1432
|
]),
|
|
1481
1433
|
_: 1
|
|
1482
1434
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1483
1435
|
]);
|
|
1484
1436
|
};
|
|
1485
1437
|
}
|
|
1486
|
-
}),
|
|
1487
|
-
const
|
|
1488
|
-
return !
|
|
1489
|
-
}) }),
|
|
1438
|
+
}), Cl = /* @__PURE__ */ te(yl, [["__scopeId", "data-v-ecac600b"]]), Ll = X(Cl), kl = (t) => ({ tableWidth: j(() => {
|
|
1439
|
+
const d = Array.isArray(t) ? t : t.value;
|
|
1440
|
+
return !d || d.length === 0 ? 0 : d.map((r) => r.width && Number(r.width.toString().replace("px", "")) || 0).reduce((r, F) => r + F, 0);
|
|
1441
|
+
}) }), _l = {
|
|
1490
1442
|
key: 0,
|
|
1491
1443
|
class: "hb-lib-list-table-act"
|
|
1492
|
-
},
|
|
1444
|
+
}, Sl = { class: "empty-container" }, wl = /* @__PURE__ */ Z({
|
|
1493
1445
|
name: "HbLibListTable",
|
|
1494
1446
|
__name: "HbListTable",
|
|
1495
1447
|
props: {
|
|
@@ -1500,20 +1452,20 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1500
1452
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1501
1453
|
},
|
|
1502
1454
|
setup(t) {
|
|
1503
|
-
const { t: f } =
|
|
1504
|
-
|
|
1505
|
-
() =>
|
|
1455
|
+
const { t: f } = se(), d = t, r = B([]), F = Ce("HB_LIST_PAGE_CONTAINER"), { tableWidth: p } = kl(j(() => d.columns));
|
|
1456
|
+
oe(
|
|
1457
|
+
() => d.columns,
|
|
1506
1458
|
(e) => {
|
|
1507
1459
|
const h = e.filter((b) => b != null && b.checked);
|
|
1508
|
-
|
|
1509
|
-
let
|
|
1510
|
-
if (
|
|
1511
|
-
|
|
1512
|
-
else if (typeof
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1460
|
+
r.value = h.map((b) => {
|
|
1461
|
+
let A = { ...b, title: b.title || b.label };
|
|
1462
|
+
if (A.ellipsis && !A.needTooltip && (A.needTooltip = !0), !A.width)
|
|
1463
|
+
A.width = d.defaultWidth;
|
|
1464
|
+
else if (typeof A.width == "string") {
|
|
1465
|
+
const D = parseInt(A.width, 10);
|
|
1466
|
+
A.width = isNaN(D) ? d.defaultWidth : D;
|
|
1515
1467
|
}
|
|
1516
|
-
return
|
|
1468
|
+
return A.resizable === void 0 && (A.resizable = !0), A;
|
|
1517
1469
|
});
|
|
1518
1470
|
},
|
|
1519
1471
|
{
|
|
@@ -1521,35 +1473,35 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1521
1473
|
deep: !0
|
|
1522
1474
|
}
|
|
1523
1475
|
);
|
|
1524
|
-
const
|
|
1476
|
+
const m = (e, h) => {
|
|
1525
1477
|
if (h) {
|
|
1526
1478
|
const b = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1527
1479
|
h.width = isNaN(b) ? 150 : b;
|
|
1528
1480
|
}
|
|
1529
|
-
},
|
|
1481
|
+
}, u = (e, h = "YYYY-MM-DD HH:mm:ss") => e ? _e(e).format(h) : "";
|
|
1530
1482
|
return (e, h) => {
|
|
1531
|
-
const b =
|
|
1483
|
+
const b = U("a-empty"), A = U("a-tooltip"), D = U("HbLibCopy"), G = U("a-table");
|
|
1532
1484
|
return a(), S("div", {
|
|
1533
|
-
class: E(["hb-lib-list-table", { "nowrap-table":
|
|
1534
|
-
style:
|
|
1485
|
+
class: E(["hb-lib-list-table", { "nowrap-table": d.rowHeight }]),
|
|
1486
|
+
style: be({ "--hb-lib-table-td-height": t.rowHeight && t.rowHeight + "px" || "" })
|
|
1535
1487
|
}, [
|
|
1536
|
-
e.$slots.tableActLeft ? (a(), S("section",
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
])) :
|
|
1540
|
-
|
|
1488
|
+
e.$slots.tableActLeft ? (a(), S("section", _l, [
|
|
1489
|
+
V(e.$slots, "tableActLeft", {}, void 0, !0),
|
|
1490
|
+
V(e.$slots, "tableActRight", {}, void 0, !0)
|
|
1491
|
+
])) : z("", !0),
|
|
1492
|
+
w(G, Q(e.$attrs, {
|
|
1541
1493
|
bordered: "",
|
|
1542
|
-
columns:
|
|
1543
|
-
onResizeColumn:
|
|
1494
|
+
columns: r.value,
|
|
1495
|
+
onResizeColumn: m,
|
|
1544
1496
|
scroll: {
|
|
1545
|
-
x:
|
|
1546
|
-
y:
|
|
1497
|
+
x: s(p),
|
|
1498
|
+
y: s(F).tableHeight
|
|
1547
1499
|
}
|
|
1548
|
-
}),
|
|
1549
|
-
emptyText:
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
description:
|
|
1500
|
+
}), je({
|
|
1501
|
+
emptyText: i(() => [
|
|
1502
|
+
g("div", Sl, [
|
|
1503
|
+
w(b, {
|
|
1504
|
+
description: s(f)("hbLibComp.hbListTable.noData")
|
|
1553
1505
|
}, null, 8, ["description"])
|
|
1554
1506
|
])
|
|
1555
1507
|
]),
|
|
@@ -1557,137 +1509,137 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1557
1509
|
}, [
|
|
1558
1510
|
e.$slots.headerCell ? {
|
|
1559
1511
|
name: "headerCell",
|
|
1560
|
-
fn:
|
|
1561
|
-
|
|
1562
|
-
|
|
1512
|
+
fn: i(({ column: _ }) => [
|
|
1513
|
+
V(e.$slots, "headerCell", { column: _ }, () => [
|
|
1514
|
+
H(k(_.title), 1)
|
|
1563
1515
|
], !0)
|
|
1564
1516
|
]),
|
|
1565
1517
|
key: "0"
|
|
1566
1518
|
} : void 0,
|
|
1567
1519
|
e.$slots.bodyCell ? {
|
|
1568
1520
|
name: "bodyCell",
|
|
1569
|
-
fn:
|
|
1570
|
-
|
|
1571
|
-
column:
|
|
1572
|
-
record:
|
|
1573
|
-
index:
|
|
1574
|
-
text:
|
|
1521
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1522
|
+
V(e.$slots, "bodyCell", {
|
|
1523
|
+
column: _,
|
|
1524
|
+
record: C,
|
|
1525
|
+
index: M,
|
|
1526
|
+
text: $
|
|
1575
1527
|
}, void 0, !0),
|
|
1576
|
-
|
|
1528
|
+
_ && _.needTooltip ? (a(), R(A, {
|
|
1577
1529
|
key: 0,
|
|
1578
1530
|
placement: t.tooltipPlacement
|
|
1579
1531
|
}, {
|
|
1580
|
-
title:
|
|
1581
|
-
|
|
1532
|
+
title: i(() => [
|
|
1533
|
+
H(k(C[_.dataIndex]), 1)
|
|
1582
1534
|
]),
|
|
1583
|
-
default:
|
|
1584
|
-
|
|
1535
|
+
default: i(() => [
|
|
1536
|
+
H(" " + k(C[_.dataIndex]), 1)
|
|
1585
1537
|
]),
|
|
1586
1538
|
_: 2
|
|
1587
|
-
}, 1032, ["placement"])) :
|
|
1588
|
-
|
|
1539
|
+
}, 1032, ["placement"])) : z("", !0),
|
|
1540
|
+
_ && _.needCopy ? (a(), R(D, {
|
|
1589
1541
|
key: 1,
|
|
1590
|
-
"cp-text":
|
|
1542
|
+
"cp-text": C[_.dataIndex],
|
|
1591
1543
|
style: { position: "relative" }
|
|
1592
|
-
}, null, 8, ["cp-text"])) :
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
], 64)) :
|
|
1544
|
+
}, null, 8, ["cp-text"])) : z("", !0),
|
|
1545
|
+
_ && _.needFormat ? (a(), S(J, { key: 2 }, [
|
|
1546
|
+
H(k(u(C[_.dataIndex], _.format)), 1)
|
|
1547
|
+
], 64)) : z("", !0)
|
|
1596
1548
|
]),
|
|
1597
1549
|
key: "1"
|
|
1598
1550
|
} : void 0,
|
|
1599
1551
|
e.$slots.expandedRowRender ? {
|
|
1600
1552
|
name: "expandedRowRender",
|
|
1601
|
-
fn:
|
|
1602
|
-
|
|
1603
|
-
record:
|
|
1604
|
-
column:
|
|
1605
|
-
index:
|
|
1606
|
-
text:
|
|
1553
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1554
|
+
V(e.$slots, "expandedRowRender", {
|
|
1555
|
+
record: C,
|
|
1556
|
+
column: _,
|
|
1557
|
+
index: M,
|
|
1558
|
+
text: $
|
|
1607
1559
|
}, void 0, !0)
|
|
1608
1560
|
]),
|
|
1609
1561
|
key: "2"
|
|
1610
1562
|
} : void 0,
|
|
1611
1563
|
e.$slots.customFilterDropdown ? {
|
|
1612
1564
|
name: "customFilterDropdown",
|
|
1613
|
-
fn:
|
|
1614
|
-
|
|
1615
|
-
record:
|
|
1616
|
-
column:
|
|
1617
|
-
index:
|
|
1618
|
-
text:
|
|
1565
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1566
|
+
V(e.$slots, "customFilterDropdown", {
|
|
1567
|
+
record: C,
|
|
1568
|
+
column: _,
|
|
1569
|
+
index: M,
|
|
1570
|
+
text: $
|
|
1619
1571
|
}, void 0, !0)
|
|
1620
1572
|
]),
|
|
1621
1573
|
key: "3"
|
|
1622
1574
|
} : void 0,
|
|
1623
1575
|
e.$slots.customFilterIcon ? {
|
|
1624
1576
|
name: "customFilterIcon",
|
|
1625
|
-
fn:
|
|
1626
|
-
|
|
1627
|
-
record:
|
|
1628
|
-
column:
|
|
1629
|
-
index:
|
|
1630
|
-
text:
|
|
1577
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1578
|
+
V(e.$slots, "customFilterIcon", {
|
|
1579
|
+
record: C,
|
|
1580
|
+
column: _,
|
|
1581
|
+
index: M,
|
|
1582
|
+
text: $
|
|
1631
1583
|
}, void 0, !0)
|
|
1632
1584
|
]),
|
|
1633
1585
|
key: "4"
|
|
1634
1586
|
} : void 0,
|
|
1635
1587
|
e.$slots.expandIcon ? {
|
|
1636
1588
|
name: "expandIcon",
|
|
1637
|
-
fn:
|
|
1638
|
-
|
|
1639
|
-
record:
|
|
1640
|
-
column:
|
|
1641
|
-
index:
|
|
1642
|
-
text:
|
|
1589
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1590
|
+
V(e.$slots, "expandIcon", {
|
|
1591
|
+
record: C,
|
|
1592
|
+
column: _,
|
|
1593
|
+
index: M,
|
|
1594
|
+
text: $
|
|
1643
1595
|
}, void 0, !0)
|
|
1644
1596
|
]),
|
|
1645
1597
|
key: "5"
|
|
1646
1598
|
} : void 0,
|
|
1647
1599
|
e.$slots.footer ? {
|
|
1648
1600
|
name: "footer",
|
|
1649
|
-
fn:
|
|
1650
|
-
|
|
1651
|
-
record:
|
|
1652
|
-
column:
|
|
1653
|
-
index:
|
|
1654
|
-
text:
|
|
1601
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1602
|
+
V(e.$slots, "footer", {
|
|
1603
|
+
record: C,
|
|
1604
|
+
column: _,
|
|
1605
|
+
index: M,
|
|
1606
|
+
text: $
|
|
1655
1607
|
}, void 0, !0)
|
|
1656
1608
|
]),
|
|
1657
1609
|
key: "6"
|
|
1658
1610
|
} : void 0,
|
|
1659
1611
|
e.$slots.headerCell ? {
|
|
1660
1612
|
name: "headerCell",
|
|
1661
|
-
fn:
|
|
1662
|
-
|
|
1663
|
-
record:
|
|
1664
|
-
column:
|
|
1665
|
-
index:
|
|
1666
|
-
text:
|
|
1613
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1614
|
+
V(e.$slots, "headerCell", {
|
|
1615
|
+
record: C,
|
|
1616
|
+
column: _,
|
|
1617
|
+
index: M,
|
|
1618
|
+
text: $
|
|
1667
1619
|
}, void 0, !0)
|
|
1668
1620
|
]),
|
|
1669
1621
|
key: "7"
|
|
1670
1622
|
} : void 0,
|
|
1671
1623
|
e.$slots.summary ? {
|
|
1672
1624
|
name: "summary",
|
|
1673
|
-
fn:
|
|
1674
|
-
|
|
1675
|
-
record:
|
|
1676
|
-
column:
|
|
1677
|
-
index:
|
|
1678
|
-
text:
|
|
1625
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1626
|
+
V(e.$slots, "summary", {
|
|
1627
|
+
record: C,
|
|
1628
|
+
column: _,
|
|
1629
|
+
index: M,
|
|
1630
|
+
text: $
|
|
1679
1631
|
}, void 0, !0)
|
|
1680
1632
|
]),
|
|
1681
1633
|
key: "8"
|
|
1682
1634
|
} : void 0,
|
|
1683
1635
|
e.$slots.title ? {
|
|
1684
1636
|
name: "title",
|
|
1685
|
-
fn:
|
|
1686
|
-
|
|
1687
|
-
record:
|
|
1688
|
-
column:
|
|
1689
|
-
index:
|
|
1690
|
-
text:
|
|
1637
|
+
fn: i(({ column: _, record: C, index: M, text: $ }) => [
|
|
1638
|
+
V(e.$slots, "title", {
|
|
1639
|
+
record: C,
|
|
1640
|
+
column: _,
|
|
1641
|
+
index: M,
|
|
1642
|
+
text: $
|
|
1691
1643
|
}, void 0, !0)
|
|
1692
1644
|
]),
|
|
1693
1645
|
key: "9"
|
|
@@ -1696,16 +1648,16 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1696
1648
|
], 6);
|
|
1697
1649
|
};
|
|
1698
1650
|
}
|
|
1699
|
-
}),
|
|
1651
|
+
}), Fl = /* @__PURE__ */ te(wl, [["__scopeId", "data-v-d4abbf25"]]), Tl = X(Fl), $l = { class: "hb-lib-table-setting-box" }, xl = {
|
|
1700
1652
|
key: 0,
|
|
1701
1653
|
class: "hb-lib-table-drag-item"
|
|
1702
|
-
},
|
|
1654
|
+
}, Ml = {
|
|
1703
1655
|
key: 0,
|
|
1704
1656
|
class: "hb-lib-table-drag-item-act"
|
|
1705
|
-
},
|
|
1657
|
+
}, Il = ["onClick"], Hl = ["onClick"], Dl = { class: "hb-lib-table-set-btn-group" }, Al = {
|
|
1706
1658
|
class: "select-all-container",
|
|
1707
1659
|
style: { "margin-right": "10px" }
|
|
1708
|
-
},
|
|
1660
|
+
}, Ol = /* @__PURE__ */ Z({
|
|
1709
1661
|
name: "HbLibTableColumnSet",
|
|
1710
1662
|
__name: "HbTableColumnSet",
|
|
1711
1663
|
props: {
|
|
@@ -1738,118 +1690,118 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1738
1690
|
},
|
|
1739
1691
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1740
1692
|
setup(t, { emit: f }) {
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1743
|
-
const
|
|
1693
|
+
const d = f, { t: r } = se(), F = t, p = B([]), m = j(() => e.value.filter((l) => l.checked));
|
|
1694
|
+
B([]);
|
|
1695
|
+
const u = B(!1), e = B([]), h = B(null), b = j(() => m.value.length > 0 && m.value.length === p.value.length), A = j(() => m.value.length > 0 && m.value.length < p.value.length), D = (l) => {
|
|
1744
1696
|
h.value = l.oldIndex;
|
|
1745
|
-
},
|
|
1697
|
+
}, G = (l) => {
|
|
1746
1698
|
const o = l.newIndex;
|
|
1747
|
-
if (
|
|
1748
|
-
const L =
|
|
1749
|
-
if ((L > 0 && o < L ||
|
|
1699
|
+
if (p.value.some((L) => L.fixed === "left" || L.fixed === "right" || L.fixed === !0)) {
|
|
1700
|
+
const L = p.value.filter((Y) => Y.fixed === "left").length, n = p.value.length - p.value.filter((Y) => Y.fixed === "right").length;
|
|
1701
|
+
if ((L > 0 && o < L || n < p.value.length && o >= n) && (ye.warning(r("hbLibComp.hbLibListTableColumsSet.errorTip")), h.value !== null)) {
|
|
1750
1702
|
const Y = e.value.splice(o, 1)[0];
|
|
1751
1703
|
e.value.splice(h.value, 0, Y);
|
|
1752
1704
|
}
|
|
1753
1705
|
}
|
|
1754
1706
|
h.value = null;
|
|
1755
|
-
},
|
|
1756
|
-
l.target.checked ? e.value.forEach((
|
|
1757
|
-
},
|
|
1707
|
+
}, _ = (l) => {
|
|
1708
|
+
l.target.checked ? e.value.forEach((c) => c.checked = !0) : e.value.forEach((c) => c.checked = !1);
|
|
1709
|
+
}, C = (l, o) => {
|
|
1758
1710
|
o ? l.checked = !0 : l.checked = !1;
|
|
1759
|
-
},
|
|
1760
|
-
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1711
|
+
}, M = () => {
|
|
1712
|
+
p.value = [...e.value], d("on-get-columns", p.value), u.value = !1;
|
|
1713
|
+
}, $ = () => {
|
|
1714
|
+
p.value = F.tableColumns.map((o) => ({
|
|
1763
1715
|
...o,
|
|
1764
|
-
label: o.title && o.title.tag ?
|
|
1716
|
+
label: o.title && o.title.tag ? N(o.title) : o.title || o.title2,
|
|
1765
1717
|
value: o.dataIndex,
|
|
1766
1718
|
checked: o.checked || o.checked === void 0
|
|
1767
|
-
})), e.value = [...
|
|
1719
|
+
})), e.value = [...p.value];
|
|
1768
1720
|
let l = [];
|
|
1769
|
-
|
|
1721
|
+
F.tableColumns.forEach(function(o) {
|
|
1770
1722
|
l.push(o.dataIndex);
|
|
1771
1723
|
});
|
|
1772
|
-
},
|
|
1724
|
+
}, N = (l) => l.children[0].text, x = (l) => {
|
|
1773
1725
|
delete l.fixed;
|
|
1774
|
-
const o = e.value.findIndex((
|
|
1726
|
+
const o = e.value.findIndex((c) => c.value === l.value);
|
|
1775
1727
|
if (o !== -1) {
|
|
1776
|
-
let
|
|
1728
|
+
let c = -1;
|
|
1777
1729
|
for (let L = 0; L < e.value.length; L++)
|
|
1778
|
-
e.value[L].fixed === "left" && (
|
|
1779
|
-
if (
|
|
1780
|
-
const L = [...e.value], [
|
|
1781
|
-
L.splice(
|
|
1730
|
+
e.value[L].fixed === "left" && (c = L);
|
|
1731
|
+
if (c !== -1 && o !== c + 1) {
|
|
1732
|
+
const L = [...e.value], [n] = L.splice(o, 1);
|
|
1733
|
+
L.splice(c + 1, 0, n), e.value = L;
|
|
1782
1734
|
}
|
|
1783
1735
|
}
|
|
1784
|
-
},
|
|
1785
|
-
const o = e.value.findIndex((
|
|
1736
|
+
}, T = (l) => {
|
|
1737
|
+
const o = e.value.findIndex((c) => c.value === l.value);
|
|
1786
1738
|
if (o !== -1) {
|
|
1787
|
-
let
|
|
1739
|
+
let c = -1;
|
|
1788
1740
|
for (let L = 0; L < e.value.length; L++)
|
|
1789
|
-
e.value[L].fixed === "left" && (
|
|
1790
|
-
if (
|
|
1791
|
-
const L = [...e.value],
|
|
1792
|
-
|
|
1741
|
+
e.value[L].fixed === "left" && (c = L);
|
|
1742
|
+
if (c !== -1 && o !== c + 1) {
|
|
1743
|
+
const L = [...e.value], n = L.splice(o, 1);
|
|
1744
|
+
n[0].fixed = "left", L.splice(c + 1, 0, n[0]), e.value = L;
|
|
1793
1745
|
}
|
|
1794
1746
|
}
|
|
1795
1747
|
};
|
|
1796
|
-
return
|
|
1797
|
-
() =>
|
|
1748
|
+
return oe(
|
|
1749
|
+
() => F.tableColumns,
|
|
1798
1750
|
() => {
|
|
1799
|
-
|
|
1751
|
+
$();
|
|
1800
1752
|
},
|
|
1801
1753
|
{
|
|
1802
1754
|
immediate: !0,
|
|
1803
1755
|
deep: !0
|
|
1804
1756
|
}
|
|
1805
1757
|
), (l, o) => {
|
|
1806
|
-
const
|
|
1807
|
-
return a(), S("div",
|
|
1808
|
-
|
|
1809
|
-
title:
|
|
1758
|
+
const c = U("a-tooltip"), L = U("a-button");
|
|
1759
|
+
return a(), S("div", $l, [
|
|
1760
|
+
w(s(ht), {
|
|
1761
|
+
title: s(r)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1810
1762
|
trigger: "click",
|
|
1811
1763
|
placement: "leftTop",
|
|
1812
1764
|
overlayClassName: "alertInfoContent",
|
|
1813
|
-
visible:
|
|
1814
|
-
"onUpdate:visible": o[1] || (o[1] = (
|
|
1765
|
+
visible: u.value,
|
|
1766
|
+
"onUpdate:visible": o[1] || (o[1] = (n) => u.value = n)
|
|
1815
1767
|
}, {
|
|
1816
|
-
content:
|
|
1817
|
-
|
|
1768
|
+
content: i(() => [
|
|
1769
|
+
w(s(ue), {
|
|
1818
1770
|
modelValue: e.value,
|
|
1819
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1771
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => e.value = n),
|
|
1820
1772
|
"item-key": "value",
|
|
1821
1773
|
class: "hb-lib-table-set-drag",
|
|
1822
1774
|
"ghost-class": "ghost",
|
|
1823
1775
|
animation: "200",
|
|
1824
1776
|
handle: ".drag-handle",
|
|
1825
|
-
onStart:
|
|
1826
|
-
onEnd:
|
|
1777
|
+
onStart: D,
|
|
1778
|
+
onEnd: G
|
|
1827
1779
|
}, {
|
|
1828
|
-
item:
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
checked:
|
|
1832
|
-
onChange: (Y) =>
|
|
1780
|
+
item: i(({ element: n }) => [
|
|
1781
|
+
n.fixed !== "right" ? (a(), S("div", xl, [
|
|
1782
|
+
w(s(he), {
|
|
1783
|
+
checked: n.checked,
|
|
1784
|
+
onChange: (Y) => C(n, Y.target.checked)
|
|
1833
1785
|
}, {
|
|
1834
|
-
default:
|
|
1835
|
-
|
|
1786
|
+
default: i(() => [
|
|
1787
|
+
H(k(n.label), 1)
|
|
1836
1788
|
]),
|
|
1837
1789
|
_: 2
|
|
1838
1790
|
}, 1032, ["checked", "onChange"]),
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
class: E(
|
|
1791
|
+
n.checked ? (a(), S("section", Ml, [
|
|
1792
|
+
g("span", {
|
|
1793
|
+
class: E(n.fixed ? "drag-hide" : "drag-handle")
|
|
1842
1794
|
}, "⋮⋮", 2),
|
|
1843
|
-
|
|
1844
|
-
title:
|
|
1845
|
-
|
|
1795
|
+
n.fixed ? (a(), R(c, { key: 0 }, {
|
|
1796
|
+
title: i(() => [
|
|
1797
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1846
1798
|
]),
|
|
1847
|
-
default:
|
|
1848
|
-
|
|
1799
|
+
default: i(() => [
|
|
1800
|
+
g("span", {
|
|
1849
1801
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1850
|
-
onClick: (Y) =>
|
|
1802
|
+
onClick: (Y) => x(n)
|
|
1851
1803
|
}, [...o[2] || (o[2] = [
|
|
1852
|
-
|
|
1804
|
+
g("svg", {
|
|
1853
1805
|
t: "1759048615600",
|
|
1854
1806
|
class: "icon",
|
|
1855
1807
|
viewBox: "0 0 1024 1024",
|
|
@@ -1859,26 +1811,26 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1859
1811
|
width: "200",
|
|
1860
1812
|
height: "200"
|
|
1861
1813
|
}, [
|
|
1862
|
-
|
|
1814
|
+
g("path", {
|
|
1863
1815
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
1864
1816
|
"p-id": "7284",
|
|
1865
1817
|
fill: "#ff5000"
|
|
1866
1818
|
})
|
|
1867
1819
|
], -1)
|
|
1868
|
-
])], 8,
|
|
1820
|
+
])], 8, Il)
|
|
1869
1821
|
]),
|
|
1870
1822
|
_: 2
|
|
1871
|
-
}, 1024)) :
|
|
1872
|
-
|
|
1873
|
-
title:
|
|
1874
|
-
|
|
1823
|
+
}, 1024)) : z("", !0),
|
|
1824
|
+
n.fixed ? z("", !0) : (a(), R(c, { key: 1 }, {
|
|
1825
|
+
title: i(() => [
|
|
1826
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1875
1827
|
]),
|
|
1876
|
-
default:
|
|
1877
|
-
|
|
1828
|
+
default: i(() => [
|
|
1829
|
+
g("span", {
|
|
1878
1830
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1879
|
-
onClick: (Y) =>
|
|
1831
|
+
onClick: (Y) => T(n)
|
|
1880
1832
|
}, [...o[3] || (o[3] = [
|
|
1881
|
-
|
|
1833
|
+
g("svg", {
|
|
1882
1834
|
t: "1759048735643",
|
|
1883
1835
|
class: "icon",
|
|
1884
1836
|
viewBox: "0 0 1024 1024",
|
|
@@ -1888,53 +1840,53 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1888
1840
|
width: "200",
|
|
1889
1841
|
height: "200"
|
|
1890
1842
|
}, [
|
|
1891
|
-
|
|
1843
|
+
g("path", {
|
|
1892
1844
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
1893
1845
|
"p-id": "7482",
|
|
1894
1846
|
fill: "#ff5000"
|
|
1895
1847
|
})
|
|
1896
1848
|
], -1)
|
|
1897
|
-
])], 8,
|
|
1849
|
+
])], 8, Hl)
|
|
1898
1850
|
]),
|
|
1899
1851
|
_: 2
|
|
1900
1852
|
}, 1024))
|
|
1901
|
-
])) :
|
|
1902
|
-
])) :
|
|
1853
|
+
])) : z("", !0)
|
|
1854
|
+
])) : z("", !0)
|
|
1903
1855
|
]),
|
|
1904
1856
|
_: 1
|
|
1905
1857
|
}, 8, ["modelValue"]),
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1858
|
+
g("div", Dl, [
|
|
1859
|
+
g("div", Al, [
|
|
1860
|
+
w(s(he), {
|
|
1909
1861
|
checked: b.value,
|
|
1910
|
-
indeterminate:
|
|
1911
|
-
onChange:
|
|
1862
|
+
indeterminate: A.value,
|
|
1863
|
+
onChange: _
|
|
1912
1864
|
}, {
|
|
1913
|
-
default:
|
|
1914
|
-
|
|
1865
|
+
default: i(() => [
|
|
1866
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1915
1867
|
]),
|
|
1916
1868
|
_: 1
|
|
1917
1869
|
}, 8, ["checked", "indeterminate"])
|
|
1918
1870
|
]),
|
|
1919
|
-
|
|
1920
|
-
onClick:
|
|
1871
|
+
w(L, {
|
|
1872
|
+
onClick: M,
|
|
1921
1873
|
type: "primary"
|
|
1922
1874
|
}, {
|
|
1923
|
-
default:
|
|
1924
|
-
|
|
1875
|
+
default: i(() => [
|
|
1876
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1925
1877
|
]),
|
|
1926
1878
|
_: 1
|
|
1927
1879
|
})
|
|
1928
1880
|
])
|
|
1929
1881
|
]),
|
|
1930
|
-
default:
|
|
1931
|
-
|
|
1932
|
-
title:
|
|
1882
|
+
default: i(() => [
|
|
1883
|
+
w(c, {
|
|
1884
|
+
title: s(r)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1933
1885
|
placement: "leftTop"
|
|
1934
1886
|
}, {
|
|
1935
|
-
default:
|
|
1936
|
-
|
|
1937
|
-
|
|
1887
|
+
default: i(() => [...o[4] || (o[4] = [
|
|
1888
|
+
g("span", { class: "hb-lib-table-col-set" }, [
|
|
1889
|
+
g("svg", {
|
|
1938
1890
|
t: "1759041858618",
|
|
1939
1891
|
class: "icon",
|
|
1940
1892
|
viewBox: "0 0 1024 1024",
|
|
@@ -1944,12 +1896,12 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1944
1896
|
width: "200",
|
|
1945
1897
|
height: "200"
|
|
1946
1898
|
}, [
|
|
1947
|
-
|
|
1899
|
+
g("path", {
|
|
1948
1900
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
1949
1901
|
"p-id": "5220",
|
|
1950
1902
|
fill: "#ff5000"
|
|
1951
1903
|
}),
|
|
1952
|
-
|
|
1904
|
+
g("path", {
|
|
1953
1905
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
1954
1906
|
"p-id": "5221",
|
|
1955
1907
|
fill: "#ff5000"
|
|
@@ -1965,19 +1917,19 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
1965
1917
|
]);
|
|
1966
1918
|
};
|
|
1967
1919
|
}
|
|
1968
|
-
}),
|
|
1920
|
+
}), Bl = /* @__PURE__ */ te(Ol, [["__scopeId", "data-v-9200ee57"]]), Rl = X(Bl), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1969
1921
|
__proto__: null,
|
|
1970
|
-
HbLibFormItemFilterModal:
|
|
1971
|
-
HbLibListBtnsAct:
|
|
1972
|
-
HbLibListForm:
|
|
1973
|
-
HbLibListMultiSelect:
|
|
1974
|
-
HbLibListPageAct:
|
|
1975
|
-
HbLibListPageContainer:
|
|
1976
|
-
HbLibListTable:
|
|
1977
|
-
HbLibMutilpleSelectModal:
|
|
1978
|
-
HbLibTableAct:
|
|
1979
|
-
HbLibTableColumnSet:
|
|
1980
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1922
|
+
HbLibFormItemFilterModal: Lt,
|
|
1923
|
+
HbLibListBtnsAct: zt,
|
|
1924
|
+
HbLibListForm: wt,
|
|
1925
|
+
HbLibListMultiSelect: al,
|
|
1926
|
+
HbLibListPageAct: Dt,
|
|
1927
|
+
HbLibListPageContainer: Vt,
|
|
1928
|
+
HbLibListTable: Tl,
|
|
1929
|
+
HbLibMutilpleSelectModal: cl,
|
|
1930
|
+
HbLibTableAct: Ll,
|
|
1931
|
+
HbLibTableColumnSet: Rl
|
|
1932
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = {
|
|
1981
1933
|
// 如果存在cpText时,K和V无效
|
|
1982
1934
|
cpText: {
|
|
1983
1935
|
type: String,
|
|
@@ -2018,52 +1970,52 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
2018
1970
|
type: String,
|
|
2019
1971
|
default: "ab"
|
|
2020
1972
|
}
|
|
2021
|
-
},
|
|
1973
|
+
}, Nl = /* @__PURE__ */ Z({
|
|
2022
1974
|
name: "HbLibCopy",
|
|
2023
1975
|
__name: "copy",
|
|
2024
|
-
props:
|
|
1976
|
+
props: zl,
|
|
2025
1977
|
setup(t) {
|
|
2026
|
-
const f = t,
|
|
2027
|
-
|
|
2028
|
-
|
|
1978
|
+
const f = t, d = B();
|
|
1979
|
+
lt(() => {
|
|
1980
|
+
d.value = f.data;
|
|
2029
1981
|
});
|
|
2030
|
-
const
|
|
1982
|
+
const r = j(() => {
|
|
2031
1983
|
if (f.cpText) return f.cpText;
|
|
2032
|
-
let
|
|
1984
|
+
let p = "";
|
|
2033
1985
|
if (f.data)
|
|
2034
1986
|
if (Array.isArray(f.data)) {
|
|
2035
1987
|
if (f.K && f.V && f.L) {
|
|
2036
|
-
const
|
|
2037
|
-
|
|
1988
|
+
const m = f.data.find((u) => u?.[f.K] === f.V);
|
|
1989
|
+
p = m ? m[f.L] : "";
|
|
2038
1990
|
}
|
|
2039
1991
|
} else
|
|
2040
|
-
f.K && (
|
|
2041
|
-
return
|
|
2042
|
-
}),
|
|
2043
|
-
navigator.clipboard.writeText(
|
|
2044
|
-
|
|
1992
|
+
f.K && (p = f.data[f.K]);
|
|
1993
|
+
return p;
|
|
1994
|
+
}), F = () => {
|
|
1995
|
+
navigator.clipboard.writeText(r.value).then(() => {
|
|
1996
|
+
ye.success(f.copySuccessTip);
|
|
2045
1997
|
}).catch(() => {
|
|
2046
|
-
|
|
1998
|
+
ye.error("复制失败");
|
|
2047
1999
|
});
|
|
2048
2000
|
};
|
|
2049
|
-
return (
|
|
2050
|
-
const
|
|
2051
|
-
return
|
|
2001
|
+
return (p, m) => {
|
|
2002
|
+
const u = U("a-tooltip");
|
|
2003
|
+
return r.value ? (a(), R(u, {
|
|
2052
2004
|
key: 0,
|
|
2053
|
-
title:
|
|
2005
|
+
title: p.tooltipTitle
|
|
2054
2006
|
}, {
|
|
2055
|
-
default:
|
|
2056
|
-
|
|
2057
|
-
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy",
|
|
2058
|
-
style:
|
|
2059
|
-
onClick:
|
|
2007
|
+
default: i(() => [
|
|
2008
|
+
g("i", {
|
|
2009
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", p.classType == "ab" ? "ab" : "normal"]),
|
|
2010
|
+
style: be({ ...p.cpStyle }),
|
|
2011
|
+
onClick: ve(F, ["stop", "prevent"])
|
|
2060
2012
|
}, null, 6)
|
|
2061
2013
|
]),
|
|
2062
2014
|
_: 1
|
|
2063
|
-
}, 8, ["title"])) :
|
|
2015
|
+
}, 8, ["title"])) : z("", !0);
|
|
2064
2016
|
};
|
|
2065
2017
|
}
|
|
2066
|
-
}),
|
|
2018
|
+
}), El = /* @__PURE__ */ te(Nl, [["__scopeId", "data-v-d5ca4420"]]), Vl = X(El), Ul = {
|
|
2067
2019
|
dragList: {
|
|
2068
2020
|
type: Array,
|
|
2069
2021
|
required: !0
|
|
@@ -2102,124 +2054,124 @@ const yt = "hb-", $e = (t = "") => {
|
|
|
2102
2054
|
type: String,
|
|
2103
2055
|
default: ""
|
|
2104
2056
|
}
|
|
2105
|
-
},
|
|
2057
|
+
}, Yl = /* @__PURE__ */ Z({
|
|
2106
2058
|
name: "HbDrag",
|
|
2107
2059
|
__name: "index",
|
|
2108
|
-
props:
|
|
2060
|
+
props: Ul,
|
|
2109
2061
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2110
2062
|
setup(t, { emit: f }) {
|
|
2111
|
-
const
|
|
2112
|
-
|
|
2113
|
-
() =>
|
|
2063
|
+
const d = t, r = ot([]);
|
|
2064
|
+
oe(
|
|
2065
|
+
() => d.dragList,
|
|
2114
2066
|
(b) => {
|
|
2115
|
-
|
|
2067
|
+
r.value = b;
|
|
2116
2068
|
},
|
|
2117
2069
|
{
|
|
2118
2070
|
deep: !0,
|
|
2119
2071
|
immediate: !0
|
|
2120
2072
|
}
|
|
2121
2073
|
);
|
|
2122
|
-
const
|
|
2123
|
-
console.log("drag start", b),
|
|
2124
|
-
},
|
|
2125
|
-
console.log("drag end", b),
|
|
2074
|
+
const F = Se("drag"), p = f, m = (b) => {
|
|
2075
|
+
console.log("drag start", b), p("handleDragStart", b);
|
|
2076
|
+
}, u = (b) => {
|
|
2077
|
+
console.log("drag end", b), p("handleDragEnd", b);
|
|
2126
2078
|
}, e = (b) => {
|
|
2127
|
-
console.log("drag add", b),
|
|
2079
|
+
console.log("drag add", b), p("handleDragAdd", b);
|
|
2128
2080
|
}, h = (b) => {
|
|
2129
|
-
console.log("drag remove", b),
|
|
2081
|
+
console.log("drag remove", b), p("handleDragRemove", b);
|
|
2130
2082
|
};
|
|
2131
|
-
return (b,
|
|
2132
|
-
class: E(
|
|
2083
|
+
return (b, A) => (a(), S("div", {
|
|
2084
|
+
class: E(s(F).b())
|
|
2133
2085
|
}, [
|
|
2134
|
-
b.childrenType == "component" ? (a(),
|
|
2086
|
+
b.childrenType == "component" ? (a(), R(s(ue), Q({
|
|
2135
2087
|
key: 0,
|
|
2136
|
-
modelValue:
|
|
2137
|
-
"onUpdate:modelValue":
|
|
2088
|
+
modelValue: r.value,
|
|
2089
|
+
"onUpdate:modelValue": A[0] || (A[0] = (D) => r.value = D),
|
|
2138
2090
|
"item-key": "key",
|
|
2139
2091
|
class: { [b.dragClass]: b.dragClass }
|
|
2140
2092
|
}, b.$attrs, {
|
|
2141
2093
|
"ghost-class": b.ghostClass,
|
|
2142
|
-
onStart:
|
|
2143
|
-
onEnd:
|
|
2094
|
+
onStart: m,
|
|
2095
|
+
onEnd: u,
|
|
2144
2096
|
onAdd: e,
|
|
2145
2097
|
onRemove: h
|
|
2146
2098
|
}), {
|
|
2147
|
-
item:
|
|
2148
|
-
(a(),
|
|
2099
|
+
item: i(({ element: D }) => [
|
|
2100
|
+
(a(), R(at(D.component)))
|
|
2149
2101
|
]),
|
|
2150
2102
|
_: 1
|
|
2151
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (a(),
|
|
2103
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), R(s(ue), Q({
|
|
2152
2104
|
key: 1,
|
|
2153
|
-
modelValue:
|
|
2154
|
-
"onUpdate:modelValue":
|
|
2105
|
+
modelValue: r.value,
|
|
2106
|
+
"onUpdate:modelValue": A[1] || (A[1] = (D) => r.value = D),
|
|
2155
2107
|
"item-key": "id",
|
|
2156
2108
|
class: { [b.dragClass]: b.dragClass }
|
|
2157
2109
|
}, b.$attrs, {
|
|
2158
2110
|
"ghost-class": b.ghostClass,
|
|
2159
|
-
onStart:
|
|
2160
|
-
onEnd:
|
|
2111
|
+
onStart: m,
|
|
2112
|
+
onEnd: u,
|
|
2161
2113
|
onAdd: e,
|
|
2162
2114
|
onRemove: h
|
|
2163
2115
|
}), {
|
|
2164
|
-
item:
|
|
2165
|
-
|
|
2166
|
-
|
|
2116
|
+
item: i(({ element: D }) => [
|
|
2117
|
+
g("div", null, [
|
|
2118
|
+
V(b.$slots, "default", { item: D }, void 0, !0)
|
|
2167
2119
|
])
|
|
2168
2120
|
]),
|
|
2169
2121
|
_: 3
|
|
2170
2122
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2171
2123
|
], 2));
|
|
2172
2124
|
}
|
|
2173
|
-
}),
|
|
2125
|
+
}), jl = /* @__PURE__ */ te(Yl, [["__scopeId", "data-v-15b227f5"]]), ql = X(jl), Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2174
2126
|
__proto__: null,
|
|
2175
|
-
HbLibFuncCompCopy:
|
|
2176
|
-
HbLibFuncCompDrag:
|
|
2127
|
+
HbLibFuncCompCopy: Vl,
|
|
2128
|
+
HbLibFuncCompDrag: ql
|
|
2177
2129
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2178
|
-
let
|
|
2179
|
-
...
|
|
2180
|
-
...
|
|
2130
|
+
let Ve = {
|
|
2131
|
+
...Pl,
|
|
2132
|
+
...Kl
|
|
2181
2133
|
};
|
|
2182
|
-
const
|
|
2134
|
+
const Wl = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" } }, Jl = {
|
|
2135
|
+
hbLibComp: Wl
|
|
2136
|
+
}, Gl = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" } }, Ql = {
|
|
2137
|
+
hbLibComp: Gl
|
|
2138
|
+
}, Zl = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" } }, Xl = {
|
|
2183
2139
|
hbLibComp: Zl
|
|
2184
|
-
}, eo = { HbFileUploadModal: { cancel: "
|
|
2140
|
+
}, eo = { 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" } }, to = {
|
|
2185
2141
|
hbLibComp: eo
|
|
2186
|
-
}, lo = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" } }, oo = {
|
|
2187
|
-
hbLibComp: lo
|
|
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 = {
|
|
2189
|
-
hbLibComp: ao
|
|
2190
2142
|
};
|
|
2191
|
-
var
|
|
2192
|
-
function
|
|
2193
|
-
return
|
|
2194
|
-
(function(
|
|
2195
|
-
t.exports =
|
|
2196
|
-
})(
|
|
2197
|
-
function
|
|
2198
|
-
return
|
|
2143
|
+
var de = { exports: {} }, lo = de.exports, Ue;
|
|
2144
|
+
function oo() {
|
|
2145
|
+
return Ue || (Ue = 1, (function(t, f) {
|
|
2146
|
+
(function(d, r) {
|
|
2147
|
+
t.exports = r(_e);
|
|
2148
|
+
})(lo, (function(d) {
|
|
2149
|
+
function r(m) {
|
|
2150
|
+
return m && typeof m == "object" && "default" in m ? m : { default: m };
|
|
2199
2151
|
}
|
|
2200
|
-
var
|
|
2201
|
-
return
|
|
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(
|
|
2203
|
-
var e = 100 *
|
|
2152
|
+
var F = r(d), p = { 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(m, u) {
|
|
2153
|
+
return u === "W" ? m + "周" : m + "日";
|
|
2154
|
+
}, 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(m, u) {
|
|
2155
|
+
var e = 100 * m + u;
|
|
2204
2156
|
return e < 600 ? "凌晨" : e < 900 ? "早上" : e < 1100 ? "上午" : e < 1300 ? "中午" : e < 1800 ? "下午" : "晚上";
|
|
2205
2157
|
} };
|
|
2206
|
-
return
|
|
2158
|
+
return F.default.locale(p, null, !0), p;
|
|
2207
2159
|
}));
|
|
2208
|
-
})(
|
|
2160
|
+
})(de)), de.exports;
|
|
2209
2161
|
}
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
const
|
|
2213
|
-
en_US:
|
|
2214
|
-
ja_JP:
|
|
2215
|
-
zh_CN:
|
|
2216
|
-
de_DE:
|
|
2217
|
-
},
|
|
2218
|
-
Object.keys(
|
|
2219
|
-
t.use(
|
|
2162
|
+
oo();
|
|
2163
|
+
_e.locale("zh-cn");
|
|
2164
|
+
const fo = {
|
|
2165
|
+
en_US: Jl,
|
|
2166
|
+
ja_JP: Ql,
|
|
2167
|
+
zh_CN: Xl,
|
|
2168
|
+
de_DE: to
|
|
2169
|
+
}, mo = function(t) {
|
|
2170
|
+
Object.keys(Ve).forEach((d) => {
|
|
2171
|
+
t.use(Ve[d]);
|
|
2220
2172
|
});
|
|
2221
2173
|
};
|
|
2222
2174
|
export {
|
|
2223
|
-
|
|
2224
|
-
|
|
2175
|
+
mo as install,
|
|
2176
|
+
fo as locales
|
|
2225
2177
|
};
|