@hb-hellotech/hb-ui 2.7.2-beta.8 → 2.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts +1 -0
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/HbTableAct.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts.map +1 -1
- package/dist/components/business_comp/modal_comp/log_modal/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_card/index.d.ts +6 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.d.ts +3 -0
- package/dist/components/business_comp/unlist_page_comp/hb_card/src/HbLibCard.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_detail_box/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_footer_bar/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_page_header/index.d.ts.map +1 -1
- package/dist/components/business_comp/unlist_page_comp/hb_undetail_box/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_drag/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_sort/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_file_preview/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon/index.d.ts +1 -0
- package/dist/components/func_comp/hb_func_icon/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon/src/icon.d.ts +4 -10
- package/dist/components/func_comp/hb_func_icon/src/icon.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon/src/type.d.ts +21 -0
- package/dist/components/func_comp/hb_func_icon/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_icon_list/index.d.ts +1 -0
- package/dist/components/func_comp/hb_func_icon_list/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon_list/src/icon_list.d.ts +3 -10
- package/dist/components/func_comp/hb_func_icon_list/src/icon_list.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_icon_list/src/type.d.ts +9 -0
- package/dist/components/func_comp/hb_func_icon_list/src/type.d.ts.map +1 -0
- package/dist/components/func_comp/hb_func_loading/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_icon_box/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_ui_config/index.d.ts +1 -0
- package/dist/components/func_comp/hb_ui_config/index.d.ts.map +1 -1
- package/dist/components/hooks/useCalTableHeight.d.ts.map +1 -1
- package/dist/components/hooks/useCalTableWidth.d.ts.map +1 -1
- package/dist/components/hooks/useFilePreview.d.ts.map +1 -1
- package/dist/components/hooks/useIconfont.d.ts +6 -4
- package/dist/components/hooks/useIconfont.d.ts.map +1 -1
- package/dist/components/hooks/useListFormItem.d.ts.map +1 -1
- package/dist/components/hooks/useModalDrag.d.ts.map +1 -1
- package/dist/components/utils/createBem.d.ts +2 -1
- package/dist/components/utils/createBem.d.ts.map +1 -1
- package/dist/components/utils/directives/click_outside/index.d.ts.map +1 -1
- package/dist/components/utils/directives/debounce_click/index.d.ts.map +1 -1
- package/dist/components/utils/directives/v_copy/index.d.ts.map +1 -1
- package/dist/components/utils/triggerBrowserDownload.d.ts +3 -1
- package/dist/components/utils/triggerBrowserDownload.d.ts.map +1 -1
- package/dist/components/utils/util.d.ts +14 -7
- package/dist/components/utils/util.d.ts.map +1 -1
- package/dist/components/utils/withInstall.d.ts +2 -1
- package/dist/components/utils/withInstall.d.ts.map +1 -1
- package/dist/demo/FormItemSave.d.ts.map +1 -1
- package/dist/demo/HbLibIcon.d.ts.map +1 -1
- package/dist/demo/HbModal.d.ts.map +1 -1
- package/dist/demo/Table.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1065 -1019
- package/dist/hb_component_lib.umd.cjs +68 -68
- package/package.json +5 -4
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as te, inject as he, computed as
|
|
2
|
+
import { defineComponent as te, inject as he, computed as H, reactive as Ve, ref as O, watch as se, onMounted as Fe, createElementBlock as w, openBlock as c, normalizeClass as X, unref as v, createVNode as I, withCtx as b, createElementVNode as m, toDisplayString as C, createTextVNode as R, createBlock as E, createCommentVNode as z, Fragment as ee, renderList as fe, resolveComponent as K, Transition as so, withDirectives as we, mergeProps as ce, createSlots as Ne, renderSlot as J, vShow as ro, nextTick as Me, onUnmounted as je, useTemplateRef as co, provide as Ue, normalizeStyle as de, 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
|
-
import { Modal as ct, Button as dt, message as Ie, Tooltip as Xe, Switch as
|
|
5
|
-
import { useRoute as
|
|
4
|
+
import { Modal as ct, Button as dt, message as Ie, 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
|
+
import { useRoute as vt } from "vue-router";
|
|
6
6
|
import { useI18n as ve } from "vue-i18n";
|
|
7
7
|
import ke from "lodash";
|
|
8
|
-
import { CloseOutlined as
|
|
9
|
-
import { useFullscreen as
|
|
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
|
+
import { useFullscreen as Jt, useDebounceFn as To, useElementBounding as Fo, useScroll as Ho, useDraggable as $o, isClient as Io } from "@vueuse/core";
|
|
10
10
|
import ot from "dayjs";
|
|
11
|
-
const
|
|
12
|
-
const t = `${
|
|
13
|
-
return
|
|
14
|
-
}, Ae = (e, t, o, n) => (t && (e += `-${t}`), o && (e += `__${o}`), n && (e += `--${n}`), e),
|
|
11
|
+
const Mo = "hb-", gt = (e = "") => {
|
|
12
|
+
const t = `${Mo}${e}`;
|
|
13
|
+
return Bo(t);
|
|
14
|
+
}, Ae = (e, t, o, n) => (t && (e += `-${t}`), o && (e += `__${o}`), n && (e += `--${n}`), e), Bo = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (t) => t ? Ae(e, t, "", "") : Ae(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -26,7 +26,7 @@ const Io = "hb-", vt = (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
|
-
}),
|
|
29
|
+
}), Do = ["onMouseenter", "onMouseleave"], Ao = ["onClick"], Oo = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -39,18 +39,18 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: o }) {
|
|
42
|
-
const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s =
|
|
42
|
+
const n = he("globalCompConfig", {}), i = ve().t, l = ve().messages.value.en_US, r = ve().messages.value.ja_JP, u = ve().messages.value.zh_CN, a = e, s = H(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = H(() => a.title || i("hbLibComp.hbFormItemFilterModal.title")), h = o, f = gt("sfcm"), T = vt(), $ = Ve({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
44
|
}), U = O(!1), V = O(600);
|
|
45
45
|
let k = [];
|
|
46
|
-
const S = O([]), A = O([]), D =
|
|
46
|
+
const S = O([]), A = O([]), D = H(() => S.value.every((M) => M.isLinked || M.isFixed)), g = (M) => ({
|
|
47
47
|
...M,
|
|
48
48
|
label: y(M) || `${x(M) || ""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
49
|
key: M.key,
|
|
50
50
|
isFixed: M?.isFixed || !1,
|
|
51
51
|
isLinked: M?.isLinked || !1,
|
|
52
52
|
labelLanguage: M?.labelLanguage || void 0
|
|
53
|
-
}),
|
|
53
|
+
}), F = (M) => {
|
|
54
54
|
const N = M.draggedContext.element, W = M.relatedContext.index;
|
|
55
55
|
if (N.isLinked || N.isFixed)
|
|
56
56
|
return !1;
|
|
@@ -63,7 +63,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, L =
|
|
66
|
+
}, L = H(() => d() + "_" + a.saveKey), d = () => {
|
|
67
67
|
const M = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let N = "anonymous";
|
|
69
69
|
if (M)
|
|
@@ -72,17 +72,17 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
72
72
|
} catch (ie) {
|
|
73
73
|
console.warn("解析用户信息失败:", ie);
|
|
74
74
|
}
|
|
75
|
-
let W =
|
|
75
|
+
let W = T?.path;
|
|
76
76
|
return `searchFormConfig_${N}_${W}`;
|
|
77
77
|
}, y = (M) => ({
|
|
78
78
|
ja_JP: () => ke.get(r, M.labelLanguage || ""),
|
|
79
79
|
en_US: () => ke.get(l, M.labelLanguage || ""),
|
|
80
80
|
zh_CN: () => ke.get(u, M.labelLanguage || "")
|
|
81
|
-
})[
|
|
81
|
+
})[$.lan]?.() || M.label, x = (M) => ({
|
|
82
82
|
ja_JP: () => ke.get(r, M.subLabelLanguage || ""),
|
|
83
83
|
en_US: () => ke.get(l, M.subLabelLanguage || ""),
|
|
84
84
|
zh_CN: () => ke.get(u, M.subLabelLanguage || "")
|
|
85
|
-
})[
|
|
85
|
+
})[$.lan]?.() || M.subLabel, P = (M) => Array.isArray(M) ? M.map((N) => {
|
|
86
86
|
if (typeof N == "string")
|
|
87
87
|
return N;
|
|
88
88
|
if (N && typeof N == "object" && "key" in N) {
|
|
@@ -105,11 +105,11 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
105
105
|
...g(Z)
|
|
106
106
|
})), G = Be.map((Z) => ({
|
|
107
107
|
...g(Z)
|
|
108
|
-
})),
|
|
108
|
+
})), be = De.slice(0, B).map((Z) => ({
|
|
109
109
|
...g(Z)
|
|
110
110
|
}));
|
|
111
|
-
S.value = [...Q, ...G, ...
|
|
112
|
-
const
|
|
111
|
+
S.value = [...Q, ...G, ...be];
|
|
112
|
+
const me = S.value.map((Z) => Z.key), lt = k.map((Z) => Z.key).filter((Z) => !me.includes(Z));
|
|
113
113
|
return A.value = k.filter((Z) => lt.includes(Z.key)).map((Z) => ({
|
|
114
114
|
...g(Z),
|
|
115
115
|
active: !1
|
|
@@ -130,7 +130,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
130
130
|
} catch (M) {
|
|
131
131
|
console.warn("保存搜索配置失败:", M);
|
|
132
132
|
}
|
|
133
|
-
},
|
|
133
|
+
}, pe = H(() => {
|
|
134
134
|
const M = S.value.filter((W) => !W.isFixed && !W.isLinked).length, N = S.value.filter((W) => W.isFixed || W.isLinked).length;
|
|
135
135
|
return M >= s.value - N;
|
|
136
136
|
});
|
|
@@ -160,7 +160,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
160
160
|
const N = S.value.findIndex((W) => W.key === M.key);
|
|
161
161
|
N !== -1 && (S.value.splice(N, 1), A.value.push({ ...M, active: !1 }));
|
|
162
162
|
}, ge = (M) => {
|
|
163
|
-
if (
|
|
163
|
+
if (pe.value) {
|
|
164
164
|
Ie.warning(`当前已经超过${i(s.value)}个可选数量,请先删除已显示条件`);
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
@@ -175,7 +175,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
175
175
|
U.value = !0;
|
|
176
176
|
}, j = () => {
|
|
177
177
|
ae(), h("confirm", S.value), xe();
|
|
178
|
-
},
|
|
178
|
+
}, Re = (M) => {
|
|
179
179
|
const N = A.value.findIndex((W) => W.key === M.key);
|
|
180
180
|
N !== -1 && (A.value[N].active = !0);
|
|
181
181
|
}, oe = (M) => {
|
|
@@ -186,9 +186,9 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
186
186
|
toOpenModal: Oe
|
|
187
187
|
}), Fe(() => {
|
|
188
188
|
}), (M, N) => (c(), w("div", {
|
|
189
|
-
class: X(v(
|
|
189
|
+
class: X(v(f).b())
|
|
190
190
|
}, [
|
|
191
|
-
|
|
191
|
+
I(v(ct), {
|
|
192
192
|
visible: U.value,
|
|
193
193
|
"onUpdate:visible": N[1] || (N[1] = (W) => U.value = W),
|
|
194
194
|
width: V.value,
|
|
@@ -197,57 +197,57 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
197
197
|
}, {
|
|
198
198
|
title: b(() => [
|
|
199
199
|
m("div", {
|
|
200
|
-
class: X(v(
|
|
201
|
-
}, C(
|
|
200
|
+
class: X(v(f).e("title"))
|
|
201
|
+
}, C(p.value), 3)
|
|
202
202
|
]),
|
|
203
203
|
footer: b(() => [
|
|
204
|
-
|
|
204
|
+
I(v(dt), { onClick: xe }, {
|
|
205
205
|
default: b(() => [
|
|
206
|
-
|
|
206
|
+
R(C(M.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
209
|
}),
|
|
210
|
-
|
|
210
|
+
I(v(dt), {
|
|
211
211
|
type: "primary",
|
|
212
212
|
onClick: j
|
|
213
213
|
}, {
|
|
214
214
|
default: b(() => [
|
|
215
|
-
|
|
215
|
+
R(C(M.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
218
218
|
})
|
|
219
219
|
]),
|
|
220
220
|
default: b(() => [
|
|
221
221
|
m("section", {
|
|
222
|
-
class: X(v(
|
|
222
|
+
class: X(v(f).e("show"))
|
|
223
223
|
}, [
|
|
224
224
|
m("div", {
|
|
225
|
-
class: X(v(
|
|
225
|
+
class: X(v(f).e("show__title"))
|
|
226
226
|
}, [
|
|
227
227
|
m("span", {
|
|
228
|
-
class: X(v(
|
|
228
|
+
class: X(v(f).e("title__tip"))
|
|
229
229
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
230
230
|
m("span", null, C(M.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + C(s.value) + C(M.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
231
231
|
], 2),
|
|
232
232
|
m("div", {
|
|
233
|
-
class: X(v(
|
|
233
|
+
class: X(v(f).e("show__tag"))
|
|
234
234
|
}, [
|
|
235
|
-
|
|
235
|
+
I(v(Je), {
|
|
236
236
|
modelValue: S.value,
|
|
237
237
|
"onUpdate:modelValue": N[0] || (N[0] = (W) => S.value = W),
|
|
238
238
|
"item-key": "key",
|
|
239
239
|
tag: "div",
|
|
240
240
|
disabled: D.value,
|
|
241
|
-
move:
|
|
241
|
+
move: F
|
|
242
242
|
}, {
|
|
243
243
|
item: b(({ element: W }) => [
|
|
244
244
|
m("div", {
|
|
245
|
-
class: X([v(
|
|
245
|
+
class: X([v(f).e("show__tag__item"), v(f).is("fixed", W.isFixed), v(f).is("linked", W.isLinked)])
|
|
246
246
|
}, [
|
|
247
|
-
|
|
248
|
-
!W.isFixed && !W.isLinked && e.list.length > 1 ? (c(),
|
|
247
|
+
R(C(W.label) + " ", 1),
|
|
248
|
+
!W.isFixed && !W.isLinked && e.list.length > 1 ? (c(), E(v(Lo), {
|
|
249
249
|
key: 0,
|
|
250
|
-
class: X(v(
|
|
250
|
+
class: X(v(f).e("show__tag__item-close")),
|
|
251
251
|
onClick: (ie) => re(W)
|
|
252
252
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
253
253
|
], 2)
|
|
@@ -257,33 +257,33 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
257
257
|
], 2)
|
|
258
258
|
], 2),
|
|
259
259
|
m("section", {
|
|
260
|
-
class: X(v(
|
|
260
|
+
class: X(v(f).e("unshow"))
|
|
261
261
|
}, [
|
|
262
262
|
m("div", {
|
|
263
|
-
class: X(v(
|
|
263
|
+
class: X(v(f).e("show__title"))
|
|
264
264
|
}, [
|
|
265
265
|
m("span", {
|
|
266
|
-
class: X(v(
|
|
266
|
+
class: X(v(f).e("title__tip"))
|
|
267
267
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
268
268
|
], 2),
|
|
269
269
|
m("div", {
|
|
270
|
-
class: X(v(
|
|
270
|
+
class: X(v(f).e("unshow__tag"))
|
|
271
271
|
}, [
|
|
272
|
-
A.value.length > 0 ? (c(!0), w(ee, { key: 0 },
|
|
272
|
+
A.value.length > 0 ? (c(!0), w(ee, { key: 0 }, fe(A.value, (W) => (c(), w("div", {
|
|
273
273
|
key: W.key,
|
|
274
|
-
class: X([v(
|
|
275
|
-
onMouseenter: (ie) =>
|
|
274
|
+
class: X([v(f).e("unshow__tag__item"), v(f).is("fixed", W.isFixed || ""), v(f).is("linked", W.isLinked || "")]),
|
|
275
|
+
onMouseenter: (ie) => Re(W),
|
|
276
276
|
onMouseleave: (ie) => oe(W)
|
|
277
277
|
}, [
|
|
278
|
-
|
|
278
|
+
R(C(W.label) + " ", 1),
|
|
279
279
|
W.active ? (c(), w("aside", {
|
|
280
280
|
key: 0,
|
|
281
|
-
class: X(v(
|
|
281
|
+
class: X(v(f).e("unshow__tag__item-add")),
|
|
282
282
|
onClick: (ie) => ge(W)
|
|
283
|
-
}, C(M.$t("hbLibComp.hbFormItemFilterModal.add")), 11,
|
|
284
|
-
], 42,
|
|
283
|
+
}, C(M.$t("hbLibComp.hbFormItemFilterModal.add")), 11, Ao)) : z("", !0)
|
|
284
|
+
], 42, Do))), 128)) : (c(), w("div", {
|
|
285
285
|
key: 1,
|
|
286
|
-
class: X(v(
|
|
286
|
+
class: X(v(f).e("unshow__tag__empty"))
|
|
287
287
|
}, C(M.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
288
288
|
], 2)
|
|
289
289
|
], 2)
|
|
@@ -297,7 +297,7 @@ const Io = "hb-", vt = (e = "") => {
|
|
|
297
297
|
for (const [n, i] of t)
|
|
298
298
|
o[n] = i;
|
|
299
299
|
return o;
|
|
300
|
-
},
|
|
300
|
+
}, Po = /* @__PURE__ */ le(Oo, [["__scopeId", "data-v-e23cf2d6"]]);
|
|
301
301
|
function ne(e) {
|
|
302
302
|
const t = e;
|
|
303
303
|
return t.install = (o) => {
|
|
@@ -305,10 +305,10 @@ function ne(e) {
|
|
|
305
305
|
o.component(n ?? "AnonymousComponent", e);
|
|
306
306
|
}, t;
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const Uo = ne(Po), Ro = {
|
|
309
309
|
key: 0,
|
|
310
310
|
class: "form-footer"
|
|
311
|
-
}, Eo = { class: "scheme-fontWeight" },
|
|
311
|
+
}, Eo = { class: "scheme-fontWeight" }, No = { class: "scheme-fontWeight" }, zo = { class: "scheme-fontWeight" }, Vo = { class: "scheme-fontWeight" }, jo = /* @__PURE__ */ te({
|
|
312
312
|
name: "HbLibListForm",
|
|
313
313
|
__name: "HbListForm",
|
|
314
314
|
props: {
|
|
@@ -346,26 +346,26 @@ const Po = ne(Oo), Uo = {
|
|
|
346
346
|
"handleMenuClick"
|
|
347
347
|
],
|
|
348
348
|
setup(e, { expose: t, emit: o }) {
|
|
349
|
-
const n = he("globalCompConfig", {}), i = o, l = he("HB_LIST_PAGE_CONTAINER"), r =
|
|
349
|
+
const n = he("globalCompConfig", {}), i = o, l = he("HB_LIST_PAGE_CONTAINER"), r = H(() => a.searchList || []), u = gt("form"), a = e, s = H(() => a.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), p = O("show"), h = H(() => a.needFooter || n.HbLibListForm?.needFooter), f = H(() => {
|
|
350
350
|
const _ = a.items.filter((q) => U(q));
|
|
351
351
|
return ke.cloneDeep(_);
|
|
352
|
-
}),
|
|
352
|
+
}), T = (_) => _ !== void 0, $ = (_) => typeof _ == "function", U = (_) => T(_.condition) ? $(_.condition) ? _.condition() : _.condition : !0, V = H(() => [...a.items].map((_) => ({
|
|
353
353
|
..._,
|
|
354
354
|
condition: U(_),
|
|
355
355
|
label: _.label?.includes("多项搜索") ? "" : _.label
|
|
356
|
-
}))), k =
|
|
356
|
+
}))), k = H(() => a.saveKey), S = O(), A = () => {
|
|
357
357
|
i("handleSearch");
|
|
358
358
|
}, D = () => {
|
|
359
359
|
i("handleReset");
|
|
360
|
-
}, g = O(),
|
|
360
|
+
}, g = O(), F = () => {
|
|
361
361
|
g.value && g.value.toOpenModal();
|
|
362
362
|
}, L = (_) => {
|
|
363
363
|
i("handleMenuClick", _);
|
|
364
364
|
}, d = (_) => {
|
|
365
|
-
const q = a.items.filter((re) => !U(re)), ae = [..._, ...q],
|
|
365
|
+
const q = a.items.filter((re) => !U(re)), ae = [..._, ...q], pe = [
|
|
366
366
|
...new Map(ae.map((re) => [re.key, re])).values()
|
|
367
367
|
];
|
|
368
|
-
i("handleSfcmConfirm",
|
|
368
|
+
i("handleSfcmConfirm", pe);
|
|
369
369
|
};
|
|
370
370
|
se(
|
|
371
371
|
() => a.isFormExpanded,
|
|
@@ -391,8 +391,8 @@ const Po = ne(Oo), Uo = {
|
|
|
391
391
|
".hb-lib-form--container"
|
|
392
392
|
);
|
|
393
393
|
if (ae) {
|
|
394
|
-
const
|
|
395
|
-
q.style.height =
|
|
394
|
+
const pe = ae.offsetHeight;
|
|
395
|
+
q.style.height = pe + "px", q.style.overflow = "hidden", q.offsetHeight, requestAnimationFrame(() => {
|
|
396
396
|
q.style.height = "0";
|
|
397
397
|
});
|
|
398
398
|
}
|
|
@@ -404,25 +404,25 @@ const Po = ne(Oo), Uo = {
|
|
|
404
404
|
return t({
|
|
405
405
|
formRef: S,
|
|
406
406
|
SelectOption: ft,
|
|
407
|
-
Form:
|
|
408
|
-
FormItem:
|
|
409
|
-
Row:
|
|
410
|
-
Col:
|
|
411
|
-
Input:
|
|
407
|
+
Form: Ft,
|
|
408
|
+
FormItem: Tt,
|
|
409
|
+
Row: go,
|
|
410
|
+
Col: vo,
|
|
411
|
+
Input: xt,
|
|
412
412
|
Select: ut,
|
|
413
|
-
CheckboxGroup:
|
|
413
|
+
CheckboxGroup: St,
|
|
414
414
|
Checkbox: Qe,
|
|
415
|
-
DatePicker:
|
|
416
|
-
InputNumber:
|
|
417
|
-
RadioGroup:
|
|
418
|
-
Radio:
|
|
419
|
-
Switch:
|
|
415
|
+
DatePicker: kt,
|
|
416
|
+
InputNumber: wt,
|
|
417
|
+
RadioGroup: Ct,
|
|
418
|
+
Radio: Lt,
|
|
419
|
+
Switch: _t,
|
|
420
420
|
Button: dt,
|
|
421
421
|
Tooltip: Xe
|
|
422
422
|
}), (_, q) => {
|
|
423
|
-
const ae = K("a-button"),
|
|
423
|
+
const ae = K("a-button"), pe = K("a-tooltip"), re = K("a-menu-item"), ge = K("a-menu"), xe = K("a-dropdown"), Oe = K("HbLibFormItemFilterModal");
|
|
424
424
|
return c(), w(ee, null, [
|
|
425
|
-
|
|
425
|
+
I(so, {
|
|
426
426
|
name: "form-collapse",
|
|
427
427
|
onEnter: y,
|
|
428
428
|
onAfterEnter: x,
|
|
@@ -438,15 +438,15 @@ const Po = ne(Oo), Uo = {
|
|
|
438
438
|
h.value ? "isNeedFooterCss" : ""
|
|
439
439
|
])
|
|
440
440
|
}, [
|
|
441
|
-
|
|
441
|
+
I(v(Ft), ce(_.$attrs, {
|
|
442
442
|
ref_key: "formRef",
|
|
443
443
|
ref: S,
|
|
444
444
|
model: e.formData,
|
|
445
|
-
class: ["hb-lib-form--container",
|
|
445
|
+
class: ["hb-lib-form--container", p.value == "show" ? "" : "hide"]
|
|
446
446
|
}), {
|
|
447
447
|
default: b(() => [
|
|
448
|
-
(c(!0), w(ee, null,
|
|
449
|
-
j.condition ? (c(),
|
|
448
|
+
(c(!0), w(ee, null, fe(V.value, (j, Re) => (c(), w(ee, { key: Re }, [
|
|
449
|
+
j.condition ? (c(), E(v(Tt), ce({
|
|
450
450
|
key: 0,
|
|
451
451
|
ref_for: !0
|
|
452
452
|
}, j, {
|
|
@@ -467,76 +467,76 @@ const Po = ne(Oo), Uo = {
|
|
|
467
467
|
formData: e.formData,
|
|
468
468
|
item: j
|
|
469
469
|
}, void 0, !0) : z("", !0),
|
|
470
|
-
j.type === "input" ? (c(),
|
|
470
|
+
j.type === "input" ? (c(), E(v(xt), ce({
|
|
471
471
|
key: 2,
|
|
472
472
|
value: e.formData[j.key],
|
|
473
473
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
474
474
|
}, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
475
|
-
j.type === "select" ? (c(),
|
|
475
|
+
j.type === "select" ? (c(), E(v(ut), ce({
|
|
476
476
|
key: 3,
|
|
477
477
|
value: e.formData[j.key],
|
|
478
478
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
479
479
|
}, { ref_for: !0 }, j.attrs), {
|
|
480
480
|
default: b(() => [
|
|
481
|
-
(c(!0), w(ee, null,
|
|
481
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(ft), {
|
|
482
482
|
key: M,
|
|
483
483
|
value: oe.value
|
|
484
484
|
}, {
|
|
485
485
|
default: b(() => [
|
|
486
|
-
|
|
486
|
+
R(C(oe.label), 1)
|
|
487
487
|
]),
|
|
488
488
|
_: 2
|
|
489
489
|
}, 1032, ["value"]))), 128))
|
|
490
490
|
]),
|
|
491
491
|
_: 2
|
|
492
492
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
493
|
-
j.type === "checkbox" ? (c(),
|
|
493
|
+
j.type === "checkbox" ? (c(), E(v(St), ce({
|
|
494
494
|
key: 4,
|
|
495
495
|
value: e.formData[j.key],
|
|
496
496
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
497
497
|
}, { ref_for: !0 }, j.attrs), {
|
|
498
498
|
default: b(() => [
|
|
499
|
-
(c(!0), w(ee, null,
|
|
499
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(Qe), {
|
|
500
500
|
key: M,
|
|
501
501
|
value: oe.value
|
|
502
502
|
}, {
|
|
503
503
|
default: b(() => [
|
|
504
|
-
|
|
504
|
+
R(C(oe.label), 1)
|
|
505
505
|
]),
|
|
506
506
|
_: 2
|
|
507
507
|
}, 1032, ["value"]))), 128))
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
511
|
-
j.type === "date-picker" ? (c(),
|
|
511
|
+
j.type === "date-picker" ? (c(), E(v(kt), ce({
|
|
512
512
|
key: 5,
|
|
513
513
|
value: e.formData[j.key],
|
|
514
514
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
515
515
|
}, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
516
|
-
j.type === "input-number" ? (c(),
|
|
516
|
+
j.type === "input-number" ? (c(), E(v(wt), ce({
|
|
517
517
|
key: 6,
|
|
518
518
|
value: e.formData[j.key],
|
|
519
519
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
520
520
|
}, { ref_for: !0 }, j.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
521
|
-
j.type === "radio" ? (c(),
|
|
521
|
+
j.type === "radio" ? (c(), E(v(Ct), ce({
|
|
522
522
|
key: 7,
|
|
523
523
|
value: e.formData[j.key],
|
|
524
524
|
"onUpdate:value": (oe) => e.formData[j.key] = oe
|
|
525
525
|
}, { ref_for: !0 }, j.attrs), {
|
|
526
526
|
default: b(() => [
|
|
527
|
-
(c(!0), w(ee, null,
|
|
527
|
+
(c(!0), w(ee, null, fe(j.options, (oe, M) => (c(), E(v(Lt), {
|
|
528
528
|
key: M,
|
|
529
529
|
value: oe.value
|
|
530
530
|
}, {
|
|
531
531
|
default: b(() => [
|
|
532
|
-
|
|
532
|
+
R(C(oe.label), 1)
|
|
533
533
|
]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["value"]))), 128))
|
|
536
536
|
]),
|
|
537
537
|
_: 2
|
|
538
538
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
539
|
-
j.type === "switch" ? (c(),
|
|
539
|
+
j.type === "switch" ? (c(), E(v(_t), ce({
|
|
540
540
|
key: 8,
|
|
541
541
|
checked: e.formData[j.key],
|
|
542
542
|
"onUpdate:checked": (oe) => e.formData[j.key] = oe
|
|
@@ -547,12 +547,12 @@ const Po = ne(Oo), Uo = {
|
|
|
547
547
|
j.tooltip ? {
|
|
548
548
|
name: "label",
|
|
549
549
|
fn: b(() => [
|
|
550
|
-
|
|
551
|
-
|
|
550
|
+
R(C(j.label) + " ", 1),
|
|
551
|
+
I(v(Xe), {
|
|
552
552
|
title: j.tooltip
|
|
553
553
|
}, {
|
|
554
554
|
default: b(() => [
|
|
555
|
-
|
|
555
|
+
I(v(Co), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
556
556
|
]),
|
|
557
557
|
_: 1
|
|
558
558
|
}, 8, ["title"])
|
|
@@ -561,37 +561,37 @@ const Po = ne(Oo), Uo = {
|
|
|
561
561
|
} : void 0
|
|
562
562
|
]), 1040, ["name", "class"])) : z("", !0)
|
|
563
563
|
], 64))), 128)),
|
|
564
|
-
h.value ? z("", !0) : (c(), w("section",
|
|
565
|
-
|
|
564
|
+
h.value ? z("", !0) : (c(), w("section", Ro, [
|
|
565
|
+
I(ae, {
|
|
566
566
|
type: "primary",
|
|
567
567
|
class: "hb_list_page_button",
|
|
568
568
|
onClick: A
|
|
569
569
|
}, {
|
|
570
570
|
icon: b(() => [
|
|
571
|
-
|
|
571
|
+
I(v(Ze))
|
|
572
572
|
]),
|
|
573
573
|
default: b(() => [
|
|
574
|
-
|
|
574
|
+
R(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
575
575
|
]),
|
|
576
576
|
_: 1
|
|
577
577
|
}),
|
|
578
|
-
|
|
578
|
+
I(ae, {
|
|
579
579
|
type: "link",
|
|
580
580
|
onClick: D
|
|
581
581
|
}, {
|
|
582
582
|
default: b(() => [
|
|
583
|
-
|
|
583
|
+
R(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}),
|
|
587
|
-
e.needFilter ? (c(),
|
|
587
|
+
e.needFilter ? (c(), E(pe, {
|
|
588
588
|
key: 0,
|
|
589
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:
|
|
594
|
+
onClick: F
|
|
595
595
|
}, [...q[0] || (q[0] = [
|
|
596
596
|
m("svg", {
|
|
597
597
|
t: "1757915025410",
|
|
@@ -614,19 +614,19 @@ const Po = ne(Oo), Uo = {
|
|
|
614
614
|
_: 1
|
|
615
615
|
}, 8, ["title"])) : z("", !0),
|
|
616
616
|
J(_.$slots, "formBtns", {}, () => [
|
|
617
|
-
e.needSearchCase ? (c(),
|
|
617
|
+
e.needSearchCase ? (c(), E(xe, { key: 0 }, {
|
|
618
618
|
overlay: b(() => [
|
|
619
|
-
|
|
619
|
+
I(ge, { onClick: L }, {
|
|
620
620
|
default: b(() => [
|
|
621
|
-
(c(!0), w(ee, null,
|
|
621
|
+
(c(!0), w(ee, null, fe(r.value, (j) => (c(), E(re, {
|
|
622
622
|
key: j.id
|
|
623
623
|
}, {
|
|
624
624
|
default: b(() => [
|
|
625
|
-
|
|
625
|
+
R(C(j.title), 1)
|
|
626
626
|
]),
|
|
627
627
|
_: 2
|
|
628
628
|
}, 1024))), 128)),
|
|
629
|
-
|
|
629
|
+
I(re, { key: "add" }, {
|
|
630
630
|
default: b(() => [
|
|
631
631
|
m("span", Eo, C(_.$t(
|
|
632
632
|
"hbLibComp.hbLibListForm.addScheme"
|
|
@@ -634,9 +634,9 @@ const Po = ne(Oo), Uo = {
|
|
|
634
634
|
]),
|
|
635
635
|
_: 1
|
|
636
636
|
}),
|
|
637
|
-
|
|
637
|
+
I(re, { key: "edit" }, {
|
|
638
638
|
default: b(() => [
|
|
639
|
-
m("span",
|
|
639
|
+
m("span", No, C(_.$t(
|
|
640
640
|
"hbLibComp.hbLibListForm.editScheme"
|
|
641
641
|
)), 1)
|
|
642
642
|
]),
|
|
@@ -647,7 +647,7 @@ const Po = ne(Oo), Uo = {
|
|
|
647
647
|
})
|
|
648
648
|
]),
|
|
649
649
|
default: b(() => [
|
|
650
|
-
|
|
650
|
+
I(pe, {
|
|
651
651
|
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
652
652
|
}, {
|
|
653
653
|
default: b(() => [...q[1] || (q[1] = [
|
|
@@ -700,41 +700,41 @@ const Po = ne(Oo), Uo = {
|
|
|
700
700
|
m("div", {
|
|
701
701
|
class: X(v(u).e("footer__right"))
|
|
702
702
|
}, [
|
|
703
|
-
|
|
703
|
+
p.value == "show" ? J(_.$slots, "form-footer-right", {
|
|
704
704
|
key: 0,
|
|
705
705
|
formRef: S.value
|
|
706
706
|
}, () => [
|
|
707
|
-
|
|
707
|
+
I(ae, {
|
|
708
708
|
type: "primary",
|
|
709
709
|
class: "hb_list_page_button",
|
|
710
710
|
onClick: A
|
|
711
711
|
}, {
|
|
712
712
|
icon: b(() => [
|
|
713
|
-
|
|
713
|
+
I(v(Ze))
|
|
714
714
|
]),
|
|
715
715
|
default: b(() => [
|
|
716
|
-
|
|
716
|
+
R(" " + C(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
717
717
|
]),
|
|
718
718
|
_: 1
|
|
719
719
|
}),
|
|
720
|
-
|
|
720
|
+
I(ae, {
|
|
721
721
|
type: "link",
|
|
722
722
|
class: "hb_list_page_button",
|
|
723
723
|
onClick: D
|
|
724
724
|
}, {
|
|
725
725
|
default: b(() => [
|
|
726
|
-
|
|
726
|
+
R(C(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
727
727
|
]),
|
|
728
728
|
_: 1
|
|
729
729
|
}),
|
|
730
|
-
e.needFilter ? (c(),
|
|
730
|
+
e.needFilter ? (c(), E(pe, {
|
|
731
731
|
key: 0,
|
|
732
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:
|
|
737
|
+
onClick: F
|
|
738
738
|
}, [...q[2] || (q[2] = [
|
|
739
739
|
m("svg", {
|
|
740
740
|
t: "1757915025410",
|
|
@@ -757,29 +757,29 @@ const Po = ne(Oo), Uo = {
|
|
|
757
757
|
_: 1
|
|
758
758
|
}, 8, ["title"])) : z("", !0),
|
|
759
759
|
J(_.$slots, "formBtns", {}, () => [
|
|
760
|
-
e.needSearchCase ? (c(),
|
|
760
|
+
e.needSearchCase ? (c(), E(xe, { key: 0 }, {
|
|
761
761
|
overlay: b(() => [
|
|
762
|
-
|
|
762
|
+
I(ge, { onClick: L }, {
|
|
763
763
|
default: b(() => [
|
|
764
|
-
(c(!0), w(ee, null,
|
|
764
|
+
(c(!0), w(ee, null, fe(r.value, (j) => (c(), E(re, {
|
|
765
765
|
key: j.id
|
|
766
766
|
}, {
|
|
767
767
|
default: b(() => [
|
|
768
|
-
|
|
768
|
+
R(C(j.title), 1)
|
|
769
769
|
]),
|
|
770
770
|
_: 2
|
|
771
771
|
}, 1024))), 128)),
|
|
772
|
-
|
|
772
|
+
I(re, { key: "add" }, {
|
|
773
773
|
default: b(() => [
|
|
774
|
-
m("span",
|
|
774
|
+
m("span", zo, C(_.$t(
|
|
775
775
|
"hbLibComp.hbLibListForm.addScheme"
|
|
776
776
|
)), 1)
|
|
777
777
|
]),
|
|
778
778
|
_: 1
|
|
779
779
|
}),
|
|
780
|
-
|
|
780
|
+
I(re, { key: "edit" }, {
|
|
781
781
|
default: b(() => [
|
|
782
|
-
m("span",
|
|
782
|
+
m("span", Vo, C(_.$t(
|
|
783
783
|
"hbLibComp.hbLibListForm.editScheme"
|
|
784
784
|
)), 1)
|
|
785
785
|
]),
|
|
@@ -790,7 +790,7 @@ const Po = ne(Oo), Uo = {
|
|
|
790
790
|
})
|
|
791
791
|
]),
|
|
792
792
|
default: b(() => [
|
|
793
|
-
|
|
793
|
+
I(pe, {
|
|
794
794
|
title: _.$t("hbLibComp.hbLibListForm.queryCase")
|
|
795
795
|
}, {
|
|
796
796
|
default: b(() => [...q[3] || (q[3] = [
|
|
@@ -834,23 +834,26 @@ const Po = ne(Oo), Uo = {
|
|
|
834
834
|
], 2)
|
|
835
835
|
], 2)) : z("", !0)
|
|
836
836
|
], 2), [
|
|
837
|
-
[
|
|
837
|
+
[ro, e.isFormExpanded]
|
|
838
838
|
])
|
|
839
839
|
]),
|
|
840
840
|
_: 3
|
|
841
841
|
}),
|
|
842
|
-
|
|
842
|
+
I(Oe, {
|
|
843
843
|
ref_key: "HbSfCmRef",
|
|
844
844
|
ref: g,
|
|
845
845
|
"show-number": s.value,
|
|
846
|
-
list:
|
|
846
|
+
list: f.value,
|
|
847
847
|
"save-key": k.value,
|
|
848
848
|
onConfirm: d
|
|
849
849
|
}, null, 8, ["show-number", "list", "save-key"])
|
|
850
850
|
], 64);
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
}),
|
|
853
|
+
}), Wo = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-01be3452"]]), qo = ne(Wo), Yo = { class: "hb-lib-list-page-act-box" }, Ko = { class: "hb-lib-list-page-breadcrumb" }, Go = {
|
|
854
|
+
key: 0,
|
|
855
|
+
class: "hb-lib-list-page-breadcrumb-item-divider"
|
|
856
|
+
}, Jo = { class: "hb-lib-list-page-act" }, Xo = {
|
|
854
857
|
key: 0,
|
|
855
858
|
t: "1757915338760",
|
|
856
859
|
class: "icon",
|
|
@@ -860,7 +863,7 @@ const Po = ne(Oo), Uo = {
|
|
|
860
863
|
"p-id": "22885",
|
|
861
864
|
width: "200",
|
|
862
865
|
height: "200"
|
|
863
|
-
},
|
|
866
|
+
}, Qo = {
|
|
864
867
|
key: 1,
|
|
865
868
|
t: "1757915360496",
|
|
866
869
|
class: "icon",
|
|
@@ -870,7 +873,7 @@ const Po = ne(Oo), Uo = {
|
|
|
870
873
|
"p-id": "23904",
|
|
871
874
|
width: "200",
|
|
872
875
|
height: "200"
|
|
873
|
-
},
|
|
876
|
+
}, Zo = /* @__PURE__ */ te({
|
|
874
877
|
name: "HbLibListPageAct",
|
|
875
878
|
__name: "HbListPageAct",
|
|
876
879
|
props: {
|
|
@@ -878,37 +881,52 @@ const Po = ne(Oo), Uo = {
|
|
|
878
881
|
hideDomList: {}
|
|
879
882
|
},
|
|
880
883
|
setup(e) {
|
|
881
|
-
const t = he("globalCompConfig", {}), o = e, { isFullscreen: n, toggle: i } =
|
|
884
|
+
const t = he("globalCompConfig", {}), o = e, { isFullscreen: n, toggle: i } = Jt(document.body);
|
|
882
885
|
se(
|
|
883
886
|
() => n.value,
|
|
884
887
|
(a) => {
|
|
885
888
|
let s = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
886
889
|
Array.isArray(o.hideDomList) && o.hideDomList.length ? s = [...o.hideDomList] : t.HbLibListPageAct?.hideDomList && (s = [...t.HbLibListPageAct.hideDomList]);
|
|
887
|
-
const
|
|
890
|
+
const p = /* @__PURE__ */ new Map();
|
|
888
891
|
setTimeout(a ? () => {
|
|
889
892
|
if (s?.length)
|
|
890
893
|
for (let h = 0; h < s.length; h++) {
|
|
891
|
-
const
|
|
892
|
-
|
|
894
|
+
const f = document.querySelector(
|
|
895
|
+
s[h]
|
|
896
|
+
);
|
|
897
|
+
f && (p.set(
|
|
898
|
+
s[h],
|
|
899
|
+
f.style.display
|
|
900
|
+
), f.style.display = "none");
|
|
893
901
|
}
|
|
894
902
|
} : () => {
|
|
895
903
|
if (s?.length)
|
|
896
904
|
for (let h = 0; h < s.length; h++) {
|
|
897
|
-
const
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
905
|
+
const f = document.querySelector(
|
|
906
|
+
s[h]
|
|
907
|
+
);
|
|
908
|
+
if (f) {
|
|
909
|
+
const T = p.get(
|
|
910
|
+
s[h]
|
|
911
|
+
);
|
|
912
|
+
f.style.display = T || "", p.delete(s[h]);
|
|
901
913
|
}
|
|
902
914
|
}
|
|
903
915
|
}, 0);
|
|
904
916
|
}
|
|
905
917
|
);
|
|
906
|
-
const l = O(
|
|
907
|
-
const a =
|
|
908
|
-
let s = localStorage.getItem(
|
|
918
|
+
const l = O([]), r = () => {
|
|
919
|
+
const a = vt();
|
|
920
|
+
let s = localStorage.getItem(
|
|
921
|
+
t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb"
|
|
922
|
+
) || "[]", p = a?.path;
|
|
909
923
|
if (s !== "[]") {
|
|
910
|
-
let h = JSON.parse(
|
|
911
|
-
|
|
924
|
+
let h = JSON.parse(
|
|
925
|
+
s
|
|
926
|
+
).find(
|
|
927
|
+
(f) => f.value === p
|
|
928
|
+
);
|
|
929
|
+
h && (l.value = h.label.split("-"));
|
|
912
930
|
}
|
|
913
931
|
};
|
|
914
932
|
Fe(() => {
|
|
@@ -922,11 +940,20 @@ const Po = ne(Oo), Uo = {
|
|
|
922
940
|
}), je(() => {
|
|
923
941
|
window.removeEventListener("keydown", u);
|
|
924
942
|
}), (a, s) => {
|
|
925
|
-
const
|
|
926
|
-
return c(), w("section",
|
|
927
|
-
m("aside", Yo, C(l.value), 1),
|
|
943
|
+
const p = K("a-tooltip");
|
|
944
|
+
return c(), w("section", Yo, [
|
|
928
945
|
m("aside", Ko, [
|
|
929
|
-
|
|
946
|
+
(c(!0), w(ee, null, fe(l.value, (h, f) => (c(), w(ee, { key: h }, [
|
|
947
|
+
m("span", {
|
|
948
|
+
class: X(["hb-lib-list-page-breadcrumb-item", {
|
|
949
|
+
"last-item": f === l.value.length - 1
|
|
950
|
+
}])
|
|
951
|
+
}, C(h), 3),
|
|
952
|
+
f !== l.value.length - 1 ? (c(), w("span", Go, " / ")) : z("", !0)
|
|
953
|
+
], 64))), 128))
|
|
954
|
+
]),
|
|
955
|
+
m("aside", Jo, [
|
|
956
|
+
I(p, {
|
|
930
957
|
title: v(n) ? `${a.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${a.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
931
958
|
placement: "leftTop"
|
|
932
959
|
}, {
|
|
@@ -936,7 +963,7 @@ const Po = ne(Oo), Uo = {
|
|
|
936
963
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
937
964
|
(...h) => v(i) && v(i)(...h))
|
|
938
965
|
}, [
|
|
939
|
-
v(n) ? (c(), w("svg",
|
|
966
|
+
v(n) ? (c(), w("svg", Qo, [...s[2] || (s[2] = [
|
|
940
967
|
m("path", {
|
|
941
968
|
d: "M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",
|
|
942
969
|
fill: "#ff5000",
|
|
@@ -952,7 +979,7 @@ const Po = ne(Oo), Uo = {
|
|
|
952
979
|
fill: "#ff5000",
|
|
953
980
|
"p-id": "23907"
|
|
954
981
|
}, null, -1)
|
|
955
|
-
])])) : (c(), w("svg",
|
|
982
|
+
])])) : (c(), w("svg", Xo, [...s[1] || (s[1] = [
|
|
956
983
|
m("path", {
|
|
957
984
|
d: "M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",
|
|
958
985
|
fill: "#ff5000",
|
|
@@ -968,7 +995,7 @@ const Po = ne(Oo), Uo = {
|
|
|
968
995
|
]);
|
|
969
996
|
};
|
|
970
997
|
}
|
|
971
|
-
}),
|
|
998
|
+
}), en = /* @__PURE__ */ le(Zo, [["__scopeId", "data-v-a786e48a"]]), tn = ne(en), on = { class: "hb-lib-list-btns-box" }, nn = { class: "hb-lib-list-btns-left" }, ln = { class: "hb-lib-list-btns-right" }, an = /* @__PURE__ */ te({
|
|
972
999
|
name: "HbLibListBtnsAct",
|
|
973
1000
|
__name: "HbListBtns",
|
|
974
1001
|
props: {
|
|
@@ -989,12 +1016,12 @@ const Po = ne(Oo), Uo = {
|
|
|
989
1016
|
window.removeEventListener("keydown", r);
|
|
990
1017
|
}), (u, a) => {
|
|
991
1018
|
const s = K("a-tooltip");
|
|
992
|
-
return c(), w("section",
|
|
993
|
-
m("aside",
|
|
1019
|
+
return c(), w("section", on, [
|
|
1020
|
+
m("aside", nn, [
|
|
994
1021
|
J(u.$slots, "btnsLeft", {}, void 0, !0)
|
|
995
1022
|
]),
|
|
996
|
-
m("aside",
|
|
997
|
-
e.needReload ? (c(),
|
|
1023
|
+
m("aside", ln, [
|
|
1024
|
+
e.needReload ? (c(), E(s, {
|
|
998
1025
|
key: 0,
|
|
999
1026
|
title: u.$t("hbLibComp.hbListBtnsAct.reload")
|
|
1000
1027
|
}, {
|
|
@@ -1023,7 +1050,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1023
1050
|
]),
|
|
1024
1051
|
_: 1
|
|
1025
1052
|
}, 8, ["title"])) : z("", !0),
|
|
1026
|
-
e.needOpenOrClose ? (c(),
|
|
1053
|
+
e.needOpenOrClose ? (c(), E(s, {
|
|
1027
1054
|
key: 1,
|
|
1028
1055
|
title: n.value ? `${u.$t("hbLibComp.hbListBtnsAct.close")}` : `${u.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
1029
1056
|
}, {
|
|
@@ -1032,10 +1059,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1032
1059
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
1033
1060
|
onClick: i
|
|
1034
1061
|
}, [
|
|
1035
|
-
n.value ? (c(),
|
|
1062
|
+
n.value ? (c(), E(v(wo), {
|
|
1036
1063
|
key: 0,
|
|
1037
1064
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1038
|
-
})) : (c(),
|
|
1065
|
+
})) : (c(), E(v(ko), {
|
|
1039
1066
|
key: 1,
|
|
1040
1067
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1041
1068
|
}))
|
|
@@ -1048,11 +1075,11 @@ const Po = ne(Oo), Uo = {
|
|
|
1048
1075
|
]);
|
|
1049
1076
|
};
|
|
1050
1077
|
}
|
|
1051
|
-
}),
|
|
1078
|
+
}), sn = /* @__PURE__ */ le(an, [["__scopeId", "data-v-40c1a746"]]), rn = ne(sn), cn = (e = {}) => {
|
|
1052
1079
|
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: i = 100 } = e, l = O(0);
|
|
1053
|
-
let r = null, u = null, a = null, s = null,
|
|
1080
|
+
let r = null, u = null, a = null, s = null, p = null;
|
|
1054
1081
|
const h = () => {
|
|
1055
|
-
|
|
1082
|
+
p && clearTimeout(p), p = setTimeout(() => {
|
|
1056
1083
|
requestAnimationFrame(() => {
|
|
1057
1084
|
Me(() => {
|
|
1058
1085
|
const S = document.querySelector(".ant-table"), A = document.querySelector(".ant-pagination");
|
|
@@ -1064,7 +1091,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1064
1091
|
});
|
|
1065
1092
|
});
|
|
1066
1093
|
}, 100);
|
|
1067
|
-
},
|
|
1094
|
+
}, f = () => {
|
|
1068
1095
|
const S = document.querySelector(".ant-pagination");
|
|
1069
1096
|
if (S) {
|
|
1070
1097
|
const A = new MutationObserver(() => {
|
|
@@ -1078,14 +1105,14 @@ const Po = ne(Oo), Uo = {
|
|
|
1078
1105
|
}), A;
|
|
1079
1106
|
}
|
|
1080
1107
|
return null;
|
|
1081
|
-
},
|
|
1108
|
+
}, T = () => {
|
|
1082
1109
|
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
1083
1110
|
S && (r = new ResizeObserver(() => {
|
|
1084
1111
|
document.querySelectorAll(".ant-tooltip").forEach((D) => {
|
|
1085
1112
|
D.style.display = "none";
|
|
1086
1113
|
}), h();
|
|
1087
1114
|
}), r.observe(S));
|
|
1088
|
-
},
|
|
1115
|
+
}, $ = () => {
|
|
1089
1116
|
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
1090
1117
|
S && (a = new MutationObserver(() => {
|
|
1091
1118
|
setTimeout(() => {
|
|
@@ -1103,10 +1130,10 @@ const Po = ne(Oo), Uo = {
|
|
|
1103
1130
|
}, i);
|
|
1104
1131
|
}, V = () => {
|
|
1105
1132
|
window.addEventListener("resize", U), Me(() => {
|
|
1106
|
-
|
|
1133
|
+
T(), $(), u = f();
|
|
1107
1134
|
});
|
|
1108
1135
|
}, k = () => {
|
|
1109
|
-
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s),
|
|
1136
|
+
window.removeEventListener("resize", U), r && r.disconnect(), a && a.disconnect(), u && u.disconnect(), s && clearTimeout(s), p && clearTimeout(p);
|
|
1110
1137
|
};
|
|
1111
1138
|
return t && se(
|
|
1112
1139
|
() => t,
|
|
@@ -1124,7 +1151,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1124
1151
|
tableHeight: l,
|
|
1125
1152
|
calTableHeight: h
|
|
1126
1153
|
};
|
|
1127
|
-
},
|
|
1154
|
+
}, dn = /* @__PURE__ */ te({
|
|
1128
1155
|
name: "HbLibListPageContainer",
|
|
1129
1156
|
__name: "HbListPageContainer",
|
|
1130
1157
|
props: {
|
|
@@ -1137,58 +1164,58 @@ const Po = ne(Oo), Uo = {
|
|
|
1137
1164
|
isUnFixTbHeight: { type: Boolean }
|
|
1138
1165
|
},
|
|
1139
1166
|
setup(e) {
|
|
1140
|
-
const t = he("globalCompConfig", {}), { isFullscreen: o } =
|
|
1167
|
+
const t = he("globalCompConfig", {}), { isFullscreen: o } = Jt(document.body), n = e, i = co("PageContainerRef"), l = H(
|
|
1141
1168
|
() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110
|
|
1142
|
-
), r =
|
|
1169
|
+
), r = H(
|
|
1143
1170
|
() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20
|
|
1144
|
-
), u =
|
|
1171
|
+
), u = H(
|
|
1145
1172
|
() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300
|
|
1146
|
-
), a =
|
|
1173
|
+
), a = H(
|
|
1147
1174
|
() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100
|
|
1148
|
-
), s =
|
|
1175
|
+
), s = H(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1), { calTableHeight: p, tableHeight: h } = cn({
|
|
1149
1176
|
offsetBottom: r.value,
|
|
1150
1177
|
// 底部预留空间
|
|
1151
1178
|
minHeight: u.value,
|
|
1152
1179
|
// table最小高度 请勿随便修改!!
|
|
1153
1180
|
timeOut: a.value
|
|
1154
|
-
}),
|
|
1181
|
+
}), f = H(() => h.value);
|
|
1155
1182
|
return Ue("HB_LIST_PAGE_CONTAINER", {
|
|
1156
1183
|
PageContainerRef: i,
|
|
1157
1184
|
// 通过函数访问,
|
|
1158
1185
|
tableHeight: h,
|
|
1159
|
-
calTableHeight:
|
|
1160
|
-
}), (
|
|
1186
|
+
calTableHeight: p
|
|
1187
|
+
}), (T, $) => (c(), w("section", {
|
|
1161
1188
|
ref_key: "PageContainerRef",
|
|
1162
1189
|
ref: i,
|
|
1163
1190
|
class: "hb-lib-list-page-container"
|
|
1164
1191
|
}, [
|
|
1165
|
-
J(
|
|
1192
|
+
J(T.$slots, "header"),
|
|
1166
1193
|
m("section", {
|
|
1167
1194
|
class: "list-page-box",
|
|
1168
1195
|
style: de(
|
|
1169
1196
|
s.value ? null : {
|
|
1170
|
-
"--hb-list-table-height": v(o) ?
|
|
1171
|
-
"--hb-list-ttable-height": e.tableData.length ? "" : v(o) ?
|
|
1197
|
+
"--hb-list-table-height": v(o) ? f.value - l.value + "px" : f.value - r.value + "px",
|
|
1198
|
+
"--hb-list-ttable-height": e.tableData.length ? "" : v(o) ? f.value - l.value + "px" : f.value - r.value + "px"
|
|
1172
1199
|
}
|
|
1173
1200
|
)
|
|
1174
1201
|
}, [
|
|
1175
|
-
J(
|
|
1202
|
+
J(T.$slots, "default")
|
|
1176
1203
|
], 4)
|
|
1177
1204
|
], 512));
|
|
1178
1205
|
}
|
|
1179
|
-
}),
|
|
1206
|
+
}), un = ne(dn), fn = { style: { "font-weight": "500" } }, pn = {
|
|
1180
1207
|
key: 0,
|
|
1181
1208
|
class: "hb-lib-search-tag__description"
|
|
1182
|
-
},
|
|
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 = {
|
|
1183
1210
|
key: 0,
|
|
1184
1211
|
class: "hb-lib-selector-empty"
|
|
1185
|
-
},
|
|
1212
|
+
}, Ln = {
|
|
1186
1213
|
key: 1,
|
|
1187
1214
|
class: "hb-lib-selector-footer"
|
|
1188
|
-
},
|
|
1215
|
+
}, Cn = { class: "hb-lib-footer-buttons" }, wn = {
|
|
1189
1216
|
key: 2,
|
|
1190
1217
|
class: "hb-lib-selector-footer"
|
|
1191
|
-
},
|
|
1218
|
+
}, kn = { class: "hb-lib-footer-buttons" }, Sn = /* @__PURE__ */ te({
|
|
1192
1219
|
name: "HbLibListMultiSelect",
|
|
1193
1220
|
__name: "HbListMultiSelect",
|
|
1194
1221
|
props: /* @__PURE__ */ rt({
|
|
@@ -1209,18 +1236,18 @@ const Po = ne(Oo), Uo = {
|
|
|
1209
1236
|
}),
|
|
1210
1237
|
emits: /* @__PURE__ */ rt(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1211
1238
|
setup(e, { emit: t }) {
|
|
1212
|
-
const o = e, n = t, i =
|
|
1239
|
+
const o = e, n = t, i = jt(e, "value"), l = O(!1), r = O(""), u = O([]), a = O(), s = H(() => {
|
|
1213
1240
|
if (o.remoteSearch || !r.value) return o.options;
|
|
1214
1241
|
const g = r.value.toLowerCase();
|
|
1215
1242
|
return o.options.filter(
|
|
1216
|
-
(
|
|
1243
|
+
(F) => F.label.toLowerCase().includes(g) || F.description?.toLowerCase().includes(g)
|
|
1217
1244
|
);
|
|
1218
|
-
}),
|
|
1245
|
+
}), p = H(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), h = H(() => s.value.length === 0 ? !1 : s.value.every(
|
|
1219
1246
|
(g) => u.value.includes(g.value)
|
|
1220
|
-
)),
|
|
1247
|
+
)), f = H(() => {
|
|
1221
1248
|
if (s.value.length === 0) return !1;
|
|
1222
1249
|
const g = s.value.filter(
|
|
1223
|
-
(
|
|
1250
|
+
(F) => u.value.includes(F.value)
|
|
1224
1251
|
).length;
|
|
1225
1252
|
return g > 0 && g < s.value.length;
|
|
1226
1253
|
});
|
|
@@ -1237,27 +1264,27 @@ const Po = ne(Oo), Uo = {
|
|
|
1237
1264
|
},
|
|
1238
1265
|
{ immediate: !0 }
|
|
1239
1266
|
);
|
|
1240
|
-
const
|
|
1241
|
-
g && (l.value = g,
|
|
1267
|
+
const T = (g) => {
|
|
1268
|
+
g && (l.value = g, $.value = [...u.value], r.value = "", setTimeout(() => {
|
|
1242
1269
|
if (a.value) {
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1270
|
+
const F = a.value.input || a.value.$el?.querySelector("input");
|
|
1271
|
+
F && F.focus();
|
|
1245
1272
|
}
|
|
1246
1273
|
}, 100));
|
|
1247
|
-
},
|
|
1248
|
-
u.value = [
|
|
1274
|
+
}, $ = O([]), U = () => {
|
|
1275
|
+
u.value = [...$.value], l.value = !1, n("cancel");
|
|
1249
1276
|
}, V = O([]), k = () => {
|
|
1250
|
-
const g = o.multiple ? u.value : u.value[0] || "",
|
|
1277
|
+
const g = o.multiple ? u.value : u.value[0] || "", F = o.options.filter(
|
|
1251
1278
|
(L) => u.value.includes(L.value)
|
|
1252
1279
|
);
|
|
1253
|
-
V.value =
|
|
1254
|
-
}, S =
|
|
1255
|
-
const
|
|
1256
|
-
o.remoteSearch && (n("search",
|
|
1280
|
+
V.value = F, $.value = [...u.value], i.value = g, n("update:value", g), n("change", g, F), n("confirm", g, F), l.value = !1;
|
|
1281
|
+
}, S = To((g) => {
|
|
1282
|
+
const F = g !== void 0 ? g : r.value;
|
|
1283
|
+
o.remoteSearch && (n("search", F), n("update:searchValue", F));
|
|
1257
1284
|
}, 300), A = (g) => {
|
|
1258
1285
|
if (o.multiple) {
|
|
1259
|
-
const
|
|
1260
|
-
|
|
1286
|
+
const F = new Set(u.value);
|
|
1287
|
+
F.has(g.value) ? F.delete(g.value) : F.add(g.value), u.value = Array.from(F);
|
|
1261
1288
|
} else
|
|
1262
1289
|
u.value = [g.value], k();
|
|
1263
1290
|
}, D = (g) => {
|
|
@@ -1275,15 +1302,15 @@ const Po = ne(Oo), Uo = {
|
|
|
1275
1302
|
);
|
|
1276
1303
|
}
|
|
1277
1304
|
};
|
|
1278
|
-
return (g,
|
|
1305
|
+
return (g, F) => {
|
|
1279
1306
|
const L = K("a-tag"), d = K("a-input"), y = K("a-checkbox"), x = K("a-radio"), P = K("a-button"), Y = K("a-select");
|
|
1280
1307
|
return c(), w("div", ce({
|
|
1281
1308
|
class: "hb-lib-selector-wrapper",
|
|
1282
|
-
style: { "--prefix-width":
|
|
1309
|
+
style: { "--prefix-width": p.value }
|
|
1283
1310
|
}, g.$attrs), [
|
|
1284
|
-
|
|
1311
|
+
I(Y, {
|
|
1285
1312
|
value: i.value,
|
|
1286
|
-
"onUpdate:value":
|
|
1313
|
+
"onUpdate:value": F[5] || (F[5] = (_) => i.value = _),
|
|
1287
1314
|
mode: e.multiple ? "multiple" : void 0,
|
|
1288
1315
|
placeholder: e.placeholder,
|
|
1289
1316
|
"show-search": !0,
|
|
@@ -1296,42 +1323,42 @@ const Po = ne(Oo), Uo = {
|
|
|
1296
1323
|
class: X({ "has-prefix": e.prefix }),
|
|
1297
1324
|
"data-prefix": e.prefix,
|
|
1298
1325
|
style: { width: "100%" },
|
|
1299
|
-
onDropdownVisibleChange:
|
|
1326
|
+
onDropdownVisibleChange: T,
|
|
1300
1327
|
onSearch: v(S)
|
|
1301
1328
|
}, {
|
|
1302
1329
|
tagRender: b(({ label: _, option: q }) => [
|
|
1303
|
-
|
|
1330
|
+
I(L, {
|
|
1304
1331
|
class: "hb-lib-search-tag",
|
|
1305
|
-
onClick:
|
|
1332
|
+
onClick: F[0] || (F[0] = () => T(!0))
|
|
1306
1333
|
}, {
|
|
1307
1334
|
default: b(() => [
|
|
1308
|
-
m("span",
|
|
1309
|
-
q?.description ? (c(), w("span",
|
|
1335
|
+
m("span", fn, C(_), 1),
|
|
1336
|
+
q?.description ? (c(), w("span", pn, " (" + C(q.description) + ") ", 1)) : z("", !0)
|
|
1310
1337
|
]),
|
|
1311
1338
|
_: 2
|
|
1312
1339
|
}, 1024)
|
|
1313
1340
|
]),
|
|
1314
1341
|
dropdownRender: b(() => [
|
|
1315
|
-
m("div",
|
|
1316
|
-
m("div",
|
|
1317
|
-
|
|
1342
|
+
m("div", bn, [
|
|
1343
|
+
m("div", mn, [
|
|
1344
|
+
I(d, {
|
|
1318
1345
|
ref_key: "searchInputRef",
|
|
1319
1346
|
ref: a,
|
|
1320
1347
|
value: r.value,
|
|
1321
|
-
"onUpdate:value":
|
|
1348
|
+
"onUpdate:value": F[1] || (F[1] = (_) => r.value = _),
|
|
1322
1349
|
class: "hb-lib-selector-search-input",
|
|
1323
1350
|
placeholder: "请输入关键词搜索",
|
|
1324
1351
|
"allow-clear": "",
|
|
1325
|
-
onInput:
|
|
1352
|
+
onInput: F[2] || (F[2] = (_) => v(S)(_.target.value))
|
|
1326
1353
|
}, {
|
|
1327
1354
|
prefix: b(() => [
|
|
1328
|
-
|
|
1355
|
+
I(v(Ze))
|
|
1329
1356
|
]),
|
|
1330
1357
|
_: 1
|
|
1331
1358
|
}, 8, ["value"])
|
|
1332
1359
|
]),
|
|
1333
|
-
m("div",
|
|
1334
|
-
(c(!0), w(ee, null,
|
|
1360
|
+
m("div", hn, [
|
|
1361
|
+
(c(!0), w(ee, null, fe(s.value, (_) => (c(), w("div", {
|
|
1335
1362
|
key: _.value,
|
|
1336
1363
|
class: X([
|
|
1337
1364
|
"hb-lib-selector-option",
|
|
@@ -1343,68 +1370,68 @@ const Po = ne(Oo), Uo = {
|
|
|
1343
1370
|
]),
|
|
1344
1371
|
onClick: () => A(_)
|
|
1345
1372
|
}, [
|
|
1346
|
-
e.multiple ? (c(),
|
|
1373
|
+
e.multiple ? (c(), E(y, {
|
|
1347
1374
|
key: 0,
|
|
1348
1375
|
checked: u.value.includes(_.value),
|
|
1349
1376
|
onChange: () => A(_),
|
|
1350
|
-
onClick:
|
|
1377
|
+
onClick: F[3] || (F[3] = Ge(() => {
|
|
1351
1378
|
}, ["stop"]))
|
|
1352
|
-
}, null, 8, ["checked", "onChange"])) : (c(),
|
|
1379
|
+
}, null, 8, ["checked", "onChange"])) : (c(), E(x, {
|
|
1353
1380
|
key: 1,
|
|
1354
1381
|
checked: u.value.includes(_.value),
|
|
1355
1382
|
onChange: () => A(_),
|
|
1356
|
-
onClick:
|
|
1383
|
+
onClick: F[4] || (F[4] = Ge(() => {
|
|
1357
1384
|
}, ["stop"]))
|
|
1358
1385
|
}, null, 8, ["checked", "onChange"])),
|
|
1359
|
-
m("div",
|
|
1360
|
-
m("div",
|
|
1386
|
+
m("div", gn, [
|
|
1387
|
+
m("div", yn, C(_.label), 1)
|
|
1361
1388
|
])
|
|
1362
|
-
], 10,
|
|
1389
|
+
], 10, vn))), 128))
|
|
1363
1390
|
]),
|
|
1364
|
-
s.value.length === 0 ? (c(), w("div",
|
|
1365
|
-
e.multiple ? (c(), w("div",
|
|
1366
|
-
|
|
1391
|
+
s.value.length === 0 ? (c(), w("div", _n, C(g.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1392
|
+
e.multiple ? (c(), w("div", Ln, [
|
|
1393
|
+
I(y, {
|
|
1367
1394
|
checked: h.value,
|
|
1368
|
-
indeterminate:
|
|
1395
|
+
indeterminate: f.value,
|
|
1369
1396
|
onChange: D
|
|
1370
1397
|
}, {
|
|
1371
1398
|
default: b(() => [
|
|
1372
|
-
|
|
1399
|
+
R(C(g.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1373
1400
|
]),
|
|
1374
1401
|
_: 1
|
|
1375
1402
|
}, 8, ["checked", "indeterminate"]),
|
|
1376
|
-
m("div",
|
|
1377
|
-
|
|
1403
|
+
m("div", Cn, [
|
|
1404
|
+
I(P, {
|
|
1378
1405
|
size: "small",
|
|
1379
1406
|
onClick: U
|
|
1380
1407
|
}, {
|
|
1381
1408
|
default: b(() => [
|
|
1382
|
-
|
|
1409
|
+
R(C(g.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1383
1410
|
]),
|
|
1384
1411
|
_: 1
|
|
1385
1412
|
}),
|
|
1386
|
-
|
|
1413
|
+
I(P, {
|
|
1387
1414
|
type: "primary",
|
|
1388
1415
|
size: "small",
|
|
1389
1416
|
onClick: k
|
|
1390
1417
|
}, {
|
|
1391
1418
|
default: b(() => [
|
|
1392
|
-
|
|
1419
|
+
R(C(g.$t(
|
|
1393
1420
|
"hbLibComp.hbFormItemFilterModal.confirm"
|
|
1394
1421
|
)), 1)
|
|
1395
1422
|
]),
|
|
1396
1423
|
_: 1
|
|
1397
1424
|
})
|
|
1398
1425
|
])
|
|
1399
|
-
])) : (c(), w("div",
|
|
1400
|
-
|
|
1401
|
-
m("div",
|
|
1402
|
-
|
|
1426
|
+
])) : (c(), w("div", wn, [
|
|
1427
|
+
F[6] || (F[6] = m("div", null, null, -1)),
|
|
1428
|
+
m("div", kn, [
|
|
1429
|
+
I(P, {
|
|
1403
1430
|
size: "small",
|
|
1404
1431
|
onClick: U
|
|
1405
1432
|
}, {
|
|
1406
1433
|
default: b(() => [
|
|
1407
|
-
|
|
1434
|
+
R(C(g.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1408
1435
|
]),
|
|
1409
1436
|
_: 1
|
|
1410
1437
|
})
|
|
@@ -1417,7 +1444,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1417
1444
|
], 16);
|
|
1418
1445
|
};
|
|
1419
1446
|
}
|
|
1420
|
-
}),
|
|
1447
|
+
}), xn = /* @__PURE__ */ le(Sn, [["__scopeId", "data-v-14ede517"]]), Tn = ne(xn), Fn = { class: "hb-lib-form-item-filter-modal-search" }, Hn = { class: "hb-lib-form-item-filter-modal-buttons" }, $n = { key: 0 }, In = /* @__PURE__ */ te({
|
|
1421
1448
|
name: "HbLibMutilpleSelectModal",
|
|
1422
1449
|
__name: "HbMutilpleSelectModal",
|
|
1423
1450
|
props: {
|
|
@@ -1431,18 +1458,18 @@ const Po = ne(Oo), Uo = {
|
|
|
1431
1458
|
},
|
|
1432
1459
|
emits: ["handleConfirm", "handleCancel"],
|
|
1433
1460
|
setup(e, { expose: t, emit: o }) {
|
|
1434
|
-
const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]),
|
|
1461
|
+
const n = e, i = o, l = O(!1), r = O(""), u = O(), a = O(), s = O([]), p = O([]), h = O(), f = Ve({
|
|
1435
1462
|
searchText: "",
|
|
1436
1463
|
searchedColumn: ""
|
|
1437
|
-
}),
|
|
1464
|
+
}), T = H(() => n.tableData.map((L) => (L.id = L.id || Math.random(), L))), $ = H(() => n.tableColumn.map((L) => (L.customFilterDropdown && (L.onFilter = (d, y) => y[L.dataIndex].toString().toLowerCase().includes(d.toLowerCase()), L.onFilterDropdownVisibleChange = (d) => {
|
|
1438
1465
|
d && setTimeout(() => {
|
|
1439
1466
|
u.value?.focus();
|
|
1440
1467
|
}, 100);
|
|
1441
1468
|
}), { ...L }))), U = () => {
|
|
1442
1469
|
let L = "";
|
|
1443
|
-
|
|
1470
|
+
p.value.forEach((d) => {
|
|
1444
1471
|
L = L + d[n.labelKey] + ",";
|
|
1445
|
-
}), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm",
|
|
1472
|
+
}), r.value = L.substring(0, L.length - 1), l.value = !1, i("handleConfirm", p.value);
|
|
1446
1473
|
}, V = () => {
|
|
1447
1474
|
l.value = !1;
|
|
1448
1475
|
}, k = () => {
|
|
@@ -1451,15 +1478,15 @@ const Po = ne(Oo), Uo = {
|
|
|
1451
1478
|
L && (L.scrollTop = 0);
|
|
1452
1479
|
});
|
|
1453
1480
|
}, S = () => {
|
|
1454
|
-
s.value = [],
|
|
1481
|
+
s.value = [], p.value = [];
|
|
1455
1482
|
}, A = () => {
|
|
1456
1483
|
r.value = "", S();
|
|
1457
1484
|
}, D = (L, d, y) => {
|
|
1458
|
-
d(),
|
|
1485
|
+
d(), f.searchText = L[0], f.searchedColumn = y;
|
|
1459
1486
|
}, g = (L, d) => {
|
|
1460
|
-
L({ confirm: !0 }),
|
|
1461
|
-
},
|
|
1462
|
-
s.value = L,
|
|
1487
|
+
L({ confirm: !0 }), f.searchText = "", d();
|
|
1488
|
+
}, F = (L, d) => {
|
|
1489
|
+
s.value = L, p.value = d;
|
|
1463
1490
|
};
|
|
1464
1491
|
return t({
|
|
1465
1492
|
resetInputVal: A
|
|
@@ -1470,7 +1497,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1470
1497
|
ref_key: "hbMultipSelectModalRef",
|
|
1471
1498
|
ref: a
|
|
1472
1499
|
}, [
|
|
1473
|
-
|
|
1500
|
+
I(y, {
|
|
1474
1501
|
readonly: "",
|
|
1475
1502
|
onClick: k,
|
|
1476
1503
|
value: r.value,
|
|
@@ -1478,11 +1505,11 @@ const Po = ne(Oo), Uo = {
|
|
|
1478
1505
|
placeholder: L.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1479
1506
|
}, {
|
|
1480
1507
|
addonAfter: b(() => [
|
|
1481
|
-
|
|
1508
|
+
I(v(So), { onClick: k })
|
|
1482
1509
|
]),
|
|
1483
1510
|
_: 1
|
|
1484
1511
|
}, 8, ["value", "placeholder"]),
|
|
1485
|
-
|
|
1512
|
+
I(Y, {
|
|
1486
1513
|
visible: l.value,
|
|
1487
1514
|
"onUpdate:visible": d[1] || (d[1] = (_) => l.value = _),
|
|
1488
1515
|
title: e.modelTitle,
|
|
@@ -1490,41 +1517,41 @@ const Po = ne(Oo), Uo = {
|
|
|
1490
1517
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1491
1518
|
}, {
|
|
1492
1519
|
footer: b(() => [
|
|
1493
|
-
|
|
1520
|
+
I(x, { onClick: S }, {
|
|
1494
1521
|
default: b(() => [
|
|
1495
|
-
|
|
1522
|
+
R(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1496
1523
|
]),
|
|
1497
1524
|
_: 1
|
|
1498
1525
|
}),
|
|
1499
|
-
|
|
1526
|
+
I(x, { onClick: V }, {
|
|
1500
1527
|
default: b(() => [
|
|
1501
|
-
|
|
1528
|
+
R(C(L.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1502
1529
|
]),
|
|
1503
1530
|
_: 1
|
|
1504
1531
|
}),
|
|
1505
|
-
|
|
1532
|
+
I(x, {
|
|
1506
1533
|
type: "primary",
|
|
1507
1534
|
onClick: U
|
|
1508
1535
|
}, {
|
|
1509
1536
|
default: b(() => [
|
|
1510
|
-
|
|
1537
|
+
R(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1511
1538
|
]),
|
|
1512
1539
|
_: 1
|
|
1513
1540
|
})
|
|
1514
1541
|
]),
|
|
1515
1542
|
default: b(() => [
|
|
1516
|
-
|
|
1543
|
+
I(P, {
|
|
1517
1544
|
ref_key: "tableRef",
|
|
1518
1545
|
ref: h,
|
|
1519
|
-
columns:
|
|
1520
|
-
dataSource:
|
|
1521
|
-
rowSelection: { selectedRowKeys: s.value, onChange:
|
|
1546
|
+
columns: $.value,
|
|
1547
|
+
dataSource: T.value,
|
|
1548
|
+
rowSelection: { selectedRowKeys: s.value, onChange: F },
|
|
1522
1549
|
rowKey: (_) => _[e.tableKey],
|
|
1523
1550
|
scroll: { y: e.tableHeight }
|
|
1524
1551
|
}, {
|
|
1525
|
-
customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: q, confirm: ae, clearFilters:
|
|
1526
|
-
m("div",
|
|
1527
|
-
|
|
1552
|
+
customFilterDropdown: b(({ setSelectedKeys: _, selectedKeys: q, confirm: ae, clearFilters: pe, column: re }) => [
|
|
1553
|
+
m("div", Fn, [
|
|
1554
|
+
I(y, {
|
|
1528
1555
|
ref_key: "searchInput",
|
|
1529
1556
|
ref: u,
|
|
1530
1557
|
placeholder: `请输入${re.title}`,
|
|
@@ -1533,24 +1560,24 @@ const Po = ne(Oo), Uo = {
|
|
|
1533
1560
|
onChange: (ge) => _(ge.target.value ? [ge.target.value] : []),
|
|
1534
1561
|
onPressEnter: (ge) => D(q, ae, re.dataIndex)
|
|
1535
1562
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1536
|
-
m("section",
|
|
1537
|
-
|
|
1563
|
+
m("section", Hn, [
|
|
1564
|
+
I(x, {
|
|
1538
1565
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1539
1566
|
type: "ghost",
|
|
1540
|
-
onClick: (ge) => g(
|
|
1567
|
+
onClick: (ge) => g(pe, ae)
|
|
1541
1568
|
}, {
|
|
1542
1569
|
default: b(() => [
|
|
1543
|
-
|
|
1570
|
+
R(C(L.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1544
1571
|
]),
|
|
1545
1572
|
_: 1
|
|
1546
1573
|
}, 8, ["onClick"]),
|
|
1547
|
-
|
|
1574
|
+
I(x, {
|
|
1548
1575
|
type: "primary",
|
|
1549
1576
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1550
1577
|
onClick: (ge) => D(q, ae, re.dataIndex)
|
|
1551
1578
|
}, {
|
|
1552
1579
|
default: b(() => [
|
|
1553
|
-
|
|
1580
|
+
R(C(L.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1554
1581
|
]),
|
|
1555
1582
|
_: 1
|
|
1556
1583
|
}, 8, ["onClick"])
|
|
@@ -1558,18 +1585,18 @@ const Po = ne(Oo), Uo = {
|
|
|
1558
1585
|
])
|
|
1559
1586
|
]),
|
|
1560
1587
|
customFilterIcon: b(({ filtered: _ }) => [
|
|
1561
|
-
|
|
1588
|
+
I(v(Ze), {
|
|
1562
1589
|
style: de({ color: _ ? "#108ee9" : void 0 })
|
|
1563
1590
|
}, null, 8, ["style"])
|
|
1564
1591
|
]),
|
|
1565
1592
|
bodyCell: b(({ text: _, column: q }) => [
|
|
1566
|
-
|
|
1567
|
-
(c(!0), w(ee, null,
|
|
1568
|
-
ae.toLowerCase() ===
|
|
1569
|
-
key:
|
|
1593
|
+
f.searchText && f.searchedColumn === q.dataIndex ? (c(), w("span", $n, [
|
|
1594
|
+
(c(!0), w(ee, null, fe(_.toString().split(new RegExp(`(?<=${f.searchText})|(?=${f.searchText})`, "i")), (ae, pe) => (c(), w(ee, null, [
|
|
1595
|
+
ae.toLowerCase() === f.searchText.toLowerCase() ? (c(), w("mark", {
|
|
1596
|
+
key: pe,
|
|
1570
1597
|
class: "highlight"
|
|
1571
1598
|
}, C(ae), 1)) : (c(), w(ee, { key: 1 }, [
|
|
1572
|
-
|
|
1599
|
+
R(C(ae), 1)
|
|
1573
1600
|
], 64))
|
|
1574
1601
|
], 64))), 256))
|
|
1575
1602
|
])) : z("", !0)
|
|
@@ -1582,13 +1609,13 @@ const Po = ne(Oo), Uo = {
|
|
|
1582
1609
|
], 512);
|
|
1583
1610
|
};
|
|
1584
1611
|
}
|
|
1585
|
-
}),
|
|
1612
|
+
}), Mn = ne(In), Bn = { class: "hb-lib-table-act-box" }, Dn = ["onClick"], An = {
|
|
1586
1613
|
href: "javascript:;",
|
|
1587
1614
|
class: "hb-lib-table-main-action"
|
|
1588
|
-
},
|
|
1615
|
+
}, On = ["onClick"], Pn = {
|
|
1589
1616
|
href: "javascript:;",
|
|
1590
1617
|
class: "hb-lib-table-more-action"
|
|
1591
|
-
},
|
|
1618
|
+
}, Un = ["onClick"], Rn = { href: "javascript:;" }, En = ["onClick"], Nn = { class: "hb-lib-table-confirm-modal-content" }, zn = /* @__PURE__ */ te({
|
|
1592
1619
|
name: "HbLibTableAct",
|
|
1593
1620
|
__name: "HbTableAct",
|
|
1594
1621
|
props: {
|
|
@@ -1598,36 +1625,36 @@ const Po = ne(Oo), Uo = {
|
|
|
1598
1625
|
buttonDisplaysQuantity: {}
|
|
1599
1626
|
},
|
|
1600
1627
|
setup(e, { expose: t }) {
|
|
1601
|
-
const o = e, { t: n } = ve(), 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],
|
|
1628
|
+
const o = e, { t: n } = ve(), 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) => {
|
|
1602
1629
|
u.value = {
|
|
1603
1630
|
...u.value,
|
|
1604
1631
|
[D.key]: g
|
|
1605
1632
|
};
|
|
1606
|
-
}, h =
|
|
1633
|
+
}, h = H(() => o.actions.filter(
|
|
1607
1634
|
(D) => D.condition !== void 0 ? D.condition : !0
|
|
1608
|
-
)),
|
|
1635
|
+
)), f = H(() => h.value.slice(0, o.buttonDisplaysQuantity)), T = H(() => $(
|
|
1609
1636
|
h.value.slice(o.buttonDisplaysQuantity)
|
|
1610
1637
|
));
|
|
1611
|
-
function
|
|
1638
|
+
function $(D) {
|
|
1612
1639
|
if (o.filterPermission)
|
|
1613
1640
|
return o.filterPermission(D);
|
|
1614
|
-
let g = [],
|
|
1641
|
+
let g = [], F = [];
|
|
1615
1642
|
return g = JSON.parse(
|
|
1616
1643
|
sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"
|
|
1617
1644
|
), !Array.isArray(g) || D.length === 0 ? (g = [], []) : (g = g.filter((L) => L.type != "2"), D.forEach((L) => {
|
|
1618
1645
|
(!L.permissionsTag || g.findIndex(
|
|
1619
1646
|
(d) => d.action === L.permissionsTag
|
|
1620
|
-
) !== -1) &&
|
|
1621
|
-
}),
|
|
1647
|
+
) !== -1) && F.push(L);
|
|
1648
|
+
}), F);
|
|
1622
1649
|
}
|
|
1623
1650
|
const U = async (D) => {
|
|
1624
1651
|
if (D.needLoading) {
|
|
1625
1652
|
if (s(D)) return;
|
|
1626
|
-
|
|
1627
|
-
const g = () =>
|
|
1653
|
+
p(D, !0);
|
|
1654
|
+
const g = () => p(D, !1), F = D.handler.length >= 2;
|
|
1628
1655
|
try {
|
|
1629
1656
|
const L = D.handler(o.record, g);
|
|
1630
|
-
a(L) ? (await L, g()) :
|
|
1657
|
+
a(L) ? (await L, g()) : F || g();
|
|
1631
1658
|
} catch (L) {
|
|
1632
1659
|
throw g(), L;
|
|
1633
1660
|
}
|
|
@@ -1646,7 +1673,7 @@ const Po = ne(Oo), Uo = {
|
|
|
1646
1673
|
}
|
|
1647
1674
|
}, S = () => {
|
|
1648
1675
|
i.value = !1, r.value = null;
|
|
1649
|
-
}, A =
|
|
1676
|
+
}, A = H(() => r.value ? {
|
|
1650
1677
|
title: r.value.confirmTitle,
|
|
1651
1678
|
content: r.value.confirmContent || r.value.confirmTitle
|
|
1652
1679
|
} : {
|
|
@@ -1654,16 +1681,16 @@ const Po = ne(Oo), Uo = {
|
|
|
1654
1681
|
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1655
1682
|
});
|
|
1656
1683
|
return t({
|
|
1657
|
-
ADropdown:
|
|
1658
|
-
AMenu:
|
|
1659
|
-
AMenuItem:
|
|
1684
|
+
ADropdown: It,
|
|
1685
|
+
AMenu: $t,
|
|
1686
|
+
AMenuItem: Ht,
|
|
1660
1687
|
APopconfirm: at,
|
|
1661
1688
|
AModal: ct,
|
|
1662
1689
|
DownOutlined: pt
|
|
1663
1690
|
}), (D, g) => {
|
|
1664
|
-
const
|
|
1665
|
-
return c(), w("div",
|
|
1666
|
-
(c(!0), w(ee, null,
|
|
1691
|
+
const F = K("a-divider"), L = Wt("has");
|
|
1692
|
+
return c(), w("div", Bn, [
|
|
1693
|
+
(c(!0), w(ee, null, fe(f.value, (d, y) => (c(), w(ee, { key: y }, [
|
|
1667
1694
|
d.needConfirm ? (c(), w(ee, { key: 0 }, [
|
|
1668
1695
|
d.confirmType === "modal" ? (c(), w(ee, { key: 0 }, [
|
|
1669
1696
|
we((c(), w("a", {
|
|
@@ -1671,55 +1698,53 @@ const Po = ne(Oo), Uo = {
|
|
|
1671
1698
|
class: "hb-lib-table-main-action",
|
|
1672
1699
|
onClick: (x) => V(d)
|
|
1673
1700
|
}, [
|
|
1674
|
-
|
|
1675
|
-
], 8,
|
|
1701
|
+
R(C(d.label), 1)
|
|
1702
|
+
], 8, Dn)), [
|
|
1676
1703
|
[L, d.permissionsTag || null]
|
|
1677
1704
|
]),
|
|
1678
|
-
|
|
1705
|
+
T.value && T.value.length > 0 || y !== f.value.length - 1 ? (c(), E(F, {
|
|
1679
1706
|
key: 0,
|
|
1680
1707
|
type: "vertical"
|
|
1681
1708
|
})) : z("", !0)
|
|
1682
1709
|
], 64)) : (c(), w(ee, { key: 1 }, [
|
|
1683
|
-
|
|
1710
|
+
I(v(at), {
|
|
1684
1711
|
title: d.confirmTitle,
|
|
1685
1712
|
onConfirm: (x) => U(d)
|
|
1686
1713
|
}, {
|
|
1687
1714
|
default: b(() => [
|
|
1688
|
-
we((c(), w("a",
|
|
1689
|
-
|
|
1715
|
+
we((c(), w("a", An, [
|
|
1716
|
+
R(C(d.label), 1)
|
|
1690
1717
|
])), [
|
|
1691
1718
|
[L, d.permissionsTag || null]
|
|
1692
1719
|
])
|
|
1693
1720
|
]),
|
|
1694
1721
|
_: 2
|
|
1695
1722
|
}, 1032, ["title", "onConfirm"]),
|
|
1696
|
-
|
|
1723
|
+
T.value && T.value.length > 0 || y !== f.value.length - 1 ? (c(), E(F, {
|
|
1697
1724
|
key: 0,
|
|
1698
1725
|
type: "vertical"
|
|
1699
1726
|
})) : z("", !0)
|
|
1700
1727
|
], 64))
|
|
1701
|
-
], 64)) : d.slot ? (
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
})) : z("", !0)
|
|
1707
|
-
], 64)) : (c(), w(ee, { key: 2 }, [
|
|
1728
|
+
], 64)) : d.slot ? J(D.$slots, d.slot, {
|
|
1729
|
+
key: 1,
|
|
1730
|
+
item: d,
|
|
1731
|
+
haveMore: T.value && T.value.length > 0 || y !== f.value.length - 1
|
|
1732
|
+
}, void 0, !0) : (c(), w(ee, { key: 2 }, [
|
|
1708
1733
|
we((c(), w("a", {
|
|
1709
1734
|
href: "javascript:;",
|
|
1710
1735
|
class: X(["hb-lib-table-main-action", { "is-loading": s(d) }]),
|
|
1711
1736
|
onClick: (x) => U(d)
|
|
1712
1737
|
}, [
|
|
1713
|
-
|
|
1714
|
-
s(d) ? (c(),
|
|
1738
|
+
R(C(d.label) + " ", 1),
|
|
1739
|
+
s(d) ? (c(), E(v(Mt), {
|
|
1715
1740
|
key: 0,
|
|
1716
1741
|
spin: "",
|
|
1717
1742
|
class: "hb-lib-table-action-loading-icon"
|
|
1718
1743
|
})) : z("", !0)
|
|
1719
|
-
], 10,
|
|
1744
|
+
], 10, On)), [
|
|
1720
1745
|
[L, d.permissionsTag || null]
|
|
1721
1746
|
]),
|
|
1722
|
-
|
|
1747
|
+
T.value && T.value.length > 0 || y !== f.value.length - 1 ? we((c(), E(F, {
|
|
1723
1748
|
key: 0,
|
|
1724
1749
|
type: "vertical"
|
|
1725
1750
|
}, null, 512)), [
|
|
@@ -1727,11 +1752,11 @@ const Po = ne(Oo), Uo = {
|
|
|
1727
1752
|
]) : z("", !0)
|
|
1728
1753
|
], 64))
|
|
1729
1754
|
], 64))), 128)),
|
|
1730
|
-
|
|
1755
|
+
T.value && T.value.length > 0 ? (c(), E(v(It), { key: 0 }, {
|
|
1731
1756
|
overlay: b(() => [
|
|
1732
|
-
|
|
1757
|
+
I(v($t), null, {
|
|
1733
1758
|
default: b(() => [
|
|
1734
|
-
(c(!0), w(ee, null,
|
|
1759
|
+
(c(!0), w(ee, null, fe(T.value, (d, y) => we((c(), E(v(Ht), { key: y }, {
|
|
1735
1760
|
default: b(() => [
|
|
1736
1761
|
d.needConfirm ? (c(), w(ee, { key: 0 }, [
|
|
1737
1762
|
d.confirmType === "modal" ? we((c(), w("a", {
|
|
@@ -1739,20 +1764,20 @@ const Po = ne(Oo), Uo = {
|
|
|
1739
1764
|
href: "javascript:;",
|
|
1740
1765
|
onClick: (x) => V(d)
|
|
1741
1766
|
}, [
|
|
1742
|
-
|
|
1743
|
-
], 8,
|
|
1767
|
+
R(C(d.label), 1)
|
|
1768
|
+
], 8, Un)), [
|
|
1744
1769
|
[
|
|
1745
1770
|
L,
|
|
1746
1771
|
d.permissionsTag || null
|
|
1747
1772
|
]
|
|
1748
|
-
]) : we((c(),
|
|
1773
|
+
]) : we((c(), E(v(at), {
|
|
1749
1774
|
key: 1,
|
|
1750
1775
|
title: d.confirmTitle,
|
|
1751
1776
|
onConfirm: (x) => U(d)
|
|
1752
1777
|
}, {
|
|
1753
1778
|
default: b(() => [
|
|
1754
|
-
we((c(), w("a",
|
|
1755
|
-
|
|
1779
|
+
we((c(), w("a", Rn, [
|
|
1780
|
+
R(C(d.label), 1)
|
|
1756
1781
|
])), [
|
|
1757
1782
|
[
|
|
1758
1783
|
L,
|
|
@@ -1775,13 +1800,13 @@ const Po = ne(Oo), Uo = {
|
|
|
1775
1800
|
}),
|
|
1776
1801
|
onClick: (x) => U(d)
|
|
1777
1802
|
}, [
|
|
1778
|
-
|
|
1779
|
-
s(d) ? (c(),
|
|
1803
|
+
R(C(d.label) + " ", 1),
|
|
1804
|
+
s(d) ? (c(), E(v(Mt), {
|
|
1780
1805
|
key: 0,
|
|
1781
1806
|
spin: "",
|
|
1782
1807
|
class: "hb-lib-table-action-loading-icon"
|
|
1783
1808
|
})) : z("", !0)
|
|
1784
|
-
], 10,
|
|
1809
|
+
], 10, En)), [
|
|
1785
1810
|
[L, d.permissionsTag || null]
|
|
1786
1811
|
])
|
|
1787
1812
|
]),
|
|
@@ -1794,14 +1819,14 @@ const Po = ne(Oo), Uo = {
|
|
|
1794
1819
|
})
|
|
1795
1820
|
]),
|
|
1796
1821
|
default: b(() => [
|
|
1797
|
-
m("a",
|
|
1798
|
-
|
|
1799
|
-
|
|
1822
|
+
m("a", Pn, [
|
|
1823
|
+
R(C(D.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1824
|
+
I(v(pt), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1800
1825
|
])
|
|
1801
1826
|
]),
|
|
1802
1827
|
_: 1
|
|
1803
1828
|
})) : z("", !0),
|
|
1804
|
-
|
|
1829
|
+
I(v(ct), {
|
|
1805
1830
|
visible: i.value,
|
|
1806
1831
|
title: A.value.title,
|
|
1807
1832
|
"confirm-loading": l.value,
|
|
@@ -1809,104 +1834,104 @@ const Po = ne(Oo), Uo = {
|
|
|
1809
1834
|
onCancel: S
|
|
1810
1835
|
}, {
|
|
1811
1836
|
default: b(() => [
|
|
1812
|
-
m("p",
|
|
1837
|
+
m("p", Nn, C(A.value.content), 1)
|
|
1813
1838
|
]),
|
|
1814
1839
|
_: 1
|
|
1815
1840
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1816
1841
|
]);
|
|
1817
1842
|
};
|
|
1818
1843
|
}
|
|
1819
|
-
}),
|
|
1844
|
+
}), Vn = /* @__PURE__ */ le(zn, [["__scopeId", "data-v-ec0b7ef0"]]), jn = ne(Vn), Bt = (e) => ({ tableWidth: H(() => {
|
|
1820
1845
|
const o = Array.isArray(e) ? e : e.value;
|
|
1821
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);
|
|
1822
1847
|
}) });
|
|
1823
|
-
var
|
|
1824
|
-
function
|
|
1825
|
-
var t =
|
|
1848
|
+
var Wn = typeof global == "object" && global && global.Object === Object && global, qn = typeof self == "object" && self && self.Object === Object && self, Xt = Wn || qn || Function("return this")(), et = Xt.Symbol, Qt = Object.prototype, Yn = Qt.hasOwnProperty, Kn = Qt.toString, Ee = et ? et.toStringTag : void 0;
|
|
1849
|
+
function Gn(e) {
|
|
1850
|
+
var t = Yn.call(e, Ee), o = e[Ee];
|
|
1826
1851
|
try {
|
|
1827
|
-
e[
|
|
1852
|
+
e[Ee] = void 0;
|
|
1828
1853
|
var n = !0;
|
|
1829
1854
|
} catch {
|
|
1830
1855
|
}
|
|
1831
|
-
var i =
|
|
1832
|
-
return n && (t ? e[
|
|
1833
|
-
}
|
|
1834
|
-
var Kn = Object.prototype, Gn = Kn.toString;
|
|
1835
|
-
function Jn(e) {
|
|
1836
|
-
return Gn.call(e);
|
|
1856
|
+
var i = Kn.call(e);
|
|
1857
|
+
return n && (t ? e[Ee] = o : delete e[Ee]), i;
|
|
1837
1858
|
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1840
|
-
return
|
|
1859
|
+
var Jn = Object.prototype, Xn = Jn.toString;
|
|
1860
|
+
function Qn(e) {
|
|
1861
|
+
return Xn.call(e);
|
|
1841
1862
|
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1863
|
+
var Zn = "[object Null]", el = "[object Undefined]", Dt = et ? et.toStringTag : void 0;
|
|
1864
|
+
function tl(e) {
|
|
1865
|
+
return e == null ? e === void 0 ? el : Zn : Dt && Dt in Object(e) ? Gn(e) : Qn(e);
|
|
1844
1866
|
}
|
|
1845
|
-
var tl = "[object Symbol]";
|
|
1846
1867
|
function ol(e) {
|
|
1847
|
-
return
|
|
1868
|
+
return e != null && typeof e == "object";
|
|
1848
1869
|
}
|
|
1849
|
-
var nl =
|
|
1870
|
+
var nl = "[object Symbol]";
|
|
1850
1871
|
function ll(e) {
|
|
1851
|
-
|
|
1872
|
+
return typeof e == "symbol" || ol(e) && tl(e) == nl;
|
|
1873
|
+
}
|
|
1874
|
+
var al = /\s/;
|
|
1875
|
+
function il(e) {
|
|
1876
|
+
for (var t = e.length; t-- && al.test(e.charAt(t)); )
|
|
1852
1877
|
;
|
|
1853
1878
|
return t;
|
|
1854
1879
|
}
|
|
1855
|
-
var
|
|
1856
|
-
function
|
|
1857
|
-
return e && e.slice(0,
|
|
1880
|
+
var sl = /^\s+/;
|
|
1881
|
+
function rl(e) {
|
|
1882
|
+
return e && e.slice(0, il(e) + 1).replace(sl, "");
|
|
1858
1883
|
}
|
|
1859
1884
|
function bt(e) {
|
|
1860
1885
|
var t = typeof e;
|
|
1861
1886
|
return e != null && (t == "object" || t == "function");
|
|
1862
1887
|
}
|
|
1863
|
-
var
|
|
1864
|
-
function
|
|
1888
|
+
var At = NaN, cl = /^[-+]0x[0-9a-f]+$/i, dl = /^0b[01]+$/i, ul = /^0o[0-7]+$/i, fl = parseInt;
|
|
1889
|
+
function Ot(e) {
|
|
1865
1890
|
if (typeof e == "number")
|
|
1866
1891
|
return e;
|
|
1867
|
-
if (
|
|
1868
|
-
return
|
|
1892
|
+
if (ll(e))
|
|
1893
|
+
return At;
|
|
1869
1894
|
if (bt(e)) {
|
|
1870
1895
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1871
1896
|
e = bt(t) ? t + "" : t;
|
|
1872
1897
|
}
|
|
1873
1898
|
if (typeof e != "string")
|
|
1874
1899
|
return e === 0 ? e : +e;
|
|
1875
|
-
e =
|
|
1876
|
-
var o =
|
|
1877
|
-
return o ||
|
|
1900
|
+
e = rl(e);
|
|
1901
|
+
var o = dl.test(e);
|
|
1902
|
+
return o || ul.test(e) ? fl(e.slice(2), o ? 2 : 8) : cl.test(e) ? At : +e;
|
|
1878
1903
|
}
|
|
1879
1904
|
var it = function() {
|
|
1880
|
-
return
|
|
1881
|
-
},
|
|
1882
|
-
function
|
|
1883
|
-
var n, i, l, r, u, a, s = 0,
|
|
1905
|
+
return Xt.Date.now();
|
|
1906
|
+
}, pl = "Expected a function", bl = Math.max, ml = Math.min;
|
|
1907
|
+
function Zt(e, t, o) {
|
|
1908
|
+
var n, i, l, r, u, a, s = 0, p = !1, h = !1, f = !0;
|
|
1884
1909
|
if (typeof e != "function")
|
|
1885
|
-
throw new TypeError(
|
|
1886
|
-
t =
|
|
1887
|
-
function
|
|
1910
|
+
throw new TypeError(pl);
|
|
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 T(F) {
|
|
1888
1913
|
var L = n, d = i;
|
|
1889
|
-
return n = i = void 0, s =
|
|
1914
|
+
return n = i = void 0, s = F, r = e.apply(d, L), r;
|
|
1890
1915
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return s =
|
|
1916
|
+
function $(F) {
|
|
1917
|
+
return s = F, u = setTimeout(k, t), p ? T(F) : r;
|
|
1893
1918
|
}
|
|
1894
|
-
function U(
|
|
1895
|
-
var L =
|
|
1896
|
-
return h ?
|
|
1919
|
+
function U(F) {
|
|
1920
|
+
var L = F - a, d = F - s, y = t - L;
|
|
1921
|
+
return h ? ml(y, l - d) : y;
|
|
1897
1922
|
}
|
|
1898
|
-
function V(
|
|
1899
|
-
var L =
|
|
1923
|
+
function V(F) {
|
|
1924
|
+
var L = F - a, d = F - s;
|
|
1900
1925
|
return a === void 0 || L >= t || L < 0 || h && d >= l;
|
|
1901
1926
|
}
|
|
1902
1927
|
function k() {
|
|
1903
|
-
var
|
|
1904
|
-
if (V(
|
|
1905
|
-
return S(
|
|
1906
|
-
u = setTimeout(k, U(
|
|
1928
|
+
var F = it();
|
|
1929
|
+
if (V(F))
|
|
1930
|
+
return S(F);
|
|
1931
|
+
u = setTimeout(k, U(F));
|
|
1907
1932
|
}
|
|
1908
|
-
function S(
|
|
1909
|
-
return u = void 0,
|
|
1933
|
+
function S(F) {
|
|
1934
|
+
return u = void 0, f && n ? T(F) : (n = i = void 0, r);
|
|
1910
1935
|
}
|
|
1911
1936
|
function A() {
|
|
1912
1937
|
u !== void 0 && clearTimeout(u), s = 0, n = a = i = u = void 0;
|
|
@@ -1915,21 +1940,21 @@ function Xt(e, t, o) {
|
|
|
1915
1940
|
return u === void 0 ? r : S(it());
|
|
1916
1941
|
}
|
|
1917
1942
|
function g() {
|
|
1918
|
-
var
|
|
1919
|
-
if (n = arguments, i = this, a =
|
|
1943
|
+
var F = it(), L = V(F);
|
|
1944
|
+
if (n = arguments, i = this, a = F, L) {
|
|
1920
1945
|
if (u === void 0)
|
|
1921
|
-
return
|
|
1946
|
+
return $(a);
|
|
1922
1947
|
if (h)
|
|
1923
|
-
return clearTimeout(u), u = setTimeout(k, t),
|
|
1948
|
+
return clearTimeout(u), u = setTimeout(k, t), T(a);
|
|
1924
1949
|
}
|
|
1925
1950
|
return u === void 0 && (u = setTimeout(k, t)), r;
|
|
1926
1951
|
}
|
|
1927
1952
|
return g.cancel = A, g.flush = D, g;
|
|
1928
1953
|
}
|
|
1929
|
-
const
|
|
1954
|
+
const hl = {
|
|
1930
1955
|
key: 0,
|
|
1931
1956
|
class: "hb-lib-list-table-act"
|
|
1932
|
-
},
|
|
1957
|
+
}, vl = { class: "empty-container" }, gl = { key: 1 }, yl = { key: 2 }, _l = /* @__PURE__ */ te({
|
|
1933
1958
|
name: "HbLibListTable",
|
|
1934
1959
|
__name: "HbListTable",
|
|
1935
1960
|
props: {
|
|
@@ -1941,7 +1966,7 @@ const bl = {
|
|
|
1941
1966
|
},
|
|
1942
1967
|
emits: ["change", "resizeCol"],
|
|
1943
1968
|
setup(e, { emit: t }) {
|
|
1944
|
-
const o = he("globalCompConfig", {}), n = t, { t: i } = ve(), l = e, r = O([]), u = he("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } =
|
|
1969
|
+
const o = he("globalCompConfig", {}), n = t, { t: i } = ve(), l = e, r = O([]), u = he("HB_LIST_PAGE_CONTAINER"), { tableWidth: a } = Bt(r), s = O(a.value), p = H(() => l.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1945
1970
|
se(
|
|
1946
1971
|
() => l.columns,
|
|
1947
1972
|
(k) => {
|
|
@@ -1955,16 +1980,16 @@ const bl = {
|
|
|
1955
1980
|
align: D.align || o.listTable?.align || "center"
|
|
1956
1981
|
};
|
|
1957
1982
|
g.ellipsis && !g.needTooltip && (g.needTooltip = !0);
|
|
1958
|
-
let
|
|
1983
|
+
let F = l.defaultWidth || o.listTable?.defaultColWidth || 150;
|
|
1959
1984
|
if (!g.width)
|
|
1960
|
-
g.width =
|
|
1985
|
+
g.width = F;
|
|
1961
1986
|
else if (typeof g.width == "string") {
|
|
1962
1987
|
const L = parseInt(g.width, 10);
|
|
1963
|
-
g.width = isNaN(L) ?
|
|
1988
|
+
g.width = isNaN(L) ? F : L;
|
|
1964
1989
|
}
|
|
1965
1990
|
return g.resizable === void 0 && (g.resizable = !0), g;
|
|
1966
1991
|
});
|
|
1967
|
-
const { tableWidth: A } =
|
|
1992
|
+
const { tableWidth: A } = Bt(r);
|
|
1968
1993
|
s.value = A.value;
|
|
1969
1994
|
},
|
|
1970
1995
|
{
|
|
@@ -1972,43 +1997,43 @@ const bl = {
|
|
|
1972
1997
|
deep: !0
|
|
1973
1998
|
}
|
|
1974
1999
|
);
|
|
1975
|
-
const h =
|
|
2000
|
+
const h = Zt(() => {
|
|
1976
2001
|
n("resizeCol", r.value);
|
|
1977
|
-
}, o.listTable?.colSaveTimeOut || 800),
|
|
2002
|
+
}, o.listTable?.colSaveTimeOut || 800), f = (k, S) => {
|
|
1978
2003
|
if (S) {
|
|
1979
2004
|
const A = typeof k == "string" ? parseInt(k, 10) : k;
|
|
1980
2005
|
S.width = isNaN(A) ? o.listTable?.defaultColWidth || 150 : A, Me(() => {
|
|
1981
2006
|
h();
|
|
1982
2007
|
});
|
|
1983
2008
|
}
|
|
1984
|
-
},
|
|
2009
|
+
}, T = (k, S, A) => {
|
|
1985
2010
|
k?.current && n("change", k, S, A);
|
|
1986
|
-
},
|
|
2011
|
+
}, $ = (k, S = "YYYY-MM-DD HH:mm:ss") => k ? ot(k).format(S) : "", U = (k, S) => k && S[k] || "", V = (k, S = o.listTable?.ellipsisNumber || 20) => k ? k.length > S ? `${k.substring(0, S)}...` : k : "";
|
|
1987
2012
|
return (k, S) => {
|
|
1988
|
-
const A = K("a-empty"), D = K("a-tooltip"), g = K("HbLibCopy"),
|
|
2013
|
+
const A = K("a-empty"), D = K("a-tooltip"), g = K("HbLibCopy"), F = K("a-tag"), L = K("a-table");
|
|
1989
2014
|
return c(), w("div", {
|
|
1990
2015
|
class: X(["hb-lib-list-table", { "nowrap-table": l.rowHeight }]),
|
|
1991
2016
|
style: de({
|
|
1992
2017
|
"--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || ""
|
|
1993
2018
|
})
|
|
1994
2019
|
}, [
|
|
1995
|
-
k.$slots.tableActLeft ? (c(), w("section",
|
|
2020
|
+
k.$slots.tableActLeft ? (c(), w("section", hl, [
|
|
1996
2021
|
J(k.$slots, "tableActLeft", {}, void 0, !0),
|
|
1997
2022
|
J(k.$slots, "tableActRight", {}, void 0, !0)
|
|
1998
2023
|
])) : z("", !0),
|
|
1999
|
-
|
|
2024
|
+
I(L, ce(k.$attrs, {
|
|
2000
2025
|
bordered: "",
|
|
2001
2026
|
columns: r.value,
|
|
2002
2027
|
"table-layout": "fixed",
|
|
2003
|
-
scroll:
|
|
2028
|
+
scroll: p.value ? {
|
|
2004
2029
|
x: s.value
|
|
2005
2030
|
} : { x: s.value, y: v(u).tableHeight },
|
|
2006
|
-
onResizeColumn:
|
|
2007
|
-
onChange:
|
|
2031
|
+
onResizeColumn: f,
|
|
2032
|
+
onChange: T
|
|
2008
2033
|
}), Ne({
|
|
2009
2034
|
emptyText: b(() => [
|
|
2010
|
-
m("div",
|
|
2011
|
-
|
|
2035
|
+
m("div", vl, [
|
|
2036
|
+
I(A, {
|
|
2012
2037
|
description: v(i)("hbLibComp.hbListTable.noData")
|
|
2013
2038
|
}, null, 8, ["description"])
|
|
2014
2039
|
])
|
|
@@ -2022,7 +2047,7 @@ const bl = {
|
|
|
2022
2047
|
column: d,
|
|
2023
2048
|
title: d.title
|
|
2024
2049
|
}, () => [
|
|
2025
|
-
|
|
2050
|
+
R(C(d.title), 1)
|
|
2026
2051
|
], !0)
|
|
2027
2052
|
]),
|
|
2028
2053
|
key: "0"
|
|
@@ -2036,48 +2061,48 @@ const bl = {
|
|
|
2036
2061
|
index: x,
|
|
2037
2062
|
text: P
|
|
2038
2063
|
}, void 0, !0),
|
|
2039
|
-
d && d.needTooltip && !d.needCopy ? (c(),
|
|
2064
|
+
d && d.needTooltip && !d.needCopy ? (c(), E(D, {
|
|
2040
2065
|
key: 0,
|
|
2041
2066
|
placement: e.tooltipPlacement
|
|
2042
2067
|
}, {
|
|
2043
2068
|
title: b(() => [
|
|
2044
|
-
|
|
2069
|
+
R(C(y[d.dataIndex]), 1)
|
|
2045
2070
|
]),
|
|
2046
2071
|
default: b(() => [
|
|
2047
|
-
|
|
2072
|
+
R(" " + C(y[d.dataIndex]), 1)
|
|
2048
2073
|
]),
|
|
2049
2074
|
_: 2
|
|
2050
|
-
}, 1032, ["placement"])) : d && d.needCopy && !d.needTooltip ? (c(), w("div",
|
|
2051
|
-
|
|
2052
|
-
|
|
2075
|
+
}, 1032, ["placement"])) : d && d.needCopy && !d.needTooltip ? (c(), w("div", gl, [
|
|
2076
|
+
R(C(y[d.dataIndex]) + " ", 1),
|
|
2077
|
+
I(g, {
|
|
2053
2078
|
"cp-text": y[d.dataIndex],
|
|
2054
2079
|
style: { position: "relative" }
|
|
2055
2080
|
}, null, 8, ["cp-text"])
|
|
2056
2081
|
])) : z("", !0),
|
|
2057
|
-
d && d.needTooltip && d.needCopy ? (c(), w("div",
|
|
2058
|
-
|
|
2082
|
+
d && d.needTooltip && d.needCopy ? (c(), w("div", yl, [
|
|
2083
|
+
I(D, { placement: e.tooltipPlacement }, {
|
|
2059
2084
|
title: b(() => [
|
|
2060
|
-
|
|
2085
|
+
R(C(y[d.dataIndex]), 1)
|
|
2061
2086
|
]),
|
|
2062
2087
|
default: b(() => [
|
|
2063
|
-
|
|
2088
|
+
R(" " + C(V(
|
|
2064
2089
|
y[d.dataIndex],
|
|
2065
2090
|
d.strLen
|
|
2066
2091
|
)), 1)
|
|
2067
2092
|
]),
|
|
2068
2093
|
_: 2
|
|
2069
2094
|
}, 1032, ["placement"]),
|
|
2070
|
-
|
|
2095
|
+
I(g, {
|
|
2071
2096
|
"cp-text": y[d.dataIndex],
|
|
2072
2097
|
style: { position: "relative" }
|
|
2073
2098
|
}, null, 8, ["cp-text"])
|
|
2074
2099
|
])) : d && d.needFormat ? (c(), w(ee, { key: 3 }, [
|
|
2075
|
-
|
|
2100
|
+
R(C($(y[d.dataIndex], d.format)), 1)
|
|
2076
2101
|
], 64)) : d && d.tags ? (c(), w(ee, { key: 4 }, [
|
|
2077
2102
|
U(
|
|
2078
2103
|
y[d.dataIndex],
|
|
2079
2104
|
d.tags
|
|
2080
|
-
) ? (c(),
|
|
2105
|
+
) ? (c(), E(F, {
|
|
2081
2106
|
key: 0,
|
|
2082
2107
|
color: U(
|
|
2083
2108
|
y[d.dataIndex],
|
|
@@ -2085,7 +2110,7 @@ const bl = {
|
|
|
2085
2110
|
)
|
|
2086
2111
|
}, {
|
|
2087
2112
|
default: b(() => [
|
|
2088
|
-
|
|
2113
|
+
R(C(y[d.dataIndex]), 1)
|
|
2089
2114
|
]),
|
|
2090
2115
|
_: 2
|
|
2091
2116
|
}, 1032, ["color"])) : z("", !0)
|
|
@@ -2153,16 +2178,16 @@ const bl = {
|
|
|
2153
2178
|
], 6);
|
|
2154
2179
|
};
|
|
2155
2180
|
}
|
|
2156
|
-
}),
|
|
2181
|
+
}), Ll = /* @__PURE__ */ le(_l, [["__scopeId", "data-v-66578d50"]]), Cl = ne(Ll), wl = { class: "hb-lib-table-setting-box" }, kl = {
|
|
2157
2182
|
key: 0,
|
|
2158
2183
|
class: "hb-lib-table-drag-item"
|
|
2159
|
-
},
|
|
2184
|
+
}, Sl = {
|
|
2160
2185
|
key: 0,
|
|
2161
2186
|
class: "hb-lib-table-drag-item-act"
|
|
2162
|
-
},
|
|
2187
|
+
}, xl = ["onClick"], Tl = ["onClick"], Fl = { class: "hb-lib-table-set-btn-group" }, Hl = {
|
|
2163
2188
|
class: "select-all-container",
|
|
2164
2189
|
style: { "margin-right": "10px" }
|
|
2165
|
-
},
|
|
2190
|
+
}, $l = /* @__PURE__ */ te({
|
|
2166
2191
|
name: "HbLibTableColumnSet",
|
|
2167
2192
|
__name: "HbTableColumnSet",
|
|
2168
2193
|
props: {
|
|
@@ -2195,11 +2220,11 @@ const bl = {
|
|
|
2195
2220
|
},
|
|
2196
2221
|
emits: ["on-get-columns"],
|
|
2197
2222
|
setup(e, { emit: t }) {
|
|
2198
|
-
const o = t, { t: n } = ve(), i = e, l = O([]), r =
|
|
2223
|
+
const o = t, { t: n } = ve(), i = e, l = O([]), r = H(() => a.value.filter((d) => d.checked));
|
|
2199
2224
|
O([]);
|
|
2200
|
-
const u = O(!1), a = O([]), s = O(null),
|
|
2225
|
+
const u = O(!1), a = O([]), s = O(null), p = H(() => r.value.length > 0 && r.value.length === l.value.length), h = H(() => r.value.length > 0 && r.value.length < l.value.length), f = (d) => {
|
|
2201
2226
|
s.value = d.oldIndex;
|
|
2202
|
-
},
|
|
2227
|
+
}, T = (d) => {
|
|
2203
2228
|
const y = d.newIndex;
|
|
2204
2229
|
if (l.value.some(
|
|
2205
2230
|
(P) => P.fixed === "left" || P.fixed === "right" || P.fixed === !0
|
|
@@ -2213,7 +2238,7 @@ const bl = {
|
|
|
2213
2238
|
}
|
|
2214
2239
|
}
|
|
2215
2240
|
s.value = null;
|
|
2216
|
-
},
|
|
2241
|
+
}, $ = (d) => {
|
|
2217
2242
|
d.target.checked ? a.value.forEach((x) => x.checked = !0) : a.value.forEach((x) => {
|
|
2218
2243
|
x.dataIndex !== "action" && x.dataIndex !== "actions" && (x.checked = !1);
|
|
2219
2244
|
});
|
|
@@ -2246,7 +2271,7 @@ const bl = {
|
|
|
2246
2271
|
i.tableColumns.forEach(function(y) {
|
|
2247
2272
|
d.push(y.dataIndex);
|
|
2248
2273
|
});
|
|
2249
|
-
}, g = (d) => d.children[0].text,
|
|
2274
|
+
}, g = (d) => d.children[0].text, F = (d) => {
|
|
2250
2275
|
delete d.fixed;
|
|
2251
2276
|
const y = a.value.findIndex(
|
|
2252
2277
|
(x) => x.value === d.value
|
|
@@ -2285,8 +2310,8 @@ const bl = {
|
|
|
2285
2310
|
}
|
|
2286
2311
|
), (d, y) => {
|
|
2287
2312
|
const x = K("a-tooltip"), P = K("a-button");
|
|
2288
|
-
return c(), w("div",
|
|
2289
|
-
|
|
2313
|
+
return c(), w("div", wl, [
|
|
2314
|
+
I(v(yo), {
|
|
2290
2315
|
visible: u.value,
|
|
2291
2316
|
"onUpdate:visible": y[1] || (y[1] = (Y) => u.value = Y),
|
|
2292
2317
|
title: v(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
@@ -2295,7 +2320,7 @@ const bl = {
|
|
|
2295
2320
|
"overlay-class-name": "column_setting_popover"
|
|
2296
2321
|
}, {
|
|
2297
2322
|
content: b(() => [
|
|
2298
|
-
|
|
2323
|
+
I(v(Je), {
|
|
2299
2324
|
modelValue: a.value,
|
|
2300
2325
|
"onUpdate:modelValue": y[0] || (y[0] = (Y) => a.value = Y),
|
|
2301
2326
|
"item-key": "value",
|
|
@@ -2303,12 +2328,12 @@ const bl = {
|
|
|
2303
2328
|
"ghost-class": "ghost",
|
|
2304
2329
|
animation: "200",
|
|
2305
2330
|
handle: ".drag-handle",
|
|
2306
|
-
onStart:
|
|
2307
|
-
onEnd:
|
|
2331
|
+
onStart: f,
|
|
2332
|
+
onEnd: T
|
|
2308
2333
|
}, {
|
|
2309
2334
|
item: b(({ element: Y }) => [
|
|
2310
|
-
Y.fixed !== "right" ? (c(), w("div",
|
|
2311
|
-
|
|
2335
|
+
Y.fixed !== "right" ? (c(), w("div", kl, [
|
|
2336
|
+
I(v(Qe), {
|
|
2312
2337
|
checked: Y.checked,
|
|
2313
2338
|
onChange: (_) => S(
|
|
2314
2339
|
Y,
|
|
@@ -2316,26 +2341,26 @@ const bl = {
|
|
|
2316
2341
|
)
|
|
2317
2342
|
}, {
|
|
2318
2343
|
default: b(() => [
|
|
2319
|
-
|
|
2344
|
+
R(C(Y.label), 1)
|
|
2320
2345
|
]),
|
|
2321
2346
|
_: 2
|
|
2322
2347
|
}, 1032, ["checked", "onChange"]),
|
|
2323
|
-
Y.checked ? (c(), w("section",
|
|
2348
|
+
Y.checked ? (c(), w("section", Sl, [
|
|
2324
2349
|
m("span", {
|
|
2325
2350
|
class: X(
|
|
2326
2351
|
Y.fixed ? "drag-hide" : "drag-handle"
|
|
2327
2352
|
)
|
|
2328
2353
|
}, " ⋮⋮ ", 2),
|
|
2329
|
-
Y.fixed ? (c(),
|
|
2354
|
+
Y.fixed ? (c(), E(x, { key: 0 }, {
|
|
2330
2355
|
title: b(() => [
|
|
2331
|
-
|
|
2356
|
+
R(C(v(n)(
|
|
2332
2357
|
"hbLibComp.hbLibListTableColumsSet.cancelFix"
|
|
2333
2358
|
)), 1)
|
|
2334
2359
|
]),
|
|
2335
2360
|
default: b(() => [
|
|
2336
2361
|
m("span", {
|
|
2337
2362
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2338
|
-
onClick: (_) =>
|
|
2363
|
+
onClick: (_) => F(Y)
|
|
2339
2364
|
}, [...y[2] || (y[2] = [
|
|
2340
2365
|
m("svg", {
|
|
2341
2366
|
t: "1759048615600",
|
|
@@ -2353,13 +2378,13 @@ const bl = {
|
|
|
2353
2378
|
fill: "#ff5000"
|
|
2354
2379
|
})
|
|
2355
2380
|
], -1)
|
|
2356
|
-
])], 8,
|
|
2381
|
+
])], 8, xl)
|
|
2357
2382
|
]),
|
|
2358
2383
|
_: 2
|
|
2359
2384
|
}, 1024)) : z("", !0),
|
|
2360
|
-
Y.fixed ? z("", !0) : (c(),
|
|
2385
|
+
Y.fixed ? z("", !0) : (c(), E(x, { key: 1 }, {
|
|
2361
2386
|
title: b(() => [
|
|
2362
|
-
|
|
2387
|
+
R(C(v(n)(
|
|
2363
2388
|
"hbLibComp.hbLibListTableColumsSet.fix"
|
|
2364
2389
|
)), 1)
|
|
2365
2390
|
]),
|
|
@@ -2384,7 +2409,7 @@ const bl = {
|
|
|
2384
2409
|
fill: "#ff5000"
|
|
2385
2410
|
})
|
|
2386
2411
|
], -1)
|
|
2387
|
-
])], 8,
|
|
2412
|
+
])], 8, Tl)
|
|
2388
2413
|
]),
|
|
2389
2414
|
_: 2
|
|
2390
2415
|
}, 1024))
|
|
@@ -2393,42 +2418,42 @@ const bl = {
|
|
|
2393
2418
|
]),
|
|
2394
2419
|
_: 1
|
|
2395
2420
|
}, 8, ["modelValue"]),
|
|
2396
|
-
m("div",
|
|
2397
|
-
m("div",
|
|
2398
|
-
|
|
2399
|
-
checked:
|
|
2421
|
+
m("div", Fl, [
|
|
2422
|
+
m("div", Hl, [
|
|
2423
|
+
I(v(Qe), {
|
|
2424
|
+
checked: p.value,
|
|
2400
2425
|
indeterminate: h.value,
|
|
2401
|
-
onChange:
|
|
2426
|
+
onChange: $
|
|
2402
2427
|
}, {
|
|
2403
2428
|
default: b(() => [
|
|
2404
|
-
|
|
2429
|
+
R(C(v(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2405
2430
|
]),
|
|
2406
2431
|
_: 1
|
|
2407
2432
|
}, 8, ["checked", "indeterminate"])
|
|
2408
2433
|
]),
|
|
2409
|
-
i.localColumns.length ? (c(),
|
|
2434
|
+
i.localColumns.length ? (c(), E(P, {
|
|
2410
2435
|
key: 0,
|
|
2411
2436
|
style: { "margin-right": "6px" },
|
|
2412
2437
|
onClick: k
|
|
2413
2438
|
}, {
|
|
2414
2439
|
default: b(() => [
|
|
2415
|
-
|
|
2440
|
+
R(C(v(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2416
2441
|
]),
|
|
2417
2442
|
_: 1
|
|
2418
2443
|
})) : z("", !0),
|
|
2419
|
-
|
|
2444
|
+
I(P, {
|
|
2420
2445
|
type: "primary",
|
|
2421
2446
|
onClick: A
|
|
2422
2447
|
}, {
|
|
2423
2448
|
default: b(() => [
|
|
2424
|
-
|
|
2449
|
+
R(C(v(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2425
2450
|
]),
|
|
2426
2451
|
_: 1
|
|
2427
2452
|
})
|
|
2428
2453
|
])
|
|
2429
2454
|
]),
|
|
2430
2455
|
default: b(() => [
|
|
2431
|
-
|
|
2456
|
+
I(x, {
|
|
2432
2457
|
title: v(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2433
2458
|
placement: "leftTop"
|
|
2434
2459
|
}, {
|
|
@@ -2465,7 +2490,7 @@ const bl = {
|
|
|
2465
2490
|
]);
|
|
2466
2491
|
};
|
|
2467
2492
|
}
|
|
2468
|
-
}),
|
|
2493
|
+
}), Il = /* @__PURE__ */ le($l, [["__scopeId", "data-v-3b97f848"]]), Ml = ne(Il), Bl = /* @__PURE__ */ te({
|
|
2469
2494
|
name: "HbLibFormTooltipSelect",
|
|
2470
2495
|
inheritAttrs: !1,
|
|
2471
2496
|
__name: "HbTooltipSelect",
|
|
@@ -2483,15 +2508,15 @@ const bl = {
|
|
|
2483
2508
|
}),
|
|
2484
2509
|
emits: ["update:value"],
|
|
2485
2510
|
setup(e, { expose: t }) {
|
|
2486
|
-
const o = e, n =
|
|
2487
|
-
const
|
|
2511
|
+
const o = e, n = uo(), i = H(() => {
|
|
2512
|
+
const $ = n, U = $.dropdownClassName;
|
|
2488
2513
|
return {
|
|
2489
|
-
|
|
2514
|
+
...$,
|
|
2490
2515
|
dropdownClassName: U ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2491
2516
|
};
|
|
2492
|
-
}), l = O(), r =
|
|
2517
|
+
}), l = O(), r = jt(e, "value"), u = H(() => o.options ?? []), a = H(() => ({
|
|
2493
2518
|
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2494
|
-
})), s = (
|
|
2519
|
+
})), s = ($) => $.tooltip ?? $.label, p = ($) => $.key ?? $.label, h = ($) => !!(o.enableTooltip && s($));
|
|
2495
2520
|
return t({
|
|
2496
2521
|
focus: () => {
|
|
2497
2522
|
l.value?.focus?.();
|
|
@@ -2500,7 +2525,7 @@ const bl = {
|
|
|
2500
2525
|
l.value?.blur?.();
|
|
2501
2526
|
},
|
|
2502
2527
|
selectRef: l
|
|
2503
|
-
}), (
|
|
2528
|
+
}), ($, U) => (c(), E(v(ut), ce({
|
|
2504
2529
|
ref_key: "selectRef",
|
|
2505
2530
|
ref: l
|
|
2506
2531
|
}, i.value, {
|
|
@@ -2509,13 +2534,13 @@ const bl = {
|
|
|
2509
2534
|
class: "hb_lib_form_tooltip_select"
|
|
2510
2535
|
}), {
|
|
2511
2536
|
default: b(() => [
|
|
2512
|
-
|
|
2513
|
-
key:
|
|
2537
|
+
$.$slots.default ? J($.$slots, "default", { key: 0 }, void 0, !0) : (c(!0), w(ee, { key: 1 }, fe(u.value, (V) => (c(), E(v(ft), ce({
|
|
2538
|
+
key: p(V),
|
|
2514
2539
|
value: V.value,
|
|
2515
2540
|
disabled: V.disabled
|
|
2516
2541
|
}, { ref_for: !0 }, V.optionProps), {
|
|
2517
2542
|
default: b(() => [
|
|
2518
|
-
h(V) ? (c(),
|
|
2543
|
+
h(V) ? (c(), E(v(Xe), {
|
|
2519
2544
|
key: 0,
|
|
2520
2545
|
title: s(V),
|
|
2521
2546
|
placement: o.tooltipPlacement,
|
|
@@ -2538,10 +2563,10 @@ const bl = {
|
|
|
2538
2563
|
_: 3
|
|
2539
2564
|
}, 16, ["value"]));
|
|
2540
2565
|
}
|
|
2541
|
-
}),
|
|
2566
|
+
}), Dl = /* @__PURE__ */ le(Bl, [["__scopeId", "data-v-13285691"]]), Al = ne(Dl), Ol = { class: "ant-upload-drag-icon" }, Pl = { class: "ant-upload-text" }, Ul = { style: { color: "#ff5000" } }, Rl = { class: "ant-upload-hint" }, El = {
|
|
2542
2567
|
key: 0,
|
|
2543
2568
|
class: "hb_import_btn"
|
|
2544
|
-
},
|
|
2569
|
+
}, Nl = ["href"], zl = /* @__PURE__ */ te({
|
|
2545
2570
|
name: "HbLibImportFile",
|
|
2546
2571
|
__name: "HbImportFile",
|
|
2547
2572
|
props: {
|
|
@@ -2560,17 +2585,17 @@ const bl = {
|
|
|
2560
2585
|
const { t: o } = ve(), n = O(), i = e, l = O(!1), r = Ve({
|
|
2561
2586
|
fileList: [],
|
|
2562
2587
|
visible: !1
|
|
2563
|
-
}), u = (
|
|
2564
|
-
if (
|
|
2588
|
+
}), u = (f) => {
|
|
2589
|
+
if (f == null)
|
|
2565
2590
|
return;
|
|
2566
|
-
const
|
|
2567
|
-
if (
|
|
2568
|
-
const
|
|
2569
|
-
|
|
2591
|
+
const T = r.fileList.indexOf(f);
|
|
2592
|
+
if (T !== -1) {
|
|
2593
|
+
const $ = r.fileList.slice();
|
|
2594
|
+
$.splice(T, 1), r.fileList = $;
|
|
2570
2595
|
}
|
|
2571
2596
|
}, a = () => {
|
|
2572
2597
|
r.visible = !1, r.fileList = [], l.value = !1;
|
|
2573
|
-
}, s = (
|
|
2598
|
+
}, s = (f) => (r.fileList = [f], i.beforeUpload ? i.beforeUpload(f.originFileObj) : !1), p = () => {
|
|
2574
2599
|
n.value.validateFields().then(() => {
|
|
2575
2600
|
i.beforeSubmit && (l.value = !0, i.beforeSubmit(r.fileList).then(() => {
|
|
2576
2601
|
}).finally(() => {
|
|
@@ -2585,33 +2610,33 @@ const bl = {
|
|
|
2585
2610
|
openModal: h,
|
|
2586
2611
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2587
2612
|
confirmLoading: l
|
|
2588
|
-
}), (
|
|
2589
|
-
const
|
|
2613
|
+
}), (f, T) => {
|
|
2614
|
+
const $ = K("a-upload-dragger"), U = K("a-form-item"), V = K("a-form"), k = K("a-modal"), S = K("a-button");
|
|
2590
2615
|
return c(), w(ee, null, [
|
|
2591
|
-
|
|
2616
|
+
I(k, ce({
|
|
2592
2617
|
visible: r.visible,
|
|
2593
|
-
"onUpdate:visible":
|
|
2618
|
+
"onUpdate:visible": T[0] || (T[0] = (A) => r.visible = A),
|
|
2594
2619
|
title: i.title,
|
|
2595
2620
|
"confirm-loading": l.value
|
|
2596
|
-
},
|
|
2621
|
+
}, f.$attrs, {
|
|
2597
2622
|
width: i.modalWidth,
|
|
2598
2623
|
onCancel: a,
|
|
2599
|
-
onOk:
|
|
2624
|
+
onOk: p
|
|
2600
2625
|
}), {
|
|
2601
2626
|
default: b(() => [
|
|
2602
|
-
|
|
2627
|
+
I(V, {
|
|
2603
2628
|
ref_key: "modalFormRef",
|
|
2604
2629
|
ref: n,
|
|
2605
2630
|
model: r
|
|
2606
2631
|
}, {
|
|
2607
2632
|
default: b(() => [
|
|
2608
|
-
|
|
2633
|
+
I(U, {
|
|
2609
2634
|
name: "fileList",
|
|
2610
2635
|
label: v(o)("hbLibComp.HbImportFile.fileLabel"),
|
|
2611
2636
|
rules: [{ required: i.isRequired, message: v(o)("hbLibComp.HbImportFile.clickUp") }]
|
|
2612
2637
|
}, {
|
|
2613
2638
|
default: b(() => [
|
|
2614
|
-
|
|
2639
|
+
I($, {
|
|
2615
2640
|
"max-count": i.maxCount,
|
|
2616
2641
|
multiple: i.multiple,
|
|
2617
2642
|
accept: i.acceptFile,
|
|
@@ -2621,14 +2646,14 @@ const bl = {
|
|
|
2621
2646
|
onRemove: u
|
|
2622
2647
|
}, {
|
|
2623
2648
|
default: b(() => [
|
|
2624
|
-
m("p",
|
|
2625
|
-
|
|
2649
|
+
m("p", Ol, [
|
|
2650
|
+
I(v(xo), { style: { "font-size": "37px" } })
|
|
2626
2651
|
]),
|
|
2627
|
-
m("p",
|
|
2628
|
-
|
|
2629
|
-
m("span",
|
|
2652
|
+
m("p", Pl, [
|
|
2653
|
+
R(C(v(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2654
|
+
m("span", Ul, C(v(o)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2630
2655
|
]),
|
|
2631
|
-
m("p",
|
|
2656
|
+
m("p", Rl, C(v(o)("hbLibComp.HbFileUploadModal.format")) + ": " + C(i.acceptFile), 1)
|
|
2632
2657
|
]),
|
|
2633
2658
|
_: 1
|
|
2634
2659
|
}, 8, ["max-count", "multiple", "accept", "file-list"])
|
|
@@ -2638,22 +2663,22 @@ const bl = {
|
|
|
2638
2663
|
]),
|
|
2639
2664
|
_: 1
|
|
2640
2665
|
}, 8, ["model"]),
|
|
2641
|
-
i.templateUrl ? (c(), w("p",
|
|
2666
|
+
i.templateUrl ? (c(), w("p", El, [
|
|
2642
2667
|
m("a", {
|
|
2643
2668
|
download: "Import_number-template.xlsx",
|
|
2644
2669
|
href: i.templateUrl
|
|
2645
|
-
}, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9,
|
|
2670
|
+
}, C(v(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, Nl)
|
|
2646
2671
|
])) : z("", !0)
|
|
2647
2672
|
]),
|
|
2648
2673
|
_: 1
|
|
2649
2674
|
}, 16, ["visible", "title", "confirm-loading", "width"]),
|
|
2650
|
-
J(
|
|
2651
|
-
|
|
2675
|
+
J(f.$slots, "btn", {}, () => [
|
|
2676
|
+
I(S, {
|
|
2652
2677
|
type: "primary",
|
|
2653
2678
|
onClick: h
|
|
2654
2679
|
}, {
|
|
2655
2680
|
default: b(() => [
|
|
2656
|
-
|
|
2681
|
+
R(C(e.btnText), 1)
|
|
2657
2682
|
]),
|
|
2658
2683
|
_: 1
|
|
2659
2684
|
})
|
|
@@ -2661,7 +2686,7 @@ const bl = {
|
|
|
2661
2686
|
], 64);
|
|
2662
2687
|
};
|
|
2663
2688
|
}
|
|
2664
|
-
}),
|
|
2689
|
+
}), Vl = /* @__PURE__ */ le(zl, [["__scopeId", "data-v-a11cda0f"]]), jl = ne(Vl), Wl = { class: "hb_lib_log_modal_content" }, ql = { class: "log_remark" }, Yl = /* @__PURE__ */ te({
|
|
2665
2690
|
name: "HbLibLogModal",
|
|
2666
2691
|
__name: "HbLogModal",
|
|
2667
2692
|
props: {
|
|
@@ -2683,7 +2708,7 @@ const bl = {
|
|
|
2683
2708
|
},
|
|
2684
2709
|
emits: ["update:visible"],
|
|
2685
2710
|
setup(e, { expose: t, emit: o }) {
|
|
2686
|
-
const { t: n } = ve(), i =
|
|
2711
|
+
const { t: n } = ve(), i = fo(), l = e, r = [
|
|
2687
2712
|
{
|
|
2688
2713
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
2689
2714
|
dataIndex: "userName",
|
|
@@ -2695,9 +2720,9 @@ const bl = {
|
|
|
2695
2720
|
width: "25%"
|
|
2696
2721
|
},
|
|
2697
2722
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2698
|
-
], u =
|
|
2723
|
+
], u = H(() => l.columns || r), a = H(
|
|
2699
2724
|
() => l.title || n("hbLibComp.HbLogModal.operateLogs")
|
|
2700
|
-
), s =
|
|
2725
|
+
), s = H(() => !!i.title), p = O(!1), h = Ve({
|
|
2701
2726
|
list: [],
|
|
2702
2727
|
pagination: {
|
|
2703
2728
|
current: 1,
|
|
@@ -2722,20 +2747,20 @@ const bl = {
|
|
|
2722
2747
|
immediate: !0
|
|
2723
2748
|
}
|
|
2724
2749
|
);
|
|
2725
|
-
const
|
|
2750
|
+
const f = () => {
|
|
2726
2751
|
const S = {
|
|
2727
2752
|
pageIndex: h.pagination.current,
|
|
2728
2753
|
pageSize: h.pagination.pageSize,
|
|
2729
2754
|
query: l.params
|
|
2730
2755
|
};
|
|
2731
|
-
l.getLogData && (
|
|
2756
|
+
l.getLogData && (p.value = !0, l.getLogData(S).then((A) => {
|
|
2732
2757
|
Number(A.code) == 200 ? (h.pagination.total = Number(A.data.total), h.list = A.data[l.dataStr] || []) : Ie.error(A.message);
|
|
2733
2758
|
}).finally(() => {
|
|
2734
|
-
|
|
2759
|
+
p.value = !1;
|
|
2735
2760
|
}));
|
|
2736
|
-
},
|
|
2737
|
-
h.pagination.current = S.current, h.pagination.pageSize = S.pageSize,
|
|
2738
|
-
},
|
|
2761
|
+
}, T = (S) => {
|
|
2762
|
+
h.pagination.current = S.current, h.pagination.pageSize = S.pageSize, f();
|
|
2763
|
+
}, $ = () => {
|
|
2739
2764
|
h.list = [], h.pagination.current = 1, k("update:visible", !1);
|
|
2740
2765
|
}, U = () => {
|
|
2741
2766
|
k("update:visible", !0);
|
|
@@ -2743,64 +2768,64 @@ const bl = {
|
|
|
2743
2768
|
return se(
|
|
2744
2769
|
() => l.visible,
|
|
2745
2770
|
(S) => {
|
|
2746
|
-
S &&
|
|
2771
|
+
S && f();
|
|
2747
2772
|
}
|
|
2748
2773
|
), t({
|
|
2749
|
-
close:
|
|
2750
|
-
loading:
|
|
2774
|
+
close: $,
|
|
2775
|
+
loading: p
|
|
2751
2776
|
}), (S, A) => {
|
|
2752
|
-
const D = K("a-tooltip"), g = K("HbLibCopy"),
|
|
2777
|
+
const D = K("a-tooltip"), g = K("HbLibCopy"), F = K("a-table"), L = K("a-button"), d = K("HbLibModal");
|
|
2753
2778
|
return c(), w(ee, null, [
|
|
2754
|
-
|
|
2779
|
+
I(d, ce(S.$attrs, {
|
|
2755
2780
|
visible: e.visible,
|
|
2756
2781
|
title: s.value ? void 0 : a.value,
|
|
2757
2782
|
width: e.width,
|
|
2758
2783
|
height: e.height,
|
|
2759
2784
|
modalStyle: e.modalStyle,
|
|
2760
2785
|
bodyStyle: e.bodyStyle,
|
|
2761
|
-
onCancel:
|
|
2786
|
+
onCancel: $
|
|
2762
2787
|
}), Ne({
|
|
2763
2788
|
footer: b(() => [
|
|
2764
|
-
|
|
2789
|
+
I(L, { onClick: $ }, {
|
|
2765
2790
|
default: b(() => [
|
|
2766
|
-
|
|
2791
|
+
R(C(v(n)("hbLibComp.HbLogModal.close")), 1)
|
|
2767
2792
|
]),
|
|
2768
2793
|
_: 1
|
|
2769
2794
|
})
|
|
2770
2795
|
]),
|
|
2771
2796
|
default: b(() => [
|
|
2772
|
-
m("div",
|
|
2773
|
-
|
|
2797
|
+
m("div", Wl, [
|
|
2798
|
+
I(F, {
|
|
2774
2799
|
bordered: "",
|
|
2775
2800
|
rowKey: "id",
|
|
2776
2801
|
columns: u.value,
|
|
2777
2802
|
dataSource: h.list,
|
|
2778
2803
|
pagination: h.pagination,
|
|
2779
|
-
loading:
|
|
2804
|
+
loading: p.value,
|
|
2780
2805
|
scroll: { y: e.scrollY },
|
|
2781
|
-
onChange:
|
|
2806
|
+
onChange: T
|
|
2782
2807
|
}, Ne({
|
|
2783
2808
|
bodyCell: b(({ column: y, record: x }) => [
|
|
2784
2809
|
y && y.needTooltip ? (c(), w(ee, { key: 0 }, [
|
|
2785
|
-
y.needTooltip ? (c(),
|
|
2810
|
+
y.needTooltip ? (c(), E(D, { key: 0 }, {
|
|
2786
2811
|
title: b(() => [
|
|
2787
|
-
|
|
2812
|
+
R(C(x[y.dataIndex]), 1)
|
|
2788
2813
|
]),
|
|
2789
2814
|
default: b(() => [
|
|
2790
|
-
|
|
2815
|
+
R(" " + C(x[y.dataIndex]), 1)
|
|
2791
2816
|
]),
|
|
2792
2817
|
_: 2
|
|
2793
2818
|
}, 1024)) : z("", !0)
|
|
2794
2819
|
], 64)) : z("", !0),
|
|
2795
2820
|
y && y.needCopy ? (c(), w(ee, { key: 1 }, [
|
|
2796
|
-
m("div",
|
|
2797
|
-
|
|
2821
|
+
m("div", ql, C(x[y.dataIndex]), 1),
|
|
2822
|
+
I(g, {
|
|
2798
2823
|
"cp-text": x[y.dataIndex],
|
|
2799
2824
|
style: { position: "relative" }
|
|
2800
2825
|
}, null, 8, ["cp-text"])
|
|
2801
2826
|
], 64)) : z("", !0),
|
|
2802
2827
|
y && y.needFormat ? (c(), w(ee, { key: 2 }, [
|
|
2803
|
-
|
|
2828
|
+
R(C(V(
|
|
2804
2829
|
x[y.dataIndex],
|
|
2805
2830
|
y.operateTime
|
|
2806
2831
|
)), 1)
|
|
@@ -2812,7 +2837,7 @@ const bl = {
|
|
|
2812
2837
|
name: "headerCell",
|
|
2813
2838
|
fn: b(({ column: y }) => [
|
|
2814
2839
|
J(S.$slots, "headerCell", { column: y }, () => [
|
|
2815
|
-
|
|
2840
|
+
R(C(y.title), 1)
|
|
2816
2841
|
], !0)
|
|
2817
2842
|
]),
|
|
2818
2843
|
key: "0"
|
|
@@ -2831,9 +2856,9 @@ const bl = {
|
|
|
2831
2856
|
} : void 0
|
|
2832
2857
|
]), 1040, ["visible", "title", "width", "height", "modalStyle", "bodyStyle"]),
|
|
2833
2858
|
e.needBtn ? J(S.$slots, "default", { key: 0 }, () => [
|
|
2834
|
-
|
|
2859
|
+
I(L, { onClick: U }, {
|
|
2835
2860
|
default: b(() => [
|
|
2836
|
-
|
|
2861
|
+
R(C(e.logBtnText), 1)
|
|
2837
2862
|
]),
|
|
2838
2863
|
_: 1
|
|
2839
2864
|
})
|
|
@@ -2841,7 +2866,7 @@ const bl = {
|
|
|
2841
2866
|
], 64);
|
|
2842
2867
|
};
|
|
2843
2868
|
}
|
|
2844
|
-
}),
|
|
2869
|
+
}), Kl = /* @__PURE__ */ le(Yl, [["__scopeId", "data-v-3ab75993"]]), Gl = ne(Kl), nt = Symbol("GLOBAL_CONFIG_KEY"), Jl = {
|
|
2845
2870
|
// 图片上传组件的配置
|
|
2846
2871
|
importFile: {
|
|
2847
2872
|
isRequired: !1,
|
|
@@ -2883,7 +2908,7 @@ const bl = {
|
|
|
2883
2908
|
// 表单距离底部的距离
|
|
2884
2909
|
formItemMb: 10
|
|
2885
2910
|
}
|
|
2886
|
-
},
|
|
2911
|
+
}, Xl = { class: "hb_ui_config" }, Ql = /* @__PURE__ */ te({
|
|
2887
2912
|
name: "HbUiConfig",
|
|
2888
2913
|
__name: "hbUiConfig",
|
|
2889
2914
|
props: {
|
|
@@ -2895,17 +2920,17 @@ const bl = {
|
|
|
2895
2920
|
return se(
|
|
2896
2921
|
() => t.config,
|
|
2897
2922
|
(n) => {
|
|
2898
|
-
o = Ve(ke.merge({},
|
|
2923
|
+
o = Ve(ke.merge({}, Jl, n));
|
|
2899
2924
|
},
|
|
2900
2925
|
{ deep: !0, immediate: !0 }
|
|
2901
|
-
), Ue(nt, o), (n, i) => (c(), w("div",
|
|
2926
|
+
), Ue(nt, o), (n, i) => (c(), w("div", Xl, [
|
|
2902
2927
|
J(n.$slots, "default")
|
|
2903
2928
|
]));
|
|
2904
2929
|
}
|
|
2905
|
-
}),
|
|
2930
|
+
}), Zl = ne(Ql), ea = { class: "hb_card" }, ta = {
|
|
2906
2931
|
key: 0,
|
|
2907
2932
|
class: "hb_card_header"
|
|
2908
|
-
},
|
|
2933
|
+
}, oa = { class: "hb_fix" }, na = { class: "hb_card_header-title" }, la = { class: "hb_card_header-action" }, aa = { class: "hb_card_body" }, ia = /* @__PURE__ */ te({
|
|
2909
2934
|
name: "HbLibCard",
|
|
2910
2935
|
__name: "HbLibCard",
|
|
2911
2936
|
props: {
|
|
@@ -2931,11 +2956,12 @@ const bl = {
|
|
|
2931
2956
|
default: 2
|
|
2932
2957
|
},
|
|
2933
2958
|
formItemMb: {
|
|
2934
|
-
type: Number
|
|
2959
|
+
type: Number,
|
|
2960
|
+
default: 0
|
|
2935
2961
|
}
|
|
2936
2962
|
},
|
|
2937
2963
|
setup(e) {
|
|
2938
|
-
const t = he(nt), o = e, n =
|
|
2964
|
+
const t = he(nt), o = e, n = H(() => {
|
|
2939
2965
|
let i = o.formItemMb || t?.HbLibCard?.formItemMb;
|
|
2940
2966
|
return i ? { "--hb-card-form-item-mb": i + "px" } : {};
|
|
2941
2967
|
});
|
|
@@ -2943,20 +2969,20 @@ const bl = {
|
|
|
2943
2969
|
m("div", {
|
|
2944
2970
|
class: X(e.isModal ? "modal__module-card" : "__module-card")
|
|
2945
2971
|
}, [
|
|
2946
|
-
m("div",
|
|
2947
|
-
e.cardTitle ? (c(), w("div",
|
|
2948
|
-
m("div",
|
|
2949
|
-
m("span",
|
|
2972
|
+
m("div", ea, [
|
|
2973
|
+
e.cardTitle ? (c(), w("div", ta, [
|
|
2974
|
+
m("div", oa, [
|
|
2975
|
+
m("span", na, [
|
|
2950
2976
|
J(i.$slots, "cardTitle", {}, () => [
|
|
2951
|
-
|
|
2977
|
+
R(C(e.cardTitle), 1)
|
|
2952
2978
|
], !0)
|
|
2953
2979
|
]),
|
|
2954
|
-
m("div",
|
|
2980
|
+
m("div", la, [
|
|
2955
2981
|
J(i.$slots, "cardAct", {}, void 0, !0)
|
|
2956
2982
|
])
|
|
2957
2983
|
])
|
|
2958
2984
|
])) : z("", !0),
|
|
2959
|
-
m("div",
|
|
2985
|
+
m("div", aa, [
|
|
2960
2986
|
m("section", {
|
|
2961
2987
|
class: X({
|
|
2962
2988
|
hb_card_form: e.isForm && !e.isModal,
|
|
@@ -2974,10 +3000,10 @@ const bl = {
|
|
|
2974
3000
|
], 2)
|
|
2975
3001
|
], 16));
|
|
2976
3002
|
}
|
|
2977
|
-
}),
|
|
3003
|
+
}), sa = /* @__PURE__ */ le(ia, [["__scopeId", "data-v-220e891f"]]), ra = ne(sa), ca = ["onClick"], da = { class: "step" }, ua = {
|
|
2978
3004
|
key: 0,
|
|
2979
3005
|
class: "line"
|
|
2980
|
-
},
|
|
3006
|
+
}, fa = ["title"], pa = /* @__PURE__ */ te({
|
|
2981
3007
|
name: "HbLibAnchor",
|
|
2982
3008
|
__name: "HbLibAnchor",
|
|
2983
3009
|
props: {
|
|
@@ -2986,26 +3012,26 @@ const bl = {
|
|
|
2986
3012
|
containerSelector: {}
|
|
2987
3013
|
},
|
|
2988
3014
|
setup(e) {
|
|
2989
|
-
const t = e, o = O(""), n = t.offsetTop ?? 160, i =
|
|
3015
|
+
const t = e, o = O(""), n = t.offsetTop ?? 160, i = H(() => t.anchors.filter((a) => typeof a.visible == "function" ? a.visible() : a.visible !== !1)), l = () => {
|
|
2990
3016
|
const a = t.containerSelector || "#subpackage_container";
|
|
2991
3017
|
return document.querySelector(a) || window;
|
|
2992
3018
|
}, r = (a) => {
|
|
2993
|
-
const s = l(),
|
|
3019
|
+
const s = l(), p = a.target.startsWith("#") || a.target.startsWith(".") ? a.target : `#${a.target}`, h = document.querySelector(p);
|
|
2994
3020
|
if (!h) return;
|
|
2995
|
-
let
|
|
2996
|
-
s instanceof HTMLElement && (
|
|
3021
|
+
let f = h.offsetTop;
|
|
3022
|
+
s instanceof HTMLElement && (f -= s.offsetTop), f -= n, s instanceof Window ? window.scrollTo({ top: f, behavior: "smooth" }) : s.scrollTo({ top: f, behavior: "smooth" }), o.value = a.target;
|
|
2997
3023
|
}, u = () => {
|
|
2998
3024
|
const a = l();
|
|
2999
3025
|
let s = 0;
|
|
3000
3026
|
a instanceof Window ? s = window.scrollY + n + 5 : s = a.scrollTop + n + 5;
|
|
3001
|
-
let
|
|
3027
|
+
let p = i.value[0]?.target || "";
|
|
3002
3028
|
for (const h of i.value) {
|
|
3003
|
-
const
|
|
3004
|
-
if (!
|
|
3005
|
-
let
|
|
3006
|
-
a instanceof HTMLElement && (
|
|
3029
|
+
const f = h.target.startsWith("#") || h.target.startsWith(".") ? h.target : `#${h.target}`, T = document.querySelector(f);
|
|
3030
|
+
if (!T) continue;
|
|
3031
|
+
let $ = T.offsetTop;
|
|
3032
|
+
a instanceof HTMLElement && ($ -= a.offsetTop), s >= $ && (p = h.target);
|
|
3007
3033
|
}
|
|
3008
|
-
o.value =
|
|
3034
|
+
o.value = p;
|
|
3009
3035
|
};
|
|
3010
3036
|
return Fe(() => {
|
|
3011
3037
|
l().addEventListener("scroll", u), u();
|
|
@@ -3015,32 +3041,32 @@ const bl = {
|
|
|
3015
3041
|
class: "anchors",
|
|
3016
3042
|
style: de({ top: `${v(n)}px` })
|
|
3017
3043
|
}, [
|
|
3018
|
-
(c(!0), w(ee, null,
|
|
3019
|
-
key:
|
|
3020
|
-
class: X(["anchor-item", { isActive: o.value ===
|
|
3021
|
-
onClick: (
|
|
3044
|
+
(c(!0), w(ee, null, fe(i.value, (p, h) => (c(), w("div", {
|
|
3045
|
+
key: p.target,
|
|
3046
|
+
class: X(["anchor-item", { isActive: o.value === p.target }]),
|
|
3047
|
+
onClick: (f) => r(p)
|
|
3022
3048
|
}, [
|
|
3023
|
-
m("div",
|
|
3024
|
-
h !== i.value.length - 1 ? (c(), w("div",
|
|
3049
|
+
m("div", da, [
|
|
3050
|
+
h !== i.value.length - 1 ? (c(), w("div", ua)) : z("", !0),
|
|
3025
3051
|
s[0] || (s[0] = m("div", { class: "circle" }, null, -1))
|
|
3026
3052
|
]),
|
|
3027
3053
|
m("span", {
|
|
3028
3054
|
class: "title",
|
|
3029
|
-
title:
|
|
3030
|
-
}, C(
|
|
3031
|
-
], 10,
|
|
3055
|
+
title: p.title
|
|
3056
|
+
}, C(p.title.length > 12 ? p.title.slice(0, 12) + "..." : p.title), 9, fa)
|
|
3057
|
+
], 10, ca))), 128))
|
|
3032
3058
|
], 4));
|
|
3033
3059
|
}
|
|
3034
|
-
}),
|
|
3060
|
+
}), ba = /* @__PURE__ */ le(pa, [["__scopeId", "data-v-d51548d8"]]), ma = ne(ba), ha = { class: "hb_detail_top_act_left" }, va = {
|
|
3035
3061
|
key: 1,
|
|
3036
3062
|
class: "hb_detail_top_wrapper_sticky"
|
|
3037
|
-
},
|
|
3063
|
+
}, ga = { class: "hb_detail_top_act" }, ya = {
|
|
3038
3064
|
key: 0,
|
|
3039
3065
|
class: "hb_detail_all_info"
|
|
3040
|
-
},
|
|
3066
|
+
}, _a = { class: "hb_detail_all_info_left" }, La = { class: "hb_detail_info_title" }, Ca = {
|
|
3041
3067
|
key: 0,
|
|
3042
3068
|
class: "hb_detail_info_content"
|
|
3043
|
-
},
|
|
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__ */ te({
|
|
3044
3070
|
name: "HbLibDetailBox",
|
|
3045
3071
|
__name: "HbLibDetailBox",
|
|
3046
3072
|
props: {
|
|
@@ -3104,37 +3130,37 @@ const bl = {
|
|
|
3104
3130
|
setup(e) {
|
|
3105
3131
|
const { t } = ve(), o = e, n = he(nt), i = () => {
|
|
3106
3132
|
o.backFn ? o.backFn() : window.history.back();
|
|
3107
|
-
}, l =
|
|
3133
|
+
}, l = H(() => o.backTopBottom || n?.HbLibDetailBox?.backTopBottom || 80), r = H(() => {
|
|
3108
3134
|
const U = {};
|
|
3109
3135
|
return o.needFixWidth ? {
|
|
3110
3136
|
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3111
3137
|
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3112
3138
|
} : U;
|
|
3113
|
-
}), u = () => document.querySelector(o.container), a = O(!1), s = O(null), { top:
|
|
3139
|
+
}), u = () => document.querySelector(o.container), a = O(!1), s = O(null), { top: p } = Fo(s), h = H(u), { y: f } = Ho(h);
|
|
3114
3140
|
se(
|
|
3115
|
-
|
|
3141
|
+
f,
|
|
3116
3142
|
(U) => {
|
|
3117
|
-
a.value = U >
|
|
3143
|
+
a.value = U > p.value;
|
|
3118
3144
|
},
|
|
3119
3145
|
{ immediate: !0 }
|
|
3120
3146
|
);
|
|
3121
|
-
const
|
|
3147
|
+
const T = (U) => {
|
|
3122
3148
|
document.querySelectorAll(".hb_card_body").forEach((k) => {
|
|
3123
3149
|
k.querySelectorAll(".ant-descriptions-item-content span").forEach((A) => {
|
|
3124
3150
|
A.textContent?.trim() || (A.textContent = U);
|
|
3125
3151
|
});
|
|
3126
3152
|
});
|
|
3127
3153
|
};
|
|
3128
|
-
let
|
|
3154
|
+
let $ = null;
|
|
3129
3155
|
return Fe(() => {
|
|
3130
|
-
n?.HbLibDetailBox?.needSetDesDefault && (
|
|
3131
|
-
|
|
3156
|
+
n?.HbLibDetailBox?.needSetDesDefault && ($ = setTimeout(() => {
|
|
3157
|
+
T(n?.HbLibDetailBox?.desDefault);
|
|
3132
3158
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3133
3159
|
}), je(() => {
|
|
3134
|
-
|
|
3160
|
+
$ && clearTimeout($);
|
|
3135
3161
|
}), (U, V) => {
|
|
3136
3162
|
const k = K("RollbackOutlined"), S = K("a-divider"), A = K("a-spin");
|
|
3137
|
-
return c(),
|
|
3163
|
+
return c(), E(A, { spinning: e.spinning }, {
|
|
3138
3164
|
default: b(() => [
|
|
3139
3165
|
m("div", {
|
|
3140
3166
|
class: X(["hb_detail_wrapper", r.value]),
|
|
@@ -3147,56 +3173,56 @@ const bl = {
|
|
|
3147
3173
|
key: 0,
|
|
3148
3174
|
class: X(["hb_detail_top_act_sticky", a.value ? "can_show" : ""])
|
|
3149
3175
|
}, [
|
|
3150
|
-
m("div",
|
|
3151
|
-
|
|
3176
|
+
m("div", ha, [
|
|
3177
|
+
I(k, { style: { color: "#ff5000" } }),
|
|
3152
3178
|
m("a", {
|
|
3153
3179
|
href: "javascript:;",
|
|
3154
3180
|
class: "ml6",
|
|
3155
3181
|
onClick: i
|
|
3156
3182
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3157
|
-
|
|
3183
|
+
I(S, { type: "vertical" }),
|
|
3158
3184
|
m("span", null, C(e.stickyTitle), 1)
|
|
3159
3185
|
]),
|
|
3160
3186
|
V[0] || (V[0] = m("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3161
3187
|
], 2)) : z("", !0),
|
|
3162
|
-
e.needTotalInfoBox ? (c(), w("div",
|
|
3163
|
-
m("div",
|
|
3164
|
-
|
|
3188
|
+
e.needTotalInfoBox ? (c(), w("div", va, [
|
|
3189
|
+
m("div", ga, [
|
|
3190
|
+
I(k),
|
|
3165
3191
|
m("a", {
|
|
3166
3192
|
href: "javascript:;",
|
|
3167
3193
|
class: "ml6",
|
|
3168
3194
|
onClick: i
|
|
3169
3195
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3170
|
-
|
|
3196
|
+
I(S, { type: "vertical" }),
|
|
3171
3197
|
m("span", null, C(e.stickyTitle), 1)
|
|
3172
3198
|
]),
|
|
3173
|
-
e.needTotalInfoBox ? (c(), w("div",
|
|
3174
|
-
m("aside",
|
|
3199
|
+
e.needTotalInfoBox ? (c(), w("div", ya, [
|
|
3200
|
+
m("aside", _a, [
|
|
3175
3201
|
J(U.$slots, "totalInfoLeft", {}, () => [
|
|
3176
|
-
m("div",
|
|
3177
|
-
e.totalInfo.totalInfoSubTitle1 ? (c(), w("div",
|
|
3178
|
-
m("span",
|
|
3202
|
+
m("div", La, C(e.totalInfo.totalInfoTitle), 1),
|
|
3203
|
+
e.totalInfo.totalInfoSubTitle1 ? (c(), w("div", Ca, [
|
|
3204
|
+
m("span", wa, C(e.totalInfo.totalInfoSubTitle1) + C(e.totalInfo.totalInfoSubVal1), 1),
|
|
3179
3205
|
m("span", null, C(e.totalInfo.totalInfoSubTitle2) + C(e.totalInfo.totalInfoSubVal2), 1)
|
|
3180
3206
|
])) : z("", !0)
|
|
3181
3207
|
], !0)
|
|
3182
3208
|
]),
|
|
3183
|
-
m("aside",
|
|
3209
|
+
m("aside", ka, [
|
|
3184
3210
|
J(U.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3185
3211
|
])
|
|
3186
3212
|
])) : z("", !0)
|
|
3187
3213
|
])) : z("", !0),
|
|
3188
|
-
m("div",
|
|
3189
|
-
m("div",
|
|
3214
|
+
m("div", Sa, [
|
|
3215
|
+
m("div", xa, [
|
|
3190
3216
|
J(U.$slots, "detailContent", {}, void 0, !0)
|
|
3191
3217
|
])
|
|
3192
3218
|
]),
|
|
3193
|
-
|
|
3219
|
+
I(v(Kt), {
|
|
3194
3220
|
target: u,
|
|
3195
3221
|
style: de({ bottom: l.value + "px" })
|
|
3196
3222
|
}, {
|
|
3197
3223
|
default: b(() => [
|
|
3198
|
-
m("div",
|
|
3199
|
-
|
|
3224
|
+
m("div", Ta, [
|
|
3225
|
+
I(v(Gt))
|
|
3200
3226
|
])
|
|
3201
3227
|
]),
|
|
3202
3228
|
_: 1
|
|
@@ -3207,7 +3233,7 @@ const bl = {
|
|
|
3207
3233
|
}, 8, ["spinning"]);
|
|
3208
3234
|
};
|
|
3209
3235
|
}
|
|
3210
|
-
}),
|
|
3236
|
+
}), Ha = /* @__PURE__ */ le(Fa, [["__scopeId", "data-v-f2c2c397"]]), $a = ne(Ha), Ia = /* @__PURE__ */ te({
|
|
3211
3237
|
name: "HbLibFooterBar",
|
|
3212
3238
|
__name: "HbLibFooterBar",
|
|
3213
3239
|
props: {
|
|
@@ -3239,7 +3265,7 @@ const bl = {
|
|
|
3239
3265
|
}
|
|
3240
3266
|
},
|
|
3241
3267
|
setup(e) {
|
|
3242
|
-
const t = e, o = (a, s = 300) =>
|
|
3268
|
+
const t = e, o = (a, s = 300) => Zt(a, s), n = H(() => t.buttons.filter((s) => {
|
|
3243
3269
|
if (s.condition === void 0 || s.condition === null)
|
|
3244
3270
|
return !0;
|
|
3245
3271
|
if (typeof s.condition == "boolean")
|
|
@@ -3253,14 +3279,14 @@ const bl = {
|
|
|
3253
3279
|
}))), i = O(0), l = (a) => {
|
|
3254
3280
|
let s = 0;
|
|
3255
3281
|
return (Array.isArray(a) ? a : [a]).forEach((h) => {
|
|
3256
|
-
let
|
|
3282
|
+
let f = [];
|
|
3257
3283
|
if (h.startsWith("#")) {
|
|
3258
|
-
const
|
|
3259
|
-
|
|
3284
|
+
const T = document.getElementById(h.slice(1));
|
|
3285
|
+
T && f.push(T);
|
|
3260
3286
|
} else
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
s +=
|
|
3287
|
+
f = Array.from(document.getElementsByClassName(h));
|
|
3288
|
+
f.forEach((T) => {
|
|
3289
|
+
s += T.offsetWidth || 0;
|
|
3264
3290
|
});
|
|
3265
3291
|
}), s;
|
|
3266
3292
|
}, r = () => {
|
|
@@ -3285,12 +3311,12 @@ const bl = {
|
|
|
3285
3311
|
}), tt(() => {
|
|
3286
3312
|
u && u.disconnect();
|
|
3287
3313
|
}), (a, s) => {
|
|
3288
|
-
const
|
|
3314
|
+
const p = K("a-button"), h = K("a-space"), f = K("a-affix"), T = Wt("has");
|
|
3289
3315
|
return c(), w("div", {
|
|
3290
3316
|
class: "footer-affix-wrapper",
|
|
3291
3317
|
style: de({ "--pageHeaderOrFonterLeft": i.value + "px" })
|
|
3292
3318
|
}, [
|
|
3293
|
-
|
|
3319
|
+
I(f, {
|
|
3294
3320
|
"offset-bottom": 0,
|
|
3295
3321
|
target: e.getContainer,
|
|
3296
3322
|
style: { width: "100%" }
|
|
@@ -3303,23 +3329,23 @@ const bl = {
|
|
|
3303
3329
|
page_footer_btn_right: e.placeRight
|
|
3304
3330
|
})
|
|
3305
3331
|
}, [
|
|
3306
|
-
|
|
3332
|
+
I(h, null, {
|
|
3307
3333
|
default: b(() => [
|
|
3308
|
-
(c(!0), w(ee, null,
|
|
3309
|
-
key:
|
|
3310
|
-
type:
|
|
3311
|
-
danger:
|
|
3312
|
-
loading:
|
|
3313
|
-
disabled:
|
|
3314
|
-
onClick:
|
|
3334
|
+
(c(!0), w(ee, null, fe(n.value, ($) => we((c(), E(p, {
|
|
3335
|
+
key: $.key,
|
|
3336
|
+
type: $.type || "default",
|
|
3337
|
+
danger: $.danger,
|
|
3338
|
+
loading: $.loading,
|
|
3339
|
+
disabled: $.disabled,
|
|
3340
|
+
onClick: $.onClick,
|
|
3315
3341
|
class: "hb_list_page_button"
|
|
3316
3342
|
}, {
|
|
3317
3343
|
default: b(() => [
|
|
3318
|
-
|
|
3344
|
+
R(C($.label), 1)
|
|
3319
3345
|
]),
|
|
3320
3346
|
_: 2
|
|
3321
3347
|
}, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
|
|
3322
|
-
[
|
|
3348
|
+
[T, $.permissionsTag || null]
|
|
3323
3349
|
])), 128))
|
|
3324
3350
|
]),
|
|
3325
3351
|
_: 1
|
|
@@ -3331,7 +3357,7 @@ const bl = {
|
|
|
3331
3357
|
], 4);
|
|
3332
3358
|
};
|
|
3333
3359
|
}
|
|
3334
|
-
}),
|
|
3360
|
+
}), Ma = /* @__PURE__ */ le(Ia, [["__scopeId", "data-v-23f13fb5"]]), Ba = ne(Ma), Da = { class: "modal__detail-content" }, Aa = /* @__PURE__ */ te({
|
|
3335
3361
|
name: "HbLibModal",
|
|
3336
3362
|
__name: "HbLibModal",
|
|
3337
3363
|
props: {
|
|
@@ -3379,38 +3405,38 @@ const bl = {
|
|
|
3379
3405
|
},
|
|
3380
3406
|
emits: ["update:visible", "ok", "cancel"],
|
|
3381
3407
|
setup(e, { expose: t, emit: o }) {
|
|
3382
|
-
const n = o, i = e, l =
|
|
3408
|
+
const n = o, i = e, l = H({
|
|
3383
3409
|
get: () => i.visible,
|
|
3384
3410
|
set: (x) => n("update:visible", x)
|
|
3385
|
-
}), r = O(null), u =
|
|
3411
|
+
}), r = O(null), u = H(() => ({ top: "10px", ...i.modalStyle })), a = H(() => ({ overflow: "hidden", ...i.modalStyle })), s = H(() => ({
|
|
3386
3412
|
maxHeight: "calc(100vh - 120px)",
|
|
3387
3413
|
overflowY: "auto",
|
|
3388
3414
|
padding: "0 6px",
|
|
3389
3415
|
...i.bodyStyle
|
|
3390
|
-
})), { x:
|
|
3416
|
+
})), { x: p, y: h, isDragging: f } = $o(r), T = O(0), $ = O(0), U = O(!1), V = O(0), k = O(0), S = O(0), A = O(0), D = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3391
3417
|
let g = null;
|
|
3392
|
-
const
|
|
3418
|
+
const F = () => {
|
|
3393
3419
|
V.value = 0, k.value = 0, S.value = 0, A.value = 0, U.value = !1;
|
|
3394
3420
|
};
|
|
3395
3421
|
se(l, (x) => {
|
|
3396
3422
|
x ? setTimeout(() => {
|
|
3397
|
-
|
|
3423
|
+
F();
|
|
3398
3424
|
}, 50) : (g && clearTimeout(g), g = setTimeout(() => {
|
|
3399
3425
|
V.value = 0, k.value = 0, S.value = 0, A.value = 0;
|
|
3400
3426
|
}, 300));
|
|
3401
|
-
}), se([
|
|
3427
|
+
}), se([p, h], () => {
|
|
3402
3428
|
if (!U.value) {
|
|
3403
|
-
|
|
3429
|
+
T.value = p.value, $.value = h.value;
|
|
3404
3430
|
const x = document.body.getBoundingClientRect(), P = r.value.getBoundingClientRect();
|
|
3405
3431
|
D.value.right = x.width - P.width, D.value.bottom = x.height - P.height, S.value = V.value, A.value = k.value;
|
|
3406
3432
|
}
|
|
3407
3433
|
U.value = !0;
|
|
3408
|
-
}), se(
|
|
3409
|
-
|
|
3410
|
-
}),
|
|
3411
|
-
U.value && (V.value = S.value + Math.min(Math.max(D.value.left,
|
|
3434
|
+
}), se(f, () => {
|
|
3435
|
+
f || (U.value = !1);
|
|
3436
|
+
}), qt(() => {
|
|
3437
|
+
U.value && (V.value = S.value + Math.min(Math.max(D.value.left, p.value), D.value.right) - T.value, k.value = A.value + Math.min(Math.max(D.value.top, h.value), D.value.bottom) - $.value);
|
|
3412
3438
|
});
|
|
3413
|
-
const L =
|
|
3439
|
+
const L = H(() => ({
|
|
3414
3440
|
transform: `translate(${V.value}px, ${k.value}px)`
|
|
3415
3441
|
})), d = () => {
|
|
3416
3442
|
n("cancel");
|
|
@@ -3424,7 +3450,7 @@ const bl = {
|
|
|
3424
3450
|
handleCancel: d
|
|
3425
3451
|
}), (x, P) => {
|
|
3426
3452
|
const Y = K("a-spin"), _ = K("a-modal");
|
|
3427
|
-
return c(),
|
|
3453
|
+
return c(), E(_, ce({
|
|
3428
3454
|
style: u.value,
|
|
3429
3455
|
bodyStyle: s.value,
|
|
3430
3456
|
ref: "modalRef",
|
|
@@ -3441,7 +3467,7 @@ const bl = {
|
|
|
3441
3467
|
style: { width: "100%", cursor: "move" }
|
|
3442
3468
|
}, [
|
|
3443
3469
|
J(x.$slots, "title", {}, () => [
|
|
3444
|
-
|
|
3470
|
+
R(C(e.title), 1)
|
|
3445
3471
|
], !0)
|
|
3446
3472
|
], 512)
|
|
3447
3473
|
]),
|
|
@@ -3450,11 +3476,11 @@ const bl = {
|
|
|
3450
3476
|
key: l.value,
|
|
3451
3477
|
style: de(L.value)
|
|
3452
3478
|
}, [
|
|
3453
|
-
(c(),
|
|
3479
|
+
(c(), E(Yt(q)))
|
|
3454
3480
|
], 4))
|
|
3455
3481
|
]),
|
|
3456
3482
|
default: b(() => [
|
|
3457
|
-
|
|
3483
|
+
I(Y, {
|
|
3458
3484
|
spinning: i.spinning
|
|
3459
3485
|
}, {
|
|
3460
3486
|
default: b(() => [
|
|
@@ -3466,7 +3492,7 @@ const bl = {
|
|
|
3466
3492
|
]),
|
|
3467
3493
|
style: de({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3468
3494
|
}, [
|
|
3469
|
-
m("div",
|
|
3495
|
+
m("div", Da, [
|
|
3470
3496
|
J(x.$slots, "default", {}, void 0, !0)
|
|
3471
3497
|
])
|
|
3472
3498
|
], 6)
|
|
@@ -3486,13 +3512,13 @@ const bl = {
|
|
|
3486
3512
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3487
3513
|
};
|
|
3488
3514
|
}
|
|
3489
|
-
}),
|
|
3515
|
+
}), Oa = /* @__PURE__ */ le(Aa, [["__scopeId", "data-v-866a050a"]]), Pa = ne(Oa), Ua = {
|
|
3490
3516
|
key: 0,
|
|
3491
3517
|
class: "hb_edit_header"
|
|
3492
|
-
},
|
|
3518
|
+
}, Ra = { class: "__detail-content" }, Ea = {
|
|
3493
3519
|
key: 1,
|
|
3494
3520
|
class: "hb_edit_footer"
|
|
3495
|
-
},
|
|
3521
|
+
}, Na = { class: "hb-back-top-inner" }, za = /* @__PURE__ */ te({
|
|
3496
3522
|
name: "HbLibUnDetailBox",
|
|
3497
3523
|
__name: "HbLibUnDetailBox",
|
|
3498
3524
|
props: {
|
|
@@ -3516,33 +3542,33 @@ const bl = {
|
|
|
3516
3542
|
}
|
|
3517
3543
|
},
|
|
3518
3544
|
setup(e) {
|
|
3519
|
-
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), i = he("GLOBAL_CONFIG_KEY"), l =
|
|
3520
|
-
return (r, u) => (c(),
|
|
3545
|
+
const t = O("vertical"), o = e, n = () => document.querySelector(o.container), i = he("GLOBAL_CONFIG_KEY"), l = H(() => o.backTopBottom || i?.HbLibUnDetailBox?.backTopBottom || 80);
|
|
3546
|
+
return (r, u) => (c(), E(v(_o), { spinning: e.spinning }, {
|
|
3521
3547
|
default: b(() => [
|
|
3522
3548
|
m("div", ce({ class: "hb_edit_wrapper" }, r.$attrs, {
|
|
3523
3549
|
style: { "--hb-edit-form-label": e.formLabelWidth },
|
|
3524
3550
|
class: e.formLabelWidth ? "isNeedSetLabelWidth" : ""
|
|
3525
3551
|
}), [
|
|
3526
|
-
r.$slots.editHeader ? (c(), w("div",
|
|
3552
|
+
r.$slots.editHeader ? (c(), w("div", Ua, [
|
|
3527
3553
|
J(r.$slots, "editHeader", {}, void 0, !0)
|
|
3528
3554
|
])) : z("", !0),
|
|
3529
3555
|
m("div", {
|
|
3530
3556
|
class: X(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3531
3557
|
}, [
|
|
3532
|
-
m("div",
|
|
3558
|
+
m("div", Ra, [
|
|
3533
3559
|
J(r.$slots, "editContent", {}, void 0, !0)
|
|
3534
3560
|
])
|
|
3535
3561
|
], 2),
|
|
3536
|
-
r.$slots.editFooter ? (c(), w("div",
|
|
3562
|
+
r.$slots.editFooter ? (c(), w("div", Ea, [
|
|
3537
3563
|
J(r.$slots, "editFooter", {}, void 0, !0)
|
|
3538
3564
|
])) : z("", !0),
|
|
3539
|
-
|
|
3565
|
+
I(v(Kt), {
|
|
3540
3566
|
target: n,
|
|
3541
3567
|
style: de({ bottom: l.value + "px" })
|
|
3542
3568
|
}, {
|
|
3543
3569
|
default: b(() => [
|
|
3544
|
-
m("div",
|
|
3545
|
-
|
|
3570
|
+
m("div", Na, [
|
|
3571
|
+
I(v(Gt))
|
|
3546
3572
|
])
|
|
3547
3573
|
]),
|
|
3548
3574
|
_: 1
|
|
@@ -3552,7 +3578,7 @@ const bl = {
|
|
|
3552
3578
|
_: 3
|
|
3553
3579
|
}, 8, ["spinning"]));
|
|
3554
3580
|
}
|
|
3555
|
-
}),
|
|
3581
|
+
}), Va = /* @__PURE__ */ le(za, [["__scopeId", "data-v-41f1fc73"]]), ja = ne(Va), Wa = { class: "hb_edit_header_left" }, qa = { class: "hb_edit_header_title" }, Ya = { class: "hb_edit_header_right" }, Ka = /* @__PURE__ */ te({
|
|
3556
3582
|
name: "HbLibPageHeader",
|
|
3557
3583
|
__name: "HbLibPageHeader",
|
|
3558
3584
|
props: {
|
|
@@ -3570,10 +3596,10 @@ const bl = {
|
|
|
3570
3596
|
}
|
|
3571
3597
|
},
|
|
3572
3598
|
setup(e) {
|
|
3573
|
-
const { t } = ve(), o = e, n =
|
|
3574
|
-
function r(
|
|
3575
|
-
let
|
|
3576
|
-
return (Array.isArray(
|
|
3599
|
+
const { t } = ve(), o = e, n = vt(), i = O(0), l = H(() => n?.meta?.title || "");
|
|
3600
|
+
function r(f, T = "offsetHeight") {
|
|
3601
|
+
let $ = 0;
|
|
3602
|
+
return (Array.isArray(f) ? f : [f]).forEach((V) => {
|
|
3577
3603
|
let k = [];
|
|
3578
3604
|
if (V.startsWith("#")) {
|
|
3579
3605
|
const S = document.getElementById(V.slice(1));
|
|
@@ -3581,22 +3607,22 @@ const bl = {
|
|
|
3581
3607
|
} else
|
|
3582
3608
|
k = Array.from(document.getElementsByClassName(V));
|
|
3583
3609
|
k.forEach((S) => {
|
|
3584
|
-
|
|
3610
|
+
$ += S[T] || 0;
|
|
3585
3611
|
});
|
|
3586
|
-
}),
|
|
3612
|
+
}), $;
|
|
3587
3613
|
}
|
|
3588
3614
|
const u = () => {
|
|
3589
3615
|
o.topElements && (i.value = r(o.topElements));
|
|
3590
3616
|
}, a = O(0), s = () => {
|
|
3591
3617
|
o.leftElements && (a.value = r(o.leftElements, "offsetWidth") + 1);
|
|
3592
3618
|
};
|
|
3593
|
-
let
|
|
3619
|
+
let p = null;
|
|
3594
3620
|
Fe(() => {
|
|
3595
|
-
u(), s(), window.addEventListener("resize", u),
|
|
3621
|
+
u(), s(), window.addEventListener("resize", u), p = new MutationObserver(() => {
|
|
3596
3622
|
s();
|
|
3597
3623
|
});
|
|
3598
|
-
const
|
|
3599
|
-
|
|
3624
|
+
const f = document.body;
|
|
3625
|
+
p.observe(f, {
|
|
3600
3626
|
childList: !0,
|
|
3601
3627
|
// 子节点的变动
|
|
3602
3628
|
subtree: !0,
|
|
@@ -3605,7 +3631,7 @@ const bl = {
|
|
|
3605
3631
|
// 属性的变动
|
|
3606
3632
|
});
|
|
3607
3633
|
}), tt(() => {
|
|
3608
|
-
window.removeEventListener("resize", u),
|
|
3634
|
+
window.removeEventListener("resize", u), p && p.disconnect();
|
|
3609
3635
|
}), se(
|
|
3610
3636
|
() => o.topElements,
|
|
3611
3637
|
() => {
|
|
@@ -3616,28 +3642,28 @@ const bl = {
|
|
|
3616
3642
|
const h = () => {
|
|
3617
3643
|
o.backFn ? o.backFn() : window.history.back();
|
|
3618
3644
|
};
|
|
3619
|
-
return (
|
|
3620
|
-
const
|
|
3645
|
+
return (f, T) => {
|
|
3646
|
+
const $ = K("a-divider");
|
|
3621
3647
|
return c(), w("div", {
|
|
3622
3648
|
class: "hb_edit_header",
|
|
3623
3649
|
style: de({ top: i.value + "px", "--pageHeaderOrFonterLeft": a.value + "px" })
|
|
3624
3650
|
}, [
|
|
3625
|
-
m("aside",
|
|
3651
|
+
m("aside", Wa, [
|
|
3626
3652
|
m("a", {
|
|
3627
3653
|
href: "#",
|
|
3628
3654
|
class: "backBtn",
|
|
3629
3655
|
onClick: h
|
|
3630
3656
|
}, C(v(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3631
|
-
|
|
3632
|
-
m("span",
|
|
3657
|
+
I($, { type: "vertical" }),
|
|
3658
|
+
m("span", qa, C(l.value), 1)
|
|
3633
3659
|
]),
|
|
3634
|
-
m("aside",
|
|
3635
|
-
J(
|
|
3660
|
+
m("aside", Ya, [
|
|
3661
|
+
J(f.$slots, "right", {}, void 0, !0)
|
|
3636
3662
|
])
|
|
3637
3663
|
], 4);
|
|
3638
3664
|
};
|
|
3639
3665
|
}
|
|
3640
|
-
}),
|
|
3666
|
+
}), Ga = /* @__PURE__ */ le(Ka, [["__scopeId", "data-v-83fcd208"]]), Ja = ne(Ga), Xa = {
|
|
3641
3667
|
// 如果存在cpText时,K和V无效
|
|
3642
3668
|
cpText: {
|
|
3643
3669
|
type: String,
|
|
@@ -3682,22 +3708,22 @@ const bl = {
|
|
|
3682
3708
|
type: String,
|
|
3683
3709
|
default: "ab"
|
|
3684
3710
|
}
|
|
3685
|
-
},
|
|
3711
|
+
}, Qa = /* @__PURE__ */ te({
|
|
3686
3712
|
name: "HbLibCopy",
|
|
3687
3713
|
__name: "copy",
|
|
3688
|
-
props:
|
|
3714
|
+
props: Xa,
|
|
3689
3715
|
setup(e) {
|
|
3690
3716
|
const t = e, o = O();
|
|
3691
|
-
|
|
3717
|
+
qt(() => {
|
|
3692
3718
|
o.value = t.data;
|
|
3693
3719
|
});
|
|
3694
|
-
const n =
|
|
3720
|
+
const n = H(() => t.tooltipTitle || "复制"), i = H(() => t.copySuccessTip || "复制成功"), l = H(() => t.copyFailTip || "复制失败"), r = H(() => {
|
|
3695
3721
|
if (t.cpText) return t.cpText;
|
|
3696
3722
|
let a = "";
|
|
3697
3723
|
if (t.data)
|
|
3698
3724
|
if (Array.isArray(t.data)) {
|
|
3699
3725
|
if (t.K && t.V && t.L) {
|
|
3700
|
-
const s = t.data.find((
|
|
3726
|
+
const s = t.data.find((p) => p?.[t.K] === t.V);
|
|
3701
3727
|
a = s ? s[t.L] : "";
|
|
3702
3728
|
}
|
|
3703
3729
|
} else
|
|
@@ -3710,7 +3736,7 @@ const bl = {
|
|
|
3710
3736
|
Ie.error(l.value);
|
|
3711
3737
|
});
|
|
3712
3738
|
};
|
|
3713
|
-
return (a, s) => r.value ? (c(),
|
|
3739
|
+
return (a, s) => r.value ? (c(), E(v(Xe), {
|
|
3714
3740
|
key: 0,
|
|
3715
3741
|
title: n.value
|
|
3716
3742
|
}, {
|
|
@@ -3751,7 +3777,7 @@ const bl = {
|
|
|
3751
3777
|
_: 1
|
|
3752
3778
|
}, 8, ["title"])) : z("", !0);
|
|
3753
3779
|
}
|
|
3754
|
-
}),
|
|
3780
|
+
}), Za = /* @__PURE__ */ le(Qa, [["__scopeId", "data-v-2b6710a1"]]), eo = ne(Za), ei = {
|
|
3755
3781
|
dragList: {
|
|
3756
3782
|
type: Array,
|
|
3757
3783
|
required: !0
|
|
@@ -3790,10 +3816,10 @@ const bl = {
|
|
|
3790
3816
|
type: String,
|
|
3791
3817
|
default: ""
|
|
3792
3818
|
}
|
|
3793
|
-
},
|
|
3819
|
+
}, ti = /* @__PURE__ */ te({
|
|
3794
3820
|
name: "HbDrag",
|
|
3795
3821
|
__name: "index",
|
|
3796
|
-
props:
|
|
3822
|
+
props: ei,
|
|
3797
3823
|
emits: [
|
|
3798
3824
|
"update:dragList",
|
|
3799
3825
|
"handleDragStart",
|
|
@@ -3802,69 +3828,69 @@ const bl = {
|
|
|
3802
3828
|
"handleDragRemove"
|
|
3803
3829
|
],
|
|
3804
3830
|
setup(e, { emit: t }) {
|
|
3805
|
-
const o = e, n =
|
|
3831
|
+
const o = e, n = po([]);
|
|
3806
3832
|
se(
|
|
3807
3833
|
() => o.dragList,
|
|
3808
|
-
(
|
|
3809
|
-
n.value =
|
|
3834
|
+
(p) => {
|
|
3835
|
+
n.value = p;
|
|
3810
3836
|
},
|
|
3811
3837
|
{
|
|
3812
3838
|
deep: !0,
|
|
3813
3839
|
immediate: !0
|
|
3814
3840
|
}
|
|
3815
3841
|
);
|
|
3816
|
-
const i =
|
|
3817
|
-
l("handleDragStart",
|
|
3818
|
-
}, u = (
|
|
3819
|
-
l("handleDragEnd",
|
|
3820
|
-
}, a = (
|
|
3821
|
-
l("handleDragAdd",
|
|
3822
|
-
}, s = (
|
|
3823
|
-
l("handleDragRemove",
|
|
3842
|
+
const i = gt("drag"), l = t, r = (p) => {
|
|
3843
|
+
l("handleDragStart", p);
|
|
3844
|
+
}, u = (p) => {
|
|
3845
|
+
l("handleDragEnd", p);
|
|
3846
|
+
}, a = (p) => {
|
|
3847
|
+
l("handleDragAdd", p);
|
|
3848
|
+
}, s = (p) => {
|
|
3849
|
+
l("handleDragRemove", p);
|
|
3824
3850
|
};
|
|
3825
|
-
return (
|
|
3851
|
+
return (p, h) => (c(), w("div", {
|
|
3826
3852
|
class: X(v(i).b())
|
|
3827
3853
|
}, [
|
|
3828
|
-
|
|
3854
|
+
p.childrenType == "component" ? (c(), E(v(Je), ce({
|
|
3829
3855
|
key: 0,
|
|
3830
3856
|
modelValue: n.value,
|
|
3831
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
3857
|
+
"onUpdate:modelValue": h[0] || (h[0] = (f) => n.value = f),
|
|
3832
3858
|
"item-key": "key",
|
|
3833
|
-
class: { [
|
|
3834
|
-
},
|
|
3835
|
-
"ghost-class":
|
|
3859
|
+
class: { [p.dragClass]: p.dragClass }
|
|
3860
|
+
}, p.$attrs, {
|
|
3861
|
+
"ghost-class": p.ghostClass,
|
|
3836
3862
|
onStart: r,
|
|
3837
3863
|
onEnd: u,
|
|
3838
3864
|
onAdd: a,
|
|
3839
3865
|
onRemove: s
|
|
3840
3866
|
}), {
|
|
3841
|
-
item: b(({ element:
|
|
3842
|
-
(c(),
|
|
3867
|
+
item: b(({ element: f }) => [
|
|
3868
|
+
(c(), E(Yt(f.component)))
|
|
3843
3869
|
]),
|
|
3844
3870
|
_: 1
|
|
3845
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (c(),
|
|
3871
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (c(), E(v(Je), ce({
|
|
3846
3872
|
key: 1,
|
|
3847
3873
|
modelValue: n.value,
|
|
3848
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
3874
|
+
"onUpdate:modelValue": h[1] || (h[1] = (f) => n.value = f),
|
|
3849
3875
|
"item-key": "id",
|
|
3850
|
-
class: { [
|
|
3851
|
-
},
|
|
3852
|
-
"ghost-class":
|
|
3876
|
+
class: { [p.dragClass]: p.dragClass }
|
|
3877
|
+
}, p.$attrs, {
|
|
3878
|
+
"ghost-class": p.ghostClass,
|
|
3853
3879
|
onStart: r,
|
|
3854
3880
|
onEnd: u,
|
|
3855
3881
|
onAdd: a,
|
|
3856
3882
|
onRemove: s
|
|
3857
3883
|
}), {
|
|
3858
|
-
item: b(({ element:
|
|
3884
|
+
item: b(({ element: f }) => [
|
|
3859
3885
|
m("div", null, [
|
|
3860
|
-
J(
|
|
3886
|
+
J(p.$slots, "default", { item: f }, void 0, !0)
|
|
3861
3887
|
])
|
|
3862
3888
|
]),
|
|
3863
3889
|
_: 3
|
|
3864
3890
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
3865
3891
|
], 2));
|
|
3866
3892
|
}
|
|
3867
|
-
}),
|
|
3893
|
+
}), oi = /* @__PURE__ */ le(ti, [["__scopeId", "data-v-841ac118"]]), ni = ne(oi), li = {
|
|
3868
3894
|
triggerWay: {
|
|
3869
3895
|
type: String,
|
|
3870
3896
|
default: "click"
|
|
@@ -3880,10 +3906,10 @@ const bl = {
|
|
|
3880
3906
|
getSort: {
|
|
3881
3907
|
type: Function
|
|
3882
3908
|
}
|
|
3883
|
-
},
|
|
3909
|
+
}, ai = /* @__PURE__ */ te({
|
|
3884
3910
|
name: "HbLibSort",
|
|
3885
3911
|
__name: "sort",
|
|
3886
|
-
props:
|
|
3912
|
+
props: li,
|
|
3887
3913
|
emits: ["change"],
|
|
3888
3914
|
setup(e, { expose: t, emit: o }) {
|
|
3889
3915
|
const n = e, i = o, l = O([]), r = O("");
|
|
@@ -3891,11 +3917,11 @@ const bl = {
|
|
|
3891
3917
|
() => n.menuItems,
|
|
3892
3918
|
(a) => {
|
|
3893
3919
|
let s = [];
|
|
3894
|
-
Array.isArray(a) && a.length && a.forEach((
|
|
3920
|
+
Array.isArray(a) && a.length && a.forEach((p) => {
|
|
3895
3921
|
s = [
|
|
3896
3922
|
...s,
|
|
3897
|
-
{ label: `${
|
|
3898
|
-
{ label: `${
|
|
3923
|
+
{ label: `${p.label}升序`, value: `${p.value}`, sort: "Asc" },
|
|
3924
|
+
{ label: `${p.label}降序`, value: `${p.value}`, sort: "Desc" }
|
|
3899
3925
|
];
|
|
3900
3926
|
}), l.value = s;
|
|
3901
3927
|
},
|
|
@@ -3913,21 +3939,21 @@ const bl = {
|
|
|
3913
3939
|
return t({
|
|
3914
3940
|
currentActiveItem: r
|
|
3915
3941
|
}), (a, s) => {
|
|
3916
|
-
const
|
|
3917
|
-
return c(),
|
|
3942
|
+
const p = K("a-menu-item"), h = K("a-menu"), f = K("a-dropdown");
|
|
3943
|
+
return c(), E(f, {
|
|
3918
3944
|
trigger: [n.triggerWay]
|
|
3919
3945
|
}, {
|
|
3920
3946
|
overlay: b(() => [
|
|
3921
|
-
|
|
3947
|
+
I(h, null, {
|
|
3922
3948
|
default: b(() => [
|
|
3923
|
-
(c(!0), w(ee, null,
|
|
3924
|
-
key:
|
|
3925
|
-
onClick: (
|
|
3949
|
+
(c(!0), w(ee, null, fe(l.value, (T) => (c(), E(p, {
|
|
3950
|
+
key: T.value + T.sort,
|
|
3951
|
+
onClick: ($) => u(T)
|
|
3926
3952
|
}, {
|
|
3927
3953
|
default: b(() => [
|
|
3928
3954
|
m("span", {
|
|
3929
|
-
class: X(r.value ==
|
|
3930
|
-
}, C(
|
|
3955
|
+
class: X(r.value == T.value + T.sort ? "activted" : "")
|
|
3956
|
+
}, C(T.label), 3)
|
|
3931
3957
|
]),
|
|
3932
3958
|
_: 2
|
|
3933
3959
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -3941,15 +3967,15 @@ const bl = {
|
|
|
3941
3967
|
onClick: s[0] || (s[0] = Ge(() => {
|
|
3942
3968
|
}, ["prevent"]))
|
|
3943
3969
|
}, [
|
|
3944
|
-
|
|
3945
|
-
|
|
3970
|
+
R(C(n.colText) + " ", 1),
|
|
3971
|
+
I(v(pt))
|
|
3946
3972
|
])
|
|
3947
3973
|
]),
|
|
3948
3974
|
_: 1
|
|
3949
3975
|
}, 8, ["trigger"]);
|
|
3950
3976
|
};
|
|
3951
3977
|
}
|
|
3952
|
-
}),
|
|
3978
|
+
}), ii = /* @__PURE__ */ le(ai, [["__scopeId", "data-v-cf0b0a0d"]]), si = ne(ii), ri = { class: "hb_lib_loading" }, ci = { class: "hb_lib_loading_loading_anima" }, di = { class: "hb_lib_loading_load_tips" }, ui = /* @__PURE__ */ te({
|
|
3953
3979
|
name: "HbLibLoading",
|
|
3954
3980
|
__name: "loading",
|
|
3955
3981
|
props: {
|
|
@@ -3959,27 +3985,27 @@ const bl = {
|
|
|
3959
3985
|
}
|
|
3960
3986
|
},
|
|
3961
3987
|
setup(e) {
|
|
3962
|
-
const { t } = ve(), o = e, n =
|
|
3963
|
-
return (i, l) => (c(), w("div",
|
|
3964
|
-
m("div",
|
|
3965
|
-
l[0] || (l[0] =
|
|
3966
|
-
m("div",
|
|
3988
|
+
const { t } = ve(), o = e, n = H(() => o.loadTips || t("hbLibComp.HbLibLoading.loadingTips"));
|
|
3989
|
+
return (i, l) => (c(), w("div", ri, [
|
|
3990
|
+
m("div", ci, [
|
|
3991
|
+
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)),
|
|
3992
|
+
m("div", di, C(n.value), 1)
|
|
3967
3993
|
])
|
|
3968
3994
|
]));
|
|
3969
3995
|
}
|
|
3970
|
-
}),
|
|
3996
|
+
}), fi = /* @__PURE__ */ le(ui, [["__scopeId", "data-v-22f438b9"]]), pi = ne(fi), bi = { class: "file-preview__body" }, mi = {
|
|
3971
3997
|
key: 0,
|
|
3972
3998
|
class: "file-preview__placeholder"
|
|
3973
|
-
},
|
|
3999
|
+
}, hi = {
|
|
3974
4000
|
key: 1,
|
|
3975
4001
|
class: "file-preview__placeholder"
|
|
3976
|
-
},
|
|
4002
|
+
}, vi = ["src"], gi = { class: "file-preview__body" }, yi = {
|
|
3977
4003
|
key: 0,
|
|
3978
4004
|
class: "file-preview__placeholder"
|
|
3979
|
-
},
|
|
4005
|
+
}, _i = {
|
|
3980
4006
|
key: 1,
|
|
3981
4007
|
class: "file-preview__placeholder"
|
|
3982
|
-
},
|
|
4008
|
+
}, Li = ["src"], Ci = ["src"], wi = { class: "file-preview__modal-footer" }, ki = /* @__PURE__ */ te({
|
|
3983
4009
|
__name: "file_preview",
|
|
3984
4010
|
props: {
|
|
3985
4011
|
visible: { type: Boolean, default: !1 },
|
|
@@ -4021,18 +4047,18 @@ const bl = {
|
|
|
4021
4047
|
() => import("./vue-office-excel-B9GbNr16.js")
|
|
4022
4048
|
);
|
|
4023
4049
|
}
|
|
4024
|
-
function
|
|
4050
|
+
function p() {
|
|
4025
4051
|
return import("./vue-office-pdf-CaEuSE8g.js");
|
|
4026
4052
|
}
|
|
4027
4053
|
function h() {
|
|
4028
4054
|
return import("./vue-office-pptx-BeWGEYJM.js");
|
|
4029
4055
|
}
|
|
4030
|
-
const
|
|
4056
|
+
const f = We(
|
|
4031
4057
|
() => a().then((B) => B.default)
|
|
4032
|
-
),
|
|
4058
|
+
), T = We(
|
|
4033
4059
|
() => s().then((B) => B.default)
|
|
4034
|
-
),
|
|
4035
|
-
() =>
|
|
4060
|
+
), $ = We(
|
|
4061
|
+
() => p().then((B) => B.default)
|
|
4036
4062
|
), U = We(
|
|
4037
4063
|
() => h().then((B) => B.default)
|
|
4038
4064
|
), V = /* @__PURE__ */ new Set([
|
|
@@ -4046,19 +4072,19 @@ const bl = {
|
|
|
4046
4072
|
"ico"
|
|
4047
4073
|
]);
|
|
4048
4074
|
function k(B) {
|
|
4049
|
-
const Q = B.split(/[/\\]/).pop() ?? B, G = Q.split("?")[0] ?? Q,
|
|
4050
|
-
return
|
|
4075
|
+
const Q = B.split(/[/\\]/).pop() ?? B, G = Q.split("?")[0] ?? Q, be = G.lastIndexOf(".");
|
|
4076
|
+
return be >= 0 ? G.slice(be + 1).toLowerCase() : "";
|
|
4051
4077
|
}
|
|
4052
4078
|
function S(B, Q) {
|
|
4053
4079
|
if (B == null || B === "") return "unknown";
|
|
4054
4080
|
const G = Q && k(Q) || (typeof B == "string" ? k(B) : "");
|
|
4055
4081
|
return !G && (B instanceof ArrayBuffer || B instanceof Blob) ? "unknown" : G === "docx" ? "docx" : G === "xlsx" || G === "xls" ? "excel" : G === "pdf" ? "pdf" : G === "pptx" ? "pptx" : V.has(G) ? "image" : "unknown";
|
|
4056
4082
|
}
|
|
4057
|
-
const A =
|
|
4083
|
+
const A = H(() => n.fileList?.length ?? 0), D = H(() => A.value > 0 && n.fileList != null), g = H(() => {
|
|
4058
4084
|
if (!D.value) return 0;
|
|
4059
4085
|
const B = A.value - 1, Q = Math.floor(Number(n.fileIndex));
|
|
4060
4086
|
return Number.isNaN(Q) ? 0 : Math.min(Math.max(Q, 0), B);
|
|
4061
|
-
}),
|
|
4087
|
+
}), F = H(() => !D.value || !n.fileList ? null : n.fileList[g.value] ?? null), L = H(() => F.value ? F.value.src : n.src), d = H(() => F.value?.fileName ? F.value.fileName : n.fileName);
|
|
4062
4088
|
se(
|
|
4063
4089
|
[D, A, () => n.fileIndex],
|
|
4064
4090
|
() => {
|
|
@@ -4070,30 +4096,30 @@ const bl = {
|
|
|
4070
4096
|
const G = n.fileList?.[B] ?? null;
|
|
4071
4097
|
i("fileChange", { index: B, item: G });
|
|
4072
4098
|
});
|
|
4073
|
-
const y =
|
|
4099
|
+
const y = H(
|
|
4074
4100
|
() => S(L.value, d.value)
|
|
4075
|
-
), x =
|
|
4101
|
+
), x = H(() => {
|
|
4076
4102
|
const B = L.value;
|
|
4077
4103
|
return n.needSafe ? B ?? "" : `https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(B)}`;
|
|
4078
|
-
}), P =
|
|
4104
|
+
}), P = H(
|
|
4079
4105
|
() => typeof x.value == "string" ? x.value : ""
|
|
4080
|
-
), Y =
|
|
4106
|
+
), Y = H(() => {
|
|
4081
4107
|
const B = D.value ? g.value : "", Q = L.value;
|
|
4082
4108
|
return typeof Q == "string" ? `${B}:${y.value}:${Q}` : Q instanceof ArrayBuffer ? `${B}:${y.value}:ab:${Q.byteLength}` : Q instanceof Blob ? `${B}:${y.value}:blob:${Q.size}` : `${B}:${y.value}`;
|
|
4083
|
-
}), _ =
|
|
4109
|
+
}), _ = H(() => {
|
|
4084
4110
|
const B = L.value;
|
|
4085
4111
|
return B != null && B !== "";
|
|
4086
|
-
}), q =
|
|
4112
|
+
}), q = H(() => n.height), ae = H(
|
|
4087
4113
|
() => ({
|
|
4088
4114
|
height: "100%",
|
|
4089
4115
|
width: "100%",
|
|
4090
4116
|
overflow: "auto"
|
|
4091
4117
|
})
|
|
4092
|
-
),
|
|
4118
|
+
), pe = H(
|
|
4093
4119
|
() => n.pdfStaticFileUrl != null && n.pdfStaticFileUrl !== "" ? { staticFileUrl: n.pdfStaticFileUrl } : {}
|
|
4094
|
-
), re =
|
|
4120
|
+
), re = H(
|
|
4095
4121
|
() => n.showNav && D.value && A.value > 1
|
|
4096
|
-
), ge =
|
|
4122
|
+
), ge = H(() => re.value && g.value > 0), xe = H(
|
|
4097
4123
|
() => re.value && g.value < A.value - 1
|
|
4098
4124
|
);
|
|
4099
4125
|
function Oe() {
|
|
@@ -4102,18 +4128,18 @@ const bl = {
|
|
|
4102
4128
|
function j() {
|
|
4103
4129
|
xe.value && i("update:fileIndex", g.value + 1);
|
|
4104
4130
|
}
|
|
4105
|
-
const
|
|
4131
|
+
const Re = H(() => {
|
|
4106
4132
|
if (!_.value) return "";
|
|
4107
|
-
const B =
|
|
4133
|
+
const B = F.value;
|
|
4108
4134
|
return B?.fileName?.trim() || B?.downloadName?.trim() || n.fileName?.trim() || (typeof L.value == "string" && k(L.value) ? (L.value.split(/[/\\]/).pop() ?? "").split("?")[0] : "") || l("hbLibComp.HbFilePreview.fileNameFallback", {
|
|
4109
4135
|
index: g.value + 1
|
|
4110
4136
|
});
|
|
4111
|
-
}), oe =
|
|
4137
|
+
}), oe = H(() => {
|
|
4112
4138
|
if (n.modalTitleOverride != null && n.modalTitleOverride !== "")
|
|
4113
4139
|
return n.modalTitleOverride;
|
|
4114
4140
|
const B = n.modalTitlePrefix ?? l("hbLibComp.HbFilePreview.modalTitle");
|
|
4115
4141
|
if (!_.value) return B;
|
|
4116
|
-
const Q =
|
|
4142
|
+
const Q = Re.value;
|
|
4117
4143
|
return D.value && A.value > 1 ? Q ? `${B} — ${Q}(${g.value + 1} / ${A.value})` : `${B}(${g.value + 1} / ${A.value})` : Q ? `${B} — ${Q}` : B;
|
|
4118
4144
|
});
|
|
4119
4145
|
function M(B) {
|
|
@@ -4135,12 +4161,12 @@ const bl = {
|
|
|
4135
4161
|
}[Q] || "application/octet-stream";
|
|
4136
4162
|
}
|
|
4137
4163
|
function N(B, Q) {
|
|
4138
|
-
const G = URL.createObjectURL(B),
|
|
4139
|
-
|
|
4164
|
+
const G = URL.createObjectURL(B), be = document.createElement("a");
|
|
4165
|
+
be.href = G, be.download = Q || "download", be.rel = "noopener", document.body.appendChild(be), be.click(), document.body.removeChild(be), URL.revokeObjectURL(G);
|
|
4140
4166
|
}
|
|
4141
4167
|
const W = O(!1);
|
|
4142
4168
|
function ie() {
|
|
4143
|
-
const B =
|
|
4169
|
+
const B = F.value, Q = B?.downloadName || B?.fileName || n.fileName || "";
|
|
4144
4170
|
if (Q)
|
|
4145
4171
|
return Q.split(/[/\\]/).pop()?.split("?")[0] || "download";
|
|
4146
4172
|
if (typeof L.value == "string") {
|
|
@@ -4149,12 +4175,12 @@ const bl = {
|
|
|
4149
4175
|
}
|
|
4150
4176
|
return "download";
|
|
4151
4177
|
}
|
|
4152
|
-
const ue =
|
|
4178
|
+
const ue = H(() => _.value);
|
|
4153
4179
|
async function Le() {
|
|
4154
4180
|
if (!ue.value) return;
|
|
4155
|
-
const B =
|
|
4181
|
+
const B = F.value, Q = D.value ? g.value : 0;
|
|
4156
4182
|
i("beforeDownload", { item: B, index: Q });
|
|
4157
|
-
const G = ie(),
|
|
4183
|
+
const G = ie(), be = B?.downloadUrl;
|
|
4158
4184
|
W.value = !0;
|
|
4159
4185
|
try {
|
|
4160
4186
|
if (n.customDownload)
|
|
@@ -4165,28 +4191,28 @@ const bl = {
|
|
|
4165
4191
|
fileName: d.value,
|
|
4166
4192
|
downloadName: G
|
|
4167
4193
|
});
|
|
4168
|
-
else if (
|
|
4169
|
-
const
|
|
4170
|
-
if (!
|
|
4171
|
-
const He = await
|
|
4194
|
+
else if (be) {
|
|
4195
|
+
const me = await fetch(be);
|
|
4196
|
+
if (!me.ok) throw new Error(String(me.status));
|
|
4197
|
+
const He = await me.blob();
|
|
4172
4198
|
N(He, G);
|
|
4173
4199
|
} else {
|
|
4174
|
-
const
|
|
4175
|
-
if (typeof
|
|
4176
|
-
const He = await fetch(
|
|
4200
|
+
const me = L.value;
|
|
4201
|
+
if (typeof me == "string") {
|
|
4202
|
+
const He = await fetch(me);
|
|
4177
4203
|
if (!He.ok) throw new Error(String(He.status));
|
|
4178
4204
|
const lt = await He.blob();
|
|
4179
4205
|
N(lt, G);
|
|
4180
|
-
} else if (
|
|
4181
|
-
N(
|
|
4182
|
-
else if (
|
|
4206
|
+
} else if (me instanceof Blob)
|
|
4207
|
+
N(me, G);
|
|
4208
|
+
else if (me instanceof ArrayBuffer) {
|
|
4183
4209
|
const He = M(G);
|
|
4184
|
-
N(new Blob([
|
|
4210
|
+
N(new Blob([me], { type: He }), G);
|
|
4185
4211
|
}
|
|
4186
4212
|
}
|
|
4187
4213
|
i("downloaded", { item: B, index: Q });
|
|
4188
|
-
} catch (
|
|
4189
|
-
i("error",
|
|
4214
|
+
} catch (me) {
|
|
4215
|
+
i("error", me);
|
|
4190
4216
|
} finally {
|
|
4191
4217
|
W.value = !1;
|
|
4192
4218
|
}
|
|
@@ -4241,7 +4267,7 @@ const bl = {
|
|
|
4241
4267
|
/** 安全索引 */
|
|
4242
4268
|
safeIndex: g,
|
|
4243
4269
|
/** 当前列表项 */
|
|
4244
|
-
currentListItem:
|
|
4270
|
+
currentListItem: F,
|
|
4245
4271
|
/** 有效 src */
|
|
4246
4272
|
effectiveSrc: L,
|
|
4247
4273
|
/** 有效文件名 */
|
|
@@ -4255,8 +4281,8 @@ const bl = {
|
|
|
4255
4281
|
/** 关闭 */
|
|
4256
4282
|
closeModal: u
|
|
4257
4283
|
}), (B, Q) => {
|
|
4258
|
-
const G = K("a-button"),
|
|
4259
|
-
return c(),
|
|
4284
|
+
const G = K("a-button"), be = K("a-space"), me = K("a-modal");
|
|
4285
|
+
return c(), E(me, {
|
|
4260
4286
|
"wrap-class-name": "file-preview-modal-wrap",
|
|
4261
4287
|
visible: e.visible,
|
|
4262
4288
|
title: oe.value,
|
|
@@ -4270,33 +4296,33 @@ const bl = {
|
|
|
4270
4296
|
onCancel: u
|
|
4271
4297
|
}, {
|
|
4272
4298
|
footer: b(() => [
|
|
4273
|
-
m("div",
|
|
4274
|
-
|
|
4299
|
+
m("div", wi, [
|
|
4300
|
+
I(be, {
|
|
4275
4301
|
size: 8,
|
|
4276
4302
|
wrap: ""
|
|
4277
4303
|
}, {
|
|
4278
4304
|
default: b(() => [
|
|
4279
|
-
re.value ? (c(),
|
|
4305
|
+
re.value ? (c(), E(G, {
|
|
4280
4306
|
key: 0,
|
|
4281
4307
|
disabled: !ge.value,
|
|
4282
4308
|
onClick: Oe
|
|
4283
4309
|
}, {
|
|
4284
4310
|
default: b(() => [
|
|
4285
|
-
|
|
4311
|
+
R(C(v(l)("hbLibComp.HbFilePreview.prev")), 1)
|
|
4286
4312
|
]),
|
|
4287
4313
|
_: 1
|
|
4288
4314
|
}, 8, ["disabled"])) : z("", !0),
|
|
4289
|
-
re.value ? (c(),
|
|
4315
|
+
re.value ? (c(), E(G, {
|
|
4290
4316
|
key: 1,
|
|
4291
4317
|
disabled: !xe.value,
|
|
4292
4318
|
onClick: j
|
|
4293
4319
|
}, {
|
|
4294
4320
|
default: b(() => [
|
|
4295
|
-
|
|
4321
|
+
R(C(v(l)("hbLibComp.HbFilePreview.next")), 1)
|
|
4296
4322
|
]),
|
|
4297
4323
|
_: 1
|
|
4298
4324
|
}, 8, ["disabled"])) : z("", !0),
|
|
4299
|
-
e.showDownload ? (c(),
|
|
4325
|
+
e.showDownload ? (c(), E(G, {
|
|
4300
4326
|
key: 2,
|
|
4301
4327
|
type: "primary",
|
|
4302
4328
|
disabled: !ue.value,
|
|
@@ -4304,13 +4330,13 @@ const bl = {
|
|
|
4304
4330
|
onClick: Le
|
|
4305
4331
|
}, {
|
|
4306
4332
|
default: b(() => [
|
|
4307
|
-
|
|
4333
|
+
R(C(v(l)("hbLibComp.HbFilePreview.download")), 1)
|
|
4308
4334
|
]),
|
|
4309
4335
|
_: 1
|
|
4310
4336
|
}, 8, ["disabled", "loading"])) : z("", !0),
|
|
4311
|
-
|
|
4337
|
+
I(G, { onClick: u }, {
|
|
4312
4338
|
default: b(() => [
|
|
4313
|
-
|
|
4339
|
+
R(C(v(l)("hbLibComp.HbFilePreview.close")), 1)
|
|
4314
4340
|
]),
|
|
4315
4341
|
_: 1
|
|
4316
4342
|
}),
|
|
@@ -4326,10 +4352,10 @@ const bl = {
|
|
|
4326
4352
|
class: "file-preview",
|
|
4327
4353
|
style: de({ height: q.value })
|
|
4328
4354
|
}, [
|
|
4329
|
-
m("div",
|
|
4330
|
-
_.value ? y.value === "unknown" ? (c(), w("div",
|
|
4355
|
+
m("div", bi, [
|
|
4356
|
+
_.value ? y.value === "unknown" ? (c(), w("div", hi, [
|
|
4331
4357
|
J(B.$slots, "unsupported", {}, () => [
|
|
4332
|
-
|
|
4358
|
+
R(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4333
4359
|
], !0)
|
|
4334
4360
|
])) : y.value === "image" ? (c(), w("img", {
|
|
4335
4361
|
key: 2,
|
|
@@ -4338,14 +4364,14 @@ const bl = {
|
|
|
4338
4364
|
alt: "",
|
|
4339
4365
|
onLoad: Pe,
|
|
4340
4366
|
onError: De
|
|
4341
|
-
}, null, 40,
|
|
4367
|
+
}, null, 40, vi)) : y.value === "docx" ? (c(), E(v(f), {
|
|
4342
4368
|
key: `docx-${Y.value}`,
|
|
4343
4369
|
src: x.value,
|
|
4344
4370
|
class: "file-preview__office",
|
|
4345
4371
|
style: de(ae.value),
|
|
4346
4372
|
onRendered: Se,
|
|
4347
4373
|
onError: Te
|
|
4348
|
-
}, null, 8, ["src", "style"])) : y.value === "excel" ? (c(),
|
|
4374
|
+
}, null, 8, ["src", "style"])) : y.value === "excel" ? (c(), E(v(T), {
|
|
4349
4375
|
key: `xls-${Y.value}`,
|
|
4350
4376
|
src: x.value,
|
|
4351
4377
|
class: "file-preview__office",
|
|
@@ -4353,24 +4379,24 @@ const bl = {
|
|
|
4353
4379
|
options: e.excelOptions,
|
|
4354
4380
|
onRendered: Se,
|
|
4355
4381
|
onError: Te
|
|
4356
|
-
}, null, 8, ["src", "style", "options"])) : y.value === "pdf" ? (c(),
|
|
4382
|
+
}, null, 8, ["src", "style", "options"])) : y.value === "pdf" ? (c(), E(v($), ce({
|
|
4357
4383
|
key: `pdf-${Y.value}`,
|
|
4358
4384
|
src: x.value,
|
|
4359
4385
|
class: "file-preview__office",
|
|
4360
4386
|
style: ae.value
|
|
4361
|
-
},
|
|
4387
|
+
}, pe.value, {
|
|
4362
4388
|
onRendered: Se,
|
|
4363
4389
|
onError: Te
|
|
4364
|
-
}), null, 16, ["src", "style"])) : y.value === "pptx" ? (c(),
|
|
4390
|
+
}), null, 16, ["src", "style"])) : y.value === "pptx" ? (c(), E(v(U), {
|
|
4365
4391
|
key: `pptx-${Y.value}`,
|
|
4366
4392
|
src: x.value,
|
|
4367
4393
|
class: "file-preview__office",
|
|
4368
4394
|
style: de(ae.value),
|
|
4369
4395
|
onRendered: Se,
|
|
4370
4396
|
onError: Te
|
|
4371
|
-
}, null, 8, ["src", "style"])) : z("", !0) : (c(), w("div",
|
|
4397
|
+
}, null, 8, ["src", "style"])) : z("", !0) : (c(), w("div", mi, [
|
|
4372
4398
|
J(B.$slots, "empty", {}, () => [
|
|
4373
|
-
|
|
4399
|
+
R(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
|
|
4374
4400
|
], !0)
|
|
4375
4401
|
]))
|
|
4376
4402
|
])
|
|
@@ -4379,10 +4405,10 @@ const bl = {
|
|
|
4379
4405
|
class: "file-preview",
|
|
4380
4406
|
style: de({ height: q.value })
|
|
4381
4407
|
}, [
|
|
4382
|
-
m("div",
|
|
4383
|
-
_.value ? y.value === "unknown" ? (c(), w("div",
|
|
4408
|
+
m("div", gi, [
|
|
4409
|
+
_.value ? y.value === "unknown" ? (c(), w("div", _i, [
|
|
4384
4410
|
J(B.$slots, "unsupported", {}, () => [
|
|
4385
|
-
|
|
4411
|
+
R(C(v(l)("hbLibComp.HbFilePreview.unsupported")), 1)
|
|
4386
4412
|
], !0)
|
|
4387
4413
|
])) : y.value === "image" ? (c(), w("img", {
|
|
4388
4414
|
key: 2,
|
|
@@ -4391,16 +4417,16 @@ const bl = {
|
|
|
4391
4417
|
alt: "",
|
|
4392
4418
|
onLoad: Pe,
|
|
4393
4419
|
onError: De
|
|
4394
|
-
}, null, 40,
|
|
4420
|
+
}, null, 40, Li)) : (c(), w("iframe", {
|
|
4395
4421
|
key: 3,
|
|
4396
4422
|
src: P.value,
|
|
4397
4423
|
class: "file-preview-modal-body__iframe",
|
|
4398
4424
|
width: "100%",
|
|
4399
4425
|
style: { border: "none" },
|
|
4400
4426
|
referrerpolicy: "no-referrer-when-downgrade"
|
|
4401
|
-
}, null, 8,
|
|
4427
|
+
}, null, 8, Ci)) : (c(), w("div", yi, [
|
|
4402
4428
|
J(B.$slots, "empty", {}, () => [
|
|
4403
|
-
|
|
4429
|
+
R(C(v(l)("hbLibComp.HbFilePreview.empty")), 1)
|
|
4404
4430
|
], !0)
|
|
4405
4431
|
]))
|
|
4406
4432
|
])
|
|
@@ -4410,8 +4436,8 @@ const bl = {
|
|
|
4410
4436
|
}, 8, ["visible", "title", "width", "centered", "destroy-on-close", "mask-closable", "keyboard"]);
|
|
4411
4437
|
};
|
|
4412
4438
|
}
|
|
4413
|
-
}),
|
|
4414
|
-
function
|
|
4439
|
+
}), Si = /* @__PURE__ */ le(ki, [["__scopeId", "data-v-513d7b3b"]]), xi = ne(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 = he(oo, {});
|
|
4440
|
+
function Hi(e) {
|
|
4415
4441
|
return e.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js");
|
|
4416
4442
|
}
|
|
4417
4443
|
function ze(e) {
|
|
@@ -4420,43 +4446,43 @@ function ze(e) {
|
|
|
4420
4446
|
t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
|
|
4421
4447
|
return (t >>> 0).toString(36);
|
|
4422
4448
|
}
|
|
4423
|
-
function
|
|
4449
|
+
function $i(e, t) {
|
|
4424
4450
|
return e === !0 ? `hb-if-${ze(t)}-` : typeof e == "string" ? e : "";
|
|
4425
4451
|
}
|
|
4426
|
-
function
|
|
4452
|
+
function Ii(e, t) {
|
|
4427
4453
|
return t ? e.replace(
|
|
4428
4454
|
/<symbol\b([^>]*?)\bid\s*=\s*(["'])([^"']+)\2/gi,
|
|
4429
4455
|
(o, n, i, l) => `<symbol${n}id=${i}${t}${l}${i}`
|
|
4430
4456
|
) : e;
|
|
4431
4457
|
}
|
|
4432
|
-
function
|
|
4458
|
+
function Mi(e, t = "") {
|
|
4433
4459
|
return t === "" ? `hb-iconfont-svg-${ze(e)}` : `hb-iconfont-svg-${ze(`${e}\0${t}`)}`;
|
|
4434
4460
|
}
|
|
4435
|
-
function
|
|
4461
|
+
function Bi(e, t) {
|
|
4436
4462
|
return e.replace(/<svg(\b[^>]*?)>/i, (o, n) => {
|
|
4437
4463
|
const i = n.replace(/\bid\s*=\s*(["'])[^"']*\1/gi, "").trim();
|
|
4438
4464
|
return i ? `<svg id="${t}" ${i}>` : `<svg id="${t}">`;
|
|
4439
4465
|
});
|
|
4440
4466
|
}
|
|
4441
|
-
function
|
|
4467
|
+
function Di(e) {
|
|
4442
4468
|
const o = e.match(
|
|
4443
4469
|
/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/
|
|
4444
4470
|
)?.[1] ?? "", n = /\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g, i = [];
|
|
4445
4471
|
let l;
|
|
4446
4472
|
for (; (l = n.exec(e)) !== null; )
|
|
4447
4473
|
i.push(l[1]);
|
|
4448
|
-
const r =
|
|
4474
|
+
const r = no(i), u = r ? i.map((a) => a.slice(r.length)) : i.slice();
|
|
4449
4475
|
return { baseClass: o, prefix: r, names: u };
|
|
4450
4476
|
}
|
|
4451
|
-
function
|
|
4477
|
+
function Ai(e) {
|
|
4452
4478
|
const t = [], o = /<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;
|
|
4453
4479
|
let n;
|
|
4454
4480
|
for (; (n = o.exec(e)) !== null; )
|
|
4455
4481
|
t.push(n[1]);
|
|
4456
|
-
const i =
|
|
4482
|
+
const i = no(t), l = i ? t.map((r) => r.slice(i.length)) : t.slice();
|
|
4457
4483
|
return { prefix: i, names: l };
|
|
4458
4484
|
}
|
|
4459
|
-
function
|
|
4485
|
+
function no(e) {
|
|
4460
4486
|
if (e.length === 0) return "";
|
|
4461
4487
|
let t = e[0];
|
|
4462
4488
|
for (let o = 1; o < e.length; o++) {
|
|
@@ -4466,74 +4492,74 @@ function to(e) {
|
|
|
4466
4492
|
}
|
|
4467
4493
|
return t;
|
|
4468
4494
|
}
|
|
4469
|
-
function
|
|
4495
|
+
function Oi(e, t) {
|
|
4470
4496
|
if (typeof document > "u" || document.getElementById(t)) return;
|
|
4471
4497
|
const o = document.createElement("style");
|
|
4472
4498
|
o.id = t, o.textContent = e, document.head.appendChild(o);
|
|
4473
4499
|
}
|
|
4474
|
-
function
|
|
4500
|
+
function Pi(e, t, o = "") {
|
|
4475
4501
|
if (typeof document > "u") return Promise.resolve();
|
|
4476
4502
|
const n = o === "" ? `hb-iconfont-js-${ze(t)}` : `hb-iconfont-js-${ze(`${t}\0${o}`)}`;
|
|
4477
4503
|
if (document.getElementById(n)) return Promise.resolve();
|
|
4478
|
-
const i =
|
|
4504
|
+
const i = Mi(t, o);
|
|
4479
4505
|
if (document.getElementById(i)) return Promise.resolve();
|
|
4480
|
-
const l =
|
|
4506
|
+
const l = Bi(e, i);
|
|
4481
4507
|
return new Promise((r, u) => {
|
|
4482
|
-
const a = new Blob([l], { type: "text/javascript" }), s = URL.createObjectURL(a),
|
|
4483
|
-
|
|
4508
|
+
const a = new Blob([l], { type: "text/javascript" }), s = URL.createObjectURL(a), p = document.createElement("script");
|
|
4509
|
+
p.id = n, o && p.setAttribute("data-hb-iconfont-scope", o), p.async = !0, p.onload = () => {
|
|
4484
4510
|
URL.revokeObjectURL(s), r();
|
|
4485
|
-
},
|
|
4511
|
+
}, p.onerror = () => {
|
|
4486
4512
|
URL.revokeObjectURL(s), u(
|
|
4487
4513
|
new Error(
|
|
4488
4514
|
`[HbLibIcon] iconfont JS 脚本执行失败:${t}`
|
|
4489
4515
|
)
|
|
4490
4516
|
);
|
|
4491
|
-
},
|
|
4517
|
+
}, p.src = s, document.head.appendChild(p);
|
|
4492
4518
|
});
|
|
4493
4519
|
}
|
|
4494
|
-
function
|
|
4520
|
+
function yt(e, t = "font", o) {
|
|
4495
4521
|
if (!e) {
|
|
4496
|
-
const s = t === "font" ?
|
|
4497
|
-
e =
|
|
4522
|
+
const s = t === "font" ? to : Ti;
|
|
4523
|
+
e = Fi?.cssUrl || s;
|
|
4498
4524
|
}
|
|
4499
4525
|
const n = O(""), i = O(""), l = O([]), r = O("font");
|
|
4500
4526
|
let u = 0;
|
|
4501
|
-
return se(() =>
|
|
4502
|
-
const
|
|
4527
|
+
return se(() => mo(e), async (s) => {
|
|
4528
|
+
const p = ++u, h = s || e;
|
|
4503
4529
|
if (!h) {
|
|
4504
4530
|
n.value = "", i.value = "", l.value = [], r.value = "font";
|
|
4505
4531
|
return;
|
|
4506
4532
|
}
|
|
4507
|
-
if (t === "symbol" &&
|
|
4533
|
+
if (t === "symbol" && Hi(h)) {
|
|
4508
4534
|
try {
|
|
4509
|
-
const
|
|
4510
|
-
if (
|
|
4511
|
-
const
|
|
4535
|
+
const T = await (await fetch(h)).text();
|
|
4536
|
+
if (p !== u) return;
|
|
4537
|
+
const $ = $i(
|
|
4512
4538
|
o?.symbolIdScope,
|
|
4513
4539
|
h
|
|
4514
|
-
), U =
|
|
4515
|
-
if (await
|
|
4540
|
+
), U = Ii(T, $), { prefix: V, names: k } = Ai(U);
|
|
4541
|
+
if (await Pi(U, h, $), p !== u) return;
|
|
4516
4542
|
r.value = "symbol", n.value = "", i.value = V, l.value = k;
|
|
4517
|
-
} catch (
|
|
4543
|
+
} catch (f) {
|
|
4518
4544
|
console.error(
|
|
4519
4545
|
"[HbLibIcon] 加载 iconfont Symbol 失败:",
|
|
4520
4546
|
h,
|
|
4521
|
-
|
|
4547
|
+
f
|
|
4522
4548
|
);
|
|
4523
4549
|
}
|
|
4524
4550
|
return;
|
|
4525
4551
|
}
|
|
4526
4552
|
try {
|
|
4527
|
-
const
|
|
4528
|
-
|
|
4529
|
-
const { baseClass:
|
|
4530
|
-
if (
|
|
4531
|
-
r.value = "font", n.value =
|
|
4532
|
-
} catch (
|
|
4553
|
+
const T = await (await fetch(h)).text();
|
|
4554
|
+
Oi(T, "hb-iconfont-" + h);
|
|
4555
|
+
const { baseClass: $, prefix: U, names: V } = Di(T);
|
|
4556
|
+
if (p !== u) return;
|
|
4557
|
+
r.value = "font", n.value = $, i.value = U, l.value = V;
|
|
4558
|
+
} catch (f) {
|
|
4533
4559
|
console.error(
|
|
4534
4560
|
"[HbLibIcon] 加载 iconfont CSS 失败:",
|
|
4535
4561
|
h,
|
|
4536
|
-
|
|
4562
|
+
f
|
|
4537
4563
|
);
|
|
4538
4564
|
}
|
|
4539
4565
|
}, { immediate: !0 }), {
|
|
@@ -4543,11 +4569,11 @@ function oo(e, t = "font", o) {
|
|
|
4543
4569
|
iconMode: r
|
|
4544
4570
|
};
|
|
4545
4571
|
}
|
|
4546
|
-
const
|
|
4572
|
+
const Ui = { class: "hb-icon-list" }, Ri = ["onClick"], Ei = {
|
|
4547
4573
|
key: 1,
|
|
4548
4574
|
class: "hb-icon-list__symbol",
|
|
4549
4575
|
"aria-hidden": "true"
|
|
4550
|
-
},
|
|
4576
|
+
}, Ni = ["href"], zi = { class: "hb-icon-list__name" }, Vi = /* @__PURE__ */ te({
|
|
4551
4577
|
name: "HbLibIconList",
|
|
4552
4578
|
__name: "icon_list",
|
|
4553
4579
|
props: {
|
|
@@ -4557,61 +4583,57 @@ const Oi = { class: "hb-icon-list" }, Pi = ["onClick"], Ui = {
|
|
|
4557
4583
|
},
|
|
4558
4584
|
emits: ["select", "update:selected"],
|
|
4559
4585
|
setup(e, { emit: t }) {
|
|
4560
|
-
function o(
|
|
4561
|
-
return typeof CSS < "u" && CSS.escape ? CSS.escape(
|
|
4586
|
+
function o(f) {
|
|
4587
|
+
return typeof CSS < "u" && CSS.escape ? CSS.escape(f) : f;
|
|
4562
4588
|
}
|
|
4563
|
-
const n = e, i = t, l =
|
|
4589
|
+
const n = e, i = t, l = H(() => n.cssUrl || ""), { iconBaseClass: r, iconPrefix: u, iconClasses: a, iconMode: s } = yt(
|
|
4564
4590
|
l,
|
|
4565
4591
|
n.mode
|
|
4566
|
-
),
|
|
4592
|
+
), p = O(n.selected);
|
|
4567
4593
|
se(
|
|
4568
4594
|
() => n.selected,
|
|
4569
|
-
(
|
|
4570
|
-
|
|
4595
|
+
(f) => {
|
|
4596
|
+
p.value = f;
|
|
4571
4597
|
}
|
|
4572
4598
|
);
|
|
4573
|
-
const h = (
|
|
4574
|
-
|
|
4599
|
+
const h = (f) => {
|
|
4600
|
+
p.value = f, i("select", f), i("update:selected", f);
|
|
4575
4601
|
};
|
|
4576
|
-
return (
|
|
4577
|
-
J(
|
|
4602
|
+
return (f, T) => (c(), w("div", Ui, [
|
|
4603
|
+
J(f.$slots, "iconList", {
|
|
4578
4604
|
iconClasses: v(a),
|
|
4579
4605
|
iconBaseClass: v(r),
|
|
4580
4606
|
iconPrefix: v(u),
|
|
4581
4607
|
iconMode: v(s)
|
|
4582
4608
|
}, () => [
|
|
4583
|
-
(c(!0), w(ee, null,
|
|
4584
|
-
key:
|
|
4585
|
-
class: X(["hb-icon-list__item", { "hb-icon-list__item--active":
|
|
4586
|
-
onClick: (U) => h(
|
|
4609
|
+
(c(!0), w(ee, null, fe(v(a), ($) => (c(), w("div", {
|
|
4610
|
+
key: $,
|
|
4611
|
+
class: X(["hb-icon-list__item", { "hb-icon-list__item--active": $ === p.value }]),
|
|
4612
|
+
onClick: (U) => h($)
|
|
4587
4613
|
}, [
|
|
4588
4614
|
v(s) === "font" ? (c(), w("i", {
|
|
4589
4615
|
key: 0,
|
|
4590
|
-
class: X([v(r), v(u) +
|
|
4591
|
-
}, null, 2)) : (c(), w("svg",
|
|
4616
|
+
class: X([v(r), v(u) + $])
|
|
4617
|
+
}, null, 2)) : (c(), w("svg", Ei, [
|
|
4592
4618
|
m("use", {
|
|
4593
|
-
href: "#" + o(v(u) +
|
|
4594
|
-
}, null, 8,
|
|
4619
|
+
href: "#" + o(v(u) + $)
|
|
4620
|
+
}, null, 8, Ni)
|
|
4595
4621
|
])),
|
|
4596
|
-
m("span",
|
|
4597
|
-
], 10,
|
|
4622
|
+
m("span", zi, C($), 1)
|
|
4623
|
+
], 10, Ri))), 128))
|
|
4598
4624
|
], !0)
|
|
4599
4625
|
]));
|
|
4600
4626
|
}
|
|
4601
|
-
}), mt = /* @__PURE__ */ le(
|
|
4602
|
-
|
|
4603
|
-
e.provide(
|
|
4604
|
-
cssUrl: t?.cssUrl ??
|
|
4627
|
+
}), mt = /* @__PURE__ */ le(Vi, [["__scopeId", "data-v-35e114dd"]]), lo = mt;
|
|
4628
|
+
lo.install = (e, t) => {
|
|
4629
|
+
e.provide(oo, {
|
|
4630
|
+
cssUrl: t?.cssUrl ?? to,
|
|
4605
4631
|
mode: t?.mode ?? "font"
|
|
4606
4632
|
});
|
|
4607
4633
|
const o = mt.name ?? "HbLibIconList";
|
|
4608
4634
|
e.component(o, mt);
|
|
4609
4635
|
};
|
|
4610
|
-
const
|
|
4611
|
-
key: 1,
|
|
4612
|
-
class: "hb-lib-icon__symbol",
|
|
4613
|
-
"aria-hidden": "true"
|
|
4614
|
-
}, Vi = ["href"], ji = /* @__PURE__ */ te({
|
|
4636
|
+
const ji = ["href"], Wi = /* @__PURE__ */ te({
|
|
4615
4637
|
name: "HbLibIcon",
|
|
4616
4638
|
__name: "icon",
|
|
4617
4639
|
props: {
|
|
@@ -4621,47 +4643,71 @@ const zi = {
|
|
|
4621
4643
|
height: { default: void 0 },
|
|
4622
4644
|
iMode: { default: void 0 },
|
|
4623
4645
|
iBaseClass: { default: "" },
|
|
4624
|
-
iPrefix: { default: "" }
|
|
4646
|
+
iPrefix: { default: "" },
|
|
4647
|
+
initFillColor: { default: "" },
|
|
4648
|
+
hover: { type: [Boolean, String], default: !1 }
|
|
4625
4649
|
},
|
|
4626
4650
|
setup(e) {
|
|
4627
|
-
const t = e, o =
|
|
4651
|
+
const t = e, o = H(
|
|
4628
4652
|
() => t.iBaseClass && O(t.iBaseClass) || he("iconBaseClass") || O("")
|
|
4629
|
-
), n =
|
|
4653
|
+
), n = H(
|
|
4630
4654
|
() => t.iPrefix && O(t.iPrefix) || he("iconPrefix") || O("")
|
|
4631
|
-
), i =
|
|
4655
|
+
), i = H(
|
|
4632
4656
|
() => t.iMode && O(t.iMode) || he("iconMode") || O("")
|
|
4633
|
-
), l = he(nt, null), r =
|
|
4634
|
-
const
|
|
4657
|
+
), l = he(nt, null), r = H(() => {
|
|
4658
|
+
const T = l?.HbLibIcon, $ = t.width ?? T?.width ?? 27, U = t.height ?? T?.height ?? 27;
|
|
4635
4659
|
return {
|
|
4636
|
-
width:
|
|
4637
|
-
height:
|
|
4638
|
-
display: "inline-block"
|
|
4660
|
+
width: $ + "px",
|
|
4661
|
+
height: U + "px",
|
|
4662
|
+
display: "inline-block",
|
|
4663
|
+
...f()
|
|
4639
4664
|
};
|
|
4640
|
-
}), u =
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
return
|
|
4647
|
-
}
|
|
4648
|
-
const f = F(() => {
|
|
4649
|
-
const h = u.value;
|
|
4650
|
-
return h ? `#${s(h)}` : "";
|
|
4665
|
+
}), u = H(() => t.name ? n.value.value && t.name.startsWith(n.value.value) ? t.name : `${n.value.value}${t.name}` : ""), a = H(() => {
|
|
4666
|
+
const T = [
|
|
4667
|
+
"hb-lib-icon__font",
|
|
4668
|
+
o.value.value,
|
|
4669
|
+
u.value
|
|
4670
|
+
];
|
|
4671
|
+
return t.hover && T.push("hb-icon-hover"), T;
|
|
4651
4672
|
});
|
|
4652
|
-
|
|
4673
|
+
function s(T) {
|
|
4674
|
+
return encodeURIComponent(T);
|
|
4675
|
+
}
|
|
4676
|
+
const p = H(() => {
|
|
4677
|
+
const T = u.value;
|
|
4678
|
+
return T ? `#${s(T)}` : "";
|
|
4679
|
+
}), h = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/, f = () => {
|
|
4680
|
+
const T = t.hover.toString();
|
|
4681
|
+
return h.test(T) ? { "--color-hover": T } : T.includes("--") ? { "--color-hover": `var(${T})` } : { "--color-hover": "var(--hb-color-primary-hover)" };
|
|
4682
|
+
};
|
|
4683
|
+
return (T, $) => (c(), w("span", {
|
|
4653
4684
|
class: X(t.className),
|
|
4654
4685
|
style: de(r.value)
|
|
4655
4686
|
}, [
|
|
4656
4687
|
i.value.value === "font" ? (c(), w("i", {
|
|
4657
4688
|
key: 0,
|
|
4658
|
-
class: X(a.value)
|
|
4659
|
-
}, null, 2)) : (c(), w("svg",
|
|
4660
|
-
|
|
4661
|
-
|
|
4689
|
+
class: X([a.value, "iconfont"])
|
|
4690
|
+
}, null, 2)) : (c(), w("svg", {
|
|
4691
|
+
key: 1,
|
|
4692
|
+
class: X(["hb-lib-icon__symbol", { "hb-icon-hover": e.hover }]),
|
|
4693
|
+
"aria-hidden": "true",
|
|
4694
|
+
style: de({ fill: e.initFillColor })
|
|
4695
|
+
}, [
|
|
4696
|
+
m("use", { href: p.value }, null, 8, ji)
|
|
4697
|
+
], 6))
|
|
4662
4698
|
], 6));
|
|
4663
4699
|
}
|
|
4664
|
-
}),
|
|
4700
|
+
}), qi = /* @__PURE__ */ le(Wi, [["__scopeId", "data-v-9a2203c0"]]), ht = qi;
|
|
4701
|
+
ht.install = (e, t) => {
|
|
4702
|
+
const o = t?.iconURL || void 0;
|
|
4703
|
+
if (o) {
|
|
4704
|
+
const i = o.includes("js") ? "symbol" : "font", { iconBaseClass: l, iconMode: r, iconClasses: u, iconPrefix: a } = yt(o, i);
|
|
4705
|
+
e.provide("iconBaseClass", l), e.provide("iconMode", r), e.provide("iconClasses", u), e.provide("iconPrefix", a);
|
|
4706
|
+
}
|
|
4707
|
+
const n = t?.name || "HbLibIcon";
|
|
4708
|
+
e.component(n, ht);
|
|
4709
|
+
};
|
|
4710
|
+
const Yi = /* @__PURE__ */ te({
|
|
4665
4711
|
__name: "iconBox",
|
|
4666
4712
|
props: {
|
|
4667
4713
|
url: {},
|
|
@@ -4669,7 +4715,7 @@ const zi = {
|
|
|
4669
4715
|
symbolIdScope: { type: [String, Boolean] }
|
|
4670
4716
|
},
|
|
4671
4717
|
setup(e) {
|
|
4672
|
-
const t = e, { iconClasses: o, iconPrefix: n, iconMode: i, iconBaseClass: l } =
|
|
4718
|
+
const t = e, { iconClasses: o, iconPrefix: n, iconMode: i, iconBaseClass: l } = yt(
|
|
4673
4719
|
t.url,
|
|
4674
4720
|
t.mode ?? "symbol",
|
|
4675
4721
|
{
|
|
@@ -4680,60 +4726,60 @@ const zi = {
|
|
|
4680
4726
|
}
|
|
4681
4727
|
}), Ki = Yi, Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4682
4728
|
__proto__: null,
|
|
4683
|
-
HbLibAnchor:
|
|
4684
|
-
HbLibCard:
|
|
4685
|
-
HbLibCopy:
|
|
4686
|
-
HbLibDetailBox:
|
|
4687
|
-
HbLibFilePreview:
|
|
4688
|
-
HbLibFooterBar:
|
|
4689
|
-
HbLibFormItemFilterModal:
|
|
4690
|
-
HbLibFormTooltipSelect:
|
|
4691
|
-
HbLibFuncCompDrag:
|
|
4692
|
-
HbLibIcon:
|
|
4729
|
+
HbLibAnchor: ma,
|
|
4730
|
+
HbLibCard: ra,
|
|
4731
|
+
HbLibCopy: eo,
|
|
4732
|
+
HbLibDetailBox: $a,
|
|
4733
|
+
HbLibFilePreview: xi,
|
|
4734
|
+
HbLibFooterBar: Ba,
|
|
4735
|
+
HbLibFormItemFilterModal: Uo,
|
|
4736
|
+
HbLibFormTooltipSelect: Al,
|
|
4737
|
+
HbLibFuncCompDrag: ni,
|
|
4738
|
+
HbLibIcon: ht,
|
|
4693
4739
|
HbLibIconBox: Ki,
|
|
4694
|
-
HbLibIconList:
|
|
4695
|
-
HbLibImportFile:
|
|
4696
|
-
HbLibListBtnsAct:
|
|
4697
|
-
HbLibListForm:
|
|
4698
|
-
HbLibListMultiSelect:
|
|
4699
|
-
HbLibListPageAct:
|
|
4700
|
-
HbLibListPageContainer:
|
|
4701
|
-
HbLibListTable:
|
|
4702
|
-
HbLibLoading:
|
|
4703
|
-
HbLibLogModal:
|
|
4704
|
-
HbLibModal:
|
|
4705
|
-
HbLibMutilpleSelectModal:
|
|
4706
|
-
HbLibPageHeader:
|
|
4707
|
-
HbLibSort:
|
|
4708
|
-
HbLibTableAct:
|
|
4709
|
-
HbLibTableColumnSet:
|
|
4710
|
-
HbLibUnDetailBox:
|
|
4711
|
-
HbUiConfig:
|
|
4740
|
+
HbLibIconList: lo,
|
|
4741
|
+
HbLibImportFile: jl,
|
|
4742
|
+
HbLibListBtnsAct: rn,
|
|
4743
|
+
HbLibListForm: qo,
|
|
4744
|
+
HbLibListMultiSelect: Tn,
|
|
4745
|
+
HbLibListPageAct: tn,
|
|
4746
|
+
HbLibListPageContainer: un,
|
|
4747
|
+
HbLibListTable: Cl,
|
|
4748
|
+
HbLibLoading: pi,
|
|
4749
|
+
HbLibLogModal: Gl,
|
|
4750
|
+
HbLibModal: Pa,
|
|
4751
|
+
HbLibMutilpleSelectModal: Mn,
|
|
4752
|
+
HbLibPageHeader: Ja,
|
|
4753
|
+
HbLibSort: si,
|
|
4754
|
+
HbLibTableAct: jn,
|
|
4755
|
+
HbLibTableColumnSet: Ml,
|
|
4756
|
+
HbLibUnDetailBox: ja,
|
|
4757
|
+
HbUiConfig: Zl
|
|
4712
4758
|
}, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ new Map();
|
|
4713
|
-
let
|
|
4714
|
-
|
|
4759
|
+
let Pt;
|
|
4760
|
+
Io && (document.addEventListener("mousedown", (e) => Pt = e), document.addEventListener("mouseup", (e) => {
|
|
4715
4761
|
for (const t of $e.values())
|
|
4716
4762
|
for (const { documentHandler: o } of t)
|
|
4717
|
-
o(e,
|
|
4763
|
+
o(e, Pt);
|
|
4718
4764
|
}));
|
|
4719
|
-
function
|
|
4765
|
+
function Ut(e, t) {
|
|
4720
4766
|
let o = [];
|
|
4721
4767
|
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, i) {
|
|
4722
|
-
const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u,
|
|
4723
|
-
a || s ||
|
|
4768
|
+
const l = t.instance.popperRef, r = n.target, u = i?.target, a = !t || !t.instance, s = !r || !u, p = e.contains(r) || e.contains(u), h = e === r, f = o.length && o.some(($) => $?.contains(r)) || o.length && o.includes(u), T = l && (l.contains(r) || l.contains(u));
|
|
4769
|
+
a || s || p || h || f || T || t.value(n, i);
|
|
4724
4770
|
};
|
|
4725
4771
|
}
|
|
4726
4772
|
const Ji = {
|
|
4727
4773
|
beforeMount(e, t) {
|
|
4728
4774
|
$e.has(e) || $e.set(e, []), $e.get(e).push({
|
|
4729
|
-
documentHandler:
|
|
4775
|
+
documentHandler: Ut(e, t),
|
|
4730
4776
|
bindingFn: t.value
|
|
4731
4777
|
});
|
|
4732
4778
|
},
|
|
4733
4779
|
updated(e, t) {
|
|
4734
4780
|
$e.has(e) || $e.set(e, []);
|
|
4735
4781
|
const o = $e.get(e), n = o.findIndex((l) => l.bindingFn === t.oldValue), i = {
|
|
4736
|
-
documentHandler:
|
|
4782
|
+
documentHandler: Ut(e, t),
|
|
4737
4783
|
bindingFn: t.value
|
|
4738
4784
|
};
|
|
4739
4785
|
n >= 0 ? o.splice(n, 1, i) : o.push(i);
|
|
@@ -4759,9 +4805,9 @@ const Ji = {
|
|
|
4759
4805
|
unmounted(e) {
|
|
4760
4806
|
e.__debounceHandler__ && (e.removeEventListener("click", e.__debounceHandler__), delete e.__debounceHandler__);
|
|
4761
4807
|
}
|
|
4762
|
-
},
|
|
4808
|
+
}, Rt = (e, t) => {
|
|
4763
4809
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
4764
|
-
const o =
|
|
4810
|
+
const o = ho(eo, {
|
|
4765
4811
|
cpText: t
|
|
4766
4812
|
});
|
|
4767
4813
|
o.mount(e._dynamicContainer), e._dynamicApp = o, e._dynamicPrevValue = t;
|
|
@@ -4771,21 +4817,21 @@ const Ji = {
|
|
|
4771
4817
|
const o = document.createElement("div");
|
|
4772
4818
|
o.style.display = "inline-flex", o.style.alignItems = "center", o.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(o, e.nextSibling), e._dynamicContainer = o;
|
|
4773
4819
|
}
|
|
4774
|
-
|
|
4820
|
+
Rt(e, t.value);
|
|
4775
4821
|
},
|
|
4776
4822
|
updated(e, t) {
|
|
4777
|
-
t.value !== e._dynamicPrevValue &&
|
|
4823
|
+
t.value !== e._dynamicPrevValue && Rt(e, t.value);
|
|
4778
4824
|
},
|
|
4779
4825
|
unmounted(e) {
|
|
4780
4826
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
4781
4827
|
}
|
|
4782
|
-
}, Zi = { cos: Ji, dc: Xi, icp: Qi },
|
|
4828
|
+
}, Zi = { cos: Ji, dc: Xi, icp: Qi }, Et = (e) => e.downloadUrl, es = (e, t, o) => {
|
|
4783
4829
|
const n = (a) => a.previewUrl, i = o?.preferredIndex;
|
|
4784
4830
|
if (typeof i == "number" && i >= 0 && i < e.length) {
|
|
4785
4831
|
const a = e[i];
|
|
4786
4832
|
if (a === t) return i;
|
|
4787
|
-
const s = "uploadDate" in a && a.uploadDate || "",
|
|
4788
|
-
if (n(a) === n(t) && (a.attachmentDesc || "") === (t.attachmentDesc || "") && s ===
|
|
4833
|
+
const s = "uploadDate" in a && a.uploadDate || "", p = "uploadDate" in t && t.uploadDate || "";
|
|
4834
|
+
if (n(a) === n(t) && (a.attachmentDesc || "") === (t.attachmentDesc || "") && s === p)
|
|
4789
4835
|
return i;
|
|
4790
4836
|
}
|
|
4791
4837
|
const l = t.attachmentId;
|
|
@@ -4798,14 +4844,14 @@ const Ji = {
|
|
|
4798
4844
|
const a = e.findIndex((s) => n(s) === r);
|
|
4799
4845
|
if (a >= 0) return a;
|
|
4800
4846
|
}
|
|
4801
|
-
const u =
|
|
4847
|
+
const u = Et(t);
|
|
4802
4848
|
if (u) {
|
|
4803
|
-
const a = e.findIndex((s) =>
|
|
4849
|
+
const a = e.findIndex((s) => Et(s) === u);
|
|
4804
4850
|
if (a >= 0) return a;
|
|
4805
4851
|
}
|
|
4806
4852
|
return e.indexOf(t);
|
|
4807
4853
|
};
|
|
4808
|
-
function
|
|
4854
|
+
function ao(e) {
|
|
4809
4855
|
const t = e.trim();
|
|
4810
4856
|
try {
|
|
4811
4857
|
return new URL(t).href;
|
|
@@ -4818,34 +4864,34 @@ function lo(e) {
|
|
|
4818
4864
|
}
|
|
4819
4865
|
}
|
|
4820
4866
|
}
|
|
4821
|
-
function
|
|
4867
|
+
function io(e) {
|
|
4822
4868
|
try {
|
|
4823
4869
|
return typeof window > "u" || !window.location?.origin ? !1 : new URL(e).origin === window.location.origin;
|
|
4824
4870
|
} catch {
|
|
4825
4871
|
return !1;
|
|
4826
4872
|
}
|
|
4827
4873
|
}
|
|
4828
|
-
function
|
|
4874
|
+
function Nt(e) {
|
|
4829
4875
|
return new Promise((t, o) => {
|
|
4830
4876
|
const n = new XMLHttpRequest();
|
|
4831
|
-
n.open("GET", e, !0), n.responseType = "blob", n.withCredentials =
|
|
4877
|
+
n.open("GET", e, !0), n.responseType = "blob", n.withCredentials = io(e), n.onload = () => {
|
|
4832
4878
|
n.status >= 200 && n.status < 300 ? t(n.response) : o(new Error(String(n.status)));
|
|
4833
4879
|
}, n.onerror = () => o(new Error("xhr")), n.send();
|
|
4834
4880
|
});
|
|
4835
4881
|
}
|
|
4836
4882
|
async function ts(e) {
|
|
4837
|
-
const t =
|
|
4883
|
+
const t = ao(e), o = typeof document < "u" ? document.documentMode : void 0;
|
|
4838
4884
|
if (typeof o == "number" && o > 0)
|
|
4839
|
-
return
|
|
4885
|
+
return Nt(t);
|
|
4840
4886
|
if (typeof fetch == "function") {
|
|
4841
4887
|
const n = await fetch(t, {
|
|
4842
|
-
credentials:
|
|
4888
|
+
credentials: io(t) ? "include" : "omit",
|
|
4843
4889
|
mode: "cors"
|
|
4844
4890
|
});
|
|
4845
4891
|
if (!n.ok) throw new Error(String(n.status));
|
|
4846
4892
|
return n.blob();
|
|
4847
4893
|
}
|
|
4848
|
-
return
|
|
4894
|
+
return Nt(t);
|
|
4849
4895
|
}
|
|
4850
4896
|
function os(e, t) {
|
|
4851
4897
|
const o = t.trim() || "download", n = navigator;
|
|
@@ -4862,7 +4908,7 @@ function os(e, t) {
|
|
|
4862
4908
|
}
|
|
4863
4909
|
}
|
|
4864
4910
|
function ns(e) {
|
|
4865
|
-
const t =
|
|
4911
|
+
const t = ao(e), o = document.createElement("iframe");
|
|
4866
4912
|
o.style.cssText = "position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;", o.src = t, document.body.appendChild(o), window.setTimeout(() => {
|
|
4867
4913
|
try {
|
|
4868
4914
|
document.body.removeChild(o);
|
|
@@ -4881,7 +4927,7 @@ async function st(e, t) {
|
|
|
4881
4927
|
}
|
|
4882
4928
|
}
|
|
4883
4929
|
const ls = 400;
|
|
4884
|
-
function
|
|
4930
|
+
function zt(e) {
|
|
4885
4931
|
return e.previewUrl?.trim() || "";
|
|
4886
4932
|
}
|
|
4887
4933
|
function qe(e) {
|
|
@@ -4891,9 +4937,9 @@ function Ye(e) {
|
|
|
4891
4937
|
return e.attachmentDesc?.trim() || e.fileName?.trim() || "download";
|
|
4892
4938
|
}
|
|
4893
4939
|
function ks(e) {
|
|
4894
|
-
const { t } = ve(), o = O(!1), n = O(""), i = O(""), l = O(-1), r = O(-1), u =
|
|
4940
|
+
const { t } = ve(), o = O(!1), n = O(""), i = O(""), l = O(-1), r = O(-1), u = H(() => e.value.attachmentInfos ?? []), a = H(
|
|
4895
4941
|
() => u.value.reduce((x, P, Y) => {
|
|
4896
|
-
const _ =
|
|
4942
|
+
const _ = zt(P);
|
|
4897
4943
|
if (!_) return x;
|
|
4898
4944
|
const q = Ye(P);
|
|
4899
4945
|
return x.push({
|
|
@@ -4907,20 +4953,20 @@ function ks(e) {
|
|
|
4907
4953
|
}
|
|
4908
4954
|
}), x;
|
|
4909
4955
|
}, [])
|
|
4910
|
-
), s =
|
|
4956
|
+
), s = H(
|
|
4911
4957
|
() => a.value.map((x) => x.item)
|
|
4912
|
-
),
|
|
4958
|
+
), p = H(
|
|
4913
4959
|
() => r.value >= 0 ? s.value : []
|
|
4914
|
-
), h =
|
|
4960
|
+
), h = H(() => {
|
|
4915
4961
|
const x = r.value;
|
|
4916
4962
|
return x >= 0 ? a.value[x] ?? null : null;
|
|
4917
|
-
}),
|
|
4963
|
+
}), f = H(
|
|
4918
4964
|
() => h.value?.item ?? null
|
|
4919
|
-
),
|
|
4965
|
+
), T = H(
|
|
4920
4966
|
() => r.value > 0 && s.value.length > 1
|
|
4921
|
-
),
|
|
4967
|
+
), $ = H(
|
|
4922
4968
|
() => r.value >= 0 && r.value < s.value.length - 1
|
|
4923
|
-
), U =
|
|
4969
|
+
), U = H(() => s.value.length > 1), V = (x, P, Y, _) => {
|
|
4924
4970
|
l.value = Y, r.value = _, n.value = x, i.value = P, o.value = !0;
|
|
4925
4971
|
}, k = (x) => {
|
|
4926
4972
|
const P = a.value[x];
|
|
@@ -4943,13 +4989,13 @@ function ks(e) {
|
|
|
4943
4989
|
previewAttachmentIndexRef: l,
|
|
4944
4990
|
previewFileIndexRef: r,
|
|
4945
4991
|
filePreviewList: s,
|
|
4946
|
-
activeFilePreviewList:
|
|
4947
|
-
currentPreviewFile:
|
|
4948
|
-
hasPrevAttachment:
|
|
4949
|
-
hasNextAttachment:
|
|
4992
|
+
activeFilePreviewList: p,
|
|
4993
|
+
currentPreviewFile: f,
|
|
4994
|
+
hasPrevAttachment: T,
|
|
4995
|
+
hasNextAttachment: $,
|
|
4950
4996
|
showAttachmentNavBar: U,
|
|
4951
4997
|
handlePreview: (x, P) => {
|
|
4952
|
-
const Y =
|
|
4998
|
+
const Y = zt(x);
|
|
4953
4999
|
if (!Y) {
|
|
4954
5000
|
Ie.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));
|
|
4955
5001
|
return;
|
|
@@ -4978,10 +5024,10 @@ function ks(e) {
|
|
|
4978
5024
|
k(x);
|
|
4979
5025
|
},
|
|
4980
5026
|
goPrevAttachment: () => {
|
|
4981
|
-
|
|
5027
|
+
T.value && k(r.value - 1);
|
|
4982
5028
|
},
|
|
4983
5029
|
goNextAttachment: () => {
|
|
4984
|
-
|
|
5030
|
+
$.value && k(r.value + 1);
|
|
4985
5031
|
},
|
|
4986
5032
|
triggerBrowserDownload: st,
|
|
4987
5033
|
handleBatchDownloadAttachment: async () => {
|
|
@@ -5023,14 +5069,14 @@ const Ss = (e) => {
|
|
|
5023
5069
|
if (l) {
|
|
5024
5070
|
let r = !1, u = { x: 0, y: 0 };
|
|
5025
5071
|
const a = l.querySelector(".ant-modal-header"), s = l.querySelector(".ant-modal-footer");
|
|
5026
|
-
a && (a.style.cursor = "move", s.style.cursor = "move", a.addEventListener("mousedown", (
|
|
5027
|
-
r = !0, u.x =
|
|
5028
|
-
}), s.addEventListener("mousedown", (
|
|
5029
|
-
r = !0, u.x =
|
|
5030
|
-
}), document.addEventListener("mousemove", (
|
|
5072
|
+
a && (a.style.cursor = "move", s.style.cursor = "move", a.addEventListener("mousedown", (p) => {
|
|
5073
|
+
r = !0, u.x = p.clientX - l.offsetLeft, u.y = p.clientY - l.offsetTop, document.body.style.userSelect = "none";
|
|
5074
|
+
}), s.addEventListener("mousedown", (p) => {
|
|
5075
|
+
r = !0, u.x = p.clientX - l.offsetLeft, u.y = p.clientY - l.offsetTop, document.body.style.userSelect = "none";
|
|
5076
|
+
}), document.addEventListener("mousemove", (p) => {
|
|
5031
5077
|
if (!r || !t) return;
|
|
5032
|
-
const h =
|
|
5033
|
-
l.style.left = `${h}px`, l.style.top = `${
|
|
5078
|
+
const h = p.clientX - u.x, f = p.clientY - u.y;
|
|
5079
|
+
l.style.left = `${h}px`, l.style.top = `${f}px`;
|
|
5034
5080
|
}), document.addEventListener("mouseup", () => {
|
|
5035
5081
|
r = !1, document.body.style.userSelect = "";
|
|
5036
5082
|
}));
|
|
@@ -5042,8 +5088,8 @@ const Ss = (e) => {
|
|
|
5042
5088
|
Me(() => {
|
|
5043
5089
|
const l = document.querySelector(`.${e} .ant-modal`);
|
|
5044
5090
|
if (l) {
|
|
5045
|
-
const r = window.innerWidth, u = window.innerHeight, a = l.offsetWidth, s = l.offsetHeight,
|
|
5046
|
-
l.style.left = `${
|
|
5091
|
+
const r = window.innerWidth, u = window.innerHeight, a = l.offsetWidth, s = l.offsetHeight, p = (r - a) / 2, h = (u - s) / 2;
|
|
5092
|
+
l.style.left = `${p}px`, l.style.top = `${h}px`;
|
|
5047
5093
|
}
|
|
5048
5094
|
});
|
|
5049
5095
|
} };
|
|
@@ -5056,9 +5102,9 @@ const Ss = (e) => {
|
|
|
5056
5102
|
}, us = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus", format: "Unterstützte Formate" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt", overTip1: "Derzeit überschritten", overTip2: "Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen", title: "Benutzerdefinierte Abfragebedingungen" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan", addScheme: "Szenario hinzufügen", editScheme: "Plan bearbeiten" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen", reset: "Reduktion" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" }, HbImportFile: { clickUp: "Klicken Sie zum Hochladen", downloadTemplate: "Klicken Sie hier, um die Vorlage herunterzuladen", pleaseUploadFiles: "Bitte laden Sie Dateien hoch", uploadText: "Ziehen Sie Dateien hierher oder", fileLabel: "dokumentieren", importBtn: "Datei-Upload" }, HbFilePreview: { empty: "Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an", unsupported: "Die Vorschau wird für diesen Dateityp nicht unterstützt", prev: "Zurück", next: "Weiter", download: "Herunterladen", close: "Schließen", modalTitle: "Dateivorschau", fileNameFallback: "Datei {index}", noPreviewUrl: "Keine Vorschau-URL verfügbar", noDownloadUrl: "Keine Download-URL verfügbar", noDownloadableFiles: "Keine herunterladbaren Anhänge verfügbar" }, HbFuncCompCopy: { copy: "Kopie", copyFail: "Der Kopiervorgang ist fehlgeschlagen", copySuccess: "Erfolgreich kopiert" }, HbLibDetailBox: { back: "zurückkehren" } }, fs = {
|
|
5057
5103
|
hbLibComp: us
|
|
5058
5104
|
};
|
|
5059
|
-
var Ke = { exports: {} }, ps = Ke.exports,
|
|
5105
|
+
var Ke = { exports: {} }, ps = Ke.exports, Vt;
|
|
5060
5106
|
function bs() {
|
|
5061
|
-
return
|
|
5107
|
+
return Vt || (Vt = 1, (function(e, t) {
|
|
5062
5108
|
(function(o, n) {
|
|
5063
5109
|
e.exports = n(ot);
|
|
5064
5110
|
})(ps, (function(o) {
|
|
@@ -5090,48 +5136,48 @@ const Ts = {
|
|
|
5090
5136
|
});
|
|
5091
5137
|
};
|
|
5092
5138
|
export {
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5139
|
+
to as HB_ICON_DEFAULT_CSS_URL,
|
|
5140
|
+
Ti as HB_ICON_DEFAULT_SYMBOL_CSS_URL,
|
|
5141
|
+
oo as HB_ICON_GLOBAL_KEY,
|
|
5142
|
+
ma as HbLibAnchor,
|
|
5143
|
+
ra as HbLibCard,
|
|
5144
|
+
eo as HbLibCopy,
|
|
5145
|
+
$a as HbLibDetailBox,
|
|
5146
|
+
xi as HbLibFilePreview,
|
|
5147
|
+
Ba as HbLibFooterBar,
|
|
5148
|
+
Uo as HbLibFormItemFilterModal,
|
|
5149
|
+
Al as HbLibFormTooltipSelect,
|
|
5150
|
+
ni as HbLibFuncCompDrag,
|
|
5151
|
+
ht as HbLibIcon,
|
|
5106
5152
|
Ki as HbLibIconBox,
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5153
|
+
lo as HbLibIconList,
|
|
5154
|
+
jl as HbLibImportFile,
|
|
5155
|
+
rn as HbLibListBtnsAct,
|
|
5156
|
+
qo as HbLibListForm,
|
|
5157
|
+
Tn as HbLibListMultiSelect,
|
|
5158
|
+
tn as HbLibListPageAct,
|
|
5159
|
+
un as HbLibListPageContainer,
|
|
5160
|
+
Cl as HbLibListTable,
|
|
5161
|
+
pi as HbLibLoading,
|
|
5162
|
+
Gl as HbLibLogModal,
|
|
5163
|
+
Pa as HbLibModal,
|
|
5164
|
+
Mn as HbLibMutilpleSelectModal,
|
|
5165
|
+
Ja as HbLibPageHeader,
|
|
5166
|
+
si as HbLibSort,
|
|
5167
|
+
jn as HbLibTableAct,
|
|
5168
|
+
Ml as HbLibTableColumnSet,
|
|
5169
|
+
ja as HbLibUnDetailBox,
|
|
5170
|
+
Zl as HbUiConfig,
|
|
5171
|
+
Bi as ensureRootSvgSpriteIdInIconfontJs,
|
|
5172
|
+
Mi as getIconfontSpriteRootId,
|
|
5127
5173
|
Fs as install,
|
|
5128
|
-
|
|
5174
|
+
Hi as isIconfontSymbolJsUrl,
|
|
5129
5175
|
Ts as locales,
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5176
|
+
Ii as prefixSymbolIdsInIconfontJs,
|
|
5177
|
+
cn as useCalTableHeight,
|
|
5178
|
+
Bt as useCalTableWidth,
|
|
5133
5179
|
ks as useFilePreview,
|
|
5134
|
-
|
|
5180
|
+
yt as useIconfont,
|
|
5135
5181
|
Ss as useListFormItem,
|
|
5136
5182
|
xs as useModalDrag
|
|
5137
5183
|
};
|