@hb-hellotech/hb-ui 2.8.0-beta.2 → 2.8.0-beta.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/README.md +12 -0
- package/dist/components/business_comp/unlist_page_comp/hb_detail_box/src/HbLibDetailBox.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +51 -24
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1044 -1048
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +3 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as oe, inject as ve, computed as F, reactive as Ve, ref as O, watch as ce, onMounted as He, createElementBlock as w, openBlock as d, normalizeClass as X, unref as v, createVNode as M, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as E, createBlock as N, createCommentVNode as V, Fragment as te, renderList as be, resolveComponent as K, Transition as so, withDirectives as we, mergeProps as de, createSlots as Ne, renderSlot as J, vShow as ro, nextTick as xe, onUnmounted as je, useTemplateRef as co, provide as Ue, normalizeStyle as ue, mergeModels as rt, useModel as jt, withModifiers as Ge, resolveDirective as Wt, useAttrs as uo, useSlots as fo, onBeforeUnmount as tt, watchEffect as qt, resolveDynamicComponent as Yt, shallowRef as po, createStaticVNode as bo, defineAsyncComponent as We, toValue as mo, createApp as ho } from "vue";
|
|
3
3
|
import Je from "vuedraggable";
|
|
4
4
|
import { Modal as ct, Button as dt, message as Me, Tooltip as Xe, Switch as _t, Radio as Lt, RadioGroup as Ct, InputNumber as wt, DatePicker as kt, Checkbox as Qe, CheckboxGroup as St, Select as ut, Input as xt, Col as vo, Row as go, FormItem as Tt, Form as Ft, SelectOption as ft, Popconfirm as at, MenuItem as Ht, Menu as $t, Dropdown as It, Popover as yo, BackTop as Kt, Spin as _o } from "ant-design-vue";
|
|
5
5
|
import { useRoute as vt } from "vue-router";
|
|
6
|
-
import { useI18n as
|
|
6
|
+
import { useI18n as ge } from "vue-i18n";
|
|
7
7
|
import ke from "lodash";
|
|
8
8
|
import { CloseOutlined as Lo, QuestionCircleOutlined as Co, SearchOutlined as Ze, UpCircleOutlined as wo, DownCircleOutlined as ko, UnorderedListOutlined as So, DownOutlined as pt, LoadingOutlined as Mt, PlusCircleOutlined as xo, ToTopOutlined as Gt } from "@ant-design/icons-vue";
|
|
9
9
|
import { useFullscreen as Jt, useDebounceFn as To, useElementBounding as Fo, useScroll as Ho, useDraggable as $o, isClient as Io } from "@vueuse/core";
|
|
@@ -26,7 +26,7 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
26
26
|
bem: (t, o, n) => Ae(e, t, o, n),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (t, o) => o ? `is-${t}` : ""
|
|
29
|
-
}), Do = ["onMouseenter", "onMouseleave"], Ao = ["onClick"], Oo = /* @__PURE__ */
|
|
29
|
+
}), Do = ["onMouseenter", "onMouseleave"], Ao = ["onClick"], Oo = /* @__PURE__ */ oe({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -39,42 +39,42 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: o }) {
|
|
42
|
-
const n =
|
|
42
|
+
const n = ve("globalCompConfig", {}), i = ge().t, l = ge().messages.value.en_US, r = ge().messages.value.ja_JP, u = ge().messages.value.zh_CN, a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = F(() => a.title || i("hbLibComp.hbFormItemFilterModal.title")), h = o, f = gt("sfcm"), S = vt(), $ = Ve({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}),
|
|
45
|
-
let
|
|
46
|
-
const
|
|
44
|
+
}), R = O(!1), j = O(600);
|
|
45
|
+
let x = [];
|
|
46
|
+
const T = O([]), P = O([]), D = F(() => T.value.every((B) => B.isLinked || B.isFixed)), g = (B) => ({
|
|
47
47
|
...B,
|
|
48
|
-
label:
|
|
48
|
+
label: y(B) || `${k(B) || ""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: B.key,
|
|
50
50
|
isFixed: B?.isFixed || !1,
|
|
51
51
|
isLinked: B?.isLinked || !1,
|
|
52
52
|
labelLanguage: B?.labelLanguage || void 0
|
|
53
|
-
}),
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
53
|
+
}), H = (B) => {
|
|
54
|
+
const z = B.draggedContext.element, q = B.relatedContext.index;
|
|
55
|
+
if (z.isLinked || z.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const re = T.value.map((pe, Le) => ({ item: pe, index: Le })).filter(({ item: pe }) => pe.isLinked).map(({ index: pe }) => pe);
|
|
58
|
+
if (re.length === 0)
|
|
59
59
|
return !0;
|
|
60
|
-
for (let
|
|
61
|
-
const Le =
|
|
60
|
+
for (let pe = 0; pe < re.length - 1; pe++) {
|
|
61
|
+
const Le = re[pe], ye = re[pe + 1];
|
|
62
62
|
if (q > Le && q < ye)
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, L =
|
|
66
|
+
}, L = F(() => c() + "_" + a.saveKey), c = () => {
|
|
67
67
|
const B = localStorage.getItem("pro__Login_Userinfo");
|
|
68
|
-
let
|
|
68
|
+
let z = "anonymous";
|
|
69
69
|
if (B)
|
|
70
70
|
try {
|
|
71
|
-
|
|
72
|
-
} catch (
|
|
73
|
-
console.warn("解析用户信息失败:",
|
|
71
|
+
z = JSON.parse(B).value.jobNumber || "anonymous";
|
|
72
|
+
} catch (re) {
|
|
73
|
+
console.warn("解析用户信息失败:", re);
|
|
74
74
|
}
|
|
75
75
|
let q = S?.path;
|
|
76
|
-
return `searchFormConfig_${
|
|
77
|
-
},
|
|
76
|
+
return `searchFormConfig_${z}_${q}`;
|
|
77
|
+
}, y = (B) => ({
|
|
78
78
|
ja_JP: () => ke.get(r, B.labelLanguage || ""),
|
|
79
79
|
en_US: () => ke.get(l, B.labelLanguage || ""),
|
|
80
80
|
zh_CN: () => ke.get(u, B.labelLanguage || "")
|
|
@@ -82,116 +82,116 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
82
82
|
ja_JP: () => ke.get(r, B.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => ke.get(l, B.subLabelLanguage || ""),
|
|
84
84
|
zh_CN: () => ke.get(u, B.subLabelLanguage || "")
|
|
85
|
-
})[$.lan]?.() || B.subLabel, U = (B) => Array.isArray(B) ? B.map((
|
|
86
|
-
if (typeof
|
|
87
|
-
return
|
|
88
|
-
if (
|
|
89
|
-
const q =
|
|
85
|
+
})[$.lan]?.() || B.subLabel, U = (B) => Array.isArray(B) ? B.map((z) => {
|
|
86
|
+
if (typeof z == "string")
|
|
87
|
+
return z;
|
|
88
|
+
if (z && typeof z == "object" && "key" in z) {
|
|
89
|
+
const q = z.key;
|
|
90
90
|
return typeof q == "string" ? q : "";
|
|
91
91
|
}
|
|
92
92
|
return "";
|
|
93
|
-
}).filter((
|
|
93
|
+
}).filter((z) => !!z) : [], Y = (B) => {
|
|
94
94
|
if (typeof B != "function")
|
|
95
|
-
return Array.isArray(B) ? B.map((
|
|
96
|
-
},
|
|
95
|
+
return Array.isArray(B) ? B.map((z) => Y(z)) : B && Object.prototype.toString.call(B) === "[object Object]" ? Object.entries(B).reduce((z, [q, re]) => (typeof re != "function" && (z[q] = Y(re)), z), {}) : B;
|
|
96
|
+
}, _ = (B) => B.map((z) => Y(z)), I = (B) => {
|
|
97
97
|
try {
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
100
|
-
const q = JSON.parse(
|
|
98
|
+
const z = localStorage.getItem(L.value);
|
|
99
|
+
if (z) {
|
|
100
|
+
const q = JSON.parse(z);
|
|
101
101
|
if (q.originalList && Array.isArray(q.originalList)) {
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
const _e =
|
|
105
|
-
...
|
|
106
|
-
})), G = Be.map((
|
|
107
|
-
...
|
|
108
|
-
})),
|
|
109
|
-
...
|
|
102
|
+
const re = U(q.originalList), pe = new Map(B.map((ee) => [ee.key, ee])), Le = re.map((ee) => pe.get(ee)).filter((ee) => !!ee), ye = new Set(re), Ce = B.filter((ee) => !ye.has(ee.key));
|
|
103
|
+
x = ke.cloneDeep([...Le, ...Ce]);
|
|
104
|
+
const _e = x.filter((ee) => ee?.isFixed), Be = x.filter((ee) => ee?.isLinked), Se = Array.isArray(q.showList) ? q.showList : [], Fe = U(Se), Pe = new Map(x.map((ee) => [ee.key, ee])), De = Fe.map((ee) => Pe.get(ee)).filter((ee) => ee ? !ee.isFixed && !ee.isLinked : !1), A = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : De.length, Q = _e.map((ee) => ({
|
|
105
|
+
...g(ee)
|
|
106
|
+
})), G = Be.map((ee) => ({
|
|
107
|
+
...g(ee)
|
|
108
|
+
})), me = De.slice(0, A).map((ee) => ({
|
|
109
|
+
...g(ee)
|
|
110
110
|
}));
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
return P.value =
|
|
114
|
-
...
|
|
111
|
+
T.value = [...Q, ...G, ...me];
|
|
112
|
+
const he = T.value.map((ee) => ee.key), lt = x.map((ee) => ee.key).filter((ee) => !he.includes(ee));
|
|
113
|
+
return P.value = x.filter((ee) => lt.includes(ee.key)).map((ee) => ({
|
|
114
|
+
...g(ee),
|
|
115
115
|
active: !1
|
|
116
116
|
})), !0;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
} catch (
|
|
120
|
-
console.warn("加载保存的搜索配置失败:",
|
|
119
|
+
} catch (z) {
|
|
120
|
+
console.warn("加载保存的搜索配置失败:", z);
|
|
121
121
|
}
|
|
122
122
|
return !1;
|
|
123
|
-
},
|
|
123
|
+
}, Z = () => {
|
|
124
124
|
try {
|
|
125
125
|
const B = {
|
|
126
|
-
originalList:
|
|
127
|
-
showList:
|
|
126
|
+
originalList: x.map((z) => z.key),
|
|
127
|
+
showList: T.value.map((z) => z.key)
|
|
128
128
|
};
|
|
129
129
|
localStorage.setItem(L.value, JSON.stringify(B));
|
|
130
130
|
} catch (B) {
|
|
131
131
|
console.warn("保存搜索配置失败:", B);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
134
|
-
const B =
|
|
135
|
-
return B >= s.value -
|
|
133
|
+
}, ne = F(() => {
|
|
134
|
+
const B = T.value.filter((q) => !q.isFixed && !q.isLinked).length, z = T.value.filter((q) => q.isFixed || q.isLinked).length;
|
|
135
|
+
return B >= s.value - z;
|
|
136
136
|
});
|
|
137
|
-
|
|
137
|
+
ce(
|
|
138
138
|
() => a.list,
|
|
139
139
|
(B) => {
|
|
140
|
-
let
|
|
141
|
-
if (!
|
|
140
|
+
let z = !ke.isEqual(_(T.value), _(B));
|
|
141
|
+
if (!z)
|
|
142
142
|
return;
|
|
143
|
-
const q = localStorage.getItem(L.value),
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
else if (
|
|
147
|
-
|
|
148
|
-
const _e = B.filter((G) => G?.isFixed), Be = B.filter((G) => G?.isLinked), Se = B.filter((G) => !G?.isFixed && !G?.isLinked), Fe = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : Se.length, Pe = _e.map((G) =>
|
|
149
|
-
|
|
143
|
+
const q = localStorage.getItem(L.value), re = JSON.parse(q || "{}"), pe = B.map((_e) => _e.key), Le = U(re?.originalList), ye = new Set(pe), Ce = pe.length !== Le.length || Le.some((_e) => !ye.has(_e));
|
|
144
|
+
if (re && re?.originalList && Array.isArray(re.originalList) && !Ce)
|
|
145
|
+
I(B), h("confirm", T.value);
|
|
146
|
+
else if (z) {
|
|
147
|
+
x = ke.cloneDeep(B);
|
|
148
|
+
const _e = B.filter((G) => G?.isFixed), Be = B.filter((G) => G?.isLinked), Se = B.filter((G) => !G?.isFixed && !G?.isLinked), Fe = s.value && s.value > 0 ? Math.max(0, s.value - _e.length - Be.length) : Se.length, Pe = _e.map((G) => g(G)), De = Be.map((G) => g(G)), A = Se.slice(0, Fe).map((G) => g(G));
|
|
149
|
+
T.value = [...Pe, ...De, ...A];
|
|
150
150
|
const Q = Se.slice(Fe).map((G) => ({
|
|
151
|
-
...
|
|
151
|
+
...g(G),
|
|
152
152
|
active: !1
|
|
153
153
|
}));
|
|
154
|
-
P.value = Q, h("confirm",
|
|
154
|
+
P.value = Q, h("confirm", T.value);
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
{ immediate: !0 }
|
|
158
158
|
);
|
|
159
|
-
const
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
},
|
|
163
|
-
if (
|
|
159
|
+
const le = (B) => {
|
|
160
|
+
const z = T.value.findIndex((q) => q.key === B.key);
|
|
161
|
+
z !== -1 && (T.value.splice(z, 1), P.value.push({ ...B, active: !1 }));
|
|
162
|
+
}, fe = (B) => {
|
|
163
|
+
if (ne.value) {
|
|
164
164
|
Me.warning(`当前已经超过${i(s.value)}个可选数量,请先删除已显示条件`);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
const [q] = P.value.splice(
|
|
170
|
-
|
|
167
|
+
const z = P.value.findIndex((q) => q.key === B.key);
|
|
168
|
+
if (z !== -1) {
|
|
169
|
+
const [q] = P.value.splice(z, 1);
|
|
170
|
+
T.value.push({ ...q, active: !1 });
|
|
171
171
|
}
|
|
172
172
|
}, Te = () => {
|
|
173
|
-
|
|
173
|
+
R.value = !1;
|
|
174
174
|
}, Oe = () => {
|
|
175
|
-
|
|
175
|
+
R.value = !0;
|
|
176
176
|
}, W = () => {
|
|
177
|
-
|
|
177
|
+
Z(), h("confirm", T.value), Te();
|
|
178
178
|
}, Ee = (B) => {
|
|
179
|
-
const
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
const
|
|
183
|
-
|
|
179
|
+
const z = P.value.findIndex((q) => q.key === B.key);
|
|
180
|
+
z !== -1 && (P.value[z].active = !0);
|
|
181
|
+
}, ae = (B) => {
|
|
182
|
+
const z = P.value.findIndex((q) => q.key === B.key);
|
|
183
|
+
z !== -1 && (P.value[z].active = !1);
|
|
184
184
|
};
|
|
185
185
|
return t({
|
|
186
186
|
toOpenModal: Oe
|
|
187
187
|
}), He(() => {
|
|
188
|
-
}), (B,
|
|
188
|
+
}), (B, z) => (d(), w("div", {
|
|
189
189
|
class: X(v(f).b())
|
|
190
190
|
}, [
|
|
191
|
-
|
|
192
|
-
visible:
|
|
193
|
-
"onUpdate:visible":
|
|
194
|
-
width:
|
|
191
|
+
M(v(ct), {
|
|
192
|
+
visible: R.value,
|
|
193
|
+
"onUpdate:visible": z[1] || (z[1] = (q) => R.value = q),
|
|
194
|
+
width: j.value,
|
|
195
195
|
onCancel: Te,
|
|
196
196
|
onOk: W
|
|
197
197
|
}, {
|
|
@@ -201,13 +201,13 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
201
201
|
}, C(p.value), 3)
|
|
202
202
|
]),
|
|
203
203
|
footer: b(() => [
|
|
204
|
-
|
|
204
|
+
M(v(dt), { onClick: Te }, {
|
|
205
205
|
default: b(() => [
|
|
206
206
|
E(C(B.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
209
|
}),
|
|
210
|
-
|
|
210
|
+
M(v(dt), {
|
|
211
211
|
type: "primary",
|
|
212
212
|
onClick: W
|
|
213
213
|
}, {
|
|
@@ -232,24 +232,24 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
232
232
|
m("div", {
|
|
233
233
|
class: X(v(f).e("show__tag"))
|
|
234
234
|
}, [
|
|
235
|
-
|
|
236
|
-
modelValue:
|
|
237
|
-
"onUpdate:modelValue":
|
|
235
|
+
M(v(Je), {
|
|
236
|
+
modelValue: T.value,
|
|
237
|
+
"onUpdate:modelValue": z[0] || (z[0] = (q) => T.value = q),
|
|
238
238
|
"item-key": "key",
|
|
239
239
|
tag: "div",
|
|
240
240
|
disabled: D.value,
|
|
241
|
-
move:
|
|
241
|
+
move: H
|
|
242
242
|
}, {
|
|
243
243
|
item: b(({ element: q }) => [
|
|
244
244
|
m("div", {
|
|
245
245
|
class: X([v(f).e("show__tag__item"), v(f).is("fixed", q.isFixed), v(f).is("linked", q.isLinked)])
|
|
246
246
|
}, [
|
|
247
247
|
E(C(q.label) + " ", 1),
|
|
248
|
-
!q.isFixed && !q.isLinked && e.list.length > 1 ? (d(),
|
|
248
|
+
!q.isFixed && !q.isLinked && e.list.length > 1 ? (d(), N(v(Lo), {
|
|
249
249
|
key: 0,
|
|
250
250
|
class: X(v(f).e("show__tag__item-close")),
|
|
251
|
-
onClick: (
|
|
252
|
-
}, null, 8, ["class", "onClick"])) :
|
|
251
|
+
onClick: (re) => le(q)
|
|
252
|
+
}, null, 8, ["class", "onClick"])) : V("", !0)
|
|
253
253
|
], 2)
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
@@ -269,18 +269,18 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
269
269
|
m("div", {
|
|
270
270
|
class: X(v(f).e("unshow__tag"))
|
|
271
271
|
}, [
|
|
272
|
-
P.value.length > 0 ? (d(!0), w(
|
|
272
|
+
P.value.length > 0 ? (d(!0), w(te, { key: 0 }, be(P.value, (q) => (d(), w("div", {
|
|
273
273
|
key: q.key,
|
|
274
274
|
class: X([v(f).e("unshow__tag__item"), v(f).is("fixed", q.isFixed || ""), v(f).is("linked", q.isLinked || "")]),
|
|
275
|
-
onMouseenter: (
|
|
276
|
-
onMouseleave: (
|
|
275
|
+
onMouseenter: (re) => Ee(q),
|
|
276
|
+
onMouseleave: (re) => ae(q)
|
|
277
277
|
}, [
|
|
278
278
|
E(C(q.label) + " ", 1),
|
|
279
279
|
q.active ? (d(), w("aside", {
|
|
280
280
|
key: 0,
|
|
281
281
|
class: X(v(f).e("unshow__tag__item-add")),
|
|
282
|
-
onClick: (
|
|
283
|
-
}, C(B.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ao)) :
|
|
282
|
+
onClick: (re) => fe(q)
|
|
283
|
+
}, C(B.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ao)) : V("", !0)
|
|
284
284
|
], 42, Do))), 128)) : (d(), w("div", {
|
|
285
285
|
key: 1,
|
|
286
286
|
class: X(v(f).e("unshow__tag__empty"))
|
|
@@ -292,23 +292,23 @@ const Mo = "hb-", gt = (e = "") => {
|
|
|
292
292
|
}, 8, ["visible", "width"])
|
|
293
293
|
], 2));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), se = (e, t) => {
|
|
296
296
|
const o = e.__vccOpts || e;
|
|
297
297
|
for (const [n, i] of t)
|
|
298
298
|
o[n] = i;
|
|
299
299
|
return o;
|
|
300
|
-
}, Po = /* @__PURE__ */
|
|
301
|
-
function
|
|
300
|
+
}, Po = /* @__PURE__ */ se(Oo, [["__scopeId", "data-v-e23cf2d6"]]);
|
|
301
|
+
function ie(e) {
|
|
302
302
|
const t = e;
|
|
303
303
|
return t.install = (o) => {
|
|
304
304
|
const n = e.name;
|
|
305
305
|
o.component(n ?? "AnonymousComponent", e);
|
|
306
306
|
}, t;
|
|
307
307
|
}
|
|
308
|
-
const Uo =
|
|
308
|
+
const Uo = ie(Po), Eo = {
|
|
309
309
|
key: 0,
|
|
310
310
|
class: "form-footer"
|
|
311
|
-
}, Ro = { class: "scheme-fontWeight" }, No = { class: "scheme-fontWeight" }, zo = { class: "scheme-fontWeight" }, Vo = { class: "scheme-fontWeight" }, jo = /* @__PURE__ */
|
|
311
|
+
}, Ro = { class: "scheme-fontWeight" }, No = { class: "scheme-fontWeight" }, zo = { class: "scheme-fontWeight" }, Vo = { class: "scheme-fontWeight" }, jo = /* @__PURE__ */ oe({
|
|
312
312
|
name: "HbLibListForm",
|
|
313
313
|
__name: "HbListForm",
|
|
314
314
|
props: {
|
|
@@ -346,63 +346,63 @@ const Uo = le(Po), Eo = {
|
|
|
346
346
|
"handleMenuClick"
|
|
347
347
|
],
|
|
348
348
|
setup(e, { expose: t, emit: o }) {
|
|
349
|
-
const n =
|
|
350
|
-
const
|
|
351
|
-
return ke.cloneDeep(
|
|
352
|
-
}), S = (
|
|
353
|
-
...
|
|
354
|
-
condition:
|
|
355
|
-
label:
|
|
356
|
-
}))),
|
|
349
|
+
const n = ve("globalCompConfig", {}), i = o, l = ve("HB_LIST_PAGE_CONTAINER"), r = F(() => a.searchList || []), u = gt("form"), a = e, s = F(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = O("show"), h = F(() => a.needFooter || n.HbLibListForm?.needFooter), f = F(() => {
|
|
350
|
+
const _ = a.items.filter((I) => R(I));
|
|
351
|
+
return ke.cloneDeep(_);
|
|
352
|
+
}), S = (_) => _ !== void 0, $ = (_) => typeof _ == "function", R = (_) => S(_.condition) ? $(_.condition) ? _.condition() : _.condition : !0, j = F(() => [...a.items].map((_) => ({
|
|
353
|
+
..._,
|
|
354
|
+
condition: R(_),
|
|
355
|
+
label: _.label?.includes("多项搜索") ? "" : _.label
|
|
356
|
+
}))), x = F(() => a.saveKey), T = O(), P = () => {
|
|
357
357
|
i("handleSearch");
|
|
358
358
|
}, D = () => {
|
|
359
359
|
i("handleReset");
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
}, L = (
|
|
363
|
-
i("handleMenuClick",
|
|
364
|
-
}, c = (
|
|
365
|
-
const
|
|
366
|
-
...new Map(
|
|
360
|
+
}, g = O(), H = () => {
|
|
361
|
+
g.value && g.value.toOpenModal();
|
|
362
|
+
}, L = (_) => {
|
|
363
|
+
i("handleMenuClick", _);
|
|
364
|
+
}, c = (_) => {
|
|
365
|
+
const I = a.items.filter((le) => !R(le)), Z = [..._, ...I], ne = [
|
|
366
|
+
...new Map(Z.map((le) => [le.key, le])).values()
|
|
367
367
|
];
|
|
368
|
-
i("handleSfcmConfirm",
|
|
368
|
+
i("handleSfcmConfirm", ne);
|
|
369
369
|
};
|
|
370
|
-
|
|
370
|
+
ce(
|
|
371
371
|
() => a.isFormExpanded,
|
|
372
|
-
(
|
|
373
|
-
if (
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
|
|
372
|
+
(_) => {
|
|
373
|
+
if (_) {
|
|
374
|
+
const I = document.querySelector("#subpackage_container");
|
|
375
|
+
I instanceof HTMLElement && (I.style.overflow = "hidden", setTimeout(() => {
|
|
376
|
+
I.style.overflow = "auto";
|
|
377
377
|
}, 500));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
);
|
|
381
|
-
const
|
|
382
|
-
const
|
|
383
|
-
|
|
384
|
-
}, k = (
|
|
385
|
-
const
|
|
386
|
-
|
|
381
|
+
const y = (_) => {
|
|
382
|
+
const I = _;
|
|
383
|
+
I.style.height = "", I.offsetHeight;
|
|
384
|
+
}, k = (_) => {
|
|
385
|
+
const I = _;
|
|
386
|
+
I.style.height = "", I.style.overflow = "", xe(() => {
|
|
387
387
|
l.calTableHeight && l.calTableHeight();
|
|
388
388
|
});
|
|
389
|
-
}, U = (
|
|
390
|
-
const
|
|
389
|
+
}, U = (_) => {
|
|
390
|
+
const I = _, Z = I.querySelector(
|
|
391
391
|
".hb-lib-form--container"
|
|
392
392
|
);
|
|
393
|
-
if (
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
-
|
|
393
|
+
if (Z) {
|
|
394
|
+
const ne = Z.offsetHeight;
|
|
395
|
+
I.style.height = ne + "px", I.style.overflow = "hidden", I.offsetHeight, requestAnimationFrame(() => {
|
|
396
|
+
I.style.height = "0";
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
},
|
|
399
|
+
}, Y = () => {
|
|
400
400
|
xe(() => {
|
|
401
401
|
l.calTableHeight && l.calTableHeight();
|
|
402
402
|
});
|
|
403
403
|
};
|
|
404
404
|
return t({
|
|
405
|
-
formRef:
|
|
405
|
+
formRef: T,
|
|
406
406
|
SelectOption: ft,
|
|
407
407
|
Form: Ft,
|
|
408
408
|
FormItem: Tt,
|
|
@@ -419,15 +419,15 @@ const Uo = le(Po), Eo = {
|
|
|
419
419
|
Switch: _t,
|
|
420
420
|
Button: dt,
|
|
421
421
|
Tooltip: Xe
|
|
422
|
-
}), (
|
|
423
|
-
const
|
|
424
|
-
return d(), w(
|
|
425
|
-
|
|
422
|
+
}), (_, I) => {
|
|
423
|
+
const Z = K("a-button"), ne = K("a-tooltip"), le = K("a-menu-item"), fe = K("a-menu"), Te = K("a-dropdown"), Oe = K("HbLibFormItemFilterModal");
|
|
424
|
+
return d(), w(te, null, [
|
|
425
|
+
M(so, {
|
|
426
426
|
name: "form-collapse",
|
|
427
|
-
onEnter:
|
|
427
|
+
onEnter: y,
|
|
428
428
|
onAfterEnter: k,
|
|
429
429
|
onLeave: U,
|
|
430
|
-
onAfterLeave:
|
|
430
|
+
onAfterLeave: Y
|
|
431
431
|
}, {
|
|
432
432
|
default: b(() => [
|
|
433
433
|
we(m("div", {
|
|
@@ -438,15 +438,15 @@ const Uo = le(Po), Eo = {
|
|
|
438
438
|
h.value ? "isNeedFooterCss" : ""
|
|
439
439
|
])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
M(v(Ft), de(_.$attrs, {
|
|
442
442
|
ref_key: "formRef",
|
|
443
|
-
ref:
|
|
443
|
+
ref: T,
|
|
444
444
|
model: e.formData,
|
|
445
445
|
class: ["hb-lib-form--container", p.value == "show" ? "" : "hide"]
|
|
446
446
|
}), {
|
|
447
447
|
default: b(() => [
|
|
448
|
-
(d(!0), w(
|
|
449
|
-
W.condition ? (d(),
|
|
448
|
+
(d(!0), w(te, null, be(j.value, (W, Ee) => (d(), w(te, { key: Ee }, [
|
|
449
|
+
W.condition ? (d(), N(v(Tt), de({
|
|
450
450
|
key: 0,
|
|
451
451
|
ref_for: !0
|
|
452
452
|
}, W, {
|
|
@@ -457,90 +457,90 @@ const Uo = le(Po), Eo = {
|
|
|
457
457
|
}
|
|
458
458
|
}), Ne({
|
|
459
459
|
default: b(() => [
|
|
460
|
-
W.type === "slot" ? J(
|
|
460
|
+
W.type === "slot" ? J(_.$slots, W.key, {
|
|
461
461
|
key: 0,
|
|
462
462
|
formData: e.formData,
|
|
463
463
|
item: W
|
|
464
|
-
}, void 0, !0) :
|
|
465
|
-
W.type === "mixin" ? J(
|
|
464
|
+
}, void 0, !0) : V("", !0),
|
|
465
|
+
W.type === "mixin" ? J(_.$slots, W.key, {
|
|
466
466
|
key: 1,
|
|
467
467
|
formData: e.formData,
|
|
468
468
|
item: W
|
|
469
|
-
}, void 0, !0) :
|
|
470
|
-
W.type === "input" ? (d(),
|
|
469
|
+
}, void 0, !0) : V("", !0),
|
|
470
|
+
W.type === "input" ? (d(), N(v(xt), de({
|
|
471
471
|
key: 2,
|
|
472
472
|
value: e.formData[W.key],
|
|
473
|
-
"onUpdate:value": (
|
|
474
|
-
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
475
|
-
W.type === "select" ? (d(),
|
|
473
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
474
|
+
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : V("", !0),
|
|
475
|
+
W.type === "select" ? (d(), N(v(ut), de({
|
|
476
476
|
key: 3,
|
|
477
477
|
value: e.formData[W.key],
|
|
478
|
-
"onUpdate:value": (
|
|
478
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
479
479
|
}, { ref_for: !0 }, W.attrs), {
|
|
480
480
|
default: b(() => [
|
|
481
|
-
(d(!0), w(
|
|
481
|
+
(d(!0), w(te, null, be(W.options, (ae, B) => (d(), N(v(ft), {
|
|
482
482
|
key: B,
|
|
483
|
-
value:
|
|
483
|
+
value: ae.value
|
|
484
484
|
}, {
|
|
485
485
|
default: b(() => [
|
|
486
|
-
E(C(
|
|
486
|
+
E(C(ae.label), 1)
|
|
487
487
|
]),
|
|
488
488
|
_: 2
|
|
489
489
|
}, 1032, ["value"]))), 128))
|
|
490
490
|
]),
|
|
491
491
|
_: 2
|
|
492
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
493
|
-
W.type === "checkbox" ? (d(),
|
|
492
|
+
}, 1040, ["value", "onUpdate:value"])) : V("", !0),
|
|
493
|
+
W.type === "checkbox" ? (d(), N(v(St), de({
|
|
494
494
|
key: 4,
|
|
495
495
|
value: e.formData[W.key],
|
|
496
|
-
"onUpdate:value": (
|
|
496
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
497
497
|
}, { ref_for: !0 }, W.attrs), {
|
|
498
498
|
default: b(() => [
|
|
499
|
-
(d(!0), w(
|
|
499
|
+
(d(!0), w(te, null, be(W.options, (ae, B) => (d(), N(v(Qe), {
|
|
500
500
|
key: B,
|
|
501
|
-
value:
|
|
501
|
+
value: ae.value
|
|
502
502
|
}, {
|
|
503
503
|
default: b(() => [
|
|
504
|
-
E(C(
|
|
504
|
+
E(C(ae.label), 1)
|
|
505
505
|
]),
|
|
506
506
|
_: 2
|
|
507
507
|
}, 1032, ["value"]))), 128))
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
511
|
-
W.type === "date-picker" ? (d(),
|
|
510
|
+
}, 1040, ["value", "onUpdate:value"])) : V("", !0),
|
|
511
|
+
W.type === "date-picker" ? (d(), N(v(kt), de({
|
|
512
512
|
key: 5,
|
|
513
513
|
value: e.formData[W.key],
|
|
514
|
-
"onUpdate:value": (
|
|
515
|
-
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
516
|
-
W.type === "input-number" ? (d(),
|
|
514
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
515
|
+
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : V("", !0),
|
|
516
|
+
W.type === "input-number" ? (d(), N(v(wt), de({
|
|
517
517
|
key: 6,
|
|
518
518
|
value: e.formData[W.key],
|
|
519
|
-
"onUpdate:value": (
|
|
520
|
-
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) :
|
|
521
|
-
W.type === "radio" ? (d(),
|
|
519
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
520
|
+
}, { ref_for: !0 }, W.attrs), null, 16, ["value", "onUpdate:value"])) : V("", !0),
|
|
521
|
+
W.type === "radio" ? (d(), N(v(Ct), de({
|
|
522
522
|
key: 7,
|
|
523
523
|
value: e.formData[W.key],
|
|
524
|
-
"onUpdate:value": (
|
|
524
|
+
"onUpdate:value": (ae) => e.formData[W.key] = ae
|
|
525
525
|
}, { ref_for: !0 }, W.attrs), {
|
|
526
526
|
default: b(() => [
|
|
527
|
-
(d(!0), w(
|
|
527
|
+
(d(!0), w(te, null, be(W.options, (ae, B) => (d(), N(v(Lt), {
|
|
528
528
|
key: B,
|
|
529
|
-
value:
|
|
529
|
+
value: ae.value
|
|
530
530
|
}, {
|
|
531
531
|
default: b(() => [
|
|
532
|
-
E(C(
|
|
532
|
+
E(C(ae.label), 1)
|
|
533
533
|
]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["value"]))), 128))
|
|
536
536
|
]),
|
|
537
537
|
_: 2
|
|
538
|
-
}, 1040, ["value", "onUpdate:value"])) :
|
|
539
|
-
W.type === "switch" ? (d(),
|
|
538
|
+
}, 1040, ["value", "onUpdate:value"])) : V("", !0),
|
|
539
|
+
W.type === "switch" ? (d(), N(v(_t), de({
|
|
540
540
|
key: 8,
|
|
541
541
|
checked: e.formData[W.key],
|
|
542
|
-
"onUpdate:checked": (
|
|
543
|
-
}, { ref_for: !0 }, W.attrs), null, 16, ["checked", "onUpdate:checked"])) :
|
|
542
|
+
"onUpdate:checked": (ae) => e.formData[W.key] = ae
|
|
543
|
+
}, { ref_for: !0 }, W.attrs), null, 16, ["checked", "onUpdate:checked"])) : V("", !0)
|
|
544
544
|
]),
|
|
545
545
|
_: 2
|
|
546
546
|
}, [
|
|
@@ -548,51 +548,51 @@ const Uo = le(Po), Eo = {
|
|
|
548
548
|
name: "label",
|
|
549
549
|
fn: b(() => [
|
|
550
550
|
E(C(W.label) + " ", 1),
|
|
551
|
-
|
|
551
|
+
M(v(Xe), {
|
|
552
552
|
title: W.tooltip
|
|
553
553
|
}, {
|
|
554
554
|
default: b(() => [
|
|
555
|
-
|
|
555
|
+
M(v(Co), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}, 8, ["title"])
|
|
559
559
|
]),
|
|
560
560
|
key: "0"
|
|
561
561
|
} : void 0
|
|
562
|
-
]), 1040, ["name", "class"])) :
|
|
562
|
+
]), 1040, ["name", "class"])) : V("", !0)
|
|
563
563
|
], 64))), 128)),
|
|
564
|
-
h.value ?
|
|
565
|
-
|
|
564
|
+
h.value ? V("", !0) : (d(), w("section", Eo, [
|
|
565
|
+
M(Z, {
|
|
566
566
|
type: "primary",
|
|
567
567
|
class: "hb_list_page_button",
|
|
568
568
|
onClick: P
|
|
569
569
|
}, {
|
|
570
570
|
icon: b(() => [
|
|
571
|
-
|
|
571
|
+
M(v(Ze))
|
|
572
572
|
]),
|
|
573
573
|
default: b(() => [
|
|
574
|
-
E(" " + C(
|
|
574
|
+
E(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
575
575
|
]),
|
|
576
576
|
_: 1
|
|
577
577
|
}),
|
|
578
|
-
|
|
578
|
+
M(Z, {
|
|
579
579
|
type: "link",
|
|
580
580
|
onClick: D
|
|
581
581
|
}, {
|
|
582
582
|
default: b(() => [
|
|
583
|
-
E(C(
|
|
583
|
+
E(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}),
|
|
587
|
-
e.needFilter ? (d(),
|
|
587
|
+
e.needFilter ? (d(), N(ne, {
|
|
588
588
|
key: 0,
|
|
589
|
-
title:
|
|
589
|
+
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
590
590
|
}, {
|
|
591
591
|
default: b(() => [
|
|
592
592
|
m("span", {
|
|
593
593
|
class: "hb-lib-form-svg",
|
|
594
|
-
onClick:
|
|
595
|
-
}, [...
|
|
594
|
+
onClick: H
|
|
595
|
+
}, [...I[0] || (I[0] = [
|
|
596
596
|
m("svg", {
|
|
597
597
|
t: "1757915025410",
|
|
598
598
|
class: "icon",
|
|
@@ -612,13 +612,13 @@ const Uo = le(Po), Eo = {
|
|
|
612
612
|
])])
|
|
613
613
|
]),
|
|
614
614
|
_: 1
|
|
615
|
-
}, 8, ["title"])) :
|
|
616
|
-
J(
|
|
617
|
-
e.needSearchCase ? (d(),
|
|
615
|
+
}, 8, ["title"])) : V("", !0),
|
|
616
|
+
J(_.$slots, "formBtns", {}, () => [
|
|
617
|
+
e.needSearchCase ? (d(), N(Te, { key: 0 }, {
|
|
618
618
|
overlay: b(() => [
|
|
619
|
-
|
|
619
|
+
M(fe, { onClick: L }, {
|
|
620
620
|
default: b(() => [
|
|
621
|
-
(d(!0), w(
|
|
621
|
+
(d(!0), w(te, null, be(r.value, (W) => (d(), N(le, {
|
|
622
622
|
key: W.id
|
|
623
623
|
}, {
|
|
624
624
|
default: b(() => [
|
|
@@ -626,17 +626,17 @@ const Uo = le(Po), Eo = {
|
|
|
626
626
|
]),
|
|
627
627
|
_: 2
|
|
628
628
|
}, 1024))), 128)),
|
|
629
|
-
|
|
629
|
+
M(le, { key: "add" }, {
|
|
630
630
|
default: b(() => [
|
|
631
|
-
m("span", Ro, C(
|
|
631
|
+
m("span", Ro, C(_.$t(
|
|
632
632
|
"hbLibComp.hbLibListForm.addScheme"
|
|
633
633
|
)), 1)
|
|
634
634
|
]),
|
|
635
635
|
_: 1
|
|
636
636
|
}),
|
|
637
|
-
|
|
637
|
+
M(le, { key: "edit" }, {
|
|
638
638
|
default: b(() => [
|
|
639
|
-
m("span", No, C(
|
|
639
|
+
m("span", No, C(_.$t(
|
|
640
640
|
"hbLibComp.hbLibListForm.editScheme"
|
|
641
641
|
)), 1)
|
|
642
642
|
]),
|
|
@@ -647,10 +647,10 @@ const Uo = le(Po), Eo = {
|
|
|
647
647
|
})
|
|
648
648
|
]),
|
|
649
649
|
default: b(() => [
|
|
650
|
-
|
|
651
|
-
title:
|
|
650
|
+
M(ne, {
|
|
651
|
+
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
652
652
|
}, {
|
|
653
|
-
default: b(() => [...
|
|
653
|
+
default: b(() => [...I[1] || (I[1] = [
|
|
654
654
|
m("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
655
655
|
m("svg", {
|
|
656
656
|
t: "1765936014161",
|
|
@@ -682,7 +682,7 @@ const Uo = le(Po), Eo = {
|
|
|
682
682
|
}, 8, ["title"])
|
|
683
683
|
]),
|
|
684
684
|
_: 1
|
|
685
|
-
})) :
|
|
685
|
+
})) : V("", !0)
|
|
686
686
|
], !0)
|
|
687
687
|
]))
|
|
688
688
|
]),
|
|
@@ -695,47 +695,47 @@ const Uo = le(Po), Eo = {
|
|
|
695
695
|
m("div", {
|
|
696
696
|
class: X(v(u).e("footer__left"))
|
|
697
697
|
}, [
|
|
698
|
-
J(
|
|
698
|
+
J(_.$slots, "form-footer-left", {}, void 0, !0)
|
|
699
699
|
], 2),
|
|
700
700
|
m("div", {
|
|
701
701
|
class: X(v(u).e("footer__right"))
|
|
702
702
|
}, [
|
|
703
|
-
p.value == "show" ? J(
|
|
703
|
+
p.value == "show" ? J(_.$slots, "form-footer-right", {
|
|
704
704
|
key: 0,
|
|
705
|
-
formRef:
|
|
705
|
+
formRef: T.value
|
|
706
706
|
}, () => [
|
|
707
|
-
|
|
707
|
+
M(Z, {
|
|
708
708
|
type: "primary",
|
|
709
709
|
class: "hb_list_page_button",
|
|
710
710
|
onClick: P
|
|
711
711
|
}, {
|
|
712
712
|
icon: b(() => [
|
|
713
|
-
|
|
713
|
+
M(v(Ze))
|
|
714
714
|
]),
|
|
715
715
|
default: b(() => [
|
|
716
|
-
E(" " + C(
|
|
716
|
+
E(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
717
717
|
]),
|
|
718
718
|
_: 1
|
|
719
719
|
}),
|
|
720
|
-
|
|
720
|
+
M(Z, {
|
|
721
721
|
type: "link",
|
|
722
722
|
class: "hb_list_page_button",
|
|
723
723
|
onClick: D
|
|
724
724
|
}, {
|
|
725
725
|
default: b(() => [
|
|
726
|
-
E(C(
|
|
726
|
+
E(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
727
727
|
]),
|
|
728
728
|
_: 1
|
|
729
729
|
}),
|
|
730
|
-
e.needFilter ? (d(),
|
|
730
|
+
e.needFilter ? (d(), N(ne, {
|
|
731
731
|
key: 0,
|
|
732
|
-
title:
|
|
732
|
+
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
733
733
|
}, {
|
|
734
734
|
default: b(() => [
|
|
735
735
|
m("span", {
|
|
736
736
|
class: "hb-lib-form-svg",
|
|
737
|
-
onClick:
|
|
738
|
-
}, [...
|
|
737
|
+
onClick: H
|
|
738
|
+
}, [...I[2] || (I[2] = [
|
|
739
739
|
m("svg", {
|
|
740
740
|
t: "1757915025410",
|
|
741
741
|
class: "icon",
|
|
@@ -755,13 +755,13 @@ const Uo = le(Po), Eo = {
|
|
|
755
755
|
])])
|
|
756
756
|
]),
|
|
757
757
|
_: 1
|
|
758
|
-
}, 8, ["title"])) :
|
|
759
|
-
J(
|
|
760
|
-
e.needSearchCase ? (d(),
|
|
758
|
+
}, 8, ["title"])) : V("", !0),
|
|
759
|
+
J(_.$slots, "formBtns", {}, () => [
|
|
760
|
+
e.needSearchCase ? (d(), N(Te, { key: 0 }, {
|
|
761
761
|
overlay: b(() => [
|
|
762
|
-
|
|
762
|
+
M(fe, { onClick: L }, {
|
|
763
763
|
default: b(() => [
|
|
764
|
-
(d(!0), w(
|
|
764
|
+
(d(!0), w(te, null, be(r.value, (W) => (d(), N(le, {
|
|
765
765
|
key: W.id
|
|
766
766
|
}, {
|
|
767
767
|
default: b(() => [
|
|
@@ -769,17 +769,17 @@ const Uo = le(Po), Eo = {
|
|
|
769
769
|
]),
|
|
770
770
|
_: 2
|
|
771
771
|
}, 1024))), 128)),
|
|
772
|
-
|
|
772
|
+
M(le, { key: "add" }, {
|
|
773
773
|
default: b(() => [
|
|
774
|
-
m("span", zo, C(
|
|
774
|
+
m("span", zo, C(_.$t(
|
|
775
775
|
"hbLibComp.hbLibListForm.addScheme"
|
|
776
776
|
)), 1)
|
|
777
777
|
]),
|
|
778
778
|
_: 1
|
|
779
779
|
}),
|
|
780
|
-
|
|
780
|
+
M(le, { key: "edit" }, {
|
|
781
781
|
default: b(() => [
|
|
782
|
-
m("span", Vo, C(
|
|
782
|
+
m("span", Vo, C(_.$t(
|
|
783
783
|
"hbLibComp.hbLibListForm.editScheme"
|
|
784
784
|
)), 1)
|
|
785
785
|
]),
|
|
@@ -790,10 +790,10 @@ const Uo = le(Po), Eo = {
|
|
|
790
790
|
})
|
|
791
791
|
]),
|
|
792
792
|
default: b(() => [
|
|
793
|
-
|
|
794
|
-
title:
|
|
793
|
+
M(ne, {
|
|
794
|
+
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
795
795
|
}, {
|
|
796
|
-
default: b(() => [...
|
|
796
|
+
default: b(() => [...I[3] || (I[3] = [
|
|
797
797
|
m("span", {
|
|
798
798
|
class: "hb-lib-form-svg",
|
|
799
799
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -828,29 +828,29 @@ const Uo = le(Po), Eo = {
|
|
|
828
828
|
}, 8, ["title"])
|
|
829
829
|
]),
|
|
830
830
|
_: 1
|
|
831
|
-
})) :
|
|
831
|
+
})) : V("", !0)
|
|
832
832
|
], !0)
|
|
833
|
-
], !0) :
|
|
833
|
+
], !0) : V("", !0)
|
|
834
834
|
], 2)
|
|
835
|
-
], 2)) :
|
|
835
|
+
], 2)) : V("", !0)
|
|
836
836
|
], 2), [
|
|
837
837
|
[ro, e.isFormExpanded]
|
|
838
838
|
])
|
|
839
839
|
]),
|
|
840
840
|
_: 3
|
|
841
841
|
}),
|
|
842
|
-
|
|
842
|
+
M(Oe, {
|
|
843
843
|
ref_key: "HbSfCmRef",
|
|
844
|
-
ref:
|
|
844
|
+
ref: g,
|
|
845
845
|
"show-number": s.value,
|
|
846
846
|
list: f.value,
|
|
847
|
-
"save-key":
|
|
847
|
+
"save-key": x.value,
|
|
848
848
|
onConfirm: c
|
|
849
849
|
}, null, 8, ["show-number", "list", "save-key"])
|
|
850
850
|
], 64);
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
}), Wo = /* @__PURE__ */
|
|
853
|
+
}), Wo = /* @__PURE__ */ se(jo, [["__scopeId", "data-v-01be3452"]]), qo = ie(Wo), Yo = { class: "hb-lib-list-page-act-box" }, Ko = { class: "hb-lib-list-page-breadcrumb" }, Go = {
|
|
854
854
|
key: 0,
|
|
855
855
|
class: "hb-lib-list-page-breadcrumb-item-divider"
|
|
856
856
|
}, Jo = { class: "hb-lib-list-page-act" }, Xo = {
|
|
@@ -873,7 +873,7 @@ const Uo = le(Po), Eo = {
|
|
|
873
873
|
"p-id": "23904",
|
|
874
874
|
width: "200",
|
|
875
875
|
height: "200"
|
|
876
|
-
}, Zo = /* @__PURE__ */
|
|
876
|
+
}, Zo = /* @__PURE__ */ oe({
|
|
877
877
|
name: "HbLibListPageAct",
|
|
878
878
|
__name: "HbListPageAct",
|
|
879
879
|
props: {
|
|
@@ -881,8 +881,8 @@ const Uo = le(Po), Eo = {
|
|
|
881
881
|
hideDomList: {}
|
|
882
882
|
},
|
|
883
883
|
setup(e) {
|
|
884
|
-
const t =
|
|
885
|
-
|
|
884
|
+
const t = ve("globalCompConfig", {}), o = e, { isFullscreen: n, toggle: i } = Jt(document.body);
|
|
885
|
+
ce(
|
|
886
886
|
() => n.value,
|
|
887
887
|
(a) => {
|
|
888
888
|
let s = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
@@ -943,17 +943,17 @@ const Uo = le(Po), Eo = {
|
|
|
943
943
|
const p = K("a-tooltip");
|
|
944
944
|
return d(), w("section", Yo, [
|
|
945
945
|
m("aside", Ko, [
|
|
946
|
-
(d(!0), w(
|
|
946
|
+
(d(!0), w(te, null, be(l.value, (h, f) => (d(), w(te, { key: h }, [
|
|
947
947
|
m("span", {
|
|
948
948
|
class: X(["hb-lib-list-page-breadcrumb-item", {
|
|
949
949
|
"last-item": f === l.value.length - 1
|
|
950
950
|
}])
|
|
951
951
|
}, C(h), 3),
|
|
952
|
-
f !== l.value.length - 1 ? (d(), w("span", Go, " / ")) :
|
|
952
|
+
f !== l.value.length - 1 ? (d(), w("span", Go, " / ")) : V("", !0)
|
|
953
953
|
], 64))), 128))
|
|
954
954
|
]),
|
|
955
955
|
m("aside", Jo, [
|
|
956
|
-
|
|
956
|
+
M(p, {
|
|
957
957
|
title: v(n) ? `${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
958
958
|
placement: "leftTop"
|
|
959
959
|
}, {
|
|
@@ -995,7 +995,7 @@ const Uo = le(Po), Eo = {
|
|
|
995
995
|
]);
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
}), en = /* @__PURE__ */
|
|
998
|
+
}), en = /* @__PURE__ */ se(Zo, [["__scopeId", "data-v-bb3d58ae"]]), tn = ie(en), on = { class: "hb-lib-list-btns-box" }, nn = { class: "hb-lib-list-btns-left" }, ln = { class: "hb-lib-list-btns-right" }, an = /* @__PURE__ */ oe({
|
|
999
999
|
name: "HbLibListBtnsAct",
|
|
1000
1000
|
__name: "HbListBtns",
|
|
1001
1001
|
props: {
|
|
@@ -1021,7 +1021,7 @@ const Uo = le(Po), Eo = {
|
|
|
1021
1021
|
J(u.$slots, "btnsLeft", {}, void 0, !0)
|
|
1022
1022
|
]),
|
|
1023
1023
|
m("aside", ln, [
|
|
1024
|
-
e.needReload ? (d(),
|
|
1024
|
+
e.needReload ? (d(), N(s, {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
title: u.$t("hbLibComp.hbListBtnsAct.reload")
|
|
1027
1027
|
}, {
|
|
@@ -1049,8 +1049,8 @@ const Uo = le(Po), Eo = {
|
|
|
1049
1049
|
])])
|
|
1050
1050
|
]),
|
|
1051
1051
|
_: 1
|
|
1052
|
-
}, 8, ["title"])) :
|
|
1053
|
-
e.needOpenOrClose ? (d(),
|
|
1052
|
+
}, 8, ["title"])) : V("", !0),
|
|
1053
|
+
e.needOpenOrClose ? (d(), N(s, {
|
|
1054
1054
|
key: 1,
|
|
1055
1055
|
title: n.value ? `${u.$t("hbLibComp.hbListBtnsAct.close")}` : `${u.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
1056
1056
|
}, {
|
|
@@ -1059,45 +1059,45 @@ const Uo = le(Po), Eo = {
|
|
|
1059
1059
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
1060
1060
|
onClick: i
|
|
1061
1061
|
}, [
|
|
1062
|
-
n.value ? (d(),
|
|
1062
|
+
n.value ? (d(), N(v(wo), {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1065
|
-
})) : (d(),
|
|
1065
|
+
})) : (d(), N(v(ko), {
|
|
1066
1066
|
key: 1,
|
|
1067
1067
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1068
1068
|
}))
|
|
1069
1069
|
])
|
|
1070
1070
|
]),
|
|
1071
1071
|
_: 1
|
|
1072
|
-
}, 8, ["title"])) :
|
|
1072
|
+
}, 8, ["title"])) : V("", !0),
|
|
1073
1073
|
J(u.$slots, "btnsRight", {}, void 0, !0)
|
|
1074
1074
|
])
|
|
1075
1075
|
]);
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
}), sn = /* @__PURE__ */
|
|
1078
|
+
}), sn = /* @__PURE__ */ se(an, [["__scopeId", "data-v-40c1a746"]]), rn = ie(sn), cn = (e = {}) => {
|
|
1079
1079
|
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: i = 100 } = e, l = O(0);
|
|
1080
1080
|
let r = null, u = null, a = null, s = null, p = null;
|
|
1081
1081
|
const h = () => {
|
|
1082
1082
|
p && clearTimeout(p), p = setTimeout(() => {
|
|
1083
1083
|
requestAnimationFrame(() => {
|
|
1084
1084
|
xe(() => {
|
|
1085
|
-
const
|
|
1086
|
-
if (
|
|
1087
|
-
const D = Math.floor(
|
|
1088
|
-
let c =
|
|
1085
|
+
const T = document.querySelector(".ant-table"), P = document.querySelector(".ant-pagination");
|
|
1086
|
+
if (T) {
|
|
1087
|
+
const D = Math.floor(T.getBoundingClientRect().top), g = window.innerHeight, L = (P ? P.offsetHeight + 20 : 40) + o;
|
|
1088
|
+
let c = g - D - L;
|
|
1089
1089
|
c < n && (c = n), l.value = c;
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
});
|
|
1093
1093
|
}, 100);
|
|
1094
1094
|
}, f = () => {
|
|
1095
|
-
const
|
|
1096
|
-
if (
|
|
1095
|
+
const T = document.querySelector(".ant-pagination");
|
|
1096
|
+
if (T) {
|
|
1097
1097
|
const P = new MutationObserver(() => {
|
|
1098
1098
|
h();
|
|
1099
1099
|
});
|
|
1100
|
-
return P.observe(
|
|
1100
|
+
return P.observe(T, {
|
|
1101
1101
|
childList: !0,
|
|
1102
1102
|
subtree: !0,
|
|
1103
1103
|
attributes: !0,
|
|
@@ -1106,36 +1106,36 @@ const Uo = le(Po), Eo = {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
return null;
|
|
1108
1108
|
}, S = () => {
|
|
1109
|
-
const
|
|
1110
|
-
|
|
1109
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1110
|
+
T && (r = new ResizeObserver(() => {
|
|
1111
1111
|
document.querySelectorAll(".ant-tooltip").forEach((D) => {
|
|
1112
1112
|
D.style.display = "none";
|
|
1113
1113
|
}), h();
|
|
1114
|
-
}), r.observe(
|
|
1114
|
+
}), r.observe(T));
|
|
1115
1115
|
}, $ = () => {
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1116
|
+
const T = document.querySelector(".hb-lib-list-page-form-box");
|
|
1117
|
+
T && (a = new MutationObserver(() => {
|
|
1118
1118
|
setTimeout(() => {
|
|
1119
1119
|
h();
|
|
1120
1120
|
}, i);
|
|
1121
|
-
}), a.observe(
|
|
1121
|
+
}), a.observe(T, {
|
|
1122
1122
|
childList: !0,
|
|
1123
1123
|
subtree: !0,
|
|
1124
1124
|
attributes: !0,
|
|
1125
1125
|
attributeFilter: ["style", "class"]
|
|
1126
1126
|
}));
|
|
1127
|
-
},
|
|
1127
|
+
}, R = () => {
|
|
1128
1128
|
s && clearTimeout(s), s = setTimeout(() => {
|
|
1129
1129
|
h();
|
|
1130
1130
|
}, i);
|
|
1131
|
-
},
|
|
1132
|
-
window.addEventListener("resize",
|
|
1131
|
+
}, j = () => {
|
|
1132
|
+
window.addEventListener("resize", R), xe(() => {
|
|
1133
1133
|
S(), $(), u = f();
|
|
1134
1134
|
});
|
|
1135
|
-
},
|
|
1136
|
-
window.removeEventListener("resize",
|
|
1135
|
+
}, x = () => {
|
|
1136
|
+
window.removeEventListener("resize", R), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s), p && clearTimeout(p);
|
|
1137
1137
|
};
|
|
1138
|
-
return t &&
|
|
1138
|
+
return t && ce(
|
|
1139
1139
|
() => t,
|
|
1140
1140
|
() => {
|
|
1141
1141
|
setTimeout(() => {
|
|
@@ -1144,14 +1144,14 @@ const Uo = le(Po), Eo = {
|
|
|
1144
1144
|
},
|
|
1145
1145
|
{ deep: !0 }
|
|
1146
1146
|
), He(() => {
|
|
1147
|
-
h(),
|
|
1147
|
+
h(), j();
|
|
1148
1148
|
}), je(() => {
|
|
1149
|
-
|
|
1149
|
+
x();
|
|
1150
1150
|
}), {
|
|
1151
1151
|
tableHeight: l,
|
|
1152
1152
|
calTableHeight: h
|
|
1153
1153
|
};
|
|
1154
|
-
}, dn = /* @__PURE__ */
|
|
1154
|
+
}, dn = /* @__PURE__ */ oe({
|
|
1155
1155
|
name: "HbLibListPageContainer",
|
|
1156
1156
|
__name: "HbListPageContainer",
|
|
1157
1157
|
props: {
|
|
@@ -1164,21 +1164,21 @@ const Uo = le(Po), Eo = {
|
|
|
1164
1164
|
isUnFixTbHeight: { type: Boolean }
|
|
1165
1165
|
},
|
|
1166
1166
|
setup(e) {
|
|
1167
|
-
const t =
|
|
1167
|
+
const t = ve("globalCompConfig", {}), { isFullscreen: o } = Jt(document.body), n = e, i = co("PageContainerRef"), l = F(
|
|
1168
1168
|
() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110
|
|
1169
|
-
), r =
|
|
1169
|
+
), r = F(
|
|
1170
1170
|
() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20
|
|
1171
|
-
), u =
|
|
1171
|
+
), u = F(
|
|
1172
1172
|
() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300
|
|
1173
|
-
), a =
|
|
1173
|
+
), a = F(
|
|
1174
1174
|
() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100
|
|
1175
|
-
), s =
|
|
1175
|
+
), s = F(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1), { calTableHeight: p, tableHeight: h } = cn({
|
|
1176
1176
|
offsetBottom: r.value,
|
|
1177
1177
|
// 底部预留空间
|
|
1178
1178
|
minHeight: u.value,
|
|
1179
1179
|
// table最小高度 请勿随便修改!!
|
|
1180
1180
|
timeOut: a.value
|
|
1181
|
-
}), f =
|
|
1181
|
+
}), f = F(() => h.value);
|
|
1182
1182
|
return Ue("HB_LIST_PAGE_CONTAINER", {
|
|
1183
1183
|
PageContainerRef: i,
|
|
1184
1184
|
// 通过函数访问,
|
|
@@ -1203,7 +1203,7 @@ const Uo = le(Po), Eo = {
|
|
|
1203
1203
|
], 4)
|
|
1204
1204
|
], 512));
|
|
1205
1205
|
}
|
|
1206
|
-
}), un =
|
|
1206
|
+
}), un = ie(dn), fn = { style: { "font-weight": "500" } }, pn = {
|
|
1207
1207
|
key: 0,
|
|
1208
1208
|
class: "hb-lib-search-tag__description"
|
|
1209
1209
|
}, bn = { class: "hb-lib-selector-dropdown" }, mn = { class: "hb-lib-selector-search" }, hn = { class: "hb-lib-selector-list" }, vn = ["onClick"], gn = { class: "hb-lib-option-content" }, yn = { class: "hb-lib-option-label" }, _n = {
|
|
@@ -1215,7 +1215,7 @@ const Uo = le(Po), Eo = {
|
|
|
1215
1215
|
}, Cn = { class: "hb-lib-footer-buttons" }, wn = {
|
|
1216
1216
|
key: 2,
|
|
1217
1217
|
class: "hb-lib-selector-footer"
|
|
1218
|
-
}, kn = { class: "hb-lib-footer-buttons" }, Sn = /* @__PURE__ */
|
|
1218
|
+
}, kn = { class: "hb-lib-footer-buttons" }, Sn = /* @__PURE__ */ oe({
|
|
1219
1219
|
name: "HbLibListMultiSelect",
|
|
1220
1220
|
__name: "HbListMultiSelect",
|
|
1221
1221
|
props: /* @__PURE__ */ rt({
|
|
@@ -1236,59 +1236,59 @@ const Uo = le(Po), Eo = {
|
|
|
1236
1236
|
}),
|
|
1237
1237
|
emits: /* @__PURE__ */ rt(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1238
1238
|
setup(e, { emit: t }) {
|
|
1239
|
-
const o = e, n = t, i = jt(e, "value"), l = O(!1), r = O(""), u = O([]), a = O(), s =
|
|
1239
|
+
const o = e, n = t, i = jt(e, "value"), l = O(!1), r = O(""), u = O([]), a = O(), s = F(() => {
|
|
1240
1240
|
if (o.remoteSearch || !r.value) return o.options;
|
|
1241
|
-
const
|
|
1241
|
+
const g = r.value.toLowerCase();
|
|
1242
1242
|
return o.options.filter(
|
|
1243
|
-
(
|
|
1243
|
+
(H) => H.label.toLowerCase().includes(g) || H.description?.toLowerCase().includes(g)
|
|
1244
1244
|
);
|
|
1245
|
-
}), p =
|
|
1246
|
-
(
|
|
1247
|
-
)), f =
|
|
1245
|
+
}), p = F(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), h = F(() => s.value.length === 0 ? !1 : s.value.every(
|
|
1246
|
+
(g) => u.value.includes(g.value)
|
|
1247
|
+
)), f = F(() => {
|
|
1248
1248
|
if (s.value.length === 0) return !1;
|
|
1249
|
-
const
|
|
1250
|
-
(
|
|
1249
|
+
const g = s.value.filter(
|
|
1250
|
+
(H) => u.value.includes(H.value)
|
|
1251
1251
|
).length;
|
|
1252
|
-
return
|
|
1252
|
+
return g > 0 && g < s.value.length;
|
|
1253
1253
|
});
|
|
1254
|
-
|
|
1254
|
+
ce(
|
|
1255
1255
|
() => i.value,
|
|
1256
|
-
(
|
|
1257
|
-
|
|
1256
|
+
(g) => {
|
|
1257
|
+
g ? u.value = Array.isArray(g) ? [...g] : [g] : u.value = [];
|
|
1258
1258
|
},
|
|
1259
1259
|
{ immediate: !0 }
|
|
1260
|
-
),
|
|
1260
|
+
), ce(
|
|
1261
1261
|
() => o.searchValue,
|
|
1262
|
-
(
|
|
1263
|
-
o.remoteSearch &&
|
|
1262
|
+
(g) => {
|
|
1263
|
+
o.remoteSearch && g !== void 0 && (r.value = g);
|
|
1264
1264
|
},
|
|
1265
1265
|
{ immediate: !0 }
|
|
1266
1266
|
);
|
|
1267
|
-
const S = (
|
|
1268
|
-
|
|
1267
|
+
const S = (g) => {
|
|
1268
|
+
g && (l.value = g, $.value = [...u.value], r.value = "", setTimeout(() => {
|
|
1269
1269
|
if (a.value) {
|
|
1270
|
-
const
|
|
1271
|
-
|
|
1270
|
+
const H = a.value.input || a.value.$el?.querySelector("input");
|
|
1271
|
+
H && H.focus();
|
|
1272
1272
|
}
|
|
1273
1273
|
}, 100));
|
|
1274
|
-
}, $ = O([]),
|
|
1274
|
+
}, $ = O([]), R = () => {
|
|
1275
1275
|
u.value = [...$.value], l.value = !1, n("cancel");
|
|
1276
|
-
},
|
|
1277
|
-
const
|
|
1276
|
+
}, j = O([]), x = () => {
|
|
1277
|
+
const g = o.multiple ? u.value : u.value[0] || "", H = o.options.filter(
|
|
1278
1278
|
(L) => u.value.includes(L.value)
|
|
1279
1279
|
);
|
|
1280
|
-
|
|
1281
|
-
},
|
|
1282
|
-
const
|
|
1283
|
-
o.remoteSearch && (n("search",
|
|
1284
|
-
}, 300), P = (
|
|
1280
|
+
j.value = H, $.value = [...u.value], i.value = g, n("update:value", g), n("change", g, H), n("confirm", g, H), l.value = !1;
|
|
1281
|
+
}, T = To((g) => {
|
|
1282
|
+
const H = g !== void 0 ? g : r.value;
|
|
1283
|
+
o.remoteSearch && (n("search", H), n("update:searchValue", H));
|
|
1284
|
+
}, 300), P = (g) => {
|
|
1285
1285
|
if (o.multiple) {
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1286
|
+
const H = new Set(u.value);
|
|
1287
|
+
H.has(g.value) ? H.delete(g.value) : H.add(g.value), u.value = Array.from(H);
|
|
1288
1288
|
} else
|
|
1289
|
-
u.value = [
|
|
1290
|
-
}, D = (
|
|
1291
|
-
if (
|
|
1289
|
+
u.value = [g.value], x();
|
|
1290
|
+
}, D = (g) => {
|
|
1291
|
+
if (g.target.checked) {
|
|
1292
1292
|
const L = new Set(u.value);
|
|
1293
1293
|
s.value.forEach((c) => {
|
|
1294
1294
|
L.add(c.value);
|
|
@@ -1302,15 +1302,15 @@ const Uo = le(Po), Eo = {
|
|
|
1302
1302
|
);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
return (
|
|
1306
|
-
const L = K("a-tag"), c = K("a-input"),
|
|
1305
|
+
return (g, H) => {
|
|
1306
|
+
const L = K("a-tag"), c = K("a-input"), y = K("a-checkbox"), k = K("a-radio"), U = K("a-button"), Y = K("a-select");
|
|
1307
1307
|
return d(), w("div", de({
|
|
1308
1308
|
class: "hb-lib-selector-wrapper",
|
|
1309
1309
|
style: { "--prefix-width": p.value }
|
|
1310
|
-
},
|
|
1311
|
-
|
|
1310
|
+
}, g.$attrs), [
|
|
1311
|
+
M(Y, {
|
|
1312
1312
|
value: i.value,
|
|
1313
|
-
"onUpdate:value":
|
|
1313
|
+
"onUpdate:value": H[5] || (H[5] = (_) => i.value = _),
|
|
1314
1314
|
mode: e.multiple ? "multiple" : void 0,
|
|
1315
1315
|
placeholder: e.placeholder,
|
|
1316
1316
|
"show-search": !0,
|
|
@@ -1324,16 +1324,16 @@ const Uo = le(Po), Eo = {
|
|
|
1324
1324
|
"data-prefix": e.prefix,
|
|
1325
1325
|
style: { width: "100%" },
|
|
1326
1326
|
onDropdownVisibleChange: S,
|
|
1327
|
-
onSearch: v(
|
|
1327
|
+
onSearch: v(T)
|
|
1328
1328
|
}, {
|
|
1329
|
-
tagRender: b(({ label:
|
|
1330
|
-
|
|
1329
|
+
tagRender: b(({ label: _, option: I }) => [
|
|
1330
|
+
M(L, {
|
|
1331
1331
|
class: "hb-lib-search-tag",
|
|
1332
|
-
onClick:
|
|
1332
|
+
onClick: H[0] || (H[0] = () => S(!0))
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: b(() => [
|
|
1335
|
-
m("span", fn, C(
|
|
1336
|
-
|
|
1335
|
+
m("span", fn, C(_), 1),
|
|
1336
|
+
I?.description ? (d(), w("span", pn, " (" + C(I.description) + ") ", 1)) : V("", !0)
|
|
1337
1337
|
]),
|
|
1338
1338
|
_: 2
|
|
1339
1339
|
}, 1024)
|
|
@@ -1341,82 +1341,82 @@ const Uo = le(Po), Eo = {
|
|
|
1341
1341
|
dropdownRender: b(() => [
|
|
1342
1342
|
m("div", bn, [
|
|
1343
1343
|
m("div", mn, [
|
|
1344
|
-
|
|
1344
|
+
M(c, {
|
|
1345
1345
|
ref_key: "searchInputRef",
|
|
1346
1346
|
ref: a,
|
|
1347
1347
|
value: r.value,
|
|
1348
|
-
"onUpdate:value":
|
|
1348
|
+
"onUpdate:value": H[1] || (H[1] = (_) => r.value = _),
|
|
1349
1349
|
class: "hb-lib-selector-search-input",
|
|
1350
1350
|
placeholder: "请输入关键词搜索",
|
|
1351
1351
|
"allow-clear": "",
|
|
1352
|
-
onInput:
|
|
1352
|
+
onInput: H[2] || (H[2] = (_) => v(T)(_.target.value))
|
|
1353
1353
|
}, {
|
|
1354
1354
|
prefix: b(() => [
|
|
1355
|
-
|
|
1355
|
+
M(v(Ze))
|
|
1356
1356
|
]),
|
|
1357
1357
|
_: 1
|
|
1358
1358
|
}, 8, ["value"])
|
|
1359
1359
|
]),
|
|
1360
1360
|
m("div", hn, [
|
|
1361
|
-
(d(!0), w(
|
|
1362
|
-
key:
|
|
1361
|
+
(d(!0), w(te, null, be(s.value, (_) => (d(), w("div", {
|
|
1362
|
+
key: _.value,
|
|
1363
1363
|
class: X([
|
|
1364
1364
|
"hb-lib-selector-option",
|
|
1365
1365
|
{
|
|
1366
1366
|
selected: u.value.includes(
|
|
1367
|
-
|
|
1367
|
+
_.value
|
|
1368
1368
|
)
|
|
1369
1369
|
}
|
|
1370
1370
|
]),
|
|
1371
|
-
onClick: () => P(
|
|
1371
|
+
onClick: () => P(_)
|
|
1372
1372
|
}, [
|
|
1373
|
-
e.multiple ? (d(),
|
|
1373
|
+
e.multiple ? (d(), N(y, {
|
|
1374
1374
|
key: 0,
|
|
1375
|
-
checked: u.value.includes(
|
|
1376
|
-
onChange: () => P(
|
|
1377
|
-
onClick:
|
|
1375
|
+
checked: u.value.includes(_.value),
|
|
1376
|
+
onChange: () => P(_),
|
|
1377
|
+
onClick: H[3] || (H[3] = Ge(() => {
|
|
1378
1378
|
}, ["stop"]))
|
|
1379
|
-
}, null, 8, ["checked", "onChange"])) : (d(),
|
|
1379
|
+
}, null, 8, ["checked", "onChange"])) : (d(), N(k, {
|
|
1380
1380
|
key: 1,
|
|
1381
|
-
checked: u.value.includes(
|
|
1382
|
-
onChange: () => P(
|
|
1383
|
-
onClick:
|
|
1381
|
+
checked: u.value.includes(_.value),
|
|
1382
|
+
onChange: () => P(_),
|
|
1383
|
+
onClick: H[4] || (H[4] = Ge(() => {
|
|
1384
1384
|
}, ["stop"]))
|
|
1385
1385
|
}, null, 8, ["checked", "onChange"])),
|
|
1386
1386
|
m("div", gn, [
|
|
1387
|
-
m("div", yn, C(
|
|
1387
|
+
m("div", yn, C(_.label), 1)
|
|
1388
1388
|
])
|
|
1389
1389
|
], 10, vn))), 128))
|
|
1390
1390
|
]),
|
|
1391
|
-
s.value.length === 0 ? (d(), w("div", _n, C(
|
|
1391
|
+
s.value.length === 0 ? (d(), w("div", _n, C(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : V("", !0),
|
|
1392
1392
|
e.multiple ? (d(), w("div", Ln, [
|
|
1393
|
-
|
|
1393
|
+
M(y, {
|
|
1394
1394
|
checked: h.value,
|
|
1395
1395
|
indeterminate: f.value,
|
|
1396
1396
|
onChange: D
|
|
1397
1397
|
}, {
|
|
1398
1398
|
default: b(() => [
|
|
1399
|
-
E(C(
|
|
1399
|
+
E(C(g.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1400
1400
|
]),
|
|
1401
1401
|
_: 1
|
|
1402
1402
|
}, 8, ["checked", "indeterminate"]),
|
|
1403
1403
|
m("div", Cn, [
|
|
1404
|
-
|
|
1404
|
+
M(U, {
|
|
1405
1405
|
size: "small",
|
|
1406
|
-
onClick:
|
|
1406
|
+
onClick: R
|
|
1407
1407
|
}, {
|
|
1408
1408
|
default: b(() => [
|
|
1409
|
-
E(C(
|
|
1409
|
+
E(C(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1410
1410
|
]),
|
|
1411
1411
|
_: 1
|
|
1412
1412
|
}),
|
|
1413
|
-
|
|
1413
|
+
M(U, {
|
|
1414
1414
|
type: "primary",
|
|
1415
1415
|
size: "small",
|
|
1416
|
-
onClick:
|
|
1416
|
+
onClick: x
|
|
1417
1417
|
}, {
|
|
1418
1418
|
default: b(() => [
|
|
1419
|
-
E(C(
|
|
1419
|
+
E(C(g.$t(
|
|
1420
1420
|
"hbLibComp.hbFormItemFilterModal.confirm"
|
|
1421
1421
|
)), 1)
|
|
1422
1422
|
]),
|
|
@@ -1424,14 +1424,14 @@ const Uo = le(Po), Eo = {
|
|
|
1424
1424
|
})
|
|
1425
1425
|
])
|
|
1426
1426
|
])) : (d(), w("div", wn, [
|
|
1427
|
-
|
|
1427
|
+
H[6] || (H[6] = m("div", null, null, -1)),
|
|
1428
1428
|
m("div", kn, [
|
|
1429
|
-
|
|
1429
|
+
M(U, {
|
|
1430
1430
|
size: "small",
|
|
1431
|
-
onClick:
|
|
1431
|
+
onClick: R
|
|
1432
1432
|
}, {
|
|
1433
1433
|
default: b(() => [
|
|
1434
|
-
E(C(
|
|
1434
|
+
E(C(g.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 1
|
|
1437
1437
|
})
|
|
@@ -1444,7 +1444,7 @@ const Uo = le(Po), Eo = {
|
|
|
1444
1444
|
], 16);
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
|
-
}), xn = /* @__PURE__ */
|
|
1447
|
+
}), xn = /* @__PURE__ */ se(Sn, [["__scopeId", "data-v-14ede517"]]), Tn = ie(xn), Fn = { class: "hb-lib-form-item-filter-modal-search" }, Hn = { class: "hb-lib-form-item-filter-modal-buttons" }, $n = { key: 0 }, In = /* @__PURE__ */ oe({
|
|
1448
1448
|
name: "HbLibMutilpleSelectModal",
|
|
1449
1449
|
__name: "HbMutilpleSelectModal",
|
|
1450
1450
|
props: {
|
|
@@ -1461,77 +1461,77 @@ const Uo = le(Po), Eo = {
|
|
|
1461
1461
|
const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]), p = O([]), h = O(), f = Ve({
|
|
1462
1462
|
searchText: "",
|
|
1463
1463
|
searchedColumn: ""
|
|
1464
|
-
}), S =
|
|
1464
|
+
}), S = F(() => n.tableData.map((L) => (L.id = L.id || Math.random(), L))), $ = F(() => n.tableColumn.map((L) => (L.customFilterDropdown && (L.onFilter = (c, y) => y[L.dataIndex].toString().toLowerCase().includes(c.toLowerCase()), L.onFilterDropdownVisibleChange = (c) => {
|
|
1465
1465
|
c && setTimeout(() => {
|
|
1466
1466
|
u.value?.focus();
|
|
1467
1467
|
}, 100);
|
|
1468
|
-
}), { ...L }))),
|
|
1468
|
+
}), { ...L }))), R = () => {
|
|
1469
1469
|
let L = "";
|
|
1470
1470
|
p.value.forEach((c) => {
|
|
1471
1471
|
L = L + c[n.labelKey] + ",";
|
|
1472
1472
|
}), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm", p.value);
|
|
1473
|
-
},
|
|
1473
|
+
}, j = () => {
|
|
1474
1474
|
l.value = !1;
|
|
1475
|
-
},
|
|
1475
|
+
}, x = () => {
|
|
1476
1476
|
l.value = !0, xe(() => {
|
|
1477
1477
|
const L = h.value?.$el?.querySelector(".ant-table-body");
|
|
1478
1478
|
L && (L.scrollTop = 0);
|
|
1479
1479
|
});
|
|
1480
|
-
},
|
|
1480
|
+
}, T = () => {
|
|
1481
1481
|
s.value = [], p.value = [];
|
|
1482
1482
|
}, P = () => {
|
|
1483
|
-
r.value = "",
|
|
1484
|
-
}, D = (L, c,
|
|
1485
|
-
c(), f.searchText = L[0], f.searchedColumn =
|
|
1486
|
-
},
|
|
1483
|
+
r.value = "", T();
|
|
1484
|
+
}, D = (L, c, y) => {
|
|
1485
|
+
c(), f.searchText = L[0], f.searchedColumn = y;
|
|
1486
|
+
}, g = (L, c) => {
|
|
1487
1487
|
L({ confirm: !0 }), f.searchText = "", c();
|
|
1488
|
-
},
|
|
1488
|
+
}, H = (L, c) => {
|
|
1489
1489
|
s.value = L, p.value = c;
|
|
1490
1490
|
};
|
|
1491
1491
|
return t({
|
|
1492
1492
|
resetInputVal: P
|
|
1493
1493
|
}), (L, c) => {
|
|
1494
|
-
const
|
|
1494
|
+
const y = K("a-input"), k = K("a-button"), U = K("a-table"), Y = K("a-modal");
|
|
1495
1495
|
return d(), w("div", {
|
|
1496
1496
|
class: "hb-lib-multipleSelectModal-box",
|
|
1497
1497
|
ref_key: "hbMultipSelectModalRef",
|
|
1498
1498
|
ref: a
|
|
1499
1499
|
}, [
|
|
1500
|
-
|
|
1500
|
+
M(y, {
|
|
1501
1501
|
readonly: "",
|
|
1502
|
-
onClick:
|
|
1502
|
+
onClick: x,
|
|
1503
1503
|
value: r.value,
|
|
1504
|
-
"onUpdate:value": c[0] || (c[0] = (
|
|
1504
|
+
"onUpdate:value": c[0] || (c[0] = (_) => r.value = _),
|
|
1505
1505
|
placeholder: L.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1506
1506
|
}, {
|
|
1507
1507
|
addonAfter: b(() => [
|
|
1508
|
-
|
|
1508
|
+
M(v(So), { onClick: x })
|
|
1509
1509
|
]),
|
|
1510
1510
|
_: 1
|
|
1511
1511
|
}, 8, ["value", "placeholder"]),
|
|
1512
|
-
|
|
1512
|
+
M(Y, {
|
|
1513
1513
|
visible: l.value,
|
|
1514
|
-
"onUpdate:visible": c[1] || (c[1] = (
|
|
1514
|
+
"onUpdate:visible": c[1] || (c[1] = (_) => l.value = _),
|
|
1515
1515
|
title: e.modelTitle,
|
|
1516
1516
|
width: e.modalWidth,
|
|
1517
1517
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1518
1518
|
}, {
|
|
1519
1519
|
footer: b(() => [
|
|
1520
|
-
|
|
1520
|
+
M(k, { onClick: T }, {
|
|
1521
1521
|
default: b(() => [
|
|
1522
1522
|
E(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1523
1523
|
]),
|
|
1524
1524
|
_: 1
|
|
1525
1525
|
}),
|
|
1526
|
-
|
|
1526
|
+
M(k, { onClick: j }, {
|
|
1527
1527
|
default: b(() => [
|
|
1528
1528
|
E(C(L.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1529
1529
|
]),
|
|
1530
1530
|
_: 1
|
|
1531
1531
|
}),
|
|
1532
|
-
|
|
1532
|
+
M(k, {
|
|
1533
1533
|
type: "primary",
|
|
1534
|
-
onClick:
|
|
1534
|
+
onClick: R
|
|
1535
1535
|
}, {
|
|
1536
1536
|
default: b(() => [
|
|
1537
1537
|
E(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1540,41 +1540,41 @@ const Uo = le(Po), Eo = {
|
|
|
1540
1540
|
})
|
|
1541
1541
|
]),
|
|
1542
1542
|
default: b(() => [
|
|
1543
|
-
|
|
1543
|
+
M(U, {
|
|
1544
1544
|
ref_key: "tableRef",
|
|
1545
1545
|
ref: h,
|
|
1546
1546
|
columns: $.value,
|
|
1547
1547
|
dataSource: S.value,
|
|
1548
|
-
rowSelection: { selectedRowKeys: s.value, onChange:
|
|
1549
|
-
rowKey: (
|
|
1548
|
+
rowSelection: { selectedRowKeys: s.value, onChange: H },
|
|
1549
|
+
rowKey: (_) => _[e.tableKey],
|
|
1550
1550
|
scroll: { y: e.tableHeight }
|
|
1551
1551
|
}, {
|
|
1552
|
-
customFilterDropdown: b(({ setSelectedKeys:
|
|
1552
|
+
customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: I, confirm: Z, clearFilters: ne, column: le }) => [
|
|
1553
1553
|
m("div", Fn, [
|
|
1554
|
-
|
|
1554
|
+
M(y, {
|
|
1555
1555
|
ref_key: "searchInput",
|
|
1556
1556
|
ref: u,
|
|
1557
|
-
placeholder: `请输入${
|
|
1558
|
-
value:
|
|
1557
|
+
placeholder: `请输入${le.title}`,
|
|
1558
|
+
value: I[0],
|
|
1559
1559
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1560
|
-
onChange: (
|
|
1561
|
-
onPressEnter: (
|
|
1560
|
+
onChange: (fe) => _(fe.target.value ? [fe.target.value] : []),
|
|
1561
|
+
onPressEnter: (fe) => D(I, Z, le.dataIndex)
|
|
1562
1562
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1563
1563
|
m("section", Hn, [
|
|
1564
|
-
|
|
1564
|
+
M(k, {
|
|
1565
1565
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1566
1566
|
type: "ghost",
|
|
1567
|
-
onClick: (
|
|
1567
|
+
onClick: (fe) => g(ne, Z)
|
|
1568
1568
|
}, {
|
|
1569
1569
|
default: b(() => [
|
|
1570
1570
|
E(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 1
|
|
1573
1573
|
}, 8, ["onClick"]),
|
|
1574
|
-
|
|
1574
|
+
M(k, {
|
|
1575
1575
|
type: "primary",
|
|
1576
1576
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1577
|
-
onClick: (
|
|
1577
|
+
onClick: (fe) => D(I, Z, le.dataIndex)
|
|
1578
1578
|
}, {
|
|
1579
1579
|
default: b(() => [
|
|
1580
1580
|
E(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1584,22 +1584,22 @@ const Uo = le(Po), Eo = {
|
|
|
1584
1584
|
])
|
|
1585
1585
|
])
|
|
1586
1586
|
]),
|
|
1587
|
-
customFilterIcon: b(({ filtered:
|
|
1588
|
-
|
|
1589
|
-
style: ue({ color:
|
|
1587
|
+
customFilterIcon: b(({ filtered: _ }) => [
|
|
1588
|
+
M(v(Ze), {
|
|
1589
|
+
style: ue({ color: _ ? "#108ee9" : void 0 })
|
|
1590
1590
|
}, null, 8, ["style"])
|
|
1591
1591
|
]),
|
|
1592
|
-
bodyCell: b(({ text:
|
|
1593
|
-
f.searchText && f.searchedColumn ===
|
|
1594
|
-
(d(!0), w(
|
|
1595
|
-
|
|
1596
|
-
key:
|
|
1592
|
+
bodyCell: b(({ text: _, column: I }) => [
|
|
1593
|
+
f.searchText && f.searchedColumn === I.dataIndex ? (d(), w("span", $n, [
|
|
1594
|
+
(d(!0), w(te, null, be(_.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (Z, ne) => (d(), w(te, null, [
|
|
1595
|
+
Z.toLowerCase() === f.searchText.toLowerCase() ? (d(), w("mark", {
|
|
1596
|
+
key: ne,
|
|
1597
1597
|
class: "highlight"
|
|
1598
|
-
}, C(
|
|
1599
|
-
E(C(
|
|
1598
|
+
}, C(Z), 1)) : (d(), w(te, { key: 1 }, [
|
|
1599
|
+
E(C(Z), 1)
|
|
1600
1600
|
], 64))
|
|
1601
1601
|
], 64))), 256))
|
|
1602
|
-
])) :
|
|
1602
|
+
])) : V("", !0)
|
|
1603
1603
|
]),
|
|
1604
1604
|
_: 1
|
|
1605
1605
|
}, 8, ["columns", "dataSource", "rowSelection", "rowKey", "scroll"])
|
|
@@ -1609,13 +1609,13 @@ const Uo = le(Po), Eo = {
|
|
|
1609
1609
|
], 512);
|
|
1610
1610
|
};
|
|
1611
1611
|
}
|
|
1612
|
-
}), Mn =
|
|
1612
|
+
}), Mn = ie(In), Bn = { class: "hb-lib-table-act-box" }, Dn = ["onClick"], An = {
|
|
1613
1613
|
href: "javascript:;",
|
|
1614
1614
|
class: "hb-lib-table-main-action"
|
|
1615
1615
|
}, On = ["onClick"], Pn = {
|
|
1616
1616
|
href: "javascript:;",
|
|
1617
1617
|
class: "hb-lib-table-more-action"
|
|
1618
|
-
}, Un = ["onClick"], En = { href: "javascript:;" }, Rn = ["onClick"], Nn = { class: "hb-lib-table-confirm-modal-content" }, zn = /* @__PURE__ */
|
|
1618
|
+
}, Un = ["onClick"], En = { href: "javascript:;" }, Rn = ["onClick"], Nn = { class: "hb-lib-table-confirm-modal-content" }, zn = /* @__PURE__ */ oe({
|
|
1619
1619
|
name: "HbLibTableAct",
|
|
1620
1620
|
__name: "HbTableAct",
|
|
1621
1621
|
props: {
|
|
@@ -1625,55 +1625,55 @@ const Uo = le(Po), Eo = {
|
|
|
1625
1625
|
buttonDisplaysQuantity: {}
|
|
1626
1626
|
},
|
|
1627
1627
|
setup(e, { expose: t }) {
|
|
1628
|
-
const o = e, { t: n } =
|
|
1628
|
+
const o = e, { t: n } = ge(), i = O(!1), l = O(!1), r = O(null), u = O({}), a = (D) => !!D && (typeof D == "object" || typeof D == "function") && typeof D.then == "function", s = (D) => !!u.value[D.key], p = (D, g) => {
|
|
1629
1629
|
u.value = {
|
|
1630
1630
|
...u.value,
|
|
1631
|
-
[D.key]:
|
|
1631
|
+
[D.key]: g
|
|
1632
1632
|
};
|
|
1633
|
-
}, h =
|
|
1633
|
+
}, h = F(() => o.actions.filter(
|
|
1634
1634
|
(D) => D.condition !== void 0 ? D.condition : !0
|
|
1635
|
-
)), f =
|
|
1635
|
+
)), f = F(() => h.value.slice(0, o.buttonDisplaysQuantity)), S = F(() => $(
|
|
1636
1636
|
h.value.slice(o.buttonDisplaysQuantity)
|
|
1637
1637
|
));
|
|
1638
1638
|
function $(D) {
|
|
1639
1639
|
if (o.filterPermission)
|
|
1640
1640
|
return o.filterPermission(D);
|
|
1641
|
-
let
|
|
1642
|
-
return
|
|
1641
|
+
let g = [], H = [];
|
|
1642
|
+
return g = JSON.parse(
|
|
1643
1643
|
sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"
|
|
1644
|
-
), !Array.isArray(
|
|
1645
|
-
(!L.permissionsTag ||
|
|
1644
|
+
), !Array.isArray(g) || D.length === 0 ? (g = [], []) : (g = g.filter((L) => L.type != "2"), D.forEach((L) => {
|
|
1645
|
+
(!L.permissionsTag || g.findIndex(
|
|
1646
1646
|
(c) => c.action === L.permissionsTag
|
|
1647
|
-
) !== -1) &&
|
|
1648
|
-
}),
|
|
1647
|
+
) !== -1) && H.push(L);
|
|
1648
|
+
}), H);
|
|
1649
1649
|
}
|
|
1650
|
-
const
|
|
1650
|
+
const R = async (D) => {
|
|
1651
1651
|
if (D.needLoading) {
|
|
1652
1652
|
if (s(D)) return;
|
|
1653
1653
|
p(D, !0);
|
|
1654
|
-
const
|
|
1654
|
+
const g = () => p(D, !1), H = D.handler.length >= 2;
|
|
1655
1655
|
try {
|
|
1656
|
-
const L = D.handler(o.record,
|
|
1657
|
-
a(L) ? (await L,
|
|
1656
|
+
const L = D.handler(o.record, g);
|
|
1657
|
+
a(L) ? (await L, g()) : H || g();
|
|
1658
1658
|
} catch (L) {
|
|
1659
|
-
throw
|
|
1659
|
+
throw g(), L;
|
|
1660
1660
|
}
|
|
1661
1661
|
} else
|
|
1662
1662
|
D.handler(o.record);
|
|
1663
|
-
},
|
|
1663
|
+
}, j = (D) => {
|
|
1664
1664
|
r.value = D, i.value = !0;
|
|
1665
|
-
},
|
|
1665
|
+
}, x = async () => {
|
|
1666
1666
|
if (r.value) {
|
|
1667
1667
|
l.value = !0;
|
|
1668
1668
|
try {
|
|
1669
|
-
await
|
|
1669
|
+
await R(r.value), i.value = !1, r.value = null;
|
|
1670
1670
|
} finally {
|
|
1671
1671
|
l.value = !1;
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
},
|
|
1674
|
+
}, T = () => {
|
|
1675
1675
|
i.value = !1, r.value = null;
|
|
1676
|
-
}, P =
|
|
1676
|
+
}, P = F(() => r.value ? {
|
|
1677
1677
|
title: r.value.confirmTitle,
|
|
1678
1678
|
content: r.value.confirmContent || r.value.confirmTitle
|
|
1679
1679
|
} : {
|
|
@@ -1687,29 +1687,29 @@ const Uo = le(Po), Eo = {
|
|
|
1687
1687
|
APopconfirm: at,
|
|
1688
1688
|
AModal: ct,
|
|
1689
1689
|
DownOutlined: pt
|
|
1690
|
-
}), (D,
|
|
1691
|
-
const
|
|
1690
|
+
}), (D, g) => {
|
|
1691
|
+
const H = K("a-divider"), L = Wt("has");
|
|
1692
1692
|
return d(), w("div", Bn, [
|
|
1693
|
-
(d(!0), w(
|
|
1694
|
-
c.needConfirm ? (d(), w(
|
|
1695
|
-
c.confirmType === "modal" ? (d(), w(
|
|
1693
|
+
(d(!0), w(te, null, be(f.value, (c, y) => (d(), w(te, { key: y }, [
|
|
1694
|
+
c.needConfirm ? (d(), w(te, { key: 0 }, [
|
|
1695
|
+
c.confirmType === "modal" ? (d(), w(te, { key: 0 }, [
|
|
1696
1696
|
we((d(), w("a", {
|
|
1697
1697
|
href: "javascript:;",
|
|
1698
1698
|
class: "hb-lib-table-main-action",
|
|
1699
|
-
onClick: (k) =>
|
|
1699
|
+
onClick: (k) => j(c)
|
|
1700
1700
|
}, [
|
|
1701
1701
|
E(C(c.label), 1)
|
|
1702
1702
|
], 8, Dn)), [
|
|
1703
1703
|
[L, c.permissionsTag || null]
|
|
1704
1704
|
]),
|
|
1705
|
-
S.value && S.value.length > 0 ||
|
|
1705
|
+
S.value && S.value.length > 0 || y !== f.value.length - 1 ? (d(), N(H, {
|
|
1706
1706
|
key: 0,
|
|
1707
1707
|
type: "vertical"
|
|
1708
|
-
})) :
|
|
1709
|
-
], 64)) : (d(), w(
|
|
1710
|
-
|
|
1708
|
+
})) : V("", !0)
|
|
1709
|
+
], 64)) : (d(), w(te, { key: 1 }, [
|
|
1710
|
+
M(v(at), {
|
|
1711
1711
|
title: c.confirmTitle,
|
|
1712
|
-
onConfirm: (k) =>
|
|
1712
|
+
onConfirm: (k) => R(c)
|
|
1713
1713
|
}, {
|
|
1714
1714
|
default: b(() => [
|
|
1715
1715
|
we((d(), w("a", An, [
|
|
@@ -1720,49 +1720,49 @@ const Uo = le(Po), Eo = {
|
|
|
1720
1720
|
]),
|
|
1721
1721
|
_: 2
|
|
1722
1722
|
}, 1032, ["title", "onConfirm"]),
|
|
1723
|
-
S.value && S.value.length > 0 ||
|
|
1723
|
+
S.value && S.value.length > 0 || y !== f.value.length - 1 ? (d(), N(H, {
|
|
1724
1724
|
key: 0,
|
|
1725
1725
|
type: "vertical"
|
|
1726
|
-
})) :
|
|
1726
|
+
})) : V("", !0)
|
|
1727
1727
|
], 64))
|
|
1728
1728
|
], 64)) : c.slot ? J(D.$slots, c.slot, {
|
|
1729
1729
|
key: 1,
|
|
1730
1730
|
item: c,
|
|
1731
|
-
haveMore: S.value && S.value.length > 0 ||
|
|
1732
|
-
}, void 0, !0) : (d(), w(
|
|
1731
|
+
haveMore: S.value && S.value.length > 0 || y !== f.value.length - 1
|
|
1732
|
+
}, void 0, !0) : (d(), w(te, { key: 2 }, [
|
|
1733
1733
|
we((d(), w("a", {
|
|
1734
1734
|
href: "javascript:;",
|
|
1735
1735
|
class: X(["hb-lib-table-main-action", { "is-loading": s(c) }]),
|
|
1736
|
-
onClick: (k) =>
|
|
1736
|
+
onClick: (k) => R(c)
|
|
1737
1737
|
}, [
|
|
1738
1738
|
E(C(c.label) + " ", 1),
|
|
1739
|
-
s(c) ? (d(),
|
|
1739
|
+
s(c) ? (d(), N(v(Mt), {
|
|
1740
1740
|
key: 0,
|
|
1741
1741
|
spin: "",
|
|
1742
1742
|
class: "hb-lib-table-action-loading-icon"
|
|
1743
|
-
})) :
|
|
1743
|
+
})) : V("", !0)
|
|
1744
1744
|
], 10, On)), [
|
|
1745
1745
|
[L, c.permissionsTag || null]
|
|
1746
1746
|
]),
|
|
1747
|
-
S.value && S.value.length > 0 ||
|
|
1747
|
+
S.value && S.value.length > 0 || y !== f.value.length - 1 ? we((d(), N(H, {
|
|
1748
1748
|
key: 0,
|
|
1749
1749
|
type: "vertical"
|
|
1750
1750
|
}, null, 512)), [
|
|
1751
1751
|
[L, c.permissionsTag || null]
|
|
1752
|
-
]) :
|
|
1752
|
+
]) : V("", !0)
|
|
1753
1753
|
], 64))
|
|
1754
1754
|
], 64))), 128)),
|
|
1755
|
-
S.value && S.value.length > 0 ? (d(),
|
|
1755
|
+
S.value && S.value.length > 0 ? (d(), N(v(It), { key: 0 }, {
|
|
1756
1756
|
overlay: b(() => [
|
|
1757
|
-
|
|
1757
|
+
M(v($t), null, {
|
|
1758
1758
|
default: b(() => [
|
|
1759
|
-
(d(!0), w(
|
|
1759
|
+
(d(!0), w(te, null, be(S.value, (c, y) => we((d(), N(v(Ht), { key: y }, {
|
|
1760
1760
|
default: b(() => [
|
|
1761
|
-
c.needConfirm ? (d(), w(
|
|
1761
|
+
c.needConfirm ? (d(), w(te, { key: 0 }, [
|
|
1762
1762
|
c.confirmType === "modal" ? we((d(), w("a", {
|
|
1763
1763
|
key: 0,
|
|
1764
1764
|
href: "javascript:;",
|
|
1765
|
-
onClick: (k) =>
|
|
1765
|
+
onClick: (k) => j(c)
|
|
1766
1766
|
}, [
|
|
1767
1767
|
E(C(c.label), 1)
|
|
1768
1768
|
], 8, Un)), [
|
|
@@ -1770,10 +1770,10 @@ const Uo = le(Po), Eo = {
|
|
|
1770
1770
|
L,
|
|
1771
1771
|
c.permissionsTag || null
|
|
1772
1772
|
]
|
|
1773
|
-
]) : we((d(),
|
|
1773
|
+
]) : we((d(), N(v(at), {
|
|
1774
1774
|
key: 1,
|
|
1775
1775
|
title: c.confirmTitle,
|
|
1776
|
-
onConfirm: (k) =>
|
|
1776
|
+
onConfirm: (k) => R(c)
|
|
1777
1777
|
}, {
|
|
1778
1778
|
default: b(() => [
|
|
1779
1779
|
we((d(), w("a", En, [
|
|
@@ -1798,14 +1798,14 @@ const Uo = le(Po), Eo = {
|
|
|
1798
1798
|
class: X({
|
|
1799
1799
|
"is-loading": s(c)
|
|
1800
1800
|
}),
|
|
1801
|
-
onClick: (k) =>
|
|
1801
|
+
onClick: (k) => R(c)
|
|
1802
1802
|
}, [
|
|
1803
1803
|
E(C(c.label) + " ", 1),
|
|
1804
|
-
s(c) ? (d(),
|
|
1804
|
+
s(c) ? (d(), N(v(Mt), {
|
|
1805
1805
|
key: 0,
|
|
1806
1806
|
spin: "",
|
|
1807
1807
|
class: "hb-lib-table-action-loading-icon"
|
|
1808
|
-
})) :
|
|
1808
|
+
})) : V("", !0)
|
|
1809
1809
|
], 10, Rn)), [
|
|
1810
1810
|
[L, c.permissionsTag || null]
|
|
1811
1811
|
])
|
|
@@ -1821,17 +1821,17 @@ const Uo = le(Po), Eo = {
|
|
|
1821
1821
|
default: b(() => [
|
|
1822
1822
|
m("a", Pn, [
|
|
1823
1823
|
E(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1824
|
-
|
|
1824
|
+
M(v(pt), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1825
1825
|
])
|
|
1826
1826
|
]),
|
|
1827
1827
|
_: 1
|
|
1828
|
-
})) :
|
|
1829
|
-
|
|
1828
|
+
})) : V("", !0),
|
|
1829
|
+
M(v(ct), {
|
|
1830
1830
|
visible: i.value,
|
|
1831
1831
|
title: P.value.title,
|
|
1832
1832
|
"confirm-loading": l.value,
|
|
1833
|
-
onOk:
|
|
1834
|
-
onCancel:
|
|
1833
|
+
onOk: x,
|
|
1834
|
+
onCancel: T
|
|
1835
1835
|
}, {
|
|
1836
1836
|
default: b(() => [
|
|
1837
1837
|
m("p", Nn, C(P.value.content), 1)
|
|
@@ -1841,7 +1841,7 @@ const Uo = le(Po), Eo = {
|
|
|
1841
1841
|
]);
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
1844
|
-
}), Vn = /* @__PURE__ */
|
|
1844
|
+
}), Vn = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-ec0b7ef0"]]), jn = ie(Vn), Bt = (e) => ({ tableWidth: F(() => {
|
|
1845
1845
|
const o = Array.isArray(e) ? e : e.value;
|
|
1846
1846
|
return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, i) => n + i, 0);
|
|
1847
1847
|
}) });
|
|
@@ -1909,52 +1909,52 @@ function Zt(e, t, o) {
|
|
|
1909
1909
|
if (typeof e != "function")
|
|
1910
1910
|
throw new TypeError(pl);
|
|
1911
1911
|
t = Ot(t) || 0, bt(o) && (p = !!o.leading, h = "maxWait" in o, l = h ? bl(Ot(o.maxWait) || 0, t) : l, f = "trailing" in o ? !!o.trailing : f);
|
|
1912
|
-
function S(
|
|
1912
|
+
function S(H) {
|
|
1913
1913
|
var L = n, c = i;
|
|
1914
|
-
return n = i = void 0, s =
|
|
1914
|
+
return n = i = void 0, s = H, r = e.apply(c, L), r;
|
|
1915
1915
|
}
|
|
1916
|
-
function $(
|
|
1917
|
-
return s =
|
|
1916
|
+
function $(H) {
|
|
1917
|
+
return s = H, u = setTimeout(x, t), p ? S(H) : r;
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1920
|
-
var L =
|
|
1921
|
-
return h ? ml(
|
|
1919
|
+
function R(H) {
|
|
1920
|
+
var L = H - a, c = H - s, y = t - L;
|
|
1921
|
+
return h ? ml(y, l - c) : y;
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1924
|
-
var L =
|
|
1923
|
+
function j(H) {
|
|
1924
|
+
var L = H - a, c = H - s;
|
|
1925
1925
|
return a === void 0 || L >= t || L < 0 || h && c >= l;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1928
|
-
var
|
|
1929
|
-
if (
|
|
1930
|
-
return
|
|
1931
|
-
u = setTimeout(
|
|
1927
|
+
function x() {
|
|
1928
|
+
var H = it();
|
|
1929
|
+
if (j(H))
|
|
1930
|
+
return T(H);
|
|
1931
|
+
u = setTimeout(x, R(H));
|
|
1932
1932
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return u = void 0, f && n ? S(
|
|
1933
|
+
function T(H) {
|
|
1934
|
+
return u = void 0, f && n ? S(H) : (n = i = void 0, r);
|
|
1935
1935
|
}
|
|
1936
1936
|
function P() {
|
|
1937
1937
|
u !== void 0 && clearTimeout(u), s = 0, n = a = i = u = void 0;
|
|
1938
1938
|
}
|
|
1939
1939
|
function D() {
|
|
1940
|
-
return u === void 0 ? r :
|
|
1940
|
+
return u === void 0 ? r : T(it());
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1943
|
-
var
|
|
1944
|
-
if (n = arguments, i = this, a =
|
|
1942
|
+
function g() {
|
|
1943
|
+
var H = it(), L = j(H);
|
|
1944
|
+
if (n = arguments, i = this, a = H, L) {
|
|
1945
1945
|
if (u === void 0)
|
|
1946
1946
|
return $(a);
|
|
1947
1947
|
if (h)
|
|
1948
|
-
return clearTimeout(u), u = setTimeout(
|
|
1948
|
+
return clearTimeout(u), u = setTimeout(x, t), S(a);
|
|
1949
1949
|
}
|
|
1950
|
-
return u === void 0 && (u = setTimeout(
|
|
1950
|
+
return u === void 0 && (u = setTimeout(x, t)), r;
|
|
1951
1951
|
}
|
|
1952
|
-
return
|
|
1952
|
+
return g.cancel = P, g.flush = D, g;
|
|
1953
1953
|
}
|
|
1954
1954
|
const hl = {
|
|
1955
1955
|
key: 0,
|
|
1956
1956
|
class: "hb-lib-list-table-act"
|
|
1957
|
-
}, vl = { class: "empty-container" }, gl = { key: 1 }, yl = { key: 2 }, _l = /* @__PURE__ */
|
|
1957
|
+
}, vl = { class: "empty-container" }, gl = { key: 1 }, yl = { key: 2 }, _l = /* @__PURE__ */ oe({
|
|
1958
1958
|
name: "HbLibListTable",
|
|
1959
1959
|
__name: "HbListTable",
|
|
1960
1960
|
props: {
|
|
@@ -1966,28 +1966,28 @@ const hl = {
|
|
|
1966
1966
|
},
|
|
1967
1967
|
emits: ["change", "resizeCol"],
|
|
1968
1968
|
setup(e, { emit: t }) {
|
|
1969
|
-
const o =
|
|
1970
|
-
|
|
1969
|
+
const o = ve("globalCompConfig", {}), n = t, { t: i } = ge(), l = e, r = O([]), u = ve("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = Bt(r), s = O(a.value), p = F(() => l.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1970
|
+
ce(
|
|
1971
1971
|
() => l.columns,
|
|
1972
|
-
(
|
|
1973
|
-
const
|
|
1972
|
+
(x) => {
|
|
1973
|
+
const T = x.filter(
|
|
1974
1974
|
(D) => D != null && D.checked
|
|
1975
1975
|
);
|
|
1976
|
-
r.value =
|
|
1977
|
-
let
|
|
1976
|
+
r.value = T.map((D) => {
|
|
1977
|
+
let g = {
|
|
1978
1978
|
...D,
|
|
1979
1979
|
title: D.title || D.label,
|
|
1980
1980
|
align: D.align || o.listTable?.align || "center"
|
|
1981
1981
|
};
|
|
1982
|
-
|
|
1983
|
-
let
|
|
1984
|
-
if (!
|
|
1985
|
-
|
|
1986
|
-
else if (typeof
|
|
1987
|
-
const L = parseInt(
|
|
1988
|
-
|
|
1982
|
+
g.ellipsis && !g.needTooltip && (g.needTooltip = !0);
|
|
1983
|
+
let H = l.defaultWidth || o.listTable?.defaultColWidth || 150;
|
|
1984
|
+
if (!g.width)
|
|
1985
|
+
g.width = H;
|
|
1986
|
+
else if (typeof g.width == "string") {
|
|
1987
|
+
const L = parseInt(g.width, 10);
|
|
1988
|
+
g.width = isNaN(L) ? H : L;
|
|
1989
1989
|
}
|
|
1990
|
-
return
|
|
1990
|
+
return g.resizable === void 0 && (g.resizable = !0), g;
|
|
1991
1991
|
});
|
|
1992
1992
|
const { tableWidth: P } = Bt(r);
|
|
1993
1993
|
s.value = P.value;
|
|
@@ -1999,29 +1999,29 @@ const hl = {
|
|
|
1999
1999
|
);
|
|
2000
2000
|
const h = Zt(() => {
|
|
2001
2001
|
n("resizeCol", r.value);
|
|
2002
|
-
}, o.listTable?.colSaveTimeOut || 800), f = (
|
|
2003
|
-
if (
|
|
2004
|
-
const P = typeof
|
|
2005
|
-
|
|
2002
|
+
}, o.listTable?.colSaveTimeOut || 800), f = (x, T) => {
|
|
2003
|
+
if (T) {
|
|
2004
|
+
const P = typeof x == "string" ? parseInt(x, 10) : x;
|
|
2005
|
+
T.width = isNaN(P) ? o.listTable?.defaultColWidth || 150 : P, xe(() => {
|
|
2006
2006
|
h();
|
|
2007
2007
|
});
|
|
2008
2008
|
}
|
|
2009
|
-
}, S = (
|
|
2010
|
-
|
|
2011
|
-
}, $ = (
|
|
2012
|
-
return (
|
|
2013
|
-
const P = K("a-empty"), D = K("a-tooltip"),
|
|
2009
|
+
}, S = (x, T, P) => {
|
|
2010
|
+
x?.current && n("change", x, T, P);
|
|
2011
|
+
}, $ = (x, T = "YYYY-MM-DD HH:mm:ss") => x ? ot(x).format(T) : "", R = (x, T) => x && T[x] || "", j = (x, T = o.listTable?.ellipsisNumber || 20) => x ? x.length > T ? `${x.substring(0, T)}...` : x : "";
|
|
2012
|
+
return (x, T) => {
|
|
2013
|
+
const P = K("a-empty"), D = K("a-tooltip"), g = K("HbLibCopy"), H = K("a-tag"), L = K("a-table");
|
|
2014
2014
|
return d(), w("div", {
|
|
2015
2015
|
class: X(["hb-lib-list-table", { "nowrap-table": l.rowHeight }]),
|
|
2016
2016
|
style: ue({
|
|
2017
2017
|
"--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
|
|
2018
2018
|
})
|
|
2019
2019
|
}, [
|
|
2020
|
-
|
|
2021
|
-
J(
|
|
2022
|
-
J(
|
|
2023
|
-
])) :
|
|
2024
|
-
|
|
2020
|
+
x.$slots.tableActLeft ? (d(), w("section", hl, [
|
|
2021
|
+
J(x.$slots, "tableActLeft", {}, void 0, !0),
|
|
2022
|
+
J(x.$slots, "tableActRight", {}, void 0, !0)
|
|
2023
|
+
])) : V("", !0),
|
|
2024
|
+
M(L, de(x.$attrs, {
|
|
2025
2025
|
bordered: "",
|
|
2026
2026
|
columns: r.value,
|
|
2027
2027
|
"table-layout": "fixed",
|
|
@@ -2033,17 +2033,17 @@ const hl = {
|
|
|
2033
2033
|
}), Ne({
|
|
2034
2034
|
emptyText: b(() => [
|
|
2035
2035
|
m("div", vl, [
|
|
2036
|
-
|
|
2036
|
+
M(P, {
|
|
2037
2037
|
description: v(i)("hbLibComp.hbListTable.noData")
|
|
2038
2038
|
}, null, 8, ["description"])
|
|
2039
2039
|
])
|
|
2040
2040
|
]),
|
|
2041
2041
|
_: 2
|
|
2042
2042
|
}, [
|
|
2043
|
-
|
|
2043
|
+
x.$slots.headerCell ? {
|
|
2044
2044
|
name: "headerCell",
|
|
2045
2045
|
fn: b(({ column: c }) => [
|
|
2046
|
-
J(
|
|
2046
|
+
J(x.$slots, "headerCell", {
|
|
2047
2047
|
column: c,
|
|
2048
2048
|
title: c.title
|
|
2049
2049
|
}, () => [
|
|
@@ -2052,125 +2052,125 @@ const hl = {
|
|
|
2052
2052
|
]),
|
|
2053
2053
|
key: "0"
|
|
2054
2054
|
} : void 0,
|
|
2055
|
-
|
|
2055
|
+
x.$slots.bodyCell ? {
|
|
2056
2056
|
name: "bodyCell",
|
|
2057
|
-
fn: b(({ column: c, record:
|
|
2058
|
-
J(
|
|
2057
|
+
fn: b(({ column: c, record: y, index: k, text: U }) => [
|
|
2058
|
+
J(x.$slots, "bodyCell", {
|
|
2059
2059
|
column: c,
|
|
2060
|
-
record:
|
|
2060
|
+
record: y,
|
|
2061
2061
|
index: k,
|
|
2062
2062
|
text: U
|
|
2063
2063
|
}, void 0, !0),
|
|
2064
|
-
c && c.needTooltip && !c.needCopy ? (d(),
|
|
2064
|
+
c && c.needTooltip && !c.needCopy ? (d(), N(D, {
|
|
2065
2065
|
key: 0,
|
|
2066
2066
|
placement: e.tooltipPlacement
|
|
2067
2067
|
}, {
|
|
2068
2068
|
title: b(() => [
|
|
2069
|
-
E(C(
|
|
2069
|
+
E(C(y[c.dataIndex]), 1)
|
|
2070
2070
|
]),
|
|
2071
2071
|
default: b(() => [
|
|
2072
|
-
E(" " + C(
|
|
2072
|
+
E(" " + C(y[c.dataIndex]), 1)
|
|
2073
2073
|
]),
|
|
2074
2074
|
_: 2
|
|
2075
2075
|
}, 1032, ["placement"])) : c && c.needCopy && !c.needTooltip ? (d(), w("div", gl, [
|
|
2076
|
-
E(C(
|
|
2077
|
-
|
|
2078
|
-
"cp-text":
|
|
2076
|
+
E(C(y[c.dataIndex]) + " ", 1),
|
|
2077
|
+
M(g, {
|
|
2078
|
+
"cp-text": y[c.dataIndex],
|
|
2079
2079
|
style: { position: "relative" }
|
|
2080
2080
|
}, null, 8, ["cp-text"])
|
|
2081
|
-
])) :
|
|
2081
|
+
])) : V("", !0),
|
|
2082
2082
|
c && c.needTooltip && c.needCopy ? (d(), w("div", yl, [
|
|
2083
|
-
|
|
2083
|
+
M(D, { placement: e.tooltipPlacement }, {
|
|
2084
2084
|
title: b(() => [
|
|
2085
|
-
E(C(
|
|
2085
|
+
E(C(y[c.dataIndex]), 1)
|
|
2086
2086
|
]),
|
|
2087
2087
|
default: b(() => [
|
|
2088
|
-
E(" " + C(
|
|
2089
|
-
|
|
2088
|
+
E(" " + C(j(
|
|
2089
|
+
y[c.dataIndex],
|
|
2090
2090
|
c.strLen
|
|
2091
2091
|
)), 1)
|
|
2092
2092
|
]),
|
|
2093
2093
|
_: 2
|
|
2094
2094
|
}, 1032, ["placement"]),
|
|
2095
|
-
|
|
2096
|
-
"cp-text":
|
|
2095
|
+
M(g, {
|
|
2096
|
+
"cp-text": y[c.dataIndex],
|
|
2097
2097
|
style: { position: "relative" }
|
|
2098
2098
|
}, null, 8, ["cp-text"])
|
|
2099
|
-
])) : c && c.needFormat ? (d(), w(
|
|
2100
|
-
E(C($(
|
|
2101
|
-
], 64)) : c && c.tags ? (d(), w(
|
|
2102
|
-
|
|
2103
|
-
|
|
2099
|
+
])) : c && c.needFormat ? (d(), w(te, { key: 3 }, [
|
|
2100
|
+
E(C($(y[c.dataIndex], c.format)), 1)
|
|
2101
|
+
], 64)) : c && c.tags ? (d(), w(te, { key: 4 }, [
|
|
2102
|
+
R(
|
|
2103
|
+
y[c.dataIndex],
|
|
2104
2104
|
c.tags
|
|
2105
|
-
) ? (d(),
|
|
2105
|
+
) ? (d(), N(H, {
|
|
2106
2106
|
key: 0,
|
|
2107
|
-
color:
|
|
2108
|
-
|
|
2107
|
+
color: R(
|
|
2108
|
+
y[c.dataIndex],
|
|
2109
2109
|
c.tags
|
|
2110
2110
|
)
|
|
2111
2111
|
}, {
|
|
2112
2112
|
default: b(() => [
|
|
2113
|
-
E(C(
|
|
2113
|
+
E(C(y[c.dataIndex]), 1)
|
|
2114
2114
|
]),
|
|
2115
2115
|
_: 2
|
|
2116
|
-
}, 1032, ["color"])) :
|
|
2117
|
-
], 64)) :
|
|
2116
|
+
}, 1032, ["color"])) : V("", !0)
|
|
2117
|
+
], 64)) : V("", !0)
|
|
2118
2118
|
]),
|
|
2119
2119
|
key: "1"
|
|
2120
2120
|
} : void 0,
|
|
2121
|
-
|
|
2121
|
+
x.$slots.expandedRowRender ? {
|
|
2122
2122
|
name: "expandedRowRender",
|
|
2123
|
-
fn: b(({ record: c, index:
|
|
2124
|
-
J(
|
|
2123
|
+
fn: b(({ record: c, index: y }) => [
|
|
2124
|
+
J(x.$slots, "expandedRowRender", {
|
|
2125
2125
|
record: c,
|
|
2126
|
-
index:
|
|
2126
|
+
index: y
|
|
2127
2127
|
}, void 0, !0)
|
|
2128
2128
|
]),
|
|
2129
2129
|
key: "2"
|
|
2130
2130
|
} : void 0,
|
|
2131
|
-
|
|
2131
|
+
x.$slots.customFilterDropdown ? {
|
|
2132
2132
|
name: "customFilterDropdown",
|
|
2133
2133
|
fn: b(({ column: c }) => [
|
|
2134
|
-
J(
|
|
2134
|
+
J(x.$slots, "customFilterDropdown", { column: c }, void 0, !0)
|
|
2135
2135
|
]),
|
|
2136
2136
|
key: "3"
|
|
2137
2137
|
} : void 0,
|
|
2138
|
-
|
|
2138
|
+
x.$slots.customFilterIcon ? {
|
|
2139
2139
|
name: "customFilterIcon",
|
|
2140
2140
|
fn: b(({ column: c }) => [
|
|
2141
|
-
J(
|
|
2141
|
+
J(x.$slots, "customFilterIcon", { column: c }, void 0, !0)
|
|
2142
2142
|
]),
|
|
2143
2143
|
key: "4"
|
|
2144
2144
|
} : void 0,
|
|
2145
|
-
|
|
2145
|
+
x.$slots.expandIcon ? {
|
|
2146
2146
|
name: "expandIcon",
|
|
2147
|
-
fn: b(({ expanded: c, record:
|
|
2148
|
-
J(
|
|
2147
|
+
fn: b(({ expanded: c, record: y, index: k }) => [
|
|
2148
|
+
J(x.$slots, "expandIcon", {
|
|
2149
2149
|
expanded: c,
|
|
2150
|
-
record:
|
|
2150
|
+
record: y,
|
|
2151
2151
|
index: k
|
|
2152
2152
|
}, void 0, !0)
|
|
2153
2153
|
]),
|
|
2154
2154
|
key: "5"
|
|
2155
2155
|
} : void 0,
|
|
2156
|
-
|
|
2156
|
+
x.$slots.footer ? {
|
|
2157
2157
|
name: "footer",
|
|
2158
2158
|
fn: b(() => [
|
|
2159
|
-
J(
|
|
2159
|
+
J(x.$slots, "footer", {}, void 0, !0)
|
|
2160
2160
|
]),
|
|
2161
2161
|
key: "6"
|
|
2162
2162
|
} : void 0,
|
|
2163
|
-
|
|
2163
|
+
x.$slots.summary ? {
|
|
2164
2164
|
name: "summary",
|
|
2165
2165
|
fn: b(() => [
|
|
2166
|
-
J(
|
|
2166
|
+
J(x.$slots, "summary", {}, void 0, !0)
|
|
2167
2167
|
]),
|
|
2168
2168
|
key: "7"
|
|
2169
2169
|
} : void 0,
|
|
2170
|
-
|
|
2170
|
+
x.$slots.title ? {
|
|
2171
2171
|
name: "title",
|
|
2172
2172
|
fn: b(() => [
|
|
2173
|
-
J(
|
|
2173
|
+
J(x.$slots, "title", {}, void 0, !0)
|
|
2174
2174
|
]),
|
|
2175
2175
|
key: "8"
|
|
2176
2176
|
} : void 0
|
|
@@ -2178,7 +2178,7 @@ const hl = {
|
|
|
2178
2178
|
], 6);
|
|
2179
2179
|
};
|
|
2180
2180
|
}
|
|
2181
|
-
}), Ll = /* @__PURE__ */
|
|
2181
|
+
}), Ll = /* @__PURE__ */ se(_l, [["__scopeId", "data-v-66578d50"]]), Cl = ie(Ll), wl = { class: "hb-lib-table-setting-box" }, kl = {
|
|
2182
2182
|
key: 0,
|
|
2183
2183
|
class: "hb-lib-table-drag-item"
|
|
2184
2184
|
}, Sl = {
|
|
@@ -2187,7 +2187,7 @@ const hl = {
|
|
|
2187
2187
|
}, xl = ["onClick"], Tl = ["onClick"], Fl = { class: "hb-lib-table-set-btn-group" }, Hl = {
|
|
2188
2188
|
class: "select-all-container",
|
|
2189
2189
|
style: { "margin-right": "10px" }
|
|
2190
|
-
}, $l = /* @__PURE__ */
|
|
2190
|
+
}, $l = /* @__PURE__ */ oe({
|
|
2191
2191
|
name: "HbLibTableColumnSet",
|
|
2192
2192
|
__name: "HbTableColumnSet",
|
|
2193
2193
|
props: {
|
|
@@ -2220,21 +2220,21 @@ const hl = {
|
|
|
2220
2220
|
},
|
|
2221
2221
|
emits: ["on-get-columns"],
|
|
2222
2222
|
setup(e, { emit: t }) {
|
|
2223
|
-
const o = t, { t: n } =
|
|
2223
|
+
const o = t, { t: n } = ge(), i = e, l = O([]), r = F(() => a.value.filter((c) => c.checked));
|
|
2224
2224
|
O([]);
|
|
2225
|
-
const u = O(!1), a = O([]), s = O(null), p =
|
|
2225
|
+
const u = O(!1), a = O([]), s = O(null), p = F(() => r.value.length > 0 && r.value.length === l.value.length), h = F(() => r.value.length > 0 && r.value.length < l.value.length), f = (c) => {
|
|
2226
2226
|
s.value = c.oldIndex;
|
|
2227
2227
|
}, S = (c) => {
|
|
2228
|
-
const
|
|
2228
|
+
const y = c.newIndex;
|
|
2229
2229
|
if (l.value.some(
|
|
2230
2230
|
(U) => U.fixed === "left" || U.fixed === "right" || U.fixed === !0
|
|
2231
2231
|
)) {
|
|
2232
2232
|
const U = l.value.filter(
|
|
2233
|
-
(
|
|
2234
|
-
).length,
|
|
2235
|
-
if ((U > 0 &&
|
|
2236
|
-
const
|
|
2237
|
-
a.value.splice(s.value, 0,
|
|
2233
|
+
(_) => _.fixed === "left"
|
|
2234
|
+
).length, Y = l.value.length - l.value.filter((_) => _.fixed === "right").length;
|
|
2235
|
+
if ((U > 0 && y < U || Y < l.value.length && y >= Y) && (Me.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), s.value !== null)) {
|
|
2236
|
+
const _ = a.value.splice(y, 1)[0];
|
|
2237
|
+
a.value.splice(s.value, 0, _);
|
|
2238
2238
|
}
|
|
2239
2239
|
}
|
|
2240
2240
|
s.value = null;
|
|
@@ -2242,64 +2242,64 @@ const hl = {
|
|
|
2242
2242
|
c.target.checked ? a.value.forEach((k) => k.checked = !0) : a.value.forEach((k) => {
|
|
2243
2243
|
k.dataIndex !== "action" && k.dataIndex !== "actions" && (k.checked = !1);
|
|
2244
2244
|
});
|
|
2245
|
-
},
|
|
2245
|
+
}, R = (c) => {
|
|
2246
2246
|
if (c.title && c.title.tag)
|
|
2247
|
-
return
|
|
2247
|
+
return g(c.title);
|
|
2248
2248
|
if (typeof c.title == "function") {
|
|
2249
|
-
let
|
|
2250
|
-
return typeof
|
|
2249
|
+
let y = c.title();
|
|
2250
|
+
return typeof y == "string" ? y : c.titleText || c.title2;
|
|
2251
2251
|
}
|
|
2252
2252
|
return c.title || c.title2;
|
|
2253
|
-
},
|
|
2254
|
-
...
|
|
2255
|
-
label:
|
|
2256
|
-
value:
|
|
2257
|
-
checked:
|
|
2258
|
-
})),
|
|
2259
|
-
l.value =
|
|
2253
|
+
}, j = (c) => c.map((y) => ({
|
|
2254
|
+
...y,
|
|
2255
|
+
label: R(y),
|
|
2256
|
+
value: y.dataIndex,
|
|
2257
|
+
checked: y.checked || y.checked === void 0
|
|
2258
|
+
})), x = () => {
|
|
2259
|
+
l.value = j(i.localColumns), a.value = [...l.value];
|
|
2260
2260
|
let c = [];
|
|
2261
|
-
i.tableColumns.forEach(function(
|
|
2262
|
-
c.push(
|
|
2261
|
+
i.tableColumns.forEach(function(y) {
|
|
2262
|
+
c.push(y.dataIndex);
|
|
2263
2263
|
});
|
|
2264
|
-
},
|
|
2265
|
-
|
|
2264
|
+
}, T = (c, y) => {
|
|
2265
|
+
y ? c.checked = !0 : c.checked = !1;
|
|
2266
2266
|
}, P = () => {
|
|
2267
2267
|
l.value = [...a.value], o("on-get-columns", l.value), u.value = !1;
|
|
2268
2268
|
}, D = () => {
|
|
2269
|
-
l.value =
|
|
2269
|
+
l.value = j(i.tableColumns), a.value = [...l.value];
|
|
2270
2270
|
let c = [];
|
|
2271
|
-
i.tableColumns.forEach(function(
|
|
2272
|
-
c.push(
|
|
2271
|
+
i.tableColumns.forEach(function(y) {
|
|
2272
|
+
c.push(y.dataIndex);
|
|
2273
2273
|
});
|
|
2274
|
-
},
|
|
2274
|
+
}, g = (c) => c.children[0].text, H = (c) => {
|
|
2275
2275
|
delete c.fixed;
|
|
2276
|
-
const
|
|
2276
|
+
const y = a.value.findIndex(
|
|
2277
2277
|
(k) => k.value === c.value
|
|
2278
2278
|
);
|
|
2279
|
-
if (
|
|
2279
|
+
if (y !== -1) {
|
|
2280
2280
|
let k = -1;
|
|
2281
2281
|
for (let U = 0; U < a.value.length; U++)
|
|
2282
2282
|
a.value[U].fixed === "left" && (k = U);
|
|
2283
|
-
if (k !== -1 &&
|
|
2284
|
-
const U = [...a.value], [
|
|
2285
|
-
U.splice(k + 1, 0,
|
|
2283
|
+
if (k !== -1 && y !== k + 1) {
|
|
2284
|
+
const U = [...a.value], [Y] = U.splice(y, 1);
|
|
2285
|
+
U.splice(k + 1, 0, Y), a.value = U;
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
2288
2288
|
}, L = (c) => {
|
|
2289
|
-
const
|
|
2289
|
+
const y = a.value.findIndex(
|
|
2290
2290
|
(k) => k.value === c.value
|
|
2291
2291
|
);
|
|
2292
|
-
if (
|
|
2292
|
+
if (y !== -1) {
|
|
2293
2293
|
let k = -1;
|
|
2294
|
-
for (let
|
|
2295
|
-
a.value[
|
|
2296
|
-
const U = [...a.value], [
|
|
2297
|
-
|
|
2298
|
-
const
|
|
2299
|
-
U.splice(
|
|
2294
|
+
for (let I = 0; I < a.value.length; I++)
|
|
2295
|
+
a.value[I].fixed === "left" && (k = I);
|
|
2296
|
+
const U = [...a.value], [Y] = U.splice(y, 1);
|
|
2297
|
+
Y.fixed = "left";
|
|
2298
|
+
const _ = k === -1 ? 0 : k + 1;
|
|
2299
|
+
U.splice(_, 0, Y), a.value = U;
|
|
2300
2300
|
}
|
|
2301
2301
|
};
|
|
2302
|
-
return
|
|
2302
|
+
return ce(
|
|
2303
2303
|
() => i.tableColumns,
|
|
2304
2304
|
() => {
|
|
2305
2305
|
D();
|
|
@@ -2308,21 +2308,21 @@ const hl = {
|
|
|
2308
2308
|
immediate: !0,
|
|
2309
2309
|
deep: !0
|
|
2310
2310
|
}
|
|
2311
|
-
), (c,
|
|
2311
|
+
), (c, y) => {
|
|
2312
2312
|
const k = K("a-tooltip"), U = K("a-button");
|
|
2313
2313
|
return d(), w("div", wl, [
|
|
2314
|
-
|
|
2314
|
+
M(v(yo), {
|
|
2315
2315
|
visible: u.value,
|
|
2316
|
-
"onUpdate:visible":
|
|
2316
|
+
"onUpdate:visible": y[1] || (y[1] = (Y) => u.value = Y),
|
|
2317
2317
|
title: v(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2318
2318
|
trigger: "click",
|
|
2319
2319
|
placement: "leftTop",
|
|
2320
2320
|
"overlay-class-name": "column_setting_popover"
|
|
2321
2321
|
}, {
|
|
2322
2322
|
content: b(() => [
|
|
2323
|
-
|
|
2323
|
+
M(v(Je), {
|
|
2324
2324
|
modelValue: a.value,
|
|
2325
|
-
"onUpdate:modelValue":
|
|
2325
|
+
"onUpdate:modelValue": y[0] || (y[0] = (Y) => a.value = Y),
|
|
2326
2326
|
"item-key": "value",
|
|
2327
2327
|
class: "hb-lib-table-set-drag",
|
|
2328
2328
|
"ghost-class": "ghost",
|
|
@@ -2331,27 +2331,27 @@ const hl = {
|
|
|
2331
2331
|
onStart: f,
|
|
2332
2332
|
onEnd: S
|
|
2333
2333
|
}, {
|
|
2334
|
-
item: b(({ element:
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
checked:
|
|
2338
|
-
onChange: (
|
|
2339
|
-
|
|
2340
|
-
|
|
2334
|
+
item: b(({ element: Y }) => [
|
|
2335
|
+
Y.fixed !== "right" ? (d(), w("div", kl, [
|
|
2336
|
+
M(v(Qe), {
|
|
2337
|
+
checked: Y.checked,
|
|
2338
|
+
onChange: (_) => T(
|
|
2339
|
+
Y,
|
|
2340
|
+
_.target.checked
|
|
2341
2341
|
)
|
|
2342
2342
|
}, {
|
|
2343
2343
|
default: b(() => [
|
|
2344
|
-
E(C(
|
|
2344
|
+
E(C(Y.label), 1)
|
|
2345
2345
|
]),
|
|
2346
2346
|
_: 2
|
|
2347
2347
|
}, 1032, ["checked", "onChange"]),
|
|
2348
|
-
|
|
2348
|
+
Y.checked ? (d(), w("section", Sl, [
|
|
2349
2349
|
m("span", {
|
|
2350
2350
|
class: X(
|
|
2351
|
-
|
|
2351
|
+
Y.fixed ? "drag-hide" : "drag-handle"
|
|
2352
2352
|
)
|
|
2353
2353
|
}, " ⋮⋮ ", 2),
|
|
2354
|
-
|
|
2354
|
+
Y.fixed ? (d(), N(k, { key: 0 }, {
|
|
2355
2355
|
title: b(() => [
|
|
2356
2356
|
E(C(v(n)(
|
|
2357
2357
|
"hbLibComp.hbLibListTableColumsSet.cancelFix"
|
|
@@ -2360,8 +2360,8 @@ const hl = {
|
|
|
2360
2360
|
default: b(() => [
|
|
2361
2361
|
m("span", {
|
|
2362
2362
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2363
|
-
onClick: (
|
|
2364
|
-
}, [...
|
|
2363
|
+
onClick: (_) => H(Y)
|
|
2364
|
+
}, [...y[2] || (y[2] = [
|
|
2365
2365
|
m("svg", {
|
|
2366
2366
|
t: "1759048615600",
|
|
2367
2367
|
class: "icon",
|
|
@@ -2381,8 +2381,8 @@ const hl = {
|
|
|
2381
2381
|
])], 8, xl)
|
|
2382
2382
|
]),
|
|
2383
2383
|
_: 2
|
|
2384
|
-
}, 1024)) :
|
|
2385
|
-
|
|
2384
|
+
}, 1024)) : V("", !0),
|
|
2385
|
+
Y.fixed ? V("", !0) : (d(), N(k, { key: 1 }, {
|
|
2386
2386
|
title: b(() => [
|
|
2387
2387
|
E(C(v(n)(
|
|
2388
2388
|
"hbLibComp.hbLibListTableColumsSet.fix"
|
|
@@ -2391,8 +2391,8 @@ const hl = {
|
|
|
2391
2391
|
default: b(() => [
|
|
2392
2392
|
m("span", {
|
|
2393
2393
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2394
|
-
onClick: (
|
|
2395
|
-
}, [...
|
|
2394
|
+
onClick: (_) => L(Y)
|
|
2395
|
+
}, [...y[3] || (y[3] = [
|
|
2396
2396
|
m("svg", {
|
|
2397
2397
|
t: "1759048735643",
|
|
2398
2398
|
class: "icon",
|
|
@@ -2413,14 +2413,14 @@ const hl = {
|
|
|
2413
2413
|
]),
|
|
2414
2414
|
_: 2
|
|
2415
2415
|
}, 1024))
|
|
2416
|
-
])) :
|
|
2417
|
-
])) :
|
|
2416
|
+
])) : V("", !0)
|
|
2417
|
+
])) : V("", !0)
|
|
2418
2418
|
]),
|
|
2419
2419
|
_: 1
|
|
2420
2420
|
}, 8, ["modelValue"]),
|
|
2421
2421
|
m("div", Fl, [
|
|
2422
2422
|
m("div", Hl, [
|
|
2423
|
-
|
|
2423
|
+
M(v(Qe), {
|
|
2424
2424
|
checked: p.value,
|
|
2425
2425
|
indeterminate: h.value,
|
|
2426
2426
|
onChange: $
|
|
@@ -2431,17 +2431,17 @@ const hl = {
|
|
|
2431
2431
|
_: 1
|
|
2432
2432
|
}, 8, ["checked", "indeterminate"])
|
|
2433
2433
|
]),
|
|
2434
|
-
i.localColumns.length ? (d(),
|
|
2434
|
+
i.localColumns.length ? (d(), N(U, {
|
|
2435
2435
|
key: 0,
|
|
2436
2436
|
style: { "margin-right": "6px" },
|
|
2437
|
-
onClick:
|
|
2437
|
+
onClick: x
|
|
2438
2438
|
}, {
|
|
2439
2439
|
default: b(() => [
|
|
2440
2440
|
E(C(v(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2441
2441
|
]),
|
|
2442
2442
|
_: 1
|
|
2443
|
-
})) :
|
|
2444
|
-
|
|
2443
|
+
})) : V("", !0),
|
|
2444
|
+
M(U, {
|
|
2445
2445
|
type: "primary",
|
|
2446
2446
|
onClick: P
|
|
2447
2447
|
}, {
|
|
@@ -2453,11 +2453,11 @@ const hl = {
|
|
|
2453
2453
|
])
|
|
2454
2454
|
]),
|
|
2455
2455
|
default: b(() => [
|
|
2456
|
-
|
|
2456
|
+
M(k, {
|
|
2457
2457
|
title: v(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2458
2458
|
placement: "leftTop"
|
|
2459
2459
|
}, {
|
|
2460
|
-
default: b(() => [...
|
|
2460
|
+
default: b(() => [...y[4] || (y[4] = [
|
|
2461
2461
|
m("span", { class: "hb-lib-table-col-set" }, [
|
|
2462
2462
|
m("svg", {
|
|
2463
2463
|
t: "1759041858618",
|
|
@@ -2490,7 +2490,7 @@ const hl = {
|
|
|
2490
2490
|
]);
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
|
-
}), Il = /* @__PURE__ */
|
|
2493
|
+
}), Il = /* @__PURE__ */ se($l, [["__scopeId", "data-v-3b97f848"]]), Ml = ie(Il), Bl = /* @__PURE__ */ oe({
|
|
2494
2494
|
name: "HbLibFormTooltipSelect",
|
|
2495
2495
|
inheritAttrs: !1,
|
|
2496
2496
|
__name: "HbTooltipSelect",
|
|
@@ -2508,13 +2508,13 @@ const hl = {
|
|
|
2508
2508
|
}),
|
|
2509
2509
|
emits: ["update:value"],
|
|
2510
2510
|
setup(e, { expose: t }) {
|
|
2511
|
-
const o = e, n = uo(), i =
|
|
2512
|
-
const $ = n,
|
|
2511
|
+
const o = e, n = uo(), i = F(() => {
|
|
2512
|
+
const $ = n, R = $.dropdownClassName;
|
|
2513
2513
|
return {
|
|
2514
2514
|
...$,
|
|
2515
|
-
dropdownClassName:
|
|
2515
|
+
dropdownClassName: R ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2516
2516
|
};
|
|
2517
|
-
}), l = O(), r = jt(e, "value"), u =
|
|
2517
|
+
}), l = O(), r = jt(e, "value"), u = F(() => o.options ?? []), a = F(() => ({
|
|
2518
2518
|
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2519
2519
|
})), s = ($) => $.tooltip ?? $.label, p = ($) => $.key ?? $.label, h = ($) => !!(o.enableTooltip && s($));
|
|
2520
2520
|
return t({
|
|
@@ -2525,37 +2525,37 @@ const hl = {
|
|
|
2525
2525
|
l.value?.blur?.();
|
|
2526
2526
|
},
|
|
2527
2527
|
selectRef: l
|
|
2528
|
-
}), ($,
|
|
2528
|
+
}), ($, R) => (d(), N(v(ut), de({
|
|
2529
2529
|
ref_key: "selectRef",
|
|
2530
2530
|
ref: l
|
|
2531
2531
|
}, i.value, {
|
|
2532
2532
|
value: r.value,
|
|
2533
|
-
"onUpdate:value":
|
|
2533
|
+
"onUpdate:value": R[0] || (R[0] = (j) => r.value = j),
|
|
2534
2534
|
class: "hb_lib_form_tooltip_select"
|
|
2535
2535
|
}), {
|
|
2536
2536
|
default: b(() => [
|
|
2537
|
-
$.$slots.default ? J($.$slots, "default", { key: 0 }, void 0, !0) : (d(!0), w(
|
|
2538
|
-
key: p(
|
|
2539
|
-
value:
|
|
2540
|
-
disabled:
|
|
2541
|
-
}, { ref_for: !0 },
|
|
2537
|
+
$.$slots.default ? J($.$slots, "default", { key: 0 }, void 0, !0) : (d(!0), w(te, { key: 1 }, be(u.value, (j) => (d(), N(v(ft), de({
|
|
2538
|
+
key: p(j),
|
|
2539
|
+
value: j.value,
|
|
2540
|
+
disabled: j.disabled
|
|
2541
|
+
}, { ref_for: !0 }, j.optionProps), {
|
|
2542
2542
|
default: b(() => [
|
|
2543
|
-
h(
|
|
2543
|
+
h(j) ? (d(), N(v(Xe), {
|
|
2544
2544
|
key: 0,
|
|
2545
|
-
title: s(
|
|
2545
|
+
title: s(j),
|
|
2546
2546
|
placement: o.tooltipPlacement,
|
|
2547
2547
|
"overlay-style": a.value
|
|
2548
2548
|
}, {
|
|
2549
2549
|
default: b(() => [
|
|
2550
2550
|
m("span", {
|
|
2551
2551
|
class: X(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2552
|
-
}, C(
|
|
2552
|
+
}, C(j.label), 3)
|
|
2553
2553
|
]),
|
|
2554
2554
|
_: 2
|
|
2555
2555
|
}, 1032, ["title", "placement", "overlay-style"])) : (d(), w("span", {
|
|
2556
2556
|
key: 1,
|
|
2557
2557
|
class: X(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2558
|
-
}, C(
|
|
2558
|
+
}, C(j.label), 3))
|
|
2559
2559
|
]),
|
|
2560
2560
|
_: 2
|
|
2561
2561
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2563,10 +2563,10 @@ const hl = {
|
|
|
2563
2563
|
_: 3
|
|
2564
2564
|
}, 16, ["value"]));
|
|
2565
2565
|
}
|
|
2566
|
-
}), Dl = /* @__PURE__ */
|
|
2566
|
+
}), Dl = /* @__PURE__ */ se(Bl, [["__scopeId", "data-v-13285691"]]), Al = ie(Dl), Ol = { class: "ant-upload-drag-icon" }, Pl = { class: "ant-upload-text" }, Ul = { style: { color: "#ff5000" } }, El = { class: "ant-upload-hint" }, Rl = {
|
|
2567
2567
|
key: 0,
|
|
2568
2568
|
class: "hb_import_btn"
|
|
2569
|
-
}, Nl = ["href"], zl = /* @__PURE__ */
|
|
2569
|
+
}, Nl = ["href"], zl = /* @__PURE__ */ oe({
|
|
2570
2570
|
name: "HbLibImportFile",
|
|
2571
2571
|
__name: "HbImportFile",
|
|
2572
2572
|
props: {
|
|
@@ -2582,7 +2582,7 @@ const hl = {
|
|
|
2582
2582
|
beforeSubmit: {}
|
|
2583
2583
|
},
|
|
2584
2584
|
setup(e, { expose: t }) {
|
|
2585
|
-
const { t: o } =
|
|
2585
|
+
const { t: o } = ge(), n = O(), i = e, l = O(!1), r = Ve({
|
|
2586
2586
|
fileList: [],
|
|
2587
2587
|
visible: !1
|
|
2588
2588
|
}), u = (f) => {
|
|
@@ -2611,9 +2611,9 @@ const hl = {
|
|
|
2611
2611
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2612
2612
|
confirmLoading: l
|
|
2613
2613
|
}), (f, S) => {
|
|
2614
|
-
const $ = K("a-upload-dragger"),
|
|
2615
|
-
return d(), w(
|
|
2616
|
-
|
|
2614
|
+
const $ = K("a-upload-dragger"), R = K("a-form-item"), j = K("a-form"), x = K("a-modal"), T = K("a-button");
|
|
2615
|
+
return d(), w(te, null, [
|
|
2616
|
+
M(x, de({
|
|
2617
2617
|
visible: r.visible,
|
|
2618
2618
|
"onUpdate:visible": S[0] || (S[0] = (P) => r.visible = P),
|
|
2619
2619
|
title: i.title,
|
|
@@ -2624,19 +2624,19 @@ const hl = {
|
|
|
2624
2624
|
onOk: p
|
|
2625
2625
|
}), {
|
|
2626
2626
|
default: b(() => [
|
|
2627
|
-
|
|
2627
|
+
M(j, {
|
|
2628
2628
|
ref_key: "modalFormRef",
|
|
2629
2629
|
ref: n,
|
|
2630
2630
|
model: r
|
|
2631
2631
|
}, {
|
|
2632
2632
|
default: b(() => [
|
|
2633
|
-
|
|
2633
|
+
M(R, {
|
|
2634
2634
|
name: "fileList",
|
|
2635
2635
|
label: v(o)("hbLibComp.HbImportFile.fileLabel"),
|
|
2636
2636
|
rules: [{ required: i.isRequired, message: v(o)("hbLibComp.HbImportFile.clickUp") }]
|
|
2637
2637
|
}, {
|
|
2638
2638
|
default: b(() => [
|
|
2639
|
-
|
|
2639
|
+
M($, {
|
|
2640
2640
|
"max-count": i.maxCount,
|
|
2641
2641
|
multiple: i.multiple,
|
|
2642
2642
|
accept: i.acceptFile,
|
|
@@ -2647,7 +2647,7 @@ const hl = {
|
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: b(() => [
|
|
2649
2649
|
m("p", Ol, [
|
|
2650
|
-
|
|
2650
|
+
M(v(xo), { style: { "font-size": "37px" } })
|
|
2651
2651
|
]),
|
|
2652
2652
|
m("p", Pl, [
|
|
2653
2653
|
E(C(v(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
@@ -2668,12 +2668,12 @@ const hl = {
|
|
|
2668
2668
|
download: "Import_number-template.xlsx",
|
|
2669
2669
|
href: i.templateUrl
|
|
2670
2670
|
}, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, Nl)
|
|
2671
|
-
])) :
|
|
2671
|
+
])) : V("", !0)
|
|
2672
2672
|
]),
|
|
2673
2673
|
_: 1
|
|
2674
2674
|
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2675
2675
|
J(f.$slots, "btn", {}, () => [
|
|
2676
|
-
|
|
2676
|
+
M(T, {
|
|
2677
2677
|
type: "primary",
|
|
2678
2678
|
onClick: h
|
|
2679
2679
|
}, {
|
|
@@ -2686,7 +2686,7 @@ const hl = {
|
|
|
2686
2686
|
], 64);
|
|
2687
2687
|
};
|
|
2688
2688
|
}
|
|
2689
|
-
}), Vl = /* @__PURE__ */
|
|
2689
|
+
}), Vl = /* @__PURE__ */ se(zl, [["__scopeId", "data-v-a11cda0f"]]), jl = ie(Vl), Wl = { class: "hb_lib_log_modal_content" }, ql = { class: "log_remark" }, Yl = /* @__PURE__ */ oe({
|
|
2690
2690
|
name: "HbLibLogModal",
|
|
2691
2691
|
__name: "HbLogModal",
|
|
2692
2692
|
props: {
|
|
@@ -2708,7 +2708,7 @@ const hl = {
|
|
|
2708
2708
|
},
|
|
2709
2709
|
emits: ["update:visible"],
|
|
2710
2710
|
setup(e, { expose: t, emit: o }) {
|
|
2711
|
-
const { t: n } =
|
|
2711
|
+
const { t: n } = ge(), i = fo(), l = e, r = [
|
|
2712
2712
|
{
|
|
2713
2713
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
2714
2714
|
dataIndex: "userName",
|
|
@@ -2720,9 +2720,9 @@ const hl = {
|
|
|
2720
2720
|
width: "25%"
|
|
2721
2721
|
},
|
|
2722
2722
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2723
|
-
], u =
|
|
2723
|
+
], u = F(() => l.columns || r), a = F(
|
|
2724
2724
|
() => l.title || n("hbLibComp.HbLogModal.operateLogs")
|
|
2725
|
-
), s =
|
|
2725
|
+
), s = F(() => !!i.title), p = O(!1), h = Ve({
|
|
2726
2726
|
list: [],
|
|
2727
2727
|
pagination: {
|
|
2728
2728
|
current: 1,
|
|
@@ -2730,16 +2730,16 @@ const hl = {
|
|
|
2730
2730
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2731
2731
|
showQuickJumper: !0,
|
|
2732
2732
|
showSizeChanger: !0,
|
|
2733
|
-
showTotal: (
|
|
2733
|
+
showTotal: (T, P) => P[0] + "-" + P[1] + " 总共" + T + "页",
|
|
2734
2734
|
total: 0
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
|
-
|
|
2737
|
+
ce(
|
|
2738
2738
|
() => l.pagination,
|
|
2739
|
-
(
|
|
2740
|
-
|
|
2739
|
+
(T) => {
|
|
2740
|
+
T && (h.pagination = {
|
|
2741
2741
|
...h.pagination,
|
|
2742
|
-
...
|
|
2742
|
+
...T
|
|
2743
2743
|
});
|
|
2744
2744
|
},
|
|
2745
2745
|
{
|
|
@@ -2748,35 +2748,35 @@ const hl = {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
);
|
|
2750
2750
|
const f = () => {
|
|
2751
|
-
const
|
|
2751
|
+
const T = {
|
|
2752
2752
|
pageIndex: h.pagination.current,
|
|
2753
2753
|
pageSize: h.pagination.pageSize,
|
|
2754
2754
|
query: l.params
|
|
2755
2755
|
};
|
|
2756
|
-
l.getLogData && (p.value = !0, l.getLogData(
|
|
2756
|
+
l.getLogData && (p.value = !0, l.getLogData(T).then((P) => {
|
|
2757
2757
|
Number(P.code) == 200 ? (h.pagination.total = Number(P.data.total), h.list = P.data[l.dataStr] || []) : Me.error(P.message);
|
|
2758
2758
|
}).finally(() => {
|
|
2759
2759
|
p.value = !1;
|
|
2760
2760
|
}));
|
|
2761
|
-
}, S = (
|
|
2762
|
-
h.pagination.current =
|
|
2761
|
+
}, S = (T) => {
|
|
2762
|
+
h.pagination.current = T.current, h.pagination.pageSize = T.pageSize, f();
|
|
2763
2763
|
}, $ = () => {
|
|
2764
|
-
h.list = [], h.pagination.current = 1,
|
|
2765
|
-
},
|
|
2766
|
-
|
|
2767
|
-
},
|
|
2768
|
-
return
|
|
2764
|
+
h.list = [], h.pagination.current = 1, x("update:visible", !1);
|
|
2765
|
+
}, R = () => {
|
|
2766
|
+
x("update:visible", !0);
|
|
2767
|
+
}, j = (T, P = "YYYY-MM-DD HH:mm:ss") => T ? ot(T).format(P) : "", x = o;
|
|
2768
|
+
return ce(
|
|
2769
2769
|
() => l.visible,
|
|
2770
|
-
(
|
|
2771
|
-
|
|
2770
|
+
(T) => {
|
|
2771
|
+
T && f();
|
|
2772
2772
|
}
|
|
2773
2773
|
), t({
|
|
2774
2774
|
close: $,
|
|
2775
2775
|
loading: p
|
|
2776
|
-
}), (
|
|
2777
|
-
const D = K("a-tooltip"),
|
|
2778
|
-
return d(), w(
|
|
2779
|
-
|
|
2776
|
+
}), (T, P) => {
|
|
2777
|
+
const D = K("a-tooltip"), g = K("HbLibCopy"), H = K("a-table"), L = K("a-button"), c = K("HbLibModal");
|
|
2778
|
+
return d(), w(te, null, [
|
|
2779
|
+
M(c, de(T.$attrs, {
|
|
2780
2780
|
visible: e.visible,
|
|
2781
2781
|
title: s.value ? void 0 : a.value,
|
|
2782
2782
|
width: e.width,
|
|
@@ -2786,7 +2786,7 @@ const hl = {
|
|
|
2786
2786
|
onCancel: $
|
|
2787
2787
|
}), Ne({
|
|
2788
2788
|
footer: b(() => [
|
|
2789
|
-
|
|
2789
|
+
M(L, { onClick: $ }, {
|
|
2790
2790
|
default: b(() => [
|
|
2791
2791
|
E(C(v(n)("hbLibComp.HbLogModal.close")), 1)
|
|
2792
2792
|
]),
|
|
@@ -2795,7 +2795,7 @@ const hl = {
|
|
|
2795
2795
|
]),
|
|
2796
2796
|
default: b(() => [
|
|
2797
2797
|
m("div", Wl, [
|
|
2798
|
-
|
|
2798
|
+
M(H, {
|
|
2799
2799
|
bordered: "",
|
|
2800
2800
|
rowKey: "id",
|
|
2801
2801
|
columns: u.value,
|
|
@@ -2805,39 +2805,39 @@ const hl = {
|
|
|
2805
2805
|
scroll: { y: e.scrollY },
|
|
2806
2806
|
onChange: S
|
|
2807
2807
|
}, Ne({
|
|
2808
|
-
bodyCell: b(({ column:
|
|
2809
|
-
|
|
2810
|
-
|
|
2808
|
+
bodyCell: b(({ column: y, record: k }) => [
|
|
2809
|
+
y && y.needTooltip ? (d(), w(te, { key: 0 }, [
|
|
2810
|
+
y.needTooltip ? (d(), N(D, { key: 0 }, {
|
|
2811
2811
|
title: b(() => [
|
|
2812
|
-
E(C(k[
|
|
2812
|
+
E(C(k[y.dataIndex]), 1)
|
|
2813
2813
|
]),
|
|
2814
2814
|
default: b(() => [
|
|
2815
|
-
E(" " + C(k[
|
|
2815
|
+
E(" " + C(k[y.dataIndex]), 1)
|
|
2816
2816
|
]),
|
|
2817
2817
|
_: 2
|
|
2818
|
-
}, 1024)) :
|
|
2819
|
-
], 64)) :
|
|
2820
|
-
|
|
2821
|
-
m("div", ql, C(k[
|
|
2822
|
-
|
|
2823
|
-
"cp-text": k[
|
|
2818
|
+
}, 1024)) : V("", !0)
|
|
2819
|
+
], 64)) : V("", !0),
|
|
2820
|
+
y && y.needCopy ? (d(), w(te, { key: 1 }, [
|
|
2821
|
+
m("div", ql, C(k[y.dataIndex]), 1),
|
|
2822
|
+
M(g, {
|
|
2823
|
+
"cp-text": k[y.dataIndex],
|
|
2824
2824
|
style: { position: "relative" }
|
|
2825
2825
|
}, null, 8, ["cp-text"])
|
|
2826
|
-
], 64)) :
|
|
2827
|
-
|
|
2828
|
-
E(C(
|
|
2829
|
-
k[
|
|
2830
|
-
|
|
2826
|
+
], 64)) : V("", !0),
|
|
2827
|
+
y && y.needFormat ? (d(), w(te, { key: 2 }, [
|
|
2828
|
+
E(C(j(
|
|
2829
|
+
k[y.dataIndex],
|
|
2830
|
+
y.operateTime
|
|
2831
2831
|
)), 1)
|
|
2832
|
-
], 64)) :
|
|
2832
|
+
], 64)) : V("", !0)
|
|
2833
2833
|
]),
|
|
2834
2834
|
_: 2
|
|
2835
2835
|
}, [
|
|
2836
|
-
|
|
2836
|
+
T.$slots.headerCell ? {
|
|
2837
2837
|
name: "headerCell",
|
|
2838
|
-
fn: b(({ column:
|
|
2839
|
-
J(
|
|
2840
|
-
E(C(
|
|
2838
|
+
fn: b(({ column: y }) => [
|
|
2839
|
+
J(T.$slots, "headerCell", { column: y }, () => [
|
|
2840
|
+
E(C(y.title), 1)
|
|
2841
2841
|
], !0)
|
|
2842
2842
|
]),
|
|
2843
2843
|
key: "0"
|
|
@@ -2850,23 +2850,23 @@ const hl = {
|
|
|
2850
2850
|
s.value ? {
|
|
2851
2851
|
name: "title",
|
|
2852
2852
|
fn: b(() => [
|
|
2853
|
-
J(
|
|
2853
|
+
J(T.$slots, "title", {}, void 0, !0)
|
|
2854
2854
|
]),
|
|
2855
2855
|
key: "0"
|
|
2856
2856
|
} : void 0
|
|
2857
2857
|
]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
2858
|
-
e.needBtn ? J(
|
|
2859
|
-
|
|
2858
|
+
e.needBtn ? J(T.$slots, "default", { key: 0 }, () => [
|
|
2859
|
+
M(L, { onClick: R }, {
|
|
2860
2860
|
default: b(() => [
|
|
2861
2861
|
E(C(e.logBtnText), 1)
|
|
2862
2862
|
]),
|
|
2863
2863
|
_: 1
|
|
2864
2864
|
})
|
|
2865
|
-
], !0) :
|
|
2865
|
+
], !0) : V("", !0)
|
|
2866
2866
|
], 64);
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
|
-
}), Kl = /* @__PURE__ */
|
|
2869
|
+
}), Kl = /* @__PURE__ */ se(Yl, [["__scopeId", "data-v-3ab75993"]]), Gl = ie(Kl), nt = Symbol("GLOBAL_CONFIG_KEY"), Jl = {
|
|
2870
2870
|
// 图片上传组件的配置
|
|
2871
2871
|
importFile: {
|
|
2872
2872
|
isRequired: !1,
|
|
@@ -2908,7 +2908,7 @@ const hl = {
|
|
|
2908
2908
|
// 表单距离底部的距离
|
|
2909
2909
|
formItemMb: 10
|
|
2910
2910
|
}
|
|
2911
|
-
}, Xl = { class: "hb_ui_config" }, Ql = /* @__PURE__ */
|
|
2911
|
+
}, Xl = { class: "hb_ui_config" }, Ql = /* @__PURE__ */ oe({
|
|
2912
2912
|
name: "HbUiConfig",
|
|
2913
2913
|
__name: "hbUiConfig",
|
|
2914
2914
|
props: {
|
|
@@ -2917,7 +2917,7 @@ const hl = {
|
|
|
2917
2917
|
setup(e) {
|
|
2918
2918
|
const t = e;
|
|
2919
2919
|
let o = null;
|
|
2920
|
-
return
|
|
2920
|
+
return ce(
|
|
2921
2921
|
() => t.config,
|
|
2922
2922
|
(n) => {
|
|
2923
2923
|
o = Ve(ke.merge({}, Jl, n));
|
|
@@ -2927,10 +2927,10 @@ const hl = {
|
|
|
2927
2927
|
J(n.$slots, "default")
|
|
2928
2928
|
]));
|
|
2929
2929
|
}
|
|
2930
|
-
}), Zl =
|
|
2930
|
+
}), Zl = ie(Ql), ea = { class: "hb_card" }, ta = {
|
|
2931
2931
|
key: 0,
|
|
2932
2932
|
class: "hb_card_header"
|
|
2933
|
-
}, oa = { class: "hb_fix" }, na = { class: "hb_card_header-title" }, la = { class: "hb_card_header-action" }, aa = { class: "hb_card_body" }, ia = /* @__PURE__ */
|
|
2933
|
+
}, oa = { class: "hb_fix" }, na = { class: "hb_card_header-title" }, la = { class: "hb_card_header-action" }, aa = { class: "hb_card_body" }, ia = /* @__PURE__ */ oe({
|
|
2934
2934
|
name: "HbLibCard",
|
|
2935
2935
|
__name: "HbLibCard",
|
|
2936
2936
|
props: {
|
|
@@ -2961,7 +2961,7 @@ const hl = {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
},
|
|
2963
2963
|
setup(e) {
|
|
2964
|
-
const t =
|
|
2964
|
+
const t = ve(nt), o = e, n = F(() => {
|
|
2965
2965
|
let i = o.formItemMb || t?.HbLibCard?.formItemMb;
|
|
2966
2966
|
return i ? { "--hb-card-form-item-mb": i + "px" } : {};
|
|
2967
2967
|
});
|
|
@@ -2981,7 +2981,7 @@ const hl = {
|
|
|
2981
2981
|
J(i.$slots, "cardAct", {}, void 0, !0)
|
|
2982
2982
|
])
|
|
2983
2983
|
])
|
|
2984
|
-
])) :
|
|
2984
|
+
])) : V("", !0),
|
|
2985
2985
|
m("div", aa, [
|
|
2986
2986
|
m("section", {
|
|
2987
2987
|
class: X({
|
|
@@ -3000,10 +3000,10 @@ const hl = {
|
|
|
3000
3000
|
], 2)
|
|
3001
3001
|
], 16));
|
|
3002
3002
|
}
|
|
3003
|
-
}), sa = /* @__PURE__ */
|
|
3003
|
+
}), sa = /* @__PURE__ */ se(ia, [["__scopeId", "data-v-220e891f"]]), ra = ie(sa), ca = ["onClick"], da = { class: "step" }, ua = {
|
|
3004
3004
|
key: 0,
|
|
3005
3005
|
class: "line"
|
|
3006
|
-
}, fa = ["title"], pa = /* @__PURE__ */
|
|
3006
|
+
}, fa = ["title"], pa = /* @__PURE__ */ oe({
|
|
3007
3007
|
name: "HbLibAnchor",
|
|
3008
3008
|
__name: "HbLibAnchor",
|
|
3009
3009
|
props: {
|
|
@@ -3012,7 +3012,7 @@ const hl = {
|
|
|
3012
3012
|
containerSelector: {}
|
|
3013
3013
|
},
|
|
3014
3014
|
setup(e) {
|
|
3015
|
-
const t = e, o = O(""), n = t.offsetTop ?? 160, i =
|
|
3015
|
+
const t = e, o = O(""), n = t.offsetTop ?? 160, i = F(() => t.anchors.filter((a) => typeof a.visible == "function" ? a.visible() : a.visible !== !1)), l = () => {
|
|
3016
3016
|
const a = t.containerSelector || "#subpackage_container";
|
|
3017
3017
|
return document.querySelector(a) || window;
|
|
3018
3018
|
}, r = (a) => {
|
|
@@ -3041,13 +3041,13 @@ const hl = {
|
|
|
3041
3041
|
class: "anchors",
|
|
3042
3042
|
style: ue({ top: `${v(n)}px` })
|
|
3043
3043
|
}, [
|
|
3044
|
-
(d(!0), w(
|
|
3044
|
+
(d(!0), w(te, null, be(i.value, (p, h) => (d(), w("div", {
|
|
3045
3045
|
key: p.target,
|
|
3046
3046
|
class: X(["anchor-item", { isActive: o.value === p.target }]),
|
|
3047
3047
|
onClick: (f) => r(p)
|
|
3048
3048
|
}, [
|
|
3049
3049
|
m("div", da, [
|
|
3050
|
-
h !== i.value.length - 1 ? (d(), w("div", ua)) :
|
|
3050
|
+
h !== i.value.length - 1 ? (d(), w("div", ua)) : V("", !0),
|
|
3051
3051
|
s[0] || (s[0] = m("div", { class: "circle" }, null, -1))
|
|
3052
3052
|
]),
|
|
3053
3053
|
m("span", {
|
|
@@ -3057,7 +3057,7 @@ const hl = {
|
|
|
3057
3057
|
], 10, ca))), 128))
|
|
3058
3058
|
], 4));
|
|
3059
3059
|
}
|
|
3060
|
-
}), ba = /* @__PURE__ */
|
|
3060
|
+
}), ba = /* @__PURE__ */ se(pa, [["__scopeId", "data-v-d51548d8"]]), ma = ie(ba), ha = { class: "hb_detail_top_act_left" }, va = {
|
|
3061
3061
|
key: 1,
|
|
3062
3062
|
class: "hb_detail_top_wrapper_sticky"
|
|
3063
3063
|
}, ga = { class: "hb_detail_top_act" }, ya = {
|
|
@@ -3066,7 +3066,7 @@ const hl = {
|
|
|
3066
3066
|
}, _a = { class: "hb_detail_all_info_left" }, La = { class: "hb_detail_info_title" }, Ca = {
|
|
3067
3067
|
key: 0,
|
|
3068
3068
|
class: "hb_detail_info_content"
|
|
3069
|
-
}, wa = { class: "create_by" }, ka = { class: "hb_detail_all_info_right" }, Sa = { class: "hb_edit_detail_content_wrapper" }, xa = { class: "hb_detail_content" }, Ta = { class: "hb-back-top-inner" }, Fa = /* @__PURE__ */
|
|
3069
|
+
}, wa = { class: "create_by" }, ka = { class: "hb_detail_all_info_right" }, Sa = { class: "hb_edit_detail_content_wrapper" }, xa = { class: "hb_detail_content" }, Ta = { class: "hb-back-top-inner" }, Fa = /* @__PURE__ */ oe({
|
|
3070
3070
|
name: "HbLibDetailBox",
|
|
3071
3071
|
__name: "HbLibDetailBox",
|
|
3072
3072
|
props: {
|
|
@@ -3136,155 +3136,151 @@ const hl = {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
},
|
|
3138
3138
|
setup(e) {
|
|
3139
|
-
const { t } =
|
|
3139
|
+
const { t } = ge(), o = e, n = ve(nt), i = () => {
|
|
3140
3140
|
o.backFn ? o.backFn() : window.history.back();
|
|
3141
|
-
}, l = n?.HbLibDetailBox?.hbTopActionsTop || 112, r = n?.HbLibDetailBox?.hbTopActionsLeft || 160, u = (
|
|
3141
|
+
}, l = n?.HbLibDetailBox?.hbTopActionsTop || 112, r = n?.HbLibDetailBox?.hbTopActionsLeft || 160, u = (I) => I.trim().replace(/^(['"])(.*)\1$/, "$2"), a = (I) => typeof I == "string" && (I.includes("#") || I.includes(".")), s = (I) => {
|
|
3142
3142
|
try {
|
|
3143
|
-
const
|
|
3144
|
-
return
|
|
3143
|
+
const Z = document.querySelector(u(I));
|
|
3144
|
+
return Z instanceof HTMLElement ? Z : null;
|
|
3145
3145
|
} catch {
|
|
3146
3146
|
return null;
|
|
3147
3147
|
}
|
|
3148
|
-
}, p = (
|
|
3149
|
-
|
|
3150
|
-
if (a(
|
|
3151
|
-
const
|
|
3152
|
-
if (
|
|
3153
|
-
return
|
|
3148
|
+
}, p = F(() => o.hbTopActionsLeft || r), h = F(() => o.hbTopActionsTop || l), f = (I) => {
|
|
3149
|
+
let Z = null;
|
|
3150
|
+
if (I === "top" ? Z = h.value : Z = p.value, a(Z)) {
|
|
3151
|
+
const ne = s(Z);
|
|
3152
|
+
if (ne)
|
|
3153
|
+
return I === "top" ? ne.offsetTop + ne.offsetHeight : ne.offsetLeft + ne.offsetWidth;
|
|
3154
3154
|
}
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
$();
|
|
3155
|
+
return typeof Z == "number" && Z > 0 ? Z : 0;
|
|
3156
|
+
}, S = O(r);
|
|
3157
|
+
let $ = null;
|
|
3158
|
+
const R = () => {
|
|
3159
|
+
$ && ($.disconnect(), $ = null);
|
|
3160
|
+
}, j = () => {
|
|
3161
|
+
const I = f("left");
|
|
3162
|
+
S.value = I;
|
|
3163
|
+
}, x = () => {
|
|
3164
|
+
if (R(), !a(p.value)) {
|
|
3165
|
+
j();
|
|
3167
3166
|
return;
|
|
3168
3167
|
}
|
|
3169
|
-
const
|
|
3170
|
-
if (!
|
|
3171
|
-
|
|
3168
|
+
const I = s(p.value);
|
|
3169
|
+
if (!I) {
|
|
3170
|
+
j();
|
|
3172
3171
|
return;
|
|
3173
3172
|
}
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
}),
|
|
3177
|
-
},
|
|
3178
|
-
const
|
|
3179
|
-
return M || l;
|
|
3180
|
-
}), T = H(() => h.value), x = H(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), P = H(() => {
|
|
3181
|
-
const M = {};
|
|
3173
|
+
S.value = I.offsetLeft + I.offsetWidth, $ = new ResizeObserver(() => {
|
|
3174
|
+
S.value = I.offsetLeft + I.offsetWidth;
|
|
3175
|
+
}), $.observe(I);
|
|
3176
|
+
}, T = F(() => f("top")), P = F(() => S.value), D = F(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), g = F(() => {
|
|
3177
|
+
const I = {};
|
|
3182
3178
|
return o.needFixWidth ? {
|
|
3183
3179
|
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3184
3180
|
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3185
|
-
} :
|
|
3186
|
-
}),
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
(
|
|
3190
|
-
|
|
3181
|
+
} : I;
|
|
3182
|
+
}), H = () => document.querySelector(o.container), L = O(!1), c = O(null), { top: y } = Fo(c), k = F(H), { y: U } = Ho(k);
|
|
3183
|
+
ce(
|
|
3184
|
+
U,
|
|
3185
|
+
(I) => {
|
|
3186
|
+
L.value = I > y.value;
|
|
3191
3187
|
},
|
|
3192
3188
|
{ immediate: !0 }
|
|
3193
3189
|
);
|
|
3194
|
-
const
|
|
3195
|
-
document.querySelectorAll(".hb_card_body").forEach((
|
|
3196
|
-
|
|
3190
|
+
const Y = (I) => {
|
|
3191
|
+
document.querySelectorAll(".hb_card_body").forEach((ne) => {
|
|
3192
|
+
ne.querySelectorAll(
|
|
3197
3193
|
".ant-descriptions-item-content span"
|
|
3198
|
-
).forEach((
|
|
3199
|
-
|
|
3194
|
+
).forEach((fe) => {
|
|
3195
|
+
fe.textContent?.trim() || (fe.textContent = I);
|
|
3200
3196
|
});
|
|
3201
3197
|
});
|
|
3202
3198
|
};
|
|
3203
|
-
let
|
|
3199
|
+
let _ = null;
|
|
3204
3200
|
return He(() => {
|
|
3205
3201
|
xe(() => {
|
|
3206
|
-
|
|
3207
|
-
}), n?.HbLibDetailBox?.needSetDesDefault && (
|
|
3208
|
-
|
|
3202
|
+
x();
|
|
3203
|
+
}), n?.HbLibDetailBox?.needSetDesDefault && (_ = setTimeout(() => {
|
|
3204
|
+
Y(n?.HbLibDetailBox?.desDefault);
|
|
3209
3205
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3210
|
-
}),
|
|
3206
|
+
}), ce(
|
|
3211
3207
|
() => o.hbTopActionsLeft,
|
|
3212
3208
|
() => {
|
|
3213
3209
|
xe(() => {
|
|
3214
|
-
|
|
3210
|
+
x();
|
|
3215
3211
|
});
|
|
3216
3212
|
}
|
|
3217
3213
|
), je(() => {
|
|
3218
|
-
|
|
3219
|
-
}), (
|
|
3220
|
-
const
|
|
3221
|
-
return d(),
|
|
3214
|
+
R(), _ && clearTimeout(_);
|
|
3215
|
+
}), (I, Z) => {
|
|
3216
|
+
const ne = K("RollbackOutlined"), le = K("a-divider"), fe = K("a-spin");
|
|
3217
|
+
return d(), N(fe, { spinning: e.spinning }, {
|
|
3222
3218
|
default: b(() => [
|
|
3223
3219
|
m("div", {
|
|
3224
|
-
class: X(["hb_detail_wrapper",
|
|
3220
|
+
class: X(["hb_detail_wrapper", g.value]),
|
|
3225
3221
|
style: ue({
|
|
3226
|
-
"--hb-detail-desc-label-width":
|
|
3227
|
-
"--hb-detail-desc-value-width":
|
|
3222
|
+
"--hb-detail-desc-label-width": g.value?.hb_need_set_desc_label_width + "px",
|
|
3223
|
+
"--hb-detail-desc-value-width": g.value?.hb_need_set_desc_value_width + "px"
|
|
3228
3224
|
})
|
|
3229
3225
|
}, [
|
|
3230
3226
|
e.needTotalInfoBox ? (d(), w("div", {
|
|
3231
3227
|
key: 0,
|
|
3232
3228
|
style: ue({
|
|
3233
|
-
top:
|
|
3234
|
-
left:
|
|
3229
|
+
top: T.value + "px",
|
|
3230
|
+
left: P.value + "px"
|
|
3235
3231
|
}),
|
|
3236
|
-
class: X(["hb_detail_top_act_sticky",
|
|
3232
|
+
class: X(["hb_detail_top_act_sticky", L.value ? "can_show" : ""])
|
|
3237
3233
|
}, [
|
|
3238
3234
|
m("div", ha, [
|
|
3239
|
-
|
|
3235
|
+
M(ne, { style: { color: "#ff5000" } }),
|
|
3240
3236
|
m("a", {
|
|
3241
3237
|
href: "javascript:;",
|
|
3242
3238
|
class: "ml6",
|
|
3243
3239
|
onClick: i
|
|
3244
3240
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3245
|
-
|
|
3241
|
+
M(le, { type: "vertical" }),
|
|
3246
3242
|
m("span", null, C(e.stickyTitle), 1)
|
|
3247
3243
|
]),
|
|
3248
|
-
|
|
3249
|
-
], 6)) :
|
|
3244
|
+
Z[0] || (Z[0] = m("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3245
|
+
], 6)) : V("", !0),
|
|
3250
3246
|
e.needTotalInfoBox ? (d(), w("div", va, [
|
|
3251
3247
|
m("div", ga, [
|
|
3252
|
-
|
|
3248
|
+
M(ne),
|
|
3253
3249
|
m("a", {
|
|
3254
3250
|
href: "javascript:;",
|
|
3255
3251
|
class: "ml6",
|
|
3256
3252
|
onClick: i
|
|
3257
3253
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3258
|
-
|
|
3254
|
+
M(le, { type: "vertical" }),
|
|
3259
3255
|
m("span", null, C(e.stickyTitle), 1)
|
|
3260
3256
|
]),
|
|
3261
3257
|
e.needTotalInfoBox ? (d(), w("div", ya, [
|
|
3262
3258
|
m("aside", _a, [
|
|
3263
|
-
J(
|
|
3259
|
+
J(I.$slots, "totalInfoLeft", {}, () => [
|
|
3264
3260
|
m("div", La, C(e.totalInfo.totalInfoTitle), 1),
|
|
3265
3261
|
e.totalInfo.totalInfoSubTitle1 ? (d(), w("div", Ca, [
|
|
3266
3262
|
m("span", wa, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
|
|
3267
3263
|
m("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
|
|
3268
|
-
])) :
|
|
3264
|
+
])) : V("", !0)
|
|
3269
3265
|
], !0)
|
|
3270
3266
|
]),
|
|
3271
3267
|
m("aside", ka, [
|
|
3272
|
-
J(
|
|
3268
|
+
J(I.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3273
3269
|
])
|
|
3274
|
-
])) :
|
|
3275
|
-
])) :
|
|
3270
|
+
])) : V("", !0)
|
|
3271
|
+
])) : V("", !0),
|
|
3276
3272
|
m("div", Sa, [
|
|
3277
3273
|
m("div", xa, [
|
|
3278
|
-
J(
|
|
3274
|
+
J(I.$slots, "detailContent", {}, void 0, !0)
|
|
3279
3275
|
])
|
|
3280
3276
|
]),
|
|
3281
|
-
|
|
3282
|
-
target:
|
|
3283
|
-
style: ue({ bottom:
|
|
3277
|
+
M(v(Kt), {
|
|
3278
|
+
target: H,
|
|
3279
|
+
style: ue({ bottom: D.value + "px" })
|
|
3284
3280
|
}, {
|
|
3285
3281
|
default: b(() => [
|
|
3286
3282
|
m("div", Ta, [
|
|
3287
|
-
|
|
3283
|
+
M(v(Gt))
|
|
3288
3284
|
])
|
|
3289
3285
|
]),
|
|
3290
3286
|
_: 1
|
|
@@ -3295,7 +3291,7 @@ const hl = {
|
|
|
3295
3291
|
}, 8, ["spinning"]);
|
|
3296
3292
|
};
|
|
3297
3293
|
}
|
|
3298
|
-
}), Ha = /* @__PURE__ */
|
|
3294
|
+
}), Ha = /* @__PURE__ */ se(Fa, [["__scopeId", "data-v-2f184a2c"]]), $a = ie(Ha), Ia = /* @__PURE__ */ oe({
|
|
3299
3295
|
name: "HbLibFooterBar",
|
|
3300
3296
|
__name: "HbLibFooterBar",
|
|
3301
3297
|
props: {
|
|
@@ -3327,7 +3323,7 @@ const hl = {
|
|
|
3327
3323
|
}
|
|
3328
3324
|
},
|
|
3329
3325
|
setup(e) {
|
|
3330
|
-
const t = e, o = (a, s = 300) => Zt(a, s), n =
|
|
3326
|
+
const t = e, o = (a, s = 300) => Zt(a, s), n = F(() => t.buttons.filter((s) => {
|
|
3331
3327
|
if (s.condition === void 0 || s.condition === null)
|
|
3332
3328
|
return !0;
|
|
3333
3329
|
if (typeof s.condition == "boolean")
|
|
@@ -3378,7 +3374,7 @@ const hl = {
|
|
|
3378
3374
|
class: "footer-affix-wrapper",
|
|
3379
3375
|
style: ue({ "--pageHeaderOrFonterLeft": i.value + "px" })
|
|
3380
3376
|
}, [
|
|
3381
|
-
|
|
3377
|
+
M(f, {
|
|
3382
3378
|
"offset-bottom": 0,
|
|
3383
3379
|
target: e.getContainer,
|
|
3384
3380
|
style: { width: "100%" }
|
|
@@ -3391,9 +3387,9 @@ const hl = {
|
|
|
3391
3387
|
page_footer_btn_right: e.placeRight
|
|
3392
3388
|
})
|
|
3393
3389
|
}, [
|
|
3394
|
-
|
|
3390
|
+
M(h, null, {
|
|
3395
3391
|
default: b(() => [
|
|
3396
|
-
(d(!0), w(
|
|
3392
|
+
(d(!0), w(te, null, be(n.value, ($) => we((d(), N(p, {
|
|
3397
3393
|
key: $.key,
|
|
3398
3394
|
type: $.type || "default",
|
|
3399
3395
|
danger: $.danger,
|
|
@@ -3419,7 +3415,7 @@ const hl = {
|
|
|
3419
3415
|
], 4);
|
|
3420
3416
|
};
|
|
3421
3417
|
}
|
|
3422
|
-
}), Ma = /* @__PURE__ */
|
|
3418
|
+
}), Ma = /* @__PURE__ */ se(Ia, [["__scopeId", "data-v-23f13fb5"]]), Ba = ie(Ma), Da = { class: "modal__detail-content" }, Aa = /* @__PURE__ */ oe({
|
|
3423
3419
|
name: "HbLibModal",
|
|
3424
3420
|
__name: "HbLibModal",
|
|
3425
3421
|
props: {
|
|
@@ -3467,59 +3463,59 @@ const hl = {
|
|
|
3467
3463
|
},
|
|
3468
3464
|
emits: ["update:visible", "ok", "cancel"],
|
|
3469
3465
|
setup(e, { expose: t, emit: o }) {
|
|
3470
|
-
const n = o, i = e, l =
|
|
3466
|
+
const n = o, i = e, l = F({
|
|
3471
3467
|
get: () => i.visible,
|
|
3472
3468
|
set: (k) => n("update:visible", k)
|
|
3473
|
-
}), r = O(null), u =
|
|
3469
|
+
}), r = O(null), u = F(() => ({ top: "10px", ...i.modalStyle })), a = F(() => ({ overflow: "hidden", ...i.modalStyle })), s = F(() => ({
|
|
3474
3470
|
maxHeight: "calc(100vh - 120px)",
|
|
3475
3471
|
overflowY: "auto",
|
|
3476
3472
|
padding: "0 6px",
|
|
3477
3473
|
...i.bodyStyle
|
|
3478
|
-
})), { x: p, y: h, isDragging: f } = $o(r), S = O(0), $ = O(0),
|
|
3479
|
-
let
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3474
|
+
})), { x: p, y: h, isDragging: f } = $o(r), S = O(0), $ = O(0), R = O(!1), j = O(0), x = O(0), T = O(0), P = O(0), D = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3475
|
+
let g = null;
|
|
3476
|
+
const H = () => {
|
|
3477
|
+
j.value = 0, x.value = 0, T.value = 0, P.value = 0, R.value = !1;
|
|
3482
3478
|
};
|
|
3483
|
-
|
|
3479
|
+
ce(l, (k) => {
|
|
3484
3480
|
k ? setTimeout(() => {
|
|
3485
|
-
|
|
3486
|
-
}, 50) : (
|
|
3487
|
-
|
|
3481
|
+
H();
|
|
3482
|
+
}, 50) : (g && clearTimeout(g), g = setTimeout(() => {
|
|
3483
|
+
j.value = 0, x.value = 0, T.value = 0, P.value = 0;
|
|
3488
3484
|
}, 300));
|
|
3489
|
-
}),
|
|
3490
|
-
if (!
|
|
3485
|
+
}), ce([p, h], () => {
|
|
3486
|
+
if (!R.value) {
|
|
3491
3487
|
S.value = p.value, $.value = h.value;
|
|
3492
3488
|
const k = document.body.getBoundingClientRect(), U = r.value.getBoundingClientRect();
|
|
3493
|
-
D.value.right = k.width - U.width, D.value.bottom = k.height - U.height,
|
|
3489
|
+
D.value.right = k.width - U.width, D.value.bottom = k.height - U.height, T.value = j.value, P.value = x.value;
|
|
3494
3490
|
}
|
|
3495
|
-
|
|
3496
|
-
}),
|
|
3497
|
-
f || (
|
|
3491
|
+
R.value = !0;
|
|
3492
|
+
}), ce(f, () => {
|
|
3493
|
+
f || (R.value = !1);
|
|
3498
3494
|
}), qt(() => {
|
|
3499
|
-
|
|
3495
|
+
R.value && (j.value = T.value + Math.min(Math.max(D.value.left, p.value), D.value.right) - S.value, x.value = P.value + Math.min(Math.max(D.value.top, h.value), D.value.bottom) - $.value);
|
|
3500
3496
|
});
|
|
3501
|
-
const L =
|
|
3502
|
-
transform: `translate(${
|
|
3497
|
+
const L = F(() => ({
|
|
3498
|
+
transform: `translate(${j.value}px, ${x.value}px)`
|
|
3503
3499
|
})), c = () => {
|
|
3504
3500
|
n("cancel");
|
|
3505
|
-
},
|
|
3501
|
+
}, y = () => {
|
|
3506
3502
|
n("ok");
|
|
3507
3503
|
};
|
|
3508
3504
|
return je(() => {
|
|
3509
|
-
|
|
3505
|
+
g && clearTimeout(g);
|
|
3510
3506
|
}), t({
|
|
3511
|
-
handleOk:
|
|
3507
|
+
handleOk: y,
|
|
3512
3508
|
handleCancel: c
|
|
3513
3509
|
}), (k, U) => {
|
|
3514
|
-
const
|
|
3515
|
-
return d(),
|
|
3510
|
+
const Y = K("a-spin"), _ = K("a-modal");
|
|
3511
|
+
return d(), N(_, de({
|
|
3516
3512
|
style: u.value,
|
|
3517
3513
|
bodyStyle: s.value,
|
|
3518
3514
|
ref: "modalRef",
|
|
3519
3515
|
visible: l.value,
|
|
3520
|
-
"onUpdate:visible": U[0] || (U[0] = (
|
|
3516
|
+
"onUpdate:visible": U[0] || (U[0] = (I) => l.value = I),
|
|
3521
3517
|
"wrap-style": a.value,
|
|
3522
|
-
onOk:
|
|
3518
|
+
onOk: y,
|
|
3523
3519
|
onCancel: c
|
|
3524
3520
|
}, k.$attrs), Ne({
|
|
3525
3521
|
title: b(() => [
|
|
@@ -3533,16 +3529,16 @@ const hl = {
|
|
|
3533
3529
|
], !0)
|
|
3534
3530
|
], 512)
|
|
3535
3531
|
]),
|
|
3536
|
-
modalRender: b(({ originVNode:
|
|
3532
|
+
modalRender: b(({ originVNode: I }) => [
|
|
3537
3533
|
(d(), w("div", {
|
|
3538
3534
|
key: l.value,
|
|
3539
3535
|
style: ue(L.value)
|
|
3540
3536
|
}, [
|
|
3541
|
-
(d(),
|
|
3537
|
+
(d(), N(Yt(I)))
|
|
3542
3538
|
], 4))
|
|
3543
3539
|
]),
|
|
3544
3540
|
default: b(() => [
|
|
3545
|
-
|
|
3541
|
+
M(Y, {
|
|
3546
3542
|
spinning: i.spinning
|
|
3547
3543
|
}, {
|
|
3548
3544
|
default: b(() => [
|
|
@@ -3574,13 +3570,13 @@ const hl = {
|
|
|
3574
3570
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3575
3571
|
};
|
|
3576
3572
|
}
|
|
3577
|
-
}), Oa = /* @__PURE__ */
|
|
3573
|
+
}), Oa = /* @__PURE__ */ se(Aa, [["__scopeId", "data-v-866a050a"]]), Pa = ie(Oa), Ua = {
|
|
3578
3574
|
key: 0,
|
|
3579
3575
|
class: "hb_edit_header"
|
|
3580
3576
|
}, Ea = { class: "__detail-content" }, Ra = {
|
|
3581
3577
|
key: 1,
|
|
3582
3578
|
class: "hb_edit_footer"
|
|
3583
|
-
}, Na = { class: "hb-back-top-inner" }, za = /* @__PURE__ */
|
|
3579
|
+
}, Na = { class: "hb-back-top-inner" }, za = /* @__PURE__ */ oe({
|
|
3584
3580
|
name: "HbLibUnDetailBox",
|
|
3585
3581
|
__name: "HbLibUnDetailBox",
|
|
3586
3582
|
props: {
|
|
@@ -3604,8 +3600,8 @@ const hl = {
|
|
|
3604
3600
|
}
|
|
3605
3601
|
},
|
|
3606
3602
|
setup(e) {
|
|
3607
|
-
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), i =
|
|
3608
|
-
return (r, u) => (d(),
|
|
3603
|
+
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), i = ve("GLOBAL_CONFIG_KEY"), l = F(() => o.backTopBottom || i?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3604
|
+
return (r, u) => (d(), N(v(_o), { spinning: e.spinning }, {
|
|
3609
3605
|
default: b(() => [
|
|
3610
3606
|
m("div", de({ class: "hb_edit_wrapper" }, r.$attrs, {
|
|
3611
3607
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
@@ -3613,7 +3609,7 @@ const hl = {
|
|
|
3613
3609
|
}), [
|
|
3614
3610
|
r.$slots.editHeader ? (d(), w("div", Ua, [
|
|
3615
3611
|
J(r.$slots, "editHeader", {}, void 0, !0)
|
|
3616
|
-
])) :
|
|
3612
|
+
])) : V("", !0),
|
|
3617
3613
|
m("div", {
|
|
3618
3614
|
class: X(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3619
3615
|
}, [
|
|
@@ -3623,14 +3619,14 @@ const hl = {
|
|
|
3623
3619
|
], 2),
|
|
3624
3620
|
r.$slots.editFooter ? (d(), w("div", Ra, [
|
|
3625
3621
|
J(r.$slots, "editFooter", {}, void 0, !0)
|
|
3626
|
-
])) :
|
|
3627
|
-
|
|
3622
|
+
])) : V("", !0),
|
|
3623
|
+
M(v(Kt), {
|
|
3628
3624
|
target: n,
|
|
3629
3625
|
style: ue({ bottom: l.value + "px" })
|
|
3630
3626
|
}, {
|
|
3631
3627
|
default: b(() => [
|
|
3632
3628
|
m("div", Na, [
|
|
3633
|
-
|
|
3629
|
+
M(v(Gt))
|
|
3634
3630
|
])
|
|
3635
3631
|
]),
|
|
3636
3632
|
_: 1
|
|
@@ -3640,7 +3636,7 @@ const hl = {
|
|
|
3640
3636
|
_: 3
|
|
3641
3637
|
}, 8, ["spinning"]));
|
|
3642
3638
|
}
|
|
3643
|
-
}), Va = /* @__PURE__ */
|
|
3639
|
+
}), Va = /* @__PURE__ */ se(za, [["__scopeId", "data-v-41f1fc73"]]), ja = ie(Va), Wa = { class: "hb_edit_header_left" }, qa = { class: "hb_edit_header_title" }, Ya = { class: "hb_edit_header_right" }, Ka = /* @__PURE__ */ oe({
|
|
3644
3640
|
name: "HbLibPageHeader",
|
|
3645
3641
|
__name: "HbLibPageHeader",
|
|
3646
3642
|
props: {
|
|
@@ -3658,18 +3654,18 @@ const hl = {
|
|
|
3658
3654
|
}
|
|
3659
3655
|
},
|
|
3660
3656
|
setup(e) {
|
|
3661
|
-
const { t } =
|
|
3657
|
+
const { t } = ge(), o = e, n = vt(), i = O(0), l = F(() => n?.meta?.title || "");
|
|
3662
3658
|
function r(f, S = "offsetHeight") {
|
|
3663
3659
|
let $ = 0;
|
|
3664
|
-
return (Array.isArray(f) ? f : [f]).forEach((
|
|
3665
|
-
let
|
|
3666
|
-
if (
|
|
3667
|
-
const
|
|
3668
|
-
|
|
3660
|
+
return (Array.isArray(f) ? f : [f]).forEach((j) => {
|
|
3661
|
+
let x = [];
|
|
3662
|
+
if (j.startsWith("#")) {
|
|
3663
|
+
const T = document.getElementById(j.slice(1));
|
|
3664
|
+
T && x.push(T);
|
|
3669
3665
|
} else
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
$ +=
|
|
3666
|
+
x = Array.from(document.getElementsByClassName(j));
|
|
3667
|
+
x.forEach((T) => {
|
|
3668
|
+
$ += T[S] || 0;
|
|
3673
3669
|
});
|
|
3674
3670
|
}), $;
|
|
3675
3671
|
}
|
|
@@ -3694,7 +3690,7 @@ const hl = {
|
|
|
3694
3690
|
});
|
|
3695
3691
|
}), tt(() => {
|
|
3696
3692
|
window.removeEventListener("resize", u), p && p.disconnect();
|
|
3697
|
-
}),
|
|
3693
|
+
}), ce(
|
|
3698
3694
|
() => o.topElements,
|
|
3699
3695
|
() => {
|
|
3700
3696
|
u();
|
|
@@ -3716,7 +3712,7 @@ const hl = {
|
|
|
3716
3712
|
class: "backBtn",
|
|
3717
3713
|
onClick: h
|
|
3718
3714
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3719
|
-
|
|
3715
|
+
M($, { type: "vertical" }),
|
|
3720
3716
|
m("span", qa, C(l.value), 1)
|
|
3721
3717
|
]),
|
|
3722
3718
|
m("aside", Ya, [
|
|
@@ -3725,7 +3721,7 @@ const hl = {
|
|
|
3725
3721
|
], 4);
|
|
3726
3722
|
};
|
|
3727
3723
|
}
|
|
3728
|
-
}), Ga = /* @__PURE__ */
|
|
3724
|
+
}), Ga = /* @__PURE__ */ se(Ka, [["__scopeId", "data-v-83fcd208"]]), Ja = ie(Ga), Xa = {
|
|
3729
3725
|
// 如果存在cpText时,K和V无效
|
|
3730
3726
|
cpText: {
|
|
3731
3727
|
type: String,
|
|
@@ -3770,7 +3766,7 @@ const hl = {
|
|
|
3770
3766
|
type: String,
|
|
3771
3767
|
default: "ab"
|
|
3772
3768
|
}
|
|
3773
|
-
}, Qa = /* @__PURE__ */
|
|
3769
|
+
}, Qa = /* @__PURE__ */ oe({
|
|
3774
3770
|
name: "HbLibCopy",
|
|
3775
3771
|
__name: "copy",
|
|
3776
3772
|
props: Xa,
|
|
@@ -3779,7 +3775,7 @@ const hl = {
|
|
|
3779
3775
|
qt(() => {
|
|
3780
3776
|
o.value = t.data;
|
|
3781
3777
|
});
|
|
3782
|
-
const n =
|
|
3778
|
+
const n = F(() => t.tooltipTitle || "复制"), i = F(() => t.copySuccessTip || "复制成功"), l = F(() => t.copyFailTip || "复制失败"), r = F(() => {
|
|
3783
3779
|
if (t.cpText) return t.cpText;
|
|
3784
3780
|
let a = "";
|
|
3785
3781
|
if (t.data)
|
|
@@ -3798,7 +3794,7 @@ const hl = {
|
|
|
3798
3794
|
Me.error(l.value);
|
|
3799
3795
|
});
|
|
3800
3796
|
};
|
|
3801
|
-
return (a, s) => r.value ? (d(),
|
|
3797
|
+
return (a, s) => r.value ? (d(), N(v(Xe), {
|
|
3802
3798
|
key: 0,
|
|
3803
3799
|
title: n.value
|
|
3804
3800
|
}, {
|
|
@@ -3837,9 +3833,9 @@ const hl = {
|
|
|
3837
3833
|
])], 4)
|
|
3838
3834
|
]),
|
|
3839
3835
|
_: 1
|
|
3840
|
-
}, 8, ["title"])) :
|
|
3836
|
+
}, 8, ["title"])) : V("", !0);
|
|
3841
3837
|
}
|
|
3842
|
-
}), Za = /* @__PURE__ */
|
|
3838
|
+
}), Za = /* @__PURE__ */ se(Qa, [["__scopeId", "data-v-2b6710a1"]]), eo = ie(Za), ei = {
|
|
3843
3839
|
dragList: {
|
|
3844
3840
|
type: Array,
|
|
3845
3841
|
required: !0
|
|
@@ -3878,7 +3874,7 @@ const hl = {
|
|
|
3878
3874
|
type: String,
|
|
3879
3875
|
default: ""
|
|
3880
3876
|
}
|
|
3881
|
-
}, ti = /* @__PURE__ */
|
|
3877
|
+
}, ti = /* @__PURE__ */ oe({
|
|
3882
3878
|
name: "HbDrag",
|
|
3883
3879
|
__name: "index",
|
|
3884
3880
|
props: ei,
|
|
@@ -3891,7 +3887,7 @@ const hl = {
|
|
|
3891
3887
|
],
|
|
3892
3888
|
setup(e, { emit: t }) {
|
|
3893
3889
|
const o = e, n = po([]);
|
|
3894
|
-
|
|
3890
|
+
ce(
|
|
3895
3891
|
() => o.dragList,
|
|
3896
3892
|
(p) => {
|
|
3897
3893
|
n.value = p;
|
|
@@ -3913,7 +3909,7 @@ const hl = {
|
|
|
3913
3909
|
return (p, h) => (d(), w("div", {
|
|
3914
3910
|
class: X(v(i).b())
|
|
3915
3911
|
}, [
|
|
3916
|
-
p.childrenType == "component" ? (d(),
|
|
3912
|
+
p.childrenType == "component" ? (d(), N(v(Je), de({
|
|
3917
3913
|
key: 0,
|
|
3918
3914
|
modelValue: n.value,
|
|
3919
3915
|
"onUpdate:modelValue": h[0] || (h[0] = (f) => n.value = f),
|
|
@@ -3927,10 +3923,10 @@ const hl = {
|
|
|
3927
3923
|
onRemove: s
|
|
3928
3924
|
}), {
|
|
3929
3925
|
item: b(({ element: f }) => [
|
|
3930
|
-
(d(),
|
|
3926
|
+
(d(), N(Yt(f.component)))
|
|
3931
3927
|
]),
|
|
3932
3928
|
_: 1
|
|
3933
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (d(),
|
|
3929
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (d(), N(v(Je), de({
|
|
3934
3930
|
key: 1,
|
|
3935
3931
|
modelValue: n.value,
|
|
3936
3932
|
"onUpdate:modelValue": h[1] || (h[1] = (f) => n.value = f),
|
|
@@ -3952,7 +3948,7 @@ const hl = {
|
|
|
3952
3948
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3953
3949
|
], 2));
|
|
3954
3950
|
}
|
|
3955
|
-
}), oi = /* @__PURE__ */
|
|
3951
|
+
}), oi = /* @__PURE__ */ se(ti, [["__scopeId", "data-v-841ac118"]]), ni = ie(oi), li = {
|
|
3956
3952
|
triggerWay: {
|
|
3957
3953
|
type: String,
|
|
3958
3954
|
default: "click"
|
|
@@ -3968,14 +3964,14 @@ const hl = {
|
|
|
3968
3964
|
getSort: {
|
|
3969
3965
|
type: Function
|
|
3970
3966
|
}
|
|
3971
|
-
}, ai = /* @__PURE__ */
|
|
3967
|
+
}, ai = /* @__PURE__ */ oe({
|
|
3972
3968
|
name: "HbLibSort",
|
|
3973
3969
|
__name: "sort",
|
|
3974
3970
|
props: li,
|
|
3975
3971
|
emits: ["change"],
|
|
3976
3972
|
setup(e, { expose: t, emit: o }) {
|
|
3977
3973
|
const n = e, i = o, l = O([]), r = O("");
|
|
3978
|
-
|
|
3974
|
+
ce(
|
|
3979
3975
|
() => n.menuItems,
|
|
3980
3976
|
(a) => {
|
|
3981
3977
|
let s = [];
|
|
@@ -4002,13 +3998,13 @@ const hl = {
|
|
|
4002
3998
|
currentActiveItem: r
|
|
4003
3999
|
}), (a, s) => {
|
|
4004
4000
|
const p = K("a-menu-item"), h = K("a-menu"), f = K("a-dropdown");
|
|
4005
|
-
return d(),
|
|
4001
|
+
return d(), N(f, {
|
|
4006
4002
|
trigger: [n.triggerWay]
|
|
4007
4003
|
}, {
|
|
4008
4004
|
overlay: b(() => [
|
|
4009
|
-
|
|
4005
|
+
M(h, null, {
|
|
4010
4006
|
default: b(() => [
|
|
4011
|
-
(d(!0), w(
|
|
4007
|
+
(d(!0), w(te, null, be(l.value, (S) => (d(), N(p, {
|
|
4012
4008
|
key: S.value + S.sort,
|
|
4013
4009
|
onClick: ($) => u(S)
|
|
4014
4010
|
}, {
|
|
@@ -4030,14 +4026,14 @@ const hl = {
|
|
|
4030
4026
|
}, ["prevent"]))
|
|
4031
4027
|
}, [
|
|
4032
4028
|
E(C(n.colText) + " ", 1),
|
|
4033
|
-
|
|
4029
|
+
M(v(pt))
|
|
4034
4030
|
])
|
|
4035
4031
|
]),
|
|
4036
4032
|
_: 1
|
|
4037
4033
|
}, 8, ["trigger"]);
|
|
4038
4034
|
};
|
|
4039
4035
|
}
|
|
4040
|
-
}), ii = /* @__PURE__ */
|
|
4036
|
+
}), ii = /* @__PURE__ */ se(ai, [["__scopeId", "data-v-cf0b0a0d"]]), si = ie(ii), ri = { class: "hb_lib_loading" }, ci = { class: "hb_lib_loading_loading_anima" }, di = { class: "hb_lib_loading_load_tips" }, ui = /* @__PURE__ */ oe({
|
|
4041
4037
|
name: "HbLibLoading",
|
|
4042
4038
|
__name: "loading",
|
|
4043
4039
|
props: {
|
|
@@ -4047,7 +4043,7 @@ const hl = {
|
|
|
4047
4043
|
}
|
|
4048
4044
|
},
|
|
4049
4045
|
setup(e) {
|
|
4050
|
-
const { t } =
|
|
4046
|
+
const { t } = ge(), o = e, n = F(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
|
|
4051
4047
|
return (i, l) => (d(), w("div", ri, [
|
|
4052
4048
|
m("div", ci, [
|
|
4053
4049
|
l[0] || (l[0] = bo('<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)),
|
|
@@ -4055,7 +4051,7 @@ const hl = {
|
|
|
4055
4051
|
])
|
|
4056
4052
|
]));
|
|
4057
4053
|
}
|
|
4058
|
-
}), fi = /* @__PURE__ */
|
|
4054
|
+
}), fi = /* @__PURE__ */ se(ui, [["__scopeId", "data-v-22f438b9"]]), pi = ie(fi), bi = { class: "file-preview__body" }, mi = {
|
|
4059
4055
|
key: 0,
|
|
4060
4056
|
class: "file-preview__placeholder"
|
|
4061
4057
|
}, hi = {
|
|
@@ -4067,7 +4063,7 @@ const hl = {
|
|
|
4067
4063
|
}, _i = {
|
|
4068
4064
|
key: 1,
|
|
4069
4065
|
class: "file-preview__placeholder"
|
|
4070
|
-
}, Li = ["src"], Ci = ["src"], wi = { class: "file-preview__modal-footer" }, ki = /* @__PURE__ */
|
|
4066
|
+
}, Li = ["src"], Ci = ["src"], wi = { class: "file-preview__modal-footer" }, ki = /* @__PURE__ */ oe({
|
|
4071
4067
|
__name: "file_preview",
|
|
4072
4068
|
props: {
|
|
4073
4069
|
visible: { type: Boolean, default: !1 },
|
|
@@ -4092,7 +4088,7 @@ const hl = {
|
|
|
4092
4088
|
},
|
|
4093
4089
|
emits: ["rendered", "error", "update:visible", "update:fileIndex", "fileChange", "beforeDownload", "downloaded", "cancel"],
|
|
4094
4090
|
setup(e, { expose: t, emit: o }) {
|
|
4095
|
-
const n = e, i = o, { t: l } =
|
|
4091
|
+
const n = e, i = o, { t: l } = ge();
|
|
4096
4092
|
function r(A) {
|
|
4097
4093
|
i("update:visible", A);
|
|
4098
4094
|
}
|
|
@@ -4121,9 +4117,9 @@ const hl = {
|
|
|
4121
4117
|
() => s().then((A) => A.default)
|
|
4122
4118
|
), $ = We(
|
|
4123
4119
|
() => p().then((A) => A.default)
|
|
4124
|
-
),
|
|
4120
|
+
), R = We(
|
|
4125
4121
|
() => h().then((A) => A.default)
|
|
4126
|
-
),
|
|
4122
|
+
), j = /* @__PURE__ */ new Set([
|
|
4127
4123
|
"png",
|
|
4128
4124
|
"jpg",
|
|
4129
4125
|
"jpeg",
|
|
@@ -4133,79 +4129,79 @@ const hl = {
|
|
|
4133
4129
|
"svg",
|
|
4134
4130
|
"ico"
|
|
4135
4131
|
]);
|
|
4136
|
-
function
|
|
4137
|
-
const Q = A.split(/[/\\]/).pop() ?? A, G = Q.split("?")[0] ?? Q,
|
|
4138
|
-
return
|
|
4132
|
+
function x(A) {
|
|
4133
|
+
const Q = A.split(/[/\\]/).pop() ?? A, G = Q.split("?")[0] ?? Q, me = G.lastIndexOf(".");
|
|
4134
|
+
return me >= 0 ? G.slice(me + 1).toLowerCase() : "";
|
|
4139
4135
|
}
|
|
4140
|
-
function
|
|
4136
|
+
function T(A, Q) {
|
|
4141
4137
|
if (A == null || A === "") return "unknown";
|
|
4142
|
-
const G = Q &&
|
|
4143
|
-
return !G && (A instanceof ArrayBuffer || A instanceof Blob) ? "unknown" : G === "docx" ? "docx" : G === "xlsx" || G === "xls" ? "excel" : G === "pdf" ? "pdf" : G === "pptx" ? "pptx" :
|
|
4138
|
+
const G = Q && x(Q) || (typeof A == "string" ? x(A) : "");
|
|
4139
|
+
return !G && (A instanceof ArrayBuffer || A instanceof Blob) ? "unknown" : G === "docx" ? "docx" : G === "xlsx" || G === "xls" ? "excel" : G === "pdf" ? "pdf" : G === "pptx" ? "pptx" : j.has(G) ? "image" : "unknown";
|
|
4144
4140
|
}
|
|
4145
|
-
const P =
|
|
4141
|
+
const P = F(() => n.fileList?.length ?? 0), D = F(() => P.value > 0 && n.fileList != null), g = F(() => {
|
|
4146
4142
|
if (!D.value) return 0;
|
|
4147
4143
|
const A = P.value - 1, Q = Math.floor(Number(n.fileIndex));
|
|
4148
4144
|
return Number.isNaN(Q) ? 0 : Math.min(Math.max(Q, 0), A);
|
|
4149
|
-
}),
|
|
4150
|
-
|
|
4145
|
+
}), H = F(() => !D.value || !n.fileList ? null : n.fileList[g.value] ?? null), L = F(() => H.value ? H.value.src : n.src), c = F(() => H.value?.fileName ? H.value.fileName : n.fileName);
|
|
4146
|
+
ce(
|
|
4151
4147
|
[D, P, () => n.fileIndex],
|
|
4152
4148
|
() => {
|
|
4153
|
-
D.value && n.fileIndex !==
|
|
4149
|
+
D.value && n.fileIndex !== g.value && i("update:fileIndex", g.value);
|
|
4154
4150
|
},
|
|
4155
4151
|
{ immediate: !0 }
|
|
4156
|
-
),
|
|
4152
|
+
), ce(g, (A, Q) => {
|
|
4157
4153
|
if (!D.value || A === Q) return;
|
|
4158
4154
|
const G = n.fileList?.[A] ?? null;
|
|
4159
4155
|
i("fileChange", { index: A, item: G });
|
|
4160
4156
|
});
|
|
4161
|
-
const
|
|
4162
|
-
() =>
|
|
4163
|
-
), k =
|
|
4157
|
+
const y = F(
|
|
4158
|
+
() => T(L.value, c.value)
|
|
4159
|
+
), k = F(() => {
|
|
4164
4160
|
const A = L.value;
|
|
4165
4161
|
return n.needSafe ? A ?? "" : `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(A)}`;
|
|
4166
|
-
}), U =
|
|
4162
|
+
}), U = F(
|
|
4167
4163
|
() => typeof k.value == "string" ? k.value : ""
|
|
4168
|
-
),
|
|
4169
|
-
const A = D.value ?
|
|
4170
|
-
return typeof Q == "string" ? `${A}:${
|
|
4171
|
-
}),
|
|
4164
|
+
), Y = F(() => {
|
|
4165
|
+
const A = D.value ? g.value : "", Q = L.value;
|
|
4166
|
+
return typeof Q == "string" ? `${A}:${y.value}:${Q}` : Q instanceof ArrayBuffer ? `${A}:${y.value}:ab:${Q.byteLength}` : Q instanceof Blob ? `${A}:${y.value}:blob:${Q.size}` : `${A}:${y.value}`;
|
|
4167
|
+
}), _ = F(() => {
|
|
4172
4168
|
const A = L.value;
|
|
4173
4169
|
return A != null && A !== "";
|
|
4174
|
-
}),
|
|
4170
|
+
}), I = F(() => n.height), Z = F(
|
|
4175
4171
|
() => ({
|
|
4176
4172
|
height: "100%",
|
|
4177
4173
|
width: "100%",
|
|
4178
4174
|
overflow: "auto"
|
|
4179
4175
|
})
|
|
4180
|
-
),
|
|
4176
|
+
), ne = F(
|
|
4181
4177
|
() => n.pdfStaticFileUrl != null && n.pdfStaticFileUrl !== "" ? { staticFileUrl: n.pdfStaticFileUrl } : {}
|
|
4182
|
-
),
|
|
4178
|
+
), le = F(
|
|
4183
4179
|
() => n.showNav && D.value && P.value > 1
|
|
4184
|
-
),
|
|
4185
|
-
() =>
|
|
4180
|
+
), fe = F(() => le.value && g.value > 0), Te = F(
|
|
4181
|
+
() => le.value && g.value < P.value - 1
|
|
4186
4182
|
);
|
|
4187
4183
|
function Oe() {
|
|
4188
|
-
|
|
4184
|
+
fe.value && i("update:fileIndex", g.value - 1);
|
|
4189
4185
|
}
|
|
4190
4186
|
function W() {
|
|
4191
|
-
Te.value && i("update:fileIndex",
|
|
4187
|
+
Te.value && i("update:fileIndex", g.value + 1);
|
|
4192
4188
|
}
|
|
4193
|
-
const Ee =
|
|
4194
|
-
if (!
|
|
4195
|
-
const A =
|
|
4196
|
-
return A?.fileName?.trim() || A?.downloadName?.trim() || n.fileName?.trim() || (typeof L.value == "string" &&
|
|
4197
|
-
index:
|
|
4189
|
+
const Ee = F(() => {
|
|
4190
|
+
if (!_.value) return "";
|
|
4191
|
+
const A = H.value;
|
|
4192
|
+
return A?.fileName?.trim() || A?.downloadName?.trim() || n.fileName?.trim() || (typeof L.value == "string" && x(L.value) ? (L.value.split(/[/\\]/).pop() ?? "").split("?")[0] : "") || l("hbLibComp.HbFilePreview.fileNameFallback", {
|
|
4193
|
+
index: g.value + 1
|
|
4198
4194
|
});
|
|
4199
|
-
}),
|
|
4195
|
+
}), ae = F(() => {
|
|
4200
4196
|
if (n.modalTitleOverride != null && n.modalTitleOverride !== "")
|
|
4201
4197
|
return n.modalTitleOverride;
|
|
4202
4198
|
const A = n.modalTitlePrefix ?? l("hbLibComp.HbFilePreview.modalTitle");
|
|
4203
|
-
if (!
|
|
4199
|
+
if (!_.value) return A;
|
|
4204
4200
|
const Q = Ee.value;
|
|
4205
|
-
return D.value && P.value > 1 ? Q ? `${A} — ${Q}(${
|
|
4201
|
+
return D.value && P.value > 1 ? Q ? `${A} — ${Q}(${g.value + 1} / ${P.value})` : `${A}(${g.value + 1} / ${P.value})` : Q ? `${A} — ${Q}` : A;
|
|
4206
4202
|
});
|
|
4207
4203
|
function B(A) {
|
|
4208
|
-
const Q =
|
|
4204
|
+
const Q = x(A);
|
|
4209
4205
|
return {
|
|
4210
4206
|
pdf: "application/pdf",
|
|
4211
4207
|
png: "image/png",
|
|
@@ -4222,13 +4218,13 @@ const hl = {
|
|
|
4222
4218
|
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
4223
4219
|
}[Q] || "application/octet-stream";
|
|
4224
4220
|
}
|
|
4225
|
-
function
|
|
4226
|
-
const G = URL.createObjectURL(A),
|
|
4227
|
-
|
|
4221
|
+
function z(A, Q) {
|
|
4222
|
+
const G = URL.createObjectURL(A), me = document.createElement("a");
|
|
4223
|
+
me.href = G, me.download = Q || "download", me.rel = "noopener", document.body.appendChild(me), me.click(), document.body.removeChild(me), URL.revokeObjectURL(G);
|
|
4228
4224
|
}
|
|
4229
4225
|
const q = O(!1);
|
|
4230
|
-
function
|
|
4231
|
-
const A =
|
|
4226
|
+
function re() {
|
|
4227
|
+
const A = H.value, Q = A?.downloadName || A?.fileName || n.fileName || "";
|
|
4232
4228
|
if (Q)
|
|
4233
4229
|
return Q.split(/[/\\]/).pop()?.split("?")[0] || "download";
|
|
4234
4230
|
if (typeof L.value == "string") {
|
|
@@ -4237,12 +4233,12 @@ const hl = {
|
|
|
4237
4233
|
}
|
|
4238
4234
|
return "download";
|
|
4239
4235
|
}
|
|
4240
|
-
const
|
|
4236
|
+
const pe = F(() => _.value);
|
|
4241
4237
|
async function Le() {
|
|
4242
|
-
if (!
|
|
4243
|
-
const A =
|
|
4238
|
+
if (!pe.value) return;
|
|
4239
|
+
const A = H.value, Q = D.value ? g.value : 0;
|
|
4244
4240
|
i("beforeDownload", { item: A, index: Q });
|
|
4245
|
-
const G =
|
|
4241
|
+
const G = re(), me = A?.downloadUrl;
|
|
4246
4242
|
q.value = !0;
|
|
4247
4243
|
try {
|
|
4248
4244
|
if (n.customDownload)
|
|
@@ -4253,28 +4249,28 @@ const hl = {
|
|
|
4253
4249
|
fileName: c.value,
|
|
4254
4250
|
downloadName: G
|
|
4255
4251
|
});
|
|
4256
|
-
else if (
|
|
4257
|
-
const
|
|
4258
|
-
if (!
|
|
4259
|
-
const $e = await
|
|
4260
|
-
|
|
4252
|
+
else if (me) {
|
|
4253
|
+
const he = await fetch(me);
|
|
4254
|
+
if (!he.ok) throw new Error(String(he.status));
|
|
4255
|
+
const $e = await he.blob();
|
|
4256
|
+
z($e, G);
|
|
4261
4257
|
} else {
|
|
4262
|
-
const
|
|
4263
|
-
if (typeof
|
|
4264
|
-
const $e = await fetch(
|
|
4258
|
+
const he = L.value;
|
|
4259
|
+
if (typeof he == "string") {
|
|
4260
|
+
const $e = await fetch(he);
|
|
4265
4261
|
if (!$e.ok) throw new Error(String($e.status));
|
|
4266
4262
|
const lt = await $e.blob();
|
|
4267
|
-
|
|
4268
|
-
} else if (
|
|
4269
|
-
|
|
4270
|
-
else if (
|
|
4263
|
+
z(lt, G);
|
|
4264
|
+
} else if (he instanceof Blob)
|
|
4265
|
+
z(he, G);
|
|
4266
|
+
else if (he instanceof ArrayBuffer) {
|
|
4271
4267
|
const $e = B(G);
|
|
4272
|
-
|
|
4268
|
+
z(new Blob([he], { type: $e }), G);
|
|
4273
4269
|
}
|
|
4274
4270
|
}
|
|
4275
4271
|
i("downloaded", { item: A, index: Q });
|
|
4276
|
-
} catch (
|
|
4277
|
-
i("error",
|
|
4272
|
+
} catch (he) {
|
|
4273
|
+
i("error", he);
|
|
4278
4274
|
} finally {
|
|
4279
4275
|
q.value = !1;
|
|
4280
4276
|
}
|
|
@@ -4287,7 +4283,7 @@ const hl = {
|
|
|
4287
4283
|
function Be() {
|
|
4288
4284
|
_e();
|
|
4289
4285
|
const A = L.value;
|
|
4290
|
-
if (
|
|
4286
|
+
if (y.value !== "image" || A == null || A === "") {
|
|
4291
4287
|
ye.value = "";
|
|
4292
4288
|
return;
|
|
4293
4289
|
}
|
|
@@ -4304,8 +4300,8 @@ const hl = {
|
|
|
4304
4300
|
Ce = URL.createObjectURL(G), ye.value = Ce;
|
|
4305
4301
|
}
|
|
4306
4302
|
}
|
|
4307
|
-
|
|
4308
|
-
() => [L.value,
|
|
4303
|
+
ce(
|
|
4304
|
+
() => [L.value, y.value],
|
|
4309
4305
|
() => Be(),
|
|
4310
4306
|
{ immediate: !0 }
|
|
4311
4307
|
), tt(() => {
|
|
@@ -4325,11 +4321,11 @@ const hl = {
|
|
|
4325
4321
|
}
|
|
4326
4322
|
return t({
|
|
4327
4323
|
/** 预览类型 */
|
|
4328
|
-
previewKind:
|
|
4324
|
+
previewKind: y,
|
|
4329
4325
|
/** 安全索引 */
|
|
4330
|
-
safeIndex:
|
|
4326
|
+
safeIndex: g,
|
|
4331
4327
|
/** 当前列表项 */
|
|
4332
|
-
currentListItem:
|
|
4328
|
+
currentListItem: H,
|
|
4333
4329
|
/** 有效 src */
|
|
4334
4330
|
effectiveSrc: L,
|
|
4335
4331
|
/** 有效文件名 */
|
|
@@ -4343,11 +4339,11 @@ const hl = {
|
|
|
4343
4339
|
/** 关闭 */
|
|
4344
4340
|
closeModal: u
|
|
4345
4341
|
}), (A, Q) => {
|
|
4346
|
-
const G = K("a-button"),
|
|
4347
|
-
return d(),
|
|
4342
|
+
const G = K("a-button"), me = K("a-space"), he = K("a-modal");
|
|
4343
|
+
return d(), N(he, {
|
|
4348
4344
|
"wrap-class-name": "file-preview-modal-wrap",
|
|
4349
4345
|
visible: e.visible,
|
|
4350
|
-
title:
|
|
4346
|
+
title: ae.value,
|
|
4351
4347
|
width: e.modalWidth,
|
|
4352
4348
|
centered: e.centered,
|
|
4353
4349
|
"destroy-on-close": e.destroyOnClose,
|
|
@@ -4359,22 +4355,22 @@ const hl = {
|
|
|
4359
4355
|
}, {
|
|
4360
4356
|
footer: b(() => [
|
|
4361
4357
|
m("div", wi, [
|
|
4362
|
-
|
|
4358
|
+
M(me, {
|
|
4363
4359
|
size: 8,
|
|
4364
4360
|
wrap: ""
|
|
4365
4361
|
}, {
|
|
4366
4362
|
default: b(() => [
|
|
4367
|
-
|
|
4363
|
+
le.value ? (d(), N(G, {
|
|
4368
4364
|
key: 0,
|
|
4369
|
-
disabled: !
|
|
4365
|
+
disabled: !fe.value,
|
|
4370
4366
|
onClick: Oe
|
|
4371
4367
|
}, {
|
|
4372
4368
|
default: b(() => [
|
|
4373
4369
|
E(C(v(l)("hbLibComp.HbFilePreview.prev")), 1)
|
|
4374
4370
|
]),
|
|
4375
4371
|
_: 1
|
|
4376
|
-
}, 8, ["disabled"])) :
|
|
4377
|
-
|
|
4372
|
+
}, 8, ["disabled"])) : V("", !0),
|
|
4373
|
+
le.value ? (d(), N(G, {
|
|
4378
4374
|
key: 1,
|
|
4379
4375
|
disabled: !Te.value,
|
|
4380
4376
|
onClick: W
|
|
@@ -4383,11 +4379,11 @@ const hl = {
|
|
|
4383
4379
|
E(C(v(l)("hbLibComp.HbFilePreview.next")), 1)
|
|
4384
4380
|
]),
|
|
4385
4381
|
_: 1
|
|
4386
|
-
}, 8, ["disabled"])) :
|
|
4387
|
-
e.showDownload ? (d(),
|
|
4382
|
+
}, 8, ["disabled"])) : V("", !0),
|
|
4383
|
+
e.showDownload ? (d(), N(G, {
|
|
4388
4384
|
key: 2,
|
|
4389
4385
|
type: "primary",
|
|
4390
|
-
disabled: !
|
|
4386
|
+
disabled: !pe.value,
|
|
4391
4387
|
loading: q.value,
|
|
4392
4388
|
onClick: Le
|
|
4393
4389
|
}, {
|
|
@@ -4395,8 +4391,8 @@ const hl = {
|
|
|
4395
4391
|
E(C(v(l)("hbLibComp.HbFilePreview.download")), 1)
|
|
4396
4392
|
]),
|
|
4397
4393
|
_: 1
|
|
4398
|
-
}, 8, ["disabled", "loading"])) :
|
|
4399
|
-
|
|
4394
|
+
}, 8, ["disabled", "loading"])) : V("", !0),
|
|
4395
|
+
M(G, { onClick: u }, {
|
|
4400
4396
|
default: b(() => [
|
|
4401
4397
|
E(C(v(l)("hbLibComp.HbFilePreview.close")), 1)
|
|
4402
4398
|
]),
|
|
@@ -4412,51 +4408,51 @@ const hl = {
|
|
|
4412
4408
|
e.needSafe ? (d(), w("div", {
|
|
4413
4409
|
key: 0,
|
|
4414
4410
|
class: "file-preview",
|
|
4415
|
-
style: ue({ height:
|
|
4411
|
+
style: ue({ height: I.value })
|
|
4416
4412
|
}, [
|
|
4417
4413
|
m("div", bi, [
|
|
4418
|
-
|
|
4414
|
+
_.value ? y.value === "unknown" ? (d(), w("div", hi, [
|
|
4419
4415
|
J(A.$slots, "unsupported", {}, () => [
|
|
4420
4416
|
E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4421
4417
|
], !0)
|
|
4422
|
-
])) :
|
|
4418
|
+
])) : y.value === "image" ? (d(), w("img", {
|
|
4423
4419
|
key: 2,
|
|
4424
4420
|
src: ye.value,
|
|
4425
4421
|
class: "file-preview__image",
|
|
4426
4422
|
alt: "",
|
|
4427
4423
|
onLoad: Pe,
|
|
4428
4424
|
onError: De
|
|
4429
|
-
}, null, 40, vi)) :
|
|
4430
|
-
key: `docx-${
|
|
4425
|
+
}, null, 40, vi)) : y.value === "docx" ? (d(), N(v(f), {
|
|
4426
|
+
key: `docx-${Y.value}`,
|
|
4431
4427
|
src: k.value,
|
|
4432
4428
|
class: "file-preview__office",
|
|
4433
|
-
style: ue(
|
|
4429
|
+
style: ue(Z.value),
|
|
4434
4430
|
onRendered: Se,
|
|
4435
4431
|
onError: Fe
|
|
4436
|
-
}, null, 8, ["src", "style"])) :
|
|
4437
|
-
key: `xls-${
|
|
4432
|
+
}, null, 8, ["src", "style"])) : y.value === "excel" ? (d(), N(v(S), {
|
|
4433
|
+
key: `xls-${Y.value}`,
|
|
4438
4434
|
src: k.value,
|
|
4439
4435
|
class: "file-preview__office",
|
|
4440
|
-
style: ue(
|
|
4436
|
+
style: ue(Z.value),
|
|
4441
4437
|
options: e.excelOptions,
|
|
4442
4438
|
onRendered: Se,
|
|
4443
4439
|
onError: Fe
|
|
4444
|
-
}, null, 8, ["src", "style", "options"])) :
|
|
4445
|
-
key: `pdf-${
|
|
4440
|
+
}, null, 8, ["src", "style", "options"])) : y.value === "pdf" ? (d(), N(v($), de({
|
|
4441
|
+
key: `pdf-${Y.value}`,
|
|
4446
4442
|
src: k.value,
|
|
4447
4443
|
class: "file-preview__office",
|
|
4448
|
-
style:
|
|
4449
|
-
},
|
|
4444
|
+
style: Z.value
|
|
4445
|
+
}, ne.value, {
|
|
4450
4446
|
onRendered: Se,
|
|
4451
4447
|
onError: Fe
|
|
4452
|
-
}), null, 16, ["src", "style"])) :
|
|
4453
|
-
key: `pptx-${
|
|
4448
|
+
}), null, 16, ["src", "style"])) : y.value === "pptx" ? (d(), N(v(R), {
|
|
4449
|
+
key: `pptx-${Y.value}`,
|
|
4454
4450
|
src: k.value,
|
|
4455
4451
|
class: "file-preview__office",
|
|
4456
|
-
style: ue(
|
|
4452
|
+
style: ue(Z.value),
|
|
4457
4453
|
onRendered: Se,
|
|
4458
4454
|
onError: Fe
|
|
4459
|
-
}, null, 8, ["src", "style"])) :
|
|
4455
|
+
}, null, 8, ["src", "style"])) : V("", !0) : (d(), w("div", mi, [
|
|
4460
4456
|
J(A.$slots, "empty", {}, () => [
|
|
4461
4457
|
E(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
|
|
4462
4458
|
], !0)
|
|
@@ -4465,14 +4461,14 @@ const hl = {
|
|
|
4465
4461
|
], 4)) : (d(), w("div", {
|
|
4466
4462
|
key: 1,
|
|
4467
4463
|
class: "file-preview",
|
|
4468
|
-
style: ue({ height:
|
|
4464
|
+
style: ue({ height: I.value })
|
|
4469
4465
|
}, [
|
|
4470
4466
|
m("div", gi, [
|
|
4471
|
-
|
|
4467
|
+
_.value ? y.value === "unknown" ? (d(), w("div", _i, [
|
|
4472
4468
|
J(A.$slots, "unsupported", {}, () => [
|
|
4473
4469
|
E(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4474
4470
|
], !0)
|
|
4475
|
-
])) :
|
|
4471
|
+
])) : y.value === "image" ? (d(), w("img", {
|
|
4476
4472
|
key: 2,
|
|
4477
4473
|
src: ye.value,
|
|
4478
4474
|
class: "file-preview__image",
|
|
@@ -4498,7 +4494,7 @@ const hl = {
|
|
|
4498
4494
|
}, 8, ["visible", "title", "width", "centered", "destroy-on-close", "mask-closable", "keyboard"]);
|
|
4499
4495
|
};
|
|
4500
4496
|
}
|
|
4501
|
-
}), Si = /* @__PURE__ */
|
|
4497
|
+
}), Si = /* @__PURE__ */ se(ki, [["__scopeId", "data-v-513d7b3b"]]), xi = ie(Si), to = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.css", Ti = "//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.js", oo = Symbol("HB_ICON_GLOBAL_KEY"), Fi = ve(oo, {});
|
|
4502
4498
|
function Hi(e) {
|
|
4503
4499
|
return e.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js");
|
|
4504
4500
|
}
|
|
@@ -4586,7 +4582,7 @@ function yt(e, t = "font", o) {
|
|
|
4586
4582
|
}
|
|
4587
4583
|
const n = O(""), i = O(""), l = O([]), r = O("font");
|
|
4588
4584
|
let u = 0;
|
|
4589
|
-
return
|
|
4585
|
+
return ce(() => mo(e), async (s) => {
|
|
4590
4586
|
const p = ++u, h = s || e;
|
|
4591
4587
|
if (!h) {
|
|
4592
4588
|
n.value = "", i.value = "", l.value = [], r.value = "font";
|
|
@@ -4599,9 +4595,9 @@ function yt(e, t = "font", o) {
|
|
|
4599
4595
|
const $ = $i(
|
|
4600
4596
|
o?.symbolIdScope,
|
|
4601
4597
|
h
|
|
4602
|
-
),
|
|
4603
|
-
if (await Pi(
|
|
4604
|
-
r.value = "symbol", n.value = "", i.value =
|
|
4598
|
+
), R = Ii(S, $), { prefix: j, names: x } = Ai(R);
|
|
4599
|
+
if (await Pi(R, h, $), p !== u) return;
|
|
4600
|
+
r.value = "symbol", n.value = "", i.value = j, l.value = x;
|
|
4605
4601
|
} catch (f) {
|
|
4606
4602
|
console.error(
|
|
4607
4603
|
"[HbLibIcon] 加载 iconfont Symbol 失败:",
|
|
@@ -4614,9 +4610,9 @@ function yt(e, t = "font", o) {
|
|
|
4614
4610
|
try {
|
|
4615
4611
|
const S = await (await fetch(h)).text();
|
|
4616
4612
|
Oi(S, "hb-iconfont-" + h);
|
|
4617
|
-
const { baseClass: $, prefix:
|
|
4613
|
+
const { baseClass: $, prefix: R, names: j } = Di(S);
|
|
4618
4614
|
if (p !== u) return;
|
|
4619
|
-
r.value = "font", n.value = $, i.value =
|
|
4615
|
+
r.value = "font", n.value = $, i.value = R, l.value = j;
|
|
4620
4616
|
} catch (f) {
|
|
4621
4617
|
console.error(
|
|
4622
4618
|
"[HbLibIcon] 加载 iconfont CSS 失败:",
|
|
@@ -4635,7 +4631,7 @@ const Ui = { class: "hb-icon-list" }, Ei = ["onClick"], Ri = {
|
|
|
4635
4631
|
key: 1,
|
|
4636
4632
|
class: "hb-icon-list__symbol",
|
|
4637
4633
|
"aria-hidden": "true"
|
|
4638
|
-
}, Ni = ["href"], zi = { class: "hb-icon-list__name" }, Vi = /* @__PURE__ */
|
|
4634
|
+
}, Ni = ["href"], zi = { class: "hb-icon-list__name" }, Vi = /* @__PURE__ */ oe({
|
|
4639
4635
|
name: "HbLibIconList",
|
|
4640
4636
|
__name: "icon_list",
|
|
4641
4637
|
props: {
|
|
@@ -4648,11 +4644,11 @@ const Ui = { class: "hb-icon-list" }, Ei = ["onClick"], Ri = {
|
|
|
4648
4644
|
function o(f) {
|
|
4649
4645
|
return typeof CSS < "u" && CSS.escape ? CSS.escape(f) : f;
|
|
4650
4646
|
}
|
|
4651
|
-
const n = e, i = t, l =
|
|
4647
|
+
const n = e, i = t, l = F(() => n.cssUrl || ""), { iconBaseClass: r, iconPrefix: u, iconClasses: a, iconMode: s } = yt(
|
|
4652
4648
|
l,
|
|
4653
4649
|
n.mode
|
|
4654
4650
|
), p = O(n.selected);
|
|
4655
|
-
|
|
4651
|
+
ce(
|
|
4656
4652
|
() => n.selected,
|
|
4657
4653
|
(f) => {
|
|
4658
4654
|
p.value = f;
|
|
@@ -4668,10 +4664,10 @@ const Ui = { class: "hb-icon-list" }, Ei = ["onClick"], Ri = {
|
|
|
4668
4664
|
iconPrefix: v(u),
|
|
4669
4665
|
iconMode: v(s)
|
|
4670
4666
|
}, () => [
|
|
4671
|
-
(d(!0), w(
|
|
4667
|
+
(d(!0), w(te, null, be(v(a), ($) => (d(), w("div", {
|
|
4672
4668
|
key: $,
|
|
4673
4669
|
class: X(["hb-icon-list__item", { "hb-icon-list__item--active": $ === p.value }]),
|
|
4674
|
-
onClick: (
|
|
4670
|
+
onClick: (R) => h($)
|
|
4675
4671
|
}, [
|
|
4676
4672
|
v(s) === "font" ? (d(), w("i", {
|
|
4677
4673
|
key: 0,
|
|
@@ -4686,7 +4682,7 @@ const Ui = { class: "hb-icon-list" }, Ei = ["onClick"], Ri = {
|
|
|
4686
4682
|
], !0)
|
|
4687
4683
|
]));
|
|
4688
4684
|
}
|
|
4689
|
-
}), mt = /* @__PURE__ */
|
|
4685
|
+
}), mt = /* @__PURE__ */ se(Vi, [["__scopeId", "data-v-35e114dd"]]), lo = mt;
|
|
4690
4686
|
lo.install = (e, t) => {
|
|
4691
4687
|
e.provide(oo, {
|
|
4692
4688
|
cssUrl: t?.cssUrl ?? to,
|
|
@@ -4695,7 +4691,7 @@ lo.install = (e, t) => {
|
|
|
4695
4691
|
const o = mt.name ?? "HbLibIconList";
|
|
4696
4692
|
e.component(o, mt);
|
|
4697
4693
|
};
|
|
4698
|
-
const ji = ["href"], Wi = /* @__PURE__ */
|
|
4694
|
+
const ji = ["href"], Wi = /* @__PURE__ */ oe({
|
|
4699
4695
|
name: "HbLibIcon",
|
|
4700
4696
|
__name: "icon",
|
|
4701
4697
|
props: {
|
|
@@ -4710,21 +4706,21 @@ const ji = ["href"], Wi = /* @__PURE__ */ te({
|
|
|
4710
4706
|
hover: { type: [Boolean, String], default: !1 }
|
|
4711
4707
|
},
|
|
4712
4708
|
setup(e) {
|
|
4713
|
-
const t = e, o =
|
|
4714
|
-
() => t.iBaseClass && O(t.iBaseClass) ||
|
|
4715
|
-
), n =
|
|
4716
|
-
() => t.iPrefix && O(t.iPrefix) ||
|
|
4717
|
-
), i =
|
|
4718
|
-
() => t.iMode && O(t.iMode) ||
|
|
4719
|
-
), l =
|
|
4720
|
-
const S = l?.HbLibIcon, $ = t.width ?? S?.width ?? 27,
|
|
4709
|
+
const t = e, o = F(
|
|
4710
|
+
() => t.iBaseClass && O(t.iBaseClass) || ve("iconBaseClass") || O("")
|
|
4711
|
+
), n = F(
|
|
4712
|
+
() => t.iPrefix && O(t.iPrefix) || ve("iconPrefix") || O("")
|
|
4713
|
+
), i = F(
|
|
4714
|
+
() => t.iMode && O(t.iMode) || ve("iconMode") || O("")
|
|
4715
|
+
), l = ve(nt, null), r = F(() => {
|
|
4716
|
+
const S = l?.HbLibIcon, $ = t.width ?? S?.width ?? 27, R = t.height ?? S?.height ?? 27;
|
|
4721
4717
|
return {
|
|
4722
4718
|
width: $ + "px",
|
|
4723
|
-
height:
|
|
4719
|
+
height: R + "px",
|
|
4724
4720
|
display: "inline-block",
|
|
4725
4721
|
...f()
|
|
4726
4722
|
};
|
|
4727
|
-
}), u =
|
|
4723
|
+
}), u = F(() => t.name ? n.value.value && t.name.startsWith(n.value.value) ? t.name : `${n.value.value}${t.name}` : ""), a = F(() => {
|
|
4728
4724
|
const S = [
|
|
4729
4725
|
"hb-lib-icon__font",
|
|
4730
4726
|
o.value.value,
|
|
@@ -4735,7 +4731,7 @@ const ji = ["href"], Wi = /* @__PURE__ */ te({
|
|
|
4735
4731
|
function s(S) {
|
|
4736
4732
|
return encodeURIComponent(S);
|
|
4737
4733
|
}
|
|
4738
|
-
const p =
|
|
4734
|
+
const p = F(() => {
|
|
4739
4735
|
const S = u.value;
|
|
4740
4736
|
return S ? `#${s(S)}` : "";
|
|
4741
4737
|
}), h = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/, f = () => {
|
|
@@ -4759,7 +4755,7 @@ const ji = ["href"], Wi = /* @__PURE__ */ te({
|
|
|
4759
4755
|
], 6))
|
|
4760
4756
|
], 6));
|
|
4761
4757
|
}
|
|
4762
|
-
}), qi = /* @__PURE__ */
|
|
4758
|
+
}), qi = /* @__PURE__ */ se(Wi, [["__scopeId", "data-v-9a2203c0"]]), ht = qi;
|
|
4763
4759
|
ht.install = (e, t) => {
|
|
4764
4760
|
const o = t?.iconURL || void 0;
|
|
4765
4761
|
if (o) {
|
|
@@ -4769,7 +4765,7 @@ ht.install = (e, t) => {
|
|
|
4769
4765
|
const n = t?.name || "HbLibIcon";
|
|
4770
4766
|
e.component(n, ht);
|
|
4771
4767
|
};
|
|
4772
|
-
const Yi = /* @__PURE__ */
|
|
4768
|
+
const Yi = /* @__PURE__ */ oe({
|
|
4773
4769
|
__name: "iconBox",
|
|
4774
4770
|
props: {
|
|
4775
4771
|
url: {},
|
|
@@ -4999,50 +4995,50 @@ function Ye(e) {
|
|
|
4999
4995
|
return e.attachmentDesc?.trim() || e.fileName?.trim() || "download";
|
|
5000
4996
|
}
|
|
5001
4997
|
function ks(e) {
|
|
5002
|
-
const { t } =
|
|
5003
|
-
() => u.value.reduce((k, U,
|
|
5004
|
-
const
|
|
5005
|
-
if (!
|
|
5006
|
-
const
|
|
4998
|
+
const { t } = ge(), o = O(!1), n = O(""), i = O(""), l = O(-1), r = O(-1), u = F(() => e.value.attachmentInfos ?? []), a = F(
|
|
4999
|
+
() => u.value.reduce((k, U, Y) => {
|
|
5000
|
+
const _ = zt(U);
|
|
5001
|
+
if (!_) return k;
|
|
5002
|
+
const I = Ye(U);
|
|
5007
5003
|
return k.push({
|
|
5008
|
-
attachmentIndex:
|
|
5004
|
+
attachmentIndex: Y,
|
|
5009
5005
|
record: U,
|
|
5010
5006
|
item: {
|
|
5011
|
-
src:
|
|
5012
|
-
fileName:
|
|
5013
|
-
downloadName:
|
|
5007
|
+
src: _,
|
|
5008
|
+
fileName: I,
|
|
5009
|
+
downloadName: I,
|
|
5014
5010
|
downloadUrl: qe(U) || void 0
|
|
5015
5011
|
}
|
|
5016
5012
|
}), k;
|
|
5017
5013
|
}, [])
|
|
5018
|
-
), s =
|
|
5014
|
+
), s = F(
|
|
5019
5015
|
() => a.value.map((k) => k.item)
|
|
5020
|
-
), p =
|
|
5016
|
+
), p = F(
|
|
5021
5017
|
() => r.value >= 0 ? s.value : []
|
|
5022
|
-
), h =
|
|
5018
|
+
), h = F(() => {
|
|
5023
5019
|
const k = r.value;
|
|
5024
5020
|
return k >= 0 ? a.value[k] ?? null : null;
|
|
5025
|
-
}), f =
|
|
5021
|
+
}), f = F(
|
|
5026
5022
|
() => h.value?.item ?? null
|
|
5027
|
-
), S =
|
|
5023
|
+
), S = F(
|
|
5028
5024
|
() => r.value > 0 && s.value.length > 1
|
|
5029
|
-
), $ =
|
|
5025
|
+
), $ = F(
|
|
5030
5026
|
() => r.value >= 0 && r.value < s.value.length - 1
|
|
5031
|
-
),
|
|
5032
|
-
l.value =
|
|
5033
|
-
},
|
|
5027
|
+
), R = F(() => s.value.length > 1), j = (k, U, Y, _) => {
|
|
5028
|
+
l.value = Y, r.value = _, n.value = k, i.value = U, o.value = !0;
|
|
5029
|
+
}, x = (k) => {
|
|
5034
5030
|
const U = a.value[k];
|
|
5035
|
-
U &&
|
|
5031
|
+
U && j(
|
|
5036
5032
|
String(U.item.src),
|
|
5037
5033
|
U.item.fileName || "",
|
|
5038
5034
|
U.attachmentIndex,
|
|
5039
5035
|
k
|
|
5040
5036
|
);
|
|
5041
|
-
},
|
|
5037
|
+
}, T = (k) => {
|
|
5042
5038
|
const U = a.value.findIndex(
|
|
5043
|
-
(
|
|
5039
|
+
(Y) => Y.attachmentIndex === k
|
|
5044
5040
|
);
|
|
5045
|
-
U < 0 ||
|
|
5041
|
+
U < 0 || x(U);
|
|
5046
5042
|
};
|
|
5047
5043
|
return {
|
|
5048
5044
|
filePreviewVisible: o,
|
|
@@ -5055,21 +5051,21 @@ function ks(e) {
|
|
|
5055
5051
|
currentPreviewFile: f,
|
|
5056
5052
|
hasPrevAttachment: S,
|
|
5057
5053
|
hasNextAttachment: $,
|
|
5058
|
-
showAttachmentNavBar:
|
|
5054
|
+
showAttachmentNavBar: R,
|
|
5059
5055
|
handlePreview: (k, U) => {
|
|
5060
|
-
const
|
|
5061
|
-
if (!
|
|
5056
|
+
const Y = zt(k);
|
|
5057
|
+
if (!Y) {
|
|
5062
5058
|
Me.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));
|
|
5063
5059
|
return;
|
|
5064
5060
|
}
|
|
5065
|
-
const
|
|
5061
|
+
const _ = es(u.value, k, {
|
|
5066
5062
|
preferredIndex: U
|
|
5067
5063
|
});
|
|
5068
|
-
if (
|
|
5069
|
-
|
|
5064
|
+
if (_ >= 0) {
|
|
5065
|
+
T(_);
|
|
5070
5066
|
return;
|
|
5071
5067
|
}
|
|
5072
|
-
Y
|
|
5068
|
+
j(Y, Ye(k), -1, -1);
|
|
5073
5069
|
},
|
|
5074
5070
|
handleDownload: (k) => {
|
|
5075
5071
|
const U = qe(k);
|
|
@@ -5083,13 +5079,13 @@ function ks(e) {
|
|
|
5083
5079
|
o.value = !1, l.value = -1, r.value = -1, n.value = "", i.value = "";
|
|
5084
5080
|
},
|
|
5085
5081
|
handlePreviewFileIndexChange: (k) => {
|
|
5086
|
-
|
|
5082
|
+
x(k);
|
|
5087
5083
|
},
|
|
5088
5084
|
goPrevAttachment: () => {
|
|
5089
|
-
S.value &&
|
|
5085
|
+
S.value && x(r.value - 1);
|
|
5090
5086
|
},
|
|
5091
5087
|
goNextAttachment: () => {
|
|
5092
|
-
$.value &&
|
|
5088
|
+
$.value && x(r.value + 1);
|
|
5093
5089
|
},
|
|
5094
5090
|
triggerBrowserDownload: st,
|
|
5095
5091
|
handleBatchDownloadAttachment: async () => {
|
|
@@ -5101,9 +5097,9 @@ function ks(e) {
|
|
|
5101
5097
|
return;
|
|
5102
5098
|
}
|
|
5103
5099
|
for (let U = 0; U < k.length; U++) {
|
|
5104
|
-
const
|
|
5105
|
-
await st(qe(
|
|
5106
|
-
(
|
|
5100
|
+
const Y = k[U];
|
|
5101
|
+
await st(qe(Y), Ye(Y)), U < k.length - 1 && await new Promise(
|
|
5102
|
+
(_) => setTimeout(_, ls)
|
|
5107
5103
|
);
|
|
5108
5104
|
}
|
|
5109
5105
|
}
|