@hb-hellotech/hb-ui 2.4.2 → 2.4.3
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/App.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/HbListTable.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/src/HbTableColumnSet.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +51 -24
- package/dist/demo/Table.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1285 -1248
- package/dist/hb_component_lib.umd.cjs +2 -2
- package/package.json +97 -97
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
2
|
import Gt from "vue-files-preview";
|
|
3
|
-
import { defineComponent as
|
|
3
|
+
import { defineComponent as oe, inject as Ce, computed as $, reactive as Ne, ref as E, watch as ie, onMounted as ke, createElementBlock as L, openBlock as n, normalizeClass as Q, unref as w, createVNode as x, withCtx as u, createElementVNode as p, toDisplayString as k, createTextVNode as O, createBlock as V, createCommentVNode as B, Fragment as X, renderList as me, resolveComponent as j, Transition as Jt, withDirectives as _e, mergeProps as te, createSlots as Pe, renderSlot as Y, vShow as Xt, nextTick as xe, onUnmounted as Be, useTemplateRef as Qt, provide as Bt, normalizeStyle as ve, mergeModels as Qe, useModel as Ot, withModifiers as Re, resolveDirective as Et, useAttrs as Zt, useSlots as eo, onBeforeUnmount as nt, watchEffect as Pt, resolveDynamicComponent as Nt, shallowRef as to, createStaticVNode as oo, getCurrentInstance as lo, createApp as ao } from "vue";
|
|
4
4
|
import Ve from "vuedraggable";
|
|
5
5
|
import { Modal as Ze, Button as et, message as Le, Tooltip as We, Switch as ft, Radio as pt, RadioGroup as mt, InputNumber as bt, DatePicker as ht, Checkbox as je, CheckboxGroup as vt, Select as tt, Input as gt, Col as no, Row as io, FormItem as yt, Form as _t, SelectOption as ot, Popconfirm as Je, MenuItem as Lt, Menu as wt, Dropdown as Ct, Popover as so, BackTop as Ut, Spin as ro } from "ant-design-vue";
|
|
6
6
|
import { useRoute as it } from "vue-router";
|
|
@@ -27,7 +27,7 @@ const wo = "hb-", st = (e = "") => {
|
|
|
27
27
|
bem: (o, t, a) => He(e, o, t, a),
|
|
28
28
|
// is-disabled
|
|
29
29
|
is: (o, t) => t ? `is-${o}` : ""
|
|
30
|
-
}), ko = ["onMouseenter", "onMouseleave"], So = ["onClick"], xo = /* @__PURE__ */
|
|
30
|
+
}), ko = ["onMouseenter", "onMouseleave"], So = ["onClick"], xo = /* @__PURE__ */ oe({
|
|
31
31
|
name: "HbLibFormItemFilterModal",
|
|
32
32
|
__name: "HbFormItemFilterModal",
|
|
33
33
|
props: {
|
|
@@ -40,42 +40,42 @@ const wo = "hb-", st = (e = "") => {
|
|
|
40
40
|
},
|
|
41
41
|
emits: ["confirm"],
|
|
42
42
|
setup(e, { expose: o, emit: t }) {
|
|
43
|
-
const a = Ce("globalCompConfig", {}), d = ye().t, s = ye().messages.value.en_US, c = ye().messages.value.ja_JP, r = ye().messages.value.zh_CN, l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = $(() => l.title || d("hbLibComp.hbFormItemFilterModal.title")),
|
|
43
|
+
const a = Ce("globalCompConfig", {}), d = ye().t, s = ye().messages.value.en_US, c = ye().messages.value.ja_JP, r = ye().messages.value.zh_CN, l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = $(() => l.title || d("hbLibComp.hbFormItemFilterModal.title")), _ = t, h = st("sfcm"), P = it(), I = Ne({
|
|
44
44
|
lan: window.localStorage.getItem("lan")
|
|
45
|
-
}),
|
|
46
|
-
let
|
|
47
|
-
const m = E([]), y = E([]),
|
|
45
|
+
}), W = E(!1), A = E(600);
|
|
46
|
+
let v = [];
|
|
47
|
+
const m = E([]), y = E([]), F = $(() => m.value.every((g) => g.isLinked || g.isFixed)), C = (g) => ({
|
|
48
48
|
...g,
|
|
49
|
-
label:
|
|
49
|
+
label: S(g) || `${N(g) || ""} (${d("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
50
50
|
key: g.key,
|
|
51
51
|
isFixed: g?.isFixed || !1,
|
|
52
52
|
isLinked: g?.isLinked || !1,
|
|
53
53
|
labelLanguage: g?.labelLanguage || void 0
|
|
54
|
-
}),
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
54
|
+
}), T = (g) => {
|
|
55
|
+
const K = g.draggedContext.element, D = g.relatedContext.index;
|
|
56
|
+
if (K.isLinked || K.isFixed)
|
|
57
57
|
return !1;
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
58
|
+
const Z = m.value.map((ue, we) => ({ item: ue, index: we })).filter(({ item: ue }) => ue.isLinked).map(({ index: ue }) => ue);
|
|
59
|
+
if (Z.length === 0)
|
|
60
60
|
return !0;
|
|
61
|
-
for (let ue = 0; ue <
|
|
62
|
-
const we =
|
|
63
|
-
if (
|
|
61
|
+
for (let ue = 0; ue < Z.length - 1; ue++) {
|
|
62
|
+
const we = Z[ue], ge = Z[ue + 1];
|
|
63
|
+
if (D > we && D < ge)
|
|
64
64
|
return !1;
|
|
65
65
|
}
|
|
66
66
|
return !0;
|
|
67
|
-
},
|
|
67
|
+
}, M = $(() => b() + "_" + l.saveKey), b = () => {
|
|
68
68
|
const g = localStorage.getItem("pro__Login_Userinfo");
|
|
69
|
-
let
|
|
69
|
+
let K = "anonymous";
|
|
70
70
|
if (g)
|
|
71
71
|
try {
|
|
72
|
-
|
|
73
|
-
} catch (
|
|
74
|
-
console.warn("解析用户信息失败:",
|
|
72
|
+
K = JSON.parse(g).value.jobNumber || "anonymous";
|
|
73
|
+
} catch (Z) {
|
|
74
|
+
console.warn("解析用户信息失败:", Z);
|
|
75
75
|
}
|
|
76
|
-
let
|
|
77
|
-
return `searchFormConfig_${
|
|
78
|
-
},
|
|
76
|
+
let D = P?.path;
|
|
77
|
+
return `searchFormConfig_${K}_${D}`;
|
|
78
|
+
}, S = (g) => ({
|
|
79
79
|
ja_JP: () => Ae.get(c, g.labelLanguage || ""),
|
|
80
80
|
en_US: () => Ae.get(s, g.labelLanguage || ""),
|
|
81
81
|
zh_CN: () => Ae.get(r, g.labelLanguage || "")
|
|
@@ -83,24 +83,24 @@ const wo = "hb-", st = (e = "") => {
|
|
|
83
83
|
ja_JP: () => Ae.get(c, g.subLabelLanguage || ""),
|
|
84
84
|
en_US: () => Ae.get(s, g.subLabelLanguage || ""),
|
|
85
85
|
zh_CN: () => Ae.get(r, g.subLabelLanguage || "")
|
|
86
|
-
})[I.lan]?.() || g.subLabel,
|
|
86
|
+
})[I.lan]?.() || g.subLabel, q = () => {
|
|
87
87
|
try {
|
|
88
|
-
const g = localStorage.getItem(
|
|
88
|
+
const g = localStorage.getItem(M.value);
|
|
89
89
|
if (g) {
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
...
|
|
95
|
-
})), ae =
|
|
96
|
-
...
|
|
97
|
-
})), $e = ue.slice(0, we).map((
|
|
98
|
-
...
|
|
90
|
+
const K = JSON.parse(g);
|
|
91
|
+
if (K.originalList && Array.isArray(K.originalList)) {
|
|
92
|
+
v = JSON.parse(JSON.stringify(K.originalList));
|
|
93
|
+
const D = v.filter((J) => J?.isFixed), Z = v.filter((J) => J?.isLinked), ue = K.showList.filter((J) => !J.isFixed && !J.isLinked), we = i.value && i.value > 0 ? Math.max(0, i.value - D.length - Z.length) : ue.length, ge = D.map((J) => ({
|
|
94
|
+
...C(J)
|
|
95
|
+
})), ae = Z.map((J) => ({
|
|
96
|
+
...C(J)
|
|
97
|
+
})), $e = ue.slice(0, we).map((J) => ({
|
|
98
|
+
...C(J)
|
|
99
99
|
}));
|
|
100
100
|
m.value = [...ge, ...ae, ...$e];
|
|
101
|
-
const Ie = m.value.map((
|
|
102
|
-
return y.value =
|
|
103
|
-
...
|
|
101
|
+
const Ie = m.value.map((J) => J.key), De = v.map((J) => J.key).filter((J) => !Ie.includes(J));
|
|
102
|
+
return y.value = v.filter((J) => De.includes(J.key)).map((J) => ({
|
|
103
|
+
...C(J),
|
|
104
104
|
active: !1
|
|
105
105
|
})), !0;
|
|
106
106
|
}
|
|
@@ -109,143 +109,143 @@ const wo = "hb-", st = (e = "") => {
|
|
|
109
109
|
console.warn("加载保存的搜索配置失败:", g);
|
|
110
110
|
}
|
|
111
111
|
return !1;
|
|
112
|
-
},
|
|
112
|
+
}, G = () => {
|
|
113
113
|
try {
|
|
114
114
|
const g = {
|
|
115
|
-
originalList:
|
|
116
|
-
showList: m.value.map((
|
|
117
|
-
...
|
|
118
|
-
key:
|
|
119
|
-
label:
|
|
120
|
-
isFixed:
|
|
121
|
-
isLinked:
|
|
122
|
-
labelLanguage:
|
|
115
|
+
originalList: v,
|
|
116
|
+
showList: m.value.map((K) => ({
|
|
117
|
+
...K,
|
|
118
|
+
key: K.key,
|
|
119
|
+
label: K.label,
|
|
120
|
+
isFixed: K.isFixed,
|
|
121
|
+
isLinked: K.isLinked,
|
|
122
|
+
labelLanguage: K?.labelLanguage || void 0
|
|
123
123
|
}))
|
|
124
124
|
};
|
|
125
|
-
localStorage.setItem(
|
|
125
|
+
localStorage.setItem(M.value, JSON.stringify(g));
|
|
126
126
|
} catch (g) {
|
|
127
127
|
console.warn("保存搜索配置失败:", g);
|
|
128
128
|
}
|
|
129
|
-
},
|
|
130
|
-
const g = m.value.filter((
|
|
131
|
-
return g >= i.value -
|
|
129
|
+
}, H = $(() => {
|
|
130
|
+
const g = m.value.filter((D) => !D.isFixed && !D.isLinked).length, K = m.value.filter((D) => D.isFixed || D.isLinked).length;
|
|
131
|
+
return g >= i.value - K;
|
|
132
132
|
});
|
|
133
133
|
ie(
|
|
134
134
|
() => l.list,
|
|
135
135
|
(g) => {
|
|
136
|
-
let
|
|
137
|
-
if (!
|
|
136
|
+
let K = JSON.stringify(m.value) !== JSON.stringify(g);
|
|
137
|
+
if (!K)
|
|
138
138
|
return;
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
|
|
142
|
-
else if (
|
|
143
|
-
|
|
144
|
-
const ue = g.filter((
|
|
139
|
+
const D = localStorage.getItem(M.value), Z = JSON.parse(D || "{}");
|
|
140
|
+
if (Z && Z?.originalList && Array.isArray(Z.originalList))
|
|
141
|
+
q(), _("confirm", m.value);
|
|
142
|
+
else if (K) {
|
|
143
|
+
v = JSON.parse(JSON.stringify(g));
|
|
144
|
+
const ue = g.filter((J) => J?.isFixed), we = g.filter((J) => J?.isLinked), ge = g.filter((J) => !J?.isFixed && !J?.isLinked), ae = i.value && i.value > 0 ? Math.max(0, i.value - ue.length - we.length) : ge.length, $e = ue.map((J) => C(J)), Ie = we.map((J) => C(J)), Me = ge.slice(0, ae).map((J) => C(J));
|
|
145
145
|
m.value = [...$e, ...Ie, ...Me];
|
|
146
|
-
const De = ge.slice(ae).map((
|
|
147
|
-
...
|
|
146
|
+
const De = ge.slice(ae).map((J) => ({
|
|
147
|
+
...C(J),
|
|
148
148
|
active: !1
|
|
149
149
|
}));
|
|
150
|
-
y.value = De,
|
|
150
|
+
y.value = De, _("confirm", m.value);
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{ immediate: !0 }
|
|
154
154
|
);
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
|
|
155
|
+
const z = (g) => {
|
|
156
|
+
const K = m.value.findIndex((D) => D.key === g.key);
|
|
157
|
+
K !== -1 && (m.value.splice(K, 1), y.value.push({ ...g, active: !1 }));
|
|
158
158
|
}, se = (g) => {
|
|
159
|
-
if (
|
|
159
|
+
if (H.value) {
|
|
160
160
|
Le.warning(`当前已经超过${d(i.value)}个可选数量,请先删除已显示条件`);
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
165
|
-
const [
|
|
166
|
-
m.value.push({ ...
|
|
163
|
+
const K = y.value.findIndex((D) => D.key === g.key);
|
|
164
|
+
if (K !== -1) {
|
|
165
|
+
const [D] = y.value.splice(K, 1);
|
|
166
|
+
m.value.push({ ...D, active: !1 });
|
|
167
167
|
}
|
|
168
168
|
}, re = () => {
|
|
169
|
-
|
|
169
|
+
W.value = !1;
|
|
170
170
|
}, fe = () => {
|
|
171
|
-
|
|
171
|
+
W.value = !0;
|
|
172
172
|
}, be = () => {
|
|
173
|
-
|
|
173
|
+
G(), _("confirm", m.value), re();
|
|
174
174
|
}, pe = (g) => {
|
|
175
|
-
const
|
|
176
|
-
|
|
175
|
+
const K = y.value.findIndex((D) => D.key === g.key);
|
|
176
|
+
K !== -1 && (y.value[K].active = !0);
|
|
177
177
|
}, he = (g) => {
|
|
178
|
-
const
|
|
179
|
-
|
|
178
|
+
const K = y.value.findIndex((D) => D.key === g.key);
|
|
179
|
+
K !== -1 && (y.value[K].active = !1);
|
|
180
180
|
};
|
|
181
181
|
return o({
|
|
182
182
|
toOpenModal: fe
|
|
183
183
|
}), ke(() => {
|
|
184
|
-
}), (g,
|
|
185
|
-
class:
|
|
184
|
+
}), (g, K) => (n(), L("div", {
|
|
185
|
+
class: Q(w(h).b())
|
|
186
186
|
}, [
|
|
187
|
-
|
|
188
|
-
visible:
|
|
189
|
-
"onUpdate:visible":
|
|
190
|
-
width:
|
|
187
|
+
x(w(Ze), {
|
|
188
|
+
visible: W.value,
|
|
189
|
+
"onUpdate:visible": K[1] || (K[1] = (D) => W.value = D),
|
|
190
|
+
width: A.value,
|
|
191
191
|
onCancel: re,
|
|
192
192
|
onOk: be
|
|
193
193
|
}, {
|
|
194
194
|
title: u(() => [
|
|
195
195
|
p("div", {
|
|
196
|
-
class:
|
|
197
|
-
},
|
|
196
|
+
class: Q(w(h).e("title"))
|
|
197
|
+
}, k(f.value), 3)
|
|
198
198
|
]),
|
|
199
199
|
footer: u(() => [
|
|
200
|
-
|
|
200
|
+
x(w(et), { onClick: re }, {
|
|
201
201
|
default: u(() => [
|
|
202
|
-
O(
|
|
202
|
+
O(k(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
203
203
|
]),
|
|
204
204
|
_: 1
|
|
205
205
|
}),
|
|
206
|
-
|
|
206
|
+
x(w(et), {
|
|
207
207
|
type: "primary",
|
|
208
208
|
onClick: be
|
|
209
209
|
}, {
|
|
210
210
|
default: u(() => [
|
|
211
|
-
O(
|
|
211
|
+
O(k(g.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
212
212
|
]),
|
|
213
213
|
_: 1
|
|
214
214
|
})
|
|
215
215
|
]),
|
|
216
216
|
default: u(() => [
|
|
217
217
|
p("section", {
|
|
218
|
-
class:
|
|
218
|
+
class: Q(w(h).e("show"))
|
|
219
219
|
}, [
|
|
220
220
|
p("div", {
|
|
221
|
-
class:
|
|
221
|
+
class: Q(w(h).e("show__title"))
|
|
222
222
|
}, [
|
|
223
223
|
p("span", {
|
|
224
|
-
class:
|
|
225
|
-
},
|
|
226
|
-
p("span", null,
|
|
224
|
+
class: Q(w(h).e("title__tip"))
|
|
225
|
+
}, k(g.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
226
|
+
p("span", null, k(g.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + k(i.value) + k(g.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
227
227
|
], 2),
|
|
228
228
|
p("div", {
|
|
229
|
-
class:
|
|
229
|
+
class: Q(w(h).e("show__tag"))
|
|
230
230
|
}, [
|
|
231
|
-
|
|
231
|
+
x(w(Ve), {
|
|
232
232
|
modelValue: m.value,
|
|
233
|
-
"onUpdate:modelValue":
|
|
233
|
+
"onUpdate:modelValue": K[0] || (K[0] = (D) => m.value = D),
|
|
234
234
|
"item-key": "key",
|
|
235
235
|
tag: "div",
|
|
236
|
-
disabled:
|
|
237
|
-
move:
|
|
236
|
+
disabled: F.value,
|
|
237
|
+
move: T
|
|
238
238
|
}, {
|
|
239
|
-
item: u(({ element:
|
|
239
|
+
item: u(({ element: D }) => [
|
|
240
240
|
p("div", {
|
|
241
|
-
class:
|
|
241
|
+
class: Q([w(h).e("show__tag__item"), w(h).is("fixed", D.isFixed), w(h).is("linked", D.isLinked)])
|
|
242
242
|
}, [
|
|
243
|
-
O(
|
|
244
|
-
!
|
|
243
|
+
O(k(D.label) + " ", 1),
|
|
244
|
+
!D.isFixed && !D.isLinked && e.list.length > 1 ? (n(), V(w(uo), {
|
|
245
245
|
key: 0,
|
|
246
|
-
class:
|
|
247
|
-
onClick: (
|
|
248
|
-
}, null, 8, ["class", "onClick"])) :
|
|
246
|
+
class: Q(w(h).e("show__tag__item-close")),
|
|
247
|
+
onClick: (Z) => z(D)
|
|
248
|
+
}, null, 8, ["class", "onClick"])) : B("", !0)
|
|
249
249
|
], 2)
|
|
250
250
|
]),
|
|
251
251
|
_: 1
|
|
@@ -253,34 +253,34 @@ const wo = "hb-", st = (e = "") => {
|
|
|
253
253
|
], 2)
|
|
254
254
|
], 2),
|
|
255
255
|
p("section", {
|
|
256
|
-
class:
|
|
256
|
+
class: Q(w(h).e("unshow"))
|
|
257
257
|
}, [
|
|
258
258
|
p("div", {
|
|
259
|
-
class:
|
|
259
|
+
class: Q(w(h).e("show__title"))
|
|
260
260
|
}, [
|
|
261
261
|
p("span", {
|
|
262
|
-
class:
|
|
263
|
-
},
|
|
262
|
+
class: Q(w(h).e("title__tip"))
|
|
263
|
+
}, k(g.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
264
264
|
], 2),
|
|
265
265
|
p("div", {
|
|
266
|
-
class:
|
|
266
|
+
class: Q(w(h).e("unshow__tag"))
|
|
267
267
|
}, [
|
|
268
|
-
y.value.length > 0 ? (n(!0),
|
|
269
|
-
key:
|
|
270
|
-
class:
|
|
271
|
-
onMouseenter: (
|
|
272
|
-
onMouseleave: (
|
|
268
|
+
y.value.length > 0 ? (n(!0), L(X, { key: 0 }, me(y.value, (D) => (n(), L("div", {
|
|
269
|
+
key: D.key,
|
|
270
|
+
class: Q([w(h).e("unshow__tag__item"), w(h).is("fixed", D.isFixed || ""), w(h).is("linked", D.isLinked || "")]),
|
|
271
|
+
onMouseenter: (Z) => pe(D),
|
|
272
|
+
onMouseleave: (Z) => he(D)
|
|
273
273
|
}, [
|
|
274
|
-
O(
|
|
275
|
-
|
|
274
|
+
O(k(D.label) + " ", 1),
|
|
275
|
+
D.active ? (n(), L("aside", {
|
|
276
276
|
key: 0,
|
|
277
|
-
class:
|
|
278
|
-
onClick: (
|
|
279
|
-
},
|
|
280
|
-
], 42, ko))), 128)) : (n(),
|
|
277
|
+
class: Q(w(h).e("unshow__tag__item-add")),
|
|
278
|
+
onClick: (Z) => se(D)
|
|
279
|
+
}, k(g.$t("hbLibComp.hbFormItemFilterModal.add")), 11, So)) : B("", !0)
|
|
280
|
+
], 42, ko))), 128)) : (n(), L("div", {
|
|
281
281
|
key: 1,
|
|
282
|
-
class:
|
|
283
|
-
},
|
|
282
|
+
class: Q(w(h).e("unshow__tag__empty"))
|
|
283
|
+
}, k(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
284
284
|
], 2)
|
|
285
285
|
], 2)
|
|
286
286
|
]),
|
|
@@ -288,23 +288,23 @@ const wo = "hb-", st = (e = "") => {
|
|
|
288
288
|
}, 8, ["visible", "width"])
|
|
289
289
|
], 2));
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
291
|
+
}), le = (e, o) => {
|
|
292
292
|
const t = e.__vccOpts || e;
|
|
293
293
|
for (const [a, d] of o)
|
|
294
294
|
t[a] = d;
|
|
295
295
|
return t;
|
|
296
|
-
}, To = /* @__PURE__ */
|
|
297
|
-
function
|
|
296
|
+
}, To = /* @__PURE__ */ le(xo, [["__scopeId", "data-v-657502f3"]]);
|
|
297
|
+
function ee(e) {
|
|
298
298
|
const o = e;
|
|
299
299
|
return o.install = (t) => {
|
|
300
300
|
const a = e.name;
|
|
301
301
|
t.component(a ?? "AnonymousComponent", e);
|
|
302
302
|
}, o;
|
|
303
303
|
}
|
|
304
|
-
const Fo =
|
|
304
|
+
const Fo = ee(To), Ho = {
|
|
305
305
|
key: 0,
|
|
306
306
|
class: "form-footer"
|
|
307
|
-
}, $o = { class: "scheme-fontWeight" }, Io = { class: "scheme-fontWeight" }, Mo = { class: "scheme-fontWeight" }, Do = { class: "scheme-fontWeight" }, Ao = /* @__PURE__ */
|
|
307
|
+
}, $o = { class: "scheme-fontWeight" }, Io = { class: "scheme-fontWeight" }, Mo = { class: "scheme-fontWeight" }, Do = { class: "scheme-fontWeight" }, Ao = /* @__PURE__ */ oe({
|
|
308
308
|
name: "HbLibListForm",
|
|
309
309
|
__name: "HbListForm",
|
|
310
310
|
props: {
|
|
@@ -337,52 +337,52 @@ const Fo = Z(To), Ho = {
|
|
|
337
337
|
},
|
|
338
338
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
339
339
|
setup(e, { expose: o, emit: t }) {
|
|
340
|
-
const a = Ce("globalCompConfig", {}), d = t, s = Ce("HB_LIST_PAGE_CONTAINER"), c = $(() => l.searchList || []), r = st("form"), l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = E("show"),
|
|
341
|
-
...
|
|
342
|
-
condition:
|
|
343
|
-
label:
|
|
340
|
+
const a = Ce("globalCompConfig", {}), d = t, s = Ce("HB_LIST_PAGE_CONTAINER"), c = $(() => l.searchList || []), r = st("form"), l = e, i = $(() => l.showNumber || a.HbLibFormItemFilterModal?.defaultShowCount || 40), f = E("show"), _ = $(() => l.needFooter || a.HbLibListForm?.needFooter), h = $(() => [...l.items]), P = (H) => H !== void 0, I = (H) => typeof H == "function", W = (H) => P(H.condition) ? I(H.condition) ? H.condition() : H.condition : !0, A = $(() => [...l.items].map((H) => ({
|
|
341
|
+
...H,
|
|
342
|
+
condition: W(H),
|
|
343
|
+
label: H.label?.includes("多项搜索") ? "" : H.label
|
|
344
344
|
})));
|
|
345
|
-
console.log(
|
|
346
|
-
const
|
|
345
|
+
console.log(A.value);
|
|
346
|
+
const v = $(() => l.saveKey), m = E(), y = () => {
|
|
347
347
|
d("handleSearch");
|
|
348
|
-
},
|
|
348
|
+
}, F = () => {
|
|
349
349
|
d("handleReset");
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
d("handleMenuClick",
|
|
354
|
-
},
|
|
355
|
-
d("handleSfcmConfirm",
|
|
350
|
+
}, C = E(), T = () => {
|
|
351
|
+
C.value && C.value.toOpenModal();
|
|
352
|
+
}, M = (H) => {
|
|
353
|
+
d("handleMenuClick", H);
|
|
354
|
+
}, b = (H) => {
|
|
355
|
+
d("handleSfcmConfirm", H);
|
|
356
356
|
};
|
|
357
357
|
ie(
|
|
358
358
|
() => l.isFormExpanded,
|
|
359
|
-
(
|
|
360
|
-
if (
|
|
361
|
-
console.log(
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
|
|
359
|
+
(H) => {
|
|
360
|
+
if (H) {
|
|
361
|
+
console.log(H);
|
|
362
|
+
const z = document.querySelector("#subpackage_container");
|
|
363
|
+
z instanceof HTMLElement && (z.style.overflow = "hidden", setTimeout(() => {
|
|
364
|
+
z.style.overflow = "auto";
|
|
365
365
|
}, 500));
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
|
-
const
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
}, N = (
|
|
373
|
-
const
|
|
374
|
-
|
|
369
|
+
const S = (H) => {
|
|
370
|
+
const z = H;
|
|
371
|
+
z.style.height = "", z.offsetHeight;
|
|
372
|
+
}, N = (H) => {
|
|
373
|
+
const z = H;
|
|
374
|
+
z.style.height = "", z.style.overflow = "", xe(() => {
|
|
375
375
|
s.calTableHeight && s.calTableHeight();
|
|
376
376
|
});
|
|
377
|
-
},
|
|
378
|
-
const
|
|
377
|
+
}, q = (H) => {
|
|
378
|
+
const z = H, se = z.querySelector(".hb-lib-form--container");
|
|
379
379
|
if (se) {
|
|
380
380
|
const re = se.offsetHeight;
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
z.style.height = re + "px", z.style.overflow = "hidden", z.offsetHeight, requestAnimationFrame(() => {
|
|
382
|
+
z.style.height = "0";
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, G = () => {
|
|
386
386
|
xe(() => {
|
|
387
387
|
s.calTableHeight && s.calTableHeight();
|
|
388
388
|
});
|
|
@@ -405,29 +405,29 @@ const Fo = Z(To), Ho = {
|
|
|
405
405
|
Switch: ft,
|
|
406
406
|
Button: et,
|
|
407
407
|
Tooltip: We
|
|
408
|
-
}), (
|
|
408
|
+
}), (H, z) => {
|
|
409
409
|
const se = j("a-button"), re = j("a-tooltip"), fe = j("a-menu-item"), be = j("a-menu"), pe = j("a-dropdown"), he = j("HbLibFormItemFilterModal");
|
|
410
|
-
return n(),
|
|
411
|
-
|
|
410
|
+
return n(), L(X, null, [
|
|
411
|
+
x(Jt, {
|
|
412
412
|
name: "form-collapse",
|
|
413
|
-
onEnter:
|
|
413
|
+
onEnter: S,
|
|
414
414
|
onAfterEnter: N,
|
|
415
|
-
onLeave:
|
|
416
|
-
onAfterLeave:
|
|
415
|
+
onLeave: q,
|
|
416
|
+
onAfterLeave: G
|
|
417
417
|
}, {
|
|
418
418
|
default: u(() => [
|
|
419
419
|
_e(p("div", {
|
|
420
|
-
class:
|
|
420
|
+
class: Q([w(r).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", _.value ? "isNeedFooterCss" : ""])
|
|
421
421
|
}, [
|
|
422
|
-
|
|
422
|
+
x(w(_t), te(H.$attrs, {
|
|
423
423
|
model: e.formData,
|
|
424
424
|
ref_key: "formRef",
|
|
425
425
|
ref: m,
|
|
426
426
|
class: ["hb-lib-form--container", f.value == "show" ? "" : "hide"]
|
|
427
427
|
}), {
|
|
428
428
|
default: u(() => [
|
|
429
|
-
(n(!0),
|
|
430
|
-
g.condition ? (n(),
|
|
429
|
+
(n(!0), L(X, null, me(A.value, (g, K) => (n(), L(X, { key: K }, [
|
|
430
|
+
g.condition ? (n(), V(w(yt), te({
|
|
431
431
|
key: 0,
|
|
432
432
|
ref_for: !0
|
|
433
433
|
}, g, {
|
|
@@ -438,142 +438,142 @@ const Fo = Z(To), Ho = {
|
|
|
438
438
|
}
|
|
439
439
|
}), Pe({
|
|
440
440
|
default: u(() => [
|
|
441
|
-
g.type === "slot" ?
|
|
441
|
+
g.type === "slot" ? Y(H.$slots, g.key, {
|
|
442
442
|
key: 0,
|
|
443
443
|
formData: e.formData,
|
|
444
444
|
item: g
|
|
445
|
-
}, void 0, !0) :
|
|
446
|
-
g.type === "mixin" ?
|
|
445
|
+
}, void 0, !0) : B("", !0),
|
|
446
|
+
g.type === "mixin" ? Y(H.$slots, g.key, {
|
|
447
447
|
key: 1,
|
|
448
448
|
formData: e.formData,
|
|
449
449
|
item: g
|
|
450
|
-
}, void 0, !0) :
|
|
451
|
-
g.type === "input" ? (n(),
|
|
450
|
+
}, void 0, !0) : B("", !0),
|
|
451
|
+
g.type === "input" ? (n(), V(w(gt), te({
|
|
452
452
|
key: 2,
|
|
453
453
|
value: e.formData[g.key],
|
|
454
|
-
"onUpdate:value": (
|
|
455
|
-
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
456
|
-
g.type === "select" ? (n(),
|
|
454
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
455
|
+
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
456
|
+
g.type === "select" ? (n(), V(w(tt), te({
|
|
457
457
|
key: 3,
|
|
458
458
|
value: e.formData[g.key],
|
|
459
|
-
"onUpdate:value": (
|
|
459
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
460
460
|
}, { ref_for: !0 }, g.attrs), {
|
|
461
461
|
default: u(() => [
|
|
462
|
-
(n(!0),
|
|
463
|
-
key:
|
|
464
|
-
value:
|
|
462
|
+
(n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(ot), {
|
|
463
|
+
key: Z,
|
|
464
|
+
value: D.value
|
|
465
465
|
}, {
|
|
466
466
|
default: u(() => [
|
|
467
|
-
O(
|
|
467
|
+
O(k(D.label), 1)
|
|
468
468
|
]),
|
|
469
469
|
_: 2
|
|
470
470
|
}, 1032, ["value"]))), 128))
|
|
471
471
|
]),
|
|
472
472
|
_: 2
|
|
473
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
474
|
-
g.type === "checkbox" ? (n(),
|
|
473
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
474
|
+
g.type === "checkbox" ? (n(), V(w(vt), te({
|
|
475
475
|
key: 4,
|
|
476
476
|
value: e.formData[g.key],
|
|
477
|
-
"onUpdate:value": (
|
|
477
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
478
478
|
}, { ref_for: !0 }, g.attrs), {
|
|
479
479
|
default: u(() => [
|
|
480
|
-
(n(!0),
|
|
481
|
-
key:
|
|
482
|
-
value:
|
|
480
|
+
(n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(je), {
|
|
481
|
+
key: Z,
|
|
482
|
+
value: D.value
|
|
483
483
|
}, {
|
|
484
484
|
default: u(() => [
|
|
485
|
-
O(
|
|
485
|
+
O(k(D.label), 1)
|
|
486
486
|
]),
|
|
487
487
|
_: 2
|
|
488
488
|
}, 1032, ["value"]))), 128))
|
|
489
489
|
]),
|
|
490
490
|
_: 2
|
|
491
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
492
|
-
g.type === "date-picker" ? (n(),
|
|
491
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
492
|
+
g.type === "date-picker" ? (n(), V(w(ht), te({
|
|
493
493
|
key: 5,
|
|
494
494
|
value: e.formData[g.key],
|
|
495
|
-
"onUpdate:value": (
|
|
496
|
-
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
497
|
-
g.type === "input-number" ? (n(),
|
|
495
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
496
|
+
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
497
|
+
g.type === "input-number" ? (n(), V(w(bt), te({
|
|
498
498
|
key: 6,
|
|
499
499
|
value: e.formData[g.key],
|
|
500
|
-
"onUpdate:value": (
|
|
501
|
-
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
502
|
-
g.type === "radio" ? (n(),
|
|
500
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
501
|
+
}, { ref_for: !0 }, g.attrs), null, 16, ["value", "onUpdate:value"])) : B("", !0),
|
|
502
|
+
g.type === "radio" ? (n(), V(w(mt), te({
|
|
503
503
|
key: 7,
|
|
504
504
|
value: e.formData[g.key],
|
|
505
|
-
"onUpdate:value": (
|
|
505
|
+
"onUpdate:value": (D) => e.formData[g.key] = D
|
|
506
506
|
}, { ref_for: !0 }, g.attrs), {
|
|
507
507
|
default: u(() => [
|
|
508
|
-
(n(!0),
|
|
509
|
-
key:
|
|
510
|
-
value:
|
|
508
|
+
(n(!0), L(X, null, me(g.options, (D, Z) => (n(), V(w(pt), {
|
|
509
|
+
key: Z,
|
|
510
|
+
value: D.value
|
|
511
511
|
}, {
|
|
512
512
|
default: u(() => [
|
|
513
|
-
O(
|
|
513
|
+
O(k(D.label), 1)
|
|
514
514
|
]),
|
|
515
515
|
_: 2
|
|
516
516
|
}, 1032, ["value"]))), 128))
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
519
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
520
|
-
g.type === "switch" ? (n(),
|
|
519
|
+
}, 1040, ["value", "onUpdate:value"])) : B("", !0),
|
|
520
|
+
g.type === "switch" ? (n(), V(w(ft), te({
|
|
521
521
|
key: 8,
|
|
522
522
|
checked: e.formData[g.key],
|
|
523
|
-
"onUpdate:checked": (
|
|
524
|
-
}, { ref_for: !0 }, g.attrs), null, 16, ["checked", "onUpdate:checked"])) :
|
|
523
|
+
"onUpdate:checked": (D) => e.formData[g.key] = D
|
|
524
|
+
}, { ref_for: !0 }, g.attrs), null, 16, ["checked", "onUpdate:checked"])) : B("", !0)
|
|
525
525
|
]),
|
|
526
526
|
_: 2
|
|
527
527
|
}, [
|
|
528
528
|
g.tooltip ? {
|
|
529
529
|
name: "label",
|
|
530
530
|
fn: u(() => [
|
|
531
|
-
O(
|
|
532
|
-
|
|
531
|
+
O(k(g.label) + " ", 1),
|
|
532
|
+
x(w(We), {
|
|
533
533
|
title: g.tooltip
|
|
534
534
|
}, {
|
|
535
535
|
default: u(() => [
|
|
536
|
-
|
|
536
|
+
x(w(fo), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
537
537
|
]),
|
|
538
538
|
_: 1
|
|
539
539
|
}, 8, ["title"])
|
|
540
540
|
]),
|
|
541
541
|
key: "0"
|
|
542
542
|
} : void 0
|
|
543
|
-
]), 1040, ["name", "class"])) :
|
|
543
|
+
]), 1040, ["name", "class"])) : B("", !0)
|
|
544
544
|
], 64))), 128)),
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
_.value ? B("", !0) : (n(), L("section", Ho, [
|
|
546
|
+
x(se, {
|
|
547
547
|
type: "primary",
|
|
548
548
|
onClick: y,
|
|
549
549
|
class: "hb_list_page_button"
|
|
550
550
|
}, {
|
|
551
551
|
icon: u(() => [
|
|
552
|
-
|
|
552
|
+
x(w(qe))
|
|
553
553
|
]),
|
|
554
554
|
default: u(() => [
|
|
555
|
-
O(" " +
|
|
555
|
+
O(" " + k(H.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}),
|
|
559
|
-
|
|
559
|
+
x(se, {
|
|
560
560
|
type: "link",
|
|
561
|
-
onClick:
|
|
561
|
+
onClick: F
|
|
562
562
|
}, {
|
|
563
563
|
default: u(() => [
|
|
564
|
-
O(
|
|
564
|
+
O(k(H.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
565
565
|
]),
|
|
566
566
|
_: 1
|
|
567
567
|
}),
|
|
568
|
-
e.needFilter ? (n(),
|
|
568
|
+
e.needFilter ? (n(), V(re, {
|
|
569
569
|
key: 0,
|
|
570
|
-
title:
|
|
570
|
+
title: H.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
571
571
|
}, {
|
|
572
572
|
default: u(() => [
|
|
573
573
|
p("span", {
|
|
574
574
|
class: "hb-lib-form-svg",
|
|
575
|
-
onClick:
|
|
576
|
-
}, [...
|
|
575
|
+
onClick: T
|
|
576
|
+
}, [...z[0] || (z[0] = [
|
|
577
577
|
p("svg", {
|
|
578
578
|
t: "1757915025410",
|
|
579
579
|
class: "icon",
|
|
@@ -593,29 +593,29 @@ const Fo = Z(To), Ho = {
|
|
|
593
593
|
])])
|
|
594
594
|
]),
|
|
595
595
|
_: 1
|
|
596
|
-
}, 8, ["title"])) :
|
|
597
|
-
|
|
598
|
-
e.needSearchCase ? (n(),
|
|
596
|
+
}, 8, ["title"])) : B("", !0),
|
|
597
|
+
Y(H.$slots, "formBtns", {}, () => [
|
|
598
|
+
e.needSearchCase ? (n(), V(pe, { key: 0 }, {
|
|
599
599
|
overlay: u(() => [
|
|
600
|
-
|
|
600
|
+
x(be, { onClick: M }, {
|
|
601
601
|
default: u(() => [
|
|
602
|
-
(n(!0),
|
|
602
|
+
(n(!0), L(X, null, me(c.value, (g) => (n(), V(fe, {
|
|
603
603
|
key: g.id
|
|
604
604
|
}, {
|
|
605
605
|
default: u(() => [
|
|
606
|
-
O(
|
|
606
|
+
O(k(g.title), 1)
|
|
607
607
|
]),
|
|
608
608
|
_: 2
|
|
609
609
|
}, 1024))), 128)),
|
|
610
|
-
|
|
610
|
+
x(fe, { key: "add" }, {
|
|
611
611
|
default: u(() => [
|
|
612
|
-
p("span", $o,
|
|
612
|
+
p("span", $o, k(H.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
613
613
|
]),
|
|
614
614
|
_: 1
|
|
615
615
|
}),
|
|
616
|
-
|
|
616
|
+
x(fe, { key: "edit" }, {
|
|
617
617
|
default: u(() => [
|
|
618
|
-
p("span", Io,
|
|
618
|
+
p("span", Io, k(H.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
619
619
|
]),
|
|
620
620
|
_: 1
|
|
621
621
|
})
|
|
@@ -624,10 +624,10 @@ const Fo = Z(To), Ho = {
|
|
|
624
624
|
})
|
|
625
625
|
]),
|
|
626
626
|
default: u(() => [
|
|
627
|
-
|
|
628
|
-
title:
|
|
627
|
+
x(re, {
|
|
628
|
+
title: H.$t("hbLibComp.hbLibListForm.queryCase")
|
|
629
629
|
}, {
|
|
630
|
-
default: u(() => [...
|
|
630
|
+
default: u(() => [...z[1] || (z[1] = [
|
|
631
631
|
p("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
632
632
|
p("svg", {
|
|
633
633
|
t: "1765936014161",
|
|
@@ -659,60 +659,60 @@ const Fo = Z(To), Ho = {
|
|
|
659
659
|
}, 8, ["title"])
|
|
660
660
|
]),
|
|
661
661
|
_: 1
|
|
662
|
-
})) :
|
|
662
|
+
})) : B("", !0)
|
|
663
663
|
], !0)
|
|
664
664
|
]))
|
|
665
665
|
]),
|
|
666
666
|
_: 3
|
|
667
667
|
}, 16, ["model", "class"]),
|
|
668
|
-
|
|
668
|
+
_.value ? (n(), L("div", {
|
|
669
669
|
key: 0,
|
|
670
|
-
class:
|
|
670
|
+
class: Q([w(r).e("footer"), "form-footer"])
|
|
671
671
|
}, [
|
|
672
672
|
p("div", {
|
|
673
|
-
class:
|
|
673
|
+
class: Q(w(r).e("footer__left"))
|
|
674
674
|
}, [
|
|
675
|
-
|
|
675
|
+
Y(H.$slots, "form-footer-left", {}, void 0, !0)
|
|
676
676
|
], 2),
|
|
677
677
|
p("div", {
|
|
678
|
-
class:
|
|
678
|
+
class: Q(w(r).e("footer__right"))
|
|
679
679
|
}, [
|
|
680
|
-
f.value == "show" ?
|
|
680
|
+
f.value == "show" ? Y(H.$slots, "form-footer-right", {
|
|
681
681
|
key: 0,
|
|
682
682
|
formRef: m.value
|
|
683
683
|
}, () => [
|
|
684
|
-
|
|
684
|
+
x(se, {
|
|
685
685
|
type: "primary",
|
|
686
686
|
onClick: y,
|
|
687
687
|
class: "hb_list_page_button"
|
|
688
688
|
}, {
|
|
689
689
|
icon: u(() => [
|
|
690
|
-
|
|
690
|
+
x(w(qe))
|
|
691
691
|
]),
|
|
692
692
|
default: u(() => [
|
|
693
|
-
O(" " +
|
|
693
|
+
O(" " + k(H.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
694
694
|
]),
|
|
695
695
|
_: 1
|
|
696
696
|
}),
|
|
697
|
-
|
|
697
|
+
x(se, {
|
|
698
698
|
type: "link",
|
|
699
|
-
onClick:
|
|
699
|
+
onClick: F,
|
|
700
700
|
class: "hb_list_page_button"
|
|
701
701
|
}, {
|
|
702
702
|
default: u(() => [
|
|
703
|
-
O(
|
|
703
|
+
O(k(H.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
704
704
|
]),
|
|
705
705
|
_: 1
|
|
706
706
|
}),
|
|
707
|
-
e.needFilter ? (n(),
|
|
707
|
+
e.needFilter ? (n(), V(re, {
|
|
708
708
|
key: 0,
|
|
709
|
-
title:
|
|
709
|
+
title: H.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
710
710
|
}, {
|
|
711
711
|
default: u(() => [
|
|
712
712
|
p("span", {
|
|
713
713
|
class: "hb-lib-form-svg",
|
|
714
|
-
onClick:
|
|
715
|
-
}, [...
|
|
714
|
+
onClick: T
|
|
715
|
+
}, [...z[2] || (z[2] = [
|
|
716
716
|
p("svg", {
|
|
717
717
|
t: "1757915025410",
|
|
718
718
|
class: "icon",
|
|
@@ -732,29 +732,29 @@ const Fo = Z(To), Ho = {
|
|
|
732
732
|
])])
|
|
733
733
|
]),
|
|
734
734
|
_: 1
|
|
735
|
-
}, 8, ["title"])) :
|
|
736
|
-
|
|
737
|
-
e.needSearchCase ? (n(),
|
|
735
|
+
}, 8, ["title"])) : B("", !0),
|
|
736
|
+
Y(H.$slots, "formBtns", {}, () => [
|
|
737
|
+
e.needSearchCase ? (n(), V(pe, { key: 0 }, {
|
|
738
738
|
overlay: u(() => [
|
|
739
|
-
|
|
739
|
+
x(be, { onClick: M }, {
|
|
740
740
|
default: u(() => [
|
|
741
|
-
(n(!0),
|
|
741
|
+
(n(!0), L(X, null, me(c.value, (g) => (n(), V(fe, {
|
|
742
742
|
key: g.id
|
|
743
743
|
}, {
|
|
744
744
|
default: u(() => [
|
|
745
|
-
O(
|
|
745
|
+
O(k(g.title), 1)
|
|
746
746
|
]),
|
|
747
747
|
_: 2
|
|
748
748
|
}, 1024))), 128)),
|
|
749
|
-
|
|
749
|
+
x(fe, { key: "add" }, {
|
|
750
750
|
default: u(() => [
|
|
751
|
-
p("span", Mo,
|
|
751
|
+
p("span", Mo, k(H.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
752
752
|
]),
|
|
753
753
|
_: 1
|
|
754
754
|
}),
|
|
755
|
-
|
|
755
|
+
x(fe, { key: "edit" }, {
|
|
756
756
|
default: u(() => [
|
|
757
|
-
p("span", Do,
|
|
757
|
+
p("span", Do, k(H.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
760
|
})
|
|
@@ -763,10 +763,10 @@ const Fo = Z(To), Ho = {
|
|
|
763
763
|
})
|
|
764
764
|
]),
|
|
765
765
|
default: u(() => [
|
|
766
|
-
|
|
767
|
-
title:
|
|
766
|
+
x(re, {
|
|
767
|
+
title: H.$t("hbLibComp.hbLibListForm.queryCase")
|
|
768
768
|
}, {
|
|
769
|
-
default: u(() => [...
|
|
769
|
+
default: u(() => [...z[3] || (z[3] = [
|
|
770
770
|
p("span", {
|
|
771
771
|
class: "hb-lib-form-svg",
|
|
772
772
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -801,29 +801,29 @@ const Fo = Z(To), Ho = {
|
|
|
801
801
|
}, 8, ["title"])
|
|
802
802
|
]),
|
|
803
803
|
_: 1
|
|
804
|
-
})) :
|
|
804
|
+
})) : B("", !0)
|
|
805
805
|
], !0)
|
|
806
|
-
], !0) :
|
|
806
|
+
], !0) : B("", !0)
|
|
807
807
|
], 2)
|
|
808
|
-
], 2)) :
|
|
808
|
+
], 2)) : B("", !0)
|
|
809
809
|
], 2), [
|
|
810
810
|
[Xt, e.isFormExpanded]
|
|
811
811
|
])
|
|
812
812
|
]),
|
|
813
813
|
_: 3
|
|
814
814
|
}),
|
|
815
|
-
|
|
815
|
+
x(he, {
|
|
816
816
|
showNumber: i.value,
|
|
817
|
-
list:
|
|
817
|
+
list: h.value,
|
|
818
818
|
ref_key: "HbSfCmRef",
|
|
819
|
-
ref:
|
|
820
|
-
onConfirm:
|
|
821
|
-
saveKey:
|
|
819
|
+
ref: C,
|
|
820
|
+
onConfirm: b,
|
|
821
|
+
saveKey: v.value
|
|
822
822
|
}, null, 8, ["showNumber", "list", "saveKey"])
|
|
823
823
|
], 64);
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
}), Bo = /* @__PURE__ */
|
|
826
|
+
}), Bo = /* @__PURE__ */ le(Ao, [["__scopeId", "data-v-f513ff59"]]), Oo = ee(Bo), Eo = { class: "hb-lib-list-page-act-box" }, Po = { class: "hb-lib-list-page-breadcrumb" }, No = { class: "hb-lib-list-page-act" }, Uo = {
|
|
827
827
|
key: 0,
|
|
828
828
|
t: "1757915338760",
|
|
829
829
|
class: "icon",
|
|
@@ -843,7 +843,7 @@ const Fo = Z(To), Ho = {
|
|
|
843
843
|
"p-id": "23904",
|
|
844
844
|
width: "200",
|
|
845
845
|
height: "200"
|
|
846
|
-
}, Ro = /* @__PURE__ */
|
|
846
|
+
}, Ro = /* @__PURE__ */ oe({
|
|
847
847
|
name: "HbLibListPageAct",
|
|
848
848
|
__name: "HbListPageAct",
|
|
849
849
|
props: {
|
|
@@ -860,17 +860,17 @@ const Fo = Z(To), Ho = {
|
|
|
860
860
|
const f = /* @__PURE__ */ new Map();
|
|
861
861
|
setTimeout(l ? () => {
|
|
862
862
|
if (i?.length)
|
|
863
|
-
for (let
|
|
864
|
-
const
|
|
865
|
-
|
|
863
|
+
for (let _ = 0; _ < i.length; _++) {
|
|
864
|
+
const h = document.querySelector(i[_]);
|
|
865
|
+
h && (f.set(i[_], h.style.display), h.style.display = "none");
|
|
866
866
|
}
|
|
867
867
|
} : () => {
|
|
868
868
|
if (i?.length)
|
|
869
|
-
for (let
|
|
870
|
-
const
|
|
871
|
-
if (
|
|
872
|
-
const P = f.get(i[
|
|
873
|
-
|
|
869
|
+
for (let _ = 0; _ < i.length; _++) {
|
|
870
|
+
const h = document.querySelector(i[_]);
|
|
871
|
+
if (h) {
|
|
872
|
+
const P = f.get(i[_]);
|
|
873
|
+
h.style.display = P || "", f.delete(i[_]);
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
}, 0);
|
|
@@ -880,8 +880,8 @@ const Fo = Z(To), Ho = {
|
|
|
880
880
|
const l = it();
|
|
881
881
|
let i = localStorage.getItem(o.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", f = l?.path;
|
|
882
882
|
if (i !== "[]") {
|
|
883
|
-
let
|
|
884
|
-
|
|
883
|
+
let _ = JSON.parse(i).find((h) => h.value === f);
|
|
884
|
+
_ && (s.value = _.label.replace(/-/g, " / "));
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
ke(() => {
|
|
@@ -896,20 +896,20 @@ const Fo = Z(To), Ho = {
|
|
|
896
896
|
window.removeEventListener("keydown", r);
|
|
897
897
|
}), (l, i) => {
|
|
898
898
|
const f = j("a-tooltip");
|
|
899
|
-
return n(),
|
|
900
|
-
p("aside", Po,
|
|
899
|
+
return n(), L("section", Eo, [
|
|
900
|
+
p("aside", Po, k(s.value), 1),
|
|
901
901
|
p("aside", No, [
|
|
902
|
-
|
|
903
|
-
title:
|
|
902
|
+
x(f, {
|
|
903
|
+
title: w(a) ? `${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
904
904
|
placement: "leftTop"
|
|
905
905
|
}, {
|
|
906
906
|
default: u(() => [
|
|
907
907
|
p("span", {
|
|
908
908
|
class: "hb-lib-list-page-act-svg",
|
|
909
909
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
910
|
-
(...
|
|
910
|
+
(..._) => w(d) && w(d)(..._))
|
|
911
911
|
}, [
|
|
912
|
-
|
|
912
|
+
w(a) ? (n(), L("svg", zo, [...i[2] || (i[2] = [
|
|
913
913
|
p("path", {
|
|
914
914
|
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",
|
|
915
915
|
fill: "#ff5000",
|
|
@@ -925,7 +925,7 @@ const Fo = Z(To), Ho = {
|
|
|
925
925
|
fill: "#ff5000",
|
|
926
926
|
"p-id": "23907"
|
|
927
927
|
}, null, -1)
|
|
928
|
-
])])) : (n(),
|
|
928
|
+
])])) : (n(), L("svg", Uo, [...i[1] || (i[1] = [
|
|
929
929
|
p("path", {
|
|
930
930
|
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",
|
|
931
931
|
fill: "#ff5000",
|
|
@@ -936,12 +936,12 @@ const Fo = Z(To), Ho = {
|
|
|
936
936
|
]),
|
|
937
937
|
_: 1
|
|
938
938
|
}, 8, ["title"]),
|
|
939
|
-
|
|
939
|
+
Y(l.$slots, "listAct", {}, void 0, !0)
|
|
940
940
|
])
|
|
941
941
|
]);
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
}), Vo = /* @__PURE__ */
|
|
944
|
+
}), Vo = /* @__PURE__ */ le(Ro, [["__scopeId", "data-v-c7cd0710"]]), Wo = ee(Vo), jo = { class: "hb-lib-list-btns-box" }, qo = { class: "hb-lib-list-btns-left" }, Yo = { class: "hb-lib-list-btns-right" }, Ko = /* @__PURE__ */ oe({
|
|
945
945
|
name: "HbLibListBtnsAct",
|
|
946
946
|
__name: "HbListBtns",
|
|
947
947
|
props: {
|
|
@@ -962,12 +962,12 @@ const Fo = Z(To), Ho = {
|
|
|
962
962
|
window.removeEventListener("keydown", c);
|
|
963
963
|
}), (r, l) => {
|
|
964
964
|
const i = j("a-tooltip");
|
|
965
|
-
return n(),
|
|
965
|
+
return n(), L("section", jo, [
|
|
966
966
|
p("aside", qo, [
|
|
967
|
-
|
|
967
|
+
Y(r.$slots, "btnsLeft", {}, void 0, !0)
|
|
968
968
|
]),
|
|
969
969
|
p("aside", Yo, [
|
|
970
|
-
e.needReload ? (n(),
|
|
970
|
+
e.needReload ? (n(), V(i, {
|
|
971
971
|
key: 0,
|
|
972
972
|
title: r.$t("hbLibComp.hbListBtnsAct.reload")
|
|
973
973
|
}, {
|
|
@@ -995,8 +995,8 @@ const Fo = Z(To), Ho = {
|
|
|
995
995
|
])])
|
|
996
996
|
]),
|
|
997
997
|
_: 1
|
|
998
|
-
}, 8, ["title"])) :
|
|
999
|
-
e.needOpenOrClose ? (n(),
|
|
998
|
+
}, 8, ["title"])) : B("", !0),
|
|
999
|
+
e.needOpenOrClose ? (n(), V(i, {
|
|
1000
1000
|
key: 1,
|
|
1001
1001
|
title: a.value ? `${r.$t("hbLibComp.hbListBtnsAct.close")}` : `${r.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
1002
1002
|
}, {
|
|
@@ -1005,43 +1005,43 @@ const Fo = Z(To), Ho = {
|
|
|
1005
1005
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
1006
1006
|
onClick: d
|
|
1007
1007
|
}, [
|
|
1008
|
-
a.value ? (n(),
|
|
1008
|
+
a.value ? (n(), V(w(po), {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1011
|
-
})) : (n(),
|
|
1011
|
+
})) : (n(), V(w(mo), {
|
|
1012
1012
|
key: 1,
|
|
1013
1013
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1014
1014
|
}))
|
|
1015
1015
|
])
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 1
|
|
1018
|
-
}, 8, ["title"])) :
|
|
1019
|
-
|
|
1018
|
+
}, 8, ["title"])) : B("", !0),
|
|
1019
|
+
Y(r.$slots, "btnsRight", {}, void 0, !0)
|
|
1020
1020
|
])
|
|
1021
1021
|
]);
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
}), Go = /* @__PURE__ */
|
|
1024
|
+
}), Go = /* @__PURE__ */ le(Ko, [["__scopeId", "data-v-40c1a746"]]), Jo = ee(Go), Xo = (e = {}) => {
|
|
1025
1025
|
const { formRef: o, offsetBottom: t = 50, minHeight: a = 300, timeOut: d = 100 } = e, s = E(0);
|
|
1026
1026
|
let c = null, r = null, l = null, i = null, f = null;
|
|
1027
|
-
const
|
|
1027
|
+
const _ = () => {
|
|
1028
1028
|
f && clearTimeout(f), f = setTimeout(() => {
|
|
1029
1029
|
requestAnimationFrame(() => {
|
|
1030
1030
|
xe(() => {
|
|
1031
1031
|
const m = document.querySelector(".ant-table"), y = document.querySelector(".ant-pagination");
|
|
1032
1032
|
if (m) {
|
|
1033
|
-
const
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1033
|
+
const F = Math.floor(m.getBoundingClientRect().top), C = window.innerHeight, M = (y ? y.offsetHeight + 20 : 40) + t;
|
|
1034
|
+
let b = C - F - M;
|
|
1035
|
+
b < a && (b = a), s.value = b;
|
|
1036
1036
|
}
|
|
1037
1037
|
});
|
|
1038
1038
|
});
|
|
1039
1039
|
}, 100);
|
|
1040
|
-
},
|
|
1040
|
+
}, h = () => {
|
|
1041
1041
|
const m = document.querySelector(".ant-pagination");
|
|
1042
1042
|
if (m) {
|
|
1043
1043
|
const y = new MutationObserver(() => {
|
|
1044
|
-
|
|
1044
|
+
_();
|
|
1045
1045
|
});
|
|
1046
1046
|
return y.observe(m, {
|
|
1047
1047
|
childList: !0,
|
|
@@ -1054,15 +1054,15 @@ const Fo = Z(To), Ho = {
|
|
|
1054
1054
|
}, P = () => {
|
|
1055
1055
|
const m = document.querySelector(".hb-lib-list-page-form-box");
|
|
1056
1056
|
m && (c = new ResizeObserver(() => {
|
|
1057
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
1058
|
-
|
|
1059
|
-
}),
|
|
1057
|
+
document.querySelectorAll(".ant-tooltip").forEach((F) => {
|
|
1058
|
+
F.style.display = "none";
|
|
1059
|
+
}), _();
|
|
1060
1060
|
}), c.observe(m));
|
|
1061
1061
|
}, I = () => {
|
|
1062
1062
|
const m = document.querySelector(".hb-lib-list-page-form-box");
|
|
1063
1063
|
m && (l = new MutationObserver(() => {
|
|
1064
1064
|
setTimeout(() => {
|
|
1065
|
-
|
|
1065
|
+
_();
|
|
1066
1066
|
}, d);
|
|
1067
1067
|
}), l.observe(m, {
|
|
1068
1068
|
childList: !0,
|
|
@@ -1070,34 +1070,34 @@ const Fo = Z(To), Ho = {
|
|
|
1070
1070
|
attributes: !0,
|
|
1071
1071
|
attributeFilter: ["style", "class"]
|
|
1072
1072
|
}));
|
|
1073
|
-
},
|
|
1073
|
+
}, W = () => {
|
|
1074
1074
|
i && clearTimeout(i), i = setTimeout(() => {
|
|
1075
|
-
|
|
1075
|
+
_();
|
|
1076
1076
|
}, d);
|
|
1077
|
-
},
|
|
1078
|
-
window.addEventListener("resize",
|
|
1079
|
-
P(), I(), r =
|
|
1077
|
+
}, A = () => {
|
|
1078
|
+
window.addEventListener("resize", W), xe(() => {
|
|
1079
|
+
P(), I(), r = h();
|
|
1080
1080
|
});
|
|
1081
|
-
},
|
|
1082
|
-
window.removeEventListener("resize",
|
|
1081
|
+
}, v = () => {
|
|
1082
|
+
window.removeEventListener("resize", W), c && c.disconnect(), l && l.disconnect(), r && r.disconnect(), i && clearTimeout(i), f && clearTimeout(f);
|
|
1083
1083
|
};
|
|
1084
1084
|
return o && ie(
|
|
1085
1085
|
() => o,
|
|
1086
1086
|
() => {
|
|
1087
1087
|
setTimeout(() => {
|
|
1088
|
-
|
|
1088
|
+
_();
|
|
1089
1089
|
}, 200);
|
|
1090
1090
|
},
|
|
1091
1091
|
{ deep: !0 }
|
|
1092
1092
|
), ke(() => {
|
|
1093
|
-
|
|
1093
|
+
_(), A();
|
|
1094
1094
|
}), Be(() => {
|
|
1095
|
-
|
|
1095
|
+
v();
|
|
1096
1096
|
}), {
|
|
1097
1097
|
tableHeight: s,
|
|
1098
|
-
calTableHeight:
|
|
1098
|
+
calTableHeight: _
|
|
1099
1099
|
};
|
|
1100
|
-
}, Qo = /* @__PURE__ */
|
|
1100
|
+
}, Qo = /* @__PURE__ */ oe({
|
|
1101
1101
|
name: "HbLibListPageContainer",
|
|
1102
1102
|
__name: "HbListPageContainer",
|
|
1103
1103
|
props: {
|
|
@@ -1112,38 +1112,38 @@ const Fo = Z(To), Ho = {
|
|
|
1112
1112
|
setup(e) {
|
|
1113
1113
|
const o = Ce("globalCompConfig", {}), { isFullscreen: t } = Rt(document.body), a = e, d = Qt("PageContainerRef"), s = $(() => a.offsetHeight || o.HbLibListPageContainer?.offsetHeight || 110), c = $(() => a.offsetBottom || o.HbLibListPageContainer?.offsetBottom || 20), r = $(() => a.minHeight || o.HbLibListPageContainer?.minHeight || 300), l = $(() => a.timeOut || o.HbLibListPageContainer?.timeOut || 100), i = $(() => a.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1114
1114
|
console.log(a.isUnFixTbHeight);
|
|
1115
|
-
const { calTableHeight: f, tableHeight:
|
|
1115
|
+
const { calTableHeight: f, tableHeight: _ } = Xo({
|
|
1116
1116
|
offsetBottom: c.value,
|
|
1117
1117
|
// 底部预留空间
|
|
1118
1118
|
minHeight: r.value,
|
|
1119
1119
|
// table最小高度 请勿随便修改!!
|
|
1120
1120
|
timeOut: l.value
|
|
1121
|
-
}),
|
|
1121
|
+
}), h = $(() => _.value);
|
|
1122
1122
|
return Bt("HB_LIST_PAGE_CONTAINER", {
|
|
1123
1123
|
PageContainerRef: d,
|
|
1124
1124
|
// 通过函数访问,
|
|
1125
|
-
tableHeight:
|
|
1125
|
+
tableHeight: _,
|
|
1126
1126
|
calTableHeight: f
|
|
1127
|
-
}), (P, I) => (n(),
|
|
1127
|
+
}), (P, I) => (n(), L("section", {
|
|
1128
1128
|
class: "hb-lib-list-page-container",
|
|
1129
1129
|
ref_key: "PageContainerRef",
|
|
1130
1130
|
ref: d
|
|
1131
1131
|
}, [
|
|
1132
|
-
|
|
1132
|
+
Y(P.$slots, "header"),
|
|
1133
1133
|
p("section", {
|
|
1134
1134
|
class: "list-page-box",
|
|
1135
1135
|
style: ve(
|
|
1136
1136
|
i.value ? null : {
|
|
1137
|
-
"--hb-list-table-height":
|
|
1138
|
-
"--hb-list-ttable-height": e.tableData.length ? "" :
|
|
1137
|
+
"--hb-list-table-height": w(t) ? h.value - s.value + "px" : h.value - c.value + "px",
|
|
1138
|
+
"--hb-list-ttable-height": e.tableData.length ? "" : w(t) ? h.value - s.value + "px" : h.value - c.value + "px"
|
|
1139
1139
|
}
|
|
1140
1140
|
)
|
|
1141
1141
|
}, [
|
|
1142
|
-
|
|
1142
|
+
Y(P.$slots, "default")
|
|
1143
1143
|
], 4)
|
|
1144
1144
|
], 512));
|
|
1145
1145
|
}
|
|
1146
|
-
}), Zo =
|
|
1146
|
+
}), Zo = ee(Qo), el = { style: { "font-weight": "500" } }, tl = {
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
class: "hb-lib-search-tag__description"
|
|
1149
1149
|
}, ol = { class: "hb-lib-selector-dropdown" }, ll = { class: "hb-lib-selector-search" }, al = { class: "hb-lib-selector-list" }, nl = ["onClick"], il = { class: "hb-lib-option-content" }, sl = { class: "hb-lib-option-label" }, rl = {
|
|
@@ -1155,7 +1155,7 @@ const Fo = Z(To), Ho = {
|
|
|
1155
1155
|
}, dl = { class: "hb-lib-footer-buttons" }, ul = {
|
|
1156
1156
|
key: 2,
|
|
1157
1157
|
class: "hb-lib-selector-footer"
|
|
1158
|
-
}, fl = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */
|
|
1158
|
+
}, fl = { class: "hb-lib-footer-buttons" }, pl = /* @__PURE__ */ oe({
|
|
1159
1159
|
name: "HbLibListMultiSelect",
|
|
1160
1160
|
__name: "HbListMultiSelect",
|
|
1161
1161
|
props: /* @__PURE__ */ Qe({
|
|
@@ -1178,67 +1178,67 @@ const Fo = Z(To), Ho = {
|
|
|
1178
1178
|
setup(e, { emit: o }) {
|
|
1179
1179
|
const t = e, a = o, d = Ot(e, "value"), s = E(!1), c = E(""), r = E([]), l = E(), i = $(() => {
|
|
1180
1180
|
if (t.remoteSearch || !c.value) return t.options;
|
|
1181
|
-
const
|
|
1182
|
-
return t.options.filter((
|
|
1183
|
-
}), f = $(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"),
|
|
1181
|
+
const C = c.value.toLowerCase();
|
|
1182
|
+
return t.options.filter((T) => T.label.toLowerCase().includes(C) || T.description?.toLowerCase().includes(C));
|
|
1183
|
+
}), f = $(() => t.prefix ? `${t.prefix.length * 14 + 8}px` : "0px"), _ = $(() => i.value.length === 0 ? !1 : i.value.every((C) => r.value.includes(C.value))), h = $(() => {
|
|
1184
1184
|
if (i.value.length === 0) return !1;
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1185
|
+
const C = i.value.filter((T) => r.value.includes(T.value)).length;
|
|
1186
|
+
return C > 0 && C < i.value.length;
|
|
1187
1187
|
});
|
|
1188
1188
|
ie(
|
|
1189
1189
|
() => d.value,
|
|
1190
|
-
(
|
|
1191
|
-
|
|
1190
|
+
(C) => {
|
|
1191
|
+
C ? r.value = Array.isArray(C) ? [...C] : [C] : r.value = [];
|
|
1192
1192
|
},
|
|
1193
1193
|
{ immediate: !0 }
|
|
1194
1194
|
), ie(
|
|
1195
1195
|
() => t.searchValue,
|
|
1196
|
-
(
|
|
1197
|
-
t.remoteSearch &&
|
|
1196
|
+
(C) => {
|
|
1197
|
+
t.remoteSearch && C !== void 0 && (c.value = C);
|
|
1198
1198
|
},
|
|
1199
1199
|
{ immediate: !0 }
|
|
1200
1200
|
);
|
|
1201
|
-
const P = (
|
|
1202
|
-
|
|
1201
|
+
const P = (C) => {
|
|
1202
|
+
C && (s.value = C, I.value = [...r.value], c.value = "", setTimeout(() => {
|
|
1203
1203
|
if (l.value) {
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const T = l.value.input || l.value.$el?.querySelector("input");
|
|
1205
|
+
T && T.focus();
|
|
1206
1206
|
}
|
|
1207
1207
|
}, 100));
|
|
1208
|
-
}, I = E([]),
|
|
1208
|
+
}, I = E([]), W = () => {
|
|
1209
1209
|
r.value = [...I.value], s.value = !1, a("cancel");
|
|
1210
|
-
},
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1213
|
-
}, m = vo((
|
|
1214
|
-
const
|
|
1215
|
-
t.remoteSearch && (a("search",
|
|
1216
|
-
}, 300), y = (
|
|
1210
|
+
}, A = E([]), v = () => {
|
|
1211
|
+
const C = t.multiple ? r.value : r.value[0] || "", T = t.options.filter((M) => r.value.includes(M.value));
|
|
1212
|
+
A.value = T, console.log(C, T), I.value = [...r.value], d.value = C, a("update:value", C), a("change", C, T), a("confirm", C, T), s.value = !1;
|
|
1213
|
+
}, m = vo((C) => {
|
|
1214
|
+
const T = C !== void 0 ? C : c.value;
|
|
1215
|
+
t.remoteSearch && (a("search", T), a("update:searchValue", T));
|
|
1216
|
+
}, 300), y = (C) => {
|
|
1217
1217
|
if (t.multiple) {
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1218
|
+
const T = new Set(r.value);
|
|
1219
|
+
T.has(C.value) ? T.delete(C.value) : T.add(C.value), r.value = Array.from(T);
|
|
1220
1220
|
} else
|
|
1221
|
-
r.value = [
|
|
1222
|
-
},
|
|
1223
|
-
if (
|
|
1224
|
-
const
|
|
1225
|
-
i.value.forEach((
|
|
1226
|
-
|
|
1227
|
-
}), r.value = Array.from(
|
|
1221
|
+
r.value = [C.value], v();
|
|
1222
|
+
}, F = (C) => {
|
|
1223
|
+
if (C.target.checked) {
|
|
1224
|
+
const M = new Set(r.value);
|
|
1225
|
+
i.value.forEach((b) => {
|
|
1226
|
+
M.add(b.value);
|
|
1227
|
+
}), r.value = Array.from(M);
|
|
1228
1228
|
} else {
|
|
1229
|
-
const
|
|
1230
|
-
r.value = r.value.filter((
|
|
1229
|
+
const M = new Set(i.value.map((b) => b.value));
|
|
1230
|
+
r.value = r.value.filter((b) => !M.has(b));
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
1233
|
-
return (
|
|
1234
|
-
const
|
|
1235
|
-
return n(),
|
|
1233
|
+
return (C, T) => {
|
|
1234
|
+
const M = j("a-tag"), b = j("a-input"), S = j("a-checkbox"), N = j("a-radio"), q = j("a-button"), G = j("a-select");
|
|
1235
|
+
return n(), L("div", te({
|
|
1236
1236
|
class: "hb-lib-selector-wrapper",
|
|
1237
1237
|
style: { "--prefix-width": f.value }
|
|
1238
|
-
},
|
|
1239
|
-
|
|
1238
|
+
}, C.$attrs), [
|
|
1239
|
+
x(G, {
|
|
1240
1240
|
value: d.value,
|
|
1241
|
-
"onUpdate:value":
|
|
1241
|
+
"onUpdate:value": T[5] || (T[5] = (H) => d.value = H),
|
|
1242
1242
|
mode: e.multiple ? "multiple" : void 0,
|
|
1243
1243
|
placeholder: e.placeholder,
|
|
1244
1244
|
"show-search": !0,
|
|
@@ -1248,109 +1248,109 @@ const Fo = Z(To), Ho = {
|
|
|
1248
1248
|
maxTagCount: e.maxTagCount,
|
|
1249
1249
|
options: i.value,
|
|
1250
1250
|
onDropdownVisibleChange: P,
|
|
1251
|
-
onSearch:
|
|
1251
|
+
onSearch: w(m),
|
|
1252
1252
|
"max-tag-text-length": e.tagTextLength,
|
|
1253
|
-
class:
|
|
1253
|
+
class: Q({ "has-prefix": e.prefix }),
|
|
1254
1254
|
"data-prefix": e.prefix,
|
|
1255
1255
|
style: { width: "100%" }
|
|
1256
1256
|
}, {
|
|
1257
|
-
tagRender: u(({ value:
|
|
1258
|
-
|
|
1257
|
+
tagRender: u(({ value: H, label: z, closable: se, option: re }) => [
|
|
1258
|
+
x(M, {
|
|
1259
1259
|
class: "hb-lib-search-tag",
|
|
1260
|
-
onClick:
|
|
1260
|
+
onClick: T[0] || (T[0] = () => P(!0))
|
|
1261
1261
|
}, {
|
|
1262
1262
|
default: u(() => [
|
|
1263
|
-
p("span", el,
|
|
1264
|
-
re?.description ? (n(),
|
|
1263
|
+
p("span", el, k(z), 1),
|
|
1264
|
+
re?.description ? (n(), L("span", tl, " (" + k(re.description) + ") ", 1)) : B("", !0)
|
|
1265
1265
|
]),
|
|
1266
1266
|
_: 2
|
|
1267
1267
|
}, 1024)
|
|
1268
1268
|
]),
|
|
1269
|
-
dropdownRender: u(({ menuNode:
|
|
1269
|
+
dropdownRender: u(({ menuNode: H }) => [
|
|
1270
1270
|
p("div", ol, [
|
|
1271
1271
|
p("div", ll, [
|
|
1272
|
-
|
|
1272
|
+
x(b, {
|
|
1273
1273
|
ref_key: "searchInputRef",
|
|
1274
1274
|
ref: l,
|
|
1275
1275
|
class: "hb-lib-selector-search-input",
|
|
1276
1276
|
value: c.value,
|
|
1277
|
-
"onUpdate:value":
|
|
1277
|
+
"onUpdate:value": T[1] || (T[1] = (z) => c.value = z),
|
|
1278
1278
|
placeholder: "请输入关键词搜索",
|
|
1279
1279
|
"allow-clear": "",
|
|
1280
|
-
onInput:
|
|
1280
|
+
onInput: T[2] || (T[2] = (z) => w(m)(z.target.value))
|
|
1281
1281
|
}, {
|
|
1282
1282
|
prefix: u(() => [
|
|
1283
|
-
|
|
1283
|
+
x(w(qe))
|
|
1284
1284
|
]),
|
|
1285
1285
|
_: 1
|
|
1286
1286
|
}, 8, ["value"])
|
|
1287
1287
|
]),
|
|
1288
1288
|
p("div", al, [
|
|
1289
|
-
(n(!0),
|
|
1290
|
-
key:
|
|
1291
|
-
class:
|
|
1292
|
-
onClick: () => y(
|
|
1289
|
+
(n(!0), L(X, null, me(i.value, (z) => (n(), L("div", {
|
|
1290
|
+
key: z.value,
|
|
1291
|
+
class: Q(["hb-lib-selector-option", { selected: r.value.includes(z.value) }]),
|
|
1292
|
+
onClick: () => y(z)
|
|
1293
1293
|
}, [
|
|
1294
|
-
e.multiple ? (n(),
|
|
1294
|
+
e.multiple ? (n(), V(S, {
|
|
1295
1295
|
key: 0,
|
|
1296
|
-
checked: r.value.includes(
|
|
1297
|
-
onChange: () => y(
|
|
1298
|
-
onClick:
|
|
1296
|
+
checked: r.value.includes(z.value),
|
|
1297
|
+
onChange: () => y(z),
|
|
1298
|
+
onClick: T[3] || (T[3] = Re(() => {
|
|
1299
1299
|
}, ["stop"]))
|
|
1300
|
-
}, null, 8, ["checked", "onChange"])) : (n(),
|
|
1300
|
+
}, null, 8, ["checked", "onChange"])) : (n(), V(N, {
|
|
1301
1301
|
key: 1,
|
|
1302
|
-
checked: r.value.includes(
|
|
1303
|
-
onChange: () => y(
|
|
1304
|
-
onClick:
|
|
1302
|
+
checked: r.value.includes(z.value),
|
|
1303
|
+
onChange: () => y(z),
|
|
1304
|
+
onClick: T[4] || (T[4] = Re(() => {
|
|
1305
1305
|
}, ["stop"]))
|
|
1306
1306
|
}, null, 8, ["checked", "onChange"])),
|
|
1307
1307
|
p("div", il, [
|
|
1308
|
-
p("div", sl,
|
|
1308
|
+
p("div", sl, k(z.label), 1)
|
|
1309
1309
|
])
|
|
1310
1310
|
], 10, nl))), 128))
|
|
1311
1311
|
]),
|
|
1312
|
-
i.value.length === 0 ? (n(),
|
|
1313
|
-
e.multiple ? (n(),
|
|
1314
|
-
|
|
1315
|
-
checked:
|
|
1316
|
-
indeterminate:
|
|
1317
|
-
onChange:
|
|
1312
|
+
i.value.length === 0 ? (n(), L("div", rl, k(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : B("", !0),
|
|
1313
|
+
e.multiple ? (n(), L("div", cl, [
|
|
1314
|
+
x(S, {
|
|
1315
|
+
checked: _.value,
|
|
1316
|
+
indeterminate: h.value,
|
|
1317
|
+
onChange: F
|
|
1318
1318
|
}, {
|
|
1319
1319
|
default: u(() => [
|
|
1320
|
-
O(
|
|
1320
|
+
O(k(C.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1321
1321
|
]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}, 8, ["checked", "indeterminate"]),
|
|
1324
1324
|
p("div", dl, [
|
|
1325
|
-
|
|
1325
|
+
x(q, {
|
|
1326
1326
|
size: "small",
|
|
1327
|
-
onClick:
|
|
1327
|
+
onClick: W
|
|
1328
1328
|
}, {
|
|
1329
1329
|
default: u(() => [
|
|
1330
|
-
O(
|
|
1330
|
+
O(k(C.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1331
1331
|
]),
|
|
1332
1332
|
_: 1
|
|
1333
1333
|
}),
|
|
1334
|
-
|
|
1334
|
+
x(q, {
|
|
1335
1335
|
type: "primary",
|
|
1336
1336
|
size: "small",
|
|
1337
|
-
onClick:
|
|
1337
|
+
onClick: v
|
|
1338
1338
|
}, {
|
|
1339
1339
|
default: u(() => [
|
|
1340
|
-
O(
|
|
1340
|
+
O(k(C.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1341
1341
|
]),
|
|
1342
1342
|
_: 1
|
|
1343
1343
|
})
|
|
1344
1344
|
])
|
|
1345
|
-
])) : (n(),
|
|
1346
|
-
|
|
1345
|
+
])) : (n(), L("div", ul, [
|
|
1346
|
+
T[6] || (T[6] = p("div", null, null, -1)),
|
|
1347
1347
|
p("div", fl, [
|
|
1348
|
-
|
|
1348
|
+
x(q, {
|
|
1349
1349
|
size: "small",
|
|
1350
|
-
onClick:
|
|
1350
|
+
onClick: W
|
|
1351
1351
|
}, {
|
|
1352
1352
|
default: u(() => [
|
|
1353
|
-
O(
|
|
1353
|
+
O(k(C.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1354
1354
|
]),
|
|
1355
1355
|
_: 1
|
|
1356
1356
|
})
|
|
@@ -1363,7 +1363,7 @@ const Fo = Z(To), Ho = {
|
|
|
1363
1363
|
], 16);
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
}), ml = /* @__PURE__ */
|
|
1366
|
+
}), ml = /* @__PURE__ */ le(pl, [["__scopeId", "data-v-87177371"]]), bl = ee(ml), hl = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-lib-form-item-filter-modal-buttons" }, gl = { key: 0 }, yl = /* @__PURE__ */ oe({
|
|
1367
1367
|
name: "HbLibMutilpleSelectModal",
|
|
1368
1368
|
__name: "HbMutilpleSelectModal",
|
|
1369
1369
|
props: {
|
|
@@ -1377,148 +1377,148 @@ const Fo = Z(To), Ho = {
|
|
|
1377
1377
|
},
|
|
1378
1378
|
emits: ["handleConfirm", "handleCancel"],
|
|
1379
1379
|
setup(e, { expose: o, emit: t }) {
|
|
1380
|
-
const a = e, d = t, s = E(!1), c = E(""), r = E(), l = E(), i = E([]), f = E([]),
|
|
1380
|
+
const a = e, d = t, s = E(!1), c = E(""), r = E(), l = E(), i = E([]), f = E([]), _ = E(), h = Ne({
|
|
1381
1381
|
searchText: "",
|
|
1382
1382
|
searchedColumn: ""
|
|
1383
|
-
}), P = $(() => a.tableData.map((
|
|
1384
|
-
|
|
1383
|
+
}), P = $(() => a.tableData.map((M) => (M.id = M.id || Math.random(), M))), I = $(() => a.tableColumn.map((M) => (M.customFilterDropdown && (M.onFilter = (b, S) => S[M.dataIndex].toString().toLowerCase().includes(b.toLowerCase()), M.onFilterDropdownVisibleChange = (b) => {
|
|
1384
|
+
b && setTimeout(() => {
|
|
1385
1385
|
r.value?.focus();
|
|
1386
1386
|
}, 100);
|
|
1387
|
-
}), { ...
|
|
1388
|
-
let
|
|
1389
|
-
f.value.forEach((
|
|
1390
|
-
|
|
1391
|
-
}), c.value =
|
|
1392
|
-
},
|
|
1387
|
+
}), { ...M }))), W = () => {
|
|
1388
|
+
let M = "";
|
|
1389
|
+
f.value.forEach((b) => {
|
|
1390
|
+
M = M + b[a.labelKey] + ",";
|
|
1391
|
+
}), c.value = M.substring(0, M.length - 1), s.value = !1, d("handleConfirm", f.value);
|
|
1392
|
+
}, A = () => {
|
|
1393
1393
|
s.value = !1;
|
|
1394
|
-
},
|
|
1394
|
+
}, v = () => {
|
|
1395
1395
|
s.value = !0, xe(() => {
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1396
|
+
const M = _.value?.$el?.querySelector(".ant-table-body");
|
|
1397
|
+
M && (M.scrollTop = 0);
|
|
1398
1398
|
});
|
|
1399
1399
|
}, m = () => {
|
|
1400
1400
|
i.value = [], f.value = [];
|
|
1401
1401
|
}, y = () => {
|
|
1402
1402
|
c.value = "", m();
|
|
1403
|
-
},
|
|
1404
|
-
|
|
1405
|
-
},
|
|
1406
|
-
|
|
1407
|
-
},
|
|
1408
|
-
i.value =
|
|
1403
|
+
}, F = (M, b, S) => {
|
|
1404
|
+
b(), h.searchText = M[0], h.searchedColumn = S;
|
|
1405
|
+
}, C = (M, b) => {
|
|
1406
|
+
M({ confirm: !0 }), h.searchText = "", b();
|
|
1407
|
+
}, T = (M, b) => {
|
|
1408
|
+
i.value = M, f.value = b;
|
|
1409
1409
|
};
|
|
1410
1410
|
return o({
|
|
1411
1411
|
resetInputVal: y
|
|
1412
|
-
}), (
|
|
1413
|
-
const
|
|
1414
|
-
return n(),
|
|
1412
|
+
}), (M, b) => {
|
|
1413
|
+
const S = j("a-input"), N = j("a-button"), q = j("a-table"), G = j("a-modal");
|
|
1414
|
+
return n(), L("div", {
|
|
1415
1415
|
class: "hb-lib-multipleSelectModal-box",
|
|
1416
1416
|
ref_key: "hbMultipSelectModalRef",
|
|
1417
1417
|
ref: l
|
|
1418
1418
|
}, [
|
|
1419
|
-
|
|
1419
|
+
x(S, {
|
|
1420
1420
|
readonly: "",
|
|
1421
|
-
onClick:
|
|
1421
|
+
onClick: v,
|
|
1422
1422
|
value: c.value,
|
|
1423
|
-
"onUpdate:value":
|
|
1424
|
-
placeholder:
|
|
1423
|
+
"onUpdate:value": b[0] || (b[0] = (H) => c.value = H),
|
|
1424
|
+
placeholder: M.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1425
1425
|
}, {
|
|
1426
1426
|
addonAfter: u(() => [
|
|
1427
|
-
|
|
1427
|
+
x(w(bo), { onClick: v })
|
|
1428
1428
|
]),
|
|
1429
1429
|
_: 1
|
|
1430
1430
|
}, 8, ["value", "placeholder"]),
|
|
1431
|
-
|
|
1431
|
+
x(G, {
|
|
1432
1432
|
visible: s.value,
|
|
1433
|
-
"onUpdate:visible":
|
|
1433
|
+
"onUpdate:visible": b[1] || (b[1] = (H) => s.value = H),
|
|
1434
1434
|
title: e.modelTitle,
|
|
1435
1435
|
width: e.modalWidth,
|
|
1436
1436
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1437
1437
|
}, {
|
|
1438
1438
|
footer: u(() => [
|
|
1439
|
-
|
|
1439
|
+
x(N, { onClick: m }, {
|
|
1440
1440
|
default: u(() => [
|
|
1441
|
-
O(
|
|
1441
|
+
O(k(M.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1442
1442
|
]),
|
|
1443
1443
|
_: 1
|
|
1444
1444
|
}),
|
|
1445
|
-
|
|
1445
|
+
x(N, { onClick: A }, {
|
|
1446
1446
|
default: u(() => [
|
|
1447
|
-
O(
|
|
1447
|
+
O(k(M.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1448
1448
|
]),
|
|
1449
1449
|
_: 1
|
|
1450
1450
|
}),
|
|
1451
|
-
|
|
1451
|
+
x(N, {
|
|
1452
1452
|
type: "primary",
|
|
1453
|
-
onClick:
|
|
1453
|
+
onClick: W
|
|
1454
1454
|
}, {
|
|
1455
1455
|
default: u(() => [
|
|
1456
|
-
O(
|
|
1456
|
+
O(k(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1457
1457
|
]),
|
|
1458
1458
|
_: 1
|
|
1459
1459
|
})
|
|
1460
1460
|
]),
|
|
1461
1461
|
default: u(() => [
|
|
1462
|
-
|
|
1462
|
+
x(q, {
|
|
1463
1463
|
ref_key: "tableRef",
|
|
1464
|
-
ref:
|
|
1464
|
+
ref: _,
|
|
1465
1465
|
columns: I.value,
|
|
1466
1466
|
dataSource: P.value,
|
|
1467
|
-
rowSelection: { selectedRowKeys: i.value, onChange:
|
|
1468
|
-
rowKey: (
|
|
1467
|
+
rowSelection: { selectedRowKeys: i.value, onChange: T },
|
|
1468
|
+
rowKey: (H) => H[e.tableKey],
|
|
1469
1469
|
scroll: { y: e.tableHeight }
|
|
1470
1470
|
}, {
|
|
1471
|
-
customFilterDropdown: u(({ setSelectedKeys:
|
|
1471
|
+
customFilterDropdown: u(({ setSelectedKeys: H, selectedKeys: z, confirm: se, clearFilters: re, column: fe }) => [
|
|
1472
1472
|
p("div", hl, [
|
|
1473
|
-
|
|
1473
|
+
x(S, {
|
|
1474
1474
|
ref_key: "searchInput",
|
|
1475
1475
|
ref: r,
|
|
1476
1476
|
placeholder: `请输入${fe.title}`,
|
|
1477
|
-
value:
|
|
1477
|
+
value: z[0],
|
|
1478
1478
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1479
|
-
onChange: (be) =>
|
|
1480
|
-
onPressEnter: (be) =>
|
|
1479
|
+
onChange: (be) => H(be.target.value ? [be.target.value] : []),
|
|
1480
|
+
onPressEnter: (be) => F(z, se, fe.dataIndex)
|
|
1481
1481
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1482
1482
|
p("section", vl, [
|
|
1483
|
-
|
|
1483
|
+
x(N, {
|
|
1484
1484
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1485
1485
|
type: "ghost",
|
|
1486
|
-
onClick: (be) =>
|
|
1486
|
+
onClick: (be) => C(re, se)
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: u(() => [
|
|
1489
|
-
O(
|
|
1489
|
+
O(k(M.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 1
|
|
1492
1492
|
}, 8, ["onClick"]),
|
|
1493
|
-
|
|
1493
|
+
x(N, {
|
|
1494
1494
|
type: "primary",
|
|
1495
1495
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1496
|
-
onClick: (be) =>
|
|
1496
|
+
onClick: (be) => F(z, se, fe.dataIndex)
|
|
1497
1497
|
}, {
|
|
1498
1498
|
default: u(() => [
|
|
1499
|
-
O(
|
|
1499
|
+
O(k(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1500
1500
|
]),
|
|
1501
1501
|
_: 1
|
|
1502
1502
|
}, 8, ["onClick"])
|
|
1503
1503
|
])
|
|
1504
1504
|
])
|
|
1505
1505
|
]),
|
|
1506
|
-
customFilterIcon: u(({ filtered:
|
|
1507
|
-
|
|
1508
|
-
style: ve({ color:
|
|
1506
|
+
customFilterIcon: u(({ filtered: H }) => [
|
|
1507
|
+
x(w(qe), {
|
|
1508
|
+
style: ve({ color: H ? "#108ee9" : void 0 })
|
|
1509
1509
|
}, null, 8, ["style"])
|
|
1510
1510
|
]),
|
|
1511
|
-
bodyCell: u(({ text:
|
|
1512
|
-
|
|
1513
|
-
(n(!0),
|
|
1514
|
-
se.toLowerCase() ===
|
|
1511
|
+
bodyCell: u(({ text: H, column: z }) => [
|
|
1512
|
+
h.searchText && h.searchedColumn === z.dataIndex ? (n(), L("span", gl, [
|
|
1513
|
+
(n(!0), L(X, null, me(H.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`, "i")), (se, re) => (n(), L(X, null, [
|
|
1514
|
+
se.toLowerCase() === h.searchText.toLowerCase() ? (n(), L("mark", {
|
|
1515
1515
|
key: re,
|
|
1516
1516
|
class: "highlight"
|
|
1517
|
-
},
|
|
1518
|
-
O(
|
|
1517
|
+
}, k(se), 1)) : (n(), L(X, { key: 1 }, [
|
|
1518
|
+
O(k(se), 1)
|
|
1519
1519
|
], 64))
|
|
1520
1520
|
], 64))), 256))
|
|
1521
|
-
])) :
|
|
1521
|
+
])) : B("", !0)
|
|
1522
1522
|
]),
|
|
1523
1523
|
_: 1
|
|
1524
1524
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1528,13 +1528,13 @@ const Fo = Z(To), Ho = {
|
|
|
1528
1528
|
], 512);
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
|
-
}), _l =
|
|
1531
|
+
}), _l = ee(yl), Ll = { class: "hb-lib-table-act-box" }, wl = ["onClick"], Cl = {
|
|
1532
1532
|
href: "javascript:;",
|
|
1533
1533
|
class: "hb-lib-table-main-action"
|
|
1534
1534
|
}, kl = ["onClick"], Sl = {
|
|
1535
1535
|
href: "javascript:;",
|
|
1536
1536
|
class: "hb-lib-table-more-action"
|
|
1537
|
-
}, xl = ["onClick"], Tl = { href: "javascript:;" }, Fl = ["onClick"], Hl = { class: "hb-lib-table-confirm-modal-content" }, $l = /* @__PURE__ */
|
|
1537
|
+
}, xl = ["onClick"], Tl = { href: "javascript:;" }, Fl = ["onClick"], Hl = { class: "hb-lib-table-confirm-modal-content" }, $l = /* @__PURE__ */ oe({
|
|
1538
1538
|
name: "HbLibTableAct",
|
|
1539
1539
|
__name: "HbTableAct",
|
|
1540
1540
|
props: {
|
|
@@ -1544,31 +1544,31 @@ const Fo = Z(To), Ho = {
|
|
|
1544
1544
|
buttonDisplaysQuantity: {}
|
|
1545
1545
|
},
|
|
1546
1546
|
setup(e, { expose: o }) {
|
|
1547
|
-
const t = e, { t: a } = ye(), d = E(!1), s = E(!1), c = E(null), r = $(() => t.actions.filter((
|
|
1548
|
-
function f(
|
|
1547
|
+
const t = e, { t: a } = ye(), d = E(!1), s = E(!1), c = E(null), r = $(() => t.actions.filter((A) => A.condition !== void 0 ? A.condition : !0)), l = $(() => r.value.slice(0, t.buttonDisplaysQuantity)), i = $(() => f(r.value.slice(t.buttonDisplaysQuantity)));
|
|
1548
|
+
function f(A) {
|
|
1549
1549
|
if (t.filterPermission)
|
|
1550
|
-
return t.filterPermission(
|
|
1551
|
-
let
|
|
1552
|
-
return
|
|
1553
|
-
(!y.permissionsTag ||
|
|
1550
|
+
return t.filterPermission(A);
|
|
1551
|
+
let v = [], m = [];
|
|
1552
|
+
return v = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(v) || A.length === 0 ? (v = [], []) : (v = v.filter((y) => y.type != "2"), A.forEach((y) => {
|
|
1553
|
+
(!y.permissionsTag || v.findIndex((F) => F.action === y.permissionsTag) !== -1) && m.push(y);
|
|
1554
1554
|
}), m);
|
|
1555
1555
|
}
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
},
|
|
1559
|
-
c.value =
|
|
1556
|
+
const _ = (A) => {
|
|
1557
|
+
A.handler && A.handler(t.record);
|
|
1558
|
+
}, h = (A) => {
|
|
1559
|
+
c.value = A, d.value = !0;
|
|
1560
1560
|
}, P = () => {
|
|
1561
1561
|
if (c.value) {
|
|
1562
1562
|
s.value = !0;
|
|
1563
1563
|
try {
|
|
1564
|
-
|
|
1564
|
+
_(c.value), s.value = !1, d.value = !1;
|
|
1565
1565
|
} catch {
|
|
1566
1566
|
s.value = !1;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
1569
|
}, I = () => {
|
|
1570
1570
|
d.value = !1, c.value = null;
|
|
1571
|
-
},
|
|
1571
|
+
}, W = $(() => c.value ? {
|
|
1572
1572
|
title: c.value.confirmTitle,
|
|
1573
1573
|
content: c.value.confirmContent || c.value.confirmTitle
|
|
1574
1574
|
} : {
|
|
@@ -1582,112 +1582,112 @@ const Fo = Z(To), Ho = {
|
|
|
1582
1582
|
APopconfirm: Je,
|
|
1583
1583
|
AModal: Ze,
|
|
1584
1584
|
DownOutlined: lt
|
|
1585
|
-
}), (
|
|
1585
|
+
}), (A, v) => {
|
|
1586
1586
|
const m = j("a-divider"), y = Et("has");
|
|
1587
|
-
return n(),
|
|
1588
|
-
(n(!0),
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
_e((n(),
|
|
1587
|
+
return n(), L("div", Ll, [
|
|
1588
|
+
(n(!0), L(X, null, me(l.value, (F, C) => (n(), L(X, { key: C }, [
|
|
1589
|
+
F.needConfirm ? (n(), L(X, { key: 0 }, [
|
|
1590
|
+
F.confirmType === "modal" ? (n(), L(X, { key: 0 }, [
|
|
1591
|
+
_e((n(), L("a", {
|
|
1592
1592
|
href: "javascript:;",
|
|
1593
|
-
onClick: (
|
|
1593
|
+
onClick: (T) => h(F),
|
|
1594
1594
|
class: "hb-lib-table-main-action"
|
|
1595
1595
|
}, [
|
|
1596
|
-
O(
|
|
1596
|
+
O(k(F.label), 1)
|
|
1597
1597
|
], 8, wl)), [
|
|
1598
|
-
[y,
|
|
1598
|
+
[y, F.permissionsTag || null]
|
|
1599
1599
|
]),
|
|
1600
|
-
i.value && i.value.length > 0 ||
|
|
1600
|
+
i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
|
|
1601
1601
|
key: 0,
|
|
1602
1602
|
type: "vertical"
|
|
1603
|
-
})) :
|
|
1604
|
-
], 64)) : (n(),
|
|
1605
|
-
|
|
1606
|
-
title:
|
|
1607
|
-
onConfirm: (
|
|
1603
|
+
})) : B("", !0)
|
|
1604
|
+
], 64)) : (n(), L(X, { key: 1 }, [
|
|
1605
|
+
x(w(Je), {
|
|
1606
|
+
title: F.confirmTitle,
|
|
1607
|
+
onConfirm: (T) => _(F)
|
|
1608
1608
|
}, {
|
|
1609
1609
|
default: u(() => [
|
|
1610
|
-
_e((n(),
|
|
1611
|
-
O(
|
|
1610
|
+
_e((n(), L("a", Cl, [
|
|
1611
|
+
O(k(F.label), 1)
|
|
1612
1612
|
])), [
|
|
1613
|
-
[y,
|
|
1613
|
+
[y, F.permissionsTag || null]
|
|
1614
1614
|
])
|
|
1615
1615
|
]),
|
|
1616
1616
|
_: 2
|
|
1617
1617
|
}, 1032, ["title", "onConfirm"]),
|
|
1618
|
-
i.value && i.value.length > 0 ||
|
|
1618
|
+
i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
type: "vertical"
|
|
1621
|
-
})) :
|
|
1621
|
+
})) : B("", !0)
|
|
1622
1622
|
], 64))
|
|
1623
|
-
], 64)) :
|
|
1624
|
-
|
|
1625
|
-
i.value && i.value.length > 0 ||
|
|
1623
|
+
], 64)) : F.slot ? (n(), L(X, { key: 1 }, [
|
|
1624
|
+
Y(A.$slots, F.slot, { item: F }, void 0, !0),
|
|
1625
|
+
i.value && i.value.length > 0 || C !== l.value.length - 1 ? (n(), V(m, {
|
|
1626
1626
|
key: 0,
|
|
1627
1627
|
type: "vertical"
|
|
1628
|
-
})) :
|
|
1629
|
-
], 64)) : (n(),
|
|
1630
|
-
_e((n(),
|
|
1628
|
+
})) : B("", !0)
|
|
1629
|
+
], 64)) : (n(), L(X, { key: 2 }, [
|
|
1630
|
+
_e((n(), L("a", {
|
|
1631
1631
|
href: "javascript:;",
|
|
1632
|
-
onClick: (
|
|
1632
|
+
onClick: (T) => _(F),
|
|
1633
1633
|
class: "hb-lib-table-main-action"
|
|
1634
1634
|
}, [
|
|
1635
|
-
O(
|
|
1635
|
+
O(k(F.label), 1)
|
|
1636
1636
|
], 8, kl)), [
|
|
1637
|
-
[y,
|
|
1637
|
+
[y, F.permissionsTag || null]
|
|
1638
1638
|
]),
|
|
1639
|
-
i.value && i.value.length > 0 ||
|
|
1639
|
+
i.value && i.value.length > 0 || C !== l.value.length - 1 ? _e((n(), V(m, {
|
|
1640
1640
|
key: 0,
|
|
1641
1641
|
type: "vertical"
|
|
1642
1642
|
}, null, 512)), [
|
|
1643
|
-
[y,
|
|
1644
|
-
]) :
|
|
1643
|
+
[y, F.permissionsTag || null]
|
|
1644
|
+
]) : B("", !0)
|
|
1645
1645
|
], 64))
|
|
1646
1646
|
], 64))), 128)),
|
|
1647
|
-
i.value && i.value.length > 0 ? (n(),
|
|
1647
|
+
i.value && i.value.length > 0 ? (n(), V(w(Ct), { key: 0 }, {
|
|
1648
1648
|
overlay: u(() => [
|
|
1649
|
-
|
|
1649
|
+
x(w(wt), null, {
|
|
1650
1650
|
default: u(() => [
|
|
1651
|
-
(n(!0),
|
|
1651
|
+
(n(!0), L(X, null, me(i.value, (F, C) => _e((n(), V(w(Lt), { key: C }, {
|
|
1652
1652
|
default: u(() => [
|
|
1653
|
-
|
|
1654
|
-
|
|
1653
|
+
F.needConfirm ? (n(), L(X, { key: 0 }, [
|
|
1654
|
+
F.confirmType === "modal" ? _e((n(), L("a", {
|
|
1655
1655
|
key: 0,
|
|
1656
1656
|
href: "javascript:;",
|
|
1657
|
-
onClick: (
|
|
1657
|
+
onClick: (T) => h(F)
|
|
1658
1658
|
}, [
|
|
1659
|
-
O(
|
|
1659
|
+
O(k(F.label), 1)
|
|
1660
1660
|
], 8, xl)), [
|
|
1661
|
-
[y,
|
|
1662
|
-
]) : _e((n(),
|
|
1661
|
+
[y, F.permissionsTag || null]
|
|
1662
|
+
]) : _e((n(), V(w(Je), {
|
|
1663
1663
|
key: 1,
|
|
1664
|
-
title:
|
|
1665
|
-
onConfirm: (
|
|
1664
|
+
title: F.confirmTitle,
|
|
1665
|
+
onConfirm: (T) => _(F)
|
|
1666
1666
|
}, {
|
|
1667
1667
|
default: u(() => [
|
|
1668
|
-
_e((n(),
|
|
1669
|
-
O(
|
|
1668
|
+
_e((n(), L("a", Tl, [
|
|
1669
|
+
O(k(F.label), 1)
|
|
1670
1670
|
])), [
|
|
1671
|
-
[y,
|
|
1671
|
+
[y, F.permissionsTag || null]
|
|
1672
1672
|
])
|
|
1673
1673
|
]),
|
|
1674
1674
|
_: 2
|
|
1675
1675
|
}, 1032, ["title", "onConfirm"])), [
|
|
1676
|
-
[y,
|
|
1676
|
+
[y, F.permissionsTag || null]
|
|
1677
1677
|
])
|
|
1678
|
-
], 64)) : _e((n(),
|
|
1678
|
+
], 64)) : _e((n(), L("a", {
|
|
1679
1679
|
key: 1,
|
|
1680
1680
|
href: "javascript:;",
|
|
1681
|
-
onClick: (
|
|
1681
|
+
onClick: (T) => _(F)
|
|
1682
1682
|
}, [
|
|
1683
|
-
O(
|
|
1683
|
+
O(k(F.label), 1)
|
|
1684
1684
|
], 8, Fl)), [
|
|
1685
|
-
[y,
|
|
1685
|
+
[y, F.permissionsTag || null]
|
|
1686
1686
|
])
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 2
|
|
1689
1689
|
}, 1024)), [
|
|
1690
|
-
[y,
|
|
1690
|
+
[y, F.permissionsTag || null]
|
|
1691
1691
|
])), 128))
|
|
1692
1692
|
]),
|
|
1693
1693
|
_: 1
|
|
@@ -1695,28 +1695,28 @@ const Fo = Z(To), Ho = {
|
|
|
1695
1695
|
]),
|
|
1696
1696
|
default: u(() => [
|
|
1697
1697
|
p("a", Sl, [
|
|
1698
|
-
O(
|
|
1699
|
-
|
|
1698
|
+
O(k(A.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1699
|
+
x(w(lt), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1700
1700
|
])
|
|
1701
1701
|
]),
|
|
1702
1702
|
_: 1
|
|
1703
|
-
})) :
|
|
1704
|
-
|
|
1703
|
+
})) : B("", !0),
|
|
1704
|
+
x(w(Ze), {
|
|
1705
1705
|
visible: d.value,
|
|
1706
|
-
title:
|
|
1706
|
+
title: W.value.title,
|
|
1707
1707
|
"confirm-loading": s.value,
|
|
1708
1708
|
onOk: P,
|
|
1709
1709
|
onCancel: I
|
|
1710
1710
|
}, {
|
|
1711
1711
|
default: u(() => [
|
|
1712
|
-
p("p", Hl,
|
|
1712
|
+
p("p", Hl, k(W.value.content), 1)
|
|
1713
1713
|
]),
|
|
1714
1714
|
_: 1
|
|
1715
1715
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1716
1716
|
]);
|
|
1717
1717
|
};
|
|
1718
1718
|
}
|
|
1719
|
-
}), Il = /* @__PURE__ */
|
|
1719
|
+
}), Il = /* @__PURE__ */ le($l, [["__scopeId", "data-v-25fd055e"]]), Ml = ee(Il), kt = (e) => ({ tableWidth: $(() => {
|
|
1720
1720
|
const t = Array.isArray(e) ? e : e.value;
|
|
1721
1721
|
return !t || t.length === 0 ? 0 : t.map((a) => a.width && Number(a.width.toString().replace("px", "")) || 0).reduce((a, d) => a + d, 0);
|
|
1722
1722
|
}) });
|
|
@@ -1780,56 +1780,56 @@ var Xe = function() {
|
|
|
1780
1780
|
return Vt.Date.now();
|
|
1781
1781
|
}, ta = "Expected a function", oa = Math.max, la = Math.min;
|
|
1782
1782
|
function jt(e, o, t) {
|
|
1783
|
-
var a, d, s, c, r, l, i = 0, f = !1,
|
|
1783
|
+
var a, d, s, c, r, l, i = 0, f = !1, _ = !1, h = !0;
|
|
1784
1784
|
if (typeof e != "function")
|
|
1785
1785
|
throw new TypeError(ta);
|
|
1786
|
-
o = Tt(o) || 0, at(t) && (f = !!t.leading,
|
|
1787
|
-
function P(
|
|
1788
|
-
var
|
|
1789
|
-
return a = d = void 0, i =
|
|
1786
|
+
o = Tt(o) || 0, at(t) && (f = !!t.leading, _ = "maxWait" in t, s = _ ? oa(Tt(t.maxWait) || 0, o) : s, h = "trailing" in t ? !!t.trailing : h);
|
|
1787
|
+
function P(T) {
|
|
1788
|
+
var M = a, b = d;
|
|
1789
|
+
return a = d = void 0, i = T, c = e.apply(b, M), c;
|
|
1790
1790
|
}
|
|
1791
|
-
function I(
|
|
1792
|
-
return i =
|
|
1791
|
+
function I(T) {
|
|
1792
|
+
return i = T, r = setTimeout(v, o), f ? P(T) : c;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1795
|
-
var
|
|
1796
|
-
return
|
|
1794
|
+
function W(T) {
|
|
1795
|
+
var M = T - l, b = T - i, S = o - M;
|
|
1796
|
+
return _ ? la(S, s - b) : S;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1799
|
-
var
|
|
1800
|
-
return l === void 0 ||
|
|
1798
|
+
function A(T) {
|
|
1799
|
+
var M = T - l, b = T - i;
|
|
1800
|
+
return l === void 0 || M >= o || M < 0 || _ && b >= s;
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1803
|
-
var
|
|
1804
|
-
if (
|
|
1805
|
-
return m(
|
|
1806
|
-
r = setTimeout(
|
|
1802
|
+
function v() {
|
|
1803
|
+
var T = Xe();
|
|
1804
|
+
if (A(T))
|
|
1805
|
+
return m(T);
|
|
1806
|
+
r = setTimeout(v, W(T));
|
|
1807
1807
|
}
|
|
1808
|
-
function m(
|
|
1809
|
-
return r = void 0,
|
|
1808
|
+
function m(T) {
|
|
1809
|
+
return r = void 0, h && a ? P(T) : (a = d = void 0, c);
|
|
1810
1810
|
}
|
|
1811
1811
|
function y() {
|
|
1812
1812
|
r !== void 0 && clearTimeout(r), i = 0, a = l = d = r = void 0;
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function F() {
|
|
1815
1815
|
return r === void 0 ? c : m(Xe());
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1818
|
-
var
|
|
1819
|
-
if (a = arguments, d = this, l =
|
|
1817
|
+
function C() {
|
|
1818
|
+
var T = Xe(), M = A(T);
|
|
1819
|
+
if (a = arguments, d = this, l = T, M) {
|
|
1820
1820
|
if (r === void 0)
|
|
1821
1821
|
return I(l);
|
|
1822
|
-
if (
|
|
1823
|
-
return clearTimeout(r), r = setTimeout(
|
|
1822
|
+
if (_)
|
|
1823
|
+
return clearTimeout(r), r = setTimeout(v, o), P(l);
|
|
1824
1824
|
}
|
|
1825
|
-
return r === void 0 && (r = setTimeout(
|
|
1825
|
+
return r === void 0 && (r = setTimeout(v, o)), c;
|
|
1826
1826
|
}
|
|
1827
|
-
return
|
|
1827
|
+
return C.cancel = y, C.flush = F, C;
|
|
1828
1828
|
}
|
|
1829
1829
|
const aa = {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
class: "hb-lib-list-table-act"
|
|
1832
|
-
}, na = { class: "empty-container" }, ia = { key: 1 }, sa = { key: 2 }, ra = /* @__PURE__ */
|
|
1832
|
+
}, na = { class: "empty-container" }, ia = { key: 1 }, sa = { key: 2 }, ra = /* @__PURE__ */ oe({
|
|
1833
1833
|
name: "HbLibListTable",
|
|
1834
1834
|
__name: "HbListTable",
|
|
1835
1835
|
props: {
|
|
@@ -1844,19 +1844,25 @@ const aa = {
|
|
|
1844
1844
|
const t = Ce("globalCompConfig", {}), a = o, { t: d } = ye(), s = e, c = E([]), r = Ce("HB_LIST_PAGE_CONTAINER"), { tableWidth: l } = kt(c), i = E(l.value), f = $(() => s.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1845
1845
|
ie(
|
|
1846
1846
|
() => s.columns,
|
|
1847
|
-
(
|
|
1848
|
-
const m =
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
let C =
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1847
|
+
(v) => {
|
|
1848
|
+
const m = v.filter(
|
|
1849
|
+
(F) => F != null && F.checked
|
|
1850
|
+
);
|
|
1851
|
+
c.value = m.map((F) => {
|
|
1852
|
+
let C = {
|
|
1853
|
+
...F,
|
|
1854
|
+
title: F.title || F.label,
|
|
1855
|
+
align: F.align || t.listTable?.align || "center"
|
|
1856
|
+
};
|
|
1857
|
+
C.ellipsis && !C.needTooltip && (C.needTooltip = !0);
|
|
1858
|
+
let T = s.defaultWidth || t.listTable?.defaultColWidth || 150;
|
|
1859
|
+
if (!C.width)
|
|
1860
|
+
C.width = T;
|
|
1861
|
+
else if (typeof C.width == "string") {
|
|
1862
|
+
const M = parseInt(C.width, 10);
|
|
1863
|
+
C.width = isNaN(M) ? T : M;
|
|
1858
1864
|
}
|
|
1859
|
-
return
|
|
1865
|
+
return C.resizable === void 0 && (C.resizable = !0), C;
|
|
1860
1866
|
});
|
|
1861
1867
|
const { tableWidth: y } = kt(c);
|
|
1862
1868
|
i.value = y.value;
|
|
@@ -1866,169 +1872,180 @@ const aa = {
|
|
|
1866
1872
|
deep: !0
|
|
1867
1873
|
}
|
|
1868
1874
|
);
|
|
1869
|
-
const
|
|
1870
|
-
a("resizeCol", c);
|
|
1871
|
-
}, t.listTable?.colSaveTimeOut || 800),
|
|
1875
|
+
const _ = jt(() => {
|
|
1876
|
+
a("resizeCol", c.value);
|
|
1877
|
+
}, t.listTable?.colSaveTimeOut || 800), h = (v, m) => {
|
|
1872
1878
|
if (m) {
|
|
1873
|
-
const y = typeof
|
|
1879
|
+
const y = typeof v == "string" ? parseInt(v, 10) : v;
|
|
1874
1880
|
m.width = isNaN(y) ? t.listTable?.defaultColWidth || 150 : y, xe(() => {
|
|
1875
|
-
|
|
1881
|
+
_();
|
|
1876
1882
|
});
|
|
1877
1883
|
}
|
|
1878
|
-
}, P = (
|
|
1879
|
-
|
|
1880
|
-
}, I = (
|
|
1881
|
-
return (
|
|
1882
|
-
const y = j("a-empty"),
|
|
1883
|
-
return n(),
|
|
1884
|
-
class:
|
|
1885
|
-
style: ve({
|
|
1884
|
+
}, P = (v, m, y) => {
|
|
1885
|
+
v?.current && a("change", v, m, y);
|
|
1886
|
+
}, I = (v, m = "YYYY-MM-DD HH:mm:ss") => v ? Ke(v).format(m) : "", W = (v, m) => v && m[v] || "", A = (v, m = t.listTable?.ellipsisNumber || 20) => v ? v.length > m ? `${v.substring(0, m)}...` : v : "";
|
|
1887
|
+
return (v, m) => {
|
|
1888
|
+
const y = j("a-empty"), F = j("a-tooltip"), C = j("HbLibCopy"), T = j("a-tag"), M = j("a-table");
|
|
1889
|
+
return n(), L("div", {
|
|
1890
|
+
class: Q(["hb-lib-list-table", { "nowrap-table": s.rowHeight }]),
|
|
1891
|
+
style: ve({
|
|
1892
|
+
"--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
|
|
1893
|
+
})
|
|
1886
1894
|
}, [
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
])) :
|
|
1891
|
-
|
|
1895
|
+
v.$slots.tableActLeft ? (n(), L("section", aa, [
|
|
1896
|
+
Y(v.$slots, "tableActLeft", {}, void 0, !0),
|
|
1897
|
+
Y(v.$slots, "tableActRight", {}, void 0, !0)
|
|
1898
|
+
])) : B("", !0),
|
|
1899
|
+
x(M, te(v.$attrs, {
|
|
1892
1900
|
bordered: "",
|
|
1893
1901
|
columns: c.value,
|
|
1894
|
-
|
|
1895
|
-
onResizeColumn: b,
|
|
1896
|
-
onChange: P,
|
|
1902
|
+
"table-layout": "fixed",
|
|
1897
1903
|
scroll: f.value ? {
|
|
1898
1904
|
x: i.value
|
|
1899
|
-
} : { x: i.value, y:
|
|
1905
|
+
} : { x: i.value, y: w(r).tableHeight },
|
|
1906
|
+
onResizeColumn: h,
|
|
1907
|
+
onChange: P
|
|
1900
1908
|
}), Pe({
|
|
1901
1909
|
emptyText: u(() => [
|
|
1902
1910
|
p("div", na, [
|
|
1903
|
-
|
|
1904
|
-
description:
|
|
1911
|
+
x(y, {
|
|
1912
|
+
description: w(d)("hbLibComp.hbListTable.noData")
|
|
1905
1913
|
}, null, 8, ["description"])
|
|
1906
1914
|
])
|
|
1907
1915
|
]),
|
|
1908
1916
|
_: 2
|
|
1909
1917
|
}, [
|
|
1910
|
-
|
|
1918
|
+
v.$slots.headerCell ? {
|
|
1911
1919
|
name: "headerCell",
|
|
1912
|
-
fn: u(({ column:
|
|
1913
|
-
|
|
1914
|
-
column:
|
|
1915
|
-
title:
|
|
1920
|
+
fn: u(({ column: b }) => [
|
|
1921
|
+
Y(v.$slots, "headerCell", {
|
|
1922
|
+
column: b,
|
|
1923
|
+
title: b.title
|
|
1916
1924
|
}, () => [
|
|
1917
|
-
O(
|
|
1925
|
+
O(k(b.title), 1)
|
|
1918
1926
|
], !0)
|
|
1919
1927
|
]),
|
|
1920
1928
|
key: "0"
|
|
1921
1929
|
} : void 0,
|
|
1922
|
-
|
|
1930
|
+
v.$slots.bodyCell ? {
|
|
1923
1931
|
name: "bodyCell",
|
|
1924
|
-
fn: u(({ column:
|
|
1925
|
-
|
|
1926
|
-
column:
|
|
1927
|
-
record:
|
|
1932
|
+
fn: u(({ column: b, record: S, index: N, text: q }) => [
|
|
1933
|
+
Y(v.$slots, "bodyCell", {
|
|
1934
|
+
column: b,
|
|
1935
|
+
record: S,
|
|
1928
1936
|
index: N,
|
|
1929
|
-
text:
|
|
1937
|
+
text: q
|
|
1930
1938
|
}, void 0, !0),
|
|
1931
|
-
|
|
1939
|
+
b && b.needTooltip && !b.needCopy ? (n(), V(F, {
|
|
1932
1940
|
key: 0,
|
|
1933
1941
|
placement: e.tooltipPlacement
|
|
1934
1942
|
}, {
|
|
1935
1943
|
title: u(() => [
|
|
1936
|
-
O(
|
|
1944
|
+
O(k(S[b.dataIndex]), 1)
|
|
1937
1945
|
]),
|
|
1938
1946
|
default: u(() => [
|
|
1939
|
-
O(" " +
|
|
1947
|
+
O(" " + k(S[b.dataIndex]), 1)
|
|
1940
1948
|
]),
|
|
1941
1949
|
_: 2
|
|
1942
|
-
}, 1032, ["placement"])) :
|
|
1943
|
-
O(
|
|
1944
|
-
|
|
1945
|
-
"cp-text":
|
|
1950
|
+
}, 1032, ["placement"])) : b && b.needCopy && !b.needTooltip ? (n(), L("div", ia, [
|
|
1951
|
+
O(k(S[b.dataIndex]) + " ", 1),
|
|
1952
|
+
x(C, {
|
|
1953
|
+
"cp-text": S[b.dataIndex],
|
|
1946
1954
|
style: { position: "relative" }
|
|
1947
1955
|
}, null, 8, ["cp-text"])
|
|
1948
|
-
])) :
|
|
1949
|
-
|
|
1950
|
-
F
|
|
1956
|
+
])) : B("", !0),
|
|
1957
|
+
b && b.needTooltip && b.needCopy ? (n(), L("div", sa, [
|
|
1958
|
+
x(F, { placement: e.tooltipPlacement }, {
|
|
1951
1959
|
title: u(() => [
|
|
1952
|
-
O(
|
|
1960
|
+
O(k(S[b.dataIndex]), 1)
|
|
1953
1961
|
]),
|
|
1954
1962
|
default: u(() => [
|
|
1955
|
-
O(" " +
|
|
1963
|
+
O(" " + k(A(
|
|
1964
|
+
S[b.dataIndex],
|
|
1965
|
+
b.strLen
|
|
1966
|
+
)), 1)
|
|
1956
1967
|
]),
|
|
1957
1968
|
_: 2
|
|
1958
1969
|
}, 1032, ["placement"]),
|
|
1959
|
-
|
|
1960
|
-
"cp-text":
|
|
1970
|
+
x(C, {
|
|
1971
|
+
"cp-text": S[b.dataIndex],
|
|
1961
1972
|
style: { position: "relative" }
|
|
1962
1973
|
}, null, 8, ["cp-text"])
|
|
1963
|
-
])) :
|
|
1964
|
-
O(
|
|
1965
|
-
], 64)) :
|
|
1966
|
-
|
|
1974
|
+
])) : b && b.needFormat ? (n(), L(X, { key: 3 }, [
|
|
1975
|
+
O(k(I(S[b.dataIndex], b.format)), 1)
|
|
1976
|
+
], 64)) : b && b.tags ? (n(), L(X, { key: 4 }, [
|
|
1977
|
+
W(
|
|
1978
|
+
S[b.dataIndex],
|
|
1979
|
+
b.tags
|
|
1980
|
+
) ? (n(), V(T, {
|
|
1967
1981
|
key: 0,
|
|
1968
|
-
color:
|
|
1982
|
+
color: W(
|
|
1983
|
+
S[b.dataIndex],
|
|
1984
|
+
b.tags
|
|
1985
|
+
)
|
|
1969
1986
|
}, {
|
|
1970
1987
|
default: u(() => [
|
|
1971
|
-
O(
|
|
1988
|
+
O(k(S[b.dataIndex]), 1)
|
|
1972
1989
|
]),
|
|
1973
1990
|
_: 2
|
|
1974
|
-
}, 1032, ["color"])) :
|
|
1975
|
-
], 64)) :
|
|
1991
|
+
}, 1032, ["color"])) : B("", !0)
|
|
1992
|
+
], 64)) : B("", !0)
|
|
1976
1993
|
]),
|
|
1977
1994
|
key: "1"
|
|
1978
1995
|
} : void 0,
|
|
1979
|
-
|
|
1996
|
+
v.$slots.expandedRowRender ? {
|
|
1980
1997
|
name: "expandedRowRender",
|
|
1981
|
-
fn: u(({ record:
|
|
1982
|
-
|
|
1983
|
-
record:
|
|
1984
|
-
index:
|
|
1998
|
+
fn: u(({ record: b, index: S }) => [
|
|
1999
|
+
Y(v.$slots, "expandedRowRender", {
|
|
2000
|
+
record: b,
|
|
2001
|
+
index: S
|
|
1985
2002
|
}, void 0, !0)
|
|
1986
2003
|
]),
|
|
1987
2004
|
key: "2"
|
|
1988
2005
|
} : void 0,
|
|
1989
|
-
|
|
2006
|
+
v.$slots.customFilterDropdown ? {
|
|
1990
2007
|
name: "customFilterDropdown",
|
|
1991
|
-
fn: u(({ column:
|
|
1992
|
-
|
|
2008
|
+
fn: u(({ column: b }) => [
|
|
2009
|
+
Y(v.$slots, "customFilterDropdown", { column: b }, void 0, !0)
|
|
1993
2010
|
]),
|
|
1994
2011
|
key: "3"
|
|
1995
2012
|
} : void 0,
|
|
1996
|
-
|
|
2013
|
+
v.$slots.customFilterIcon ? {
|
|
1997
2014
|
name: "customFilterIcon",
|
|
1998
|
-
fn: u(({ column:
|
|
1999
|
-
|
|
2015
|
+
fn: u(({ column: b }) => [
|
|
2016
|
+
Y(v.$slots, "customFilterIcon", { column: b }, void 0, !0)
|
|
2000
2017
|
]),
|
|
2001
2018
|
key: "4"
|
|
2002
2019
|
} : void 0,
|
|
2003
|
-
|
|
2020
|
+
v.$slots.expandIcon ? {
|
|
2004
2021
|
name: "expandIcon",
|
|
2005
|
-
fn: u(({ expanded:
|
|
2006
|
-
|
|
2007
|
-
expanded:
|
|
2008
|
-
record:
|
|
2022
|
+
fn: u(({ expanded: b, record: S, index: N }) => [
|
|
2023
|
+
Y(v.$slots, "expandIcon", {
|
|
2024
|
+
expanded: b,
|
|
2025
|
+
record: S,
|
|
2009
2026
|
index: N
|
|
2010
2027
|
}, void 0, !0)
|
|
2011
2028
|
]),
|
|
2012
2029
|
key: "5"
|
|
2013
2030
|
} : void 0,
|
|
2014
|
-
|
|
2031
|
+
v.$slots.footer ? {
|
|
2015
2032
|
name: "footer",
|
|
2016
2033
|
fn: u(() => [
|
|
2017
|
-
|
|
2034
|
+
Y(v.$slots, "footer", {}, void 0, !0)
|
|
2018
2035
|
]),
|
|
2019
2036
|
key: "6"
|
|
2020
2037
|
} : void 0,
|
|
2021
|
-
|
|
2038
|
+
v.$slots.summary ? {
|
|
2022
2039
|
name: "summary",
|
|
2023
2040
|
fn: u(() => [
|
|
2024
|
-
|
|
2041
|
+
Y(v.$slots, "summary", {}, void 0, !0)
|
|
2025
2042
|
]),
|
|
2026
2043
|
key: "7"
|
|
2027
2044
|
} : void 0,
|
|
2028
|
-
|
|
2045
|
+
v.$slots.title ? {
|
|
2029
2046
|
name: "title",
|
|
2030
2047
|
fn: u(() => [
|
|
2031
|
-
|
|
2048
|
+
Y(v.$slots, "title", {}, void 0, !0)
|
|
2032
2049
|
]),
|
|
2033
2050
|
key: "8"
|
|
2034
2051
|
} : void 0
|
|
@@ -2036,7 +2053,7 @@ const aa = {
|
|
|
2036
2053
|
], 6);
|
|
2037
2054
|
};
|
|
2038
2055
|
}
|
|
2039
|
-
}), ca = /* @__PURE__ */
|
|
2056
|
+
}), ca = /* @__PURE__ */ le(ra, [["__scopeId", "data-v-6c43044f"]]), da = ee(ca), ua = { class: "hb-lib-table-setting-box" }, fa = {
|
|
2040
2057
|
key: 0,
|
|
2041
2058
|
class: "hb-lib-table-drag-item"
|
|
2042
2059
|
}, pa = {
|
|
@@ -2045,7 +2062,7 @@ const aa = {
|
|
|
2045
2062
|
}, ma = ["onClick"], ba = ["onClick"], ha = { class: "hb-lib-table-set-btn-group" }, va = {
|
|
2046
2063
|
class: "select-all-container",
|
|
2047
2064
|
style: { "margin-right": "10px" }
|
|
2048
|
-
}, ga = /* @__PURE__ */
|
|
2065
|
+
}, ga = /* @__PURE__ */ oe({
|
|
2049
2066
|
name: "HbLibTableColumnSet",
|
|
2050
2067
|
__name: "HbTableColumnSet",
|
|
2051
2068
|
props: {
|
|
@@ -2078,130 +2095,148 @@ const aa = {
|
|
|
2078
2095
|
},
|
|
2079
2096
|
emits: ["on-get-columns"],
|
|
2080
2097
|
setup(e, { emit: o }) {
|
|
2081
|
-
const t = o, { t: a } = ye(), d = e, s = E([]), c = $(() => l.value.filter((
|
|
2098
|
+
const t = o, { t: a } = ye(), d = e, s = E([]), c = $(() => l.value.filter((b) => b.checked));
|
|
2082
2099
|
E([]);
|
|
2083
|
-
const r = E(!1), l = E([]), i = E(null), f = $(() => c.value.length > 0 && c.value.length === s.value.length),
|
|
2084
|
-
i.value =
|
|
2085
|
-
}, P = (
|
|
2086
|
-
const
|
|
2087
|
-
if (s.value.some(
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2100
|
+
const r = E(!1), l = E([]), i = E(null), f = $(() => c.value.length > 0 && c.value.length === s.value.length), _ = $(() => c.value.length > 0 && c.value.length < s.value.length), h = (b) => {
|
|
2101
|
+
i.value = b.oldIndex;
|
|
2102
|
+
}, P = (b) => {
|
|
2103
|
+
const S = b.newIndex;
|
|
2104
|
+
if (s.value.some(
|
|
2105
|
+
(q) => q.fixed === "left" || q.fixed === "right" || q.fixed === !0
|
|
2106
|
+
)) {
|
|
2107
|
+
const q = s.value.filter(
|
|
2108
|
+
(H) => H.fixed === "left"
|
|
2109
|
+
).length, G = s.value.length - s.value.filter((H) => H.fixed === "right").length;
|
|
2110
|
+
if ((q > 0 && S < q || G < s.value.length && S >= G) && (Le.warning(a("hbLibComp.hbLibListTableColumsSet.errorTip")), i.value !== null)) {
|
|
2111
|
+
const H = l.value.splice(S, 1)[0];
|
|
2112
|
+
l.value.splice(i.value, 0, H);
|
|
2092
2113
|
}
|
|
2093
2114
|
}
|
|
2094
2115
|
i.value = null;
|
|
2095
|
-
}, I = (
|
|
2096
|
-
|
|
2097
|
-
|
|
2116
|
+
}, I = (b) => {
|
|
2117
|
+
b.target.checked ? l.value.forEach((N) => N.checked = !0) : l.value.forEach((N) => {
|
|
2118
|
+
N.dataIndex !== "action" && N.dataIndex !== "actions" && (N.checked = !1);
|
|
2098
2119
|
});
|
|
2099
|
-
},
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2120
|
+
}, W = (b) => {
|
|
2121
|
+
if (b.title && b.title.tag)
|
|
2122
|
+
return C(b.title);
|
|
2123
|
+
if (typeof b.title == "function") {
|
|
2124
|
+
let S = b.title();
|
|
2125
|
+
return typeof S == "string" ? S : b.titleText || b.title2;
|
|
2126
|
+
}
|
|
2127
|
+
return b.title || b.title2;
|
|
2128
|
+
}, A = () => d.localColumns.map((b) => ({
|
|
2129
|
+
...b,
|
|
2130
|
+
label: W(b),
|
|
2131
|
+
value: b.dataIndex,
|
|
2132
|
+
checked: b.checked || b.checked === void 0
|
|
2133
|
+
})), v = () => {
|
|
2134
|
+
s.value = A(), l.value = [...s.value];
|
|
2135
|
+
let b = [];
|
|
2136
|
+
d.tableColumns.forEach(function(S) {
|
|
2137
|
+
b.push(S.dataIndex);
|
|
2109
2138
|
});
|
|
2110
|
-
},
|
|
2111
|
-
|
|
2112
|
-
},
|
|
2139
|
+
}, m = (b, S) => {
|
|
2140
|
+
S ? b.checked = !0 : b.checked = !1;
|
|
2141
|
+
}, y = () => {
|
|
2113
2142
|
s.value = [...l.value], t("on-get-columns", s.value), r.value = !1;
|
|
2114
|
-
},
|
|
2115
|
-
s.value =
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
checked: v.checked || v.checked === void 0
|
|
2120
|
-
})), l.value = [...s.value];
|
|
2121
|
-
let C = [];
|
|
2122
|
-
d.tableColumns.forEach(function(v) {
|
|
2123
|
-
C.push(v.dataIndex);
|
|
2143
|
+
}, F = () => {
|
|
2144
|
+
s.value = A(), l.value = [...s.value];
|
|
2145
|
+
let b = [];
|
|
2146
|
+
d.tableColumns.forEach(function(S) {
|
|
2147
|
+
b.push(S.dataIndex);
|
|
2124
2148
|
});
|
|
2125
|
-
},
|
|
2126
|
-
delete
|
|
2127
|
-
const
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2149
|
+
}, C = (b) => b.children[0].text, T = (b) => {
|
|
2150
|
+
delete b.fixed;
|
|
2151
|
+
const S = l.value.findIndex(
|
|
2152
|
+
(N) => N.value === b.value
|
|
2153
|
+
);
|
|
2154
|
+
if (S !== -1) {
|
|
2155
|
+
let N = -1;
|
|
2156
|
+
for (let q = 0; q < l.value.length; q++)
|
|
2157
|
+
l.value[q].fixed === "left" && (N = q);
|
|
2158
|
+
if (N !== -1 && S !== N + 1) {
|
|
2159
|
+
const q = [...l.value], [G] = q.splice(S, 1);
|
|
2160
|
+
q.splice(N + 1, 0, G), l.value = q;
|
|
2135
2161
|
}
|
|
2136
2162
|
}
|
|
2137
|
-
},
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
const
|
|
2146
|
-
|
|
2163
|
+
}, M = (b) => {
|
|
2164
|
+
const S = l.value.findIndex(
|
|
2165
|
+
(N) => N.value === b.value
|
|
2166
|
+
);
|
|
2167
|
+
if (S !== -1) {
|
|
2168
|
+
let N = -1;
|
|
2169
|
+
for (let z = 0; z < l.value.length; z++)
|
|
2170
|
+
l.value[z].fixed === "left" && (N = z);
|
|
2171
|
+
const q = [...l.value], [G] = q.splice(S, 1);
|
|
2172
|
+
G.fixed = "left";
|
|
2173
|
+
const H = N === -1 ? 0 : N + 1;
|
|
2174
|
+
q.splice(H, 0, G), l.value = q;
|
|
2147
2175
|
}
|
|
2148
2176
|
};
|
|
2149
2177
|
return ie(
|
|
2150
2178
|
() => d.tableColumns,
|
|
2151
2179
|
() => {
|
|
2152
|
-
|
|
2180
|
+
F();
|
|
2153
2181
|
},
|
|
2154
2182
|
{
|
|
2155
2183
|
immediate: !0,
|
|
2156
2184
|
deep: !0
|
|
2157
2185
|
}
|
|
2158
|
-
), (
|
|
2159
|
-
const
|
|
2160
|
-
return n(),
|
|
2161
|
-
|
|
2162
|
-
|
|
2186
|
+
), (b, S) => {
|
|
2187
|
+
const N = j("a-tooltip"), q = j("a-button");
|
|
2188
|
+
return n(), L("div", ua, [
|
|
2189
|
+
x(w(so), {
|
|
2190
|
+
visible: r.value,
|
|
2191
|
+
"onUpdate:visible": S[1] || (S[1] = (G) => r.value = G),
|
|
2192
|
+
title: w(a)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2163
2193
|
trigger: "click",
|
|
2164
2194
|
placement: "leftTop",
|
|
2165
|
-
|
|
2166
|
-
visible: r.value,
|
|
2167
|
-
"onUpdate:visible": v[1] || (v[1] = (N) => r.value = N)
|
|
2195
|
+
"overlay-class-name": "column_setting_popover"
|
|
2168
2196
|
}, {
|
|
2169
2197
|
content: u(() => [
|
|
2170
|
-
|
|
2198
|
+
x(w(Ve), {
|
|
2171
2199
|
modelValue: l.value,
|
|
2172
|
-
"onUpdate:modelValue":
|
|
2200
|
+
"onUpdate:modelValue": S[0] || (S[0] = (G) => l.value = G),
|
|
2173
2201
|
"item-key": "value",
|
|
2174
2202
|
class: "hb-lib-table-set-drag",
|
|
2175
2203
|
"ghost-class": "ghost",
|
|
2176
2204
|
animation: "200",
|
|
2177
2205
|
handle: ".drag-handle",
|
|
2178
|
-
onStart:
|
|
2206
|
+
onStart: h,
|
|
2179
2207
|
onEnd: P
|
|
2180
2208
|
}, {
|
|
2181
|
-
item: u(({ element:
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
checked:
|
|
2185
|
-
onChange: (
|
|
2209
|
+
item: u(({ element: G }) => [
|
|
2210
|
+
G.fixed !== "right" ? (n(), L("div", fa, [
|
|
2211
|
+
x(w(je), {
|
|
2212
|
+
checked: G.checked,
|
|
2213
|
+
onChange: (H) => m(
|
|
2214
|
+
G,
|
|
2215
|
+
H.target.checked
|
|
2216
|
+
)
|
|
2186
2217
|
}, {
|
|
2187
2218
|
default: u(() => [
|
|
2188
|
-
O(
|
|
2219
|
+
O(k(G.label), 1)
|
|
2189
2220
|
]),
|
|
2190
2221
|
_: 2
|
|
2191
2222
|
}, 1032, ["checked", "onChange"]),
|
|
2192
|
-
|
|
2223
|
+
G.checked ? (n(), L("section", pa, [
|
|
2193
2224
|
p("span", {
|
|
2194
|
-
class:
|
|
2195
|
-
|
|
2196
|
-
|
|
2225
|
+
class: Q(
|
|
2226
|
+
G.fixed ? "drag-hide" : "drag-handle"
|
|
2227
|
+
)
|
|
2228
|
+
}, " ⋮⋮ ", 2),
|
|
2229
|
+
G.fixed ? (n(), V(N, { key: 0 }, {
|
|
2197
2230
|
title: u(() => [
|
|
2198
|
-
O(
|
|
2231
|
+
O(k(w(a)(
|
|
2232
|
+
"hbLibComp.hbLibListTableColumsSet.cancelFix"
|
|
2233
|
+
)), 1)
|
|
2199
2234
|
]),
|
|
2200
2235
|
default: u(() => [
|
|
2201
2236
|
p("span", {
|
|
2202
2237
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2203
|
-
onClick: (
|
|
2204
|
-
}, [...
|
|
2238
|
+
onClick: (H) => T(G)
|
|
2239
|
+
}, [...S[2] || (S[2] = [
|
|
2205
2240
|
p("svg", {
|
|
2206
2241
|
t: "1759048615600",
|
|
2207
2242
|
class: "icon",
|
|
@@ -2221,16 +2256,18 @@ const aa = {
|
|
|
2221
2256
|
])], 8, ma)
|
|
2222
2257
|
]),
|
|
2223
2258
|
_: 2
|
|
2224
|
-
}, 1024)) :
|
|
2225
|
-
|
|
2259
|
+
}, 1024)) : B("", !0),
|
|
2260
|
+
G.fixed ? B("", !0) : (n(), V(N, { key: 1 }, {
|
|
2226
2261
|
title: u(() => [
|
|
2227
|
-
O(
|
|
2262
|
+
O(k(w(a)(
|
|
2263
|
+
"hbLibComp.hbLibListTableColumsSet.fix"
|
|
2264
|
+
)), 1)
|
|
2228
2265
|
]),
|
|
2229
2266
|
default: u(() => [
|
|
2230
2267
|
p("span", {
|
|
2231
2268
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2232
|
-
onClick: (
|
|
2233
|
-
}, [...
|
|
2269
|
+
onClick: (H) => M(G)
|
|
2270
|
+
}, [...S[3] || (S[3] = [
|
|
2234
2271
|
p("svg", {
|
|
2235
2272
|
t: "1759048735643",
|
|
2236
2273
|
class: "icon",
|
|
@@ -2251,51 +2288,51 @@ const aa = {
|
|
|
2251
2288
|
]),
|
|
2252
2289
|
_: 2
|
|
2253
2290
|
}, 1024))
|
|
2254
|
-
])) :
|
|
2255
|
-
])) :
|
|
2291
|
+
])) : B("", !0)
|
|
2292
|
+
])) : B("", !0)
|
|
2256
2293
|
]),
|
|
2257
2294
|
_: 1
|
|
2258
2295
|
}, 8, ["modelValue"]),
|
|
2259
2296
|
p("div", ha, [
|
|
2260
2297
|
p("div", va, [
|
|
2261
|
-
|
|
2298
|
+
x(w(je), {
|
|
2262
2299
|
checked: f.value,
|
|
2263
|
-
indeterminate:
|
|
2300
|
+
indeterminate: _.value,
|
|
2264
2301
|
onChange: I
|
|
2265
2302
|
}, {
|
|
2266
2303
|
default: u(() => [
|
|
2267
|
-
O(
|
|
2304
|
+
O(k(w(a)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2268
2305
|
]),
|
|
2269
2306
|
_: 1
|
|
2270
2307
|
}, 8, ["checked", "indeterminate"])
|
|
2271
2308
|
]),
|
|
2272
|
-
d.localColumns.length ? (n(),
|
|
2309
|
+
d.localColumns.length ? (n(), V(q, {
|
|
2273
2310
|
key: 0,
|
|
2274
2311
|
style: { "margin-right": "6px" },
|
|
2275
|
-
onClick:
|
|
2312
|
+
onClick: v
|
|
2276
2313
|
}, {
|
|
2277
2314
|
default: u(() => [
|
|
2278
|
-
O(
|
|
2315
|
+
O(k(w(a)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2279
2316
|
]),
|
|
2280
2317
|
_: 1
|
|
2281
|
-
})) :
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2318
|
+
})) : B("", !0),
|
|
2319
|
+
x(q, {
|
|
2320
|
+
type: "primary",
|
|
2321
|
+
onClick: y
|
|
2285
2322
|
}, {
|
|
2286
2323
|
default: u(() => [
|
|
2287
|
-
O(
|
|
2324
|
+
O(k(w(a)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2288
2325
|
]),
|
|
2289
2326
|
_: 1
|
|
2290
2327
|
})
|
|
2291
2328
|
])
|
|
2292
2329
|
]),
|
|
2293
2330
|
default: u(() => [
|
|
2294
|
-
|
|
2295
|
-
title:
|
|
2331
|
+
x(N, {
|
|
2332
|
+
title: w(a)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2296
2333
|
placement: "leftTop"
|
|
2297
2334
|
}, {
|
|
2298
|
-
default: u(() => [...
|
|
2335
|
+
default: u(() => [...S[4] || (S[4] = [
|
|
2299
2336
|
p("span", { class: "hb-lib-table-col-set" }, [
|
|
2300
2337
|
p("svg", {
|
|
2301
2338
|
t: "1759041858618",
|
|
@@ -2324,11 +2361,11 @@ const aa = {
|
|
|
2324
2361
|
}, 8, ["title"])
|
|
2325
2362
|
]),
|
|
2326
2363
|
_: 1
|
|
2327
|
-
}, 8, ["
|
|
2364
|
+
}, 8, ["visible", "title"])
|
|
2328
2365
|
]);
|
|
2329
2366
|
};
|
|
2330
2367
|
}
|
|
2331
|
-
}), ya = /* @__PURE__ */
|
|
2368
|
+
}), ya = /* @__PURE__ */ le(ga, [["__scopeId", "data-v-5dd5443c"]]), _a = ee(ya), La = /* @__PURE__ */ oe({
|
|
2332
2369
|
name: "HbLibFormTooltipSelect",
|
|
2333
2370
|
inheritAttrs: !1,
|
|
2334
2371
|
__name: "HbTooltipSelect",
|
|
@@ -2347,14 +2384,14 @@ const aa = {
|
|
|
2347
2384
|
emits: ["update:value"],
|
|
2348
2385
|
setup(e, { expose: o }) {
|
|
2349
2386
|
const t = e, a = Zt(), d = $(() => {
|
|
2350
|
-
const I = a,
|
|
2387
|
+
const I = a, W = I.dropdownClassName;
|
|
2351
2388
|
return {
|
|
2352
2389
|
...I,
|
|
2353
|
-
dropdownClassName:
|
|
2390
|
+
dropdownClassName: W ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2354
2391
|
};
|
|
2355
2392
|
}), s = E(), c = Ot(e, "value"), r = $(() => t.options ?? []), l = $(() => ({
|
|
2356
2393
|
maxWidth: typeof t.tooltipMaxWidth == "number" ? `${t.tooltipMaxWidth}px` : t.tooltipMaxWidth
|
|
2357
|
-
})), i = (I) => I.tooltip ?? I.label, f = (I) => I.key ?? I.label,
|
|
2394
|
+
})), i = (I) => I.tooltip ?? I.label, f = (I) => I.key ?? I.label, _ = (I) => !!(t.enableTooltip && i(I));
|
|
2358
2395
|
return o({
|
|
2359
2396
|
focus: () => {
|
|
2360
2397
|
s.value?.focus?.();
|
|
@@ -2363,37 +2400,37 @@ const aa = {
|
|
|
2363
2400
|
s.value?.blur?.();
|
|
2364
2401
|
},
|
|
2365
2402
|
selectRef: s
|
|
2366
|
-
}), (I,
|
|
2403
|
+
}), (I, W) => (n(), V(w(tt), te({
|
|
2367
2404
|
ref_key: "selectRef",
|
|
2368
2405
|
ref: s
|
|
2369
2406
|
}, d.value, {
|
|
2370
2407
|
value: c.value,
|
|
2371
|
-
"onUpdate:value":
|
|
2408
|
+
"onUpdate:value": W[0] || (W[0] = (A) => c.value = A),
|
|
2372
2409
|
class: "hb_lib_form_tooltip_select"
|
|
2373
2410
|
}), {
|
|
2374
2411
|
default: u(() => [
|
|
2375
|
-
I.$slots.default ?
|
|
2376
|
-
key: f(
|
|
2377
|
-
value:
|
|
2378
|
-
disabled:
|
|
2379
|
-
}, { ref_for: !0 },
|
|
2412
|
+
I.$slots.default ? Y(I.$slots, "default", { key: 0 }, void 0, !0) : (n(!0), L(X, { key: 1 }, me(r.value, (A) => (n(), V(w(ot), te({
|
|
2413
|
+
key: f(A),
|
|
2414
|
+
value: A.value,
|
|
2415
|
+
disabled: A.disabled
|
|
2416
|
+
}, { ref_for: !0 }, A.optionProps), {
|
|
2380
2417
|
default: u(() => [
|
|
2381
|
-
|
|
2418
|
+
_(A) ? (n(), V(w(We), {
|
|
2382
2419
|
key: 0,
|
|
2383
|
-
title: i(
|
|
2420
|
+
title: i(A),
|
|
2384
2421
|
placement: t.tooltipPlacement,
|
|
2385
2422
|
"overlay-style": l.value
|
|
2386
2423
|
}, {
|
|
2387
2424
|
default: u(() => [
|
|
2388
2425
|
p("span", {
|
|
2389
|
-
class:
|
|
2390
|
-
},
|
|
2426
|
+
class: Q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2427
|
+
}, k(A.label), 3)
|
|
2391
2428
|
]),
|
|
2392
2429
|
_: 2
|
|
2393
|
-
}, 1032, ["title", "placement", "overlay-style"])) : (n(),
|
|
2430
|
+
}, 1032, ["title", "placement", "overlay-style"])) : (n(), L("span", {
|
|
2394
2431
|
key: 1,
|
|
2395
|
-
class:
|
|
2396
|
-
},
|
|
2432
|
+
class: Q(["hb_lib_form_tooltip_select__option", { "is-ellipsis": t.enableEllipsis }])
|
|
2433
|
+
}, k(A.label), 3))
|
|
2397
2434
|
]),
|
|
2398
2435
|
_: 2
|
|
2399
2436
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2401,10 +2438,10 @@ const aa = {
|
|
|
2401
2438
|
_: 3
|
|
2402
2439
|
}, 16, ["value"]));
|
|
2403
2440
|
}
|
|
2404
|
-
}), wa = /* @__PURE__ */
|
|
2441
|
+
}), wa = /* @__PURE__ */ le(La, [["__scopeId", "data-v-13285691"]]), Ca = ee(wa), ka = { class: "ant-upload-drag-icon" }, Sa = { class: "ant-upload-text" }, xa = { style: { color: "#ff5000" } }, Ta = { class: "ant-upload-hint" }, Fa = {
|
|
2405
2442
|
key: 0,
|
|
2406
2443
|
class: "hb_import_btn"
|
|
2407
|
-
}, Ha = ["href"], $a = /* @__PURE__ */
|
|
2444
|
+
}, Ha = ["href"], $a = /* @__PURE__ */ oe({
|
|
2408
2445
|
name: "HbLibImportFile",
|
|
2409
2446
|
__name: "HbImportFile",
|
|
2410
2447
|
props: {
|
|
@@ -2423,58 +2460,58 @@ const aa = {
|
|
|
2423
2460
|
const { t } = ye(), a = E(), d = e, s = E(!1), c = Ne({
|
|
2424
2461
|
fileList: [],
|
|
2425
2462
|
visible: !1
|
|
2426
|
-
}), r = (
|
|
2427
|
-
if (
|
|
2463
|
+
}), r = (h) => {
|
|
2464
|
+
if (h == null)
|
|
2428
2465
|
return;
|
|
2429
|
-
const P = c.fileList.indexOf(
|
|
2466
|
+
const P = c.fileList.indexOf(h);
|
|
2430
2467
|
if (P !== -1) {
|
|
2431
2468
|
const I = c.fileList.slice();
|
|
2432
2469
|
I.splice(P, 1), c.fileList = I;
|
|
2433
2470
|
}
|
|
2434
2471
|
}, l = () => {
|
|
2435
2472
|
c.visible = !1, c.fileList = [], s.value = !1;
|
|
2436
|
-
}, i = (
|
|
2473
|
+
}, i = (h) => (c.fileList = [h], d.beforeUpload ? d.beforeUpload(h.originFileObj) : !1), f = () => {
|
|
2437
2474
|
a.value.validateFields().then(() => {
|
|
2438
2475
|
d.beforeSubmit && (s.value = !0, d.beforeSubmit(c.fileList).then(() => {
|
|
2439
2476
|
}).finally(() => {
|
|
2440
2477
|
s.value = !1;
|
|
2441
2478
|
}));
|
|
2442
2479
|
});
|
|
2443
|
-
},
|
|
2480
|
+
}, _ = () => {
|
|
2444
2481
|
c.visible = !0;
|
|
2445
2482
|
};
|
|
2446
2483
|
return o({
|
|
2447
2484
|
handleCancel: l,
|
|
2448
|
-
openModal:
|
|
2485
|
+
openModal: _,
|
|
2449
2486
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2450
2487
|
confirmLoading: s
|
|
2451
|
-
}), (
|
|
2452
|
-
const I = j("a-upload-dragger"),
|
|
2453
|
-
return n(),
|
|
2454
|
-
|
|
2488
|
+
}), (h, P) => {
|
|
2489
|
+
const I = j("a-upload-dragger"), W = j("a-form-item"), A = j("a-form"), v = j("a-modal"), m = j("a-button");
|
|
2490
|
+
return n(), L(X, null, [
|
|
2491
|
+
x(v, te({
|
|
2455
2492
|
visible: c.visible,
|
|
2456
2493
|
"onUpdate:visible": P[0] || (P[0] = (y) => c.visible = y),
|
|
2457
2494
|
title: d.title,
|
|
2458
2495
|
"confirm-loading": s.value
|
|
2459
|
-
},
|
|
2496
|
+
}, h.$attrs, {
|
|
2460
2497
|
width: d.modalWidth,
|
|
2461
2498
|
onCancel: l,
|
|
2462
2499
|
onOk: f
|
|
2463
2500
|
}), {
|
|
2464
2501
|
default: u(() => [
|
|
2465
|
-
|
|
2502
|
+
x(A, {
|
|
2466
2503
|
ref_key: "modalFormRef",
|
|
2467
2504
|
ref: a,
|
|
2468
2505
|
model: c
|
|
2469
2506
|
}, {
|
|
2470
2507
|
default: u(() => [
|
|
2471
|
-
|
|
2508
|
+
x(W, {
|
|
2472
2509
|
name: "fileList",
|
|
2473
|
-
label:
|
|
2474
|
-
rules: [{ required: d.isRequired, message:
|
|
2510
|
+
label: w(t)("hbLibComp.HbImportFile.fileLabel"),
|
|
2511
|
+
rules: [{ required: d.isRequired, message: w(t)("hbLibComp.HbImportFile.clickUp") }]
|
|
2475
2512
|
}, {
|
|
2476
2513
|
default: u(() => [
|
|
2477
|
-
|
|
2514
|
+
x(I, {
|
|
2478
2515
|
"max-count": d.maxCount,
|
|
2479
2516
|
multiple: d.multiple,
|
|
2480
2517
|
accept: d.acceptFile,
|
|
@@ -2485,13 +2522,13 @@ const aa = {
|
|
|
2485
2522
|
}, {
|
|
2486
2523
|
default: u(() => [
|
|
2487
2524
|
p("p", ka, [
|
|
2488
|
-
|
|
2525
|
+
x(w(ho), { style: { "font-size": "37px" } })
|
|
2489
2526
|
]),
|
|
2490
2527
|
p("p", Sa, [
|
|
2491
|
-
O(
|
|
2492
|
-
p("span", xa,
|
|
2528
|
+
O(k(w(t)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2529
|
+
p("span", xa, k(w(t)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2493
2530
|
]),
|
|
2494
|
-
p("p", Ta,
|
|
2531
|
+
p("p", Ta, k(w(t)("hbLibComp.HbFileUploadModal.format")) + ": " + k(d.acceptFile), 1)
|
|
2495
2532
|
]),
|
|
2496
2533
|
_: 1
|
|
2497
2534
|
}, 8, ["max-count", "multiple", "accept", "file-list"])
|
|
@@ -2501,22 +2538,22 @@ const aa = {
|
|
|
2501
2538
|
]),
|
|
2502
2539
|
_: 1
|
|
2503
2540
|
}, 8, ["model"]),
|
|
2504
|
-
d.templateUrl ? (n(),
|
|
2541
|
+
d.templateUrl ? (n(), L("p", Fa, [
|
|
2505
2542
|
p("a", {
|
|
2506
2543
|
download: "Import_number-template.xlsx",
|
|
2507
2544
|
href: d.templateUrl
|
|
2508
|
-
},
|
|
2509
|
-
])) :
|
|
2545
|
+
}, k(w(t)("hbLibComp.HbImportFile.downloadTemplate")), 9, Ha)
|
|
2546
|
+
])) : B("", !0)
|
|
2510
2547
|
]),
|
|
2511
2548
|
_: 1
|
|
2512
2549
|
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2513
|
-
|
|
2514
|
-
|
|
2550
|
+
Y(h.$slots, "btn", {}, () => [
|
|
2551
|
+
x(m, {
|
|
2515
2552
|
type: "primary",
|
|
2516
|
-
onClick:
|
|
2553
|
+
onClick: _
|
|
2517
2554
|
}, {
|
|
2518
2555
|
default: u(() => [
|
|
2519
|
-
O(
|
|
2556
|
+
O(k(e.btnText), 1)
|
|
2520
2557
|
]),
|
|
2521
2558
|
_: 1
|
|
2522
2559
|
})
|
|
@@ -2524,7 +2561,7 @@ const aa = {
|
|
|
2524
2561
|
], 64);
|
|
2525
2562
|
};
|
|
2526
2563
|
}
|
|
2527
|
-
}), Ia = /* @__PURE__ */
|
|
2564
|
+
}), Ia = /* @__PURE__ */ le($a, [["__scopeId", "data-v-a11cda0f"]]), Ma = ee(Ia), Da = { class: "hb_lib_log_modal_content" }, Aa = { class: "log_remark" }, Ba = /* @__PURE__ */ oe({
|
|
2528
2565
|
name: "HbLibLogModal",
|
|
2529
2566
|
__name: "HbLogModal",
|
|
2530
2567
|
props: {
|
|
@@ -2558,7 +2595,7 @@ const aa = {
|
|
|
2558
2595
|
width: "25%"
|
|
2559
2596
|
},
|
|
2560
2597
|
{ title: a("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2561
|
-
], r = $(() => s.columns || c), l = $(() => s.title || a("hbLibComp.HbLogModal.operateLogs")), i = $(() => !!d.title), f = E(!1),
|
|
2598
|
+
], r = $(() => s.columns || c), l = $(() => s.title || a("hbLibComp.HbLogModal.operateLogs")), i = $(() => !!d.title), f = E(!1), _ = Ne({
|
|
2562
2599
|
list: [],
|
|
2563
2600
|
pagination: {
|
|
2564
2601
|
current: 1,
|
|
@@ -2573,8 +2610,8 @@ const aa = {
|
|
|
2573
2610
|
ie(
|
|
2574
2611
|
() => s.pagination,
|
|
2575
2612
|
(m) => {
|
|
2576
|
-
m && (
|
|
2577
|
-
...
|
|
2613
|
+
m && (_.pagination = {
|
|
2614
|
+
..._.pagination,
|
|
2578
2615
|
...m
|
|
2579
2616
|
});
|
|
2580
2617
|
},
|
|
@@ -2583,36 +2620,36 @@ const aa = {
|
|
|
2583
2620
|
immediate: !0
|
|
2584
2621
|
}
|
|
2585
2622
|
);
|
|
2586
|
-
const
|
|
2623
|
+
const h = () => {
|
|
2587
2624
|
const m = {
|
|
2588
|
-
pageIndex:
|
|
2589
|
-
pageSize:
|
|
2625
|
+
pageIndex: _.pagination.current,
|
|
2626
|
+
pageSize: _.pagination.pageSize,
|
|
2590
2627
|
query: s.params
|
|
2591
2628
|
};
|
|
2592
2629
|
s.getLogData && (f.value = !0, s.getLogData(m).then((y) => {
|
|
2593
|
-
Number(y.code) == 200 ? (
|
|
2630
|
+
Number(y.code) == 200 ? (_.pagination.total = Number(y.data.total), _.list = y.data[s.dataStr] || []) : Le.error(y.message);
|
|
2594
2631
|
}).finally(() => {
|
|
2595
2632
|
f.value = !1;
|
|
2596
2633
|
}));
|
|
2597
2634
|
}, P = (m) => {
|
|
2598
|
-
|
|
2635
|
+
_.pagination.current = m.current, _.pagination.pageSize = m.pageSize, h();
|
|
2599
2636
|
}, I = () => {
|
|
2600
|
-
|
|
2601
|
-
},
|
|
2602
|
-
|
|
2603
|
-
},
|
|
2637
|
+
_.list = [], v("update:visible", !1);
|
|
2638
|
+
}, W = () => {
|
|
2639
|
+
v("update:visible", !0);
|
|
2640
|
+
}, A = (m, y = "YYYY-MM-DD HH:mm:ss") => m ? Ke(m).format(y) : "", v = t;
|
|
2604
2641
|
return ie(
|
|
2605
2642
|
() => s.visible,
|
|
2606
2643
|
(m) => {
|
|
2607
|
-
m &&
|
|
2644
|
+
m && h();
|
|
2608
2645
|
}
|
|
2609
2646
|
), o({
|
|
2610
2647
|
close: I,
|
|
2611
2648
|
loading: f
|
|
2612
2649
|
}), (m, y) => {
|
|
2613
|
-
const
|
|
2614
|
-
return n(),
|
|
2615
|
-
|
|
2650
|
+
const F = j("a-tooltip"), C = j("HbLibCopy"), T = j("a-table"), M = j("a-button"), b = j("HbLibModal");
|
|
2651
|
+
return n(), L(X, null, [
|
|
2652
|
+
x(b, te(m.$attrs, {
|
|
2616
2653
|
visible: e.visible,
|
|
2617
2654
|
title: i.value ? void 0 : l.value,
|
|
2618
2655
|
width: e.width,
|
|
@@ -2622,55 +2659,55 @@ const aa = {
|
|
|
2622
2659
|
onCancel: I
|
|
2623
2660
|
}), Pe({
|
|
2624
2661
|
footer: u(() => [
|
|
2625
|
-
|
|
2662
|
+
x(M, { onClick: I }, {
|
|
2626
2663
|
default: u(() => [
|
|
2627
|
-
O(
|
|
2664
|
+
O(k(w(a)("hbLibComp.HbLogModal.close")), 1)
|
|
2628
2665
|
]),
|
|
2629
2666
|
_: 1
|
|
2630
2667
|
})
|
|
2631
2668
|
]),
|
|
2632
2669
|
default: u(() => [
|
|
2633
2670
|
p("div", Da, [
|
|
2634
|
-
|
|
2671
|
+
x(T, {
|
|
2635
2672
|
bordered: "",
|
|
2636
2673
|
rowKey: "id",
|
|
2637
2674
|
columns: r.value,
|
|
2638
|
-
dataSource:
|
|
2639
|
-
pagination:
|
|
2675
|
+
dataSource: _.list,
|
|
2676
|
+
pagination: _.pagination,
|
|
2640
2677
|
loading: f.value,
|
|
2641
2678
|
scroll: { y: e.scrollY },
|
|
2642
2679
|
onChange: P
|
|
2643
2680
|
}, Pe({
|
|
2644
|
-
bodyCell: u(({ column:
|
|
2645
|
-
|
|
2646
|
-
|
|
2681
|
+
bodyCell: u(({ column: S, record: N }) => [
|
|
2682
|
+
S && S.needTooltip ? (n(), L(X, { key: 0 }, [
|
|
2683
|
+
S.needTooltip ? (n(), V(F, { key: 0 }, {
|
|
2647
2684
|
title: u(() => [
|
|
2648
|
-
O(
|
|
2685
|
+
O(k(N[S.dataIndex]), 1)
|
|
2649
2686
|
]),
|
|
2650
2687
|
default: u(() => [
|
|
2651
|
-
O(" " +
|
|
2688
|
+
O(" " + k(N[S.dataIndex]), 1)
|
|
2652
2689
|
]),
|
|
2653
2690
|
_: 2
|
|
2654
|
-
}, 1024)) :
|
|
2655
|
-
], 64)) :
|
|
2656
|
-
|
|
2657
|
-
p("div", Aa,
|
|
2658
|
-
|
|
2659
|
-
"cp-text": N[
|
|
2691
|
+
}, 1024)) : B("", !0)
|
|
2692
|
+
], 64)) : B("", !0),
|
|
2693
|
+
S && S.needCopy ? (n(), L(X, { key: 1 }, [
|
|
2694
|
+
p("div", Aa, k(N[S.dataIndex]), 1),
|
|
2695
|
+
x(C, {
|
|
2696
|
+
"cp-text": N[S.dataIndex],
|
|
2660
2697
|
style: { position: "relative" }
|
|
2661
2698
|
}, null, 8, ["cp-text"])
|
|
2662
|
-
], 64)) :
|
|
2663
|
-
|
|
2664
|
-
O(
|
|
2665
|
-
], 64)) :
|
|
2699
|
+
], 64)) : B("", !0),
|
|
2700
|
+
S && S.needFormat ? (n(), L(X, { key: 2 }, [
|
|
2701
|
+
O(k(A(N[S.dataIndex], S.operateTime)), 1)
|
|
2702
|
+
], 64)) : B("", !0)
|
|
2666
2703
|
]),
|
|
2667
2704
|
_: 2
|
|
2668
2705
|
}, [
|
|
2669
2706
|
m.$slots.headerCell ? {
|
|
2670
2707
|
name: "headerCell",
|
|
2671
|
-
fn: u(({ column:
|
|
2672
|
-
|
|
2673
|
-
O(
|
|
2708
|
+
fn: u(({ column: S }) => [
|
|
2709
|
+
Y(m.$slots, "headerCell", { column: S }, () => [
|
|
2710
|
+
O(k(S.title), 1)
|
|
2674
2711
|
], !0)
|
|
2675
2712
|
]),
|
|
2676
2713
|
key: "0"
|
|
@@ -2683,23 +2720,23 @@ const aa = {
|
|
|
2683
2720
|
i.value ? {
|
|
2684
2721
|
name: "title",
|
|
2685
2722
|
fn: u(() => [
|
|
2686
|
-
|
|
2723
|
+
Y(m.$slots, "title", {}, void 0, !0)
|
|
2687
2724
|
]),
|
|
2688
2725
|
key: "0"
|
|
2689
2726
|
} : void 0
|
|
2690
2727
|
]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
2691
|
-
e.needBtn ?
|
|
2692
|
-
|
|
2728
|
+
e.needBtn ? Y(m.$slots, "default", { key: 0 }, () => [
|
|
2729
|
+
x(M, { onClick: W }, {
|
|
2693
2730
|
default: u(() => [
|
|
2694
|
-
O(
|
|
2731
|
+
O(k(e.logBtnText), 1)
|
|
2695
2732
|
]),
|
|
2696
2733
|
_: 1
|
|
2697
2734
|
})
|
|
2698
|
-
], !0) :
|
|
2735
|
+
], !0) : B("", !0)
|
|
2699
2736
|
], 64);
|
|
2700
2737
|
};
|
|
2701
2738
|
}
|
|
2702
|
-
}), Oa = /* @__PURE__ */
|
|
2739
|
+
}), Oa = /* @__PURE__ */ le(Ba, [["__scopeId", "data-v-ac23253c"]]), Ea = ee(Oa), Pa = {
|
|
2703
2740
|
// 图片上传组件的配置
|
|
2704
2741
|
importFile: {
|
|
2705
2742
|
isRequired: !1,
|
|
@@ -2741,7 +2778,7 @@ const aa = {
|
|
|
2741
2778
|
// 表单距离底部的距离
|
|
2742
2779
|
formItemMb: 10
|
|
2743
2780
|
}
|
|
2744
|
-
}, Na = { class: "hb_ui_config" }, Ua = /* @__PURE__ */
|
|
2781
|
+
}, Na = { class: "hb_ui_config" }, Ua = /* @__PURE__ */ oe({
|
|
2745
2782
|
name: "HbUiConfig",
|
|
2746
2783
|
__name: "hbUiConfig",
|
|
2747
2784
|
props: {
|
|
@@ -2756,14 +2793,14 @@ const aa = {
|
|
|
2756
2793
|
t = Ne(co({}, Pa, a));
|
|
2757
2794
|
},
|
|
2758
2795
|
{ deep: !0, immediate: !0 }
|
|
2759
|
-
), Bt(rt, t), (a, d) => (n(),
|
|
2760
|
-
|
|
2796
|
+
), Bt(rt, t), (a, d) => (n(), L("div", Na, [
|
|
2797
|
+
Y(a.$slots, "default")
|
|
2761
2798
|
]));
|
|
2762
2799
|
}
|
|
2763
|
-
}), rt = Symbol("GLOBAL_CONFIG_KEY"), za =
|
|
2800
|
+
}), rt = Symbol("GLOBAL_CONFIG_KEY"), za = ee(Ua), Ra = { class: "hb_card" }, Va = {
|
|
2764
2801
|
key: 0,
|
|
2765
2802
|
class: "hb_card_header"
|
|
2766
|
-
}, Wa = { class: "hb_fix" }, ja = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ya = { class: "hb_card_body" }, Ka = /* @__PURE__ */
|
|
2803
|
+
}, Wa = { class: "hb_fix" }, ja = { class: "hb_card_header-title" }, qa = { class: "hb_card_header-action" }, Ya = { class: "hb_card_body" }, Ka = /* @__PURE__ */ oe({
|
|
2767
2804
|
name: "HbLibCard",
|
|
2768
2805
|
__name: "HbLibCard",
|
|
2769
2806
|
props: {
|
|
@@ -2797,26 +2834,26 @@ const aa = {
|
|
|
2797
2834
|
let d = t.formItemMb || o?.HbLibCard?.formItemMb;
|
|
2798
2835
|
return d ? { "--hb-card-form-item-mb": d + "px" } : {};
|
|
2799
2836
|
});
|
|
2800
|
-
return (d, s) => (n(),
|
|
2837
|
+
return (d, s) => (n(), L("div", te({ class: "hb_card_wrapper" }, d.$attrs), [
|
|
2801
2838
|
p("div", {
|
|
2802
|
-
class:
|
|
2839
|
+
class: Q(e.isModal ? "modal__module-card" : "__module-card")
|
|
2803
2840
|
}, [
|
|
2804
2841
|
p("div", Ra, [
|
|
2805
|
-
e.cardTitle ? (n(),
|
|
2842
|
+
e.cardTitle ? (n(), L("div", Va, [
|
|
2806
2843
|
p("div", Wa, [
|
|
2807
2844
|
p("span", ja, [
|
|
2808
|
-
|
|
2809
|
-
O(
|
|
2845
|
+
Y(d.$slots, "cardTitle", {}, () => [
|
|
2846
|
+
O(k(e.cardTitle), 1)
|
|
2810
2847
|
], !0)
|
|
2811
2848
|
]),
|
|
2812
2849
|
p("div", qa, [
|
|
2813
|
-
|
|
2850
|
+
Y(d.$slots, "cardAct", {}, void 0, !0)
|
|
2814
2851
|
])
|
|
2815
2852
|
])
|
|
2816
|
-
])) :
|
|
2853
|
+
])) : B("", !0),
|
|
2817
2854
|
p("div", Ya, [
|
|
2818
2855
|
p("section", {
|
|
2819
|
-
class:
|
|
2856
|
+
class: Q({
|
|
2820
2857
|
hb_card_form: e.isForm && !e.isModal,
|
|
2821
2858
|
hb_card_flex_form: e.isForm && e.isModal,
|
|
2822
2859
|
l1c: e.layout == 1,
|
|
@@ -2825,17 +2862,17 @@ const aa = {
|
|
|
2825
2862
|
}),
|
|
2826
2863
|
style: ve(a.value)
|
|
2827
2864
|
}, [
|
|
2828
|
-
|
|
2865
|
+
Y(d.$slots, "default", {}, void 0, !0)
|
|
2829
2866
|
], 6)
|
|
2830
2867
|
])
|
|
2831
2868
|
])
|
|
2832
2869
|
], 2)
|
|
2833
2870
|
], 16));
|
|
2834
2871
|
}
|
|
2835
|
-
}), Ga = /* @__PURE__ */
|
|
2872
|
+
}), Ga = /* @__PURE__ */ le(Ka, [["__scopeId", "data-v-4d8c1b1b"]]), Ja = ee(Ga), Xa = ["onClick"], Qa = { class: "step" }, Za = {
|
|
2836
2873
|
key: 0,
|
|
2837
2874
|
class: "line"
|
|
2838
|
-
}, en = ["title"], tn = /* @__PURE__ */
|
|
2875
|
+
}, en = ["title"], tn = /* @__PURE__ */ oe({
|
|
2839
2876
|
name: "HbLibAnchor",
|
|
2840
2877
|
__name: "HbLibAnchor",
|
|
2841
2878
|
props: {
|
|
@@ -2848,20 +2885,20 @@ const aa = {
|
|
|
2848
2885
|
const l = o.containerSelector || "#subpackage_container";
|
|
2849
2886
|
return document.querySelector(l) || window;
|
|
2850
2887
|
}, c = (l) => {
|
|
2851
|
-
const i = s(), f = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`,
|
|
2852
|
-
if (!
|
|
2853
|
-
let
|
|
2854
|
-
i instanceof HTMLElement && (
|
|
2888
|
+
const i = s(), f = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`, _ = document.querySelector(f);
|
|
2889
|
+
if (!_) return;
|
|
2890
|
+
let h = _.offsetTop;
|
|
2891
|
+
i instanceof HTMLElement && (h -= i.offsetTop), h -= a, i instanceof Window ? window.scrollTo({ top: h, behavior: "smooth" }) : i.scrollTo({ top: h, behavior: "smooth" }), t.value = l.target;
|
|
2855
2892
|
}, r = () => {
|
|
2856
2893
|
const l = s();
|
|
2857
2894
|
let i = 0;
|
|
2858
2895
|
l instanceof Window ? i = window.scrollY + a + 5 : i = l.scrollTop + a + 5;
|
|
2859
2896
|
let f = d.value[0]?.target || "";
|
|
2860
|
-
for (const
|
|
2861
|
-
const
|
|
2897
|
+
for (const _ of d.value) {
|
|
2898
|
+
const h = _.target.startsWith("#") || _.target.startsWith(".") ? _.target : `#${_.target}`, P = document.querySelector(h);
|
|
2862
2899
|
if (!P) continue;
|
|
2863
2900
|
let I = P.offsetTop;
|
|
2864
|
-
l instanceof HTMLElement && (I -= l.offsetTop), i >= I && (f =
|
|
2901
|
+
l instanceof HTMLElement && (I -= l.offsetTop), i >= I && (f = _.target);
|
|
2865
2902
|
}
|
|
2866
2903
|
t.value = f;
|
|
2867
2904
|
};
|
|
@@ -2869,27 +2906,27 @@ const aa = {
|
|
|
2869
2906
|
s().addEventListener("scroll", r), r();
|
|
2870
2907
|
}), nt(() => {
|
|
2871
2908
|
s().removeEventListener("scroll", r);
|
|
2872
|
-
}), (l, i) => (n(),
|
|
2909
|
+
}), (l, i) => (n(), L("div", {
|
|
2873
2910
|
class: "anchors",
|
|
2874
|
-
style: ve({ top: `${
|
|
2911
|
+
style: ve({ top: `${w(a)}px` })
|
|
2875
2912
|
}, [
|
|
2876
|
-
(n(!0),
|
|
2913
|
+
(n(!0), L(X, null, me(d.value, (f, _) => (n(), L("div", {
|
|
2877
2914
|
key: f.target,
|
|
2878
|
-
class:
|
|
2879
|
-
onClick: (
|
|
2915
|
+
class: Q(["anchor-item", { isActive: t.value === f.target }]),
|
|
2916
|
+
onClick: (h) => c(f)
|
|
2880
2917
|
}, [
|
|
2881
2918
|
p("div", Qa, [
|
|
2882
|
-
|
|
2919
|
+
_ !== d.value.length - 1 ? (n(), L("div", Za)) : B("", !0),
|
|
2883
2920
|
i[0] || (i[0] = p("div", { class: "circle" }, null, -1))
|
|
2884
2921
|
]),
|
|
2885
2922
|
p("span", {
|
|
2886
2923
|
class: "title",
|
|
2887
2924
|
title: f.title
|
|
2888
|
-
},
|
|
2925
|
+
}, k(f.title.length > 12 ? f.title.slice(0, 12) + "..." : f.title), 9, en)
|
|
2889
2926
|
], 10, Xa))), 128))
|
|
2890
2927
|
], 4));
|
|
2891
2928
|
}
|
|
2892
|
-
}), on = /* @__PURE__ */
|
|
2929
|
+
}), on = /* @__PURE__ */ le(tn, [["__scopeId", "data-v-d51548d8"]]), ln = ee(on), an = { class: "hb_detail_top_act_left" }, nn = {
|
|
2893
2930
|
key: 1,
|
|
2894
2931
|
class: "hb_detail_top_wrapper_sticky"
|
|
2895
2932
|
}, sn = { class: "hb_detail_top_act" }, rn = {
|
|
@@ -2898,7 +2935,7 @@ const aa = {
|
|
|
2898
2935
|
}, cn = { class: "hb_detail_all_info_left" }, dn = { class: "hb_detail_info_title" }, un = {
|
|
2899
2936
|
key: 0,
|
|
2900
2937
|
class: "hb_detail_info_content"
|
|
2901
|
-
}, fn = { class: "create_by" }, pn = { class: "hb_detail_all_info_right" }, mn = { class: "hb_edit_detail_content_wrapper" }, bn = { class: "hb_detail_content" }, hn = { class: "hb-back-top-inner" }, vn = /* @__PURE__ */
|
|
2938
|
+
}, fn = { class: "create_by" }, pn = { class: "hb_detail_all_info_right" }, mn = { class: "hb_edit_detail_content_wrapper" }, bn = { class: "hb_detail_content" }, hn = { class: "hb-back-top-inner" }, vn = /* @__PURE__ */ oe({
|
|
2902
2939
|
name: "HbLibDetailBox",
|
|
2903
2940
|
__name: "HbLibDetailBox",
|
|
2904
2941
|
props: {
|
|
@@ -2963,23 +3000,23 @@ const aa = {
|
|
|
2963
3000
|
const { t: o } = ye(), t = e, a = Ce(rt), d = () => {
|
|
2964
3001
|
t.backFn ? t.backFn() : window.history.back();
|
|
2965
3002
|
}, s = $(() => t.backTopBottom || a?.HbLibDetailBox?.backTopBottom || 80), c = $(() => {
|
|
2966
|
-
const
|
|
3003
|
+
const W = {};
|
|
2967
3004
|
return t.needFixWidth ? {
|
|
2968
3005
|
hb_need_set_desc_label_width: t.descLabelWidth || a?.HbLibDetailBox?.descLabelWidth,
|
|
2969
3006
|
hb_need_set_desc_value_width: t.descValueWidth || a?.HbLibDetailBox?.descValueWidth
|
|
2970
|
-
} :
|
|
2971
|
-
}), r = () => document.querySelector(t.container), l = E(!1), i = E(null), { top: f } = go(i),
|
|
3007
|
+
} : W;
|
|
3008
|
+
}), r = () => document.querySelector(t.container), l = E(!1), i = E(null), { top: f } = go(i), _ = $(r), { y: h } = yo(_);
|
|
2972
3009
|
ie(
|
|
2973
|
-
|
|
2974
|
-
(
|
|
2975
|
-
l.value =
|
|
3010
|
+
h,
|
|
3011
|
+
(W) => {
|
|
3012
|
+
l.value = W > f.value;
|
|
2976
3013
|
},
|
|
2977
3014
|
{ immediate: !0 }
|
|
2978
3015
|
);
|
|
2979
|
-
const P = (
|
|
2980
|
-
document.querySelectorAll(".hb_card_body").forEach((
|
|
2981
|
-
|
|
2982
|
-
y.textContent?.trim() || (y.textContent =
|
|
3016
|
+
const P = (W) => {
|
|
3017
|
+
document.querySelectorAll(".hb_card_body").forEach((v) => {
|
|
3018
|
+
v.querySelectorAll(".ant-descriptions-item-content span").forEach((y) => {
|
|
3019
|
+
y.textContent?.trim() || (y.textContent = W);
|
|
2983
3020
|
});
|
|
2984
3021
|
});
|
|
2985
3022
|
};
|
|
@@ -2990,71 +3027,71 @@ const aa = {
|
|
|
2990
3027
|
}, a?.HbLibDetailBox?.setValuetimeOut));
|
|
2991
3028
|
}), Be(() => {
|
|
2992
3029
|
I && clearTimeout(I);
|
|
2993
|
-
}), (
|
|
2994
|
-
const
|
|
2995
|
-
return n(),
|
|
3030
|
+
}), (W, A) => {
|
|
3031
|
+
const v = j("RollbackOutlined"), m = j("a-divider"), y = j("a-spin");
|
|
3032
|
+
return n(), V(y, { spinning: e.spinning }, {
|
|
2996
3033
|
default: u(() => [
|
|
2997
3034
|
p("div", {
|
|
2998
|
-
class:
|
|
3035
|
+
class: Q(["hb_detail_wrapper", c.value]),
|
|
2999
3036
|
style: ve({
|
|
3000
3037
|
"--hb-detail-desc-label-width": c.value?.hb_need_set_desc_label_width + "px",
|
|
3001
3038
|
"--hb-detail-desc-value-width": c.value?.hb_need_set_desc_value_width + "px"
|
|
3002
3039
|
})
|
|
3003
3040
|
}, [
|
|
3004
|
-
e.needTotalInfoBox ? (n(),
|
|
3041
|
+
e.needTotalInfoBox ? (n(), L("div", {
|
|
3005
3042
|
key: 0,
|
|
3006
|
-
class:
|
|
3043
|
+
class: Q(["hb_detail_top_act_sticky", l.value ? "can_show" : ""])
|
|
3007
3044
|
}, [
|
|
3008
3045
|
p("div", an, [
|
|
3009
|
-
|
|
3046
|
+
x(v, { style: { color: "#ff5000" } }),
|
|
3010
3047
|
p("a", {
|
|
3011
3048
|
href: "javascript:;",
|
|
3012
3049
|
class: "ml6",
|
|
3013
3050
|
onClick: d
|
|
3014
|
-
},
|
|
3015
|
-
|
|
3016
|
-
p("span", null,
|
|
3051
|
+
}, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3052
|
+
x(m, { type: "vertical" }),
|
|
3053
|
+
p("span", null, k(e.stickyTitle), 1)
|
|
3017
3054
|
]),
|
|
3018
|
-
|
|
3019
|
-
], 2)) :
|
|
3020
|
-
e.needTotalInfoBox ? (n(),
|
|
3055
|
+
A[0] || (A[0] = p("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3056
|
+
], 2)) : B("", !0),
|
|
3057
|
+
e.needTotalInfoBox ? (n(), L("div", nn, [
|
|
3021
3058
|
p("div", sn, [
|
|
3022
|
-
|
|
3059
|
+
x(v),
|
|
3023
3060
|
p("a", {
|
|
3024
3061
|
href: "javascript:;",
|
|
3025
3062
|
class: "ml6",
|
|
3026
3063
|
onClick: d
|
|
3027
|
-
},
|
|
3028
|
-
|
|
3029
|
-
p("span", null,
|
|
3064
|
+
}, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3065
|
+
x(m, { type: "vertical" }),
|
|
3066
|
+
p("span", null, k(e.stickyTitle), 1)
|
|
3030
3067
|
]),
|
|
3031
|
-
e.needTotalInfoBox ? (n(),
|
|
3068
|
+
e.needTotalInfoBox ? (n(), L("div", rn, [
|
|
3032
3069
|
p("aside", cn, [
|
|
3033
|
-
|
|
3034
|
-
p("div", dn,
|
|
3035
|
-
e.totalInfo.totalInfoSubTitle1 ? (n(),
|
|
3036
|
-
p("span", fn,
|
|
3037
|
-
p("span", null,
|
|
3038
|
-
])) :
|
|
3070
|
+
Y(W.$slots, "totalInfoLeft", {}, () => [
|
|
3071
|
+
p("div", dn, k(e.totalInfo.totalInfoTitle), 1),
|
|
3072
|
+
e.totalInfo.totalInfoSubTitle1 ? (n(), L("div", un, [
|
|
3073
|
+
p("span", fn, k(e.totalInfo.totalInfoSubTitle1) + k(e.totalInfo.totalInfoSubVal1), 1),
|
|
3074
|
+
p("span", null, k(e.totalInfo.totalInfoSubTitle2) + k(e.totalInfo.totalInfoSubVal2), 1)
|
|
3075
|
+
])) : B("", !0)
|
|
3039
3076
|
], !0)
|
|
3040
3077
|
]),
|
|
3041
3078
|
p("aside", pn, [
|
|
3042
|
-
|
|
3079
|
+
Y(W.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3043
3080
|
])
|
|
3044
|
-
])) :
|
|
3045
|
-
])) :
|
|
3081
|
+
])) : B("", !0)
|
|
3082
|
+
])) : B("", !0),
|
|
3046
3083
|
p("div", mn, [
|
|
3047
3084
|
p("div", bn, [
|
|
3048
|
-
|
|
3085
|
+
Y(W.$slots, "detailContent", {}, void 0, !0)
|
|
3049
3086
|
])
|
|
3050
3087
|
]),
|
|
3051
|
-
|
|
3088
|
+
x(w(Ut), {
|
|
3052
3089
|
target: r,
|
|
3053
3090
|
style: ve({ bottom: s.value + "px" })
|
|
3054
3091
|
}, {
|
|
3055
3092
|
default: u(() => [
|
|
3056
3093
|
p("div", hn, [
|
|
3057
|
-
|
|
3094
|
+
x(w(zt))
|
|
3058
3095
|
])
|
|
3059
3096
|
]),
|
|
3060
3097
|
_: 1
|
|
@@ -3065,7 +3102,7 @@ const aa = {
|
|
|
3065
3102
|
}, 8, ["spinning"]);
|
|
3066
3103
|
};
|
|
3067
3104
|
}
|
|
3068
|
-
}), gn = /* @__PURE__ */
|
|
3105
|
+
}), gn = /* @__PURE__ */ le(vn, [["__scopeId", "data-v-f2c2c397"]]), yn = ee(gn), _n = /* @__PURE__ */ oe({
|
|
3069
3106
|
name: "HbLibFooterBar",
|
|
3070
3107
|
__name: "HbLibFooterBar",
|
|
3071
3108
|
props: {
|
|
@@ -3110,14 +3147,14 @@ const aa = {
|
|
|
3110
3147
|
onClick: t(i.onClick, i.debounceTime || 300)
|
|
3111
3148
|
}))), d = E(0), s = (l) => {
|
|
3112
3149
|
let i = 0;
|
|
3113
|
-
return (Array.isArray(l) ? l : [l]).forEach((
|
|
3114
|
-
let
|
|
3115
|
-
if (
|
|
3116
|
-
const P = document.getElementById(
|
|
3117
|
-
P &&
|
|
3150
|
+
return (Array.isArray(l) ? l : [l]).forEach((_) => {
|
|
3151
|
+
let h = [];
|
|
3152
|
+
if (_.startsWith("#")) {
|
|
3153
|
+
const P = document.getElementById(_.slice(1));
|
|
3154
|
+
P && h.push(P);
|
|
3118
3155
|
} else
|
|
3119
|
-
|
|
3120
|
-
|
|
3156
|
+
h = Array.from(document.getElementsByClassName(_));
|
|
3157
|
+
h.forEach((P) => {
|
|
3121
3158
|
i += P.offsetWidth || 0;
|
|
3122
3159
|
});
|
|
3123
3160
|
}), i;
|
|
@@ -3143,27 +3180,27 @@ const aa = {
|
|
|
3143
3180
|
}), nt(() => {
|
|
3144
3181
|
r && r.disconnect();
|
|
3145
3182
|
}), (l, i) => {
|
|
3146
|
-
const f = j("a-button"),
|
|
3147
|
-
return n(),
|
|
3183
|
+
const f = j("a-button"), _ = j("a-space"), h = j("a-affix"), P = Et("has");
|
|
3184
|
+
return n(), L("div", {
|
|
3148
3185
|
class: "footer-affix-wrapper",
|
|
3149
3186
|
style: ve({ "--pageHeaderOrFonterLeft": d.value + "px" })
|
|
3150
3187
|
}, [
|
|
3151
|
-
|
|
3188
|
+
x(h, {
|
|
3152
3189
|
"offset-bottom": 0,
|
|
3153
3190
|
target: e.getContainer,
|
|
3154
3191
|
style: { width: "100%" }
|
|
3155
3192
|
}, {
|
|
3156
3193
|
default: u(() => [
|
|
3157
3194
|
p("div", {
|
|
3158
|
-
class:
|
|
3195
|
+
class: Q({
|
|
3159
3196
|
"page-footer-bar": !0,
|
|
3160
3197
|
page_footer_btn_left: e.placeLeft,
|
|
3161
3198
|
page_footer_btn_right: e.placeRight
|
|
3162
3199
|
})
|
|
3163
3200
|
}, [
|
|
3164
|
-
|
|
3201
|
+
x(_, null, {
|
|
3165
3202
|
default: u(() => [
|
|
3166
|
-
(n(!0),
|
|
3203
|
+
(n(!0), L(X, null, me(a.value, (I) => _e((n(), V(f, {
|
|
3167
3204
|
key: I.key,
|
|
3168
3205
|
type: I.type || "default",
|
|
3169
3206
|
danger: I.danger,
|
|
@@ -3173,7 +3210,7 @@ const aa = {
|
|
|
3173
3210
|
class: "hb_list_page_button"
|
|
3174
3211
|
}, {
|
|
3175
3212
|
default: u(() => [
|
|
3176
|
-
O(
|
|
3213
|
+
O(k(I.label), 1)
|
|
3177
3214
|
]),
|
|
3178
3215
|
_: 2
|
|
3179
3216
|
}, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
|
|
@@ -3189,7 +3226,7 @@ const aa = {
|
|
|
3189
3226
|
], 4);
|
|
3190
3227
|
};
|
|
3191
3228
|
}
|
|
3192
|
-
}), Ln = /* @__PURE__ */
|
|
3229
|
+
}), Ln = /* @__PURE__ */ le(_n, [["__scopeId", "data-v-23f13fb5"]]), wn = ee(Ln), Cn = { class: "modal__detail-content" }, kn = /* @__PURE__ */ oe({
|
|
3193
3230
|
name: "HbLibModal",
|
|
3194
3231
|
__name: "HbLibModal",
|
|
3195
3232
|
props: {
|
|
@@ -3245,52 +3282,52 @@ const aa = {
|
|
|
3245
3282
|
overflowY: "auto",
|
|
3246
3283
|
padding: "0 6px",
|
|
3247
3284
|
...d.bodyStyle
|
|
3248
|
-
})), { x: f, y:
|
|
3249
|
-
let
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3285
|
+
})), { x: f, y: _, isDragging: h } = _o(c), P = E(0), I = E(0), W = E(!1), A = E(0), v = E(0), m = E(0), y = E(0), F = E({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3286
|
+
let C = null;
|
|
3287
|
+
const T = () => {
|
|
3288
|
+
A.value = 0, v.value = 0, m.value = 0, y.value = 0, W.value = !1;
|
|
3252
3289
|
};
|
|
3253
3290
|
ie(s, (N) => {
|
|
3254
3291
|
N ? setTimeout(() => {
|
|
3255
|
-
|
|
3256
|
-
}, 50) : (
|
|
3257
|
-
|
|
3292
|
+
T();
|
|
3293
|
+
}, 50) : (C && clearTimeout(C), C = setTimeout(() => {
|
|
3294
|
+
A.value = 0, v.value = 0, m.value = 0, y.value = 0;
|
|
3258
3295
|
}, 300));
|
|
3259
|
-
}), ie([f,
|
|
3260
|
-
if (!
|
|
3261
|
-
P.value = f.value, I.value =
|
|
3262
|
-
const N = document.body.getBoundingClientRect(),
|
|
3263
|
-
|
|
3296
|
+
}), ie([f, _], () => {
|
|
3297
|
+
if (!W.value) {
|
|
3298
|
+
P.value = f.value, I.value = _.value;
|
|
3299
|
+
const N = document.body.getBoundingClientRect(), q = c.value.getBoundingClientRect();
|
|
3300
|
+
F.value.right = N.width - q.width, F.value.bottom = N.height - q.height, m.value = A.value, y.value = v.value;
|
|
3264
3301
|
}
|
|
3265
|
-
|
|
3266
|
-
}), ie(
|
|
3267
|
-
|
|
3302
|
+
W.value = !0;
|
|
3303
|
+
}), ie(h, () => {
|
|
3304
|
+
h || (W.value = !1);
|
|
3268
3305
|
}), Pt(() => {
|
|
3269
|
-
|
|
3306
|
+
W.value && (A.value = m.value + Math.min(Math.max(F.value.left, f.value), F.value.right) - P.value, v.value = y.value + Math.min(Math.max(F.value.top, _.value), F.value.bottom) - I.value);
|
|
3270
3307
|
});
|
|
3271
|
-
const
|
|
3272
|
-
transform: `translate(${
|
|
3273
|
-
})),
|
|
3308
|
+
const M = $(() => ({
|
|
3309
|
+
transform: `translate(${A.value}px, ${v.value}px)`
|
|
3310
|
+
})), b = () => {
|
|
3274
3311
|
a("cancel");
|
|
3275
|
-
},
|
|
3312
|
+
}, S = () => {
|
|
3276
3313
|
a("ok");
|
|
3277
3314
|
};
|
|
3278
3315
|
return Be(() => {
|
|
3279
|
-
|
|
3316
|
+
C && clearTimeout(C);
|
|
3280
3317
|
}), o({
|
|
3281
|
-
handleOk:
|
|
3282
|
-
handleCancel:
|
|
3283
|
-
}), (N,
|
|
3284
|
-
const
|
|
3285
|
-
return n(),
|
|
3318
|
+
handleOk: S,
|
|
3319
|
+
handleCancel: b
|
|
3320
|
+
}), (N, q) => {
|
|
3321
|
+
const G = j("a-spin"), H = j("a-modal");
|
|
3322
|
+
return n(), V(H, te({
|
|
3286
3323
|
style: r.value,
|
|
3287
3324
|
bodyStyle: i.value,
|
|
3288
3325
|
ref: "modalRef",
|
|
3289
3326
|
visible: s.value,
|
|
3290
|
-
"onUpdate:visible":
|
|
3327
|
+
"onUpdate:visible": q[0] || (q[0] = (z) => s.value = z),
|
|
3291
3328
|
"wrap-style": l.value,
|
|
3292
|
-
onOk:
|
|
3293
|
-
onCancel:
|
|
3329
|
+
onOk: S,
|
|
3330
|
+
onCancel: b
|
|
3294
3331
|
}, N.$attrs), Pe({
|
|
3295
3332
|
title: u(() => [
|
|
3296
3333
|
p("div", {
|
|
@@ -3298,26 +3335,26 @@ const aa = {
|
|
|
3298
3335
|
ref: c,
|
|
3299
3336
|
style: { width: "100%", cursor: "move" }
|
|
3300
3337
|
}, [
|
|
3301
|
-
|
|
3302
|
-
O(
|
|
3338
|
+
Y(N.$slots, "title", {}, () => [
|
|
3339
|
+
O(k(e.title), 1)
|
|
3303
3340
|
], !0)
|
|
3304
3341
|
], 512)
|
|
3305
3342
|
]),
|
|
3306
|
-
modalRender: u(({ originVNode:
|
|
3307
|
-
(n(),
|
|
3343
|
+
modalRender: u(({ originVNode: z }) => [
|
|
3344
|
+
(n(), L("div", {
|
|
3308
3345
|
key: s.value,
|
|
3309
|
-
style: ve(
|
|
3346
|
+
style: ve(M.value)
|
|
3310
3347
|
}, [
|
|
3311
|
-
(n(),
|
|
3348
|
+
(n(), V(Nt(z)))
|
|
3312
3349
|
], 4))
|
|
3313
3350
|
]),
|
|
3314
3351
|
default: u(() => [
|
|
3315
|
-
|
|
3352
|
+
x(G, {
|
|
3316
3353
|
spinning: d.spinning
|
|
3317
3354
|
}, {
|
|
3318
3355
|
default: u(() => [
|
|
3319
3356
|
p("div", {
|
|
3320
|
-
class:
|
|
3357
|
+
class: Q([
|
|
3321
3358
|
e.type == "detail" ? "hb_detail_modal_wrapper" : "hb_modal_wrapper",
|
|
3322
3359
|
e.descLabelWidth && "hb_need_set_desc_label_width",
|
|
3323
3360
|
e.descValueWidth && "hb_need_set_desc_value_width"
|
|
@@ -3325,7 +3362,7 @@ const aa = {
|
|
|
3325
3362
|
style: ve({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3326
3363
|
}, [
|
|
3327
3364
|
p("div", Cn, [
|
|
3328
|
-
|
|
3365
|
+
Y(N.$slots, "default", {}, void 0, !0)
|
|
3329
3366
|
])
|
|
3330
3367
|
], 6)
|
|
3331
3368
|
]),
|
|
@@ -3337,20 +3374,20 @@ const aa = {
|
|
|
3337
3374
|
N.$slots.footer ? {
|
|
3338
3375
|
name: "footer",
|
|
3339
3376
|
fn: u(() => [
|
|
3340
|
-
|
|
3377
|
+
Y(N.$slots, "footer", {}, void 0, !0)
|
|
3341
3378
|
]),
|
|
3342
3379
|
key: "0"
|
|
3343
3380
|
} : void 0
|
|
3344
3381
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3345
3382
|
};
|
|
3346
3383
|
}
|
|
3347
|
-
}), Sn = /* @__PURE__ */
|
|
3384
|
+
}), Sn = /* @__PURE__ */ le(kn, [["__scopeId", "data-v-866a050a"]]), xn = ee(Sn), Tn = {
|
|
3348
3385
|
key: 0,
|
|
3349
3386
|
class: "hb_edit_header"
|
|
3350
3387
|
}, Fn = { class: "__detail-content" }, Hn = {
|
|
3351
3388
|
key: 1,
|
|
3352
3389
|
class: "hb_edit_footer"
|
|
3353
|
-
}, $n = { class: "hb-back-top-inner" }, In = /* @__PURE__ */
|
|
3390
|
+
}, $n = { class: "hb-back-top-inner" }, In = /* @__PURE__ */ oe({
|
|
3354
3391
|
name: "HbLibUnDetailBox",
|
|
3355
3392
|
__name: "HbLibUnDetailBox",
|
|
3356
3393
|
props: {
|
|
@@ -3375,32 +3412,32 @@ const aa = {
|
|
|
3375
3412
|
},
|
|
3376
3413
|
setup(e) {
|
|
3377
3414
|
const o = E("vertical"), t = e, a = () => document.querySelector(t.container), d = Ce("GLOBAL_CONFIG_KEY"), s = $(() => t.backTopBottom || d?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3378
|
-
return (c, r) => (n(),
|
|
3415
|
+
return (c, r) => (n(), V(w(ro), { spinning: e.spinning }, {
|
|
3379
3416
|
default: u(() => [
|
|
3380
|
-
p("div",
|
|
3417
|
+
p("div", te({ class: "hb_edit_wrapper" }, c.$attrs, {
|
|
3381
3418
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
3382
3419
|
class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
|
|
3383
3420
|
}), [
|
|
3384
|
-
c.$slots.editHeader ? (n(),
|
|
3385
|
-
|
|
3386
|
-
])) :
|
|
3421
|
+
c.$slots.editHeader ? (n(), L("div", Tn, [
|
|
3422
|
+
Y(c.$slots, "editHeader", {}, void 0, !0)
|
|
3423
|
+
])) : B("", !0),
|
|
3387
3424
|
p("div", {
|
|
3388
|
-
class:
|
|
3425
|
+
class: Q(["hb_edit_detail_content_wrapper", o.value === "vertical" ? "form_vertical" : ""])
|
|
3389
3426
|
}, [
|
|
3390
3427
|
p("div", Fn, [
|
|
3391
|
-
|
|
3428
|
+
Y(c.$slots, "editContent", {}, void 0, !0)
|
|
3392
3429
|
])
|
|
3393
3430
|
], 2),
|
|
3394
|
-
c.$slots.editFooter ? (n(),
|
|
3395
|
-
|
|
3396
|
-
])) :
|
|
3397
|
-
|
|
3431
|
+
c.$slots.editFooter ? (n(), L("div", Hn, [
|
|
3432
|
+
Y(c.$slots, "editFooter", {}, void 0, !0)
|
|
3433
|
+
])) : B("", !0),
|
|
3434
|
+
x(w(Ut), {
|
|
3398
3435
|
target: a,
|
|
3399
3436
|
style: ve({ bottom: s.value + "px" })
|
|
3400
3437
|
}, {
|
|
3401
3438
|
default: u(() => [
|
|
3402
3439
|
p("div", $n, [
|
|
3403
|
-
|
|
3440
|
+
x(w(zt))
|
|
3404
3441
|
])
|
|
3405
3442
|
]),
|
|
3406
3443
|
_: 1
|
|
@@ -3410,7 +3447,7 @@ const aa = {
|
|
|
3410
3447
|
_: 3
|
|
3411
3448
|
}, 8, ["spinning"]));
|
|
3412
3449
|
}
|
|
3413
|
-
}), Mn = /* @__PURE__ */
|
|
3450
|
+
}), Mn = /* @__PURE__ */ le(In, [["__scopeId", "data-v-41f1fc73"]]), Dn = ee(Mn), An = { class: "hb_edit_header_left" }, Bn = { class: "hb_edit_header_title" }, On = { class: "hb_edit_header_right" }, En = /* @__PURE__ */ oe({
|
|
3414
3451
|
name: "HbLibPageHeader",
|
|
3415
3452
|
__name: "HbLibPageHeader",
|
|
3416
3453
|
props: {
|
|
@@ -3429,16 +3466,16 @@ const aa = {
|
|
|
3429
3466
|
},
|
|
3430
3467
|
setup(e) {
|
|
3431
3468
|
const { t: o } = ye(), t = e, a = it(), d = E(0), s = $(() => a?.meta?.title || "");
|
|
3432
|
-
function c(
|
|
3469
|
+
function c(h, P = "offsetHeight") {
|
|
3433
3470
|
let I = 0;
|
|
3434
|
-
return (Array.isArray(
|
|
3435
|
-
let
|
|
3436
|
-
if (
|
|
3437
|
-
const m = document.getElementById(
|
|
3438
|
-
m &&
|
|
3471
|
+
return (Array.isArray(h) ? h : [h]).forEach((A) => {
|
|
3472
|
+
let v = [];
|
|
3473
|
+
if (A.startsWith("#")) {
|
|
3474
|
+
const m = document.getElementById(A.slice(1));
|
|
3475
|
+
m && v.push(m);
|
|
3439
3476
|
} else
|
|
3440
|
-
|
|
3441
|
-
|
|
3477
|
+
v = Array.from(document.getElementsByClassName(A));
|
|
3478
|
+
v.forEach((m) => {
|
|
3442
3479
|
I += m[P] || 0;
|
|
3443
3480
|
});
|
|
3444
3481
|
}), I;
|
|
@@ -3453,8 +3490,8 @@ const aa = {
|
|
|
3453
3490
|
r(), i(), window.addEventListener("resize", r), f = new MutationObserver(() => {
|
|
3454
3491
|
i();
|
|
3455
3492
|
});
|
|
3456
|
-
const
|
|
3457
|
-
f.observe(
|
|
3493
|
+
const h = document.body;
|
|
3494
|
+
f.observe(h, {
|
|
3458
3495
|
childList: !0,
|
|
3459
3496
|
// 子节点的变动
|
|
3460
3497
|
subtree: !0,
|
|
@@ -3471,12 +3508,12 @@ const aa = {
|
|
|
3471
3508
|
},
|
|
3472
3509
|
{ immediate: !0 }
|
|
3473
3510
|
);
|
|
3474
|
-
const
|
|
3511
|
+
const _ = () => {
|
|
3475
3512
|
t.backFn ? t.backFn() : window.history.back();
|
|
3476
3513
|
};
|
|
3477
|
-
return (
|
|
3514
|
+
return (h, P) => {
|
|
3478
3515
|
const I = j("a-divider");
|
|
3479
|
-
return n(),
|
|
3516
|
+
return n(), L("div", {
|
|
3480
3517
|
class: "hb_edit_header",
|
|
3481
3518
|
style: ve({ top: d.value + "px", "--pageHeaderOrFonterLeft": l.value + "px" })
|
|
3482
3519
|
}, [
|
|
@@ -3484,18 +3521,18 @@ const aa = {
|
|
|
3484
3521
|
p("a", {
|
|
3485
3522
|
href: "#",
|
|
3486
3523
|
class: "backBtn",
|
|
3487
|
-
onClick:
|
|
3488
|
-
},
|
|
3489
|
-
|
|
3490
|
-
p("span", Bn,
|
|
3524
|
+
onClick: _
|
|
3525
|
+
}, k(w(o)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3526
|
+
x(I, { type: "vertical" }),
|
|
3527
|
+
p("span", Bn, k(s.value), 1)
|
|
3491
3528
|
]),
|
|
3492
3529
|
p("aside", On, [
|
|
3493
|
-
|
|
3530
|
+
Y(h.$slots, "right", {}, void 0, !0)
|
|
3494
3531
|
])
|
|
3495
3532
|
], 4);
|
|
3496
3533
|
};
|
|
3497
3534
|
}
|
|
3498
|
-
}), Pn = /* @__PURE__ */
|
|
3535
|
+
}), Pn = /* @__PURE__ */ le(En, [["__scopeId", "data-v-83fcd208"]]), Nn = ee(Pn), Un = {
|
|
3499
3536
|
// 如果存在cpText时,K和V无效
|
|
3500
3537
|
cpText: {
|
|
3501
3538
|
type: String,
|
|
@@ -3540,7 +3577,7 @@ const aa = {
|
|
|
3540
3577
|
type: String,
|
|
3541
3578
|
default: "ab"
|
|
3542
3579
|
}
|
|
3543
|
-
}, zn = /* @__PURE__ */
|
|
3580
|
+
}, zn = /* @__PURE__ */ oe({
|
|
3544
3581
|
name: "HbLibCopy",
|
|
3545
3582
|
__name: "copy",
|
|
3546
3583
|
props: Un,
|
|
@@ -3568,7 +3605,7 @@ const aa = {
|
|
|
3568
3605
|
Le.error(s.value);
|
|
3569
3606
|
});
|
|
3570
3607
|
};
|
|
3571
|
-
return (l, i) => c.value ? (n(),
|
|
3608
|
+
return (l, i) => c.value ? (n(), V(w(We), {
|
|
3572
3609
|
key: 0,
|
|
3573
3610
|
title: a.value
|
|
3574
3611
|
}, {
|
|
@@ -3607,9 +3644,9 @@ const aa = {
|
|
|
3607
3644
|
])], 4)
|
|
3608
3645
|
]),
|
|
3609
3646
|
_: 1
|
|
3610
|
-
}, 8, ["title"])) :
|
|
3647
|
+
}, 8, ["title"])) : B("", !0);
|
|
3611
3648
|
}
|
|
3612
|
-
}), Rn = /* @__PURE__ */
|
|
3649
|
+
}), Rn = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-2b6710a1"]]), qt = ee(Rn), Vn = {
|
|
3613
3650
|
dragList: {
|
|
3614
3651
|
type: Array,
|
|
3615
3652
|
required: !0
|
|
@@ -3648,7 +3685,7 @@ const aa = {
|
|
|
3648
3685
|
type: String,
|
|
3649
3686
|
default: ""
|
|
3650
3687
|
}
|
|
3651
|
-
}, Wn = /* @__PURE__ */
|
|
3688
|
+
}, Wn = /* @__PURE__ */ oe({
|
|
3652
3689
|
name: "HbDrag",
|
|
3653
3690
|
__name: "index",
|
|
3654
3691
|
props: Vn,
|
|
@@ -3674,13 +3711,13 @@ const aa = {
|
|
|
3674
3711
|
}, i = (f) => {
|
|
3675
3712
|
console.log("drag remove", f), s("handleDragRemove", f);
|
|
3676
3713
|
};
|
|
3677
|
-
return (f,
|
|
3678
|
-
class:
|
|
3714
|
+
return (f, _) => (n(), L("div", {
|
|
3715
|
+
class: Q(w(d).b())
|
|
3679
3716
|
}, [
|
|
3680
|
-
f.childrenType == "component" ? (n(),
|
|
3717
|
+
f.childrenType == "component" ? (n(), V(w(Ve), te({
|
|
3681
3718
|
key: 0,
|
|
3682
3719
|
modelValue: a.value,
|
|
3683
|
-
"onUpdate:modelValue":
|
|
3720
|
+
"onUpdate:modelValue": _[0] || (_[0] = (h) => a.value = h),
|
|
3684
3721
|
"item-key": "key",
|
|
3685
3722
|
class: { [f.dragClass]: f.dragClass }
|
|
3686
3723
|
}, f.$attrs, {
|
|
@@ -3690,14 +3727,14 @@ const aa = {
|
|
|
3690
3727
|
onAdd: l,
|
|
3691
3728
|
onRemove: i
|
|
3692
3729
|
}), {
|
|
3693
|
-
item: u(({ element:
|
|
3694
|
-
(n(),
|
|
3730
|
+
item: u(({ element: h }) => [
|
|
3731
|
+
(n(), V(Nt(h.component)))
|
|
3695
3732
|
]),
|
|
3696
3733
|
_: 1
|
|
3697
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (n(),
|
|
3734
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (n(), V(w(Ve), te({
|
|
3698
3735
|
key: 1,
|
|
3699
3736
|
modelValue: a.value,
|
|
3700
|
-
"onUpdate:modelValue":
|
|
3737
|
+
"onUpdate:modelValue": _[1] || (_[1] = (h) => a.value = h),
|
|
3701
3738
|
"item-key": "id",
|
|
3702
3739
|
class: { [f.dragClass]: f.dragClass }
|
|
3703
3740
|
}, f.$attrs, {
|
|
@@ -3707,16 +3744,16 @@ const aa = {
|
|
|
3707
3744
|
onAdd: l,
|
|
3708
3745
|
onRemove: i
|
|
3709
3746
|
}), {
|
|
3710
|
-
item: u(({ element:
|
|
3747
|
+
item: u(({ element: h }) => [
|
|
3711
3748
|
p("div", null, [
|
|
3712
|
-
|
|
3749
|
+
Y(f.$slots, "default", { item: h }, void 0, !0)
|
|
3713
3750
|
])
|
|
3714
3751
|
]),
|
|
3715
3752
|
_: 3
|
|
3716
3753
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3717
3754
|
], 2));
|
|
3718
3755
|
}
|
|
3719
|
-
}), jn = /* @__PURE__ */
|
|
3756
|
+
}), jn = /* @__PURE__ */ le(Wn, [["__scopeId", "data-v-15b227f5"]]), qn = ee(jn), Yn = {
|
|
3720
3757
|
triggerWay: {
|
|
3721
3758
|
type: String,
|
|
3722
3759
|
default: "click"
|
|
@@ -3732,7 +3769,7 @@ const aa = {
|
|
|
3732
3769
|
getSort: {
|
|
3733
3770
|
type: Function
|
|
3734
3771
|
}
|
|
3735
|
-
}, Kn = /* @__PURE__ */
|
|
3772
|
+
}, Kn = /* @__PURE__ */ oe({
|
|
3736
3773
|
name: "HbLibSort",
|
|
3737
3774
|
__name: "sort",
|
|
3738
3775
|
props: Yn,
|
|
@@ -3765,21 +3802,21 @@ const aa = {
|
|
|
3765
3802
|
return o({
|
|
3766
3803
|
currentActiveItem: c
|
|
3767
3804
|
}), (l, i) => {
|
|
3768
|
-
const f = j("a-menu-item"),
|
|
3769
|
-
return n(),
|
|
3805
|
+
const f = j("a-menu-item"), _ = j("a-menu"), h = j("a-dropdown");
|
|
3806
|
+
return n(), V(h, {
|
|
3770
3807
|
trigger: [a.triggerWay]
|
|
3771
3808
|
}, {
|
|
3772
3809
|
overlay: u(() => [
|
|
3773
|
-
|
|
3810
|
+
x(_, null, {
|
|
3774
3811
|
default: u(() => [
|
|
3775
|
-
(n(!0),
|
|
3812
|
+
(n(!0), L(X, null, me(s.value, (P) => (n(), V(f, {
|
|
3776
3813
|
key: P.value + P.sort,
|
|
3777
3814
|
onClick: (I) => r(P)
|
|
3778
3815
|
}, {
|
|
3779
3816
|
default: u(() => [
|
|
3780
3817
|
p("span", {
|
|
3781
|
-
class:
|
|
3782
|
-
},
|
|
3818
|
+
class: Q(c.value == P.value + P.sort ? "activted" : "")
|
|
3819
|
+
}, k(P.label), 3)
|
|
3783
3820
|
]),
|
|
3784
3821
|
_: 2
|
|
3785
3822
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -3793,15 +3830,15 @@ const aa = {
|
|
|
3793
3830
|
onClick: i[0] || (i[0] = Re(() => {
|
|
3794
3831
|
}, ["prevent"]))
|
|
3795
3832
|
}, [
|
|
3796
|
-
O(
|
|
3797
|
-
|
|
3833
|
+
O(k(a.colText) + " ", 1),
|
|
3834
|
+
x(w(lt))
|
|
3798
3835
|
])
|
|
3799
3836
|
]),
|
|
3800
3837
|
_: 1
|
|
3801
3838
|
}, 8, ["trigger"]);
|
|
3802
3839
|
};
|
|
3803
3840
|
}
|
|
3804
|
-
}), Gn = /* @__PURE__ */
|
|
3841
|
+
}), Gn = /* @__PURE__ */ le(Kn, [["__scopeId", "data-v-cf0b0a0d"]]), Jn = ee(Gn), Xn = { class: "hb_lib_loading" }, Qn = { class: "hb_lib_loading_loading_anima" }, Zn = { class: "hb_lib_loading_load_tips" }, ei = /* @__PURE__ */ oe({
|
|
3805
3842
|
name: "HbLibLoading",
|
|
3806
3843
|
__name: "loading",
|
|
3807
3844
|
props: {
|
|
@@ -3812,14 +3849,14 @@ const aa = {
|
|
|
3812
3849
|
},
|
|
3813
3850
|
setup(e) {
|
|
3814
3851
|
const { t: o } = ye(), t = e, a = $(() => t.loadTips || o("hbLibComp.HbLibLoading.loadingTips"));
|
|
3815
|
-
return (d, s) => (n(),
|
|
3852
|
+
return (d, s) => (n(), L("div", Xn, [
|
|
3816
3853
|
p("div", Qn, [
|
|
3817
3854
|
s[0] || (s[0] = oo('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>', 1)),
|
|
3818
|
-
p("div", Zn,
|
|
3855
|
+
p("div", Zn, k(a.value), 1)
|
|
3819
3856
|
])
|
|
3820
3857
|
]));
|
|
3821
3858
|
}
|
|
3822
|
-
}), ti = /* @__PURE__ */
|
|
3859
|
+
}), ti = /* @__PURE__ */ le(ei, [["__scopeId", "data-v-22f438b9"]]), oi = ee(ti);
|
|
3823
3860
|
function Yt(e) {
|
|
3824
3861
|
const o = e.trim();
|
|
3825
3862
|
try {
|
|
@@ -4045,7 +4082,7 @@ const ri = (e) => {
|
|
|
4045
4082
|
l.value = U;
|
|
4046
4083
|
}
|
|
4047
4084
|
);
|
|
4048
|
-
const i = $(() => r.mobile ? "100%" : "98%"), f = $(() => String(r.url || "").trim()),
|
|
4085
|
+
const i = $(() => r.mobile ? "100%" : "98%"), f = $(() => String(r.url || "").trim()), _ = $(() => !!f.value), h = $(() => r.mobile ? "large" : "middle"), P = $(
|
|
4049
4086
|
() => r.mobile ? { top: 0, paddingBottom: 0, maxWidth: "100vw" } : { top: "20px" }
|
|
4050
4087
|
), I = $(() => ({
|
|
4051
4088
|
height: r.mobile ? "calc(100vh - 132px)" : "calc(100vh - 150px)",
|
|
@@ -4055,37 +4092,37 @@ const ri = (e) => {
|
|
|
4055
4092
|
minHeight: 0,
|
|
4056
4093
|
overflow: "hidden",
|
|
4057
4094
|
boxSizing: "border-box"
|
|
4058
|
-
})),
|
|
4059
|
-
const
|
|
4060
|
-
return a.has(
|
|
4061
|
-
},
|
|
4095
|
+
})), W = (U) => String(U || "").trim().replace(/^\./, "").toLowerCase(), A = (U) => {
|
|
4096
|
+
const R = W(ri(String(U || "")));
|
|
4097
|
+
return a.has(R) || d.has(R) ? R : "";
|
|
4098
|
+
}, v = (U) => {
|
|
4062
4099
|
try {
|
|
4063
4100
|
return decodeURIComponent(String(U || ""));
|
|
4064
4101
|
} catch {
|
|
4065
4102
|
return String(U || "");
|
|
4066
4103
|
}
|
|
4067
4104
|
}, m = (U) => {
|
|
4068
|
-
const
|
|
4069
|
-
if (!
|
|
4070
|
-
const ce =
|
|
4105
|
+
const R = v(U).trim();
|
|
4106
|
+
if (!R) return "";
|
|
4107
|
+
const ce = A(R);
|
|
4071
4108
|
if (ce) return ce;
|
|
4072
|
-
const ne =
|
|
4109
|
+
const ne = R.match(
|
|
4073
4110
|
/(?:\(|()\s*([a-z0-9]{2,8})\s*(?:\)|))\s*$/i
|
|
4074
|
-
), de =
|
|
4111
|
+
), de = W(ne?.[1]);
|
|
4075
4112
|
return a.has(de) || d.has(de) ? de : "";
|
|
4076
4113
|
}, y = (U) => {
|
|
4077
4114
|
if (!U) return "";
|
|
4078
|
-
const
|
|
4079
|
-
if (
|
|
4115
|
+
const R = U.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);
|
|
4116
|
+
if (R?.[1]) return v(R[1]);
|
|
4080
4117
|
const ce = U.match(/filename\s*=\s*"?([^";]+)"?/i);
|
|
4081
|
-
return ce?.[1] ?
|
|
4082
|
-
},
|
|
4083
|
-
const
|
|
4084
|
-
if (!
|
|
4085
|
-
const ce =
|
|
4118
|
+
return ce?.[1] ? v(ce[1]) : "";
|
|
4119
|
+
}, F = (U) => {
|
|
4120
|
+
const R = String(U || "").trim();
|
|
4121
|
+
if (!R) return "";
|
|
4122
|
+
const ce = A(R);
|
|
4086
4123
|
if (ce) return ce;
|
|
4087
4124
|
try {
|
|
4088
|
-
const ne = new URL(
|
|
4125
|
+
const ne = new URL(R, "http://local.preview"), de = m(
|
|
4089
4126
|
ne.pathname.split("/").pop() || ""
|
|
4090
4127
|
);
|
|
4091
4128
|
if (de) return de;
|
|
@@ -4115,11 +4152,11 @@ const ri = (e) => {
|
|
|
4115
4152
|
} catch {
|
|
4116
4153
|
}
|
|
4117
4154
|
return "";
|
|
4118
|
-
},
|
|
4119
|
-
const
|
|
4120
|
-
if (!
|
|
4155
|
+
}, C = async (U) => {
|
|
4156
|
+
const R = String(U || "").trim();
|
|
4157
|
+
if (!R) return "";
|
|
4121
4158
|
try {
|
|
4122
|
-
const ce = await fetch(
|
|
4159
|
+
const ce = await fetch(R, {
|
|
4123
4160
|
method: "HEAD",
|
|
4124
4161
|
credentials: "include",
|
|
4125
4162
|
mode: "cors"
|
|
@@ -4133,36 +4170,36 @@ const ri = (e) => {
|
|
|
4133
4170
|
} catch {
|
|
4134
4171
|
return "";
|
|
4135
4172
|
}
|
|
4136
|
-
},
|
|
4137
|
-
let
|
|
4173
|
+
}, T = E("");
|
|
4174
|
+
let M = 0;
|
|
4138
4175
|
ie(
|
|
4139
4176
|
// 与 URL/文件名相关的信息变化,都重新走一次扩展名推断
|
|
4140
4177
|
() => `${r.fileName || ""}\0${f.value}`,
|
|
4141
4178
|
async () => {
|
|
4142
|
-
const U = ++
|
|
4143
|
-
if (
|
|
4144
|
-
const ne = await
|
|
4179
|
+
const U = ++M, R = m(r.fileName || ""), ce = F(f.value);
|
|
4180
|
+
if (T.value = R || ce || "", T.value) return;
|
|
4181
|
+
const ne = await C(
|
|
4145
4182
|
f.value
|
|
4146
4183
|
);
|
|
4147
|
-
U ===
|
|
4184
|
+
U === M && (T.value = W(ne));
|
|
4148
4185
|
},
|
|
4149
4186
|
{ immediate: !0 }
|
|
4150
4187
|
);
|
|
4151
|
-
const
|
|
4188
|
+
const b = $(() => W(T.value)), S = $(
|
|
4152
4189
|
() => `${r.url}\0${r.fileName || ""}`
|
|
4153
|
-
), N = $(() => d.has(
|
|
4154
|
-
() => a.has(
|
|
4155
|
-
),
|
|
4190
|
+
), N = $(() => d.has(b.value)), q = $(
|
|
4191
|
+
() => a.has(b.value)
|
|
4192
|
+
), G = $(() => {
|
|
4156
4193
|
const U = f.value;
|
|
4157
4194
|
if (!U) return !1;
|
|
4158
4195
|
try {
|
|
4159
|
-
const { pathname:
|
|
4160
|
-
return /\/file(?:\/|-)preview\b/i.test(
|
|
4196
|
+
const { pathname: R } = new URL(U);
|
|
4197
|
+
return /\/file(?:\/|-)preview\b/i.test(R);
|
|
4161
4198
|
} catch {
|
|
4162
4199
|
return /\/file(?:\/|-)preview\b/i.test(U);
|
|
4163
4200
|
}
|
|
4164
|
-
}),
|
|
4165
|
-
const U =
|
|
4201
|
+
}), H = lo(), z = $(() => {
|
|
4202
|
+
const U = H?.appContext?.components || {};
|
|
4166
4203
|
return !!(U.VueFilesPreview || U.VueFilesPreview || U["vue-files-preview"]);
|
|
4167
4204
|
}), se = /* @__PURE__ */ new Set([
|
|
4168
4205
|
"xlsx",
|
|
@@ -4175,7 +4212,7 @@ const ri = (e) => {
|
|
|
4175
4212
|
"fods",
|
|
4176
4213
|
"xlt",
|
|
4177
4214
|
"xltm"
|
|
4178
|
-
]), re = $(() => !
|
|
4215
|
+
]), re = $(() => !z.value || !f.value || G.value ? !1 : se.has(b.value)), fe = $(() => b.value === "txt"), be = $(() => !f.value || G.value ? !1 : fe.value), pe = {
|
|
4179
4216
|
idle: "idle",
|
|
4180
4217
|
loading: "loading",
|
|
4181
4218
|
text: "text",
|
|
@@ -4187,11 +4224,11 @@ const ri = (e) => {
|
|
|
4187
4224
|
url: f.value,
|
|
4188
4225
|
isTxt: fe.value
|
|
4189
4226
|
}),
|
|
4190
|
-
async ({ visible: U, url:
|
|
4191
|
-
if (g.value = "", he.value = pe.idle, !(!U || !ce || !
|
|
4227
|
+
async ({ visible: U, url: R, isTxt: ce }) => {
|
|
4228
|
+
if (g.value = "", he.value = pe.idle, !(!U || !ce || !R)) {
|
|
4192
4229
|
he.value = pe.loading;
|
|
4193
4230
|
try {
|
|
4194
|
-
const ne = await fetch(
|
|
4231
|
+
const ne = await fetch(R, {
|
|
4195
4232
|
credentials: "include",
|
|
4196
4233
|
mode: "cors"
|
|
4197
4234
|
});
|
|
@@ -4204,20 +4241,20 @@ const ri = (e) => {
|
|
|
4204
4241
|
},
|
|
4205
4242
|
{ flush: "post" }
|
|
4206
4243
|
);
|
|
4207
|
-
const
|
|
4208
|
-
() => t.has(
|
|
4209
|
-
),
|
|
4244
|
+
const K = $(() => !f.value || !z.value || fe.value ? !1 : re.value ? !0 : !q.value && !N.value), D = $(
|
|
4245
|
+
() => t.has(b.value)
|
|
4246
|
+
), Z = $(() => {
|
|
4210
4247
|
const U = f.value;
|
|
4211
|
-
return U ?
|
|
4248
|
+
return U ? G.value || !q.value || r.needSafe || b.value === "pdf" ? U : D.value ? `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(U)}` : `https://docs.google.com/gview?url=${encodeURIComponent(U)}&embedded=true` : r.url;
|
|
4212
4249
|
}), ue = /* @__PURE__ */ new Set([
|
|
4213
4250
|
"view.officeapps.live.com",
|
|
4214
4251
|
"docs.google.com"
|
|
4215
4252
|
]), we = $(() => {
|
|
4216
|
-
const U = (
|
|
4253
|
+
const U = (Z.value || "").trim();
|
|
4217
4254
|
if (!U) return !1;
|
|
4218
4255
|
try {
|
|
4219
|
-
const
|
|
4220
|
-
return ue.has(
|
|
4256
|
+
const R = new URL(U).hostname.toLowerCase();
|
|
4257
|
+
return ue.has(R);
|
|
4221
4258
|
} catch {
|
|
4222
4259
|
return /view\.officeapps\.live\.com|docs\.google\.com/i.test(U);
|
|
4223
4260
|
}
|
|
@@ -4228,19 +4265,19 @@ const ri = (e) => {
|
|
|
4228
4265
|
ie(
|
|
4229
4266
|
() => ({
|
|
4230
4267
|
visible: r.previewVisible,
|
|
4231
|
-
src:
|
|
4232
|
-
doc:
|
|
4233
|
-
serverPage:
|
|
4268
|
+
src: Z.value,
|
|
4269
|
+
doc: q.value,
|
|
4270
|
+
serverPage: G.value,
|
|
4234
4271
|
skipIframe: re.value
|
|
4235
4272
|
}),
|
|
4236
|
-
async ({ visible: U, src:
|
|
4273
|
+
async ({ visible: U, src: R, doc: ce, serverPage: ne, skipIframe: de }) => {
|
|
4237
4274
|
if (ae.value = "", !U || !(ce || ne) || de) return;
|
|
4238
|
-
const Fe = (
|
|
4239
|
-
Fe && (await xe(), await new Promise((Se) => requestAnimationFrame(Se)), r.previewVisible &&
|
|
4275
|
+
const Fe = (R || "").trim();
|
|
4276
|
+
Fe && (await xe(), await new Promise((Se) => requestAnimationFrame(Se)), r.previewVisible && Z.value === Fe && (ae.value = Fe));
|
|
4240
4277
|
},
|
|
4241
4278
|
{ flush: "post" }
|
|
4242
4279
|
);
|
|
4243
|
-
const $e = $(() =>
|
|
4280
|
+
const $e = $(() => _.value), Ie = async () => {
|
|
4244
4281
|
f.value && (Ht() ? window.open(f.value, "_blank") : await Ue(
|
|
4245
4282
|
f.value,
|
|
4246
4283
|
r.fileName || "file"
|
|
@@ -4248,16 +4285,16 @@ const ri = (e) => {
|
|
|
4248
4285
|
}, Me = () => {
|
|
4249
4286
|
c("closeModal");
|
|
4250
4287
|
}, De = (U) => {
|
|
4251
|
-
const
|
|
4288
|
+
const R = U instanceof Error ? U.message : typeof U == "string" ? U : "";
|
|
4252
4289
|
Le.warning(
|
|
4253
|
-
|
|
4290
|
+
R ? `文件预览加载失败:${R},可尝试下载后查看` : "文件预览加载失败,可尝试下载后查看"
|
|
4254
4291
|
);
|
|
4255
|
-
},
|
|
4256
|
-
|
|
4292
|
+
}, J = (U) => U instanceof TypeError && typeof U.message == "string" && /failed to fetch/i.test(U.message), ct = (U) => {
|
|
4293
|
+
J(U.error) && r.previewVisible && Le.error(
|
|
4257
4294
|
"文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看"
|
|
4258
4295
|
);
|
|
4259
4296
|
}, dt = (U) => {
|
|
4260
|
-
|
|
4297
|
+
J(U.reason) && r.previewVisible && Le.error(
|
|
4261
4298
|
"文件加载失败(网络异常或请求被拒绝),请检查网络与权限后重试,或下载后查看"
|
|
4262
4299
|
);
|
|
4263
4300
|
};
|
|
@@ -4271,12 +4308,12 @@ const ri = (e) => {
|
|
|
4271
4308
|
"unhandledrejection",
|
|
4272
4309
|
dt
|
|
4273
4310
|
);
|
|
4274
|
-
}), (U,
|
|
4311
|
+
}), (U, R) => {
|
|
4275
4312
|
const ce = j("VueFilesPreview"), ne = j("a-spin"), de = j("a-button"), Fe = j("a-modal");
|
|
4276
|
-
return e.needModal ? (n(),
|
|
4313
|
+
return e.needModal ? (n(), V(Fe, te({
|
|
4277
4314
|
key: 0,
|
|
4278
4315
|
visible: l.value,
|
|
4279
|
-
"onUpdate:visible":
|
|
4316
|
+
"onUpdate:visible": R[2] || (R[2] = (Se) => l.value = Se),
|
|
4280
4317
|
width: i.value,
|
|
4281
4318
|
"body-style": I.value,
|
|
4282
4319
|
style: P.value,
|
|
@@ -4285,60 +4322,60 @@ const ri = (e) => {
|
|
|
4285
4322
|
}, U.$attrs, { onCancel: Me }), {
|
|
4286
4323
|
title: u(() => [
|
|
4287
4324
|
p("div", di, [
|
|
4288
|
-
|
|
4289
|
-
|
|
4325
|
+
Y(U.$slots, "title", {}, () => [
|
|
4326
|
+
R[5] || (R[5] = O("文件预览", -1))
|
|
4290
4327
|
], !0),
|
|
4291
|
-
|
|
4328
|
+
w(Ht)() && e.isTitleTip ? (n(), L("span", ui, k(e.titleTip), 1)) : B("", !0)
|
|
4292
4329
|
])
|
|
4293
4330
|
]),
|
|
4294
4331
|
footer: u(() => [
|
|
4295
4332
|
p("div", {
|
|
4296
|
-
class:
|
|
4333
|
+
class: Q(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
|
|
4297
4334
|
}, [
|
|
4298
|
-
|
|
4299
|
-
e.showAttachmentNav ? (n(),
|
|
4300
|
-
|
|
4335
|
+
Y(U.$slots, "footer", {}, () => [
|
|
4336
|
+
e.showAttachmentNav ? (n(), L("div", wi, [
|
|
4337
|
+
x(de, {
|
|
4301
4338
|
disabled: !e.hasPrevAttachment,
|
|
4302
|
-
size:
|
|
4339
|
+
size: h.value,
|
|
4303
4340
|
block: e.mobile,
|
|
4304
|
-
onClick:
|
|
4341
|
+
onClick: R[0] || (R[0] = (Se) => c("prevAttachment"))
|
|
4305
4342
|
}, {
|
|
4306
|
-
default: u(() => [...
|
|
4343
|
+
default: u(() => [...R[6] || (R[6] = [
|
|
4307
4344
|
O(" 上一个 ", -1)
|
|
4308
4345
|
])]),
|
|
4309
4346
|
_: 1
|
|
4310
4347
|
}, 8, ["disabled", "size", "block"]),
|
|
4311
|
-
|
|
4348
|
+
x(de, {
|
|
4312
4349
|
disabled: !e.hasNextAttachment,
|
|
4313
|
-
size:
|
|
4350
|
+
size: h.value,
|
|
4314
4351
|
block: e.mobile,
|
|
4315
|
-
onClick:
|
|
4352
|
+
onClick: R[1] || (R[1] = (Se) => c("nextAttachment"))
|
|
4316
4353
|
}, {
|
|
4317
|
-
default: u(() => [...
|
|
4354
|
+
default: u(() => [...R[7] || (R[7] = [
|
|
4318
4355
|
O(" 下一个 ", -1)
|
|
4319
4356
|
])]),
|
|
4320
4357
|
_: 1
|
|
4321
4358
|
}, 8, ["disabled", "size", "block"])
|
|
4322
|
-
])) :
|
|
4323
|
-
$e.value ? (n(),
|
|
4359
|
+
])) : B("", !0),
|
|
4360
|
+
$e.value ? (n(), V(de, {
|
|
4324
4361
|
key: 1,
|
|
4325
|
-
size:
|
|
4362
|
+
size: h.value,
|
|
4326
4363
|
block: e.mobile,
|
|
4327
4364
|
onClick: Ie
|
|
4328
4365
|
}, {
|
|
4329
|
-
default: u(() => [...
|
|
4366
|
+
default: u(() => [...R[8] || (R[8] = [
|
|
4330
4367
|
O(" 下载 ", -1)
|
|
4331
4368
|
])]),
|
|
4332
4369
|
_: 1
|
|
4333
|
-
}, 8, ["size", "block"])) :
|
|
4334
|
-
|
|
4370
|
+
}, 8, ["size", "block"])) : B("", !0),
|
|
4371
|
+
x(de, {
|
|
4335
4372
|
type: "primary",
|
|
4336
4373
|
class: "file-preview-modal-footer__close",
|
|
4337
|
-
size:
|
|
4374
|
+
size: h.value,
|
|
4338
4375
|
block: e.mobile,
|
|
4339
4376
|
onClick: Me
|
|
4340
4377
|
}, {
|
|
4341
|
-
default: u(() => [...
|
|
4378
|
+
default: u(() => [...R[9] || (R[9] = [
|
|
4342
4379
|
O(" 关闭 ", -1)
|
|
4343
4380
|
])]),
|
|
4344
4381
|
_: 1
|
|
@@ -4348,174 +4385,174 @@ const ri = (e) => {
|
|
|
4348
4385
|
]),
|
|
4349
4386
|
default: u(() => [
|
|
4350
4387
|
p("div", fi, [
|
|
4351
|
-
e.needSafe ? (n(),
|
|
4352
|
-
|
|
4353
|
-
ae.value ? (n(),
|
|
4354
|
-
key: `${
|
|
4388
|
+
e.needSafe ? (n(), L("section", pi, [
|
|
4389
|
+
G.value ? (n(), L(X, { key: 0 }, [
|
|
4390
|
+
ae.value ? (n(), L("iframe", te({
|
|
4391
|
+
key: `${S.value}:${ae.value}`,
|
|
4355
4392
|
src: ae.value
|
|
4356
4393
|
}, ge.value, {
|
|
4357
4394
|
class: "file-preview-modal-body__iframe",
|
|
4358
4395
|
width: "100%",
|
|
4359
4396
|
style: { border: "none" },
|
|
4360
4397
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4361
|
-
}), null, 16, mi)) :
|
|
4362
|
-
], 64)) : N.value ? (n(),
|
|
4363
|
-
key: `img:${
|
|
4398
|
+
}), null, 16, mi)) : B("", !0)
|
|
4399
|
+
], 64)) : N.value ? (n(), L("img", {
|
|
4400
|
+
key: `img:${S.value}`,
|
|
4364
4401
|
class: "file-preview-modal-body__img",
|
|
4365
4402
|
src: e.url,
|
|
4366
4403
|
alt: "预览"
|
|
4367
|
-
}, null, 8, bi)) : (n(),
|
|
4368
|
-
key: `vfp:${
|
|
4404
|
+
}, null, 8, bi)) : (n(), V(ce, {
|
|
4405
|
+
key: `vfp:${S.value}`,
|
|
4369
4406
|
url: e.url,
|
|
4370
4407
|
onError: De
|
|
4371
4408
|
}, null, 8, ["url"]))
|
|
4372
|
-
])) : (n(),
|
|
4373
|
-
|
|
4374
|
-
ae.value ? (n(),
|
|
4375
|
-
key: `${
|
|
4409
|
+
])) : (n(), L("section", hi, [
|
|
4410
|
+
G.value ? (n(), L(X, { key: 0 }, [
|
|
4411
|
+
ae.value ? (n(), L("iframe", te({
|
|
4412
|
+
key: `${S.value}:${ae.value}`,
|
|
4376
4413
|
src: ae.value
|
|
4377
4414
|
}, ge.value, {
|
|
4378
4415
|
class: "file-preview-modal-body__iframe",
|
|
4379
4416
|
width: "100%",
|
|
4380
4417
|
style: { border: "none" },
|
|
4381
4418
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4382
|
-
}), null, 16, vi)) :
|
|
4383
|
-
], 64)) : be.value ? (n(),
|
|
4384
|
-
key: `txt:${
|
|
4419
|
+
}), null, 16, vi)) : B("", !0)
|
|
4420
|
+
], 64)) : be.value ? (n(), L("div", {
|
|
4421
|
+
key: `txt:${S.value}`,
|
|
4385
4422
|
class: "file-preview-modal-body__plaintext"
|
|
4386
4423
|
}, [
|
|
4387
|
-
he.value === pe.loading ? (n(),
|
|
4424
|
+
he.value === pe.loading ? (n(), V(ne, {
|
|
4388
4425
|
key: 0,
|
|
4389
4426
|
tip: "加载中..."
|
|
4390
|
-
})) : he.value === pe.iframeFallback ? (n(),
|
|
4427
|
+
})) : he.value === pe.iframeFallback ? (n(), L("iframe", {
|
|
4391
4428
|
key: 1,
|
|
4392
4429
|
src: r.url,
|
|
4393
4430
|
class: "file-preview-modal-body__iframe",
|
|
4394
4431
|
width: "100%",
|
|
4395
4432
|
style: { border: "none" },
|
|
4396
4433
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4397
|
-
}, null, 8, gi)) : he.value === pe.text ? (n(),
|
|
4398
|
-
])) :
|
|
4399
|
-
ae.value ? (n(),
|
|
4400
|
-
key: `${
|
|
4434
|
+
}, null, 8, gi)) : he.value === pe.text ? (n(), L("pre", yi, k(g.value), 1)) : B("", !0)
|
|
4435
|
+
])) : q.value ? (n(), L(X, { key: 2 }, [
|
|
4436
|
+
ae.value ? (n(), L("iframe", {
|
|
4437
|
+
key: `${S.value}:${ae.value}`,
|
|
4401
4438
|
src: ae.value,
|
|
4402
4439
|
class: "file-preview-modal-body__iframe",
|
|
4403
4440
|
width: "100%",
|
|
4404
4441
|
style: { border: "none" },
|
|
4405
4442
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4406
|
-
}, null, 8, _i)) :
|
|
4407
|
-
], 64)) : N.value ? (n(),
|
|
4408
|
-
key: `img:${
|
|
4443
|
+
}, null, 8, _i)) : B("", !0)
|
|
4444
|
+
], 64)) : N.value ? (n(), L("img", {
|
|
4445
|
+
key: `img:${S.value}`,
|
|
4409
4446
|
class: "file-preview-modal-body__img",
|
|
4410
4447
|
src: e.url,
|
|
4411
4448
|
alt: "预览"
|
|
4412
|
-
}, null, 8, Li)) : e.url ? (n(),
|
|
4413
|
-
key: `nop:${
|
|
4449
|
+
}, null, 8, Li)) : e.url ? (n(), L("div", {
|
|
4450
|
+
key: `nop:${S.value}`,
|
|
4414
4451
|
class: "no-preview"
|
|
4415
|
-
},
|
|
4452
|
+
}, k(z.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : B("", !0)
|
|
4416
4453
|
]))
|
|
4417
4454
|
])
|
|
4418
4455
|
]),
|
|
4419
4456
|
_: 3
|
|
4420
|
-
}, 16, ["visible", "width", "body-style", "style", "wrap-class-name"])) : (n(),
|
|
4457
|
+
}, 16, ["visible", "width", "body-style", "style", "wrap-class-name"])) : (n(), L(X, { key: 1 }, [
|
|
4421
4458
|
p("div", Ci, [
|
|
4422
|
-
|
|
4423
|
-
ae.value ? (n(),
|
|
4424
|
-
key: `${
|
|
4459
|
+
G.value ? (n(), L(X, { key: 0 }, [
|
|
4460
|
+
ae.value ? (n(), L("iframe", te({
|
|
4461
|
+
key: `${S.value}:${ae.value}`,
|
|
4425
4462
|
src: ae.value
|
|
4426
4463
|
}, ge.value, {
|
|
4427
4464
|
class: "file-preview-modal-body__iframe",
|
|
4428
4465
|
width: "100%",
|
|
4429
4466
|
style: { border: "none" },
|
|
4430
4467
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4431
|
-
}), null, 16, ki)) :
|
|
4432
|
-
], 64)) : be.value ? (n(),
|
|
4433
|
-
key: `txt:${
|
|
4468
|
+
}), null, 16, ki)) : B("", !0)
|
|
4469
|
+
], 64)) : be.value ? (n(), L("div", {
|
|
4470
|
+
key: `txt:${S.value}`,
|
|
4434
4471
|
class: "file-preview-modal-body__plaintext"
|
|
4435
4472
|
}, [
|
|
4436
|
-
he.value === pe.loading ? (n(),
|
|
4473
|
+
he.value === pe.loading ? (n(), V(ne, {
|
|
4437
4474
|
key: 0,
|
|
4438
4475
|
tip: "加载中..."
|
|
4439
|
-
})) : he.value === pe.iframeFallback ? (n(),
|
|
4476
|
+
})) : he.value === pe.iframeFallback ? (n(), L("iframe", {
|
|
4440
4477
|
key: 1,
|
|
4441
4478
|
src: r.url,
|
|
4442
4479
|
class: "file-preview-modal-body__iframe",
|
|
4443
4480
|
width: "100%",
|
|
4444
4481
|
style: { border: "none" },
|
|
4445
4482
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4446
|
-
}, null, 8, Si)) : he.value === pe.text ? (n(),
|
|
4447
|
-
`, 1)) :
|
|
4448
|
-
])) :
|
|
4449
|
-
key: `vfp:${
|
|
4483
|
+
}, null, 8, Si)) : he.value === pe.text ? (n(), L("pre", xi, k(g.value) + `
|
|
4484
|
+
`, 1)) : B("", !0)
|
|
4485
|
+
])) : K.value ? (n(), V(ce, {
|
|
4486
|
+
key: `vfp:${S.value}`,
|
|
4450
4487
|
url: e.url,
|
|
4451
4488
|
onError: De
|
|
4452
|
-
}, null, 8, ["url"])) :
|
|
4453
|
-
ae.value ? (n(),
|
|
4454
|
-
key: `${
|
|
4489
|
+
}, null, 8, ["url"])) : q.value ? (n(), L(X, { key: 3 }, [
|
|
4490
|
+
ae.value ? (n(), L("iframe", te({
|
|
4491
|
+
key: `${S.value}:${ae.value}`,
|
|
4455
4492
|
src: ae.value
|
|
4456
4493
|
}, ge.value, {
|
|
4457
4494
|
class: "file-preview-modal-body__iframe",
|
|
4458
4495
|
width: "100%",
|
|
4459
4496
|
style: { border: "none" },
|
|
4460
4497
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4461
|
-
}), null, 16, Ti)) :
|
|
4462
|
-
], 64)) : N.value ? (n(),
|
|
4463
|
-
key: `img:${
|
|
4498
|
+
}), null, 16, Ti)) : B("", !0)
|
|
4499
|
+
], 64)) : N.value ? (n(), L("img", {
|
|
4500
|
+
key: `img:${S.value}`,
|
|
4464
4501
|
class: "file-preview-modal-body__img",
|
|
4465
4502
|
src: e.url,
|
|
4466
4503
|
alt: "预览"
|
|
4467
|
-
}, null, 8, Fi)) : e.url ? (n(),
|
|
4468
|
-
key: `nop:${
|
|
4504
|
+
}, null, 8, Fi)) : e.url ? (n(), L("div", {
|
|
4505
|
+
key: `nop:${S.value}`,
|
|
4469
4506
|
class: "no-preview"
|
|
4470
|
-
},
|
|
4507
|
+
}, k(z.value ? "当前格式暂不支持预览,请下载后查看" : "预览组件未加载,请检查依赖"), 1)) : B("", !0)
|
|
4471
4508
|
]),
|
|
4472
4509
|
p("div", {
|
|
4473
|
-
class:
|
|
4510
|
+
class: Q(["file-preview-modal-footer", { "file-preview-modal-footer--mobile": e.mobile }])
|
|
4474
4511
|
}, [
|
|
4475
|
-
|
|
4476
|
-
e.showAttachmentNav ? (n(),
|
|
4477
|
-
|
|
4512
|
+
Y(U.$slots, "footer", {}, () => [
|
|
4513
|
+
e.showAttachmentNav ? (n(), L("div", Hi, [
|
|
4514
|
+
x(de, {
|
|
4478
4515
|
disabled: !e.hasPrevAttachment,
|
|
4479
|
-
size:
|
|
4516
|
+
size: h.value,
|
|
4480
4517
|
block: e.mobile,
|
|
4481
|
-
onClick:
|
|
4518
|
+
onClick: R[3] || (R[3] = (Se) => c("prevAttachment"))
|
|
4482
4519
|
}, {
|
|
4483
|
-
default: u(() => [...
|
|
4520
|
+
default: u(() => [...R[10] || (R[10] = [
|
|
4484
4521
|
O(" 上一个 ", -1)
|
|
4485
4522
|
])]),
|
|
4486
4523
|
_: 1
|
|
4487
4524
|
}, 8, ["disabled", "size", "block"]),
|
|
4488
|
-
|
|
4525
|
+
x(de, {
|
|
4489
4526
|
disabled: !e.hasNextAttachment,
|
|
4490
|
-
size:
|
|
4527
|
+
size: h.value,
|
|
4491
4528
|
block: e.mobile,
|
|
4492
|
-
onClick:
|
|
4529
|
+
onClick: R[4] || (R[4] = (Se) => c("nextAttachment"))
|
|
4493
4530
|
}, {
|
|
4494
|
-
default: u(() => [...
|
|
4531
|
+
default: u(() => [...R[11] || (R[11] = [
|
|
4495
4532
|
O(" 下一个 ", -1)
|
|
4496
4533
|
])]),
|
|
4497
4534
|
_: 1
|
|
4498
4535
|
}, 8, ["disabled", "size", "block"])
|
|
4499
|
-
])) :
|
|
4500
|
-
$e.value ? (n(),
|
|
4536
|
+
])) : B("", !0),
|
|
4537
|
+
$e.value ? (n(), V(de, {
|
|
4501
4538
|
key: 1,
|
|
4502
|
-
size:
|
|
4539
|
+
size: h.value,
|
|
4503
4540
|
block: e.mobile,
|
|
4504
4541
|
onClick: Ie
|
|
4505
4542
|
}, {
|
|
4506
|
-
default: u(() => [...
|
|
4543
|
+
default: u(() => [...R[12] || (R[12] = [
|
|
4507
4544
|
O(" 下载 ", -1)
|
|
4508
4545
|
])]),
|
|
4509
4546
|
_: 1
|
|
4510
|
-
}, 8, ["size", "block"])) :
|
|
4511
|
-
|
|
4547
|
+
}, 8, ["size", "block"])) : B("", !0),
|
|
4548
|
+
x(de, {
|
|
4512
4549
|
type: "primary",
|
|
4513
4550
|
class: "file-preview-modal-footer__close",
|
|
4514
|
-
size:
|
|
4551
|
+
size: h.value,
|
|
4515
4552
|
block: e.mobile,
|
|
4516
4553
|
onClick: Me
|
|
4517
4554
|
}, {
|
|
4518
|
-
default: u(() => [...
|
|
4555
|
+
default: u(() => [...R[13] || (R[13] = [
|
|
4519
4556
|
O(" 关闭 ", -1)
|
|
4520
4557
|
])]),
|
|
4521
4558
|
_: 1
|
|
@@ -4525,7 +4562,7 @@ const ri = (e) => {
|
|
|
4525
4562
|
], 64));
|
|
4526
4563
|
};
|
|
4527
4564
|
}
|
|
4528
|
-
}), Ii = /* @__PURE__ */
|
|
4565
|
+
}), Ii = /* @__PURE__ */ le($i, [["__scopeId", "data-v-e7a92b86"]]), Mi = ee(Ii), Di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4529
4566
|
__proto__: null,
|
|
4530
4567
|
HbLibAnchor: ln,
|
|
4531
4568
|
HbLibCard: Ja,
|
|
@@ -4563,8 +4600,8 @@ Lo && (document.addEventListener("mousedown", (e) => It = e), document.addEventL
|
|
|
4563
4600
|
function Mt(e, o) {
|
|
4564
4601
|
let t = [];
|
|
4565
4602
|
return Array.isArray(o.arg) ? t = o.arg : o.arg instanceof HTMLElement && t.push(o.arg), function(a, d) {
|
|
4566
|
-
const s = o.instance.popperRef, c = a.target, r = d?.target, l = !o || !o.instance, i = !c || !r, f = e.contains(c) || e.contains(r),
|
|
4567
|
-
l || i || f ||
|
|
4603
|
+
const s = o.instance.popperRef, c = a.target, r = d?.target, l = !o || !o.instance, i = !c || !r, f = e.contains(c) || e.contains(r), _ = e === c, h = t.length && t.some((I) => I?.contains(c)) || t.length && t.includes(r), P = s && (s.contains(c) || s.contains(r));
|
|
4604
|
+
l || i || f || _ || h || P || o.value(a, d);
|
|
4568
4605
|
};
|
|
4569
4606
|
}
|
|
4570
4607
|
const Ai = {
|
|
@@ -4625,58 +4662,58 @@ const Ai = {
|
|
|
4625
4662
|
}
|
|
4626
4663
|
}, Ei = { cos: Ai, dc: Bi, icp: Oi };
|
|
4627
4664
|
function as(e) {
|
|
4628
|
-
const o = E(!1), t = E(""), a = E(""), d = E(-1), s = (
|
|
4629
|
-
const
|
|
4665
|
+
const o = E(!1), t = E(""), a = E(""), d = E(-1), s = (v) => v.previewUrl, c = $(() => {
|
|
4666
|
+
const v = e.value.attachmentInfos, m = d.value;
|
|
4630
4667
|
if (m <= 0) return !1;
|
|
4631
4668
|
for (let y = m - 1; y >= 0; y--)
|
|
4632
|
-
if (s(
|
|
4669
|
+
if (s(v[y])) return !0;
|
|
4633
4670
|
return !1;
|
|
4634
4671
|
}), r = $(() => {
|
|
4635
|
-
const
|
|
4636
|
-
if (m < 0 || m >=
|
|
4637
|
-
for (let y = m + 1; y <
|
|
4638
|
-
if (s(
|
|
4672
|
+
const v = e.value.attachmentInfos, m = d.value;
|
|
4673
|
+
if (m < 0 || m >= v.length - 1) return !1;
|
|
4674
|
+
for (let y = m + 1; y < v.length; y++)
|
|
4675
|
+
if (s(v[y])) return !0;
|
|
4639
4676
|
return !1;
|
|
4640
|
-
}), l = $(() => e.value.attachmentInfos.length > 1), i = (
|
|
4641
|
-
const y = e.value.attachmentInfos[
|
|
4677
|
+
}), l = $(() => e.value.attachmentInfos.length > 1), i = (v) => {
|
|
4678
|
+
const y = e.value.attachmentInfos[v];
|
|
4642
4679
|
if (!y) return;
|
|
4643
|
-
const
|
|
4644
|
-
|
|
4680
|
+
const F = s(y);
|
|
4681
|
+
F && (d.value = v, t.value = F, a.value = y.attachmentDesc || "", o.value = !0);
|
|
4645
4682
|
}, f = () => {
|
|
4646
|
-
const
|
|
4683
|
+
const v = e.value.attachmentInfos, m = d.value;
|
|
4647
4684
|
for (let y = m - 1; y >= 0; y--)
|
|
4648
|
-
if (s(
|
|
4685
|
+
if (s(v[y])) {
|
|
4649
4686
|
i(y);
|
|
4650
4687
|
return;
|
|
4651
4688
|
}
|
|
4652
|
-
},
|
|
4653
|
-
const
|
|
4654
|
-
for (let y = m + 1; y <
|
|
4655
|
-
if (s(
|
|
4689
|
+
}, _ = () => {
|
|
4690
|
+
const v = e.value.attachmentInfos, m = d.value;
|
|
4691
|
+
for (let y = m + 1; y < v.length; y++)
|
|
4692
|
+
if (s(v[y])) {
|
|
4656
4693
|
i(y);
|
|
4657
4694
|
return;
|
|
4658
4695
|
}
|
|
4659
|
-
},
|
|
4696
|
+
}, h = () => {
|
|
4660
4697
|
o.value = !1, d.value = -1, t.value = "", a.value = "";
|
|
4661
|
-
}, P = (
|
|
4662
|
-
const y = s(
|
|
4698
|
+
}, P = (v, m) => {
|
|
4699
|
+
const y = s(v);
|
|
4663
4700
|
if (!y) {
|
|
4664
4701
|
Le.warning("暂无预览地址");
|
|
4665
4702
|
return;
|
|
4666
4703
|
}
|
|
4667
|
-
const
|
|
4704
|
+
const F = e.value.attachmentInfos, C = ci(F, v, {
|
|
4668
4705
|
preferredIndex: m
|
|
4669
4706
|
});
|
|
4670
|
-
|
|
4671
|
-
}, I = (
|
|
4672
|
-
const m =
|
|
4707
|
+
C >= 0 ? i(C) : (d.value = -1, t.value = y, a.value = v.attachmentDesc || "", o.value = !0);
|
|
4708
|
+
}, I = (v) => {
|
|
4709
|
+
const m = v.downloadUrl;
|
|
4673
4710
|
if (!m) {
|
|
4674
4711
|
Le.warning("暂无下载地址");
|
|
4675
4712
|
return;
|
|
4676
4713
|
}
|
|
4677
|
-
const y =
|
|
4714
|
+
const y = v.attachmentDesc?.trim() || "download";
|
|
4678
4715
|
Ue(m, y);
|
|
4679
|
-
},
|
|
4716
|
+
}, W = 400;
|
|
4680
4717
|
return {
|
|
4681
4718
|
filePreviewVisible: o,
|
|
4682
4719
|
pdfPreviewUrlRef: t,
|
|
@@ -4687,9 +4724,9 @@ function as(e) {
|
|
|
4687
4724
|
showAttachmentNavBar: l,
|
|
4688
4725
|
handlePreview: P,
|
|
4689
4726
|
handleDownload: I,
|
|
4690
|
-
handleClosePreview:
|
|
4727
|
+
handleClosePreview: h,
|
|
4691
4728
|
goPrevAttachment: f,
|
|
4692
|
-
goNextAttachment:
|
|
4729
|
+
goNextAttachment: _,
|
|
4693
4730
|
triggerBrowserDownload: Ue,
|
|
4694
4731
|
handleBatchDownloadAttachment: async () => {
|
|
4695
4732
|
const m = e.value.attachmentInfos.filter((y) => !!y.downloadUrl?.trim());
|
|
@@ -4698,8 +4735,8 @@ function as(e) {
|
|
|
4698
4735
|
return;
|
|
4699
4736
|
}
|
|
4700
4737
|
for (let y = 0; y < m.length; y++) {
|
|
4701
|
-
const
|
|
4702
|
-
Ue(
|
|
4738
|
+
const F = m[y], C = F.attachmentDesc?.trim() || "download";
|
|
4739
|
+
Ue(F.downloadUrl, C), y < m.length - 1 && await new Promise((T) => setTimeout(T, W));
|
|
4703
4740
|
}
|
|
4704
4741
|
}
|
|
4705
4742
|
};
|
|
@@ -4732,8 +4769,8 @@ const ns = (e) => {
|
|
|
4732
4769
|
c = !0, r.x = f.clientX - s.offsetLeft, r.y = f.clientY - s.offsetTop, document.body.style.userSelect = "none";
|
|
4733
4770
|
}), document.addEventListener("mousemove", (f) => {
|
|
4734
4771
|
if (!c || !o) return;
|
|
4735
|
-
const
|
|
4736
|
-
s.style.left = `${
|
|
4772
|
+
const _ = f.clientX - r.x, h = f.clientY - r.y;
|
|
4773
|
+
s.style.left = `${_}px`, s.style.top = `${h}px`;
|
|
4737
4774
|
}), document.addEventListener("mouseup", () => {
|
|
4738
4775
|
c = !1, document.body.style.userSelect = "";
|
|
4739
4776
|
}));
|
|
@@ -4745,8 +4782,8 @@ const ns = (e) => {
|
|
|
4745
4782
|
xe(() => {
|
|
4746
4783
|
const s = document.querySelector(`.${e} .ant-modal`);
|
|
4747
4784
|
if (s) {
|
|
4748
|
-
const c = window.innerWidth, r = window.innerHeight, l = s.offsetWidth, i = s.offsetHeight, f = (c - l) / 2,
|
|
4749
|
-
s.style.left = `${f}px`, s.style.top = `${
|
|
4785
|
+
const c = window.innerWidth, r = window.innerHeight, l = s.offsetWidth, i = s.offsetHeight, f = (c - l) / 2, _ = (r - i) / 2;
|
|
4786
|
+
s.style.left = `${f}px`, s.style.top = `${_}px`;
|
|
4750
4787
|
}
|
|
4751
4788
|
});
|
|
4752
4789
|
} };
|