@hb-hellotech/hb-ui 1.2.3 → 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 +1069 -1110
- 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,274 +37,224 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(
|
|
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
|
-
}), D =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const O = k.draggedContext.element, g = k.relatedContext.index;
|
|
47
|
-
if (O.isLinked || O.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
|
-
})[
|
|
74
|
-
try {
|
|
75
|
-
const k = M(), O = localStorage.getItem(k);
|
|
76
|
-
if (O) {
|
|
77
|
-
const g = JSON.parse(O);
|
|
78
|
-
if (g.originalList && Array.isArray(g.originalList)) {
|
|
79
|
-
C = JSON.parse(JSON.stringify(g.originalList));
|
|
80
|
-
const Y = C.filter((x) => x?.isFixed), G = C.filter((x) => x?.isLinked), ae = g.showList.filter((x) => !x.isFixed && !x.isLinked), ue = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - Y.length - G.length) : ae.length, ve = Y.map((x) => ({
|
|
81
|
-
...x,
|
|
82
|
-
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
-
key: x.key,
|
|
84
|
-
isFixed: x?.isFixed || !1,
|
|
85
|
-
isLinked: x?.isLinked || !1,
|
|
86
|
-
labelLanguage: x?.labelLanguage || void 0
|
|
87
|
-
})), ge = G.map((x) => ({
|
|
88
|
-
...x,
|
|
89
|
-
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
-
key: x.key,
|
|
91
|
-
isFixed: x?.isFixed || !1,
|
|
92
|
-
isLinked: !0,
|
|
93
|
-
labelLanguage: x?.labelLanguage || void 0
|
|
94
|
-
})), ye = ae.slice(0, ue).map((x) => ({
|
|
95
|
-
...x,
|
|
96
|
-
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
-
key: x.key,
|
|
98
|
-
isFixed: x?.isFixed || !1,
|
|
99
|
-
isLinked: x?.isLinked || !1,
|
|
100
|
-
labelLanguage: x?.labelLanguage || void 0
|
|
101
|
-
}));
|
|
102
|
-
y.value = [...ve, ...ge, ...ye];
|
|
103
|
-
const H = y.value.map((x) => x.key), Ze = C.map((x) => x.key).filter((x) => !H.includes(x));
|
|
104
|
-
return I.value = C.filter((x) => Ze.includes(x.key)).map((x) => ({
|
|
105
|
-
...x,
|
|
106
|
-
label: w(x) || `${x.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
-
key: x.key,
|
|
108
|
-
isFixed: x?.isFixed || !1,
|
|
109
|
-
isLinked: x?.isLinked || !1,
|
|
110
|
-
active: !1,
|
|
111
|
-
labelLanguage: x?.labelLanguage || void 0
|
|
112
|
-
})), !0;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
} catch (k) {
|
|
116
|
-
console.warn("加载保存的搜索配置失败:", k);
|
|
117
|
-
}
|
|
118
|
-
return !1;
|
|
119
|
-
}, o = () => {
|
|
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 = () => {
|
|
120
72
|
try {
|
|
121
|
-
const
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
124
|
-
...
|
|
125
|
-
key:
|
|
126
|
-
label:
|
|
127
|
-
isFixed:
|
|
128
|
-
isLinked:
|
|
129
|
-
labelLanguage:
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
I.value = ye;
|
|
178
|
-
}
|
|
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,
|
|
108
|
+
isLinked: !0,
|
|
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
|
|
117
|
+
}));
|
|
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,
|
|
125
|
+
active: !1,
|
|
126
|
+
labelLanguage: O?.labelLanguage || void 0
|
|
127
|
+
}));
|
|
128
|
+
M.value = We;
|
|
179
129
|
},
|
|
180
|
-
{ immediate: !0 }
|
|
130
|
+
{ immediate: !0, deep: !0 }
|
|
181
131
|
);
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
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)
|
|
187
137
|
return;
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const [
|
|
191
|
-
|
|
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 });
|
|
192
142
|
}
|
|
193
|
-
},
|
|
143
|
+
}, n = () => {
|
|
194
144
|
D.value = !1;
|
|
195
|
-
},
|
|
145
|
+
}, Y = () => {
|
|
196
146
|
D.value = !0;
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
const
|
|
204
|
-
|
|
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);
|
|
205
155
|
};
|
|
206
156
|
return f({
|
|
207
|
-
toOpenModal:
|
|
208
|
-
}), (
|
|
209
|
-
class: E(
|
|
157
|
+
toOpenModal: Y
|
|
158
|
+
}), (v, I) => (a(), S("div", {
|
|
159
|
+
class: E(s(h).b())
|
|
210
160
|
}, [
|
|
211
|
-
|
|
161
|
+
w(s(ge), {
|
|
212
162
|
visible: D.value,
|
|
213
|
-
"onUpdate:visible":
|
|
214
|
-
width:
|
|
215
|
-
onCancel:
|
|
216
|
-
onOk:
|
|
163
|
+
"onUpdate:visible": I[1] || (I[1] = (y) => D.value = y),
|
|
164
|
+
width: G.value,
|
|
165
|
+
onCancel: n,
|
|
166
|
+
onOk: P
|
|
217
167
|
}, {
|
|
218
|
-
title:
|
|
219
|
-
|
|
220
|
-
class: E(
|
|
221
|
-
},
|
|
168
|
+
title: i(() => [
|
|
169
|
+
g("div", {
|
|
170
|
+
class: E(s(h).e("title"))
|
|
171
|
+
}, k(t.title), 3)
|
|
222
172
|
]),
|
|
223
|
-
footer:
|
|
224
|
-
|
|
225
|
-
default:
|
|
226
|
-
|
|
173
|
+
footer: i(() => [
|
|
174
|
+
w(s(ie), { onClick: n }, {
|
|
175
|
+
default: i(() => [
|
|
176
|
+
H(k(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
227
177
|
]),
|
|
228
178
|
_: 1
|
|
229
179
|
}),
|
|
230
|
-
|
|
180
|
+
w(s(ie), {
|
|
231
181
|
type: "primary",
|
|
232
|
-
onClick:
|
|
182
|
+
onClick: P
|
|
233
183
|
}, {
|
|
234
|
-
default:
|
|
235
|
-
|
|
184
|
+
default: i(() => [
|
|
185
|
+
H(k(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
236
186
|
]),
|
|
237
187
|
_: 1
|
|
238
188
|
})
|
|
239
189
|
]),
|
|
240
|
-
default:
|
|
241
|
-
|
|
242
|
-
class: E(
|
|
190
|
+
default: i(() => [
|
|
191
|
+
g("section", {
|
|
192
|
+
class: E(s(h).e("show"))
|
|
243
193
|
}, [
|
|
244
|
-
|
|
245
|
-
class: E(
|
|
194
|
+
g("div", {
|
|
195
|
+
class: E(s(h).e("show__title"))
|
|
246
196
|
}, [
|
|
247
|
-
|
|
248
|
-
class: E(
|
|
249
|
-
},
|
|
250
|
-
|
|
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)
|
|
251
201
|
], 2),
|
|
252
|
-
|
|
253
|
-
class: E(
|
|
202
|
+
g("div", {
|
|
203
|
+
class: E(s(h).e("show__tag"))
|
|
254
204
|
}, [
|
|
255
|
-
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue":
|
|
205
|
+
w(s(ue), {
|
|
206
|
+
modelValue: C.value,
|
|
207
|
+
"onUpdate:modelValue": I[0] || (I[0] = (y) => C.value = y),
|
|
258
208
|
"item-key": "key",
|
|
259
209
|
tag: "div",
|
|
260
|
-
disabled:
|
|
261
|
-
move:
|
|
210
|
+
disabled: $.value,
|
|
211
|
+
move: N
|
|
262
212
|
}, {
|
|
263
|
-
item:
|
|
264
|
-
|
|
265
|
-
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)])
|
|
266
216
|
}, [
|
|
267
|
-
|
|
268
|
-
!
|
|
217
|
+
H(k(y.label) + " ", 1),
|
|
218
|
+
!y.isFixed && !y.isLinked && t.list.length > 1 ? (a(), R(s(nt), {
|
|
269
219
|
key: 0,
|
|
270
|
-
class: E(
|
|
271
|
-
onClick: (
|
|
272
|
-
}, 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)
|
|
273
223
|
], 2)
|
|
274
224
|
]),
|
|
275
225
|
_: 1
|
|
276
226
|
}, 8, ["modelValue", "disabled"])
|
|
277
227
|
], 2)
|
|
278
228
|
], 2),
|
|
279
|
-
|
|
280
|
-
class: E(
|
|
229
|
+
g("section", {
|
|
230
|
+
class: E(s(h).e("unshow"))
|
|
281
231
|
}, [
|
|
282
|
-
|
|
283
|
-
class: E(
|
|
232
|
+
g("div", {
|
|
233
|
+
class: E(s(h).e("show__title"))
|
|
284
234
|
}, [
|
|
285
|
-
|
|
286
|
-
class: E(
|
|
287
|
-
},
|
|
235
|
+
g("span", {
|
|
236
|
+
class: E(s(h).e("title__tip"))
|
|
237
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
288
238
|
], 2),
|
|
289
|
-
|
|
290
|
-
class: E(
|
|
239
|
+
g("div", {
|
|
240
|
+
class: E(s(h).e("unshow__tag"))
|
|
291
241
|
}, [
|
|
292
|
-
|
|
293
|
-
class: E([
|
|
294
|
-
key:
|
|
295
|
-
onMouseenter: (
|
|
296
|
-
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)
|
|
297
247
|
}, [
|
|
298
|
-
|
|
299
|
-
|
|
248
|
+
H(k(y.label) + " ", 1),
|
|
249
|
+
y.active ? (a(), S("aside", {
|
|
300
250
|
key: 0,
|
|
301
|
-
class: E(
|
|
302
|
-
onClick: (
|
|
303
|
-
},
|
|
304
|
-
], 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", {
|
|
305
255
|
key: 1,
|
|
306
|
-
class: E(
|
|
307
|
-
},
|
|
256
|
+
class: E(s(h).e("unshow__tag__empty"))
|
|
257
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
308
258
|
], 2)
|
|
309
259
|
], 2)
|
|
310
260
|
]),
|
|
@@ -312,15 +262,15 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
312
262
|
}, 8, ["visible", "width"])
|
|
313
263
|
], 2));
|
|
314
264
|
}
|
|
315
|
-
}),
|
|
316
|
-
const
|
|
317
|
-
for (const [
|
|
318
|
-
|
|
319
|
-
return
|
|
320
|
-
},
|
|
321
|
-
for (const
|
|
322
|
-
|
|
323
|
-
},
|
|
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({
|
|
324
274
|
name: "HbLibListForm",
|
|
325
275
|
__name: "HbListForm",
|
|
326
276
|
props: {
|
|
@@ -348,23 +298,23 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
348
298
|
} }
|
|
349
299
|
},
|
|
350
300
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
351
|
-
setup(
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
}, D =
|
|
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 = () => {
|
|
357
307
|
D.value && D.value.toOpenModal();
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
|
|
308
|
+
}, _ = (T) => {
|
|
309
|
+
r("handleSfcmConfirm", T);
|
|
310
|
+
}, C = () => {
|
|
311
|
+
u.value = u.value === "show" ? "hide" : "show";
|
|
362
312
|
};
|
|
363
|
-
|
|
313
|
+
oe(
|
|
364
314
|
() => m.isFormExpanded,
|
|
365
|
-
(
|
|
366
|
-
if (
|
|
367
|
-
console.log(
|
|
315
|
+
(T) => {
|
|
316
|
+
if (T) {
|
|
317
|
+
console.log(T);
|
|
368
318
|
const l = document.querySelector("#subpackage_container");
|
|
369
319
|
l instanceof HTMLElement && (l.style.overflow = "hidden", setTimeout(() => {
|
|
370
320
|
l.style.overflow = "auto";
|
|
@@ -372,170 +322,170 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
372
322
|
}
|
|
373
323
|
}
|
|
374
324
|
);
|
|
375
|
-
const
|
|
376
|
-
const l =
|
|
325
|
+
const M = (T) => {
|
|
326
|
+
const l = T;
|
|
377
327
|
l.style.height = "", l.offsetHeight;
|
|
378
|
-
},
|
|
379
|
-
const l =
|
|
380
|
-
l.style.height = "", l.style.overflow = "",
|
|
381
|
-
|
|
328
|
+
}, $ = (T) => {
|
|
329
|
+
const l = T;
|
|
330
|
+
l.style.height = "", l.style.overflow = "", ce(() => {
|
|
331
|
+
F.calTableHeight && F.calTableHeight();
|
|
382
332
|
});
|
|
383
|
-
},
|
|
384
|
-
const l =
|
|
333
|
+
}, N = (T) => {
|
|
334
|
+
const l = T, o = l.querySelector(".hb-lib-form--container");
|
|
385
335
|
if (o) {
|
|
386
|
-
const
|
|
387
|
-
l.style.height =
|
|
336
|
+
const c = o.offsetHeight;
|
|
337
|
+
l.style.height = c + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
388
338
|
l.style.height = "0";
|
|
389
339
|
});
|
|
390
340
|
}
|
|
391
|
-
},
|
|
392
|
-
|
|
393
|
-
|
|
341
|
+
}, x = () => {
|
|
342
|
+
ce(() => {
|
|
343
|
+
F.calTableHeight && F.calTableHeight();
|
|
394
344
|
});
|
|
395
345
|
};
|
|
396
346
|
return f({
|
|
397
347
|
formRef: h,
|
|
398
|
-
SelectOption:
|
|
399
|
-
Form:
|
|
400
|
-
FormItem:
|
|
401
|
-
Row:
|
|
402
|
-
Col:
|
|
403
|
-
Input:
|
|
404
|
-
Select:
|
|
405
|
-
CheckboxGroup:
|
|
406
|
-
Checkbox:
|
|
407
|
-
DatePicker:
|
|
408
|
-
InputNumber:
|
|
409
|
-
RadioGroup:
|
|
410
|
-
Radio:
|
|
411
|
-
Switch:
|
|
412
|
-
Button:
|
|
413
|
-
Tooltip:
|
|
414
|
-
}), (
|
|
415
|
-
const o =
|
|
416
|
-
return a(), S(
|
|
417
|
-
|
|
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, {
|
|
418
368
|
name: "form-collapse",
|
|
419
|
-
onEnter:
|
|
420
|
-
onAfterEnter:
|
|
421
|
-
onLeave:
|
|
422
|
-
onAfterLeave:
|
|
369
|
+
onEnter: M,
|
|
370
|
+
onAfterEnter: $,
|
|
371
|
+
onLeave: N,
|
|
372
|
+
onAfterLeave: x
|
|
423
373
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
|
|
426
|
-
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"])
|
|
427
377
|
}, [
|
|
428
|
-
|
|
429
|
-
model:
|
|
378
|
+
w(s(Re), Q(T.$attrs, {
|
|
379
|
+
model: t.formData,
|
|
430
380
|
ref_key: "formRef",
|
|
431
381
|
ref: h,
|
|
432
|
-
class: ["hb-lib-form--container",
|
|
382
|
+
class: ["hb-lib-form--container", u.value == "show" ? "" : "hide"]
|
|
433
383
|
}), {
|
|
434
|
-
default:
|
|
435
|
-
(a(!0), S(
|
|
436
|
-
key:
|
|
384
|
+
default: i(() => [
|
|
385
|
+
(a(!0), S(J, null, le(e.value, (n, Y) => (a(), R(s(Be), Q({
|
|
386
|
+
key: Y,
|
|
437
387
|
ref_for: !0
|
|
438
|
-
},
|
|
439
|
-
name:
|
|
440
|
-
class:
|
|
441
|
-
}),
|
|
442
|
-
default:
|
|
443
|
-
|
|
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, {
|
|
444
394
|
key: 0,
|
|
445
|
-
formData:
|
|
446
|
-
item:
|
|
447
|
-
}, void 0, !0) :
|
|
448
|
-
|
|
395
|
+
formData: t.formData,
|
|
396
|
+
item: n
|
|
397
|
+
}, void 0, !0) : z("", !0),
|
|
398
|
+
n.type === "mixin" ? V(T.$slots, n.key, {
|
|
449
399
|
key: 1,
|
|
450
|
-
formData:
|
|
451
|
-
item:
|
|
452
|
-
}, void 0, !0) :
|
|
453
|
-
|
|
400
|
+
formData: t.formData,
|
|
401
|
+
item: n
|
|
402
|
+
}, void 0, !0) : z("", !0),
|
|
403
|
+
n.type === "input" ? (a(), R(s(Oe), Q({
|
|
454
404
|
key: 2,
|
|
455
|
-
value:
|
|
456
|
-
"onUpdate:value": (
|
|
457
|
-
}, { ref_for: !0 },
|
|
458
|
-
|
|
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({
|
|
459
409
|
key: 3,
|
|
460
|
-
value:
|
|
461
|
-
"onUpdate:value": (
|
|
462
|
-
}, { ref_for: !0 },
|
|
463
|
-
default:
|
|
464
|
-
(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), {
|
|
465
415
|
key: ee,
|
|
466
|
-
value:
|
|
416
|
+
value: P.value
|
|
467
417
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
418
|
+
default: i(() => [
|
|
419
|
+
H(k(P.label), 1)
|
|
470
420
|
]),
|
|
471
421
|
_: 2
|
|
472
422
|
}, 1032, ["value"]))), 128))
|
|
473
423
|
]),
|
|
474
424
|
_: 2
|
|
475
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
476
|
-
|
|
425
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
426
|
+
n.type === "checkbox" ? (a(), R(s(De), Q({
|
|
477
427
|
key: 4,
|
|
478
|
-
value:
|
|
479
|
-
"onUpdate:value": (
|
|
480
|
-
}, { ref_for: !0 },
|
|
481
|
-
default:
|
|
482
|
-
(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), {
|
|
483
433
|
key: ee,
|
|
484
|
-
value:
|
|
434
|
+
value: P.value
|
|
485
435
|
}, {
|
|
486
|
-
default:
|
|
487
|
-
|
|
436
|
+
default: i(() => [
|
|
437
|
+
H(k(P.label), 1)
|
|
488
438
|
]),
|
|
489
439
|
_: 2
|
|
490
440
|
}, 1032, ["value"]))), 128))
|
|
491
441
|
]),
|
|
492
442
|
_: 2
|
|
493
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
494
|
-
|
|
443
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
444
|
+
n.type === "date-picker" ? (a(), R(s(He), Q({
|
|
495
445
|
key: 5,
|
|
496
|
-
value:
|
|
497
|
-
"onUpdate:value": (
|
|
498
|
-
}, { ref_for: !0 },
|
|
499
|
-
|
|
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({
|
|
500
450
|
key: 6,
|
|
501
|
-
value:
|
|
502
|
-
"onUpdate:value": (
|
|
503
|
-
}, { ref_for: !0 },
|
|
504
|
-
|
|
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({
|
|
505
455
|
key: 7,
|
|
506
|
-
value:
|
|
507
|
-
"onUpdate:value": (
|
|
508
|
-
}, { ref_for: !0 },
|
|
509
|
-
default:
|
|
510
|
-
(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), {
|
|
511
461
|
key: ee,
|
|
512
|
-
value:
|
|
462
|
+
value: P.value
|
|
513
463
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
464
|
+
default: i(() => [
|
|
465
|
+
H(k(P.label), 1)
|
|
516
466
|
]),
|
|
517
467
|
_: 2
|
|
518
468
|
}, 1032, ["value"]))), 128))
|
|
519
469
|
]),
|
|
520
470
|
_: 2
|
|
521
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
522
|
-
|
|
471
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
472
|
+
n.type === "switch" ? (a(), R(s($e), Q({
|
|
523
473
|
key: 8,
|
|
524
|
-
checked:
|
|
525
|
-
"onUpdate:checked": (
|
|
526
|
-
}, { 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)
|
|
527
477
|
]),
|
|
528
478
|
_: 2
|
|
529
479
|
}, [
|
|
530
|
-
|
|
480
|
+
n.tooltip ? {
|
|
531
481
|
name: "label",
|
|
532
|
-
fn:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
title:
|
|
482
|
+
fn: i(() => [
|
|
483
|
+
H(k(n.label) + " ", 1),
|
|
484
|
+
w(s(Te), {
|
|
485
|
+
title: n.tooltip
|
|
536
486
|
}, {
|
|
537
|
-
default:
|
|
538
|
-
|
|
487
|
+
default: i(() => [
|
|
488
|
+
w(s(st), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
539
489
|
]),
|
|
540
490
|
_: 1
|
|
541
491
|
}, 8, ["title"])
|
|
@@ -543,39 +493,39 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
543
493
|
key: "0"
|
|
544
494
|
} : void 0
|
|
545
495
|
]), 1040, ["name", "class"]))), 128)),
|
|
546
|
-
|
|
547
|
-
|
|
496
|
+
g("section", kt, [
|
|
497
|
+
w(o, {
|
|
548
498
|
type: "primary",
|
|
549
499
|
onClick: b,
|
|
550
500
|
class: "hb_list_page_button"
|
|
551
501
|
}, {
|
|
552
|
-
icon:
|
|
553
|
-
|
|
502
|
+
icon: i(() => [
|
|
503
|
+
w(s(ke))
|
|
554
504
|
]),
|
|
555
|
-
default:
|
|
556
|
-
|
|
505
|
+
default: i(() => [
|
|
506
|
+
H(" " + k(T.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
557
507
|
]),
|
|
558
508
|
_: 1
|
|
559
509
|
}),
|
|
560
|
-
|
|
510
|
+
w(o, {
|
|
561
511
|
type: "link",
|
|
562
|
-
onClick:
|
|
512
|
+
onClick: A
|
|
563
513
|
}, {
|
|
564
|
-
default:
|
|
565
|
-
|
|
514
|
+
default: i(() => [
|
|
515
|
+
H(k(T.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
566
516
|
]),
|
|
567
517
|
_: 1
|
|
568
518
|
}),
|
|
569
|
-
|
|
519
|
+
t.needFilter ? (a(), R(c, {
|
|
570
520
|
key: 0,
|
|
571
|
-
title:
|
|
521
|
+
title: T.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
572
522
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
|
|
523
|
+
default: i(() => [
|
|
524
|
+
g("span", {
|
|
575
525
|
class: "hb-lib-form-svg",
|
|
576
|
-
onClick:
|
|
526
|
+
onClick: G
|
|
577
527
|
}, [...l[0] || (l[0] = [
|
|
578
|
-
|
|
528
|
+
g("svg", {
|
|
579
529
|
t: "1757915025410",
|
|
580
530
|
class: "icon",
|
|
581
531
|
viewBox: "0 0 1024 1024",
|
|
@@ -585,7 +535,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
585
535
|
width: "200",
|
|
586
536
|
height: "200"
|
|
587
537
|
}, [
|
|
588
|
-
|
|
538
|
+
g("path", {
|
|
589
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",
|
|
590
540
|
fill: "#ff5000",
|
|
591
541
|
"p-id": "16347"
|
|
@@ -594,74 +544,74 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
594
544
|
])])
|
|
595
545
|
]),
|
|
596
546
|
_: 1
|
|
597
|
-
}, 8, ["title"])) :
|
|
598
|
-
|
|
547
|
+
}, 8, ["title"])) : z("", !0),
|
|
548
|
+
V(T.$slots, "formBtns", {}, void 0, !0)
|
|
599
549
|
])
|
|
600
550
|
]),
|
|
601
551
|
_: 3
|
|
602
552
|
}, 16, ["model", "class"]),
|
|
603
|
-
|
|
553
|
+
t.needFooter ? (a(), S("div", {
|
|
604
554
|
key: 0,
|
|
605
|
-
class: E(
|
|
555
|
+
class: E(s(p).e("footer"))
|
|
606
556
|
}, [
|
|
607
|
-
|
|
608
|
-
class: E(
|
|
557
|
+
g("div", {
|
|
558
|
+
class: E(s(p).e("footer__left"))
|
|
609
559
|
}, [
|
|
610
|
-
|
|
560
|
+
V(T.$slots, "form-footer-left", {}, void 0, !0)
|
|
611
561
|
], 2),
|
|
612
|
-
|
|
613
|
-
class: E(
|
|
562
|
+
g("div", {
|
|
563
|
+
class: E(s(p).e("footer__right"))
|
|
614
564
|
}, [
|
|
615
|
-
|
|
565
|
+
u.value == "show" ? V(T.$slots, "form-footer-right", {
|
|
616
566
|
key: 0,
|
|
617
567
|
formRef: h.value
|
|
618
568
|
}, () => [
|
|
619
|
-
|
|
569
|
+
w(s(ie), {
|
|
620
570
|
type: "primary",
|
|
621
|
-
onClick:
|
|
571
|
+
onClick: A
|
|
622
572
|
}, {
|
|
623
|
-
default:
|
|
624
|
-
|
|
573
|
+
default: i(() => [
|
|
574
|
+
H(k(T.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
625
575
|
]),
|
|
626
576
|
_: 1
|
|
627
577
|
}),
|
|
628
|
-
|
|
578
|
+
w(s(ie), {
|
|
629
579
|
type: "primary",
|
|
630
580
|
onClick: b
|
|
631
581
|
}, {
|
|
632
|
-
default:
|
|
633
|
-
|
|
582
|
+
default: i(() => [
|
|
583
|
+
H(k(T.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
634
584
|
]),
|
|
635
585
|
_: 1
|
|
636
586
|
})
|
|
637
|
-
], !0) :
|
|
638
|
-
|
|
587
|
+
], !0) : z("", !0),
|
|
588
|
+
w(s(ie), {
|
|
639
589
|
type: "primary",
|
|
640
|
-
onClick:
|
|
590
|
+
onClick: C
|
|
641
591
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
592
|
+
default: i(() => [
|
|
593
|
+
H(k(u.value == "show" ? `${T.$t("hbLibComp.hbListPageAct.close")}` : `${T.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
644
594
|
]),
|
|
645
595
|
_: 1
|
|
646
596
|
})
|
|
647
597
|
], 2)
|
|
648
|
-
], 2)) :
|
|
598
|
+
], 2)) : z("", !0)
|
|
649
599
|
], 2), [
|
|
650
|
-
[
|
|
600
|
+
[Ge, t.isFormExpanded]
|
|
651
601
|
])
|
|
652
602
|
]),
|
|
653
603
|
_: 3
|
|
654
604
|
}),
|
|
655
|
-
|
|
656
|
-
list: e.
|
|
605
|
+
w(L, {
|
|
606
|
+
list: e.value,
|
|
657
607
|
ref_key: "HbSfCmRef",
|
|
658
608
|
ref: D,
|
|
659
|
-
onConfirm:
|
|
609
|
+
onConfirm: _
|
|
660
610
|
}, null, 8, ["list"])
|
|
661
611
|
], 64);
|
|
662
612
|
};
|
|
663
613
|
}
|
|
664
|
-
}),
|
|
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 = {
|
|
665
615
|
key: 0,
|
|
666
616
|
t: "1757915338760",
|
|
667
617
|
class: "icon",
|
|
@@ -671,7 +621,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
671
621
|
"p-id": "22885",
|
|
672
622
|
width: "200",
|
|
673
623
|
height: "200"
|
|
674
|
-
},
|
|
624
|
+
}, Mt = {
|
|
675
625
|
key: 1,
|
|
676
626
|
t: "1757915360496",
|
|
677
627
|
class: "icon",
|
|
@@ -681,7 +631,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
681
631
|
"p-id": "23904",
|
|
682
632
|
width: "200",
|
|
683
633
|
height: "200"
|
|
684
|
-
},
|
|
634
|
+
}, It = /* @__PURE__ */ Z({
|
|
685
635
|
name: "HbLibListPageAct",
|
|
686
636
|
__name: "HbListPageAct",
|
|
687
637
|
props: {
|
|
@@ -691,50 +641,50 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
691
641
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
692
642
|
},
|
|
693
643
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
694
|
-
setup(
|
|
695
|
-
const
|
|
696
|
-
const
|
|
697
|
-
let
|
|
698
|
-
if (
|
|
699
|
-
let b = JSON.parse(
|
|
644
|
+
setup(t, { emit: f }) {
|
|
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;
|
|
648
|
+
if (e !== "[]") {
|
|
649
|
+
let b = JSON.parse(e).find((A) => A.value === h);
|
|
700
650
|
b && (p.value = b.label.replace(/-/g, " / "));
|
|
701
651
|
}
|
|
702
652
|
};
|
|
703
|
-
return
|
|
653
|
+
return Le(() => {
|
|
704
654
|
m();
|
|
705
|
-
}), (
|
|
706
|
-
const h =
|
|
707
|
-
return a(), S("section",
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
title:
|
|
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")}`,
|
|
712
662
|
placement: "leftTop"
|
|
713
663
|
}, {
|
|
714
|
-
default:
|
|
715
|
-
|
|
664
|
+
default: i(() => [
|
|
665
|
+
g("span", {
|
|
716
666
|
class: "hb-lib-list-page-act-svg",
|
|
717
|
-
onClick:
|
|
718
|
-
(...b) =>
|
|
667
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
668
|
+
(...b) => s(F) && s(F)(...b))
|
|
719
669
|
}, [
|
|
720
|
-
|
|
721
|
-
|
|
670
|
+
s(r) ? (a(), S("svg", Mt, [...e[2] || (e[2] = [
|
|
671
|
+
g("path", {
|
|
722
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",
|
|
723
673
|
fill: "#ff5000",
|
|
724
674
|
"p-id": "23905"
|
|
725
675
|
}, null, -1),
|
|
726
|
-
|
|
676
|
+
g("path", {
|
|
727
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",
|
|
728
678
|
fill: "#ff5000",
|
|
729
679
|
"p-id": "23906"
|
|
730
680
|
}, null, -1),
|
|
731
|
-
|
|
681
|
+
g("path", {
|
|
732
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",
|
|
733
683
|
fill: "#ff5000",
|
|
734
684
|
"p-id": "23907"
|
|
735
685
|
}, null, -1)
|
|
736
|
-
])])) : (a(), S("svg",
|
|
737
|
-
|
|
686
|
+
])])) : (a(), S("svg", xt, [...e[1] || (e[1] = [
|
|
687
|
+
g("path", {
|
|
738
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",
|
|
739
689
|
fill: "#ff5000",
|
|
740
690
|
"p-id": "22886"
|
|
@@ -744,12 +694,12 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
744
694
|
]),
|
|
745
695
|
_: 1
|
|
746
696
|
}, 8, ["title"]),
|
|
747
|
-
|
|
697
|
+
V(u.$slots, "listAct", {}, void 0, !0)
|
|
748
698
|
])
|
|
749
699
|
]);
|
|
750
700
|
};
|
|
751
701
|
}
|
|
752
|
-
}),
|
|
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({
|
|
753
703
|
name: "HbLibListBtnsAct",
|
|
754
704
|
__name: "HbListBtns",
|
|
755
705
|
props: {
|
|
@@ -759,30 +709,30 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
759
709
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
760
710
|
},
|
|
761
711
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
762
|
-
setup(
|
|
763
|
-
const
|
|
764
|
-
|
|
712
|
+
setup(t, { emit: f }) {
|
|
713
|
+
const d = f, r = B(!0), F = () => {
|
|
714
|
+
r.value = !r.value, d("handleOpenOrClose", r.value);
|
|
765
715
|
}, p = () => {
|
|
766
|
-
|
|
716
|
+
d("handleReload");
|
|
767
717
|
};
|
|
768
|
-
return
|
|
769
|
-
}), (m,
|
|
770
|
-
const
|
|
771
|
-
return a(), S("section",
|
|
772
|
-
|
|
773
|
-
|
|
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)
|
|
774
724
|
]),
|
|
775
|
-
|
|
776
|
-
|
|
725
|
+
g("aside", Bt, [
|
|
726
|
+
t.needReload ? (a(), R(e, {
|
|
777
727
|
key: 0,
|
|
778
728
|
title: m.$t("hbLibComp.hbListBtnsAct.reload")
|
|
779
729
|
}, {
|
|
780
|
-
default:
|
|
781
|
-
|
|
730
|
+
default: i(() => [
|
|
731
|
+
g("span", {
|
|
782
732
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
783
733
|
onClick: p
|
|
784
|
-
}, [...
|
|
785
|
-
|
|
734
|
+
}, [...u[0] || (u[0] = [
|
|
735
|
+
g("svg", {
|
|
786
736
|
t: "1759041224819",
|
|
787
737
|
class: "icon",
|
|
788
738
|
viewBox: "0 0 1024 1024",
|
|
@@ -792,7 +742,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
792
742
|
width: "200",
|
|
793
743
|
height: "200"
|
|
794
744
|
}, [
|
|
795
|
-
|
|
745
|
+
g("path", {
|
|
796
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",
|
|
797
747
|
fill: "#ff5000",
|
|
798
748
|
"p-id": "4203"
|
|
@@ -801,93 +751,93 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
801
751
|
])])
|
|
802
752
|
]),
|
|
803
753
|
_: 1
|
|
804
|
-
}, 8, ["title"])) :
|
|
805
|
-
|
|
754
|
+
}, 8, ["title"])) : z("", !0),
|
|
755
|
+
t.needOpenOrClose ? (a(), R(e, {
|
|
806
756
|
key: 1,
|
|
807
|
-
title:
|
|
757
|
+
title: r.value ? `${m.$t("hbLibComp.hbListBtnsAct.close")}` : `${m.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
808
758
|
}, {
|
|
809
|
-
default:
|
|
810
|
-
|
|
759
|
+
default: i(() => [
|
|
760
|
+
g("span", {
|
|
811
761
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
812
|
-
onClick:
|
|
762
|
+
onClick: F
|
|
813
763
|
}, [
|
|
814
|
-
|
|
764
|
+
r.value ? (a(), R(s(it), {
|
|
815
765
|
key: 0,
|
|
816
766
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
817
|
-
})) : (a(),
|
|
767
|
+
})) : (a(), R(s(rt), {
|
|
818
768
|
key: 1,
|
|
819
769
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
820
770
|
}))
|
|
821
771
|
])
|
|
822
772
|
]),
|
|
823
773
|
_: 1
|
|
824
|
-
}, 8, ["title"])) :
|
|
825
|
-
|
|
774
|
+
}, 8, ["title"])) : z("", !0),
|
|
775
|
+
V(m.$slots, "btnsRight", {}, void 0, !0)
|
|
826
776
|
])
|
|
827
777
|
]);
|
|
828
778
|
};
|
|
829
779
|
}
|
|
830
|
-
}),
|
|
831
|
-
const { formRef: f, offsetBottom:
|
|
832
|
-
let p = null, m = null,
|
|
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;
|
|
833
783
|
const b = () => {
|
|
834
784
|
h && clearTimeout(h), h = setTimeout(() => {
|
|
835
785
|
requestAnimationFrame(() => {
|
|
836
|
-
|
|
837
|
-
const
|
|
838
|
-
if (
|
|
839
|
-
const
|
|
840
|
-
let
|
|
841
|
-
|
|
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;
|
|
842
792
|
}
|
|
843
793
|
});
|
|
844
794
|
});
|
|
845
795
|
}, 100);
|
|
846
|
-
},
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
849
|
-
const
|
|
796
|
+
}, A = () => {
|
|
797
|
+
const $ = document.querySelector(".ant-pagination");
|
|
798
|
+
if ($) {
|
|
799
|
+
const N = new MutationObserver(() => {
|
|
850
800
|
b();
|
|
851
801
|
});
|
|
852
|
-
return
|
|
802
|
+
return N.observe($, {
|
|
853
803
|
childList: !0,
|
|
854
804
|
subtree: !0,
|
|
855
805
|
attributes: !0,
|
|
856
806
|
attributeFilter: ["style", "class"]
|
|
857
|
-
}),
|
|
807
|
+
}), N;
|
|
858
808
|
}
|
|
859
809
|
return null;
|
|
860
810
|
}, D = () => {
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
864
|
-
|
|
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";
|
|
865
815
|
}), b();
|
|
866
|
-
}), p.observe(
|
|
867
|
-
},
|
|
868
|
-
const
|
|
869
|
-
|
|
816
|
+
}), p.observe($));
|
|
817
|
+
}, G = () => {
|
|
818
|
+
const $ = document.querySelector(".hb-lib-list-page-form-box");
|
|
819
|
+
$ && (u = new MutationObserver(() => {
|
|
870
820
|
setTimeout(() => {
|
|
871
821
|
b();
|
|
872
822
|
}, 100);
|
|
873
|
-
}),
|
|
823
|
+
}), u.observe($, {
|
|
874
824
|
childList: !0,
|
|
875
825
|
subtree: !0,
|
|
876
826
|
attributes: !0,
|
|
877
827
|
attributeFilter: ["style", "class"]
|
|
878
828
|
}));
|
|
879
|
-
},
|
|
880
|
-
|
|
829
|
+
}, _ = () => {
|
|
830
|
+
e && clearTimeout(e), e = setTimeout(() => {
|
|
881
831
|
b();
|
|
882
832
|
}, 100);
|
|
883
|
-
},
|
|
884
|
-
window.addEventListener("resize",
|
|
885
|
-
D(),
|
|
833
|
+
}, C = () => {
|
|
834
|
+
window.addEventListener("resize", _), ce(() => {
|
|
835
|
+
D(), G(), m = A();
|
|
886
836
|
});
|
|
887
|
-
},
|
|
888
|
-
window.removeEventListener("resize",
|
|
837
|
+
}, M = () => {
|
|
838
|
+
window.removeEventListener("resize", _), p && p.disconnect(), u && u.disconnect(), m && m.disconnect(), e && clearTimeout(e), h && clearTimeout(h);
|
|
889
839
|
};
|
|
890
|
-
return f &&
|
|
840
|
+
return f && oe(
|
|
891
841
|
() => f,
|
|
892
842
|
() => {
|
|
893
843
|
setTimeout(() => {
|
|
@@ -895,15 +845,15 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
895
845
|
}, 200);
|
|
896
846
|
},
|
|
897
847
|
{ deep: !0 }
|
|
898
|
-
),
|
|
899
|
-
b(),
|
|
900
|
-
}),
|
|
901
|
-
|
|
848
|
+
), Le(() => {
|
|
849
|
+
b(), C();
|
|
850
|
+
}), Qe(() => {
|
|
851
|
+
M();
|
|
902
852
|
}), {
|
|
903
|
-
tableHeight:
|
|
853
|
+
tableHeight: F,
|
|
904
854
|
calTableHeight: b
|
|
905
855
|
};
|
|
906
|
-
},
|
|
856
|
+
}, Et = /* @__PURE__ */ Z({
|
|
907
857
|
name: "HbLibListPageContainer",
|
|
908
858
|
__name: "HbListPageContainer",
|
|
909
859
|
props: {
|
|
@@ -912,51 +862,51 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
912
862
|
offsetBottom: {},
|
|
913
863
|
minHeight: {}
|
|
914
864
|
},
|
|
915
|
-
setup(
|
|
916
|
-
const f =
|
|
865
|
+
setup(t) {
|
|
866
|
+
const f = t, d = Ze("PageContainerRef"), { calTableHeight: r, tableHeight: F } = Nt({
|
|
917
867
|
offsetBottom: f.offsetBottom || 20,
|
|
918
868
|
// 底部预留空间
|
|
919
869
|
minHeight: f.minHeight || 300
|
|
920
870
|
// table最小高度 请勿随便修改!!
|
|
921
|
-
}), p =
|
|
922
|
-
return
|
|
923
|
-
PageContainerRef:
|
|
871
|
+
}), p = j(() => F.value);
|
|
872
|
+
return Xe("HB_LIST_PAGE_CONTAINER", {
|
|
873
|
+
PageContainerRef: d,
|
|
924
874
|
// 通过函数访问,
|
|
925
|
-
tableHeight:
|
|
926
|
-
calTableHeight:
|
|
927
|
-
}), (m,
|
|
875
|
+
tableHeight: F,
|
|
876
|
+
calTableHeight: r
|
|
877
|
+
}), (m, u) => (a(), S("section", {
|
|
928
878
|
class: "hb-lib-list-page-container",
|
|
929
879
|
ref_key: "PageContainerRef",
|
|
930
|
-
ref:
|
|
880
|
+
ref: d
|
|
931
881
|
}, [
|
|
932
|
-
|
|
933
|
-
|
|
882
|
+
V(m.$slots, "header"),
|
|
883
|
+
g("section", {
|
|
934
884
|
class: "list-page-box",
|
|
935
|
-
style:
|
|
885
|
+
style: be({
|
|
936
886
|
"--hb-list-table-height": p.value - 20 + "px",
|
|
937
|
-
"--hb-list-ttable-height":
|
|
887
|
+
"--hb-list-ttable-height": t.tabelData.length ? "" : p.value - 20 + "px"
|
|
938
888
|
})
|
|
939
889
|
}, [
|
|
940
|
-
|
|
890
|
+
V(m.$slots, "default")
|
|
941
891
|
], 4)
|
|
942
892
|
], 512));
|
|
943
893
|
}
|
|
944
|
-
}),
|
|
894
|
+
}), Vt = X(Et), Ut = { style: { "font-weight": "500" } }, Yt = {
|
|
945
895
|
key: 0,
|
|
946
896
|
class: "hb-lib-search-tag__description"
|
|
947
|
-
},
|
|
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 = {
|
|
948
898
|
key: 0,
|
|
949
899
|
class: "hb-lib-selector-empty"
|
|
950
|
-
},
|
|
900
|
+
}, Zt = {
|
|
951
901
|
key: 1,
|
|
952
902
|
class: "hb-lib-selector-footer"
|
|
953
|
-
},
|
|
903
|
+
}, Xt = { class: "hb-lib-footer-buttons" }, el = {
|
|
954
904
|
key: 2,
|
|
955
905
|
class: "hb-lib-selector-footer"
|
|
956
|
-
},
|
|
906
|
+
}, tl = { class: "hb-lib-footer-buttons" }, ll = /* @__PURE__ */ Z({
|
|
957
907
|
name: "HbLibListMultiSelect",
|
|
958
908
|
__name: "HbListMultiSelect",
|
|
959
|
-
props: /* @__PURE__ */
|
|
909
|
+
props: /* @__PURE__ */ we({
|
|
960
910
|
title: { default: "请选择" },
|
|
961
911
|
placeholder: { default: "点击选择" },
|
|
962
912
|
searchPlaceholder: { default: "搜索选项" },
|
|
@@ -973,183 +923,183 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
973
923
|
value: {},
|
|
974
924
|
valueModifiers: {}
|
|
975
925
|
}),
|
|
976
|
-
emits: /* @__PURE__ */
|
|
977
|
-
setup(
|
|
978
|
-
const
|
|
979
|
-
if (
|
|
926
|
+
emits: /* @__PURE__ */ we(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
927
|
+
setup(t, { emit: f }) {
|
|
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;
|
|
980
930
|
const l = m.value.toLowerCase();
|
|
981
|
-
return
|
|
982
|
-
}), b =
|
|
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(() => {
|
|
983
933
|
if (h.value.length === 0) return !1;
|
|
984
|
-
const l = h.value.filter((o) =>
|
|
934
|
+
const l = h.value.filter((o) => u.value.includes(o.value)).length;
|
|
985
935
|
return l > 0 && l < h.value.length;
|
|
986
936
|
});
|
|
987
|
-
|
|
988
|
-
() =>
|
|
937
|
+
oe(
|
|
938
|
+
() => F.value,
|
|
989
939
|
(l) => {
|
|
990
|
-
l ?
|
|
940
|
+
l ? u.value = Array.isArray(l) ? [...l] : [l] : u.value = [];
|
|
991
941
|
},
|
|
992
942
|
{ immediate: !0 }
|
|
993
|
-
),
|
|
994
|
-
() =>
|
|
943
|
+
), oe(
|
|
944
|
+
() => d.searchValue,
|
|
995
945
|
(l) => {
|
|
996
|
-
|
|
946
|
+
d.remoteSearch && l !== void 0 && (m.value = l);
|
|
997
947
|
},
|
|
998
948
|
{ immediate: !0 }
|
|
999
949
|
);
|
|
1000
|
-
const
|
|
1001
|
-
l && (p.value = l,
|
|
1002
|
-
if (
|
|
1003
|
-
const o =
|
|
950
|
+
const G = (l) => {
|
|
951
|
+
l && (p.value = l, _.value = [...u.value], m.value = "", setTimeout(() => {
|
|
952
|
+
if (e.value) {
|
|
953
|
+
const o = e.value.input || e.value.$el?.querySelector("input");
|
|
1004
954
|
o && o.focus();
|
|
1005
955
|
}
|
|
1006
956
|
}, 100));
|
|
1007
|
-
},
|
|
1008
|
-
|
|
1009
|
-
},
|
|
1010
|
-
const l =
|
|
1011
|
-
|
|
1012
|
-
},
|
|
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) => {
|
|
1013
963
|
const o = l !== void 0 ? l : m.value;
|
|
1014
|
-
|
|
1015
|
-
}, 300),
|
|
1016
|
-
if (
|
|
1017
|
-
const o = new Set(
|
|
1018
|
-
o.has(l.value) ? o.delete(l.value) : o.add(l.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);
|
|
1019
969
|
} else
|
|
1020
|
-
|
|
1021
|
-
},
|
|
970
|
+
u.value = [l.value], $();
|
|
971
|
+
}, T = (l) => {
|
|
1022
972
|
if (l.target.checked) {
|
|
1023
|
-
const
|
|
973
|
+
const c = new Set(u.value);
|
|
1024
974
|
h.value.forEach((L) => {
|
|
1025
|
-
|
|
1026
|
-
}),
|
|
975
|
+
c.add(L.value);
|
|
976
|
+
}), u.value = Array.from(c);
|
|
1027
977
|
} else {
|
|
1028
|
-
const
|
|
1029
|
-
|
|
978
|
+
const c = new Set(h.value.map((L) => L.value));
|
|
979
|
+
u.value = u.value.filter((L) => !c.has(L));
|
|
1030
980
|
}
|
|
1031
981
|
};
|
|
1032
982
|
return (l, o) => {
|
|
1033
|
-
const
|
|
1034
|
-
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({
|
|
1035
985
|
class: "hb-lib-selector-wrapper",
|
|
1036
986
|
style: { "--prefix-width": b.value }
|
|
1037
987
|
}, l.$attrs), [
|
|
1038
|
-
|
|
1039
|
-
value:
|
|
1040
|
-
"onUpdate:value": o[5] || (o[5] = (
|
|
1041
|
-
mode:
|
|
1042
|
-
placeholder:
|
|
988
|
+
w(ee, {
|
|
989
|
+
value: F.value,
|
|
990
|
+
"onUpdate:value": o[5] || (o[5] = (W) => F.value = W),
|
|
991
|
+
mode: t.multiple ? "multiple" : void 0,
|
|
992
|
+
placeholder: t.placeholder,
|
|
1043
993
|
"show-search": !0,
|
|
1044
994
|
"filter-option": !1,
|
|
1045
995
|
open: p.value,
|
|
1046
996
|
allowClear: "",
|
|
1047
|
-
maxTagCount:
|
|
997
|
+
maxTagCount: t.maxTagCount,
|
|
1048
998
|
options: h.value,
|
|
1049
|
-
onDropdownVisibleChange:
|
|
1050
|
-
onSearch:
|
|
1051
|
-
"max-tag-text-length":
|
|
1052
|
-
class: E({ "has-prefix":
|
|
1053
|
-
"data-prefix":
|
|
999
|
+
onDropdownVisibleChange: G,
|
|
1000
|
+
onSearch: s(N),
|
|
1001
|
+
"max-tag-text-length": t.tagTextLength,
|
|
1002
|
+
class: E({ "has-prefix": t.prefix }),
|
|
1003
|
+
"data-prefix": t.prefix,
|
|
1054
1004
|
style: { width: "100%" }
|
|
1055
1005
|
}, {
|
|
1056
|
-
tagRender:
|
|
1057
|
-
|
|
1006
|
+
tagRender: i(({ value: W, label: v, closable: I, option: y }) => [
|
|
1007
|
+
w(c, {
|
|
1058
1008
|
class: "hb-lib-search-tag",
|
|
1059
|
-
onClick: o[0] || (o[0] = () =>
|
|
1009
|
+
onClick: o[0] || (o[0] = () => G(!0))
|
|
1060
1010
|
}, {
|
|
1061
|
-
default:
|
|
1062
|
-
|
|
1063
|
-
|
|
1011
|
+
default: i(() => [
|
|
1012
|
+
g("span", Ut, k(v), 1),
|
|
1013
|
+
y?.description ? (a(), S("span", Yt, " (" + k(y.description) + ") ", 1)) : z("", !0)
|
|
1064
1014
|
]),
|
|
1065
1015
|
_: 2
|
|
1066
1016
|
}, 1024)
|
|
1067
1017
|
]),
|
|
1068
|
-
dropdownRender:
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1018
|
+
dropdownRender: i(({ menuNode: W }) => [
|
|
1019
|
+
g("div", jt, [
|
|
1020
|
+
g("div", qt, [
|
|
1021
|
+
w(L, {
|
|
1072
1022
|
ref_key: "searchInputRef",
|
|
1073
|
-
ref:
|
|
1023
|
+
ref: e,
|
|
1074
1024
|
class: "hb-lib-selector-search-input",
|
|
1075
1025
|
value: m.value,
|
|
1076
|
-
"onUpdate:value": o[1] || (o[1] = (
|
|
1026
|
+
"onUpdate:value": o[1] || (o[1] = (v) => m.value = v),
|
|
1077
1027
|
placeholder: "请输入关键词搜索",
|
|
1078
1028
|
"allow-clear": "",
|
|
1079
|
-
onInput: o[2] || (o[2] = (
|
|
1029
|
+
onInput: o[2] || (o[2] = (v) => s(N)(v.target.value))
|
|
1080
1030
|
}, {
|
|
1081
|
-
prefix:
|
|
1082
|
-
|
|
1031
|
+
prefix: i(() => [
|
|
1032
|
+
w(s(ke))
|
|
1083
1033
|
]),
|
|
1084
1034
|
_: 1
|
|
1085
1035
|
}, 8, ["value"])
|
|
1086
1036
|
]),
|
|
1087
|
-
|
|
1088
|
-
(a(!0), S(
|
|
1089
|
-
key:
|
|
1090
|
-
class: E(["hb-lib-selector-option", { selected:
|
|
1091
|
-
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)
|
|
1092
1042
|
}, [
|
|
1093
|
-
|
|
1043
|
+
t.multiple ? (a(), R(n, {
|
|
1094
1044
|
key: 0,
|
|
1095
|
-
checked:
|
|
1096
|
-
onChange: () =>
|
|
1097
|
-
onClick: o[3] || (o[3] =
|
|
1045
|
+
checked: u.value.includes(v.value),
|
|
1046
|
+
onChange: () => x(v),
|
|
1047
|
+
onClick: o[3] || (o[3] = ve(() => {
|
|
1098
1048
|
}, ["stop"]))
|
|
1099
|
-
}, null, 8, ["checked", "onChange"])) : (a(),
|
|
1049
|
+
}, null, 8, ["checked", "onChange"])) : (a(), R(Y, {
|
|
1100
1050
|
key: 1,
|
|
1101
|
-
checked:
|
|
1102
|
-
onChange: () =>
|
|
1103
|
-
onClick: o[4] || (o[4] =
|
|
1051
|
+
checked: u.value.includes(v.value),
|
|
1052
|
+
onChange: () => x(v),
|
|
1053
|
+
onClick: o[4] || (o[4] = ve(() => {
|
|
1104
1054
|
}, ["stop"]))
|
|
1105
1055
|
}, null, 8, ["checked", "onChange"])),
|
|
1106
|
-
|
|
1107
|
-
|
|
1056
|
+
g("div", Jt, [
|
|
1057
|
+
g("div", Gt, k(v.label), 1)
|
|
1108
1058
|
])
|
|
1109
|
-
], 10,
|
|
1059
|
+
], 10, Wt))), 128))
|
|
1110
1060
|
]),
|
|
1111
|
-
h.value.length === 0 ? (a(), S("div",
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
checked:
|
|
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,
|
|
1115
1065
|
indeterminate: D.value,
|
|
1116
|
-
onChange:
|
|
1066
|
+
onChange: T
|
|
1117
1067
|
}, {
|
|
1118
|
-
default:
|
|
1119
|
-
|
|
1068
|
+
default: i(() => [
|
|
1069
|
+
H(k(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1120
1070
|
]),
|
|
1121
1071
|
_: 1
|
|
1122
1072
|
}, 8, ["checked", "indeterminate"]),
|
|
1123
|
-
|
|
1124
|
-
|
|
1073
|
+
g("div", Xt, [
|
|
1074
|
+
w(P, {
|
|
1125
1075
|
size: "small",
|
|
1126
|
-
onClick:
|
|
1076
|
+
onClick: C
|
|
1127
1077
|
}, {
|
|
1128
|
-
default:
|
|
1129
|
-
|
|
1078
|
+
default: i(() => [
|
|
1079
|
+
H(k(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1130
1080
|
]),
|
|
1131
1081
|
_: 1
|
|
1132
1082
|
}),
|
|
1133
|
-
|
|
1083
|
+
w(P, {
|
|
1134
1084
|
type: "primary",
|
|
1135
1085
|
size: "small",
|
|
1136
|
-
onClick:
|
|
1086
|
+
onClick: $
|
|
1137
1087
|
}, {
|
|
1138
|
-
default:
|
|
1139
|
-
|
|
1088
|
+
default: i(() => [
|
|
1089
|
+
H(k(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1140
1090
|
]),
|
|
1141
1091
|
_: 1
|
|
1142
1092
|
})
|
|
1143
1093
|
])
|
|
1144
|
-
])) : (a(), S("div",
|
|
1145
|
-
o[6] || (o[6] =
|
|
1146
|
-
|
|
1147
|
-
|
|
1094
|
+
])) : (a(), S("div", el, [
|
|
1095
|
+
o[6] || (o[6] = g("div", null, null, -1)),
|
|
1096
|
+
g("div", tl, [
|
|
1097
|
+
w(P, {
|
|
1148
1098
|
size: "small",
|
|
1149
|
-
onClick:
|
|
1099
|
+
onClick: C
|
|
1150
1100
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
|
|
1101
|
+
default: i(() => [
|
|
1102
|
+
H(k(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1153
1103
|
]),
|
|
1154
1104
|
_: 1
|
|
1155
1105
|
})
|
|
@@ -1162,7 +1112,7 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1162
1112
|
], 16);
|
|
1163
1113
|
};
|
|
1164
1114
|
}
|
|
1165
|
-
}),
|
|
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({
|
|
1166
1116
|
name: "HbLibMutilpleSelectModal",
|
|
1167
1117
|
__name: "HbMutilpleSelectModal",
|
|
1168
1118
|
props: {
|
|
@@ -1175,149 +1125,149 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1175
1125
|
labelKey: { default: "label" }
|
|
1176
1126
|
},
|
|
1177
1127
|
emits: ["handleConfirm", "handleCancel"],
|
|
1178
|
-
setup(
|
|
1179
|
-
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({
|
|
1180
1130
|
searchText: "",
|
|
1181
1131
|
searchedColumn: ""
|
|
1182
|
-
}),
|
|
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) => {
|
|
1183
1133
|
L && setTimeout(() => {
|
|
1184
|
-
|
|
1134
|
+
u.value?.focus();
|
|
1185
1135
|
}, 100);
|
|
1186
|
-
}), { ...
|
|
1187
|
-
let
|
|
1136
|
+
}), { ...c }))), C = () => {
|
|
1137
|
+
let c = "";
|
|
1188
1138
|
b.value.forEach((L) => {
|
|
1189
|
-
|
|
1190
|
-
}), m.value =
|
|
1191
|
-
},
|
|
1139
|
+
c = c + L[r.labelKey] + ",";
|
|
1140
|
+
}), m.value = c.substring(0, c.length - 1), p.value = !1, F("handleConfirm", b.value);
|
|
1141
|
+
}, M = () => {
|
|
1192
1142
|
p.value = !1;
|
|
1193
|
-
},
|
|
1194
|
-
p.value = !0,
|
|
1195
|
-
const
|
|
1196
|
-
|
|
1143
|
+
}, $ = () => {
|
|
1144
|
+
p.value = !0, ce(() => {
|
|
1145
|
+
const c = A.value?.$el?.querySelector(".ant-table-body");
|
|
1146
|
+
c && (c.scrollTop = 0);
|
|
1197
1147
|
});
|
|
1198
|
-
},
|
|
1148
|
+
}, N = () => {
|
|
1199
1149
|
h.value = [], b.value = [];
|
|
1200
|
-
},
|
|
1201
|
-
m.value = "",
|
|
1202
|
-
},
|
|
1203
|
-
L(), D.searchText =
|
|
1204
|
-
}, l = (
|
|
1205
|
-
|
|
1206
|
-
}, o = (
|
|
1207
|
-
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;
|
|
1208
1158
|
};
|
|
1209
1159
|
return f({
|
|
1210
|
-
resetInputVal:
|
|
1211
|
-
}), (
|
|
1212
|
-
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");
|
|
1213
1163
|
return a(), S("div", {
|
|
1214
1164
|
class: "hb-lib-multipleSelectModal-box",
|
|
1215
1165
|
ref_key: "hbMultipSelectModalRef",
|
|
1216
|
-
ref:
|
|
1166
|
+
ref: e
|
|
1217
1167
|
}, [
|
|
1218
|
-
|
|
1168
|
+
w(n, {
|
|
1219
1169
|
readonly: "",
|
|
1220
|
-
onClick:
|
|
1170
|
+
onClick: $,
|
|
1221
1171
|
value: m.value,
|
|
1222
|
-
"onUpdate:value": L[0] || (L[0] = (
|
|
1223
|
-
placeholder:
|
|
1172
|
+
"onUpdate:value": L[0] || (L[0] = (W) => m.value = W),
|
|
1173
|
+
placeholder: c.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1224
1174
|
}, {
|
|
1225
|
-
addonAfter:
|
|
1226
|
-
|
|
1175
|
+
addonAfter: i(() => [
|
|
1176
|
+
w(s(ct), { onClick: $ })
|
|
1227
1177
|
]),
|
|
1228
1178
|
_: 1
|
|
1229
1179
|
}, 8, ["value", "placeholder"]),
|
|
1230
|
-
|
|
1180
|
+
w(ee, {
|
|
1231
1181
|
visible: p.value,
|
|
1232
|
-
"onUpdate:visible": L[1] || (L[1] = (
|
|
1233
|
-
title:
|
|
1234
|
-
width:
|
|
1182
|
+
"onUpdate:visible": L[1] || (L[1] = (W) => p.value = W),
|
|
1183
|
+
title: t.modelTitle,
|
|
1184
|
+
width: t.modalWidth,
|
|
1235
1185
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1236
1186
|
}, {
|
|
1237
|
-
footer:
|
|
1238
|
-
|
|
1239
|
-
default:
|
|
1240
|
-
|
|
1187
|
+
footer: i(() => [
|
|
1188
|
+
w(Y, { onClick: N }, {
|
|
1189
|
+
default: i(() => [
|
|
1190
|
+
H(k(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1241
1191
|
]),
|
|
1242
1192
|
_: 1
|
|
1243
1193
|
}),
|
|
1244
|
-
|
|
1245
|
-
default:
|
|
1246
|
-
|
|
1194
|
+
w(Y, { onClick: M }, {
|
|
1195
|
+
default: i(() => [
|
|
1196
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1247
1197
|
]),
|
|
1248
1198
|
_: 1
|
|
1249
1199
|
}),
|
|
1250
|
-
|
|
1200
|
+
w(Y, {
|
|
1251
1201
|
type: "primary",
|
|
1252
|
-
onClick:
|
|
1202
|
+
onClick: C
|
|
1253
1203
|
}, {
|
|
1254
|
-
default:
|
|
1255
|
-
|
|
1204
|
+
default: i(() => [
|
|
1205
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1256
1206
|
]),
|
|
1257
1207
|
_: 1
|
|
1258
1208
|
})
|
|
1259
1209
|
]),
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1210
|
+
default: i(() => [
|
|
1211
|
+
w(P, {
|
|
1262
1212
|
ref_key: "tableRef",
|
|
1263
|
-
ref:
|
|
1264
|
-
columns:
|
|
1265
|
-
dataSource:
|
|
1213
|
+
ref: A,
|
|
1214
|
+
columns: _.value,
|
|
1215
|
+
dataSource: G.value,
|
|
1266
1216
|
rowSelection: { selectedRowKeys: h.value, onChange: o },
|
|
1267
|
-
rowKey: (
|
|
1268
|
-
scroll: { y:
|
|
1217
|
+
rowKey: (W) => W[t.tableKey],
|
|
1218
|
+
scroll: { y: t.tableHeight }
|
|
1269
1219
|
}, {
|
|
1270
|
-
customFilterDropdown:
|
|
1271
|
-
|
|
1272
|
-
|
|
1220
|
+
customFilterDropdown: i(({ setSelectedKeys: W, selectedKeys: v, confirm: I, clearFilters: y, column: q }) => [
|
|
1221
|
+
g("div", nl, [
|
|
1222
|
+
w(n, {
|
|
1273
1223
|
ref_key: "searchInput",
|
|
1274
|
-
ref:
|
|
1275
|
-
placeholder: `请输入${
|
|
1276
|
-
value:
|
|
1224
|
+
ref: u,
|
|
1225
|
+
placeholder: `请输入${q.title}`,
|
|
1226
|
+
value: v[0],
|
|
1277
1227
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1278
|
-
onChange: (
|
|
1279
|
-
onPressEnter: (
|
|
1228
|
+
onChange: (K) => W(K.target.value ? [K.target.value] : []),
|
|
1229
|
+
onPressEnter: (K) => T(v, I, q.dataIndex)
|
|
1280
1230
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1281
|
-
|
|
1282
|
-
|
|
1231
|
+
g("section", sl, [
|
|
1232
|
+
w(Y, {
|
|
1283
1233
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1284
1234
|
type: "ghost",
|
|
1285
|
-
onClick: (
|
|
1235
|
+
onClick: (K) => l(y, I)
|
|
1286
1236
|
}, {
|
|
1287
|
-
default:
|
|
1288
|
-
|
|
1237
|
+
default: i(() => [
|
|
1238
|
+
H(k(c.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1289
1239
|
]),
|
|
1290
1240
|
_: 1
|
|
1291
1241
|
}, 8, ["onClick"]),
|
|
1292
|
-
|
|
1242
|
+
w(Y, {
|
|
1293
1243
|
type: "primary",
|
|
1294
1244
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1295
|
-
onClick: (
|
|
1245
|
+
onClick: (K) => T(v, I, q.dataIndex)
|
|
1296
1246
|
}, {
|
|
1297
|
-
default:
|
|
1298
|
-
|
|
1247
|
+
default: i(() => [
|
|
1248
|
+
H(k(c.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1299
1249
|
]),
|
|
1300
1250
|
_: 1
|
|
1301
1251
|
}, 8, ["onClick"])
|
|
1302
1252
|
])
|
|
1303
1253
|
])
|
|
1304
1254
|
]),
|
|
1305
|
-
customFilterIcon:
|
|
1306
|
-
|
|
1307
|
-
style:
|
|
1255
|
+
customFilterIcon: i(({ filtered: W }) => [
|
|
1256
|
+
w(s(ke), {
|
|
1257
|
+
style: be({ color: W ? "#108ee9" : void 0 })
|
|
1308
1258
|
}, null, 8, ["style"])
|
|
1309
1259
|
]),
|
|
1310
|
-
bodyCell:
|
|
1311
|
-
D.searchText && D.searchedColumn ===
|
|
1312
|
-
(a(!0), S(
|
|
1313
|
-
|
|
1314
|
-
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,
|
|
1315
1265
|
class: "highlight"
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1266
|
+
}, k(I), 1)) : (a(), S(J, { key: 1 }, [
|
|
1267
|
+
H(k(I), 1)
|
|
1318
1268
|
], 64))
|
|
1319
1269
|
], 64))), 256))
|
|
1320
|
-
])) :
|
|
1270
|
+
])) : z("", !0)
|
|
1321
1271
|
]),
|
|
1322
1272
|
_: 1
|
|
1323
1273
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1327,13 +1277,13 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1327
1277
|
], 512);
|
|
1328
1278
|
};
|
|
1329
1279
|
}
|
|
1330
|
-
}),
|
|
1280
|
+
}), cl = X(rl), dl = { class: "hb-lib-table-act-box" }, ul = ["onClick"], hl = {
|
|
1331
1281
|
href: "javascript:;",
|
|
1332
1282
|
class: "hb-lib-table-main-action"
|
|
1333
|
-
},
|
|
1283
|
+
}, bl = ["onClick"], fl = {
|
|
1334
1284
|
href: "javascript:;",
|
|
1335
1285
|
class: "hb-lib-table-more-action"
|
|
1336
|
-
},
|
|
1286
|
+
}, ml = ["onClick"], pl = { href: "javascript:;" }, vl = ["onClick"], gl = { class: "hb-lib-table-confirm-modal-content" }, yl = /* @__PURE__ */ Z({
|
|
1337
1287
|
name: "HbLibTableAct",
|
|
1338
1288
|
__name: "HbTableAct",
|
|
1339
1289
|
props: {
|
|
@@ -1341,119 +1291,119 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1341
1291
|
record: {},
|
|
1342
1292
|
buttonDisplaysQuantity: {}
|
|
1343
1293
|
},
|
|
1344
|
-
setup(
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
m.value =
|
|
1294
|
+
setup(t, { expose: f }) {
|
|
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;
|
|
1349
1299
|
}, D = () => {
|
|
1350
1300
|
if (m.value) {
|
|
1351
1301
|
p.value = !0;
|
|
1352
1302
|
try {
|
|
1353
|
-
b(m.value), p.value = !1,
|
|
1303
|
+
b(m.value), p.value = !1, F.value = !1;
|
|
1354
1304
|
} catch {
|
|
1355
1305
|
p.value = !1;
|
|
1356
1306
|
}
|
|
1357
1307
|
}
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1360
|
-
},
|
|
1308
|
+
}, G = () => {
|
|
1309
|
+
F.value = !1, m.value = null;
|
|
1310
|
+
}, _ = j(() => m.value ? {
|
|
1361
1311
|
title: m.value.confirmTitle,
|
|
1362
1312
|
content: m.value.confirmContent || m.value.confirmTitle
|
|
1363
1313
|
} : {
|
|
1364
|
-
title:
|
|
1365
|
-
content:
|
|
1314
|
+
title: r("hbLibComp.hbTableAct.secendConfirm"),
|
|
1315
|
+
content: r("hbLibComp.hbTableAct.confirmContent")
|
|
1366
1316
|
});
|
|
1367
1317
|
return f({
|
|
1368
|
-
ADropdown:
|
|
1369
|
-
AMenu:
|
|
1370
|
-
AMenuItem:
|
|
1371
|
-
APopconfirm:
|
|
1372
|
-
AModal:
|
|
1373
|
-
DownOutlined:
|
|
1374
|
-
}), (
|
|
1375
|
-
const
|
|
1376
|
-
return a(), S("div",
|
|
1377
|
-
(a(!0), S(
|
|
1378
|
-
|
|
1379
|
-
|
|
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", {
|
|
1380
1330
|
key: 0,
|
|
1381
1331
|
href: "javascript:;",
|
|
1382
|
-
onClick: (l) =>
|
|
1332
|
+
onClick: (l) => A(x),
|
|
1383
1333
|
class: "hb-lib-table-main-action"
|
|
1384
1334
|
}, [
|
|
1385
|
-
|
|
1386
|
-
], 8,
|
|
1387
|
-
[
|
|
1388
|
-
]) : (a(),
|
|
1335
|
+
H(k(x.label), 1)
|
|
1336
|
+
], 8, ul)), [
|
|
1337
|
+
[N, x.permissionsTag || null]
|
|
1338
|
+
]) : (a(), R(s(me), {
|
|
1389
1339
|
key: 1,
|
|
1390
|
-
title:
|
|
1391
|
-
onConfirm: (l) => b(
|
|
1340
|
+
title: x.confirmTitle,
|
|
1341
|
+
onConfirm: (l) => b(x)
|
|
1392
1342
|
}, {
|
|
1393
|
-
default:
|
|
1394
|
-
|
|
1395
|
-
|
|
1343
|
+
default: i(() => [
|
|
1344
|
+
ne((a(), S("a", hl, [
|
|
1345
|
+
H(k(x.label), 1)
|
|
1396
1346
|
])), [
|
|
1397
|
-
[
|
|
1347
|
+
[N, x.permissionsTag || null]
|
|
1398
1348
|
])
|
|
1399
1349
|
]),
|
|
1400
1350
|
_: 2
|
|
1401
1351
|
}, 1032, ["title", "onConfirm"]))
|
|
1402
|
-
], 64)) : (a(), S(
|
|
1403
|
-
|
|
1352
|
+
], 64)) : (a(), S(J, { key: 1 }, [
|
|
1353
|
+
ne((a(), S("a", {
|
|
1404
1354
|
href: "javascript:;",
|
|
1405
|
-
onClick: (l) => b(
|
|
1355
|
+
onClick: (l) => b(x),
|
|
1406
1356
|
class: "hb-lib-table-main-action"
|
|
1407
1357
|
}, [
|
|
1408
|
-
|
|
1409
|
-
], 8,
|
|
1410
|
-
[
|
|
1358
|
+
H(k(x.label), 1)
|
|
1359
|
+
], 8, bl)), [
|
|
1360
|
+
[N, x.permissionsTag || null]
|
|
1411
1361
|
]),
|
|
1412
|
-
h.value && h.value.length > 0 ||
|
|
1362
|
+
h.value && h.value.length > 0 || T !== e.value.length - 1 ? (a(), R($, {
|
|
1413
1363
|
key: 0,
|
|
1414
1364
|
type: "vertical"
|
|
1415
|
-
})) :
|
|
1365
|
+
})) : z("", !0)
|
|
1416
1366
|
], 64))
|
|
1417
1367
|
], 64))), 128)),
|
|
1418
|
-
h.value && h.value.length > 0 ? (a(),
|
|
1419
|
-
overlay:
|
|
1420
|
-
|
|
1421
|
-
default:
|
|
1422
|
-
(a(!0), S(
|
|
1423
|
-
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
|
|
1424
1374
|
}, {
|
|
1425
|
-
default:
|
|
1426
|
-
|
|
1427
|
-
|
|
1375
|
+
default: i(() => [
|
|
1376
|
+
x.needConfirm ? (a(), S(J, { key: 0 }, [
|
|
1377
|
+
x.confirmType === "modal" ? ne((a(), S("a", {
|
|
1428
1378
|
key: 0,
|
|
1429
1379
|
href: "javascript:;",
|
|
1430
|
-
onClick: (
|
|
1380
|
+
onClick: (T) => A(x)
|
|
1431
1381
|
}, [
|
|
1432
|
-
|
|
1433
|
-
], 8,
|
|
1434
|
-
[
|
|
1435
|
-
]) : (a(),
|
|
1382
|
+
H(k(x.label), 1)
|
|
1383
|
+
], 8, ml)), [
|
|
1384
|
+
[N, x.permissionsTag || null]
|
|
1385
|
+
]) : (a(), R(s(me), {
|
|
1436
1386
|
key: 1,
|
|
1437
|
-
title:
|
|
1438
|
-
onConfirm: (
|
|
1387
|
+
title: x.confirmTitle,
|
|
1388
|
+
onConfirm: (T) => b(x)
|
|
1439
1389
|
}, {
|
|
1440
|
-
default:
|
|
1441
|
-
|
|
1442
|
-
|
|
1390
|
+
default: i(() => [
|
|
1391
|
+
ne((a(), S("a", pl, [
|
|
1392
|
+
H(k(x.label), 1)
|
|
1443
1393
|
])), [
|
|
1444
|
-
[
|
|
1394
|
+
[N, x.permissionsTag || null]
|
|
1445
1395
|
])
|
|
1446
1396
|
]),
|
|
1447
1397
|
_: 2
|
|
1448
1398
|
}, 1032, ["title", "onConfirm"]))
|
|
1449
|
-
], 64)) :
|
|
1399
|
+
], 64)) : ne((a(), S("a", {
|
|
1450
1400
|
key: 1,
|
|
1451
1401
|
href: "javascript:;",
|
|
1452
|
-
onClick: (
|
|
1402
|
+
onClick: (T) => b(x)
|
|
1453
1403
|
}, [
|
|
1454
|
-
|
|
1455
|
-
], 8,
|
|
1456
|
-
[
|
|
1404
|
+
H(k(x.label), 1)
|
|
1405
|
+
], 8, vl)), [
|
|
1406
|
+
[N, x.permissionsTag || null]
|
|
1457
1407
|
])
|
|
1458
1408
|
]),
|
|
1459
1409
|
_: 2
|
|
@@ -1462,36 +1412,36 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1462
1412
|
_: 1
|
|
1463
1413
|
})
|
|
1464
1414
|
]),
|
|
1465
|
-
default:
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
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" } })
|
|
1469
1419
|
])
|
|
1470
1420
|
]),
|
|
1471
1421
|
_: 1
|
|
1472
|
-
})) :
|
|
1473
|
-
|
|
1474
|
-
visible:
|
|
1475
|
-
title:
|
|
1422
|
+
})) : z("", !0),
|
|
1423
|
+
w(s(ge), {
|
|
1424
|
+
visible: F.value,
|
|
1425
|
+
title: _.value.title,
|
|
1476
1426
|
"confirm-loading": p.value,
|
|
1477
1427
|
onOk: D,
|
|
1478
|
-
onCancel:
|
|
1428
|
+
onCancel: G
|
|
1479
1429
|
}, {
|
|
1480
|
-
default:
|
|
1481
|
-
|
|
1430
|
+
default: i(() => [
|
|
1431
|
+
g("p", gl, k(_.value.content), 1)
|
|
1482
1432
|
]),
|
|
1483
1433
|
_: 1
|
|
1484
1434
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1485
1435
|
]);
|
|
1486
1436
|
};
|
|
1487
1437
|
}
|
|
1488
|
-
}),
|
|
1489
|
-
const
|
|
1490
|
-
return !
|
|
1491
|
-
}) }),
|
|
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 = {
|
|
1492
1442
|
key: 0,
|
|
1493
1443
|
class: "hb-lib-list-table-act"
|
|
1494
|
-
},
|
|
1444
|
+
}, Sl = { class: "empty-container" }, wl = /* @__PURE__ */ Z({
|
|
1495
1445
|
name: "HbLibListTable",
|
|
1496
1446
|
__name: "HbListTable",
|
|
1497
1447
|
props: {
|
|
@@ -1501,21 +1451,21 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1501
1451
|
defaultWidth: { default: () => 150 },
|
|
1502
1452
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1503
1453
|
},
|
|
1504
|
-
setup(
|
|
1505
|
-
const { t: f } =
|
|
1506
|
-
|
|
1507
|
-
() =>
|
|
1508
|
-
(
|
|
1509
|
-
const h =
|
|
1510
|
-
|
|
1511
|
-
let
|
|
1512
|
-
if (
|
|
1513
|
-
|
|
1514
|
-
else if (typeof
|
|
1515
|
-
const D = parseInt(
|
|
1516
|
-
|
|
1454
|
+
setup(t) {
|
|
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,
|
|
1458
|
+
(e) => {
|
|
1459
|
+
const h = e.filter((b) => b != null && b.checked);
|
|
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;
|
|
1517
1467
|
}
|
|
1518
|
-
return
|
|
1468
|
+
return A.resizable === void 0 && (A.resizable = !0), A;
|
|
1519
1469
|
});
|
|
1520
1470
|
},
|
|
1521
1471
|
{
|
|
@@ -1523,173 +1473,173 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1523
1473
|
deep: !0
|
|
1524
1474
|
}
|
|
1525
1475
|
);
|
|
1526
|
-
const m = (
|
|
1476
|
+
const m = (e, h) => {
|
|
1527
1477
|
if (h) {
|
|
1528
|
-
const b = typeof
|
|
1478
|
+
const b = typeof e == "string" ? parseInt(e, 10) : e;
|
|
1529
1479
|
h.width = isNaN(b) ? 150 : b;
|
|
1530
1480
|
}
|
|
1531
|
-
},
|
|
1532
|
-
return (
|
|
1533
|
-
const b =
|
|
1481
|
+
}, u = (e, h = "YYYY-MM-DD HH:mm:ss") => e ? _e(e).format(h) : "";
|
|
1482
|
+
return (e, h) => {
|
|
1483
|
+
const b = U("a-empty"), A = U("a-tooltip"), D = U("HbLibCopy"), G = U("a-table");
|
|
1534
1484
|
return a(), S("div", {
|
|
1535
|
-
class: E(["hb-lib-list-table", { "nowrap-table":
|
|
1536
|
-
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" || "" })
|
|
1537
1487
|
}, [
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
])) :
|
|
1542
|
-
|
|
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, {
|
|
1543
1493
|
bordered: "",
|
|
1544
|
-
columns:
|
|
1494
|
+
columns: r.value,
|
|
1545
1495
|
onResizeColumn: m,
|
|
1546
1496
|
scroll: {
|
|
1547
|
-
x:
|
|
1548
|
-
y:
|
|
1497
|
+
x: s(p),
|
|
1498
|
+
y: s(F).tableHeight
|
|
1549
1499
|
}
|
|
1550
|
-
}),
|
|
1551
|
-
emptyText:
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
description:
|
|
1500
|
+
}), je({
|
|
1501
|
+
emptyText: i(() => [
|
|
1502
|
+
g("div", Sl, [
|
|
1503
|
+
w(b, {
|
|
1504
|
+
description: s(f)("hbLibComp.hbListTable.noData")
|
|
1555
1505
|
}, null, 8, ["description"])
|
|
1556
1506
|
])
|
|
1557
1507
|
]),
|
|
1558
1508
|
_: 2
|
|
1559
1509
|
}, [
|
|
1560
|
-
|
|
1510
|
+
e.$slots.headerCell ? {
|
|
1561
1511
|
name: "headerCell",
|
|
1562
|
-
fn:
|
|
1563
|
-
|
|
1564
|
-
|
|
1512
|
+
fn: i(({ column: _ }) => [
|
|
1513
|
+
V(e.$slots, "headerCell", { column: _ }, () => [
|
|
1514
|
+
H(k(_.title), 1)
|
|
1565
1515
|
], !0)
|
|
1566
1516
|
]),
|
|
1567
1517
|
key: "0"
|
|
1568
1518
|
} : void 0,
|
|
1569
|
-
|
|
1519
|
+
e.$slots.bodyCell ? {
|
|
1570
1520
|
name: "bodyCell",
|
|
1571
|
-
fn:
|
|
1572
|
-
|
|
1573
|
-
column:
|
|
1574
|
-
record:
|
|
1575
|
-
index:
|
|
1576
|
-
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: $
|
|
1577
1527
|
}, void 0, !0),
|
|
1578
|
-
|
|
1528
|
+
_ && _.needTooltip ? (a(), R(A, {
|
|
1579
1529
|
key: 0,
|
|
1580
|
-
placement:
|
|
1530
|
+
placement: t.tooltipPlacement
|
|
1581
1531
|
}, {
|
|
1582
|
-
title:
|
|
1583
|
-
|
|
1532
|
+
title: i(() => [
|
|
1533
|
+
H(k(C[_.dataIndex]), 1)
|
|
1584
1534
|
]),
|
|
1585
|
-
default:
|
|
1586
|
-
|
|
1535
|
+
default: i(() => [
|
|
1536
|
+
H(" " + k(C[_.dataIndex]), 1)
|
|
1587
1537
|
]),
|
|
1588
1538
|
_: 2
|
|
1589
|
-
}, 1032, ["placement"])) :
|
|
1590
|
-
|
|
1539
|
+
}, 1032, ["placement"])) : z("", !0),
|
|
1540
|
+
_ && _.needCopy ? (a(), R(D, {
|
|
1591
1541
|
key: 1,
|
|
1592
|
-
"cp-text":
|
|
1542
|
+
"cp-text": C[_.dataIndex],
|
|
1593
1543
|
style: { position: "relative" }
|
|
1594
|
-
}, null, 8, ["cp-text"])) :
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
], 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)
|
|
1598
1548
|
]),
|
|
1599
1549
|
key: "1"
|
|
1600
1550
|
} : void 0,
|
|
1601
|
-
|
|
1551
|
+
e.$slots.expandedRowRender ? {
|
|
1602
1552
|
name: "expandedRowRender",
|
|
1603
|
-
fn:
|
|
1604
|
-
|
|
1605
|
-
record:
|
|
1606
|
-
column:
|
|
1607
|
-
index:
|
|
1608
|
-
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: $
|
|
1609
1559
|
}, void 0, !0)
|
|
1610
1560
|
]),
|
|
1611
1561
|
key: "2"
|
|
1612
1562
|
} : void 0,
|
|
1613
|
-
|
|
1563
|
+
e.$slots.customFilterDropdown ? {
|
|
1614
1564
|
name: "customFilterDropdown",
|
|
1615
|
-
fn:
|
|
1616
|
-
|
|
1617
|
-
record:
|
|
1618
|
-
column:
|
|
1619
|
-
index:
|
|
1620
|
-
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: $
|
|
1621
1571
|
}, void 0, !0)
|
|
1622
1572
|
]),
|
|
1623
1573
|
key: "3"
|
|
1624
1574
|
} : void 0,
|
|
1625
|
-
|
|
1575
|
+
e.$slots.customFilterIcon ? {
|
|
1626
1576
|
name: "customFilterIcon",
|
|
1627
|
-
fn:
|
|
1628
|
-
|
|
1629
|
-
record:
|
|
1630
|
-
column:
|
|
1631
|
-
index:
|
|
1632
|
-
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: $
|
|
1633
1583
|
}, void 0, !0)
|
|
1634
1584
|
]),
|
|
1635
1585
|
key: "4"
|
|
1636
1586
|
} : void 0,
|
|
1637
|
-
|
|
1587
|
+
e.$slots.expandIcon ? {
|
|
1638
1588
|
name: "expandIcon",
|
|
1639
|
-
fn:
|
|
1640
|
-
|
|
1641
|
-
record:
|
|
1642
|
-
column:
|
|
1643
|
-
index:
|
|
1644
|
-
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: $
|
|
1645
1595
|
}, void 0, !0)
|
|
1646
1596
|
]),
|
|
1647
1597
|
key: "5"
|
|
1648
1598
|
} : void 0,
|
|
1649
|
-
|
|
1599
|
+
e.$slots.footer ? {
|
|
1650
1600
|
name: "footer",
|
|
1651
|
-
fn:
|
|
1652
|
-
|
|
1653
|
-
record:
|
|
1654
|
-
column:
|
|
1655
|
-
index:
|
|
1656
|
-
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: $
|
|
1657
1607
|
}, void 0, !0)
|
|
1658
1608
|
]),
|
|
1659
1609
|
key: "6"
|
|
1660
1610
|
} : void 0,
|
|
1661
|
-
|
|
1611
|
+
e.$slots.headerCell ? {
|
|
1662
1612
|
name: "headerCell",
|
|
1663
|
-
fn:
|
|
1664
|
-
|
|
1665
|
-
record:
|
|
1666
|
-
column:
|
|
1667
|
-
index:
|
|
1668
|
-
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: $
|
|
1669
1619
|
}, void 0, !0)
|
|
1670
1620
|
]),
|
|
1671
1621
|
key: "7"
|
|
1672
1622
|
} : void 0,
|
|
1673
|
-
|
|
1623
|
+
e.$slots.summary ? {
|
|
1674
1624
|
name: "summary",
|
|
1675
|
-
fn:
|
|
1676
|
-
|
|
1677
|
-
record:
|
|
1678
|
-
column:
|
|
1679
|
-
index:
|
|
1680
|
-
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: $
|
|
1681
1631
|
}, void 0, !0)
|
|
1682
1632
|
]),
|
|
1683
1633
|
key: "8"
|
|
1684
1634
|
} : void 0,
|
|
1685
|
-
|
|
1635
|
+
e.$slots.title ? {
|
|
1686
1636
|
name: "title",
|
|
1687
|
-
fn:
|
|
1688
|
-
|
|
1689
|
-
record:
|
|
1690
|
-
column:
|
|
1691
|
-
index:
|
|
1692
|
-
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: $
|
|
1693
1643
|
}, void 0, !0)
|
|
1694
1644
|
]),
|
|
1695
1645
|
key: "9"
|
|
@@ -1698,16 +1648,16 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1698
1648
|
], 6);
|
|
1699
1649
|
};
|
|
1700
1650
|
}
|
|
1701
|
-
}),
|
|
1651
|
+
}), Fl = /* @__PURE__ */ te(wl, [["__scopeId", "data-v-d4abbf25"]]), Tl = X(Fl), $l = { class: "hb-lib-table-setting-box" }, xl = {
|
|
1702
1652
|
key: 0,
|
|
1703
1653
|
class: "hb-lib-table-drag-item"
|
|
1704
|
-
},
|
|
1654
|
+
}, Ml = {
|
|
1705
1655
|
key: 0,
|
|
1706
1656
|
class: "hb-lib-table-drag-item-act"
|
|
1707
|
-
},
|
|
1657
|
+
}, Il = ["onClick"], Hl = ["onClick"], Dl = { class: "hb-lib-table-set-btn-group" }, Al = {
|
|
1708
1658
|
class: "select-all-container",
|
|
1709
1659
|
style: { "margin-right": "10px" }
|
|
1710
|
-
},
|
|
1660
|
+
}, Ol = /* @__PURE__ */ Z({
|
|
1711
1661
|
name: "HbLibTableColumnSet",
|
|
1712
1662
|
__name: "HbTableColumnSet",
|
|
1713
1663
|
props: {
|
|
@@ -1739,110 +1689,119 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1739
1689
|
}
|
|
1740
1690
|
},
|
|
1741
1691
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1742
|
-
setup(
|
|
1743
|
-
const
|
|
1744
|
-
|
|
1745
|
-
const
|
|
1692
|
+
setup(t, { emit: f }) {
|
|
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) => {
|
|
1746
1696
|
h.value = l.oldIndex;
|
|
1747
|
-
},
|
|
1697
|
+
}, G = (l) => {
|
|
1748
1698
|
const o = l.newIndex;
|
|
1749
1699
|
if (p.value.some((L) => L.fixed === "left" || L.fixed === "right" || L.fixed === !0)) {
|
|
1750
|
-
const L = p.value.filter((
|
|
1751
|
-
if ((L > 0 && o < L ||
|
|
1752
|
-
const
|
|
1753
|
-
|
|
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)) {
|
|
1702
|
+
const Y = e.value.splice(o, 1)[0];
|
|
1703
|
+
e.value.splice(h.value, 0, Y);
|
|
1754
1704
|
}
|
|
1755
1705
|
}
|
|
1756
1706
|
h.value = null;
|
|
1757
|
-
},
|
|
1758
|
-
l.target.checked ?
|
|
1759
|
-
},
|
|
1707
|
+
}, _ = (l) => {
|
|
1708
|
+
l.target.checked ? e.value.forEach((c) => c.checked = !0) : e.value.forEach((c) => c.checked = !1);
|
|
1709
|
+
}, C = (l, o) => {
|
|
1760
1710
|
o ? l.checked = !0 : l.checked = !1;
|
|
1761
|
-
},
|
|
1762
|
-
p.value = [...
|
|
1763
|
-
},
|
|
1764
|
-
p.value =
|
|
1711
|
+
}, M = () => {
|
|
1712
|
+
p.value = [...e.value], d("on-get-columns", p.value), u.value = !1;
|
|
1713
|
+
}, $ = () => {
|
|
1714
|
+
p.value = F.tableColumns.map((o) => ({
|
|
1765
1715
|
...o,
|
|
1766
|
-
label: o.title && o.title.tag ?
|
|
1716
|
+
label: o.title && o.title.tag ? N(o.title) : o.title || o.title2,
|
|
1767
1717
|
value: o.dataIndex,
|
|
1768
1718
|
checked: o.checked || o.checked === void 0
|
|
1769
|
-
})),
|
|
1719
|
+
})), e.value = [...p.value];
|
|
1770
1720
|
let l = [];
|
|
1771
|
-
|
|
1721
|
+
F.tableColumns.forEach(function(o) {
|
|
1772
1722
|
l.push(o.dataIndex);
|
|
1773
1723
|
});
|
|
1774
|
-
},
|
|
1724
|
+
}, N = (l) => l.children[0].text, x = (l) => {
|
|
1775
1725
|
delete l.fixed;
|
|
1776
|
-
const o =
|
|
1726
|
+
const o = e.value.findIndex((c) => c.value === l.value);
|
|
1777
1727
|
if (o !== -1) {
|
|
1778
|
-
let
|
|
1779
|
-
for (let L = 0; L <
|
|
1780
|
-
|
|
1781
|
-
if (
|
|
1782
|
-
const L = [...
|
|
1783
|
-
L.splice(
|
|
1728
|
+
let c = -1;
|
|
1729
|
+
for (let L = 0; L < e.value.length; L++)
|
|
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;
|
|
1784
1734
|
}
|
|
1785
1735
|
}
|
|
1786
|
-
},
|
|
1787
|
-
const o =
|
|
1736
|
+
}, T = (l) => {
|
|
1737
|
+
const o = e.value.findIndex((c) => c.value === l.value);
|
|
1788
1738
|
if (o !== -1) {
|
|
1789
|
-
let
|
|
1790
|
-
for (let L = 0; L <
|
|
1791
|
-
|
|
1792
|
-
if (
|
|
1793
|
-
const L = [...
|
|
1794
|
-
|
|
1739
|
+
let c = -1;
|
|
1740
|
+
for (let L = 0; L < e.value.length; L++)
|
|
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;
|
|
1795
1745
|
}
|
|
1796
1746
|
}
|
|
1797
1747
|
};
|
|
1798
|
-
return
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1748
|
+
return oe(
|
|
1749
|
+
() => F.tableColumns,
|
|
1750
|
+
() => {
|
|
1751
|
+
$();
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
immediate: !0,
|
|
1755
|
+
deep: !0
|
|
1756
|
+
}
|
|
1757
|
+
), (l, o) => {
|
|
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"),
|
|
1803
1762
|
trigger: "click",
|
|
1804
1763
|
placement: "leftTop",
|
|
1805
1764
|
overlayClassName: "alertInfoContent",
|
|
1806
|
-
visible:
|
|
1807
|
-
"onUpdate:visible": o[1] || (o[1] = (
|
|
1765
|
+
visible: u.value,
|
|
1766
|
+
"onUpdate:visible": o[1] || (o[1] = (n) => u.value = n)
|
|
1808
1767
|
}, {
|
|
1809
|
-
content:
|
|
1810
|
-
|
|
1811
|
-
modelValue:
|
|
1812
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1768
|
+
content: i(() => [
|
|
1769
|
+
w(s(ue), {
|
|
1770
|
+
modelValue: e.value,
|
|
1771
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => e.value = n),
|
|
1813
1772
|
"item-key": "value",
|
|
1814
1773
|
class: "hb-lib-table-set-drag",
|
|
1815
1774
|
"ghost-class": "ghost",
|
|
1816
1775
|
animation: "200",
|
|
1817
1776
|
handle: ".drag-handle",
|
|
1818
1777
|
onStart: D,
|
|
1819
|
-
onEnd:
|
|
1778
|
+
onEnd: G
|
|
1820
1779
|
}, {
|
|
1821
|
-
item:
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
checked:
|
|
1825
|
-
onChange: (
|
|
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)
|
|
1826
1785
|
}, {
|
|
1827
|
-
default:
|
|
1828
|
-
|
|
1786
|
+
default: i(() => [
|
|
1787
|
+
H(k(n.label), 1)
|
|
1829
1788
|
]),
|
|
1830
1789
|
_: 2
|
|
1831
1790
|
}, 1032, ["checked", "onChange"]),
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
class: E(
|
|
1791
|
+
n.checked ? (a(), S("section", Ml, [
|
|
1792
|
+
g("span", {
|
|
1793
|
+
class: E(n.fixed ? "drag-hide" : "drag-handle")
|
|
1835
1794
|
}, "⋮⋮", 2),
|
|
1836
|
-
|
|
1837
|
-
title:
|
|
1838
|
-
|
|
1795
|
+
n.fixed ? (a(), R(c, { key: 0 }, {
|
|
1796
|
+
title: i(() => [
|
|
1797
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1839
1798
|
]),
|
|
1840
|
-
default:
|
|
1841
|
-
|
|
1799
|
+
default: i(() => [
|
|
1800
|
+
g("span", {
|
|
1842
1801
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1843
|
-
onClick: (
|
|
1802
|
+
onClick: (Y) => x(n)
|
|
1844
1803
|
}, [...o[2] || (o[2] = [
|
|
1845
|
-
|
|
1804
|
+
g("svg", {
|
|
1846
1805
|
t: "1759048615600",
|
|
1847
1806
|
class: "icon",
|
|
1848
1807
|
viewBox: "0 0 1024 1024",
|
|
@@ -1852,26 +1811,26 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1852
1811
|
width: "200",
|
|
1853
1812
|
height: "200"
|
|
1854
1813
|
}, [
|
|
1855
|
-
|
|
1814
|
+
g("path", {
|
|
1856
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",
|
|
1857
1816
|
"p-id": "7284",
|
|
1858
1817
|
fill: "#ff5000"
|
|
1859
1818
|
})
|
|
1860
1819
|
], -1)
|
|
1861
|
-
])], 8,
|
|
1820
|
+
])], 8, Il)
|
|
1862
1821
|
]),
|
|
1863
1822
|
_: 2
|
|
1864
|
-
}, 1024)) :
|
|
1865
|
-
|
|
1866
|
-
title:
|
|
1867
|
-
|
|
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)
|
|
1868
1827
|
]),
|
|
1869
|
-
default:
|
|
1870
|
-
|
|
1828
|
+
default: i(() => [
|
|
1829
|
+
g("span", {
|
|
1871
1830
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1872
|
-
onClick: (
|
|
1831
|
+
onClick: (Y) => T(n)
|
|
1873
1832
|
}, [...o[3] || (o[3] = [
|
|
1874
|
-
|
|
1833
|
+
g("svg", {
|
|
1875
1834
|
t: "1759048735643",
|
|
1876
1835
|
class: "icon",
|
|
1877
1836
|
viewBox: "0 0 1024 1024",
|
|
@@ -1881,53 +1840,53 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1881
1840
|
width: "200",
|
|
1882
1841
|
height: "200"
|
|
1883
1842
|
}, [
|
|
1884
|
-
|
|
1843
|
+
g("path", {
|
|
1885
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",
|
|
1886
1845
|
"p-id": "7482",
|
|
1887
1846
|
fill: "#ff5000"
|
|
1888
1847
|
})
|
|
1889
1848
|
], -1)
|
|
1890
|
-
])], 8,
|
|
1849
|
+
])], 8, Hl)
|
|
1891
1850
|
]),
|
|
1892
1851
|
_: 2
|
|
1893
1852
|
}, 1024))
|
|
1894
|
-
])) :
|
|
1895
|
-
])) :
|
|
1853
|
+
])) : z("", !0)
|
|
1854
|
+
])) : z("", !0)
|
|
1896
1855
|
]),
|
|
1897
1856
|
_: 1
|
|
1898
1857
|
}, 8, ["modelValue"]),
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1858
|
+
g("div", Dl, [
|
|
1859
|
+
g("div", Al, [
|
|
1860
|
+
w(s(he), {
|
|
1902
1861
|
checked: b.value,
|
|
1903
|
-
indeterminate:
|
|
1904
|
-
onChange:
|
|
1862
|
+
indeterminate: A.value,
|
|
1863
|
+
onChange: _
|
|
1905
1864
|
}, {
|
|
1906
|
-
default:
|
|
1907
|
-
|
|
1865
|
+
default: i(() => [
|
|
1866
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1908
1867
|
]),
|
|
1909
1868
|
_: 1
|
|
1910
1869
|
}, 8, ["checked", "indeterminate"])
|
|
1911
1870
|
]),
|
|
1912
|
-
|
|
1913
|
-
onClick:
|
|
1871
|
+
w(L, {
|
|
1872
|
+
onClick: M,
|
|
1914
1873
|
type: "primary"
|
|
1915
1874
|
}, {
|
|
1916
|
-
default:
|
|
1917
|
-
|
|
1875
|
+
default: i(() => [
|
|
1876
|
+
H(k(s(r)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1918
1877
|
]),
|
|
1919
1878
|
_: 1
|
|
1920
1879
|
})
|
|
1921
1880
|
])
|
|
1922
1881
|
]),
|
|
1923
|
-
default:
|
|
1924
|
-
|
|
1925
|
-
title:
|
|
1882
|
+
default: i(() => [
|
|
1883
|
+
w(c, {
|
|
1884
|
+
title: s(r)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1926
1885
|
placement: "leftTop"
|
|
1927
1886
|
}, {
|
|
1928
|
-
default:
|
|
1929
|
-
|
|
1930
|
-
|
|
1887
|
+
default: i(() => [...o[4] || (o[4] = [
|
|
1888
|
+
g("span", { class: "hb-lib-table-col-set" }, [
|
|
1889
|
+
g("svg", {
|
|
1931
1890
|
t: "1759041858618",
|
|
1932
1891
|
class: "icon",
|
|
1933
1892
|
viewBox: "0 0 1024 1024",
|
|
@@ -1937,12 +1896,12 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1937
1896
|
width: "200",
|
|
1938
1897
|
height: "200"
|
|
1939
1898
|
}, [
|
|
1940
|
-
|
|
1899
|
+
g("path", {
|
|
1941
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",
|
|
1942
1901
|
"p-id": "5220",
|
|
1943
1902
|
fill: "#ff5000"
|
|
1944
1903
|
}),
|
|
1945
|
-
|
|
1904
|
+
g("path", {
|
|
1946
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",
|
|
1947
1906
|
"p-id": "5221",
|
|
1948
1907
|
fill: "#ff5000"
|
|
@@ -1958,19 +1917,19 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
1958
1917
|
]);
|
|
1959
1918
|
};
|
|
1960
1919
|
}
|
|
1961
|
-
}),
|
|
1920
|
+
}), Bl = /* @__PURE__ */ te(Ol, [["__scopeId", "data-v-9200ee57"]]), Rl = X(Bl), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1962
1921
|
__proto__: null,
|
|
1963
|
-
HbLibFormItemFilterModal:
|
|
1964
|
-
HbLibListBtnsAct:
|
|
1965
|
-
HbLibListForm:
|
|
1966
|
-
HbLibListMultiSelect:
|
|
1967
|
-
HbLibListPageAct:
|
|
1968
|
-
HbLibListPageContainer:
|
|
1969
|
-
HbLibListTable:
|
|
1970
|
-
HbLibMutilpleSelectModal:
|
|
1971
|
-
HbLibTableAct:
|
|
1972
|
-
HbLibTableColumnSet:
|
|
1973
|
-
}, 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 = {
|
|
1974
1933
|
// 如果存在cpText时,K和V无效
|
|
1975
1934
|
cpText: {
|
|
1976
1935
|
type: String,
|
|
@@ -2011,52 +1970,52 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2011
1970
|
type: String,
|
|
2012
1971
|
default: "ab"
|
|
2013
1972
|
}
|
|
2014
|
-
},
|
|
1973
|
+
}, Nl = /* @__PURE__ */ Z({
|
|
2015
1974
|
name: "HbLibCopy",
|
|
2016
1975
|
__name: "copy",
|
|
2017
|
-
props:
|
|
2018
|
-
setup(
|
|
2019
|
-
const f =
|
|
2020
|
-
|
|
2021
|
-
|
|
1976
|
+
props: zl,
|
|
1977
|
+
setup(t) {
|
|
1978
|
+
const f = t, d = B();
|
|
1979
|
+
lt(() => {
|
|
1980
|
+
d.value = f.data;
|
|
2022
1981
|
});
|
|
2023
|
-
const
|
|
1982
|
+
const r = j(() => {
|
|
2024
1983
|
if (f.cpText) return f.cpText;
|
|
2025
1984
|
let p = "";
|
|
2026
1985
|
if (f.data)
|
|
2027
1986
|
if (Array.isArray(f.data)) {
|
|
2028
1987
|
if (f.K && f.V && f.L) {
|
|
2029
|
-
const m = f.data.find((
|
|
1988
|
+
const m = f.data.find((u) => u?.[f.K] === f.V);
|
|
2030
1989
|
p = m ? m[f.L] : "";
|
|
2031
1990
|
}
|
|
2032
1991
|
} else
|
|
2033
1992
|
f.K && (p = f.data[f.K]);
|
|
2034
1993
|
return p;
|
|
2035
|
-
}),
|
|
2036
|
-
navigator.clipboard.writeText(
|
|
2037
|
-
|
|
1994
|
+
}), F = () => {
|
|
1995
|
+
navigator.clipboard.writeText(r.value).then(() => {
|
|
1996
|
+
ye.success(f.copySuccessTip);
|
|
2038
1997
|
}).catch(() => {
|
|
2039
|
-
|
|
1998
|
+
ye.error("复制失败");
|
|
2040
1999
|
});
|
|
2041
2000
|
};
|
|
2042
2001
|
return (p, m) => {
|
|
2043
|
-
const
|
|
2044
|
-
return
|
|
2002
|
+
const u = U("a-tooltip");
|
|
2003
|
+
return r.value ? (a(), R(u, {
|
|
2045
2004
|
key: 0,
|
|
2046
2005
|
title: p.tooltipTitle
|
|
2047
2006
|
}, {
|
|
2048
|
-
default:
|
|
2049
|
-
|
|
2007
|
+
default: i(() => [
|
|
2008
|
+
g("i", {
|
|
2050
2009
|
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", p.classType == "ab" ? "ab" : "normal"]),
|
|
2051
|
-
style:
|
|
2052
|
-
onClick:
|
|
2010
|
+
style: be({ ...p.cpStyle }),
|
|
2011
|
+
onClick: ve(F, ["stop", "prevent"])
|
|
2053
2012
|
}, null, 6)
|
|
2054
2013
|
]),
|
|
2055
2014
|
_: 1
|
|
2056
|
-
}, 8, ["title"])) :
|
|
2015
|
+
}, 8, ["title"])) : z("", !0);
|
|
2057
2016
|
};
|
|
2058
2017
|
}
|
|
2059
|
-
}),
|
|
2018
|
+
}), El = /* @__PURE__ */ te(Nl, [["__scopeId", "data-v-d5ca4420"]]), Vl = X(El), Ul = {
|
|
2060
2019
|
dragList: {
|
|
2061
2020
|
type: Array,
|
|
2062
2021
|
required: !0
|
|
@@ -2095,124 +2054,124 @@ const yt = "hb-", Te = (e = "") => {
|
|
|
2095
2054
|
type: String,
|
|
2096
2055
|
default: ""
|
|
2097
2056
|
}
|
|
2098
|
-
},
|
|
2057
|
+
}, Yl = /* @__PURE__ */ Z({
|
|
2099
2058
|
name: "HbDrag",
|
|
2100
2059
|
__name: "index",
|
|
2101
|
-
props:
|
|
2060
|
+
props: Ul,
|
|
2102
2061
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2103
|
-
setup(
|
|
2104
|
-
const
|
|
2105
|
-
|
|
2106
|
-
() =>
|
|
2062
|
+
setup(t, { emit: f }) {
|
|
2063
|
+
const d = t, r = ot([]);
|
|
2064
|
+
oe(
|
|
2065
|
+
() => d.dragList,
|
|
2107
2066
|
(b) => {
|
|
2108
|
-
|
|
2067
|
+
r.value = b;
|
|
2109
2068
|
},
|
|
2110
2069
|
{
|
|
2111
2070
|
deep: !0,
|
|
2112
2071
|
immediate: !0
|
|
2113
2072
|
}
|
|
2114
2073
|
);
|
|
2115
|
-
const
|
|
2074
|
+
const F = Se("drag"), p = f, m = (b) => {
|
|
2116
2075
|
console.log("drag start", b), p("handleDragStart", b);
|
|
2117
|
-
},
|
|
2076
|
+
}, u = (b) => {
|
|
2118
2077
|
console.log("drag end", b), p("handleDragEnd", b);
|
|
2119
|
-
},
|
|
2078
|
+
}, e = (b) => {
|
|
2120
2079
|
console.log("drag add", b), p("handleDragAdd", b);
|
|
2121
2080
|
}, h = (b) => {
|
|
2122
2081
|
console.log("drag remove", b), p("handleDragRemove", b);
|
|
2123
2082
|
};
|
|
2124
|
-
return (b,
|
|
2125
|
-
class: E(
|
|
2083
|
+
return (b, A) => (a(), S("div", {
|
|
2084
|
+
class: E(s(F).b())
|
|
2126
2085
|
}, [
|
|
2127
|
-
b.childrenType == "component" ? (a(),
|
|
2086
|
+
b.childrenType == "component" ? (a(), R(s(ue), Q({
|
|
2128
2087
|
key: 0,
|
|
2129
|
-
modelValue:
|
|
2130
|
-
"onUpdate:modelValue":
|
|
2088
|
+
modelValue: r.value,
|
|
2089
|
+
"onUpdate:modelValue": A[0] || (A[0] = (D) => r.value = D),
|
|
2131
2090
|
"item-key": "key",
|
|
2132
2091
|
class: { [b.dragClass]: b.dragClass }
|
|
2133
2092
|
}, b.$attrs, {
|
|
2134
2093
|
"ghost-class": b.ghostClass,
|
|
2135
2094
|
onStart: m,
|
|
2136
|
-
onEnd:
|
|
2137
|
-
onAdd:
|
|
2095
|
+
onEnd: u,
|
|
2096
|
+
onAdd: e,
|
|
2138
2097
|
onRemove: h
|
|
2139
2098
|
}), {
|
|
2140
|
-
item:
|
|
2141
|
-
(a(),
|
|
2099
|
+
item: i(({ element: D }) => [
|
|
2100
|
+
(a(), R(at(D.component)))
|
|
2142
2101
|
]),
|
|
2143
2102
|
_: 1
|
|
2144
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (a(),
|
|
2103
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), R(s(ue), Q({
|
|
2145
2104
|
key: 1,
|
|
2146
|
-
modelValue:
|
|
2147
|
-
"onUpdate:modelValue":
|
|
2105
|
+
modelValue: r.value,
|
|
2106
|
+
"onUpdate:modelValue": A[1] || (A[1] = (D) => r.value = D),
|
|
2148
2107
|
"item-key": "id",
|
|
2149
2108
|
class: { [b.dragClass]: b.dragClass }
|
|
2150
2109
|
}, b.$attrs, {
|
|
2151
2110
|
"ghost-class": b.ghostClass,
|
|
2152
2111
|
onStart: m,
|
|
2153
|
-
onEnd:
|
|
2154
|
-
onAdd:
|
|
2112
|
+
onEnd: u,
|
|
2113
|
+
onAdd: e,
|
|
2155
2114
|
onRemove: h
|
|
2156
2115
|
}), {
|
|
2157
|
-
item:
|
|
2158
|
-
|
|
2159
|
-
|
|
2116
|
+
item: i(({ element: D }) => [
|
|
2117
|
+
g("div", null, [
|
|
2118
|
+
V(b.$slots, "default", { item: D }, void 0, !0)
|
|
2160
2119
|
])
|
|
2161
2120
|
]),
|
|
2162
2121
|
_: 3
|
|
2163
2122
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2164
2123
|
], 2));
|
|
2165
2124
|
}
|
|
2166
|
-
}),
|
|
2125
|
+
}), jl = /* @__PURE__ */ te(Yl, [["__scopeId", "data-v-15b227f5"]]), ql = X(jl), Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2167
2126
|
__proto__: null,
|
|
2168
|
-
HbLibFuncCompCopy:
|
|
2169
|
-
HbLibFuncCompDrag:
|
|
2127
|
+
HbLibFuncCompCopy: Vl,
|
|
2128
|
+
HbLibFuncCompDrag: ql
|
|
2170
2129
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2171
|
-
let
|
|
2172
|
-
...
|
|
2173
|
-
...
|
|
2130
|
+
let Ve = {
|
|
2131
|
+
...Pl,
|
|
2132
|
+
...Kl
|
|
2174
2133
|
};
|
|
2175
|
-
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 = {
|
|
2176
2139
|
hbLibComp: Zl
|
|
2177
|
-
}, 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 = {
|
|
2178
2141
|
hbLibComp: eo
|
|
2179
|
-
}, 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 = {
|
|
2180
|
-
hbLibComp: lo
|
|
2181
|
-
}, 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 = {
|
|
2182
|
-
hbLibComp: ao
|
|
2183
2142
|
};
|
|
2184
|
-
var
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2187
|
-
(function(
|
|
2188
|
-
|
|
2189
|
-
})(
|
|
2190
|
-
function
|
|
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) {
|
|
2191
2150
|
return m && typeof m == "object" && "default" in m ? m : { default: m };
|
|
2192
2151
|
}
|
|
2193
|
-
var
|
|
2194
|
-
return
|
|
2195
|
-
}, 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,
|
|
2196
|
-
var
|
|
2197
|
-
return
|
|
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;
|
|
2156
|
+
return e < 600 ? "凌晨" : e < 900 ? "早上" : e < 1100 ? "上午" : e < 1300 ? "中午" : e < 1800 ? "下午" : "晚上";
|
|
2198
2157
|
} };
|
|
2199
|
-
return
|
|
2158
|
+
return F.default.locale(p, null, !0), p;
|
|
2200
2159
|
}));
|
|
2201
|
-
})(
|
|
2160
|
+
})(de)), de.exports;
|
|
2202
2161
|
}
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
const
|
|
2206
|
-
en_US:
|
|
2207
|
-
ja_JP:
|
|
2208
|
-
zh_CN:
|
|
2209
|
-
de_DE:
|
|
2210
|
-
},
|
|
2211
|
-
Object.keys(
|
|
2212
|
-
|
|
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]);
|
|
2213
2172
|
});
|
|
2214
2173
|
};
|
|
2215
2174
|
export {
|
|
2216
|
-
|
|
2217
|
-
|
|
2175
|
+
mo as install,
|
|
2176
|
+
fo as locales
|
|
2218
2177
|
};
|