@hb-hellotech/hb-ui 1.3.14-beta.5 → 1.3.14-beta.6
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/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts +3 -0
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1298 -1295
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as J, inject as pe, computed as P, reactive as Se, ref as O, watch as ee, onMounted as he, createElementBlock as T, openBlock as i, normalizeClass as Y, unref as y, createVNode as w, withCtx as r, createElementVNode as d, toDisplayString as k, createTextVNode as B, createBlock as E, createCommentVNode as z, Fragment as q, renderList as ie, resolveComponent as N, Transition as Dt, withDirectives as ue, mergeProps as oe, createSlots as Be, renderSlot as W, vShow as At, nextTick as Le, onUnmounted as Te, useTemplateRef as Bt, provide as Ct, normalizeStyle as re, mergeModels as Ve, useModel as kt, withModifiers as He, resolveDirective as St, useAttrs as Ot, watchEffect as Tt, shallowRef as zt, resolveDynamicComponent as wt, onBeforeUnmount as Je, createApp as Et } from "vue";
|
|
3
3
|
import $e from "vuedraggable";
|
|
4
|
-
import { Modal as je, Button as We, message as
|
|
4
|
+
import { Modal as je, Button as We, message as ke, Tooltip as Ie, Switch as tt, Radio as ot, RadioGroup as lt, InputNumber as at, DatePicker as nt, Checkbox as Me, CheckboxGroup as it, Select as Ye, Input as st, Col as Pt, Row as Nt, FormItem as rt, Form as ct, SelectOption as qe, Popconfirm as Re, MenuItem as dt, Menu as ut, Dropdown as ft, Popover as Rt, BackTop as xt, Spin as Ut } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
6
6
|
import { useI18n as fe } from "vue-i18n";
|
|
7
|
-
import
|
|
7
|
+
import _e, { merge as Vt } from "lodash";
|
|
8
8
|
import { CloseOutlined as jt, QuestionCircleOutlined as Wt, SearchOutlined as De, UpCircleOutlined as Yt, DownCircleOutlined as qt, UnorderedListOutlined as Kt, DownOutlined as Ke, PlusCircleOutlined as Gt, ToTopOutlined as Ft } from "@ant-design/icons-vue";
|
|
9
|
-
import { useFullscreen as Ht, useDebounceFn as Jt, useElementBounding as Qt, useScroll as Zt, useDraggable as Xt, isClient as
|
|
9
|
+
import { useFullscreen as Ht, useDebounceFn as Jt, useElementBounding as Qt, useScroll as Zt, useDraggable as Xt, isClient as eo } from "@vueuse/core";
|
|
10
10
|
import Oe from "dayjs";
|
|
11
|
-
const
|
|
12
|
-
const t = `${
|
|
13
|
-
return
|
|
14
|
-
},
|
|
11
|
+
const to = "hb-", Ze = (e = "") => {
|
|
12
|
+
const t = `${to}${e}`;
|
|
13
|
+
return oo(t);
|
|
14
|
+
}, ge = (e, t, o, n) => (t && (e += `-${t}`), o && (e += `__${o}`), n && (e += `--${n}`), e), oo = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (t) => t ?
|
|
16
|
+
b: (t) => t ? ge(e, t, "", "") : ge(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (t) => t ?
|
|
18
|
+
e: (t) => t ? ge(e, "", t, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (t) =>
|
|
20
|
+
m: (t) => ge(e, "", "", t),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (t,
|
|
22
|
+
be: (t, o) => ge(e, t, o, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (t,
|
|
24
|
+
em: (t, o) => ge(e, "", t, o),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (t,
|
|
26
|
+
bem: (t, o, n) => ge(e, t, o, n),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (t,
|
|
29
|
-
}),
|
|
28
|
+
is: (t, o) => o ? `is-${t}` : ""
|
|
29
|
+
}), lo = ["onMouseenter", "onMouseleave"], ao = ["onClick"], no = /* @__PURE__ */ J({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -38,212 +38,212 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
38
38
|
saveKey: { default: "" }
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
|
-
setup(e, { expose: t, emit:
|
|
42
|
-
const n = pe("globalCompConfig", {}), c = fe().t, f = fe().messages.value.en_US, u = fe().messages.value.ja_JP, b = fe().messages.value.zh_CN,
|
|
41
|
+
setup(e, { expose: t, emit: o }) {
|
|
42
|
+
const n = pe("globalCompConfig", {}), c = fe().t, f = fe().messages.value.en_US, u = fe().messages.value.ja_JP, b = fe().messages.value.zh_CN, l = e, a = P(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = P(() => l.title || c("hbLibComp.hbFormItemFilterModal.title")), L = o, p = Ze("sfcm"), D = Qe(), M = Se({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}),
|
|
45
|
-
let
|
|
46
|
-
const
|
|
47
|
-
...
|
|
48
|
-
label:
|
|
49
|
-
key:
|
|
50
|
-
isFixed:
|
|
51
|
-
isLinked:
|
|
52
|
-
labelLanguage:
|
|
53
|
-
}),
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
44
|
+
}), U = O(!1), x = O(600);
|
|
45
|
+
let _ = [];
|
|
46
|
+
const S = O([]), A = O([]), F = P(() => S.value.every((v) => v.isLinked || v.isFixed)), C = (v) => ({
|
|
47
|
+
...v,
|
|
48
|
+
label: I(v) || `${V(v) || ""} (${c("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
|
+
key: v.key,
|
|
50
|
+
isFixed: v?.isFixed || !1,
|
|
51
|
+
isLinked: v?.isLinked || !1,
|
|
52
|
+
labelLanguage: v?.labelLanguage || void 0
|
|
53
|
+
}), g = (v) => {
|
|
54
|
+
const j = v.draggedContext.element, H = v.relatedContext.index;
|
|
55
|
+
if (j.isLinked || j.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const G = S.value.map((ae, be) => ({ item: ae, index: be })).filter(({ item: ae }) => ae.isLinked).map(({ index: ae }) => ae);
|
|
58
|
+
if (G.length === 0)
|
|
59
59
|
return !0;
|
|
60
|
-
for (let
|
|
61
|
-
const be =
|
|
62
|
-
if (
|
|
60
|
+
for (let ae = 0; ae < G.length - 1; ae++) {
|
|
61
|
+
const be = G[ae], ve = G[ae + 1];
|
|
62
|
+
if (H > be && H < ve)
|
|
63
63
|
return !1;
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
|
-
}, s = P(() => h() + "_" +
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
if (
|
|
66
|
+
}, s = P(() => h() + "_" + l.saveKey), h = () => {
|
|
67
|
+
const v = localStorage.getItem("pro__Login_Userinfo");
|
|
68
|
+
let j = "anonymous";
|
|
69
|
+
if (v)
|
|
70
70
|
try {
|
|
71
|
-
|
|
72
|
-
} catch (
|
|
73
|
-
console.warn("解析用户信息失败:",
|
|
71
|
+
j = JSON.parse(v).value.jobNumber || "anonymous";
|
|
72
|
+
} catch (G) {
|
|
73
|
+
console.warn("解析用户信息失败:", G);
|
|
74
74
|
}
|
|
75
|
-
let
|
|
76
|
-
return `searchFormConfig_${
|
|
77
|
-
},
|
|
78
|
-
ja_JP: () =>
|
|
79
|
-
en_US: () =>
|
|
80
|
-
zh_CN: () =>
|
|
81
|
-
})[
|
|
82
|
-
ja_JP: () =>
|
|
83
|
-
en_US: () =>
|
|
84
|
-
zh_CN: () =>
|
|
85
|
-
})[
|
|
75
|
+
let H = D?.path;
|
|
76
|
+
return `searchFormConfig_${j}_${H}`;
|
|
77
|
+
}, I = (v) => ({
|
|
78
|
+
ja_JP: () => _e.get(u, v.labelLanguage || ""),
|
|
79
|
+
en_US: () => _e.get(f, v.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => _e.get(b, v.labelLanguage || "")
|
|
81
|
+
})[M.lan]?.() || v.label, V = (v) => ({
|
|
82
|
+
ja_JP: () => _e.get(u, v.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => _e.get(f, v.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => _e.get(b, v.subLabelLanguage || "")
|
|
85
|
+
})[M.lan]?.() || v.subLabel, K = (v) => {
|
|
86
86
|
try {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
...C(
|
|
94
|
-
})), Ee =
|
|
95
|
-
...C(
|
|
96
|
-
})), Pe = be.slice(0,
|
|
97
|
-
...C(
|
|
87
|
+
const j = localStorage.getItem(s.value);
|
|
88
|
+
if (j) {
|
|
89
|
+
const H = JSON.parse(j);
|
|
90
|
+
if (H.originalList && Array.isArray(H.originalList)) {
|
|
91
|
+
_ = JSON.parse(JSON.stringify(H.originalList));
|
|
92
|
+
const G = _.filter((Q) => Q?.isFixed), ae = _.filter((Q) => Q?.isLinked), be = H.showList.filter((Q) => !Q.isFixed && !Q.isLinked), ve = a.value && a.value > 0 ? Math.max(0, a.value - G.length - ae.length) : be.length, xe = G.map((Q) => ({
|
|
93
|
+
...C(Q)
|
|
94
|
+
})), Ee = ae.map((Q) => ({
|
|
95
|
+
...C(Q)
|
|
96
|
+
})), Pe = be.slice(0, ve).map((Q) => ({
|
|
97
|
+
...C(Q)
|
|
98
98
|
}));
|
|
99
|
-
|
|
100
|
-
const Ne =
|
|
101
|
-
return
|
|
102
|
-
...C(
|
|
99
|
+
S.value = [...xe, ...Ee, ...Pe];
|
|
100
|
+
const Ne = S.value.map((Q) => Q.key), ne = _.map((Q) => Q.key).filter((Q) => !Ne.includes(Q));
|
|
101
|
+
return A.value = _.filter((Q) => ne.includes(Q.key)).map((Q) => ({
|
|
102
|
+
...C(Q),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
} catch (
|
|
108
|
-
console.warn("加载保存的搜索配置失败:",
|
|
107
|
+
} catch (j) {
|
|
108
|
+
console.warn("加载保存的搜索配置失败:", j);
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
|
-
},
|
|
111
|
+
}, se = () => {
|
|
112
112
|
try {
|
|
113
|
-
const
|
|
114
|
-
originalList:
|
|
115
|
-
showList:
|
|
116
|
-
...
|
|
117
|
-
key:
|
|
118
|
-
label:
|
|
119
|
-
isFixed:
|
|
120
|
-
isLinked:
|
|
121
|
-
labelLanguage:
|
|
113
|
+
const v = {
|
|
114
|
+
originalList: _,
|
|
115
|
+
showList: S.value.map((j) => ({
|
|
116
|
+
...j,
|
|
117
|
+
key: j.key,
|
|
118
|
+
label: j.label,
|
|
119
|
+
isFixed: j.isFixed,
|
|
120
|
+
isLinked: j.isLinked,
|
|
121
|
+
labelLanguage: j?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(s.value, JSON.stringify(
|
|
125
|
-
} catch (
|
|
126
|
-
console.warn("保存搜索配置失败:",
|
|
124
|
+
localStorage.setItem(s.value, JSON.stringify(v));
|
|
125
|
+
} catch (v) {
|
|
126
|
+
console.warn("保存搜索配置失败:", v);
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
const
|
|
130
|
-
return
|
|
128
|
+
}, $ = P(() => {
|
|
129
|
+
const v = S.value.filter((H) => !H.isFixed && !H.isLinked).length, j = S.value.filter((H) => H.isFixed || H.isLinked).length;
|
|
130
|
+
return v >= a.value - j;
|
|
131
131
|
});
|
|
132
|
-
|
|
133
|
-
() =>
|
|
134
|
-
(
|
|
135
|
-
let
|
|
136
|
-
if (!
|
|
132
|
+
ee(
|
|
133
|
+
() => l.list,
|
|
134
|
+
(v) => {
|
|
135
|
+
let j = JSON.stringify(S.value) !== JSON.stringify(v);
|
|
136
|
+
if (!j)
|
|
137
137
|
return;
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
else if (
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
const et =
|
|
146
|
-
...C(
|
|
138
|
+
const H = localStorage.getItem(s.value), G = JSON.parse(H || "{}");
|
|
139
|
+
if (G && G?.originalList && Array.isArray(G.originalList))
|
|
140
|
+
K(), L("confirm", S.value);
|
|
141
|
+
else if (j) {
|
|
142
|
+
_ = JSON.parse(JSON.stringify(v));
|
|
143
|
+
const ae = v.filter((ne) => ne?.isFixed), be = v.filter((ne) => ne?.isLinked), ve = v.filter((ne) => !ne?.isFixed && !ne?.isLinked), xe = a.value && a.value > 0 ? Math.max(0, a.value - ae.length - be.length) : ve.length, Ee = ae.map((ne) => C(ne)), Pe = be.map((ne) => C(ne)), Ne = ve.slice(0, xe).map((ne) => C(ne));
|
|
144
|
+
S.value = [...Ee, ...Pe, ...Ne];
|
|
145
|
+
const et = ve.slice(xe).map((ne) => ({
|
|
146
|
+
...C(ne),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
|
|
149
|
+
A.value = et, L("confirm", S.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
if (
|
|
159
|
-
|
|
154
|
+
const R = (v) => {
|
|
155
|
+
const j = S.value.findIndex((H) => H.key === v.key);
|
|
156
|
+
j !== -1 && (S.value.splice(j, 1), A.value.push({ ...v, active: !1 }));
|
|
157
|
+
}, X = (v) => {
|
|
158
|
+
if ($.value) {
|
|
159
|
+
ke.warning(`当前已经超过${c(a.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const [
|
|
165
|
-
|
|
162
|
+
const j = A.value.findIndex((H) => H.key === v.key);
|
|
163
|
+
if (j !== -1) {
|
|
164
|
+
const [H] = A.value.splice(j, 1);
|
|
165
|
+
S.value.push({ ...H, active: !1 });
|
|
166
166
|
}
|
|
167
|
+
}, te = () => {
|
|
168
|
+
U.value = !1;
|
|
169
|
+
}, ce = () => {
|
|
170
|
+
U.value = !0;
|
|
167
171
|
}, de = () => {
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
W !== -1 && (M.value[W].active = !0);
|
|
176
|
-
}, J = (D) => {
|
|
177
|
-
const W = M.value.findIndex((U) => U.key === D.key);
|
|
178
|
-
W !== -1 && (M.value[W].active = !1);
|
|
172
|
+
se(), L("confirm", S.value), te();
|
|
173
|
+
}, we = (v) => {
|
|
174
|
+
const j = A.value.findIndex((H) => H.key === v.key);
|
|
175
|
+
j !== -1 && (A.value[j].active = !0);
|
|
176
|
+
}, ze = (v) => {
|
|
177
|
+
const j = A.value.findIndex((H) => H.key === v.key);
|
|
178
|
+
j !== -1 && (A.value[j].active = !1);
|
|
179
179
|
};
|
|
180
180
|
return t({
|
|
181
|
-
toOpenModal:
|
|
181
|
+
toOpenModal: ce
|
|
182
182
|
}), he(() => {
|
|
183
|
-
}), (
|
|
184
|
-
class: Y(
|
|
183
|
+
}), (v, j) => (i(), T("div", {
|
|
184
|
+
class: Y(y(p).b())
|
|
185
185
|
}, [
|
|
186
|
-
|
|
187
|
-
visible:
|
|
188
|
-
"onUpdate:visible":
|
|
189
|
-
width:
|
|
190
|
-
onCancel:
|
|
191
|
-
onOk:
|
|
186
|
+
w(y(je), {
|
|
187
|
+
visible: U.value,
|
|
188
|
+
"onUpdate:visible": j[1] || (j[1] = (H) => U.value = H),
|
|
189
|
+
width: x.value,
|
|
190
|
+
onCancel: te,
|
|
191
|
+
onOk: de
|
|
192
192
|
}, {
|
|
193
193
|
title: r(() => [
|
|
194
194
|
d("div", {
|
|
195
|
-
class: Y(
|
|
196
|
-
},
|
|
195
|
+
class: Y(y(p).e("title"))
|
|
196
|
+
}, k(m.value), 3)
|
|
197
197
|
]),
|
|
198
198
|
footer: r(() => [
|
|
199
|
-
|
|
199
|
+
w(y(We), { onClick: te }, {
|
|
200
200
|
default: r(() => [
|
|
201
|
-
|
|
201
|
+
B(k(v.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
205
|
-
|
|
205
|
+
w(y(We), {
|
|
206
206
|
type: "primary",
|
|
207
|
-
onClick:
|
|
207
|
+
onClick: de
|
|
208
208
|
}, {
|
|
209
209
|
default: r(() => [
|
|
210
|
-
|
|
210
|
+
B(k(v.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
})
|
|
214
214
|
]),
|
|
215
215
|
default: r(() => [
|
|
216
216
|
d("section", {
|
|
217
|
-
class: Y(
|
|
217
|
+
class: Y(y(p).e("show"))
|
|
218
218
|
}, [
|
|
219
219
|
d("div", {
|
|
220
|
-
class: Y(
|
|
220
|
+
class: Y(y(p).e("show__title"))
|
|
221
221
|
}, [
|
|
222
222
|
d("span", {
|
|
223
|
-
class: Y(
|
|
224
|
-
},
|
|
225
|
-
d("span", null,
|
|
223
|
+
class: Y(y(p).e("title__tip"))
|
|
224
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
225
|
+
d("span", null, k(v.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + k(a.value) + k(v.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
226
226
|
], 2),
|
|
227
227
|
d("div", {
|
|
228
|
-
class: Y(
|
|
228
|
+
class: Y(y(p).e("show__tag"))
|
|
229
229
|
}, [
|
|
230
|
-
|
|
231
|
-
modelValue:
|
|
232
|
-
"onUpdate:modelValue":
|
|
230
|
+
w(y($e), {
|
|
231
|
+
modelValue: S.value,
|
|
232
|
+
"onUpdate:modelValue": j[0] || (j[0] = (H) => S.value = H),
|
|
233
233
|
"item-key": "key",
|
|
234
234
|
tag: "div",
|
|
235
235
|
disabled: F.value,
|
|
236
|
-
move:
|
|
236
|
+
move: g
|
|
237
237
|
}, {
|
|
238
|
-
item: r(({ element:
|
|
238
|
+
item: r(({ element: H }) => [
|
|
239
239
|
d("div", {
|
|
240
|
-
class: Y([
|
|
240
|
+
class: Y([y(p).e("show__tag__item"), y(p).is("fixed", H.isFixed), y(p).is("linked", H.isLinked)])
|
|
241
241
|
}, [
|
|
242
|
-
|
|
243
|
-
!
|
|
242
|
+
B(k(H.label) + " ", 1),
|
|
243
|
+
!H.isFixed && !H.isLinked && e.list.length > 1 ? (i(), E(y(jt), {
|
|
244
244
|
key: 0,
|
|
245
|
-
class: Y(
|
|
246
|
-
onClick: (
|
|
245
|
+
class: Y(y(p).e("show__tag__item-close")),
|
|
246
|
+
onClick: (G) => R(H)
|
|
247
247
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
248
248
|
], 2)
|
|
249
249
|
]),
|
|
@@ -252,34 +252,34 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
252
252
|
], 2)
|
|
253
253
|
], 2),
|
|
254
254
|
d("section", {
|
|
255
|
-
class: Y(
|
|
255
|
+
class: Y(y(p).e("unshow"))
|
|
256
256
|
}, [
|
|
257
257
|
d("div", {
|
|
258
|
-
class: Y(
|
|
258
|
+
class: Y(y(p).e("show__title"))
|
|
259
259
|
}, [
|
|
260
260
|
d("span", {
|
|
261
|
-
class: Y(
|
|
262
|
-
},
|
|
261
|
+
class: Y(y(p).e("title__tip"))
|
|
262
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
263
263
|
], 2),
|
|
264
264
|
d("div", {
|
|
265
|
-
class: Y(
|
|
265
|
+
class: Y(y(p).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
|
-
|
|
268
|
-
class: Y([
|
|
269
|
-
key:
|
|
270
|
-
onMouseenter: (
|
|
271
|
-
onMouseleave: (
|
|
267
|
+
A.value.length > 0 ? (i(!0), T(q, { key: 0 }, ie(A.value, (H) => (i(), T("div", {
|
|
268
|
+
class: Y([y(p).e("unshow__tag__item"), y(p).is("fixed", H.isFixed || ""), y(p).is("linked", H.isLinked || "")]),
|
|
269
|
+
key: H.key,
|
|
270
|
+
onMouseenter: (G) => we(H),
|
|
271
|
+
onMouseleave: (G) => ze(H)
|
|
272
272
|
}, [
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
B(k(H.label) + " ", 1),
|
|
274
|
+
H.active ? (i(), T("aside", {
|
|
275
275
|
key: 0,
|
|
276
|
-
class: Y(
|
|
277
|
-
onClick: (
|
|
278
|
-
},
|
|
279
|
-
], 42,
|
|
276
|
+
class: Y(y(p).e("unshow__tag__item-add")),
|
|
277
|
+
onClick: (G) => X(H)
|
|
278
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.add")), 11, ao)) : z("", !0)
|
|
279
|
+
], 42, lo))), 128)) : (i(), T("div", {
|
|
280
280
|
key: 1,
|
|
281
|
-
class: Y(
|
|
282
|
-
},
|
|
281
|
+
class: Y(y(p).e("unshow__tag__empty"))
|
|
282
|
+
}, k(v.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
283
283
|
], 2)
|
|
284
284
|
], 2)
|
|
285
285
|
]),
|
|
@@ -287,17 +287,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
287
287
|
}, 8, ["visible", "width"])
|
|
288
288
|
], 2));
|
|
289
289
|
}
|
|
290
|
-
}),
|
|
291
|
-
const
|
|
290
|
+
}), Z = (e, t) => {
|
|
291
|
+
const o = e.__vccOpts || e;
|
|
292
292
|
for (const [n, c] of t)
|
|
293
|
-
|
|
294
|
-
return
|
|
295
|
-
},
|
|
293
|
+
o[n] = c;
|
|
294
|
+
return o;
|
|
295
|
+
}, io = /* @__PURE__ */ Z(no, [["__scopeId", "data-v-93f23c9d"]]), le = (e) => (e.install = (t) => {
|
|
296
296
|
t.component(e.name || "AnonymousComponent", e);
|
|
297
|
-
}, e),
|
|
297
|
+
}, e), so = le(io), ro = {
|
|
298
298
|
key: 0,
|
|
299
299
|
class: "form-footer"
|
|
300
|
-
},
|
|
300
|
+
}, co = /* @__PURE__ */ J({
|
|
301
301
|
name: "HbLibListForm",
|
|
302
302
|
__name: "HbListForm",
|
|
303
303
|
props: {
|
|
@@ -329,58 +329,59 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
329
329
|
} }
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
|
-
setup(e, { expose: t, emit:
|
|
333
|
-
const n = pe("globalCompConfig", {}), c =
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
setup(e, { expose: t, emit: o }) {
|
|
333
|
+
const n = pe("globalCompConfig", {}), c = o, f = pe("HB_LIST_PAGE_CONTAINER"), u = P(() => l.searchList || []), b = Ze("form"), l = e, a = P(() => l.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), L = P(() => l.needFooter || n.HbLibListForm?.needFooter), p = P(() => [...l.items]), D = ($) => $ !== void 0, M = ($) => typeof $ == "function", U = ($) => D($.condition) ? M($.condition) ? $.condition() : $.condition : !0, x = P(() => [...l.items].map(($) => ({
|
|
334
|
+
...$,
|
|
335
|
+
condition: U($),
|
|
336
|
+
label: $.label?.includes("多项搜索") ? "" : $.label
|
|
336
337
|
})));
|
|
337
|
-
console.log(
|
|
338
|
-
const
|
|
338
|
+
console.log(x.value);
|
|
339
|
+
const _ = P(() => l.saveKey), S = O(), A = () => {
|
|
339
340
|
c("handleSearch");
|
|
340
|
-
},
|
|
341
|
+
}, F = () => {
|
|
341
342
|
c("handleReset");
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
},
|
|
345
|
-
c("handleMenuClick",
|
|
346
|
-
},
|
|
347
|
-
c("handleSfcmConfirm",
|
|
343
|
+
}, C = O(), g = () => {
|
|
344
|
+
C.value && C.value.toOpenModal();
|
|
345
|
+
}, s = ($) => {
|
|
346
|
+
c("handleMenuClick", $);
|
|
347
|
+
}, h = ($) => {
|
|
348
|
+
c("handleSfcmConfirm", $);
|
|
348
349
|
};
|
|
349
|
-
|
|
350
|
-
() =>
|
|
351
|
-
(
|
|
352
|
-
if (
|
|
353
|
-
console.log(
|
|
354
|
-
const
|
|
355
|
-
|
|
356
|
-
|
|
350
|
+
ee(
|
|
351
|
+
() => l.isFormExpanded,
|
|
352
|
+
($) => {
|
|
353
|
+
if ($) {
|
|
354
|
+
console.log($);
|
|
355
|
+
const R = document.querySelector("#subpackage_container");
|
|
356
|
+
R instanceof HTMLElement && (R.style.overflow = "hidden", setTimeout(() => {
|
|
357
|
+
R.style.overflow = "auto";
|
|
357
358
|
}, 500));
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
361
|
);
|
|
361
|
-
const
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
|
|
362
|
+
const I = ($) => {
|
|
363
|
+
const R = $;
|
|
364
|
+
R.style.height = "", R.offsetHeight;
|
|
365
|
+
}, V = ($) => {
|
|
366
|
+
const R = $;
|
|
367
|
+
R.style.height = "", R.style.overflow = "", Le(() => {
|
|
367
368
|
f.calTableHeight && f.calTableHeight();
|
|
368
369
|
});
|
|
369
|
-
},
|
|
370
|
-
const
|
|
371
|
-
if (
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
}, K = ($) => {
|
|
371
|
+
const R = $, X = R.querySelector(".hb-lib-form--container");
|
|
372
|
+
if (X) {
|
|
373
|
+
const te = X.offsetHeight;
|
|
374
|
+
R.style.height = te + "px", R.style.overflow = "hidden", R.offsetHeight, requestAnimationFrame(() => {
|
|
375
|
+
R.style.height = "0";
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
|
-
},
|
|
378
|
-
|
|
378
|
+
}, se = () => {
|
|
379
|
+
Le(() => {
|
|
379
380
|
f.calTableHeight && f.calTableHeight();
|
|
380
381
|
});
|
|
381
382
|
};
|
|
382
383
|
return t({
|
|
383
|
-
formRef:
|
|
384
|
+
formRef: S,
|
|
384
385
|
SelectOption: qe,
|
|
385
386
|
Form: ct,
|
|
386
387
|
FormItem: rt,
|
|
@@ -392,178 +393,180 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
392
393
|
Checkbox: Me,
|
|
393
394
|
DatePicker: nt,
|
|
394
395
|
InputNumber: at,
|
|
395
|
-
RadioGroup:
|
|
396
|
-
Radio:
|
|
396
|
+
RadioGroup: lt,
|
|
397
|
+
Radio: ot,
|
|
397
398
|
Switch: tt,
|
|
398
399
|
Button: We,
|
|
399
400
|
Tooltip: Ie
|
|
400
|
-
}), (
|
|
401
|
-
const
|
|
401
|
+
}), ($, R) => {
|
|
402
|
+
const X = N("a-button"), te = N("a-tooltip"), ce = N("a-menu-item"), de = N("a-menu"), we = N("a-dropdown"), ze = N("HbLibFormItemFilterModal");
|
|
402
403
|
return i(), T(q, null, [
|
|
403
|
-
|
|
404
|
+
w(Dt, {
|
|
404
405
|
name: "form-collapse",
|
|
405
|
-
onEnter:
|
|
406
|
-
onAfterEnter:
|
|
407
|
-
onLeave:
|
|
408
|
-
onAfterLeave:
|
|
406
|
+
onEnter: I,
|
|
407
|
+
onAfterEnter: V,
|
|
408
|
+
onLeave: K,
|
|
409
|
+
onAfterLeave: se
|
|
409
410
|
}, {
|
|
410
411
|
default: r(() => [
|
|
411
412
|
ue(d("div", {
|
|
412
|
-
class: Y([
|
|
413
|
+
class: Y([y(b).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", L.value ? "isNeedFooterCss" : ""])
|
|
413
414
|
}, [
|
|
414
|
-
|
|
415
|
+
w(y(ct), oe($.$attrs, {
|
|
415
416
|
model: e.formData,
|
|
416
417
|
ref_key: "formRef",
|
|
417
|
-
ref:
|
|
418
|
+
ref: S,
|
|
418
419
|
class: ["hb-lib-form--container", m.value == "show" ? "" : "hide"]
|
|
419
420
|
}), {
|
|
420
421
|
default: r(() => [
|
|
421
|
-
(i(!0), T(q, null,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
key
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
key
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
422
|
+
(i(!0), T(q, null, ie(x.value, (v, j) => (i(), T(q, { key: j }, [
|
|
423
|
+
v.condition ? (i(), E(y(rt), oe({
|
|
424
|
+
key: 0,
|
|
425
|
+
ref_for: !0
|
|
426
|
+
}, v, {
|
|
427
|
+
name: v.key,
|
|
428
|
+
class: {
|
|
429
|
+
"hb-lib-form-item-border--unneed": v.isUnNeedBorder,
|
|
430
|
+
"hb_lib_form_item--needShowAll": v.showAll
|
|
431
|
+
}
|
|
432
|
+
}), Be({
|
|
433
|
+
default: r(() => [
|
|
434
|
+
v.type === "slot" ? W($.$slots, v.key, {
|
|
435
|
+
key: 0,
|
|
436
|
+
formData: e.formData,
|
|
437
|
+
item: v
|
|
438
|
+
}, void 0, !0) : z("", !0),
|
|
439
|
+
v.type === "mixin" ? W($.$slots, v.key, {
|
|
440
|
+
key: 1,
|
|
441
|
+
formData: e.formData,
|
|
442
|
+
item: v
|
|
443
|
+
}, void 0, !0) : z("", !0),
|
|
444
|
+
v.type === "input" ? (i(), E(y(st), oe({
|
|
445
|
+
key: 2,
|
|
446
|
+
value: e.formData[v.key],
|
|
447
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
448
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
449
|
+
v.type === "select" ? (i(), E(y(Ye), oe({
|
|
450
|
+
key: 3,
|
|
451
|
+
value: e.formData[v.key],
|
|
452
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
453
|
+
}, { ref_for: !0 }, v.attrs), {
|
|
454
|
+
default: r(() => [
|
|
455
|
+
(i(!0), T(q, null, ie(v.options, (H, G) => (i(), E(y(qe), {
|
|
456
|
+
key: G,
|
|
457
|
+
value: H.value
|
|
458
|
+
}, {
|
|
459
|
+
default: r(() => [
|
|
460
|
+
B(k(H.label), 1)
|
|
461
|
+
]),
|
|
462
|
+
_: 2
|
|
463
|
+
}, 1032, ["value"]))), 128))
|
|
464
|
+
]),
|
|
465
|
+
_: 2
|
|
466
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
467
|
+
v.type === "checkbox" ? (i(), E(y(it), oe({
|
|
468
|
+
key: 4,
|
|
469
|
+
value: e.formData[v.key],
|
|
470
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
471
|
+
}, { ref_for: !0 }, v.attrs), {
|
|
472
|
+
default: r(() => [
|
|
473
|
+
(i(!0), T(q, null, ie(v.options, (H, G) => (i(), E(y(Me), {
|
|
474
|
+
key: G,
|
|
475
|
+
value: H.value
|
|
476
|
+
}, {
|
|
477
|
+
default: r(() => [
|
|
478
|
+
B(k(H.label), 1)
|
|
479
|
+
]),
|
|
480
|
+
_: 2
|
|
481
|
+
}, 1032, ["value"]))), 128))
|
|
482
|
+
]),
|
|
483
|
+
_: 2
|
|
484
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
485
|
+
v.type === "date-picker" ? (i(), E(y(nt), oe({
|
|
486
|
+
key: 5,
|
|
487
|
+
value: e.formData[v.key],
|
|
488
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
489
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
490
|
+
v.type === "input-number" ? (i(), E(y(at), oe({
|
|
491
|
+
key: 6,
|
|
492
|
+
value: e.formData[v.key],
|
|
493
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
494
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
495
|
+
v.type === "radio" ? (i(), E(y(lt), oe({
|
|
496
|
+
key: 7,
|
|
497
|
+
value: e.formData[v.key],
|
|
498
|
+
"onUpdate:value": (H) => e.formData[v.key] = H
|
|
499
|
+
}, { ref_for: !0 }, v.attrs), {
|
|
500
|
+
default: r(() => [
|
|
501
|
+
(i(!0), T(q, null, ie(v.options, (H, G) => (i(), E(y(ot), {
|
|
502
|
+
key: G,
|
|
503
|
+
value: H.value
|
|
504
|
+
}, {
|
|
505
|
+
default: r(() => [
|
|
506
|
+
B(k(H.label), 1)
|
|
507
|
+
]),
|
|
508
|
+
_: 2
|
|
509
|
+
}, 1032, ["value"]))), 128))
|
|
510
|
+
]),
|
|
511
|
+
_: 2
|
|
512
|
+
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
513
|
+
v.type === "switch" ? (i(), E(y(tt), oe({
|
|
514
|
+
key: 8,
|
|
515
|
+
checked: e.formData[v.key],
|
|
516
|
+
"onUpdate:checked": (H) => e.formData[v.key] = H
|
|
517
|
+
}, { ref_for: !0 }, v.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
|
|
518
|
+
]),
|
|
519
|
+
_: 2
|
|
520
|
+
}, [
|
|
521
|
+
v.tooltip ? {
|
|
522
|
+
name: "label",
|
|
523
|
+
fn: r(() => [
|
|
524
|
+
B(k(v.label) + " ", 1),
|
|
525
|
+
w(y(Ie), {
|
|
526
|
+
title: v.tooltip
|
|
502
527
|
}, {
|
|
503
528
|
default: r(() => [
|
|
504
|
-
|
|
529
|
+
w(y(Wt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
505
530
|
]),
|
|
506
|
-
_:
|
|
507
|
-
},
|
|
531
|
+
_: 1
|
|
532
|
+
}, 8, ["title"])
|
|
508
533
|
]),
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
}, { ref_for: !0 }, B.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
|
|
516
|
-
]),
|
|
517
|
-
_: 2
|
|
518
|
-
}, [
|
|
519
|
-
B.tooltip ? {
|
|
520
|
-
name: "label",
|
|
521
|
-
fn: r(() => [
|
|
522
|
-
A(L(B.label) + " ", 1),
|
|
523
|
-
S(g(Ie), {
|
|
524
|
-
title: B.tooltip
|
|
525
|
-
}, {
|
|
526
|
-
default: r(() => [
|
|
527
|
-
S(g(Wt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
528
|
-
]),
|
|
529
|
-
_: 1
|
|
530
|
-
}, 8, ["title"])
|
|
531
|
-
]),
|
|
532
|
-
key: "0"
|
|
533
|
-
} : void 0
|
|
534
|
-
]), 1040, ["name", "class"]))), 128)),
|
|
535
|
-
_.value ? z("", !0) : (i(), T("section", rl, [
|
|
536
|
-
S(ee, {
|
|
534
|
+
key: "0"
|
|
535
|
+
} : void 0
|
|
536
|
+
]), 1040, ["name", "class"])) : z("", !0)
|
|
537
|
+
], 64))), 128)),
|
|
538
|
+
L.value ? z("", !0) : (i(), T("section", ro, [
|
|
539
|
+
w(X, {
|
|
537
540
|
type: "primary",
|
|
538
|
-
onClick:
|
|
541
|
+
onClick: A,
|
|
539
542
|
class: "hb_list_page_button"
|
|
540
543
|
}, {
|
|
541
544
|
icon: r(() => [
|
|
542
|
-
|
|
545
|
+
w(y(De))
|
|
543
546
|
]),
|
|
544
547
|
default: r(() => [
|
|
545
|
-
|
|
548
|
+
B(" " + k($.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
546
549
|
]),
|
|
547
550
|
_: 1
|
|
548
551
|
}),
|
|
549
|
-
|
|
552
|
+
w(X, {
|
|
550
553
|
type: "link",
|
|
551
|
-
onClick:
|
|
554
|
+
onClick: F
|
|
552
555
|
}, {
|
|
553
556
|
default: r(() => [
|
|
554
|
-
|
|
557
|
+
B(k($.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
555
558
|
]),
|
|
556
559
|
_: 1
|
|
557
560
|
}),
|
|
558
|
-
e.needFilter ? (i(), E(
|
|
561
|
+
e.needFilter ? (i(), E(te, {
|
|
559
562
|
key: 0,
|
|
560
|
-
title:
|
|
563
|
+
title: $.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
561
564
|
}, {
|
|
562
565
|
default: r(() => [
|
|
563
566
|
d("span", {
|
|
564
567
|
class: "hb-lib-form-svg",
|
|
565
|
-
onClick:
|
|
566
|
-
}, [...
|
|
568
|
+
onClick: g
|
|
569
|
+
}, [...R[0] || (R[0] = [
|
|
567
570
|
d("svg", {
|
|
568
571
|
t: "1757915025410",
|
|
569
572
|
class: "icon",
|
|
@@ -584,28 +587,28 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
584
587
|
]),
|
|
585
588
|
_: 1
|
|
586
589
|
}, 8, ["title"])) : z("", !0),
|
|
587
|
-
|
|
588
|
-
e.needSearchCase ? (i(), E(
|
|
590
|
+
W($.$slots, "formBtns", {}, () => [
|
|
591
|
+
e.needSearchCase ? (i(), E(we, { key: 0 }, {
|
|
589
592
|
overlay: r(() => [
|
|
590
|
-
|
|
593
|
+
w(de, { onClick: s }, {
|
|
591
594
|
default: r(() => [
|
|
592
|
-
(i(!0), T(q, null,
|
|
593
|
-
key:
|
|
595
|
+
(i(!0), T(q, null, ie(u.value, (v) => (i(), E(ce, {
|
|
596
|
+
key: v.id
|
|
594
597
|
}, {
|
|
595
598
|
default: r(() => [
|
|
596
|
-
|
|
599
|
+
B(k(v.title), 1)
|
|
597
600
|
]),
|
|
598
601
|
_: 2
|
|
599
602
|
}, 1024))), 128)),
|
|
600
|
-
|
|
603
|
+
w(ce, { key: "add" }, {
|
|
601
604
|
default: r(() => [
|
|
602
|
-
|
|
605
|
+
B(k($.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
603
606
|
]),
|
|
604
607
|
_: 1
|
|
605
608
|
}),
|
|
606
|
-
|
|
609
|
+
w(ce, { key: "edit" }, {
|
|
607
610
|
default: r(() => [
|
|
608
|
-
|
|
611
|
+
B(k($.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
609
612
|
]),
|
|
610
613
|
_: 1
|
|
611
614
|
})
|
|
@@ -614,10 +617,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
614
617
|
})
|
|
615
618
|
]),
|
|
616
619
|
default: r(() => [
|
|
617
|
-
|
|
618
|
-
title:
|
|
620
|
+
w(te, {
|
|
621
|
+
title: $.$t("hbLibComp.hbLibListForm.queryCase")
|
|
619
622
|
}, {
|
|
620
|
-
default: r(() => [...
|
|
623
|
+
default: r(() => [...R[1] || (R[1] = [
|
|
621
624
|
d("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
622
625
|
d("svg", {
|
|
623
626
|
t: "1765936014161",
|
|
@@ -655,54 +658,54 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
655
658
|
]),
|
|
656
659
|
_: 3
|
|
657
660
|
}, 16, ["model", "class"]),
|
|
658
|
-
|
|
661
|
+
L.value ? (i(), T("div", {
|
|
659
662
|
key: 0,
|
|
660
|
-
class: Y([
|
|
663
|
+
class: Y([y(b).e("footer"), "form-footer"])
|
|
661
664
|
}, [
|
|
662
665
|
d("div", {
|
|
663
|
-
class: Y(
|
|
666
|
+
class: Y(y(b).e("footer__left"))
|
|
664
667
|
}, [
|
|
665
|
-
|
|
668
|
+
W($.$slots, "form-footer-left", {}, void 0, !0)
|
|
666
669
|
], 2),
|
|
667
670
|
d("div", {
|
|
668
|
-
class: Y(
|
|
671
|
+
class: Y(y(b).e("footer__right"))
|
|
669
672
|
}, [
|
|
670
|
-
m.value == "show" ?
|
|
673
|
+
m.value == "show" ? W($.$slots, "form-footer-right", {
|
|
671
674
|
key: 0,
|
|
672
|
-
formRef:
|
|
675
|
+
formRef: S.value
|
|
673
676
|
}, () => [
|
|
674
|
-
|
|
677
|
+
w(X, {
|
|
675
678
|
type: "primary",
|
|
676
|
-
onClick:
|
|
679
|
+
onClick: A,
|
|
677
680
|
class: "hb_list_page_button"
|
|
678
681
|
}, {
|
|
679
682
|
icon: r(() => [
|
|
680
|
-
|
|
683
|
+
w(y(De))
|
|
681
684
|
]),
|
|
682
685
|
default: r(() => [
|
|
683
|
-
|
|
686
|
+
B(" " + k($.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
684
687
|
]),
|
|
685
688
|
_: 1
|
|
686
689
|
}),
|
|
687
|
-
|
|
690
|
+
w(X, {
|
|
688
691
|
type: "link",
|
|
689
|
-
onClick:
|
|
692
|
+
onClick: F,
|
|
690
693
|
class: "hb_list_page_button"
|
|
691
694
|
}, {
|
|
692
695
|
default: r(() => [
|
|
693
|
-
|
|
696
|
+
B(k($.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
694
697
|
]),
|
|
695
698
|
_: 1
|
|
696
699
|
}),
|
|
697
|
-
e.needFilter ? (i(), E(
|
|
700
|
+
e.needFilter ? (i(), E(te, {
|
|
698
701
|
key: 0,
|
|
699
|
-
title:
|
|
702
|
+
title: $.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
700
703
|
}, {
|
|
701
704
|
default: r(() => [
|
|
702
705
|
d("span", {
|
|
703
706
|
class: "hb-lib-form-svg",
|
|
704
|
-
onClick:
|
|
705
|
-
}, [...
|
|
707
|
+
onClick: g
|
|
708
|
+
}, [...R[2] || (R[2] = [
|
|
706
709
|
d("svg", {
|
|
707
710
|
t: "1757915025410",
|
|
708
711
|
class: "icon",
|
|
@@ -723,28 +726,28 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
723
726
|
]),
|
|
724
727
|
_: 1
|
|
725
728
|
}, 8, ["title"])) : z("", !0),
|
|
726
|
-
|
|
727
|
-
e.needSearchCase ? (i(), E(
|
|
729
|
+
W($.$slots, "formBtns", {}, () => [
|
|
730
|
+
e.needSearchCase ? (i(), E(we, { key: 0 }, {
|
|
728
731
|
overlay: r(() => [
|
|
729
|
-
|
|
732
|
+
w(de, { onClick: s }, {
|
|
730
733
|
default: r(() => [
|
|
731
|
-
(i(!0), T(q, null,
|
|
732
|
-
key:
|
|
734
|
+
(i(!0), T(q, null, ie(u.value, (v) => (i(), E(ce, {
|
|
735
|
+
key: v.id
|
|
733
736
|
}, {
|
|
734
737
|
default: r(() => [
|
|
735
|
-
|
|
738
|
+
B(k(v.title), 1)
|
|
736
739
|
]),
|
|
737
740
|
_: 2
|
|
738
741
|
}, 1024))), 128)),
|
|
739
|
-
|
|
742
|
+
w(ce, { key: "add" }, {
|
|
740
743
|
default: r(() => [
|
|
741
|
-
|
|
744
|
+
B(k($.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
742
745
|
]),
|
|
743
746
|
_: 1
|
|
744
747
|
}),
|
|
745
|
-
|
|
748
|
+
w(ce, { key: "edit" }, {
|
|
746
749
|
default: r(() => [
|
|
747
|
-
|
|
750
|
+
B(k($.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
748
751
|
]),
|
|
749
752
|
_: 1
|
|
750
753
|
})
|
|
@@ -753,10 +756,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
753
756
|
})
|
|
754
757
|
]),
|
|
755
758
|
default: r(() => [
|
|
756
|
-
|
|
757
|
-
title:
|
|
759
|
+
w(te, {
|
|
760
|
+
title: $.$t("hbLibComp.hbLibListForm.queryCase")
|
|
758
761
|
}, {
|
|
759
|
-
default: r(() => [...
|
|
762
|
+
default: r(() => [...R[3] || (R[3] = [
|
|
760
763
|
d("span", {
|
|
761
764
|
class: "hb-lib-form-svg",
|
|
762
765
|
style: { width: "18px", height: "18px", cursor: "pointer" }
|
|
@@ -802,18 +805,18 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
802
805
|
]),
|
|
803
806
|
_: 3
|
|
804
807
|
}),
|
|
805
|
-
|
|
808
|
+
w(ze, {
|
|
806
809
|
showNumber: a.value,
|
|
807
810
|
list: p.value,
|
|
808
811
|
ref_key: "HbSfCmRef",
|
|
809
|
-
ref:
|
|
810
|
-
onConfirm:
|
|
811
|
-
saveKey:
|
|
812
|
+
ref: C,
|
|
813
|
+
onConfirm: h,
|
|
814
|
+
saveKey: _.value
|
|
812
815
|
}, null, 8, ["showNumber", "list", "saveKey"])
|
|
813
816
|
], 64);
|
|
814
817
|
};
|
|
815
818
|
}
|
|
816
|
-
}),
|
|
819
|
+
}), uo = /* @__PURE__ */ Z(co, [["__scopeId", "data-v-8307bb07"]]), fo = le(uo), bo = { class: "hb-lib-list-page-act-box" }, po = { class: "hb-lib-list-page-breadcrumb" }, ho = { class: "hb-lib-list-page-act" }, mo = {
|
|
817
820
|
key: 0,
|
|
818
821
|
t: "1757915338760",
|
|
819
822
|
class: "icon",
|
|
@@ -823,7 +826,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
823
826
|
"p-id": "22885",
|
|
824
827
|
width: "200",
|
|
825
828
|
height: "200"
|
|
826
|
-
},
|
|
829
|
+
}, vo = {
|
|
827
830
|
key: 1,
|
|
828
831
|
t: "1757915360496",
|
|
829
832
|
class: "icon",
|
|
@@ -833,7 +836,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
833
836
|
"p-id": "23904",
|
|
834
837
|
width: "200",
|
|
835
838
|
height: "200"
|
|
836
|
-
},
|
|
839
|
+
}, go = /* @__PURE__ */ J({
|
|
837
840
|
name: "HbLibListPageAct",
|
|
838
841
|
__name: "HbListPageAct",
|
|
839
842
|
props: {
|
|
@@ -841,65 +844,65 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
841
844
|
hideDomList: {}
|
|
842
845
|
},
|
|
843
846
|
setup(e) {
|
|
844
|
-
const t = pe("globalCompConfig", {}),
|
|
845
|
-
|
|
847
|
+
const t = pe("globalCompConfig", {}), o = e, { isFullscreen: n, toggle: c } = Ht(document.body);
|
|
848
|
+
ee(
|
|
846
849
|
() => n.value,
|
|
847
|
-
(
|
|
850
|
+
(l) => {
|
|
848
851
|
let a = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
849
|
-
Array.isArray(
|
|
852
|
+
Array.isArray(o.hideDomList) && o.hideDomList.length ? a = [...o.hideDomList] : t.HbLibListPageAct?.hideDomList && (a = [...t.HbLibListPageAct.hideDomList]);
|
|
850
853
|
const m = /* @__PURE__ */ new Map();
|
|
851
|
-
setTimeout(
|
|
854
|
+
setTimeout(l ? () => {
|
|
852
855
|
if (a?.length)
|
|
853
|
-
for (let
|
|
854
|
-
const p = document.querySelector(a[
|
|
855
|
-
p && (m.set(a[
|
|
856
|
+
for (let L = 0; L < a.length; L++) {
|
|
857
|
+
const p = document.querySelector(a[L]);
|
|
858
|
+
p && (m.set(a[L], p.style.display), p.style.display = "none");
|
|
856
859
|
}
|
|
857
860
|
} : () => {
|
|
858
861
|
if (a?.length)
|
|
859
|
-
for (let
|
|
860
|
-
const p = document.querySelector(a[
|
|
862
|
+
for (let L = 0; L < a.length; L++) {
|
|
863
|
+
const p = document.querySelector(a[L]);
|
|
861
864
|
if (p) {
|
|
862
|
-
const
|
|
863
|
-
p.style.display =
|
|
865
|
+
const D = m.get(a[L]);
|
|
866
|
+
p.style.display = D || "", m.delete(a[L]);
|
|
864
867
|
}
|
|
865
868
|
}
|
|
866
869
|
}, 0);
|
|
867
870
|
}
|
|
868
871
|
);
|
|
869
872
|
const f = O(""), u = () => {
|
|
870
|
-
const
|
|
871
|
-
let a = localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", m =
|
|
873
|
+
const l = Qe();
|
|
874
|
+
let a = localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", m = l?.path;
|
|
872
875
|
if (a !== "[]") {
|
|
873
|
-
let
|
|
874
|
-
|
|
876
|
+
let L = JSON.parse(a).find((p) => p.value === m);
|
|
877
|
+
L && (f.value = L.label.replace(/-/g, " / "));
|
|
875
878
|
}
|
|
876
879
|
};
|
|
877
880
|
he(() => {
|
|
878
881
|
u();
|
|
879
882
|
});
|
|
880
|
-
const b = (
|
|
881
|
-
|
|
883
|
+
const b = (l) => {
|
|
884
|
+
l.keyCode === 192 && c();
|
|
882
885
|
};
|
|
883
886
|
return he(() => {
|
|
884
887
|
window.addEventListener("keydown", b);
|
|
885
|
-
}),
|
|
888
|
+
}), Te(() => {
|
|
886
889
|
window.removeEventListener("keydown", b);
|
|
887
|
-
}), (
|
|
888
|
-
const m =
|
|
889
|
-
return i(), T("section",
|
|
890
|
-
d("aside",
|
|
891
|
-
d("aside",
|
|
892
|
-
|
|
893
|
-
title:
|
|
890
|
+
}), (l, a) => {
|
|
891
|
+
const m = N("a-tooltip");
|
|
892
|
+
return i(), T("section", bo, [
|
|
893
|
+
d("aside", po, k(f.value), 1),
|
|
894
|
+
d("aside", ho, [
|
|
895
|
+
w(m, {
|
|
896
|
+
title: y(n) ? `${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
894
897
|
placement: "leftTop"
|
|
895
898
|
}, {
|
|
896
899
|
default: r(() => [
|
|
897
900
|
d("span", {
|
|
898
901
|
class: "hb-lib-list-page-act-svg",
|
|
899
902
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
900
|
-
(...
|
|
903
|
+
(...L) => y(c) && y(c)(...L))
|
|
901
904
|
}, [
|
|
902
|
-
|
|
905
|
+
y(n) ? (i(), T("svg", vo, [...a[2] || (a[2] = [
|
|
903
906
|
d("path", {
|
|
904
907
|
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",
|
|
905
908
|
fill: "#ff5000",
|
|
@@ -915,7 +918,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
915
918
|
fill: "#ff5000",
|
|
916
919
|
"p-id": "23907"
|
|
917
920
|
}, null, -1)
|
|
918
|
-
])])) : (i(), T("svg",
|
|
921
|
+
])])) : (i(), T("svg", mo, [...a[1] || (a[1] = [
|
|
919
922
|
d("path", {
|
|
920
923
|
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",
|
|
921
924
|
fill: "#ff5000",
|
|
@@ -926,12 +929,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
926
929
|
]),
|
|
927
930
|
_: 1
|
|
928
931
|
}, 8, ["title"]),
|
|
929
|
-
|
|
932
|
+
W(l.$slots, "listAct", {}, void 0, !0)
|
|
930
933
|
])
|
|
931
934
|
]);
|
|
932
935
|
};
|
|
933
936
|
}
|
|
934
|
-
}),
|
|
937
|
+
}), yo = /* @__PURE__ */ Z(go, [["__scopeId", "data-v-c7cd0710"]]), _o = le(yo), Lo = { class: "hb-lib-list-btns-box" }, Co = { class: "hb-lib-list-btns-left" }, ko = { class: "hb-lib-list-btns-right" }, So = /* @__PURE__ */ J({
|
|
935
938
|
name: "HbLibListBtnsAct",
|
|
936
939
|
__name: "HbListBtns",
|
|
937
940
|
props: {
|
|
@@ -940,23 +943,23 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
940
943
|
},
|
|
941
944
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
942
945
|
setup(e, { emit: t }) {
|
|
943
|
-
const
|
|
944
|
-
n.value = !n.value,
|
|
946
|
+
const o = t, n = O(!0), c = () => {
|
|
947
|
+
n.value = !n.value, o("handleOpenOrClose", n.value);
|
|
945
948
|
}, f = () => {
|
|
946
|
-
|
|
949
|
+
o("handleReload");
|
|
947
950
|
}, u = (b) => {
|
|
948
951
|
};
|
|
949
952
|
return he(() => {
|
|
950
953
|
window.addEventListener("keydown", u);
|
|
951
|
-
}),
|
|
954
|
+
}), Te(() => {
|
|
952
955
|
window.removeEventListener("keydown", u);
|
|
953
|
-
}), (b,
|
|
954
|
-
const a =
|
|
955
|
-
return i(), T("section",
|
|
956
|
-
d("aside",
|
|
957
|
-
|
|
956
|
+
}), (b, l) => {
|
|
957
|
+
const a = N("a-tooltip");
|
|
958
|
+
return i(), T("section", Lo, [
|
|
959
|
+
d("aside", Co, [
|
|
960
|
+
W(b.$slots, "btnsLeft", {}, void 0, !0)
|
|
958
961
|
]),
|
|
959
|
-
d("aside",
|
|
962
|
+
d("aside", ko, [
|
|
960
963
|
e.needReload ? (i(), E(a, {
|
|
961
964
|
key: 0,
|
|
962
965
|
title: b.$t("hbLibComp.hbListBtnsAct.reload")
|
|
@@ -965,7 +968,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
965
968
|
d("span", {
|
|
966
969
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
967
970
|
onClick: f
|
|
968
|
-
}, [...
|
|
971
|
+
}, [...l[0] || (l[0] = [
|
|
969
972
|
d("svg", {
|
|
970
973
|
t: "1759041224819",
|
|
971
974
|
class: "icon",
|
|
@@ -995,10 +998,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
995
998
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
996
999
|
onClick: c
|
|
997
1000
|
}, [
|
|
998
|
-
n.value ? (i(), E(
|
|
1001
|
+
n.value ? (i(), E(y(Yt), {
|
|
999
1002
|
key: 0,
|
|
1000
1003
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1001
|
-
})) : (i(), E(
|
|
1004
|
+
})) : (i(), E(y(qt), {
|
|
1002
1005
|
key: 1,
|
|
1003
1006
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
1007
|
}))
|
|
@@ -1006,21 +1009,21 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1006
1009
|
]),
|
|
1007
1010
|
_: 1
|
|
1008
1011
|
}, 8, ["title"])) : z("", !0),
|
|
1009
|
-
|
|
1012
|
+
W(b.$slots, "btnsRight", {}, void 0, !0)
|
|
1010
1013
|
])
|
|
1011
1014
|
]);
|
|
1012
1015
|
};
|
|
1013
1016
|
}
|
|
1014
|
-
}),
|
|
1015
|
-
const { formRef: t, offsetBottom:
|
|
1016
|
-
let u = null, b = null,
|
|
1017
|
-
const
|
|
1017
|
+
}), To = /* @__PURE__ */ Z(So, [["__scopeId", "data-v-de62f20a"]]), wo = le(To), xo = (e = {}) => {
|
|
1018
|
+
const { formRef: t, offsetBottom: o = 50, minHeight: n = 300, timeOut: c = 100 } = e, f = O(0);
|
|
1019
|
+
let u = null, b = null, l = null, a = null, m = null;
|
|
1020
|
+
const L = () => {
|
|
1018
1021
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
1019
1022
|
requestAnimationFrame(() => {
|
|
1020
|
-
|
|
1021
|
-
const
|
|
1022
|
-
if (
|
|
1023
|
-
const F = Math.floor(
|
|
1023
|
+
Le(() => {
|
|
1024
|
+
const S = document.querySelector(".ant-table"), A = document.querySelector(".ant-pagination");
|
|
1025
|
+
if (S) {
|
|
1026
|
+
const F = Math.floor(S.getBoundingClientRect().top), C = window.innerHeight, s = (A ? A.offsetHeight + 20 : 40) + o;
|
|
1024
1027
|
let h = C - F - s;
|
|
1025
1028
|
h < n && (h = n), f.value = h;
|
|
1026
1029
|
}
|
|
@@ -1028,66 +1031,66 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1028
1031
|
});
|
|
1029
1032
|
}, 100);
|
|
1030
1033
|
}, p = () => {
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
const
|
|
1034
|
-
|
|
1034
|
+
const S = document.querySelector(".ant-pagination");
|
|
1035
|
+
if (S) {
|
|
1036
|
+
const A = new MutationObserver(() => {
|
|
1037
|
+
L();
|
|
1035
1038
|
});
|
|
1036
|
-
return
|
|
1039
|
+
return A.observe(S, {
|
|
1037
1040
|
childList: !0,
|
|
1038
1041
|
subtree: !0,
|
|
1039
1042
|
attributes: !0,
|
|
1040
1043
|
attributeFilter: ["style", "class"]
|
|
1041
|
-
}),
|
|
1044
|
+
}), A;
|
|
1042
1045
|
}
|
|
1043
1046
|
return null;
|
|
1044
|
-
},
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1047
|
+
}, D = () => {
|
|
1048
|
+
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
1049
|
+
S && (u = new ResizeObserver(() => {
|
|
1047
1050
|
document.querySelectorAll(".ant-tooltip").forEach((F) => {
|
|
1048
1051
|
F.style.display = "none";
|
|
1049
|
-
}),
|
|
1050
|
-
}), u.observe(
|
|
1051
|
-
},
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1052
|
+
}), L();
|
|
1053
|
+
}), u.observe(S));
|
|
1054
|
+
}, M = () => {
|
|
1055
|
+
const S = document.querySelector(".hb-lib-list-page-form-box");
|
|
1056
|
+
S && (l = new MutationObserver(() => {
|
|
1054
1057
|
setTimeout(() => {
|
|
1055
|
-
|
|
1058
|
+
L();
|
|
1056
1059
|
}, c);
|
|
1057
|
-
}),
|
|
1060
|
+
}), l.observe(S, {
|
|
1058
1061
|
childList: !0,
|
|
1059
1062
|
subtree: !0,
|
|
1060
1063
|
attributes: !0,
|
|
1061
1064
|
attributeFilter: ["style", "class"]
|
|
1062
1065
|
}));
|
|
1063
|
-
},
|
|
1066
|
+
}, U = () => {
|
|
1064
1067
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
1065
|
-
|
|
1068
|
+
L();
|
|
1066
1069
|
}, c);
|
|
1067
|
-
},
|
|
1068
|
-
window.addEventListener("resize",
|
|
1069
|
-
|
|
1070
|
+
}, x = () => {
|
|
1071
|
+
window.addEventListener("resize", U), Le(() => {
|
|
1072
|
+
D(), M(), b = p();
|
|
1070
1073
|
});
|
|
1071
|
-
},
|
|
1072
|
-
window.removeEventListener("resize",
|
|
1074
|
+
}, _ = () => {
|
|
1075
|
+
window.removeEventListener("resize", U), u && u.disconnect(), l && l.disconnect(), b && b.disconnect(), a && clearTimeout(a), m && clearTimeout(m);
|
|
1073
1076
|
};
|
|
1074
|
-
return t &&
|
|
1077
|
+
return t && ee(
|
|
1075
1078
|
() => t,
|
|
1076
1079
|
() => {
|
|
1077
1080
|
setTimeout(() => {
|
|
1078
|
-
|
|
1081
|
+
L();
|
|
1079
1082
|
}, 200);
|
|
1080
1083
|
},
|
|
1081
1084
|
{ deep: !0 }
|
|
1082
1085
|
), he(() => {
|
|
1083
|
-
|
|
1084
|
-
}),
|
|
1085
|
-
|
|
1086
|
+
L(), x();
|
|
1087
|
+
}), Te(() => {
|
|
1088
|
+
_();
|
|
1086
1089
|
}), {
|
|
1087
1090
|
tableHeight: f,
|
|
1088
|
-
calTableHeight:
|
|
1091
|
+
calTableHeight: L
|
|
1089
1092
|
};
|
|
1090
|
-
},
|
|
1093
|
+
}, Fo = /* @__PURE__ */ J({
|
|
1091
1094
|
name: "HbLibListPageContainer",
|
|
1092
1095
|
__name: "HbListPageContainer",
|
|
1093
1096
|
props: {
|
|
@@ -1100,52 +1103,52 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1100
1103
|
isUnFixTbHeight: { type: Boolean }
|
|
1101
1104
|
},
|
|
1102
1105
|
setup(e) {
|
|
1103
|
-
const t = pe("globalCompConfig", {}), { isFullscreen:
|
|
1106
|
+
const t = pe("globalCompConfig", {}), { isFullscreen: o } = Ht(document.body), n = e, c = Bt("PageContainerRef"), f = P(() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110), u = P(() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20), b = P(() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300), l = P(() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100), a = P(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1104
1107
|
console.log(n.isUnFixTbHeight);
|
|
1105
|
-
const { calTableHeight: m, tableHeight:
|
|
1108
|
+
const { calTableHeight: m, tableHeight: L } = xo({
|
|
1106
1109
|
offsetBottom: u.value,
|
|
1107
1110
|
// 底部预留空间
|
|
1108
1111
|
minHeight: b.value,
|
|
1109
1112
|
// table最小高度 请勿随便修改!!
|
|
1110
|
-
timeOut:
|
|
1111
|
-
}), p = P(() =>
|
|
1113
|
+
timeOut: l.value
|
|
1114
|
+
}), p = P(() => L.value);
|
|
1112
1115
|
return Ct("HB_LIST_PAGE_CONTAINER", {
|
|
1113
1116
|
PageContainerRef: c,
|
|
1114
1117
|
// 通过函数访问,
|
|
1115
|
-
tableHeight:
|
|
1118
|
+
tableHeight: L,
|
|
1116
1119
|
calTableHeight: m
|
|
1117
|
-
}), (
|
|
1120
|
+
}), (D, M) => (i(), T("section", {
|
|
1118
1121
|
class: "hb-lib-list-page-container",
|
|
1119
1122
|
ref_key: "PageContainerRef",
|
|
1120
1123
|
ref: c
|
|
1121
1124
|
}, [
|
|
1122
|
-
|
|
1125
|
+
W(D.$slots, "header"),
|
|
1123
1126
|
d("section", {
|
|
1124
1127
|
class: "list-page-box",
|
|
1125
1128
|
style: re(
|
|
1126
1129
|
a.value ? null : {
|
|
1127
|
-
"--hb-list-table-height":
|
|
1128
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
1130
|
+
"--hb-list-table-height": y(o) ? p.value - f.value + "px" : p.value - u.value + "px",
|
|
1131
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : y(o) ? p.value - f.value + "px" : p.value - u.value + "px"
|
|
1129
1132
|
}
|
|
1130
1133
|
)
|
|
1131
1134
|
}, [
|
|
1132
|
-
|
|
1135
|
+
W(D.$slots, "default")
|
|
1133
1136
|
], 4)
|
|
1134
1137
|
], 512));
|
|
1135
1138
|
}
|
|
1136
|
-
}),
|
|
1139
|
+
}), Ho = le(Fo), $o = { style: { "font-weight": "500" } }, Io = {
|
|
1137
1140
|
key: 0,
|
|
1138
1141
|
class: "hb-lib-search-tag__description"
|
|
1139
|
-
},
|
|
1142
|
+
}, Mo = { class: "hb-lib-selector-dropdown" }, Do = { class: "hb-lib-selector-search" }, Ao = { class: "hb-lib-selector-list" }, Bo = ["onClick"], Oo = { class: "hb-lib-option-content" }, zo = { class: "hb-lib-option-label" }, Eo = {
|
|
1140
1143
|
key: 0,
|
|
1141
1144
|
class: "hb-lib-selector-empty"
|
|
1142
|
-
},
|
|
1145
|
+
}, Po = {
|
|
1143
1146
|
key: 1,
|
|
1144
1147
|
class: "hb-lib-selector-footer"
|
|
1145
|
-
},
|
|
1148
|
+
}, No = { class: "hb-lib-footer-buttons" }, Ro = {
|
|
1146
1149
|
key: 2,
|
|
1147
1150
|
class: "hb-lib-selector-footer"
|
|
1148
|
-
},
|
|
1151
|
+
}, Uo = { class: "hb-lib-footer-buttons" }, Vo = /* @__PURE__ */ J({
|
|
1149
1152
|
name: "HbLibListMultiSelect",
|
|
1150
1153
|
__name: "HbListMultiSelect",
|
|
1151
1154
|
props: /* @__PURE__ */ Ve({
|
|
@@ -1166,49 +1169,49 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1166
1169
|
}),
|
|
1167
1170
|
emits: /* @__PURE__ */ Ve(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1168
1171
|
setup(e, { emit: t }) {
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1172
|
+
const o = e, n = t, c = kt(e, "value"), f = O(!1), u = O(""), b = O([]), l = O(), a = P(() => {
|
|
1173
|
+
if (o.remoteSearch || !u.value) return o.options;
|
|
1171
1174
|
const C = u.value.toLowerCase();
|
|
1172
|
-
return
|
|
1173
|
-
}), m = P(() =>
|
|
1175
|
+
return o.options.filter((g) => g.label.toLowerCase().includes(C) || g.description?.toLowerCase().includes(C));
|
|
1176
|
+
}), m = P(() => o.prefix ? `${o.prefix.length * 14 + 8}px` : "0px"), L = P(() => a.value.length === 0 ? !1 : a.value.every((C) => b.value.includes(C.value))), p = P(() => {
|
|
1174
1177
|
if (a.value.length === 0) return !1;
|
|
1175
|
-
const C = a.value.filter((
|
|
1178
|
+
const C = a.value.filter((g) => b.value.includes(g.value)).length;
|
|
1176
1179
|
return C > 0 && C < a.value.length;
|
|
1177
1180
|
});
|
|
1178
|
-
|
|
1181
|
+
ee(
|
|
1179
1182
|
() => c.value,
|
|
1180
1183
|
(C) => {
|
|
1181
1184
|
C ? b.value = Array.isArray(C) ? [...C] : [C] : b.value = [];
|
|
1182
1185
|
},
|
|
1183
1186
|
{ immediate: !0 }
|
|
1184
|
-
),
|
|
1185
|
-
() =>
|
|
1187
|
+
), ee(
|
|
1188
|
+
() => o.searchValue,
|
|
1186
1189
|
(C) => {
|
|
1187
|
-
|
|
1190
|
+
o.remoteSearch && C !== void 0 && (u.value = C);
|
|
1188
1191
|
},
|
|
1189
1192
|
{ immediate: !0 }
|
|
1190
1193
|
);
|
|
1191
|
-
const
|
|
1192
|
-
C && (f.value = C,
|
|
1193
|
-
if (
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1194
|
+
const D = (C) => {
|
|
1195
|
+
C && (f.value = C, M.value = [...b.value], u.value = "", setTimeout(() => {
|
|
1196
|
+
if (l.value) {
|
|
1197
|
+
const g = l.value.input || l.value.$el?.querySelector("input");
|
|
1198
|
+
g && g.focus();
|
|
1196
1199
|
}
|
|
1197
1200
|
}, 100));
|
|
1198
|
-
},
|
|
1199
|
-
b.value = [...
|
|
1200
|
-
},
|
|
1201
|
-
const C =
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1206
|
-
}, 300),
|
|
1207
|
-
if (
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1201
|
+
}, M = O([]), U = () => {
|
|
1202
|
+
b.value = [...M.value], f.value = !1, n("cancel");
|
|
1203
|
+
}, x = O([]), _ = () => {
|
|
1204
|
+
const C = o.multiple ? b.value : b.value[0] || "", g = o.options.filter((s) => b.value.includes(s.value));
|
|
1205
|
+
x.value = g, console.log(C, g), M.value = [...b.value], c.value = C, n("update:value", C), n("change", C, g), n("confirm", C, g), f.value = !1;
|
|
1206
|
+
}, S = Jt((C) => {
|
|
1207
|
+
const g = C !== void 0 ? C : u.value;
|
|
1208
|
+
o.remoteSearch && (n("search", g), n("update:searchValue", g));
|
|
1209
|
+
}, 300), A = (C) => {
|
|
1210
|
+
if (o.multiple) {
|
|
1211
|
+
const g = new Set(b.value);
|
|
1212
|
+
g.has(C.value) ? g.delete(C.value) : g.add(C.value), b.value = Array.from(g);
|
|
1210
1213
|
} else
|
|
1211
|
-
b.value = [C.value],
|
|
1214
|
+
b.value = [C.value], _();
|
|
1212
1215
|
}, F = (C) => {
|
|
1213
1216
|
if (C.target.checked) {
|
|
1214
1217
|
const s = new Set(b.value);
|
|
@@ -1220,15 +1223,15 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1220
1223
|
b.value = b.value.filter((h) => !s.has(h));
|
|
1221
1224
|
}
|
|
1222
1225
|
};
|
|
1223
|
-
return (C,
|
|
1224
|
-
const s =
|
|
1226
|
+
return (C, g) => {
|
|
1227
|
+
const s = N("a-tag"), h = N("a-input"), I = N("a-checkbox"), V = N("a-radio"), K = N("a-button"), se = N("a-select");
|
|
1225
1228
|
return i(), T("div", oe({
|
|
1226
1229
|
class: "hb-lib-selector-wrapper",
|
|
1227
1230
|
style: { "--prefix-width": m.value }
|
|
1228
1231
|
}, C.$attrs), [
|
|
1229
|
-
|
|
1232
|
+
w(se, {
|
|
1230
1233
|
value: c.value,
|
|
1231
|
-
"onUpdate:value":
|
|
1234
|
+
"onUpdate:value": g[5] || (g[5] = ($) => c.value = $),
|
|
1232
1235
|
mode: e.multiple ? "multiple" : void 0,
|
|
1233
1236
|
placeholder: e.placeholder,
|
|
1234
1237
|
"show-search": !0,
|
|
@@ -1237,110 +1240,110 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1237
1240
|
allowClear: "",
|
|
1238
1241
|
maxTagCount: e.maxTagCount,
|
|
1239
1242
|
options: a.value,
|
|
1240
|
-
onDropdownVisibleChange:
|
|
1241
|
-
onSearch:
|
|
1243
|
+
onDropdownVisibleChange: D,
|
|
1244
|
+
onSearch: y(S),
|
|
1242
1245
|
"max-tag-text-length": e.tagTextLength,
|
|
1243
1246
|
class: Y({ "has-prefix": e.prefix }),
|
|
1244
1247
|
"data-prefix": e.prefix,
|
|
1245
1248
|
style: { width: "100%" }
|
|
1246
1249
|
}, {
|
|
1247
|
-
tagRender: r(({ value:
|
|
1248
|
-
|
|
1250
|
+
tagRender: r(({ value: $, label: R, closable: X, option: te }) => [
|
|
1251
|
+
w(s, {
|
|
1249
1252
|
class: "hb-lib-search-tag",
|
|
1250
|
-
onClick:
|
|
1253
|
+
onClick: g[0] || (g[0] = () => D(!0))
|
|
1251
1254
|
}, {
|
|
1252
1255
|
default: r(() => [
|
|
1253
|
-
d("span",
|
|
1254
|
-
|
|
1256
|
+
d("span", $o, k(R), 1),
|
|
1257
|
+
te?.description ? (i(), T("span", Io, " (" + k(te.description) + ") ", 1)) : z("", !0)
|
|
1255
1258
|
]),
|
|
1256
1259
|
_: 2
|
|
1257
1260
|
}, 1024)
|
|
1258
1261
|
]),
|
|
1259
|
-
dropdownRender: r(({ menuNode:
|
|
1260
|
-
d("div",
|
|
1261
|
-
d("div",
|
|
1262
|
-
|
|
1262
|
+
dropdownRender: r(({ menuNode: $ }) => [
|
|
1263
|
+
d("div", Mo, [
|
|
1264
|
+
d("div", Do, [
|
|
1265
|
+
w(h, {
|
|
1263
1266
|
ref_key: "searchInputRef",
|
|
1264
|
-
ref:
|
|
1267
|
+
ref: l,
|
|
1265
1268
|
class: "hb-lib-selector-search-input",
|
|
1266
1269
|
value: u.value,
|
|
1267
|
-
"onUpdate:value":
|
|
1270
|
+
"onUpdate:value": g[1] || (g[1] = (R) => u.value = R),
|
|
1268
1271
|
placeholder: "请输入关键词搜索",
|
|
1269
1272
|
"allow-clear": "",
|
|
1270
|
-
onInput:
|
|
1273
|
+
onInput: g[2] || (g[2] = (R) => y(S)(R.target.value))
|
|
1271
1274
|
}, {
|
|
1272
1275
|
prefix: r(() => [
|
|
1273
|
-
|
|
1276
|
+
w(y(De))
|
|
1274
1277
|
]),
|
|
1275
1278
|
_: 1
|
|
1276
1279
|
}, 8, ["value"])
|
|
1277
1280
|
]),
|
|
1278
|
-
d("div",
|
|
1279
|
-
(i(!0), T(q, null,
|
|
1280
|
-
key:
|
|
1281
|
-
class: Y(["hb-lib-selector-option", { selected: b.value.includes(
|
|
1282
|
-
onClick: () =>
|
|
1281
|
+
d("div", Ao, [
|
|
1282
|
+
(i(!0), T(q, null, ie(a.value, (R) => (i(), T("div", {
|
|
1283
|
+
key: R.value,
|
|
1284
|
+
class: Y(["hb-lib-selector-option", { selected: b.value.includes(R.value) }]),
|
|
1285
|
+
onClick: () => A(R)
|
|
1283
1286
|
}, [
|
|
1284
|
-
e.multiple ? (i(), E(
|
|
1287
|
+
e.multiple ? (i(), E(I, {
|
|
1285
1288
|
key: 0,
|
|
1286
|
-
checked: b.value.includes(
|
|
1287
|
-
onChange: () =>
|
|
1288
|
-
onClick:
|
|
1289
|
+
checked: b.value.includes(R.value),
|
|
1290
|
+
onChange: () => A(R),
|
|
1291
|
+
onClick: g[3] || (g[3] = He(() => {
|
|
1289
1292
|
}, ["stop"]))
|
|
1290
|
-
}, null, 8, ["checked", "onChange"])) : (i(), E(
|
|
1293
|
+
}, null, 8, ["checked", "onChange"])) : (i(), E(V, {
|
|
1291
1294
|
key: 1,
|
|
1292
|
-
checked: b.value.includes(
|
|
1293
|
-
onChange: () =>
|
|
1294
|
-
onClick:
|
|
1295
|
+
checked: b.value.includes(R.value),
|
|
1296
|
+
onChange: () => A(R),
|
|
1297
|
+
onClick: g[4] || (g[4] = He(() => {
|
|
1295
1298
|
}, ["stop"]))
|
|
1296
1299
|
}, null, 8, ["checked", "onChange"])),
|
|
1297
|
-
d("div",
|
|
1298
|
-
d("div",
|
|
1300
|
+
d("div", Oo, [
|
|
1301
|
+
d("div", zo, k(R.label), 1)
|
|
1299
1302
|
])
|
|
1300
|
-
], 10,
|
|
1303
|
+
], 10, Bo))), 128))
|
|
1301
1304
|
]),
|
|
1302
|
-
a.value.length === 0 ? (i(), T("div",
|
|
1303
|
-
e.multiple ? (i(), T("div",
|
|
1304
|
-
|
|
1305
|
-
checked:
|
|
1305
|
+
a.value.length === 0 ? (i(), T("div", Eo, k(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1306
|
+
e.multiple ? (i(), T("div", Po, [
|
|
1307
|
+
w(I, {
|
|
1308
|
+
checked: L.value,
|
|
1306
1309
|
indeterminate: p.value,
|
|
1307
1310
|
onChange: F
|
|
1308
1311
|
}, {
|
|
1309
1312
|
default: r(() => [
|
|
1310
|
-
|
|
1313
|
+
B(k(C.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1311
1314
|
]),
|
|
1312
1315
|
_: 1
|
|
1313
1316
|
}, 8, ["checked", "indeterminate"]),
|
|
1314
|
-
d("div",
|
|
1315
|
-
|
|
1317
|
+
d("div", No, [
|
|
1318
|
+
w(K, {
|
|
1316
1319
|
size: "small",
|
|
1317
|
-
onClick:
|
|
1320
|
+
onClick: U
|
|
1318
1321
|
}, {
|
|
1319
1322
|
default: r(() => [
|
|
1320
|
-
|
|
1323
|
+
B(k(C.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1321
1324
|
]),
|
|
1322
1325
|
_: 1
|
|
1323
1326
|
}),
|
|
1324
|
-
|
|
1327
|
+
w(K, {
|
|
1325
1328
|
type: "primary",
|
|
1326
1329
|
size: "small",
|
|
1327
|
-
onClick:
|
|
1330
|
+
onClick: _
|
|
1328
1331
|
}, {
|
|
1329
1332
|
default: r(() => [
|
|
1330
|
-
|
|
1333
|
+
B(k(C.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1331
1334
|
]),
|
|
1332
1335
|
_: 1
|
|
1333
1336
|
})
|
|
1334
1337
|
])
|
|
1335
|
-
])) : (i(), T("div",
|
|
1336
|
-
|
|
1337
|
-
d("div",
|
|
1338
|
-
|
|
1338
|
+
])) : (i(), T("div", Ro, [
|
|
1339
|
+
g[6] || (g[6] = d("div", null, null, -1)),
|
|
1340
|
+
d("div", Uo, [
|
|
1341
|
+
w(K, {
|
|
1339
1342
|
size: "small",
|
|
1340
|
-
onClick:
|
|
1343
|
+
onClick: U
|
|
1341
1344
|
}, {
|
|
1342
1345
|
default: r(() => [
|
|
1343
|
-
|
|
1346
|
+
B(k(C.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1344
1347
|
]),
|
|
1345
1348
|
_: 1
|
|
1346
1349
|
})
|
|
@@ -1353,7 +1356,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1353
1356
|
], 16);
|
|
1354
1357
|
};
|
|
1355
1358
|
}
|
|
1356
|
-
}),
|
|
1359
|
+
}), jo = /* @__PURE__ */ Z(Vo, [["__scopeId", "data-v-87177371"]]), Wo = le(jo), Yo = { class: "hb-lib-form-item-filter-modal-search" }, qo = { class: "hb-lib-form-item-filter-modal-buttons" }, Ko = { key: 0 }, Go = /* @__PURE__ */ J({
|
|
1357
1360
|
name: "HbLibMutilpleSelectModal",
|
|
1358
1361
|
__name: "HbMutilpleSelectModal",
|
|
1359
1362
|
props: {
|
|
@@ -1366,146 +1369,146 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1366
1369
|
labelKey: { default: "label" }
|
|
1367
1370
|
},
|
|
1368
1371
|
emits: ["handleConfirm", "handleCancel"],
|
|
1369
|
-
setup(e, { expose: t, emit:
|
|
1370
|
-
const n = e, c =
|
|
1372
|
+
setup(e, { expose: t, emit: o }) {
|
|
1373
|
+
const n = e, c = o, f = O(!1), u = O(""), b = O(), l = O(), a = O([]), m = O([]), L = O(), p = Se({
|
|
1371
1374
|
searchText: "",
|
|
1372
1375
|
searchedColumn: ""
|
|
1373
|
-
}),
|
|
1376
|
+
}), D = P(() => n.tableData.map((s) => (s.id = s.id || Math.random(), s))), M = P(() => n.tableColumn.map((s) => (s.customFilterDropdown && (s.onFilter = (h, I) => I[s.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), s.onFilterDropdownVisibleChange = (h) => {
|
|
1374
1377
|
h && setTimeout(() => {
|
|
1375
1378
|
b.value?.focus();
|
|
1376
1379
|
}, 100);
|
|
1377
|
-
}), { ...s }))),
|
|
1380
|
+
}), { ...s }))), U = () => {
|
|
1378
1381
|
let s = "";
|
|
1379
1382
|
m.value.forEach((h) => {
|
|
1380
1383
|
s = s + h[n.labelKey] + ",";
|
|
1381
1384
|
}), u.value = s.substring(0, s.length - 1), f.value = !1, c("handleConfirm", m.value);
|
|
1382
|
-
},
|
|
1385
|
+
}, x = () => {
|
|
1383
1386
|
f.value = !1;
|
|
1384
|
-
},
|
|
1385
|
-
f.value = !0,
|
|
1386
|
-
const s =
|
|
1387
|
+
}, _ = () => {
|
|
1388
|
+
f.value = !0, Le(() => {
|
|
1389
|
+
const s = L.value?.$el?.querySelector(".ant-table-body");
|
|
1387
1390
|
s && (s.scrollTop = 0);
|
|
1388
1391
|
});
|
|
1389
|
-
},
|
|
1392
|
+
}, S = () => {
|
|
1390
1393
|
a.value = [], m.value = [];
|
|
1391
|
-
},
|
|
1392
|
-
u.value = "",
|
|
1393
|
-
}, F = (s, h,
|
|
1394
|
-
h(), p.searchText = s[0], p.searchedColumn =
|
|
1394
|
+
}, A = () => {
|
|
1395
|
+
u.value = "", S();
|
|
1396
|
+
}, F = (s, h, I) => {
|
|
1397
|
+
h(), p.searchText = s[0], p.searchedColumn = I;
|
|
1395
1398
|
}, C = (s, h) => {
|
|
1396
1399
|
s({ confirm: !0 }), p.searchText = "", h();
|
|
1397
|
-
},
|
|
1400
|
+
}, g = (s, h) => {
|
|
1398
1401
|
a.value = s, m.value = h;
|
|
1399
1402
|
};
|
|
1400
1403
|
return t({
|
|
1401
|
-
resetInputVal:
|
|
1404
|
+
resetInputVal: A
|
|
1402
1405
|
}), (s, h) => {
|
|
1403
|
-
const
|
|
1406
|
+
const I = N("a-input"), V = N("a-button"), K = N("a-table"), se = N("a-modal");
|
|
1404
1407
|
return i(), T("div", {
|
|
1405
1408
|
class: "hb-lib-multipleSelectModal-box",
|
|
1406
1409
|
ref_key: "hbMultipSelectModalRef",
|
|
1407
|
-
ref:
|
|
1410
|
+
ref: l
|
|
1408
1411
|
}, [
|
|
1409
|
-
|
|
1412
|
+
w(I, {
|
|
1410
1413
|
readonly: "",
|
|
1411
|
-
onClick:
|
|
1414
|
+
onClick: _,
|
|
1412
1415
|
value: u.value,
|
|
1413
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
1416
|
+
"onUpdate:value": h[0] || (h[0] = ($) => u.value = $),
|
|
1414
1417
|
placeholder: s.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1415
1418
|
}, {
|
|
1416
1419
|
addonAfter: r(() => [
|
|
1417
|
-
|
|
1420
|
+
w(y(Kt), { onClick: _ })
|
|
1418
1421
|
]),
|
|
1419
1422
|
_: 1
|
|
1420
1423
|
}, 8, ["value", "placeholder"]),
|
|
1421
|
-
|
|
1424
|
+
w(se, {
|
|
1422
1425
|
visible: f.value,
|
|
1423
|
-
"onUpdate:visible": h[1] || (h[1] = (
|
|
1426
|
+
"onUpdate:visible": h[1] || (h[1] = ($) => f.value = $),
|
|
1424
1427
|
title: e.modelTitle,
|
|
1425
1428
|
width: e.modalWidth,
|
|
1426
1429
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1427
1430
|
}, {
|
|
1428
1431
|
footer: r(() => [
|
|
1429
|
-
|
|
1432
|
+
w(V, { onClick: S }, {
|
|
1430
1433
|
default: r(() => [
|
|
1431
|
-
|
|
1434
|
+
B(k(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1432
1435
|
]),
|
|
1433
1436
|
_: 1
|
|
1434
1437
|
}),
|
|
1435
|
-
|
|
1438
|
+
w(V, { onClick: x }, {
|
|
1436
1439
|
default: r(() => [
|
|
1437
|
-
|
|
1440
|
+
B(k(s.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1438
1441
|
]),
|
|
1439
1442
|
_: 1
|
|
1440
1443
|
}),
|
|
1441
|
-
|
|
1444
|
+
w(V, {
|
|
1442
1445
|
type: "primary",
|
|
1443
|
-
onClick:
|
|
1446
|
+
onClick: U
|
|
1444
1447
|
}, {
|
|
1445
1448
|
default: r(() => [
|
|
1446
|
-
|
|
1449
|
+
B(k(s.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1447
1450
|
]),
|
|
1448
1451
|
_: 1
|
|
1449
1452
|
})
|
|
1450
1453
|
]),
|
|
1451
1454
|
default: r(() => [
|
|
1452
|
-
|
|
1455
|
+
w(K, {
|
|
1453
1456
|
ref_key: "tableRef",
|
|
1454
|
-
ref:
|
|
1455
|
-
columns:
|
|
1456
|
-
dataSource:
|
|
1457
|
-
rowSelection: { selectedRowKeys: a.value, onChange:
|
|
1458
|
-
rowKey: (
|
|
1457
|
+
ref: L,
|
|
1458
|
+
columns: M.value,
|
|
1459
|
+
dataSource: D.value,
|
|
1460
|
+
rowSelection: { selectedRowKeys: a.value, onChange: g },
|
|
1461
|
+
rowKey: ($) => $[e.tableKey],
|
|
1459
1462
|
scroll: { y: e.tableHeight }
|
|
1460
1463
|
}, {
|
|
1461
|
-
customFilterDropdown: r(({ setSelectedKeys:
|
|
1462
|
-
d("div",
|
|
1463
|
-
|
|
1464
|
+
customFilterDropdown: r(({ setSelectedKeys: $, selectedKeys: R, confirm: X, clearFilters: te, column: ce }) => [
|
|
1465
|
+
d("div", Yo, [
|
|
1466
|
+
w(I, {
|
|
1464
1467
|
ref_key: "searchInput",
|
|
1465
1468
|
ref: b,
|
|
1466
|
-
placeholder: `请输入${
|
|
1467
|
-
value:
|
|
1469
|
+
placeholder: `请输入${ce.title}`,
|
|
1470
|
+
value: R[0],
|
|
1468
1471
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1469
|
-
onChange: (
|
|
1470
|
-
onPressEnter: (
|
|
1472
|
+
onChange: (de) => $(de.target.value ? [de.target.value] : []),
|
|
1473
|
+
onPressEnter: (de) => F(R, X, ce.dataIndex)
|
|
1471
1474
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1472
|
-
d("section",
|
|
1473
|
-
|
|
1475
|
+
d("section", qo, [
|
|
1476
|
+
w(V, {
|
|
1474
1477
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1475
1478
|
type: "ghost",
|
|
1476
|
-
onClick: (
|
|
1479
|
+
onClick: (de) => C(te, X)
|
|
1477
1480
|
}, {
|
|
1478
1481
|
default: r(() => [
|
|
1479
|
-
|
|
1482
|
+
B(k(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1480
1483
|
]),
|
|
1481
1484
|
_: 1
|
|
1482
1485
|
}, 8, ["onClick"]),
|
|
1483
|
-
|
|
1486
|
+
w(V, {
|
|
1484
1487
|
type: "primary",
|
|
1485
1488
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1486
|
-
onClick: (
|
|
1489
|
+
onClick: (de) => F(R, X, ce.dataIndex)
|
|
1487
1490
|
}, {
|
|
1488
1491
|
default: r(() => [
|
|
1489
|
-
|
|
1492
|
+
B(k(s.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1490
1493
|
]),
|
|
1491
1494
|
_: 1
|
|
1492
1495
|
}, 8, ["onClick"])
|
|
1493
1496
|
])
|
|
1494
1497
|
])
|
|
1495
1498
|
]),
|
|
1496
|
-
customFilterIcon: r(({ filtered:
|
|
1497
|
-
|
|
1498
|
-
style: re({ color:
|
|
1499
|
+
customFilterIcon: r(({ filtered: $ }) => [
|
|
1500
|
+
w(y(De), {
|
|
1501
|
+
style: re({ color: $ ? "#108ee9" : void 0 })
|
|
1499
1502
|
}, null, 8, ["style"])
|
|
1500
1503
|
]),
|
|
1501
|
-
bodyCell: r(({ text:
|
|
1502
|
-
p.searchText && p.searchedColumn ===
|
|
1503
|
-
(i(!0), T(q, null,
|
|
1504
|
-
|
|
1505
|
-
key:
|
|
1504
|
+
bodyCell: r(({ text: $, column: R }) => [
|
|
1505
|
+
p.searchText && p.searchedColumn === R.dataIndex ? (i(), T("span", Ko, [
|
|
1506
|
+
(i(!0), T(q, null, ie($.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (X, te) => (i(), T(q, null, [
|
|
1507
|
+
X.toLowerCase() === p.searchText.toLowerCase() ? (i(), T("mark", {
|
|
1508
|
+
key: te,
|
|
1506
1509
|
class: "highlight"
|
|
1507
|
-
},
|
|
1508
|
-
|
|
1510
|
+
}, k(X), 1)) : (i(), T(q, { key: 1 }, [
|
|
1511
|
+
B(k(X), 1)
|
|
1509
1512
|
], 64))
|
|
1510
1513
|
], 64))), 256))
|
|
1511
1514
|
])) : z("", !0)
|
|
@@ -1518,13 +1521,13 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1518
1521
|
], 512);
|
|
1519
1522
|
};
|
|
1520
1523
|
}
|
|
1521
|
-
}),
|
|
1524
|
+
}), Jo = le(Go), Qo = { class: "hb-lib-table-act-box" }, Zo = ["onClick"], Xo = {
|
|
1522
1525
|
href: "javascript:;",
|
|
1523
1526
|
class: "hb-lib-table-main-action"
|
|
1524
|
-
},
|
|
1527
|
+
}, el = ["onClick"], tl = {
|
|
1525
1528
|
href: "javascript:;",
|
|
1526
1529
|
class: "hb-lib-table-more-action"
|
|
1527
|
-
},
|
|
1530
|
+
}, ol = ["onClick"], ll = { href: "javascript:;" }, al = ["onClick"], nl = { class: "hb-lib-table-confirm-modal-content" }, il = /* @__PURE__ */ J({
|
|
1528
1531
|
name: "HbLibTableAct",
|
|
1529
1532
|
__name: "HbTableAct",
|
|
1530
1533
|
props: {
|
|
@@ -1534,31 +1537,31 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1534
1537
|
buttonDisplaysQuantity: {}
|
|
1535
1538
|
},
|
|
1536
1539
|
setup(e, { expose: t }) {
|
|
1537
|
-
const
|
|
1538
|
-
function m(
|
|
1539
|
-
if (
|
|
1540
|
-
return
|
|
1541
|
-
let
|
|
1542
|
-
return
|
|
1543
|
-
(!
|
|
1544
|
-
}),
|
|
1540
|
+
const o = e, { t: n } = fe(), c = O(!1), f = O(!1), u = O(null), b = P(() => o.actions.filter((x) => x.condition !== void 0 ? x.condition : !0)), l = P(() => b.value.slice(0, o.buttonDisplaysQuantity)), a = P(() => m(b.value.slice(o.buttonDisplaysQuantity)));
|
|
1541
|
+
function m(x) {
|
|
1542
|
+
if (o.filterPermission)
|
|
1543
|
+
return o.filterPermission(x);
|
|
1544
|
+
let _ = [], S = [];
|
|
1545
|
+
return _ = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(_) || x.length === 0 ? (_ = [], []) : (_ = _.filter((A) => A.type != "2"), x.forEach((A) => {
|
|
1546
|
+
(!A.permissionsTag || _.findIndex((F) => F.action === A.permissionsTag) !== -1) && S.push(A);
|
|
1547
|
+
}), S);
|
|
1545
1548
|
}
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1548
|
-
}, p = (
|
|
1549
|
-
u.value =
|
|
1550
|
-
},
|
|
1549
|
+
const L = (x) => {
|
|
1550
|
+
x.handler && x.handler(o.record);
|
|
1551
|
+
}, p = (x) => {
|
|
1552
|
+
u.value = x, c.value = !0;
|
|
1553
|
+
}, D = () => {
|
|
1551
1554
|
if (u.value) {
|
|
1552
1555
|
f.value = !0;
|
|
1553
1556
|
try {
|
|
1554
|
-
|
|
1557
|
+
L(u.value), f.value = !1, c.value = !1;
|
|
1555
1558
|
} catch {
|
|
1556
1559
|
f.value = !1;
|
|
1557
1560
|
}
|
|
1558
1561
|
}
|
|
1559
|
-
},
|
|
1562
|
+
}, M = () => {
|
|
1560
1563
|
c.value = !1, u.value = null;
|
|
1561
|
-
},
|
|
1564
|
+
}, U = P(() => u.value ? {
|
|
1562
1565
|
title: u.value.confirmTitle,
|
|
1563
1566
|
content: u.value.confirmContent || u.value.confirmTitle
|
|
1564
1567
|
} : {
|
|
@@ -1572,189 +1575,189 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1572
1575
|
APopconfirm: Re,
|
|
1573
1576
|
AModal: je,
|
|
1574
1577
|
DownOutlined: Ke
|
|
1575
|
-
}), (
|
|
1576
|
-
const
|
|
1577
|
-
return i(), T("div",
|
|
1578
|
-
(i(!0), T(q, null,
|
|
1578
|
+
}), (x, _) => {
|
|
1579
|
+
const S = N("a-divider"), A = St("has");
|
|
1580
|
+
return i(), T("div", Qo, [
|
|
1581
|
+
(i(!0), T(q, null, ie(l.value, (F, C) => (i(), T(q, { key: C }, [
|
|
1579
1582
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1580
1583
|
F.confirmType === "modal" ? (i(), T(q, { key: 0 }, [
|
|
1581
1584
|
ue((i(), T("a", {
|
|
1582
1585
|
href: "javascript:;",
|
|
1583
|
-
onClick: (
|
|
1586
|
+
onClick: (g) => p(F),
|
|
1584
1587
|
class: "hb-lib-table-main-action"
|
|
1585
1588
|
}, [
|
|
1586
|
-
|
|
1587
|
-
], 8,
|
|
1588
|
-
[
|
|
1589
|
+
B(k(F.label), 1)
|
|
1590
|
+
], 8, Zo)), [
|
|
1591
|
+
[A, F.permissionsTag || null]
|
|
1589
1592
|
]),
|
|
1590
|
-
a.value && a.value.length > 0 || C !==
|
|
1593
|
+
a.value && a.value.length > 0 || C !== l.value.length - 1 ? (i(), E(S, {
|
|
1591
1594
|
key: 0,
|
|
1592
1595
|
type: "vertical"
|
|
1593
1596
|
})) : z("", !0)
|
|
1594
1597
|
], 64)) : (i(), T(q, { key: 1 }, [
|
|
1595
|
-
|
|
1598
|
+
w(y(Re), {
|
|
1596
1599
|
title: F.confirmTitle,
|
|
1597
|
-
onConfirm: (
|
|
1600
|
+
onConfirm: (g) => L(F)
|
|
1598
1601
|
}, {
|
|
1599
1602
|
default: r(() => [
|
|
1600
|
-
ue((i(), T("a",
|
|
1601
|
-
|
|
1603
|
+
ue((i(), T("a", Xo, [
|
|
1604
|
+
B(k(F.label), 1)
|
|
1602
1605
|
])), [
|
|
1603
|
-
[
|
|
1606
|
+
[A, F.permissionsTag || null]
|
|
1604
1607
|
])
|
|
1605
1608
|
]),
|
|
1606
1609
|
_: 2
|
|
1607
1610
|
}, 1032, ["title", "onConfirm"]),
|
|
1608
|
-
a.value && a.value.length > 0 || C !==
|
|
1611
|
+
a.value && a.value.length > 0 || C !== l.value.length - 1 ? (i(), E(S, {
|
|
1609
1612
|
key: 0,
|
|
1610
1613
|
type: "vertical"
|
|
1611
1614
|
})) : z("", !0)
|
|
1612
1615
|
], 64))
|
|
1613
1616
|
], 64)) : F.slot ? (i(), T(q, { key: 1 }, [
|
|
1614
|
-
|
|
1615
|
-
a.value && a.value.length > 0 || C !==
|
|
1617
|
+
W(x.$slots, F.slot, { item: F }, void 0, !0),
|
|
1618
|
+
a.value && a.value.length > 0 || C !== l.value.length - 1 ? (i(), E(S, {
|
|
1616
1619
|
key: 0,
|
|
1617
1620
|
type: "vertical"
|
|
1618
1621
|
})) : z("", !0)
|
|
1619
1622
|
], 64)) : (i(), T(q, { key: 2 }, [
|
|
1620
1623
|
ue((i(), T("a", {
|
|
1621
1624
|
href: "javascript:;",
|
|
1622
|
-
onClick: (
|
|
1625
|
+
onClick: (g) => L(F),
|
|
1623
1626
|
class: "hb-lib-table-main-action"
|
|
1624
1627
|
}, [
|
|
1625
|
-
|
|
1626
|
-
], 8,
|
|
1627
|
-
[
|
|
1628
|
+
B(k(F.label), 1)
|
|
1629
|
+
], 8, el)), [
|
|
1630
|
+
[A, F.permissionsTag || null]
|
|
1628
1631
|
]),
|
|
1629
|
-
a.value && a.value.length > 0 || C !==
|
|
1632
|
+
a.value && a.value.length > 0 || C !== l.value.length - 1 ? ue((i(), E(S, {
|
|
1630
1633
|
key: 0,
|
|
1631
1634
|
type: "vertical"
|
|
1632
1635
|
}, null, 512)), [
|
|
1633
|
-
[
|
|
1636
|
+
[A, F.permissionsTag || null]
|
|
1634
1637
|
]) : z("", !0)
|
|
1635
1638
|
], 64))
|
|
1636
1639
|
], 64))), 128)),
|
|
1637
|
-
a.value && a.value.length > 0 ? (i(), E(
|
|
1640
|
+
a.value && a.value.length > 0 ? (i(), E(y(ft), { key: 0 }, {
|
|
1638
1641
|
overlay: r(() => [
|
|
1639
|
-
|
|
1642
|
+
w(y(ut), null, {
|
|
1640
1643
|
default: r(() => [
|
|
1641
|
-
(i(!0), T(q, null,
|
|
1644
|
+
(i(!0), T(q, null, ie(a.value, (F, C) => ue((i(), E(y(dt), { key: C }, {
|
|
1642
1645
|
default: r(() => [
|
|
1643
1646
|
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1644
1647
|
F.confirmType === "modal" ? ue((i(), T("a", {
|
|
1645
1648
|
key: 0,
|
|
1646
1649
|
href: "javascript:;",
|
|
1647
|
-
onClick: (
|
|
1650
|
+
onClick: (g) => p(F)
|
|
1648
1651
|
}, [
|
|
1649
|
-
|
|
1650
|
-
], 8,
|
|
1651
|
-
[
|
|
1652
|
-
]) : ue((i(), E(
|
|
1652
|
+
B(k(F.label), 1)
|
|
1653
|
+
], 8, ol)), [
|
|
1654
|
+
[A, F.permissionsTag || null]
|
|
1655
|
+
]) : ue((i(), E(y(Re), {
|
|
1653
1656
|
key: 1,
|
|
1654
1657
|
title: F.confirmTitle,
|
|
1655
|
-
onConfirm: (
|
|
1658
|
+
onConfirm: (g) => L(F)
|
|
1656
1659
|
}, {
|
|
1657
1660
|
default: r(() => [
|
|
1658
|
-
ue((i(), T("a",
|
|
1659
|
-
|
|
1661
|
+
ue((i(), T("a", ll, [
|
|
1662
|
+
B(k(F.label), 1)
|
|
1660
1663
|
])), [
|
|
1661
|
-
[
|
|
1664
|
+
[A, F.permissionsTag || null]
|
|
1662
1665
|
])
|
|
1663
1666
|
]),
|
|
1664
1667
|
_: 2
|
|
1665
1668
|
}, 1032, ["title", "onConfirm"])), [
|
|
1666
|
-
[
|
|
1669
|
+
[A, F.permissionsTag || null]
|
|
1667
1670
|
])
|
|
1668
1671
|
], 64)) : ue((i(), T("a", {
|
|
1669
1672
|
key: 1,
|
|
1670
1673
|
href: "javascript:;",
|
|
1671
|
-
onClick: (
|
|
1674
|
+
onClick: (g) => L(F)
|
|
1672
1675
|
}, [
|
|
1673
|
-
|
|
1674
|
-
], 8,
|
|
1675
|
-
[
|
|
1676
|
+
B(k(F.label), 1)
|
|
1677
|
+
], 8, al)), [
|
|
1678
|
+
[A, F.permissionsTag || null]
|
|
1676
1679
|
])
|
|
1677
1680
|
]),
|
|
1678
1681
|
_: 2
|
|
1679
1682
|
}, 1024)), [
|
|
1680
|
-
[
|
|
1683
|
+
[A, F.permissionsTag || null]
|
|
1681
1684
|
])), 128))
|
|
1682
1685
|
]),
|
|
1683
1686
|
_: 1
|
|
1684
1687
|
})
|
|
1685
1688
|
]),
|
|
1686
1689
|
default: r(() => [
|
|
1687
|
-
d("a",
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
+
d("a", tl, [
|
|
1691
|
+
B(k(x.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1692
|
+
w(y(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1690
1693
|
])
|
|
1691
1694
|
]),
|
|
1692
1695
|
_: 1
|
|
1693
1696
|
})) : z("", !0),
|
|
1694
|
-
|
|
1697
|
+
w(y(je), {
|
|
1695
1698
|
visible: c.value,
|
|
1696
|
-
title:
|
|
1699
|
+
title: U.value.title,
|
|
1697
1700
|
"confirm-loading": f.value,
|
|
1698
|
-
onOk:
|
|
1699
|
-
onCancel:
|
|
1701
|
+
onOk: D,
|
|
1702
|
+
onCancel: M
|
|
1700
1703
|
}, {
|
|
1701
1704
|
default: r(() => [
|
|
1702
|
-
d("p",
|
|
1705
|
+
d("p", nl, k(U.value.content), 1)
|
|
1703
1706
|
]),
|
|
1704
1707
|
_: 1
|
|
1705
1708
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1706
1709
|
]);
|
|
1707
1710
|
};
|
|
1708
1711
|
}
|
|
1709
|
-
}),
|
|
1710
|
-
const
|
|
1711
|
-
return !
|
|
1712
|
+
}), sl = /* @__PURE__ */ Z(il, [["__scopeId", "data-v-25fd055e"]]), rl = le(sl), bt = (e) => ({ tableWidth: P(() => {
|
|
1713
|
+
const o = Array.isArray(e) ? e : e.value;
|
|
1714
|
+
return !o || o.length === 0 ? 0 : o.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, c) => n + c, 0);
|
|
1712
1715
|
}) });
|
|
1713
|
-
var
|
|
1714
|
-
function
|
|
1715
|
-
var t =
|
|
1716
|
+
var cl = typeof global == "object" && global && global.Object === Object && global, dl = typeof self == "object" && self && self.Object === Object && self, $t = cl || dl || Function("return this")(), Ae = $t.Symbol, It = Object.prototype, ul = It.hasOwnProperty, fl = It.toString, Ce = Ae ? Ae.toStringTag : void 0;
|
|
1717
|
+
function bl(e) {
|
|
1718
|
+
var t = ul.call(e, Ce), o = e[Ce];
|
|
1716
1719
|
try {
|
|
1717
|
-
e[
|
|
1720
|
+
e[Ce] = void 0;
|
|
1718
1721
|
var n = !0;
|
|
1719
1722
|
} catch {
|
|
1720
1723
|
}
|
|
1721
|
-
var c =
|
|
1722
|
-
return n && (t ? e[
|
|
1724
|
+
var c = fl.call(e);
|
|
1725
|
+
return n && (t ? e[Ce] = o : delete e[Ce]), c;
|
|
1723
1726
|
}
|
|
1724
|
-
var
|
|
1725
|
-
function
|
|
1726
|
-
return
|
|
1727
|
+
var pl = Object.prototype, hl = pl.toString;
|
|
1728
|
+
function ml(e) {
|
|
1729
|
+
return hl.call(e);
|
|
1727
1730
|
}
|
|
1728
|
-
var
|
|
1729
|
-
function
|
|
1730
|
-
return e == null ? e === void 0 ?
|
|
1731
|
+
var vl = "[object Null]", gl = "[object Undefined]", pt = Ae ? Ae.toStringTag : void 0;
|
|
1732
|
+
function yl(e) {
|
|
1733
|
+
return e == null ? e === void 0 ? gl : vl : pt && pt in Object(e) ? bl(e) : ml(e);
|
|
1731
1734
|
}
|
|
1732
|
-
function
|
|
1735
|
+
function _l(e) {
|
|
1733
1736
|
return e != null && typeof e == "object";
|
|
1734
1737
|
}
|
|
1735
|
-
var
|
|
1736
|
-
function
|
|
1737
|
-
return typeof e == "symbol" ||
|
|
1738
|
+
var Ll = "[object Symbol]";
|
|
1739
|
+
function Cl(e) {
|
|
1740
|
+
return typeof e == "symbol" || _l(e) && yl(e) == Ll;
|
|
1738
1741
|
}
|
|
1739
|
-
var
|
|
1740
|
-
function
|
|
1741
|
-
for (var t = e.length; t-- &&
|
|
1742
|
+
var kl = /\s/;
|
|
1743
|
+
function Sl(e) {
|
|
1744
|
+
for (var t = e.length; t-- && kl.test(e.charAt(t)); )
|
|
1742
1745
|
;
|
|
1743
1746
|
return t;
|
|
1744
1747
|
}
|
|
1745
|
-
var
|
|
1746
|
-
function
|
|
1747
|
-
return e && e.slice(0,
|
|
1748
|
+
var Tl = /^\s+/;
|
|
1749
|
+
function wl(e) {
|
|
1750
|
+
return e && e.slice(0, Sl(e) + 1).replace(Tl, "");
|
|
1748
1751
|
}
|
|
1749
1752
|
function Ge(e) {
|
|
1750
1753
|
var t = typeof e;
|
|
1751
1754
|
return e != null && (t == "object" || t == "function");
|
|
1752
1755
|
}
|
|
1753
|
-
var ht = NaN,
|
|
1756
|
+
var ht = NaN, xl = /^[-+]0x[0-9a-f]+$/i, Fl = /^0b[01]+$/i, Hl = /^0o[0-7]+$/i, $l = parseInt;
|
|
1754
1757
|
function mt(e) {
|
|
1755
1758
|
if (typeof e == "number")
|
|
1756
1759
|
return e;
|
|
1757
|
-
if (
|
|
1760
|
+
if (Cl(e))
|
|
1758
1761
|
return ht;
|
|
1759
1762
|
if (Ge(e)) {
|
|
1760
1763
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -1762,64 +1765,64 @@ function mt(e) {
|
|
|
1762
1765
|
}
|
|
1763
1766
|
if (typeof e != "string")
|
|
1764
1767
|
return e === 0 ? e : +e;
|
|
1765
|
-
e =
|
|
1766
|
-
var
|
|
1767
|
-
return
|
|
1768
|
+
e = wl(e);
|
|
1769
|
+
var o = Fl.test(e);
|
|
1770
|
+
return o || Hl.test(e) ? $l(e.slice(2), o ? 2 : 8) : xl.test(e) ? ht : +e;
|
|
1768
1771
|
}
|
|
1769
1772
|
var Ue = function() {
|
|
1770
1773
|
return $t.Date.now();
|
|
1771
|
-
},
|
|
1772
|
-
function
|
|
1773
|
-
var n, c, f, u, b,
|
|
1774
|
+
}, Il = "Expected a function", Ml = Math.max, Dl = Math.min;
|
|
1775
|
+
function Al(e, t, o) {
|
|
1776
|
+
var n, c, f, u, b, l, a = 0, m = !1, L = !1, p = !0;
|
|
1774
1777
|
if (typeof e != "function")
|
|
1775
|
-
throw new TypeError(
|
|
1776
|
-
t = mt(t) || 0, Ge(
|
|
1777
|
-
function
|
|
1778
|
+
throw new TypeError(Il);
|
|
1779
|
+
t = mt(t) || 0, Ge(o) && (m = !!o.leading, L = "maxWait" in o, f = L ? Ml(mt(o.maxWait) || 0, t) : f, p = "trailing" in o ? !!o.trailing : p);
|
|
1780
|
+
function D(g) {
|
|
1778
1781
|
var s = n, h = c;
|
|
1779
|
-
return n = c = void 0, a =
|
|
1782
|
+
return n = c = void 0, a = g, u = e.apply(h, s), u;
|
|
1780
1783
|
}
|
|
1781
|
-
function
|
|
1782
|
-
return a =
|
|
1784
|
+
function M(g) {
|
|
1785
|
+
return a = g, b = setTimeout(_, t), m ? D(g) : u;
|
|
1783
1786
|
}
|
|
1784
|
-
function
|
|
1785
|
-
var s =
|
|
1786
|
-
return
|
|
1787
|
+
function U(g) {
|
|
1788
|
+
var s = g - l, h = g - a, I = t - s;
|
|
1789
|
+
return L ? Dl(I, f - h) : I;
|
|
1787
1790
|
}
|
|
1788
|
-
function
|
|
1789
|
-
var s =
|
|
1790
|
-
return
|
|
1791
|
+
function x(g) {
|
|
1792
|
+
var s = g - l, h = g - a;
|
|
1793
|
+
return l === void 0 || s >= t || s < 0 || L && h >= f;
|
|
1791
1794
|
}
|
|
1792
|
-
function
|
|
1793
|
-
var
|
|
1794
|
-
if (
|
|
1795
|
-
return
|
|
1796
|
-
b = setTimeout(
|
|
1795
|
+
function _() {
|
|
1796
|
+
var g = Ue();
|
|
1797
|
+
if (x(g))
|
|
1798
|
+
return S(g);
|
|
1799
|
+
b = setTimeout(_, U(g));
|
|
1797
1800
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return b = void 0, p && n ?
|
|
1801
|
+
function S(g) {
|
|
1802
|
+
return b = void 0, p && n ? D(g) : (n = c = void 0, u);
|
|
1800
1803
|
}
|
|
1801
|
-
function
|
|
1802
|
-
b !== void 0 && clearTimeout(b), a = 0, n =
|
|
1804
|
+
function A() {
|
|
1805
|
+
b !== void 0 && clearTimeout(b), a = 0, n = l = c = b = void 0;
|
|
1803
1806
|
}
|
|
1804
1807
|
function F() {
|
|
1805
|
-
return b === void 0 ? u :
|
|
1808
|
+
return b === void 0 ? u : S(Ue());
|
|
1806
1809
|
}
|
|
1807
1810
|
function C() {
|
|
1808
|
-
var
|
|
1809
|
-
if (n = arguments, c = this,
|
|
1811
|
+
var g = Ue(), s = x(g);
|
|
1812
|
+
if (n = arguments, c = this, l = g, s) {
|
|
1810
1813
|
if (b === void 0)
|
|
1811
|
-
return
|
|
1812
|
-
if (
|
|
1813
|
-
return clearTimeout(b), b = setTimeout(
|
|
1814
|
+
return M(l);
|
|
1815
|
+
if (L)
|
|
1816
|
+
return clearTimeout(b), b = setTimeout(_, t), D(l);
|
|
1814
1817
|
}
|
|
1815
|
-
return b === void 0 && (b = setTimeout(
|
|
1818
|
+
return b === void 0 && (b = setTimeout(_, t)), u;
|
|
1816
1819
|
}
|
|
1817
|
-
return C.cancel =
|
|
1820
|
+
return C.cancel = A, C.flush = F, C;
|
|
1818
1821
|
}
|
|
1819
|
-
const
|
|
1822
|
+
const Bl = {
|
|
1820
1823
|
key: 0,
|
|
1821
1824
|
class: "hb-lib-list-table-act"
|
|
1822
|
-
},
|
|
1825
|
+
}, Ol = { class: "empty-container" }, zl = { key: 1 }, El = { key: 2 }, Pl = /* @__PURE__ */ J({
|
|
1823
1826
|
name: "HbLibListTable",
|
|
1824
1827
|
__name: "HbListTable",
|
|
1825
1828
|
props: {
|
|
@@ -1831,134 +1834,134 @@ const Bo = {
|
|
|
1831
1834
|
},
|
|
1832
1835
|
emits: ["change", "resizeCol"],
|
|
1833
1836
|
setup(e, { emit: t }) {
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1837
|
+
const o = pe("globalCompConfig", {}), n = t, { t: c } = fe(), f = e, u = O([]), b = pe("HB_LIST_PAGE_CONTAINER"), { tableWidth: l } = bt(u), a = O(l.value), m = P(() => f.isUnFixTbHeight || o.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1838
|
+
ee(
|
|
1836
1839
|
() => f.columns,
|
|
1837
|
-
(
|
|
1838
|
-
const
|
|
1839
|
-
u.value =
|
|
1840
|
-
let C = { ...F, title: F.title || F.label, align: F.align ||
|
|
1840
|
+
(_) => {
|
|
1841
|
+
const S = _.filter((F) => F != null && F.checked);
|
|
1842
|
+
u.value = S.map((F) => {
|
|
1843
|
+
let C = { ...F, title: F.title || F.label, align: F.align || o.listTable?.align || "center" };
|
|
1841
1844
|
C.ellipsis && !C.needTooltip && (C.needTooltip = !0);
|
|
1842
|
-
let
|
|
1845
|
+
let g = f.defaultWidth || o.listTable?.defaultColWidth || 150;
|
|
1843
1846
|
if (!C.width)
|
|
1844
|
-
C.width =
|
|
1847
|
+
C.width = g;
|
|
1845
1848
|
else if (typeof C.width == "string") {
|
|
1846
1849
|
const s = parseInt(C.width, 10);
|
|
1847
|
-
C.width = isNaN(s) ?
|
|
1850
|
+
C.width = isNaN(s) ? g : s;
|
|
1848
1851
|
}
|
|
1849
1852
|
return C.resizable === void 0 && (C.resizable = !0), C;
|
|
1850
1853
|
});
|
|
1851
|
-
const { tableWidth:
|
|
1852
|
-
a.value =
|
|
1854
|
+
const { tableWidth: A } = bt(u);
|
|
1855
|
+
a.value = A.value;
|
|
1853
1856
|
},
|
|
1854
1857
|
{
|
|
1855
1858
|
immediate: !0,
|
|
1856
1859
|
deep: !0
|
|
1857
1860
|
}
|
|
1858
1861
|
);
|
|
1859
|
-
const
|
|
1862
|
+
const L = Al(() => {
|
|
1860
1863
|
n("resizeCol", u);
|
|
1861
|
-
},
|
|
1862
|
-
if (
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1865
|
-
|
|
1864
|
+
}, o.listTable?.colSaveTimeOut || 800), p = (_, S) => {
|
|
1865
|
+
if (S) {
|
|
1866
|
+
const A = typeof _ == "string" ? parseInt(_, 10) : _;
|
|
1867
|
+
S.width = isNaN(A) ? o.listTable?.defaultColWidth || 150 : A, Le(() => {
|
|
1868
|
+
L();
|
|
1866
1869
|
});
|
|
1867
1870
|
}
|
|
1868
|
-
},
|
|
1869
|
-
|
|
1870
|
-
},
|
|
1871
|
-
return (
|
|
1872
|
-
const
|
|
1871
|
+
}, D = (_, S, A) => {
|
|
1872
|
+
_?.current && n("change", _, S, A);
|
|
1873
|
+
}, M = (_, S = "YYYY-MM-DD HH:mm:ss") => _ ? Oe(_).format(S) : "", U = (_, S) => _ && S[_] || "", x = (_, S = o.listTable?.ellipsisNumber || 20) => _ ? _.length > S ? `${_.substring(0, S)}...` : _ : "";
|
|
1874
|
+
return (_, S) => {
|
|
1875
|
+
const A = N("a-empty"), F = N("a-tooltip"), C = N("HbLibCopy"), g = N("a-tag"), s = N("a-table");
|
|
1873
1876
|
return i(), T("div", {
|
|
1874
1877
|
class: Y(["hb-lib-list-table", { "nowrap-table": f.rowHeight }]),
|
|
1875
1878
|
style: re({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1876
1879
|
}, [
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
+
_.$slots.tableActLeft ? (i(), T("section", Bl, [
|
|
1881
|
+
W(_.$slots, "tableActLeft", {}, void 0, !0),
|
|
1882
|
+
W(_.$slots, "tableActRight", {}, void 0, !0)
|
|
1880
1883
|
])) : z("", !0),
|
|
1881
|
-
|
|
1884
|
+
w(s, oe(_.$attrs, {
|
|
1882
1885
|
bordered: "",
|
|
1883
1886
|
columns: u.value,
|
|
1884
1887
|
tableLayout: "fixed",
|
|
1885
1888
|
onResizeColumn: p,
|
|
1886
|
-
onChange:
|
|
1889
|
+
onChange: D,
|
|
1887
1890
|
scroll: m.value ? {
|
|
1888
1891
|
x: a.value
|
|
1889
|
-
} : { x: a.value, y:
|
|
1892
|
+
} : { x: a.value, y: y(b).tableHeight }
|
|
1890
1893
|
}), Be({
|
|
1891
1894
|
emptyText: r(() => [
|
|
1892
|
-
d("div",
|
|
1893
|
-
|
|
1894
|
-
description:
|
|
1895
|
+
d("div", Ol, [
|
|
1896
|
+
w(A, {
|
|
1897
|
+
description: y(c)("hbLibComp.hbListTable.noData")
|
|
1895
1898
|
}, null, 8, ["description"])
|
|
1896
1899
|
])
|
|
1897
1900
|
]),
|
|
1898
1901
|
_: 2
|
|
1899
1902
|
}, [
|
|
1900
|
-
|
|
1903
|
+
_.$slots.headerCell ? {
|
|
1901
1904
|
name: "headerCell",
|
|
1902
1905
|
fn: r(({ column: h }) => [
|
|
1903
|
-
|
|
1906
|
+
W(_.$slots, "headerCell", {
|
|
1904
1907
|
column: h,
|
|
1905
1908
|
title: h.title
|
|
1906
1909
|
}, () => [
|
|
1907
|
-
|
|
1910
|
+
B(k(h.title), 1)
|
|
1908
1911
|
], !0)
|
|
1909
1912
|
]),
|
|
1910
1913
|
key: "0"
|
|
1911
1914
|
} : void 0,
|
|
1912
|
-
|
|
1915
|
+
_.$slots.bodyCell ? {
|
|
1913
1916
|
name: "bodyCell",
|
|
1914
|
-
fn: r(({ column: h, record:
|
|
1915
|
-
|
|
1917
|
+
fn: r(({ column: h, record: I, index: V, text: K }) => [
|
|
1918
|
+
W(_.$slots, "bodyCell", {
|
|
1916
1919
|
column: h,
|
|
1917
|
-
record:
|
|
1918
|
-
index:
|
|
1919
|
-
text:
|
|
1920
|
+
record: I,
|
|
1921
|
+
index: V,
|
|
1922
|
+
text: K
|
|
1920
1923
|
}, void 0, !0),
|
|
1921
1924
|
h && h.needTooltip && !h.needCopy ? (i(), E(F, {
|
|
1922
1925
|
key: 0,
|
|
1923
1926
|
placement: e.tooltipPlacement
|
|
1924
1927
|
}, {
|
|
1925
1928
|
title: r(() => [
|
|
1926
|
-
|
|
1929
|
+
B(k(I[h.dataIndex]), 1)
|
|
1927
1930
|
]),
|
|
1928
1931
|
default: r(() => [
|
|
1929
|
-
|
|
1932
|
+
B(" " + k(I[h.dataIndex]), 1)
|
|
1930
1933
|
]),
|
|
1931
1934
|
_: 2
|
|
1932
|
-
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), T("div",
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
"cp-text":
|
|
1935
|
+
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), T("div", zl, [
|
|
1936
|
+
B(k(I[h.dataIndex]) + " ", 1),
|
|
1937
|
+
w(C, {
|
|
1938
|
+
"cp-text": I[h.dataIndex],
|
|
1936
1939
|
style: { position: "relative" }
|
|
1937
1940
|
}, null, 8, ["cp-text"])
|
|
1938
1941
|
])) : z("", !0),
|
|
1939
|
-
h && h.needTooltip && h.needCopy ? (i(), T("div",
|
|
1940
|
-
|
|
1942
|
+
h && h.needTooltip && h.needCopy ? (i(), T("div", El, [
|
|
1943
|
+
w(F, { placement: e.tooltipPlacement }, {
|
|
1941
1944
|
title: r(() => [
|
|
1942
|
-
|
|
1945
|
+
B(k(I[h.dataIndex]), 1)
|
|
1943
1946
|
]),
|
|
1944
1947
|
default: r(() => [
|
|
1945
|
-
|
|
1948
|
+
B(" " + k(x(I[h.dataIndex], h.strLen)), 1)
|
|
1946
1949
|
]),
|
|
1947
1950
|
_: 2
|
|
1948
1951
|
}, 1032, ["placement"]),
|
|
1949
|
-
|
|
1950
|
-
"cp-text":
|
|
1952
|
+
w(C, {
|
|
1953
|
+
"cp-text": I[h.dataIndex],
|
|
1951
1954
|
style: { position: "relative" }
|
|
1952
1955
|
}, null, 8, ["cp-text"])
|
|
1953
1956
|
])) : h && h.needFormat ? (i(), T(q, { key: 3 }, [
|
|
1954
|
-
|
|
1957
|
+
B(k(M(I[h.dataIndex], h.format)), 1)
|
|
1955
1958
|
], 64)) : h && h.tags ? (i(), T(q, { key: 4 }, [
|
|
1956
|
-
|
|
1959
|
+
U(I[h.dataIndex], h.tags) ? (i(), E(g, {
|
|
1957
1960
|
key: 0,
|
|
1958
|
-
color:
|
|
1961
|
+
color: U(I[h.dataIndex], h.tags)
|
|
1959
1962
|
}, {
|
|
1960
1963
|
default: r(() => [
|
|
1961
|
-
|
|
1964
|
+
B(k(I[h.dataIndex]), 1)
|
|
1962
1965
|
]),
|
|
1963
1966
|
_: 2
|
|
1964
1967
|
}, 1032, ["color"])) : z("", !0)
|
|
@@ -1966,59 +1969,59 @@ const Bo = {
|
|
|
1966
1969
|
]),
|
|
1967
1970
|
key: "1"
|
|
1968
1971
|
} : void 0,
|
|
1969
|
-
|
|
1972
|
+
_.$slots.expandedRowRender ? {
|
|
1970
1973
|
name: "expandedRowRender",
|
|
1971
|
-
fn: r(({ record: h, index:
|
|
1972
|
-
|
|
1974
|
+
fn: r(({ record: h, index: I }) => [
|
|
1975
|
+
W(_.$slots, "expandedRowRender", {
|
|
1973
1976
|
record: h,
|
|
1974
|
-
index:
|
|
1977
|
+
index: I
|
|
1975
1978
|
}, void 0, !0)
|
|
1976
1979
|
]),
|
|
1977
1980
|
key: "2"
|
|
1978
1981
|
} : void 0,
|
|
1979
|
-
|
|
1982
|
+
_.$slots.customFilterDropdown ? {
|
|
1980
1983
|
name: "customFilterDropdown",
|
|
1981
1984
|
fn: r(({ column: h }) => [
|
|
1982
|
-
|
|
1985
|
+
W(_.$slots, "customFilterDropdown", { column: h }, void 0, !0)
|
|
1983
1986
|
]),
|
|
1984
1987
|
key: "3"
|
|
1985
1988
|
} : void 0,
|
|
1986
|
-
|
|
1989
|
+
_.$slots.customFilterIcon ? {
|
|
1987
1990
|
name: "customFilterIcon",
|
|
1988
1991
|
fn: r(({ column: h }) => [
|
|
1989
|
-
|
|
1992
|
+
W(_.$slots, "customFilterIcon", { column: h }, void 0, !0)
|
|
1990
1993
|
]),
|
|
1991
1994
|
key: "4"
|
|
1992
1995
|
} : void 0,
|
|
1993
|
-
|
|
1996
|
+
_.$slots.expandIcon ? {
|
|
1994
1997
|
name: "expandIcon",
|
|
1995
|
-
fn: r(({ expanded: h, record:
|
|
1996
|
-
|
|
1998
|
+
fn: r(({ expanded: h, record: I, index: V }) => [
|
|
1999
|
+
W(_.$slots, "expandIcon", {
|
|
1997
2000
|
expanded: h,
|
|
1998
|
-
record:
|
|
1999
|
-
index:
|
|
2001
|
+
record: I,
|
|
2002
|
+
index: V
|
|
2000
2003
|
}, void 0, !0)
|
|
2001
2004
|
]),
|
|
2002
2005
|
key: "5"
|
|
2003
2006
|
} : void 0,
|
|
2004
|
-
|
|
2007
|
+
_.$slots.footer ? {
|
|
2005
2008
|
name: "footer",
|
|
2006
2009
|
fn: r(() => [
|
|
2007
|
-
|
|
2010
|
+
W(_.$slots, "footer", {}, void 0, !0)
|
|
2008
2011
|
]),
|
|
2009
2012
|
key: "6"
|
|
2010
2013
|
} : void 0,
|
|
2011
|
-
|
|
2014
|
+
_.$slots.summary ? {
|
|
2012
2015
|
name: "summary",
|
|
2013
2016
|
fn: r(() => [
|
|
2014
|
-
|
|
2017
|
+
W(_.$slots, "summary", {}, void 0, !0)
|
|
2015
2018
|
]),
|
|
2016
2019
|
key: "7"
|
|
2017
2020
|
} : void 0,
|
|
2018
|
-
|
|
2021
|
+
_.$slots.title ? {
|
|
2019
2022
|
name: "title",
|
|
2020
2023
|
fn: r(() => [
|
|
2021
|
-
|
|
2024
|
+
W(_.$slots, "title", {}, void 0, !0)
|
|
2022
2025
|
]),
|
|
2023
2026
|
key: "8"
|
|
2024
2027
|
} : void 0
|
|
@@ -2026,16 +2029,16 @@ const Bo = {
|
|
|
2026
2029
|
], 6);
|
|
2027
2030
|
};
|
|
2028
2031
|
}
|
|
2029
|
-
}),
|
|
2032
|
+
}), Nl = /* @__PURE__ */ Z(Pl, [["__scopeId", "data-v-4a8b9aaa"]]), Rl = le(Nl), Ul = { class: "hb-lib-table-setting-box" }, Vl = {
|
|
2030
2033
|
key: 0,
|
|
2031
2034
|
class: "hb-lib-table-drag-item"
|
|
2032
|
-
},
|
|
2035
|
+
}, jl = {
|
|
2033
2036
|
key: 0,
|
|
2034
2037
|
class: "hb-lib-table-drag-item-act"
|
|
2035
|
-
},
|
|
2038
|
+
}, Wl = ["onClick"], Yl = ["onClick"], ql = { class: "hb-lib-table-set-btn-group" }, Kl = {
|
|
2036
2039
|
class: "select-all-container",
|
|
2037
2040
|
style: { "margin-right": "10px" }
|
|
2038
|
-
},
|
|
2041
|
+
}, Gl = /* @__PURE__ */ J({
|
|
2039
2042
|
name: "HbLibTableColumnSet",
|
|
2040
2043
|
__name: "HbTableColumnSet",
|
|
2041
2044
|
props: {
|
|
@@ -2068,129 +2071,129 @@ const Bo = {
|
|
|
2068
2071
|
},
|
|
2069
2072
|
emits: ["on-get-columns"],
|
|
2070
2073
|
setup(e, { emit: t }) {
|
|
2071
|
-
const
|
|
2074
|
+
const o = t, { t: n } = fe(), c = e, f = O([]), u = P(() => l.value.filter((g) => g.checked));
|
|
2072
2075
|
O([]);
|
|
2073
|
-
const b = O(!1),
|
|
2074
|
-
a.value =
|
|
2075
|
-
},
|
|
2076
|
-
const s =
|
|
2077
|
-
if (f.value.some((
|
|
2078
|
-
const
|
|
2079
|
-
if ((
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2076
|
+
const b = O(!1), l = O([]), a = O(null), m = P(() => u.value.length > 0 && u.value.length === f.value.length), L = P(() => u.value.length > 0 && u.value.length < f.value.length), p = (g) => {
|
|
2077
|
+
a.value = g.oldIndex;
|
|
2078
|
+
}, D = (g) => {
|
|
2079
|
+
const s = g.newIndex;
|
|
2080
|
+
if (f.value.some((I) => I.fixed === "left" || I.fixed === "right" || I.fixed === !0)) {
|
|
2081
|
+
const I = f.value.filter((K) => K.fixed === "left").length, V = f.value.length - f.value.filter((K) => K.fixed === "right").length;
|
|
2082
|
+
if ((I > 0 && s < I || V < f.value.length && s >= V) && (ke.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2083
|
+
const K = l.value.splice(s, 1)[0];
|
|
2084
|
+
l.value.splice(a.value, 0, K);
|
|
2082
2085
|
}
|
|
2083
2086
|
}
|
|
2084
2087
|
a.value = null;
|
|
2085
|
-
},
|
|
2086
|
-
|
|
2088
|
+
}, M = (g) => {
|
|
2089
|
+
g.target.checked ? l.value.forEach((h) => h.checked = !0) : l.value.forEach((h) => {
|
|
2087
2090
|
h.dataIndex !== "action" && h.dataIndex !== "actions" && (h.checked = !1);
|
|
2088
2091
|
});
|
|
2089
|
-
},
|
|
2092
|
+
}, U = () => {
|
|
2090
2093
|
f.value = c.localColumns.map((s) => ({
|
|
2091
2094
|
...s,
|
|
2092
|
-
label: s.title && s.title.tag ?
|
|
2095
|
+
label: s.title && s.title.tag ? A(s.title) : s.title || s.title2,
|
|
2093
2096
|
value: s.dataIndex,
|
|
2094
2097
|
checked: s.checked || s.checked === void 0
|
|
2095
|
-
})),
|
|
2096
|
-
let
|
|
2098
|
+
})), l.value = [...f.value];
|
|
2099
|
+
let g = [];
|
|
2097
2100
|
c.tableColumns.forEach(function(s) {
|
|
2098
|
-
|
|
2101
|
+
g.push(s.dataIndex);
|
|
2099
2102
|
});
|
|
2100
|
-
},
|
|
2101
|
-
s ?
|
|
2102
|
-
},
|
|
2103
|
-
f.value = [...
|
|
2104
|
-
},
|
|
2103
|
+
}, x = (g, s) => {
|
|
2104
|
+
s ? g.checked = !0 : g.checked = !1;
|
|
2105
|
+
}, _ = () => {
|
|
2106
|
+
f.value = [...l.value], o("on-get-columns", f.value), b.value = !1;
|
|
2107
|
+
}, S = () => {
|
|
2105
2108
|
f.value = c.tableColumns.map((s) => ({
|
|
2106
2109
|
...s,
|
|
2107
|
-
label: s.title && s.title.tag ?
|
|
2110
|
+
label: s.title && s.title.tag ? A(s.title) : s.title || s.title2,
|
|
2108
2111
|
value: s.dataIndex,
|
|
2109
2112
|
checked: s.checked || s.checked === void 0
|
|
2110
|
-
})),
|
|
2111
|
-
let
|
|
2113
|
+
})), l.value = [...f.value];
|
|
2114
|
+
let g = [];
|
|
2112
2115
|
c.tableColumns.forEach(function(s) {
|
|
2113
|
-
|
|
2116
|
+
g.push(s.dataIndex);
|
|
2114
2117
|
});
|
|
2115
|
-
},
|
|
2116
|
-
delete
|
|
2117
|
-
const s =
|
|
2118
|
+
}, A = (g) => g.children[0].text, F = (g) => {
|
|
2119
|
+
delete g.fixed;
|
|
2120
|
+
const s = l.value.findIndex((h) => h.value === g.value);
|
|
2118
2121
|
if (s !== -1) {
|
|
2119
2122
|
let h = -1;
|
|
2120
|
-
for (let
|
|
2121
|
-
|
|
2123
|
+
for (let I = 0; I < l.value.length; I++)
|
|
2124
|
+
l.value[I].fixed === "left" && (h = I);
|
|
2122
2125
|
if (h !== -1 && s !== h + 1) {
|
|
2123
|
-
const
|
|
2124
|
-
|
|
2126
|
+
const I = [...l.value], [V] = I.splice(s, 1);
|
|
2127
|
+
I.splice(h + 1, 0, V), l.value = I;
|
|
2125
2128
|
}
|
|
2126
2129
|
}
|
|
2127
|
-
}, C = (
|
|
2128
|
-
const s =
|
|
2130
|
+
}, C = (g) => {
|
|
2131
|
+
const s = l.value.findIndex((h) => h.value === g.value);
|
|
2129
2132
|
if (s !== -1) {
|
|
2130
2133
|
let h = -1;
|
|
2131
|
-
for (let
|
|
2132
|
-
|
|
2133
|
-
const
|
|
2134
|
-
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2134
|
+
for (let se = 0; se < l.value.length; se++)
|
|
2135
|
+
l.value[se].fixed === "left" && (h = se);
|
|
2136
|
+
const I = [...l.value], [V] = I.splice(s, 1);
|
|
2137
|
+
V.fixed = "left";
|
|
2138
|
+
const K = h === -1 ? 0 : h + 1;
|
|
2139
|
+
I.splice(K, 0, V), l.value = I;
|
|
2137
2140
|
}
|
|
2138
2141
|
};
|
|
2139
|
-
return
|
|
2142
|
+
return ee(
|
|
2140
2143
|
() => c.tableColumns,
|
|
2141
2144
|
() => {
|
|
2142
|
-
|
|
2145
|
+
S();
|
|
2143
2146
|
},
|
|
2144
2147
|
{
|
|
2145
2148
|
immediate: !0,
|
|
2146
2149
|
deep: !0
|
|
2147
2150
|
}
|
|
2148
|
-
), (
|
|
2149
|
-
const h =
|
|
2150
|
-
return i(), T("div",
|
|
2151
|
-
|
|
2152
|
-
title:
|
|
2151
|
+
), (g, s) => {
|
|
2152
|
+
const h = N("a-tooltip"), I = N("a-button");
|
|
2153
|
+
return i(), T("div", Ul, [
|
|
2154
|
+
w(y(Rt), {
|
|
2155
|
+
title: y(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2153
2156
|
trigger: "click",
|
|
2154
2157
|
placement: "leftTop",
|
|
2155
2158
|
overlayClassName: "column_setting_popover",
|
|
2156
2159
|
visible: b.value,
|
|
2157
|
-
"onUpdate:visible": s[1] || (s[1] = (
|
|
2160
|
+
"onUpdate:visible": s[1] || (s[1] = (V) => b.value = V)
|
|
2158
2161
|
}, {
|
|
2159
2162
|
content: r(() => [
|
|
2160
|
-
|
|
2161
|
-
modelValue:
|
|
2162
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2163
|
+
w(y($e), {
|
|
2164
|
+
modelValue: l.value,
|
|
2165
|
+
"onUpdate:modelValue": s[0] || (s[0] = (V) => l.value = V),
|
|
2163
2166
|
"item-key": "value",
|
|
2164
2167
|
class: "hb-lib-table-set-drag",
|
|
2165
2168
|
"ghost-class": "ghost",
|
|
2166
2169
|
animation: "200",
|
|
2167
2170
|
handle: ".drag-handle",
|
|
2168
2171
|
onStart: p,
|
|
2169
|
-
onEnd:
|
|
2172
|
+
onEnd: D
|
|
2170
2173
|
}, {
|
|
2171
|
-
item: r(({ element:
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
checked:
|
|
2175
|
-
onChange: (
|
|
2174
|
+
item: r(({ element: V }) => [
|
|
2175
|
+
V.fixed !== "right" ? (i(), T("div", Vl, [
|
|
2176
|
+
w(y(Me), {
|
|
2177
|
+
checked: V.checked,
|
|
2178
|
+
onChange: (K) => x(V, K.target.checked)
|
|
2176
2179
|
}, {
|
|
2177
2180
|
default: r(() => [
|
|
2178
|
-
|
|
2181
|
+
B(k(V.label), 1)
|
|
2179
2182
|
]),
|
|
2180
2183
|
_: 2
|
|
2181
2184
|
}, 1032, ["checked", "onChange"]),
|
|
2182
|
-
|
|
2185
|
+
V.checked ? (i(), T("section", jl, [
|
|
2183
2186
|
d("span", {
|
|
2184
|
-
class: Y(
|
|
2187
|
+
class: Y(V.fixed ? "drag-hide" : "drag-handle")
|
|
2185
2188
|
}, "⋮⋮", 2),
|
|
2186
|
-
|
|
2189
|
+
V.fixed ? (i(), E(h, { key: 0 }, {
|
|
2187
2190
|
title: r(() => [
|
|
2188
|
-
|
|
2191
|
+
B(k(y(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2189
2192
|
]),
|
|
2190
2193
|
default: r(() => [
|
|
2191
2194
|
d("span", {
|
|
2192
2195
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2193
|
-
onClick: (
|
|
2196
|
+
onClick: (K) => F(V)
|
|
2194
2197
|
}, [...s[2] || (s[2] = [
|
|
2195
2198
|
d("svg", {
|
|
2196
2199
|
t: "1759048615600",
|
|
@@ -2208,18 +2211,18 @@ const Bo = {
|
|
|
2208
2211
|
fill: "#ff5000"
|
|
2209
2212
|
})
|
|
2210
2213
|
], -1)
|
|
2211
|
-
])], 8,
|
|
2214
|
+
])], 8, Wl)
|
|
2212
2215
|
]),
|
|
2213
2216
|
_: 2
|
|
2214
2217
|
}, 1024)) : z("", !0),
|
|
2215
|
-
|
|
2218
|
+
V.fixed ? z("", !0) : (i(), E(h, { key: 1 }, {
|
|
2216
2219
|
title: r(() => [
|
|
2217
|
-
|
|
2220
|
+
B(k(y(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2218
2221
|
]),
|
|
2219
2222
|
default: r(() => [
|
|
2220
2223
|
d("span", {
|
|
2221
2224
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2222
|
-
onClick: (
|
|
2225
|
+
onClick: (K) => C(V)
|
|
2223
2226
|
}, [...s[3] || (s[3] = [
|
|
2224
2227
|
d("svg", {
|
|
2225
2228
|
t: "1759048735643",
|
|
@@ -2237,7 +2240,7 @@ const Bo = {
|
|
|
2237
2240
|
fill: "#ff5000"
|
|
2238
2241
|
})
|
|
2239
2242
|
], -1)
|
|
2240
|
-
])], 8,
|
|
2243
|
+
])], 8, Yl)
|
|
2241
2244
|
]),
|
|
2242
2245
|
_: 2
|
|
2243
2246
|
}, 1024))
|
|
@@ -2246,43 +2249,43 @@ const Bo = {
|
|
|
2246
2249
|
]),
|
|
2247
2250
|
_: 1
|
|
2248
2251
|
}, 8, ["modelValue"]),
|
|
2249
|
-
d("div",
|
|
2250
|
-
d("div",
|
|
2251
|
-
|
|
2252
|
+
d("div", ql, [
|
|
2253
|
+
d("div", Kl, [
|
|
2254
|
+
w(y(Me), {
|
|
2252
2255
|
checked: m.value,
|
|
2253
|
-
indeterminate:
|
|
2254
|
-
onChange:
|
|
2256
|
+
indeterminate: L.value,
|
|
2257
|
+
onChange: M
|
|
2255
2258
|
}, {
|
|
2256
2259
|
default: r(() => [
|
|
2257
|
-
|
|
2260
|
+
B(k(y(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2258
2261
|
]),
|
|
2259
2262
|
_: 1
|
|
2260
2263
|
}, 8, ["checked", "indeterminate"])
|
|
2261
2264
|
]),
|
|
2262
|
-
c.localColumns.length ? (i(), E(
|
|
2265
|
+
c.localColumns.length ? (i(), E(I, {
|
|
2263
2266
|
key: 0,
|
|
2264
2267
|
style: { "margin-right": "6px" },
|
|
2265
|
-
onClick:
|
|
2268
|
+
onClick: U
|
|
2266
2269
|
}, {
|
|
2267
2270
|
default: r(() => [
|
|
2268
|
-
|
|
2271
|
+
B(k(y(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2269
2272
|
]),
|
|
2270
2273
|
_: 1
|
|
2271
2274
|
})) : z("", !0),
|
|
2272
|
-
|
|
2273
|
-
onClick:
|
|
2275
|
+
w(I, {
|
|
2276
|
+
onClick: _,
|
|
2274
2277
|
type: "primary"
|
|
2275
2278
|
}, {
|
|
2276
2279
|
default: r(() => [
|
|
2277
|
-
|
|
2280
|
+
B(k(y(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2278
2281
|
]),
|
|
2279
2282
|
_: 1
|
|
2280
2283
|
})
|
|
2281
2284
|
])
|
|
2282
2285
|
]),
|
|
2283
2286
|
default: r(() => [
|
|
2284
|
-
|
|
2285
|
-
title:
|
|
2287
|
+
w(h, {
|
|
2288
|
+
title: y(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2286
2289
|
placement: "leftTop"
|
|
2287
2290
|
}, {
|
|
2288
2291
|
default: r(() => [...s[4] || (s[4] = [
|
|
@@ -2318,19 +2321,19 @@ const Bo = {
|
|
|
2318
2321
|
]);
|
|
2319
2322
|
};
|
|
2320
2323
|
}
|
|
2321
|
-
}),
|
|
2324
|
+
}), Jl = /* @__PURE__ */ Z(Gl, [["__scopeId", "data-v-07a63550"]]), Ql = le(Jl), Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2322
2325
|
__proto__: null,
|
|
2323
|
-
HbLibFormItemFilterModal:
|
|
2324
|
-
HbLibListBtnsAct:
|
|
2325
|
-
HbLibListForm:
|
|
2326
|
-
HbLibListMultiSelect:
|
|
2327
|
-
HbLibListPageAct:
|
|
2328
|
-
HbLibListPageContainer:
|
|
2329
|
-
HbLibListTable:
|
|
2330
|
-
HbLibMutilpleSelectModal:
|
|
2331
|
-
HbLibTableAct:
|
|
2332
|
-
HbLibTableColumnSet:
|
|
2333
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2326
|
+
HbLibFormItemFilterModal: so,
|
|
2327
|
+
HbLibListBtnsAct: wo,
|
|
2328
|
+
HbLibListForm: fo,
|
|
2329
|
+
HbLibListMultiSelect: Wo,
|
|
2330
|
+
HbLibListPageAct: _o,
|
|
2331
|
+
HbLibListPageContainer: Ho,
|
|
2332
|
+
HbLibListTable: Rl,
|
|
2333
|
+
HbLibMutilpleSelectModal: Jo,
|
|
2334
|
+
HbLibTableAct: rl,
|
|
2335
|
+
HbLibTableColumnSet: Ql
|
|
2336
|
+
}, Symbol.toStringTag, { value: "Module" })), Xl = /* @__PURE__ */ J({
|
|
2334
2337
|
name: "HbLibFormTooltipSelect",
|
|
2335
2338
|
inheritAttrs: !1,
|
|
2336
2339
|
__name: "HbTooltipSelect",
|
|
@@ -2348,15 +2351,15 @@ const Bo = {
|
|
|
2348
2351
|
}),
|
|
2349
2352
|
emits: ["update:value"],
|
|
2350
2353
|
setup(e, { expose: t }) {
|
|
2351
|
-
const
|
|
2352
|
-
const
|
|
2354
|
+
const o = e, n = Ot(), c = P(() => {
|
|
2355
|
+
const M = n, U = M.dropdownClassName;
|
|
2353
2356
|
return {
|
|
2354
|
-
...
|
|
2355
|
-
dropdownClassName:
|
|
2357
|
+
...M,
|
|
2358
|
+
dropdownClassName: U ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2356
2359
|
};
|
|
2357
|
-
}), f = O(), u = kt(e, "value"), b = P(() =>
|
|
2358
|
-
maxWidth: typeof
|
|
2359
|
-
})), a = (
|
|
2360
|
+
}), f = O(), u = kt(e, "value"), b = P(() => o.options ?? []), l = P(() => ({
|
|
2361
|
+
maxWidth: typeof o.tooltipMaxWidth == "number" ? `${o.tooltipMaxWidth}px` : o.tooltipMaxWidth
|
|
2362
|
+
})), a = (M) => M.tooltip ?? M.label, m = (M) => M.key ?? M.label, L = (M) => !!(o.enableTooltip && a(M));
|
|
2360
2363
|
return t({
|
|
2361
2364
|
focus: () => {
|
|
2362
2365
|
f.value?.focus?.();
|
|
@@ -2365,37 +2368,37 @@ const Bo = {
|
|
|
2365
2368
|
f.value?.blur?.();
|
|
2366
2369
|
},
|
|
2367
2370
|
selectRef: f
|
|
2368
|
-
}), (
|
|
2371
|
+
}), (M, U) => (i(), E(y(Ye), oe({
|
|
2369
2372
|
ref_key: "selectRef",
|
|
2370
2373
|
ref: f,
|
|
2371
2374
|
class: "hb_lib_form_tooltip_select"
|
|
2372
2375
|
}, c.value, {
|
|
2373
2376
|
value: u.value,
|
|
2374
|
-
"onUpdate:value":
|
|
2377
|
+
"onUpdate:value": U[0] || (U[0] = (x) => u.value = x)
|
|
2375
2378
|
}), {
|
|
2376
2379
|
default: r(() => [
|
|
2377
|
-
|
|
2378
|
-
key: m(
|
|
2379
|
-
value:
|
|
2380
|
-
disabled:
|
|
2381
|
-
}, { ref_for: !0 },
|
|
2380
|
+
M.$slots.default ? W(M.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(q, { key: 1 }, ie(b.value, (x) => (i(), E(y(qe), oe({
|
|
2381
|
+
key: m(x),
|
|
2382
|
+
value: x.value,
|
|
2383
|
+
disabled: x.disabled
|
|
2384
|
+
}, { ref_for: !0 }, x.optionProps), {
|
|
2382
2385
|
default: r(() => [
|
|
2383
|
-
|
|
2386
|
+
L(x) ? (i(), E(y(Ie), {
|
|
2384
2387
|
key: 0,
|
|
2385
|
-
title: a(
|
|
2386
|
-
placement:
|
|
2387
|
-
overlayStyle:
|
|
2388
|
+
title: a(x),
|
|
2389
|
+
placement: o.tooltipPlacement,
|
|
2390
|
+
overlayStyle: l.value
|
|
2388
2391
|
}, {
|
|
2389
2392
|
default: r(() => [
|
|
2390
2393
|
d("span", {
|
|
2391
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2392
|
-
},
|
|
2394
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2395
|
+
}, k(x.label), 3)
|
|
2393
2396
|
]),
|
|
2394
2397
|
_: 2
|
|
2395
2398
|
}, 1032, ["title", "placement", "overlayStyle"])) : (i(), T("span", {
|
|
2396
2399
|
key: 1,
|
|
2397
|
-
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis":
|
|
2398
|
-
},
|
|
2400
|
+
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": o.enableEllipsis }])
|
|
2401
|
+
}, k(x.label), 3))
|
|
2399
2402
|
]),
|
|
2400
2403
|
_: 2
|
|
2401
2404
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2403,13 +2406,13 @@ const Bo = {
|
|
|
2403
2406
|
_: 3
|
|
2404
2407
|
}, 16, ["value"]));
|
|
2405
2408
|
}
|
|
2406
|
-
}), ea = /* @__PURE__ */
|
|
2409
|
+
}), ea = /* @__PURE__ */ Z(Xl, [["__scopeId", "data-v-b04f5675"]]), ta = le(ea), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2407
2410
|
__proto__: null,
|
|
2408
2411
|
HbLibFormTooltipSelect: ta
|
|
2409
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2412
|
+
}, Symbol.toStringTag, { value: "Module" })), la = { class: "ant-upload-drag-icon" }, aa = { class: "ant-upload-text" }, na = { style: { color: "#ff5000" } }, ia = { class: "ant-upload-hint" }, sa = {
|
|
2410
2413
|
key: 0,
|
|
2411
2414
|
class: "hb_import_btn"
|
|
2412
|
-
}, ra = ["href"], ca = /* @__PURE__ */
|
|
2415
|
+
}, ra = ["href"], ca = /* @__PURE__ */ J({
|
|
2413
2416
|
name: "HbLibImportFile",
|
|
2414
2417
|
__name: "HbImportFile",
|
|
2415
2418
|
props: {
|
|
@@ -2425,18 +2428,18 @@ const Bo = {
|
|
|
2425
2428
|
beforeSubmit: {}
|
|
2426
2429
|
},
|
|
2427
2430
|
setup(e, { expose: t }) {
|
|
2428
|
-
const { t:
|
|
2431
|
+
const { t: o } = fe(), n = O(), c = e, f = O(!1), u = Se({
|
|
2429
2432
|
fileList: [],
|
|
2430
2433
|
visible: !1
|
|
2431
2434
|
}), b = (p) => {
|
|
2432
2435
|
if (p == null)
|
|
2433
2436
|
return;
|
|
2434
|
-
const
|
|
2435
|
-
if (
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2437
|
+
const D = u.fileList.indexOf(p);
|
|
2438
|
+
if (D !== -1) {
|
|
2439
|
+
const M = u.fileList.slice();
|
|
2440
|
+
M.splice(D, 1), u.fileList = M;
|
|
2438
2441
|
}
|
|
2439
|
-
},
|
|
2442
|
+
}, l = () => {
|
|
2440
2443
|
u.visible = !1, u.fileList = [], f.value = !1;
|
|
2441
2444
|
}, a = (p) => (u.fileList = [p], c.beforeUpload ? c.beforeUpload(p) : !1), m = () => {
|
|
2442
2445
|
n.value.validateFields().then(() => {
|
|
@@ -2445,41 +2448,41 @@ const Bo = {
|
|
|
2445
2448
|
f.value = !1;
|
|
2446
2449
|
}));
|
|
2447
2450
|
});
|
|
2448
|
-
},
|
|
2451
|
+
}, L = () => {
|
|
2449
2452
|
u.visible = !0;
|
|
2450
2453
|
};
|
|
2451
2454
|
return t({
|
|
2452
|
-
handleCancel:
|
|
2453
|
-
openModal:
|
|
2455
|
+
handleCancel: l,
|
|
2456
|
+
openModal: L,
|
|
2454
2457
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2455
2458
|
confirmLoading: f
|
|
2456
|
-
}), (p,
|
|
2457
|
-
const
|
|
2459
|
+
}), (p, D) => {
|
|
2460
|
+
const M = N("a-upload-dragger"), U = N("a-form-item"), x = N("a-form"), _ = N("a-modal"), S = N("a-button");
|
|
2458
2461
|
return i(), T(q, null, [
|
|
2459
|
-
|
|
2462
|
+
w(_, oe({
|
|
2460
2463
|
title: c.title,
|
|
2461
2464
|
visible: u.visible,
|
|
2462
|
-
"onUpdate:visible":
|
|
2465
|
+
"onUpdate:visible": D[0] || (D[0] = (A) => u.visible = A),
|
|
2463
2466
|
"confirm-loading": f.value
|
|
2464
2467
|
}, p.$attrs, {
|
|
2465
|
-
onCancel:
|
|
2468
|
+
onCancel: l,
|
|
2466
2469
|
onOk: m,
|
|
2467
2470
|
width: c.modalWidth
|
|
2468
2471
|
}), {
|
|
2469
2472
|
default: r(() => [
|
|
2470
|
-
|
|
2473
|
+
w(x, {
|
|
2471
2474
|
ref_key: "modalFormRef",
|
|
2472
2475
|
ref: n,
|
|
2473
2476
|
model: u
|
|
2474
2477
|
}, {
|
|
2475
2478
|
default: r(() => [
|
|
2476
|
-
|
|
2479
|
+
w(U, {
|
|
2477
2480
|
name: "fileList",
|
|
2478
|
-
label:
|
|
2479
|
-
rules: [{ required: c.isRequired, message:
|
|
2481
|
+
label: y(o)("hbLibComp.HbImportFile.fileLabel"),
|
|
2482
|
+
rules: [{ required: c.isRequired, message: y(o)("hbLibComp.HbImportFile.clickUp") }]
|
|
2480
2483
|
}, {
|
|
2481
2484
|
default: r(() => [
|
|
2482
|
-
|
|
2485
|
+
w(M, {
|
|
2483
2486
|
maxCount: c.maxCount,
|
|
2484
2487
|
multiple: c.multiple,
|
|
2485
2488
|
accept: c.acceptFile,
|
|
@@ -2489,14 +2492,14 @@ const Bo = {
|
|
|
2489
2492
|
beforeUpload: a
|
|
2490
2493
|
}, {
|
|
2491
2494
|
default: r(() => [
|
|
2492
|
-
d("p",
|
|
2493
|
-
|
|
2495
|
+
d("p", la, [
|
|
2496
|
+
w(y(Gt), { style: { "font-size": "37px" } })
|
|
2494
2497
|
]),
|
|
2495
2498
|
d("p", aa, [
|
|
2496
|
-
|
|
2497
|
-
d("span", na,
|
|
2499
|
+
B(k(y(o)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2500
|
+
d("span", na, k(y(o)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2498
2501
|
]),
|
|
2499
|
-
d("p", ia,
|
|
2502
|
+
d("p", ia, k(y(o)("hbLibComp.HbFileUploadModal.format")) + ": " + k(c.acceptFile), 1)
|
|
2500
2503
|
]),
|
|
2501
2504
|
_: 1
|
|
2502
2505
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2510,18 +2513,18 @@ const Bo = {
|
|
|
2510
2513
|
d("a", {
|
|
2511
2514
|
download: "Import_number-template.xlsx",
|
|
2512
2515
|
href: c.templateUrl
|
|
2513
|
-
},
|
|
2516
|
+
}, k(y(o)("hbLibComp.HbImportFile.downloadTemplate")), 9, ra)
|
|
2514
2517
|
])) : z("", !0)
|
|
2515
2518
|
]),
|
|
2516
2519
|
_: 1
|
|
2517
2520
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2518
|
-
|
|
2519
|
-
S
|
|
2520
|
-
onClick:
|
|
2521
|
+
W(p.$slots, "btn", {}, () => [
|
|
2522
|
+
w(S, {
|
|
2523
|
+
onClick: L,
|
|
2521
2524
|
type: "primary"
|
|
2522
2525
|
}, {
|
|
2523
2526
|
default: r(() => [
|
|
2524
|
-
|
|
2527
|
+
B(k(e.btnText), 1)
|
|
2525
2528
|
]),
|
|
2526
2529
|
_: 1
|
|
2527
2530
|
})
|
|
@@ -2529,7 +2532,7 @@ const Bo = {
|
|
|
2529
2532
|
], 64);
|
|
2530
2533
|
};
|
|
2531
2534
|
}
|
|
2532
|
-
}), da = /* @__PURE__ */
|
|
2535
|
+
}), da = /* @__PURE__ */ Z(ca, [["__scopeId", "data-v-d61501db"]]), ua = le(da), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2533
2536
|
__proto__: null,
|
|
2534
2537
|
HbLibImportFile: ua
|
|
2535
2538
|
}, Symbol.toStringTag, { value: "Module" })), ba = {
|
|
@@ -2577,42 +2580,42 @@ const Bo = {
|
|
|
2577
2580
|
type: String,
|
|
2578
2581
|
default: "ab"
|
|
2579
2582
|
}
|
|
2580
|
-
}, pa = /* @__PURE__ */
|
|
2583
|
+
}, pa = /* @__PURE__ */ J({
|
|
2581
2584
|
name: "HbLibCopy",
|
|
2582
2585
|
__name: "copy",
|
|
2583
2586
|
props: ba,
|
|
2584
2587
|
setup(e) {
|
|
2585
|
-
const t = e,
|
|
2588
|
+
const t = e, o = O();
|
|
2586
2589
|
Tt(() => {
|
|
2587
|
-
|
|
2590
|
+
o.value = t.data;
|
|
2588
2591
|
});
|
|
2589
2592
|
const n = P(() => t.tooltipTitle || "复制"), c = P(() => t.copySuccessTip || "复制成功"), f = P(() => t.copyFailTip || "复制失败"), u = P(() => {
|
|
2590
2593
|
if (t.cpText) return t.cpText;
|
|
2591
|
-
let
|
|
2594
|
+
let l = "";
|
|
2592
2595
|
if (t.data)
|
|
2593
2596
|
if (Array.isArray(t.data)) {
|
|
2594
2597
|
if (t.K && t.V && t.L) {
|
|
2595
2598
|
const a = t.data.find((m) => m?.[t.K] === t.V);
|
|
2596
|
-
|
|
2599
|
+
l = a ? a[t.L] : "";
|
|
2597
2600
|
}
|
|
2598
2601
|
} else
|
|
2599
|
-
t.K && (
|
|
2600
|
-
return
|
|
2602
|
+
t.K && (l = t.data[t.K]);
|
|
2603
|
+
return l;
|
|
2601
2604
|
}), b = () => {
|
|
2602
2605
|
navigator.clipboard.writeText(u.value).then(() => {
|
|
2603
|
-
|
|
2606
|
+
ke.success(c.value);
|
|
2604
2607
|
}).catch(() => {
|
|
2605
|
-
|
|
2608
|
+
ke.error(f.value);
|
|
2606
2609
|
});
|
|
2607
2610
|
};
|
|
2608
|
-
return (
|
|
2611
|
+
return (l, a) => u.value ? (i(), E(y(Ie), {
|
|
2609
2612
|
key: 0,
|
|
2610
2613
|
title: n.value
|
|
2611
2614
|
}, {
|
|
2612
2615
|
default: r(() => [
|
|
2613
2616
|
d("span", {
|
|
2614
2617
|
class: "hb-lib-copy-text-eyevue",
|
|
2615
|
-
style: re({ ...
|
|
2618
|
+
style: re({ ...l.cpStyle }),
|
|
2616
2619
|
onClick: He(b, ["stop", "prevent"])
|
|
2617
2620
|
}, [...a[0] || (a[0] = [
|
|
2618
2621
|
d("svg", {
|
|
@@ -2646,7 +2649,7 @@ const Bo = {
|
|
|
2646
2649
|
_: 1
|
|
2647
2650
|
}, 8, ["title"])) : z("", !0);
|
|
2648
2651
|
}
|
|
2649
|
-
}), ha = /* @__PURE__ */
|
|
2652
|
+
}), ha = /* @__PURE__ */ Z(pa, [["__scopeId", "data-v-2b6710a1"]]), Mt = le(ha), ma = {
|
|
2650
2653
|
dragList: {
|
|
2651
2654
|
type: Array,
|
|
2652
2655
|
required: !0
|
|
@@ -2685,15 +2688,15 @@ const Bo = {
|
|
|
2685
2688
|
type: String,
|
|
2686
2689
|
default: ""
|
|
2687
2690
|
}
|
|
2688
|
-
}, va = /* @__PURE__ */
|
|
2691
|
+
}, va = /* @__PURE__ */ J({
|
|
2689
2692
|
name: "HbDrag",
|
|
2690
2693
|
__name: "index",
|
|
2691
2694
|
props: ma,
|
|
2692
2695
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2693
2696
|
setup(e, { emit: t }) {
|
|
2694
|
-
const
|
|
2695
|
-
|
|
2696
|
-
() =>
|
|
2697
|
+
const o = e, n = zt([]);
|
|
2698
|
+
ee(
|
|
2699
|
+
() => o.dragList,
|
|
2697
2700
|
(m) => {
|
|
2698
2701
|
n.value = m;
|
|
2699
2702
|
},
|
|
@@ -2706,54 +2709,54 @@ const Bo = {
|
|
|
2706
2709
|
console.log("drag start", m), f("handleDragStart", m);
|
|
2707
2710
|
}, b = (m) => {
|
|
2708
2711
|
console.log("drag end", m), f("handleDragEnd", m);
|
|
2709
|
-
},
|
|
2712
|
+
}, l = (m) => {
|
|
2710
2713
|
console.log("drag add", m), f("handleDragAdd", m);
|
|
2711
2714
|
}, a = (m) => {
|
|
2712
2715
|
console.log("drag remove", m), f("handleDragRemove", m);
|
|
2713
2716
|
};
|
|
2714
|
-
return (m,
|
|
2715
|
-
class: Y(
|
|
2717
|
+
return (m, L) => (i(), T("div", {
|
|
2718
|
+
class: Y(y(c).b())
|
|
2716
2719
|
}, [
|
|
2717
|
-
m.childrenType == "component" ? (i(), E(
|
|
2720
|
+
m.childrenType == "component" ? (i(), E(y($e), oe({
|
|
2718
2721
|
key: 0,
|
|
2719
2722
|
modelValue: n.value,
|
|
2720
|
-
"onUpdate:modelValue":
|
|
2723
|
+
"onUpdate:modelValue": L[0] || (L[0] = (p) => n.value = p),
|
|
2721
2724
|
"item-key": "key",
|
|
2722
2725
|
class: { [m.dragClass]: m.dragClass }
|
|
2723
2726
|
}, m.$attrs, {
|
|
2724
2727
|
"ghost-class": m.ghostClass,
|
|
2725
2728
|
onStart: u,
|
|
2726
2729
|
onEnd: b,
|
|
2727
|
-
onAdd:
|
|
2730
|
+
onAdd: l,
|
|
2728
2731
|
onRemove: a
|
|
2729
2732
|
}), {
|
|
2730
2733
|
item: r(({ element: p }) => [
|
|
2731
2734
|
(i(), E(wt(p.component)))
|
|
2732
2735
|
]),
|
|
2733
2736
|
_: 1
|
|
2734
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), E(
|
|
2737
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), E(y($e), oe({
|
|
2735
2738
|
key: 1,
|
|
2736
2739
|
modelValue: n.value,
|
|
2737
|
-
"onUpdate:modelValue":
|
|
2740
|
+
"onUpdate:modelValue": L[1] || (L[1] = (p) => n.value = p),
|
|
2738
2741
|
"item-key": "id",
|
|
2739
2742
|
class: { [m.dragClass]: m.dragClass }
|
|
2740
2743
|
}, m.$attrs, {
|
|
2741
2744
|
"ghost-class": m.ghostClass,
|
|
2742
2745
|
onStart: u,
|
|
2743
2746
|
onEnd: b,
|
|
2744
|
-
onAdd:
|
|
2747
|
+
onAdd: l,
|
|
2745
2748
|
onRemove: a
|
|
2746
2749
|
}), {
|
|
2747
2750
|
item: r(({ element: p }) => [
|
|
2748
2751
|
d("div", null, [
|
|
2749
|
-
|
|
2752
|
+
W(m.$slots, "default", { item: p }, void 0, !0)
|
|
2750
2753
|
])
|
|
2751
2754
|
]),
|
|
2752
2755
|
_: 3
|
|
2753
2756
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2754
2757
|
], 2));
|
|
2755
2758
|
}
|
|
2756
|
-
}), ga = /* @__PURE__ */
|
|
2759
|
+
}), ga = /* @__PURE__ */ Z(va, [["__scopeId", "data-v-15b227f5"]]), ya = le(ga), _a = {
|
|
2757
2760
|
triggerWay: {
|
|
2758
2761
|
type: String,
|
|
2759
2762
|
default: "click"
|
|
@@ -2769,18 +2772,18 @@ const Bo = {
|
|
|
2769
2772
|
getSort: {
|
|
2770
2773
|
type: Function
|
|
2771
2774
|
}
|
|
2772
|
-
}, La = /* @__PURE__ */
|
|
2775
|
+
}, La = /* @__PURE__ */ J({
|
|
2773
2776
|
name: "HbLibSort",
|
|
2774
2777
|
__name: "sort",
|
|
2775
2778
|
props: _a,
|
|
2776
2779
|
emits: ["change"],
|
|
2777
|
-
setup(e, { expose: t, emit:
|
|
2778
|
-
const n = e, c =
|
|
2779
|
-
|
|
2780
|
+
setup(e, { expose: t, emit: o }) {
|
|
2781
|
+
const n = e, c = o, f = O([]), u = O("");
|
|
2782
|
+
ee(
|
|
2780
2783
|
() => n.menuItems,
|
|
2781
|
-
(
|
|
2784
|
+
(l) => {
|
|
2782
2785
|
let a = [];
|
|
2783
|
-
Array.isArray(
|
|
2786
|
+
Array.isArray(l) && l.length && l.forEach((m) => {
|
|
2784
2787
|
a = [
|
|
2785
2788
|
...a,
|
|
2786
2789
|
{ label: `${m.label}升序`, value: `${m.value}`, sort: "Asc" },
|
|
@@ -2793,30 +2796,30 @@ const Bo = {
|
|
|
2793
2796
|
immediate: !0
|
|
2794
2797
|
}
|
|
2795
2798
|
);
|
|
2796
|
-
const b = (
|
|
2797
|
-
u.value =
|
|
2798
|
-
orderFeild:
|
|
2799
|
-
orderBy:
|
|
2799
|
+
const b = (l) => {
|
|
2800
|
+
u.value = l.value + l.sort, n.getSort && n.getSort({
|
|
2801
|
+
orderFeild: l.value,
|
|
2802
|
+
orderBy: l.sort
|
|
2800
2803
|
}), c("change", u);
|
|
2801
2804
|
};
|
|
2802
2805
|
return t({
|
|
2803
2806
|
currentActiveItem: u
|
|
2804
|
-
}), (
|
|
2805
|
-
const m =
|
|
2807
|
+
}), (l, a) => {
|
|
2808
|
+
const m = N("a-menu-item"), L = N("a-menu"), p = N("a-dropdown");
|
|
2806
2809
|
return i(), E(p, {
|
|
2807
2810
|
trigger: [n.triggerWay]
|
|
2808
2811
|
}, {
|
|
2809
2812
|
overlay: r(() => [
|
|
2810
|
-
|
|
2813
|
+
w(L, null, {
|
|
2811
2814
|
default: r(() => [
|
|
2812
|
-
(i(!0), T(q, null,
|
|
2813
|
-
key:
|
|
2814
|
-
onClick: (
|
|
2815
|
+
(i(!0), T(q, null, ie(f.value, (D) => (i(), E(m, {
|
|
2816
|
+
key: D.value + D.sort,
|
|
2817
|
+
onClick: (M) => b(D)
|
|
2815
2818
|
}, {
|
|
2816
2819
|
default: r(() => [
|
|
2817
2820
|
d("span", {
|
|
2818
|
-
class: Y(u.value ==
|
|
2819
|
-
},
|
|
2821
|
+
class: Y(u.value == D.value + D.sort ? "activted" : "")
|
|
2822
|
+
}, k(D.label), 3)
|
|
2820
2823
|
]),
|
|
2821
2824
|
_: 2
|
|
2822
2825
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -2830,15 +2833,15 @@ const Bo = {
|
|
|
2830
2833
|
onClick: a[0] || (a[0] = He(() => {
|
|
2831
2834
|
}, ["prevent"]))
|
|
2832
2835
|
}, [
|
|
2833
|
-
|
|
2834
|
-
|
|
2836
|
+
B(k(n.colText) + " ", 1),
|
|
2837
|
+
w(y(Ke))
|
|
2835
2838
|
])
|
|
2836
2839
|
]),
|
|
2837
2840
|
_: 1
|
|
2838
2841
|
}, 8, ["trigger"]);
|
|
2839
2842
|
};
|
|
2840
2843
|
}
|
|
2841
|
-
}), Ca = /* @__PURE__ */
|
|
2844
|
+
}), Ca = /* @__PURE__ */ Z(La, [["__scopeId", "data-v-cf0b0a0d"]]), ka = le(Ca), Sa = {
|
|
2842
2845
|
// 图片上传组件的配置
|
|
2843
2846
|
importFile: {
|
|
2844
2847
|
isRequired: !1,
|
|
@@ -2876,7 +2879,7 @@ const Bo = {
|
|
|
2876
2879
|
// 表单距离底部的距离
|
|
2877
2880
|
formItemMb: 10
|
|
2878
2881
|
}
|
|
2879
|
-
}, Ta = { class: "hb_ui_config" }, wa = /* @__PURE__ */
|
|
2882
|
+
}, Ta = { class: "hb_ui_config" }, wa = /* @__PURE__ */ J({
|
|
2880
2883
|
name: "HbUiConfig",
|
|
2881
2884
|
__name: "hbUiConfig",
|
|
2882
2885
|
props: {
|
|
@@ -2884,24 +2887,24 @@ const Bo = {
|
|
|
2884
2887
|
},
|
|
2885
2888
|
setup(e) {
|
|
2886
2889
|
const t = e;
|
|
2887
|
-
let
|
|
2888
|
-
return
|
|
2890
|
+
let o = null;
|
|
2891
|
+
return ee(
|
|
2889
2892
|
() => t.config,
|
|
2890
2893
|
(n) => {
|
|
2891
|
-
|
|
2894
|
+
o = Se(Vt({}, Sa, n));
|
|
2892
2895
|
},
|
|
2893
2896
|
{ deep: !0, immediate: !0 }
|
|
2894
|
-
), Ct(Xe,
|
|
2895
|
-
|
|
2897
|
+
), Ct(Xe, o), (n, c) => (i(), T("div", Ta, [
|
|
2898
|
+
W(n.$slots, "default")
|
|
2896
2899
|
]));
|
|
2897
2900
|
}
|
|
2898
|
-
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), xa =
|
|
2901
|
+
}), Xe = Symbol("GLOBAL_CONFIG_KEY"), xa = le(wa), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2899
2902
|
__proto__: null,
|
|
2900
2903
|
HbLibCopy: Mt,
|
|
2901
2904
|
HbLibFuncCompDrag: ya,
|
|
2902
2905
|
HbLibSort: ka,
|
|
2903
2906
|
HbUiConfig: xa
|
|
2904
|
-
}, Symbol.toStringTag, { value: "Module" })), Ha = { class: "log_remark" }, $a = /* @__PURE__ */
|
|
2907
|
+
}, Symbol.toStringTag, { value: "Module" })), Ha = { class: "log_remark" }, $a = /* @__PURE__ */ J({
|
|
2905
2908
|
name: "HbLibLogModal",
|
|
2906
2909
|
__name: "HbLogModal",
|
|
2907
2910
|
props: {
|
|
@@ -2920,7 +2923,7 @@ const Bo = {
|
|
|
2920
2923
|
getLogData: {}
|
|
2921
2924
|
},
|
|
2922
2925
|
emits: ["update:visible"],
|
|
2923
|
-
setup(e, { expose: t, emit:
|
|
2926
|
+
setup(e, { expose: t, emit: o }) {
|
|
2924
2927
|
const { t: n } = fe(), c = e, f = [
|
|
2925
2928
|
{
|
|
2926
2929
|
title: n("hbLibComp.HbLogModal.operator"),
|
|
@@ -2933,7 +2936,7 @@ const Bo = {
|
|
|
2933
2936
|
width: "25%"
|
|
2934
2937
|
},
|
|
2935
2938
|
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2936
|
-
], u = P(() => c.columns || f), b = P(() => c.title || n("hbLibComp.HbLogModal.operateLogs")),
|
|
2939
|
+
], u = P(() => c.columns || f), b = P(() => c.title || n("hbLibComp.HbLogModal.operateLogs")), l = O(!1), a = Se({
|
|
2937
2940
|
list: [],
|
|
2938
2941
|
pagination: {
|
|
2939
2942
|
current: 1,
|
|
@@ -2941,16 +2944,16 @@ const Bo = {
|
|
|
2941
2944
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2942
2945
|
showQuickJumper: !0,
|
|
2943
2946
|
showSizeChanger: !0,
|
|
2944
|
-
showTotal: (
|
|
2947
|
+
showTotal: (x, _) => _[0] + "-" + _[1] + " 总共" + x + "页",
|
|
2945
2948
|
total: 0
|
|
2946
2949
|
}
|
|
2947
2950
|
});
|
|
2948
|
-
|
|
2951
|
+
ee(
|
|
2949
2952
|
() => c.pagination,
|
|
2950
|
-
(
|
|
2951
|
-
|
|
2953
|
+
(x) => {
|
|
2954
|
+
x && (a.pagination = {
|
|
2952
2955
|
...a.pagination,
|
|
2953
|
-
...
|
|
2956
|
+
...x
|
|
2954
2957
|
});
|
|
2955
2958
|
},
|
|
2956
2959
|
{
|
|
@@ -2959,35 +2962,35 @@ const Bo = {
|
|
|
2959
2962
|
}
|
|
2960
2963
|
);
|
|
2961
2964
|
const m = () => {
|
|
2962
|
-
const
|
|
2965
|
+
const x = {
|
|
2963
2966
|
pageIndex: a.pagination.current,
|
|
2964
2967
|
pageSize: a.pagination.pageSize,
|
|
2965
2968
|
query: c.params
|
|
2966
2969
|
};
|
|
2967
|
-
c.getLogData && (
|
|
2968
|
-
Number(
|
|
2970
|
+
c.getLogData && (l.value = !0, c.getLogData(x).then((_) => {
|
|
2971
|
+
Number(_.code) == 200 ? (a.pagination.total = Number(_.data.total), a.list = _.data[c.dataStr] || []) : ke.error(_.message);
|
|
2969
2972
|
}).finally(() => {
|
|
2970
|
-
|
|
2973
|
+
l.value = !1;
|
|
2971
2974
|
}));
|
|
2972
|
-
},
|
|
2973
|
-
a.pagination.current =
|
|
2975
|
+
}, L = (x) => {
|
|
2976
|
+
a.pagination.current = x.current, a.pagination.pageSize = x.pageSize, m();
|
|
2974
2977
|
}, p = () => {
|
|
2975
|
-
a.list = [],
|
|
2976
|
-
},
|
|
2977
|
-
|
|
2978
|
-
},
|
|
2979
|
-
return
|
|
2978
|
+
a.list = [], U("update:visible", !1);
|
|
2979
|
+
}, D = () => {
|
|
2980
|
+
U("update:visible", !0);
|
|
2981
|
+
}, M = (x, _ = "YYYY-MM-DD HH:mm:ss") => x ? Oe(x).format(_) : "", U = o;
|
|
2982
|
+
return ee(
|
|
2980
2983
|
() => c.visible,
|
|
2981
|
-
(
|
|
2982
|
-
|
|
2984
|
+
(x) => {
|
|
2985
|
+
x && m();
|
|
2983
2986
|
}
|
|
2984
2987
|
), t({
|
|
2985
2988
|
close: p,
|
|
2986
|
-
loading:
|
|
2987
|
-
}), (
|
|
2988
|
-
const
|
|
2989
|
+
loading: l
|
|
2990
|
+
}), (x, _) => {
|
|
2991
|
+
const S = N("a-tooltip"), A = N("HbLibCopy"), F = N("a-table"), C = N("a-button"), g = N("a-modal");
|
|
2989
2992
|
return i(), T(q, null, [
|
|
2990
|
-
|
|
2993
|
+
w(g, {
|
|
2991
2994
|
visible: e.visible,
|
|
2992
2995
|
title: b.value,
|
|
2993
2996
|
width: e.width,
|
|
@@ -2995,54 +2998,54 @@ const Bo = {
|
|
|
2995
2998
|
onCancel: p
|
|
2996
2999
|
}, {
|
|
2997
3000
|
footer: r(() => [
|
|
2998
|
-
|
|
3001
|
+
w(C, { onClick: p }, {
|
|
2999
3002
|
default: r(() => [
|
|
3000
|
-
|
|
3003
|
+
B(k(y(n)("hbLibComp.HbLogModal.close")), 1)
|
|
3001
3004
|
]),
|
|
3002
3005
|
_: 1
|
|
3003
3006
|
})
|
|
3004
3007
|
]),
|
|
3005
3008
|
default: r(() => [
|
|
3006
|
-
|
|
3009
|
+
w(F, {
|
|
3007
3010
|
bordered: "",
|
|
3008
3011
|
rowKey: "id",
|
|
3009
3012
|
columns: u.value,
|
|
3010
3013
|
dataSource: a.list,
|
|
3011
3014
|
pagination: a.pagination,
|
|
3012
|
-
loading:
|
|
3015
|
+
loading: l.value,
|
|
3013
3016
|
scroll: { y: e.scrollY },
|
|
3014
|
-
onChange:
|
|
3017
|
+
onChange: L
|
|
3015
3018
|
}, Be({
|
|
3016
3019
|
bodyCell: r(({ column: s, record: h }) => [
|
|
3017
3020
|
s && s.needTooltip ? (i(), T(q, { key: 0 }, [
|
|
3018
|
-
s.needTooltip ? (i(), E(
|
|
3021
|
+
s.needTooltip ? (i(), E(S, { key: 0 }, {
|
|
3019
3022
|
title: r(() => [
|
|
3020
|
-
|
|
3023
|
+
B(k(h[s.dataIndex]), 1)
|
|
3021
3024
|
]),
|
|
3022
3025
|
default: r(() => [
|
|
3023
|
-
|
|
3026
|
+
B(" " + k(h[s.dataIndex]), 1)
|
|
3024
3027
|
]),
|
|
3025
3028
|
_: 2
|
|
3026
3029
|
}, 1024)) : z("", !0)
|
|
3027
3030
|
], 64)) : z("", !0),
|
|
3028
3031
|
s && s.needCopy ? (i(), T(q, { key: 1 }, [
|
|
3029
|
-
d("div", Ha,
|
|
3030
|
-
|
|
3032
|
+
d("div", Ha, k(h[s.dataIndex]), 1),
|
|
3033
|
+
w(A, {
|
|
3031
3034
|
"cp-text": h[s.dataIndex],
|
|
3032
3035
|
style: { position: "relative" }
|
|
3033
3036
|
}, null, 8, ["cp-text"])
|
|
3034
3037
|
], 64)) : z("", !0),
|
|
3035
3038
|
s && s.needFormat ? (i(), T(q, { key: 2 }, [
|
|
3036
|
-
|
|
3039
|
+
B(k(M(h[s.dataIndex], s.operateTime)), 1)
|
|
3037
3040
|
], 64)) : z("", !0)
|
|
3038
3041
|
]),
|
|
3039
3042
|
_: 2
|
|
3040
3043
|
}, [
|
|
3041
|
-
|
|
3044
|
+
x.$slots.headerCell ? {
|
|
3042
3045
|
name: "headerCell",
|
|
3043
3046
|
fn: r(({ column: s }) => [
|
|
3044
|
-
|
|
3045
|
-
|
|
3047
|
+
W(x.$slots, "headerCell", { column: s }, () => [
|
|
3048
|
+
B(k(s.title), 1)
|
|
3046
3049
|
], !0)
|
|
3047
3050
|
]),
|
|
3048
3051
|
key: "0"
|
|
@@ -3051,10 +3054,10 @@ const Bo = {
|
|
|
3051
3054
|
]),
|
|
3052
3055
|
_: 3
|
|
3053
3056
|
}, 8, ["visible", "title", "width", "height"]),
|
|
3054
|
-
e.needBtn ?
|
|
3055
|
-
|
|
3057
|
+
e.needBtn ? W(x.$slots, "default", { key: 0 }, () => [
|
|
3058
|
+
w(C, { onClick: D }, {
|
|
3056
3059
|
default: r(() => [
|
|
3057
|
-
|
|
3060
|
+
B(k(e.logBtnText), 1)
|
|
3058
3061
|
]),
|
|
3059
3062
|
_: 1
|
|
3060
3063
|
})
|
|
@@ -3062,15 +3065,15 @@ const Bo = {
|
|
|
3062
3065
|
], 64);
|
|
3063
3066
|
};
|
|
3064
3067
|
}
|
|
3065
|
-
}), Ia = /* @__PURE__ */
|
|
3068
|
+
}), Ia = /* @__PURE__ */ Z($a, [["__scopeId", "data-v-1eb2950e"]]), Ma = le(Ia), Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3066
3069
|
__proto__: null,
|
|
3067
3070
|
HbLibLogModal: Ma
|
|
3068
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3071
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = (e) => (e.install = (t) => {
|
|
3069
3072
|
t.component(e.name || "AnonymousComponent", e);
|
|
3070
3073
|
}, e), Aa = { class: "hb_card_wrapper" }, Ba = { class: "hb_card" }, Oa = {
|
|
3071
3074
|
key: 0,
|
|
3072
3075
|
class: "hb_card_header"
|
|
3073
|
-
}, za = { class: "hb_fix" }, Ea = { class: "hb_card_header-title" }, Pa = { class: "hb_card_header-action" }, Na = { class: "hb_card_body" }, Ra = /* @__PURE__ */
|
|
3076
|
+
}, za = { class: "hb_fix" }, Ea = { class: "hb_card_header-title" }, Pa = { class: "hb_card_header-action" }, Na = { class: "hb_card_body" }, Ra = /* @__PURE__ */ J({
|
|
3074
3077
|
name: "HbLibCard",
|
|
3075
3078
|
__name: "HbLibCard",
|
|
3076
3079
|
props: {
|
|
@@ -3100,8 +3103,8 @@ const Bo = {
|
|
|
3100
3103
|
}
|
|
3101
3104
|
},
|
|
3102
3105
|
setup(e) {
|
|
3103
|
-
const t = pe(Xe),
|
|
3104
|
-
let c =
|
|
3106
|
+
const t = pe(Xe), o = e, n = P(() => {
|
|
3107
|
+
let c = o.formItemMb || t?.HbLibCard?.formItemMb;
|
|
3105
3108
|
return console.log("GLOBAL_CONFIG?.HbLibCard?.formItemMb", t?.HbLibCard?.formItemMb), console.log("mb", c), c ? { "--hb-card-form-item-mb": c + "px" } : {};
|
|
3106
3109
|
});
|
|
3107
3110
|
return (c, f) => (i(), T("div", Aa, [
|
|
@@ -3112,12 +3115,12 @@ const Bo = {
|
|
|
3112
3115
|
e.cardTitle ? (i(), T("div", Oa, [
|
|
3113
3116
|
d("div", za, [
|
|
3114
3117
|
d("span", Ea, [
|
|
3115
|
-
|
|
3116
|
-
|
|
3118
|
+
W(c.$slots, "cardTitle", {}, () => [
|
|
3119
|
+
B(k(e.cardTitle), 1)
|
|
3117
3120
|
], !0)
|
|
3118
3121
|
]),
|
|
3119
3122
|
d("div", Pa, [
|
|
3120
|
-
|
|
3123
|
+
W(c.$slots, "cardAct", {}, void 0, !0)
|
|
3121
3124
|
])
|
|
3122
3125
|
])
|
|
3123
3126
|
])) : z("", !0),
|
|
@@ -3132,17 +3135,17 @@ const Bo = {
|
|
|
3132
3135
|
}),
|
|
3133
3136
|
style: re(n.value)
|
|
3134
3137
|
}, [
|
|
3135
|
-
|
|
3138
|
+
W(c.$slots, "default", {}, void 0, !0)
|
|
3136
3139
|
], 6)
|
|
3137
3140
|
])
|
|
3138
3141
|
])
|
|
3139
3142
|
], 2)
|
|
3140
3143
|
]));
|
|
3141
3144
|
}
|
|
3142
|
-
}), Ua = /* @__PURE__ */
|
|
3145
|
+
}), Ua = /* @__PURE__ */ Z(Ra, [["__scopeId", "data-v-1af6cdac"]]), Va = ye(Ua), ja = ["onClick"], Wa = { class: "step" }, Ya = {
|
|
3143
3146
|
key: 0,
|
|
3144
3147
|
class: "line"
|
|
3145
|
-
}, qa = ["title"], Ka = /* @__PURE__ */
|
|
3148
|
+
}, qa = ["title"], Ka = /* @__PURE__ */ J({
|
|
3146
3149
|
name: "HbLibAnchor",
|
|
3147
3150
|
__name: "HbLibAnchor",
|
|
3148
3151
|
props: {
|
|
@@ -3151,61 +3154,61 @@ const Bo = {
|
|
|
3151
3154
|
containerSelector: {}
|
|
3152
3155
|
},
|
|
3153
3156
|
setup(e) {
|
|
3154
|
-
const t = e,
|
|
3155
|
-
const
|
|
3156
|
-
return document.querySelector(
|
|
3157
|
-
}, u = (
|
|
3158
|
-
const a = f(), m =
|
|
3159
|
-
if (!
|
|
3160
|
-
let p =
|
|
3161
|
-
a instanceof HTMLElement && (p -= a.offsetTop), p -= n, a instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : a.scrollTo({ top: p, behavior: "smooth" }),
|
|
3157
|
+
const t = e, o = O(""), n = t.offsetTop ?? 160, c = P(() => t.anchors.filter((l) => typeof l.visible == "function" ? l.visible() : l.visible !== !1)), f = () => {
|
|
3158
|
+
const l = t.containerSelector || "#subpackage_container";
|
|
3159
|
+
return document.querySelector(l) || window;
|
|
3160
|
+
}, u = (l) => {
|
|
3161
|
+
const a = f(), m = l.target.startsWith("#") || l.target.startsWith(".") ? l.target : `#${l.target}`, L = document.querySelector(m);
|
|
3162
|
+
if (!L) return;
|
|
3163
|
+
let p = L.offsetTop;
|
|
3164
|
+
a instanceof HTMLElement && (p -= a.offsetTop), p -= n, a instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : a.scrollTo({ top: p, behavior: "smooth" }), o.value = l.target;
|
|
3162
3165
|
}, b = () => {
|
|
3163
|
-
const
|
|
3166
|
+
const l = f();
|
|
3164
3167
|
let a = 0;
|
|
3165
|
-
|
|
3168
|
+
l instanceof Window ? a = window.scrollY + n + 5 : a = l.scrollTop + n + 5;
|
|
3166
3169
|
let m = c.value[0]?.target || "";
|
|
3167
|
-
for (const
|
|
3168
|
-
const p =
|
|
3169
|
-
if (
|
|
3170
|
-
let
|
|
3171
|
-
|
|
3170
|
+
for (const L of c.value) {
|
|
3171
|
+
const p = L.target.startsWith("#") || L.target.startsWith(".") ? L.target : `#${L.target}`, D = document.querySelector(p);
|
|
3172
|
+
if (!D) continue;
|
|
3173
|
+
let M = D.offsetTop;
|
|
3174
|
+
l instanceof HTMLElement && (M -= l.offsetTop), a >= M && (m = L.target);
|
|
3172
3175
|
}
|
|
3173
|
-
|
|
3176
|
+
o.value = m;
|
|
3174
3177
|
};
|
|
3175
3178
|
return he(() => {
|
|
3176
3179
|
f().addEventListener("scroll", b), b();
|
|
3177
3180
|
}), Je(() => {
|
|
3178
3181
|
f().removeEventListener("scroll", b);
|
|
3179
|
-
}), (
|
|
3182
|
+
}), (l, a) => (i(), T("div", {
|
|
3180
3183
|
class: "anchors",
|
|
3181
|
-
style: re({ top: `${
|
|
3184
|
+
style: re({ top: `${y(n)}px` })
|
|
3182
3185
|
}, [
|
|
3183
|
-
(i(!0), T(q, null,
|
|
3186
|
+
(i(!0), T(q, null, ie(c.value, (m, L) => (i(), T("div", {
|
|
3184
3187
|
key: m.target,
|
|
3185
|
-
class: Y(["anchor-item", { isActive:
|
|
3188
|
+
class: Y(["anchor-item", { isActive: o.value === m.target }]),
|
|
3186
3189
|
onClick: (p) => u(m)
|
|
3187
3190
|
}, [
|
|
3188
3191
|
d("div", Wa, [
|
|
3189
|
-
|
|
3192
|
+
L !== c.value.length - 1 ? (i(), T("div", Ya)) : z("", !0),
|
|
3190
3193
|
a[0] || (a[0] = d("div", { class: "circle" }, null, -1))
|
|
3191
3194
|
]),
|
|
3192
3195
|
d("span", {
|
|
3193
3196
|
class: "title",
|
|
3194
3197
|
title: m.title
|
|
3195
|
-
},
|
|
3198
|
+
}, k(m.title.length > 12 ? m.title.slice(0, 12) + "..." : m.title), 9, qa)
|
|
3196
3199
|
], 10, ja))), 128))
|
|
3197
3200
|
], 4));
|
|
3198
3201
|
}
|
|
3199
|
-
}), Ga = /* @__PURE__ */
|
|
3202
|
+
}), Ga = /* @__PURE__ */ Z(Ka, [["__scopeId", "data-v-d51548d8"]]), Ja = ye(Ga), Qa = { class: "hb_detail_top_act_left" }, Za = {
|
|
3200
3203
|
key: 1,
|
|
3201
3204
|
class: "hb_detail_top_wrapper_sticky"
|
|
3202
3205
|
}, Xa = { class: "hb_detail_top_act" }, en = {
|
|
3203
3206
|
key: 0,
|
|
3204
3207
|
class: "hb_detail_all_info"
|
|
3205
|
-
}, tn = { class: "hb_detail_all_info_left" },
|
|
3208
|
+
}, tn = { class: "hb_detail_all_info_left" }, on = { class: "hb_detail_info_title" }, ln = {
|
|
3206
3209
|
key: 0,
|
|
3207
3210
|
class: "hb_detail_info_content"
|
|
3208
|
-
}, an = { class: "create_by" }, nn = { class: "hb_detail_all_info_right" }, sn = { class: "hb_edit_detail_content_wrapper" }, rn = { class: "hb_detail_content" }, cn = { class: "hb-back-top-inner" }, dn = /* @__PURE__ */
|
|
3211
|
+
}, an = { class: "create_by" }, nn = { class: "hb_detail_all_info_right" }, sn = { class: "hb_edit_detail_content_wrapper" }, rn = { class: "hb_detail_content" }, cn = { class: "hb-back-top-inner" }, dn = /* @__PURE__ */ J({
|
|
3209
3212
|
name: "HbLibDetailBox",
|
|
3210
3213
|
__name: "HbLibDetailBox",
|
|
3211
3214
|
props: {
|
|
@@ -3268,39 +3271,39 @@ const Bo = {
|
|
|
3268
3271
|
}
|
|
3269
3272
|
},
|
|
3270
3273
|
setup(e) {
|
|
3271
|
-
const { t } = fe(),
|
|
3272
|
-
|
|
3274
|
+
const { t } = fe(), o = e, n = pe(Xe), c = () => {
|
|
3275
|
+
o.backFn ? o.backFn() : window.history.back();
|
|
3273
3276
|
}, f = P(() => {
|
|
3274
|
-
const
|
|
3275
|
-
return
|
|
3276
|
-
hb_need_set_desc_label_width:
|
|
3277
|
-
hb_need_set_desc_value_width:
|
|
3278
|
-
} :
|
|
3279
|
-
}), u = () => document.querySelector(
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
(
|
|
3283
|
-
b.value =
|
|
3277
|
+
const M = {};
|
|
3278
|
+
return o.needFixWidth ? {
|
|
3279
|
+
hb_need_set_desc_label_width: o.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3280
|
+
hb_need_set_desc_value_width: o.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3281
|
+
} : M;
|
|
3282
|
+
}), u = () => document.querySelector(o.container), b = O(!1), l = O(null), { top: a } = Qt(l), m = P(u), { y: L } = Zt(m);
|
|
3283
|
+
ee(
|
|
3284
|
+
L,
|
|
3285
|
+
(M) => {
|
|
3286
|
+
b.value = M > a.value;
|
|
3284
3287
|
},
|
|
3285
3288
|
{ immediate: !0 }
|
|
3286
3289
|
);
|
|
3287
|
-
const p = (
|
|
3288
|
-
document.querySelectorAll(".hb_card_body").forEach((
|
|
3289
|
-
|
|
3290
|
-
|
|
3290
|
+
const p = (M) => {
|
|
3291
|
+
document.querySelectorAll(".hb_card_body").forEach((x) => {
|
|
3292
|
+
x.querySelectorAll(".ant-descriptions-item-content span").forEach((S) => {
|
|
3293
|
+
S.textContent?.trim() || (S.textContent = M);
|
|
3291
3294
|
});
|
|
3292
3295
|
});
|
|
3293
3296
|
};
|
|
3294
|
-
let
|
|
3297
|
+
let D = null;
|
|
3295
3298
|
return he(() => {
|
|
3296
|
-
n?.HbLibDetailBox?.needSetDesDefault && (
|
|
3299
|
+
n?.HbLibDetailBox?.needSetDesDefault && (D = setTimeout(() => {
|
|
3297
3300
|
p(n?.HbLibDetailBox?.desDefault);
|
|
3298
3301
|
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3299
|
-
}),
|
|
3300
|
-
|
|
3301
|
-
}), (
|
|
3302
|
-
const
|
|
3303
|
-
return i(), E(
|
|
3302
|
+
}), Te(() => {
|
|
3303
|
+
D && clearTimeout(D);
|
|
3304
|
+
}), (M, U) => {
|
|
3305
|
+
const x = N("RollbackOutlined"), _ = N("a-divider"), S = N("a-spin");
|
|
3306
|
+
return i(), E(S, { spinning: e.spinning }, {
|
|
3304
3307
|
default: r(() => [
|
|
3305
3308
|
d("div", {
|
|
3306
3309
|
class: Y(["hb_detail_wrapper", f.value]),
|
|
@@ -3314,55 +3317,55 @@ const Bo = {
|
|
|
3314
3317
|
class: Y(["hb_detail_top_act_sticky", b.value ? "can_show" : ""])
|
|
3315
3318
|
}, [
|
|
3316
3319
|
d("div", Qa, [
|
|
3317
|
-
|
|
3320
|
+
w(x, { style: { color: "#ff5000" } }),
|
|
3318
3321
|
d("a", {
|
|
3319
3322
|
href: "javascript:;",
|
|
3320
3323
|
class: "ml6",
|
|
3321
3324
|
onClick: c
|
|
3322
|
-
},
|
|
3323
|
-
|
|
3324
|
-
d("span", null,
|
|
3325
|
+
}, k(y(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3326
|
+
w(_, { type: "vertical" }),
|
|
3327
|
+
d("span", null, k(e.stickyTitle), 1)
|
|
3325
3328
|
]),
|
|
3326
|
-
|
|
3329
|
+
U[0] || (U[0] = d("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3327
3330
|
], 2)) : z("", !0),
|
|
3328
3331
|
e.needTotalInfoBox ? (i(), T("div", Za, [
|
|
3329
3332
|
d("div", Xa, [
|
|
3330
|
-
|
|
3333
|
+
w(x),
|
|
3331
3334
|
d("a", {
|
|
3332
3335
|
href: "javascript:;",
|
|
3333
3336
|
class: "ml6",
|
|
3334
3337
|
onClick: c
|
|
3335
|
-
},
|
|
3336
|
-
|
|
3337
|
-
d("span", null,
|
|
3338
|
+
}, k(y(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3339
|
+
w(_, { type: "vertical" }),
|
|
3340
|
+
d("span", null, k(e.stickyTitle), 1)
|
|
3338
3341
|
]),
|
|
3339
3342
|
e.needTotalInfoBox ? (i(), T("div", en, [
|
|
3340
3343
|
d("aside", tn, [
|
|
3341
|
-
|
|
3342
|
-
d("div",
|
|
3343
|
-
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div",
|
|
3344
|
-
d("span", an,
|
|
3345
|
-
d("span", null,
|
|
3344
|
+
W(M.$slots, "totalInfoLeft", {}, () => [
|
|
3345
|
+
d("div", on, k(e.totalInfo.totalInfoTitle), 1),
|
|
3346
|
+
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div", ln, [
|
|
3347
|
+
d("span", an, k(e.totalInfo.totalInfoSubTitle1) + k(e.totalInfo.totalInfoSubVal1), 1),
|
|
3348
|
+
d("span", null, k(e.totalInfo.totalInfoSubTitle2) + k(e.totalInfo.totalInfoSubVal2), 1)
|
|
3346
3349
|
])) : z("", !0)
|
|
3347
3350
|
], !0)
|
|
3348
3351
|
]),
|
|
3349
3352
|
d("aside", nn, [
|
|
3350
|
-
|
|
3353
|
+
W(M.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3351
3354
|
])
|
|
3352
3355
|
])) : z("", !0)
|
|
3353
3356
|
])) : z("", !0),
|
|
3354
3357
|
d("div", sn, [
|
|
3355
3358
|
d("div", rn, [
|
|
3356
|
-
|
|
3359
|
+
W(M.$slots, "detailContent", {}, void 0, !0)
|
|
3357
3360
|
])
|
|
3358
3361
|
]),
|
|
3359
|
-
|
|
3362
|
+
w(y(xt), {
|
|
3360
3363
|
target: u,
|
|
3361
3364
|
style: re({ bottom: e.backTopBottom + "px" })
|
|
3362
3365
|
}, {
|
|
3363
3366
|
default: r(() => [
|
|
3364
3367
|
d("div", cn, [
|
|
3365
|
-
|
|
3368
|
+
w(y(Ft))
|
|
3366
3369
|
])
|
|
3367
3370
|
]),
|
|
3368
3371
|
_: 1
|
|
@@ -3373,7 +3376,7 @@ const Bo = {
|
|
|
3373
3376
|
}, 8, ["spinning"]);
|
|
3374
3377
|
};
|
|
3375
3378
|
}
|
|
3376
|
-
}), un = /* @__PURE__ */
|
|
3379
|
+
}), un = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-dc66a005"]]), fn = ye(un), bn = /* @__PURE__ */ J({
|
|
3377
3380
|
name: "HbLibFooterBar",
|
|
3378
3381
|
__name: "HbLibFooterBar",
|
|
3379
3382
|
props: {
|
|
@@ -3405,19 +3408,19 @@ const Bo = {
|
|
|
3405
3408
|
}
|
|
3406
3409
|
},
|
|
3407
3410
|
setup(e) {
|
|
3408
|
-
const t = e,
|
|
3409
|
-
let
|
|
3411
|
+
const t = e, o = P(() => t.buttons.filter((b) => b.condition !== void 0 ? b.condition : !0)), n = O(0), c = (b) => {
|
|
3412
|
+
let l = 0;
|
|
3410
3413
|
return (Array.isArray(b) ? b : [b]).forEach((m) => {
|
|
3411
|
-
let
|
|
3414
|
+
let L = [];
|
|
3412
3415
|
if (m.startsWith("#")) {
|
|
3413
3416
|
const p = document.getElementById(m.slice(1));
|
|
3414
|
-
p &&
|
|
3417
|
+
p && L.push(p);
|
|
3415
3418
|
} else
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
+
L = Array.from(document.getElementsByClassName(m));
|
|
3420
|
+
L.forEach((p) => {
|
|
3421
|
+
l += p.offsetWidth || 0;
|
|
3419
3422
|
});
|
|
3420
|
-
}),
|
|
3423
|
+
}), l;
|
|
3421
3424
|
}, f = () => {
|
|
3422
3425
|
t.leftElements && (n.value = c(t.leftElements) + 1);
|
|
3423
3426
|
};
|
|
@@ -3428,8 +3431,8 @@ const Bo = {
|
|
|
3428
3431
|
}), f(), u = new MutationObserver(() => {
|
|
3429
3432
|
f();
|
|
3430
3433
|
});
|
|
3431
|
-
const
|
|
3432
|
-
u.observe(
|
|
3434
|
+
const l = document.body;
|
|
3435
|
+
u.observe(l, {
|
|
3433
3436
|
childList: !0,
|
|
3434
3437
|
// 子节点的变动
|
|
3435
3438
|
subtree: !0,
|
|
@@ -3439,13 +3442,13 @@ const Bo = {
|
|
|
3439
3442
|
});
|
|
3440
3443
|
}), Je(() => {
|
|
3441
3444
|
u && u.disconnect();
|
|
3442
|
-
}), (b,
|
|
3443
|
-
const a =
|
|
3445
|
+
}), (b, l) => {
|
|
3446
|
+
const a = N("a-button"), m = N("a-space"), L = N("a-affix"), p = St("has");
|
|
3444
3447
|
return i(), T("div", {
|
|
3445
3448
|
class: "footer-affix-wrapper",
|
|
3446
3449
|
style: re({ "--pageHeaderOrFonterLeft": n.value + "px" })
|
|
3447
3450
|
}, [
|
|
3448
|
-
|
|
3451
|
+
w(L, {
|
|
3449
3452
|
"offset-bottom": 0,
|
|
3450
3453
|
target: e.getContainer,
|
|
3451
3454
|
style: { width: "100%" }
|
|
@@ -3458,23 +3461,23 @@ const Bo = {
|
|
|
3458
3461
|
page_footer_btn_right: e.placeRight
|
|
3459
3462
|
})
|
|
3460
3463
|
}, [
|
|
3461
|
-
|
|
3464
|
+
w(m, null, {
|
|
3462
3465
|
default: r(() => [
|
|
3463
|
-
(i(!0), T(q, null,
|
|
3464
|
-
key:
|
|
3465
|
-
type:
|
|
3466
|
-
danger:
|
|
3467
|
-
loading:
|
|
3468
|
-
disabled:
|
|
3469
|
-
onClick:
|
|
3466
|
+
(i(!0), T(q, null, ie(o.value, (D) => ue((i(), E(a, {
|
|
3467
|
+
key: D.key,
|
|
3468
|
+
type: D.type || "default",
|
|
3469
|
+
danger: D.danger,
|
|
3470
|
+
loading: D.loading,
|
|
3471
|
+
disabled: D.disabled,
|
|
3472
|
+
onClick: D.onClick,
|
|
3470
3473
|
class: "hb_list_page_button"
|
|
3471
3474
|
}, {
|
|
3472
3475
|
default: r(() => [
|
|
3473
|
-
|
|
3476
|
+
B(k(D.label), 1)
|
|
3474
3477
|
]),
|
|
3475
3478
|
_: 2
|
|
3476
3479
|
}, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
|
|
3477
|
-
[p,
|
|
3480
|
+
[p, D.permissionsTag || null]
|
|
3478
3481
|
])), 128))
|
|
3479
3482
|
]),
|
|
3480
3483
|
_: 1
|
|
@@ -3486,7 +3489,7 @@ const Bo = {
|
|
|
3486
3489
|
], 4);
|
|
3487
3490
|
};
|
|
3488
3491
|
}
|
|
3489
|
-
}), pn = /* @__PURE__ */
|
|
3492
|
+
}), pn = /* @__PURE__ */ Z(bn, [["__scopeId", "data-v-37376438"]]), hn = ye(pn), mn = { class: "modal__detail-content" }, vn = /* @__PURE__ */ J({
|
|
3490
3493
|
name: "HbLibModal",
|
|
3491
3494
|
__name: "HbLibModal",
|
|
3492
3495
|
props: {
|
|
@@ -3527,75 +3530,75 @@ const Bo = {
|
|
|
3527
3530
|
}
|
|
3528
3531
|
},
|
|
3529
3532
|
emits: ["ok", "cancel"],
|
|
3530
|
-
setup(e, { expose: t, emit:
|
|
3531
|
-
const n =
|
|
3533
|
+
setup(e, { expose: t, emit: o }) {
|
|
3534
|
+
const n = o, c = e, f = O(!1), u = O(null), b = P(() => ({ ...c.modalStyle })), l = P(() => ({ overflow: "hidden", ...c.modalStyle })), a = P(() => ({
|
|
3532
3535
|
maxHeight: "calc(100vh - 120px)",
|
|
3533
3536
|
overflowY: "auto",
|
|
3534
3537
|
padding: "0 6px",
|
|
3535
3538
|
...c.bodyStyle
|
|
3536
|
-
})), { x: m, y:
|
|
3539
|
+
})), { x: m, y: L, isDragging: p } = Xt(u), D = O(0), M = O(0), U = O(!1), x = O(0), _ = O(0), S = O(0), A = O(0), F = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3537
3540
|
let C = null;
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
+
ee(f, (I) => {
|
|
3542
|
+
I || (C && clearTimeout(C), C = setTimeout(() => {
|
|
3543
|
+
x.value = 0, _.value = 0, S.value = 0, A.value = 0;
|
|
3541
3544
|
}, 300));
|
|
3542
|
-
}),
|
|
3543
|
-
if (!
|
|
3544
|
-
|
|
3545
|
-
const
|
|
3546
|
-
F.value.right =
|
|
3545
|
+
}), ee([m, L], () => {
|
|
3546
|
+
if (!U.value) {
|
|
3547
|
+
D.value = m.value, M.value = L.value;
|
|
3548
|
+
const I = document.body.getBoundingClientRect(), V = u.value.getBoundingClientRect();
|
|
3549
|
+
F.value.right = I.width - V.width, F.value.bottom = I.height - V.height, S.value = x.value, A.value = _.value;
|
|
3547
3550
|
}
|
|
3548
|
-
|
|
3549
|
-
}),
|
|
3550
|
-
p || (
|
|
3551
|
+
U.value = !0;
|
|
3552
|
+
}), ee(p, () => {
|
|
3553
|
+
p || (U.value = !1);
|
|
3551
3554
|
}), Tt(() => {
|
|
3552
|
-
|
|
3555
|
+
U.value && (x.value = S.value + Math.min(Math.max(F.value.left, m.value), F.value.right) - D.value, _.value = A.value + Math.min(Math.max(F.value.top, L.value), F.value.bottom) - M.value);
|
|
3553
3556
|
});
|
|
3554
|
-
const
|
|
3555
|
-
transform: `translate(${
|
|
3557
|
+
const g = P(() => ({
|
|
3558
|
+
transform: `translate(${x.value}px, ${_.value}px)`
|
|
3556
3559
|
})), s = () => {
|
|
3557
3560
|
f.value = !1, n("cancel");
|
|
3558
3561
|
}, h = () => {
|
|
3559
3562
|
n("ok");
|
|
3560
3563
|
};
|
|
3561
|
-
return
|
|
3564
|
+
return Te(() => {
|
|
3562
3565
|
C && clearTimeout(C);
|
|
3563
3566
|
}), t({
|
|
3564
3567
|
handleOk: h,
|
|
3565
3568
|
handleCancel: s,
|
|
3566
3569
|
visible: f
|
|
3567
|
-
}), (
|
|
3568
|
-
const
|
|
3569
|
-
return i(), E(
|
|
3570
|
+
}), (I, V) => {
|
|
3571
|
+
const K = N("a-spin"), se = N("a-modal");
|
|
3572
|
+
return i(), E(se, oe({
|
|
3570
3573
|
style: b.value,
|
|
3571
3574
|
bodyStyle: a.value,
|
|
3572
3575
|
ref: "modalRef",
|
|
3573
3576
|
visible: f.value,
|
|
3574
|
-
"onUpdate:visible":
|
|
3575
|
-
"wrap-style":
|
|
3577
|
+
"onUpdate:visible": V[0] || (V[0] = ($) => f.value = $),
|
|
3578
|
+
"wrap-style": l.value,
|
|
3576
3579
|
onOk: h,
|
|
3577
3580
|
onCancel: s
|
|
3578
|
-
},
|
|
3581
|
+
}, I.$attrs), Be({
|
|
3579
3582
|
title: r(() => [
|
|
3580
3583
|
d("div", {
|
|
3581
3584
|
ref_key: "modalTitleRef",
|
|
3582
3585
|
ref: u,
|
|
3583
3586
|
style: { width: "100%", cursor: "move" }
|
|
3584
3587
|
}, [
|
|
3585
|
-
|
|
3586
|
-
|
|
3588
|
+
W(I.$slots, "title", {}, () => [
|
|
3589
|
+
B(k(e.title), 1)
|
|
3587
3590
|
], !0)
|
|
3588
3591
|
], 512)
|
|
3589
3592
|
]),
|
|
3590
|
-
modalRender: r(({ originVNode:
|
|
3593
|
+
modalRender: r(({ originVNode: $ }) => [
|
|
3591
3594
|
d("div", {
|
|
3592
|
-
style: re(
|
|
3595
|
+
style: re(g.value)
|
|
3593
3596
|
}, [
|
|
3594
|
-
(i(), E(wt(
|
|
3597
|
+
(i(), E(wt($)))
|
|
3595
3598
|
], 4)
|
|
3596
3599
|
]),
|
|
3597
3600
|
default: r(() => [
|
|
3598
|
-
|
|
3601
|
+
w(K, {
|
|
3599
3602
|
spinning: c.spinning
|
|
3600
3603
|
}, {
|
|
3601
3604
|
default: r(() => [
|
|
@@ -3608,7 +3611,7 @@ const Bo = {
|
|
|
3608
3611
|
style: re({ "--hb-detail-desc-label-width": e.descLabelWidth + "px", "--hb-detail-desc-value-width": e.descValueWidth + "px" })
|
|
3609
3612
|
}, [
|
|
3610
3613
|
d("div", mn, [
|
|
3611
|
-
|
|
3614
|
+
W(I.$slots, "default", {}, void 0, !0)
|
|
3612
3615
|
])
|
|
3613
3616
|
], 6)
|
|
3614
3617
|
]),
|
|
@@ -3617,23 +3620,23 @@ const Bo = {
|
|
|
3617
3620
|
]),
|
|
3618
3621
|
_: 2
|
|
3619
3622
|
}, [
|
|
3620
|
-
|
|
3623
|
+
I.$slots.footer ? {
|
|
3621
3624
|
name: "footer",
|
|
3622
3625
|
fn: r(() => [
|
|
3623
|
-
|
|
3626
|
+
W(I.$slots, "footer", {}, void 0, !0)
|
|
3624
3627
|
]),
|
|
3625
3628
|
key: "0"
|
|
3626
3629
|
} : void 0
|
|
3627
3630
|
]), 1040, ["style", "bodyStyle", "visible", "wrap-style"]);
|
|
3628
3631
|
};
|
|
3629
3632
|
}
|
|
3630
|
-
}), gn = /* @__PURE__ */
|
|
3633
|
+
}), gn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-2c15ecab"]]), yn = ye(gn), _n = {
|
|
3631
3634
|
key: 0,
|
|
3632
3635
|
class: "hb_edit_header"
|
|
3633
3636
|
}, Ln = { class: "__detail-content" }, Cn = {
|
|
3634
3637
|
key: 1,
|
|
3635
3638
|
class: "hb_edit_footer"
|
|
3636
|
-
}, kn = { class: "hb-back-top-inner" }, Sn = /* @__PURE__ */
|
|
3639
|
+
}, kn = { class: "hb-back-top-inner" }, Sn = /* @__PURE__ */ J({
|
|
3637
3640
|
name: "HbLibUnDetailBox",
|
|
3638
3641
|
__name: "HbLibUnDetailBox",
|
|
3639
3642
|
props: {
|
|
@@ -3658,33 +3661,33 @@ const Bo = {
|
|
|
3658
3661
|
}
|
|
3659
3662
|
},
|
|
3660
3663
|
setup(e) {
|
|
3661
|
-
const t = O("vertical"),
|
|
3662
|
-
return (c, f) => (i(), E(
|
|
3664
|
+
const t = O("vertical"), o = e, n = () => document.querySelector(o.container);
|
|
3665
|
+
return (c, f) => (i(), E(y(Ut), { spinning: e.spinning }, {
|
|
3663
3666
|
default: r(() => [
|
|
3664
3667
|
d("div", {
|
|
3665
3668
|
class: Y(["hb_edit_wrapper", e.formLabelWidth ? "isNeedSetLabelWidth" : ""]),
|
|
3666
3669
|
style: re({ "--hb-edit-form-label": e.formLabelWidth })
|
|
3667
3670
|
}, [
|
|
3668
3671
|
c.$slots.editHeader ? (i(), T("div", _n, [
|
|
3669
|
-
|
|
3672
|
+
W(c.$slots, "editHeader", {}, void 0, !0)
|
|
3670
3673
|
])) : z("", !0),
|
|
3671
3674
|
d("div", {
|
|
3672
3675
|
class: Y(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3673
3676
|
}, [
|
|
3674
3677
|
d("div", Ln, [
|
|
3675
|
-
|
|
3678
|
+
W(c.$slots, "editContent", {}, void 0, !0)
|
|
3676
3679
|
])
|
|
3677
3680
|
], 2),
|
|
3678
3681
|
c.$slots.editFooter ? (i(), T("div", Cn, [
|
|
3679
|
-
|
|
3682
|
+
W(c.$slots, "editFooter", {}, void 0, !0)
|
|
3680
3683
|
])) : z("", !0),
|
|
3681
|
-
|
|
3684
|
+
w(y(xt), {
|
|
3682
3685
|
target: n,
|
|
3683
3686
|
style: re({ bottom: e.backTopBottom + "px" })
|
|
3684
3687
|
}, {
|
|
3685
3688
|
default: r(() => [
|
|
3686
3689
|
d("div", kn, [
|
|
3687
|
-
|
|
3690
|
+
w(y(Ft))
|
|
3688
3691
|
])
|
|
3689
3692
|
]),
|
|
3690
3693
|
_: 1
|
|
@@ -3694,7 +3697,7 @@ const Bo = {
|
|
|
3694
3697
|
_: 3
|
|
3695
3698
|
}, 8, ["spinning"]));
|
|
3696
3699
|
}
|
|
3697
|
-
}), Tn = /* @__PURE__ */
|
|
3700
|
+
}), Tn = /* @__PURE__ */ Z(Sn, [["__scopeId", "data-v-8fa9c63b"]]), wn = ye(Tn), xn = { class: "hb_edit_header_left" }, Fn = { class: "hb_edit_header_title" }, Hn = { class: "hb_edit_header_right" }, $n = /* @__PURE__ */ J({
|
|
3698
3701
|
name: "HbLibPageHeader",
|
|
3699
3702
|
__name: "HbLibPageHeader",
|
|
3700
3703
|
props: {
|
|
@@ -3712,25 +3715,25 @@ const Bo = {
|
|
|
3712
3715
|
}
|
|
3713
3716
|
},
|
|
3714
3717
|
setup(e) {
|
|
3715
|
-
const { t } = fe(),
|
|
3716
|
-
function u(p,
|
|
3717
|
-
let
|
|
3718
|
-
return (Array.isArray(p) ? p : [p]).forEach((
|
|
3719
|
-
let
|
|
3720
|
-
if (
|
|
3721
|
-
const
|
|
3722
|
-
|
|
3718
|
+
const { t } = fe(), o = e, n = Qe(), c = O(0), f = P(() => n?.meta?.title || "");
|
|
3719
|
+
function u(p, D = "offsetHeight") {
|
|
3720
|
+
let M = 0;
|
|
3721
|
+
return (Array.isArray(p) ? p : [p]).forEach((x) => {
|
|
3722
|
+
let _ = [];
|
|
3723
|
+
if (x.startsWith("#")) {
|
|
3724
|
+
const S = document.getElementById(x.slice(1));
|
|
3725
|
+
S && _.push(S);
|
|
3723
3726
|
} else
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
+
_ = Array.from(document.getElementsByClassName(x));
|
|
3728
|
+
_.forEach((S) => {
|
|
3729
|
+
M += S[D] || 0;
|
|
3727
3730
|
});
|
|
3728
|
-
}),
|
|
3731
|
+
}), M;
|
|
3729
3732
|
}
|
|
3730
3733
|
const b = () => {
|
|
3731
|
-
|
|
3732
|
-
},
|
|
3733
|
-
|
|
3734
|
+
o.topElements && (c.value = u(o.topElements));
|
|
3735
|
+
}, l = O(0), a = () => {
|
|
3736
|
+
o.leftElements && (l.value = u(o.leftElements, "offsetWidth") + 1);
|
|
3734
3737
|
};
|
|
3735
3738
|
let m = null;
|
|
3736
3739
|
he(() => {
|
|
@@ -3748,38 +3751,38 @@ const Bo = {
|
|
|
3748
3751
|
});
|
|
3749
3752
|
}), Je(() => {
|
|
3750
3753
|
window.removeEventListener("resize", b), m && m.disconnect();
|
|
3751
|
-
}),
|
|
3752
|
-
() =>
|
|
3754
|
+
}), ee(
|
|
3755
|
+
() => o.topElements,
|
|
3753
3756
|
() => {
|
|
3754
3757
|
b();
|
|
3755
3758
|
},
|
|
3756
3759
|
{ immediate: !0 }
|
|
3757
3760
|
);
|
|
3758
|
-
const
|
|
3759
|
-
|
|
3761
|
+
const L = () => {
|
|
3762
|
+
o.backFn ? o.backFn() : window.history.back();
|
|
3760
3763
|
};
|
|
3761
|
-
return (p,
|
|
3762
|
-
const
|
|
3764
|
+
return (p, D) => {
|
|
3765
|
+
const M = N("a-divider");
|
|
3763
3766
|
return i(), T("div", {
|
|
3764
3767
|
class: "hb_edit_header",
|
|
3765
|
-
style: re({ top: c.value + "px", "--pageHeaderOrFonterLeft":
|
|
3768
|
+
style: re({ top: c.value + "px", "--pageHeaderOrFonterLeft": l.value + "px" })
|
|
3766
3769
|
}, [
|
|
3767
3770
|
d("aside", xn, [
|
|
3768
3771
|
d("a", {
|
|
3769
3772
|
href: "#",
|
|
3770
3773
|
class: "backBtn",
|
|
3771
|
-
onClick:
|
|
3772
|
-
},
|
|
3773
|
-
|
|
3774
|
-
d("span", Fn,
|
|
3774
|
+
onClick: L
|
|
3775
|
+
}, k(y(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3776
|
+
w(M, { type: "vertical" }),
|
|
3777
|
+
d("span", Fn, k(f.value), 1)
|
|
3775
3778
|
]),
|
|
3776
3779
|
d("aside", Hn, [
|
|
3777
|
-
|
|
3780
|
+
W(p.$slots, "right", {}, void 0, !0)
|
|
3778
3781
|
])
|
|
3779
3782
|
], 4);
|
|
3780
3783
|
};
|
|
3781
3784
|
}
|
|
3782
|
-
}), In = /* @__PURE__ */
|
|
3785
|
+
}), In = /* @__PURE__ */ Z($n, [["__scopeId", "data-v-83fcd208"]]), Mn = ye(In), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3783
3786
|
__proto__: null,
|
|
3784
3787
|
HbLibAnchor: Ja,
|
|
3785
3788
|
HbLibCard: Va,
|
|
@@ -3790,8 +3793,8 @@ const Bo = {
|
|
|
3790
3793
|
HbLibUnDetailBox: wn
|
|
3791
3794
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3792
3795
|
let vt = {
|
|
3793
|
-
...
|
|
3794
|
-
...
|
|
3796
|
+
...Zl,
|
|
3797
|
+
...oa,
|
|
3795
3798
|
...fa,
|
|
3796
3799
|
...Da,
|
|
3797
3800
|
...Fa,
|
|
@@ -3799,16 +3802,16 @@ let vt = {
|
|
|
3799
3802
|
};
|
|
3800
3803
|
const me = /* @__PURE__ */ new Map();
|
|
3801
3804
|
let gt;
|
|
3802
|
-
|
|
3805
|
+
eo && (document.addEventListener("mousedown", (e) => gt = e), document.addEventListener("mouseup", (e) => {
|
|
3803
3806
|
for (const t of me.values())
|
|
3804
|
-
for (const { documentHandler:
|
|
3805
|
-
|
|
3807
|
+
for (const { documentHandler: o } of t)
|
|
3808
|
+
o(e, gt);
|
|
3806
3809
|
}));
|
|
3807
3810
|
function yt(e, t) {
|
|
3808
|
-
let
|
|
3809
|
-
return Array.isArray(t.arg) ?
|
|
3810
|
-
const f = t.instance.popperRef, u = n.target, b = c?.target,
|
|
3811
|
-
|
|
3811
|
+
let o = [];
|
|
3812
|
+
return Array.isArray(t.arg) ? o = t.arg : t.arg instanceof HTMLElement && o.push(t.arg), function(n, c) {
|
|
3813
|
+
const f = t.instance.popperRef, u = n.target, b = c?.target, l = !t || !t.instance, a = !u || !b, m = e.contains(u) || e.contains(b), L = e === u, p = o.length && o.some((M) => M?.contains(u)) || o.length && o.includes(b), D = f && (f.contains(u) || f.contains(b));
|
|
3814
|
+
l || a || m || L || p || D || t.value(n, c);
|
|
3812
3815
|
};
|
|
3813
3816
|
}
|
|
3814
3817
|
const An = {
|
|
@@ -3820,19 +3823,19 @@ const An = {
|
|
|
3820
3823
|
},
|
|
3821
3824
|
updated(e, t) {
|
|
3822
3825
|
me.has(e) || me.set(e, []);
|
|
3823
|
-
const
|
|
3826
|
+
const o = me.get(e), n = o.findIndex((f) => f.bindingFn === t.oldValue), c = {
|
|
3824
3827
|
documentHandler: yt(e, t),
|
|
3825
3828
|
bindingFn: t.value
|
|
3826
3829
|
};
|
|
3827
|
-
n >= 0 ?
|
|
3830
|
+
n >= 0 ? o.splice(n, 1, c) : o.push(c);
|
|
3828
3831
|
},
|
|
3829
3832
|
unmounted(e) {
|
|
3830
3833
|
me.delete(e);
|
|
3831
3834
|
}
|
|
3832
3835
|
}, Bn = {
|
|
3833
3836
|
mounted(e, t) {
|
|
3834
|
-
const { value:
|
|
3835
|
-
if (console.log(t), typeof
|
|
3837
|
+
const { value: o, arg: n } = t;
|
|
3838
|
+
if (console.log(t), typeof o != "function") {
|
|
3836
3839
|
console.warn("[v-debounce-click] 绑定值必须是一个函数");
|
|
3837
3840
|
return;
|
|
3838
3841
|
}
|
|
@@ -3840,7 +3843,7 @@ const An = {
|
|
|
3840
3843
|
let f;
|
|
3841
3844
|
e.__debounceHandler__ = function(...u) {
|
|
3842
3845
|
f && clearTimeout(f), f = setTimeout(() => {
|
|
3843
|
-
|
|
3846
|
+
o(...u);
|
|
3844
3847
|
}, c);
|
|
3845
3848
|
}, e.addEventListener("click", e.__debounceHandler__);
|
|
3846
3849
|
},
|
|
@@ -3849,15 +3852,15 @@ const An = {
|
|
|
3849
3852
|
}
|
|
3850
3853
|
}, _t = (e, t) => {
|
|
3851
3854
|
e._dynamicApp && (e._dynamicApp.unmount(), e._dynamicContainer.innerHTML = "");
|
|
3852
|
-
const
|
|
3855
|
+
const o = Et(Mt, {
|
|
3853
3856
|
cpText: t
|
|
3854
3857
|
});
|
|
3855
|
-
|
|
3858
|
+
o.mount(e._dynamicContainer), e._dynamicApp = o, e._dynamicPrevValue = t;
|
|
3856
3859
|
}, On = {
|
|
3857
3860
|
mounted(e, t) {
|
|
3858
3861
|
if (!e._dynamicContainer) {
|
|
3859
|
-
const
|
|
3860
|
-
|
|
3862
|
+
const o = document.createElement("div");
|
|
3863
|
+
o.style.display = "inline-flex", o.style.alignItems = "center", o.setAttribute("data-dynamic-container", ""), e.parentNode?.insertBefore(o, e.nextSibling), e._dynamicContainer = o;
|
|
3861
3864
|
}
|
|
3862
3865
|
_t(e, t.value);
|
|
3863
3866
|
},
|
|
@@ -3879,17 +3882,17 @@ const An = {
|
|
|
3879
3882
|
var Fe = { exports: {} }, Yn = Fe.exports, Lt;
|
|
3880
3883
|
function qn() {
|
|
3881
3884
|
return Lt || (Lt = 1, (function(e, t) {
|
|
3882
|
-
(function(
|
|
3885
|
+
(function(o, n) {
|
|
3883
3886
|
e.exports = n(Oe);
|
|
3884
|
-
})(Yn, (function(
|
|
3887
|
+
})(Yn, (function(o) {
|
|
3885
3888
|
function n(u) {
|
|
3886
3889
|
return u && typeof u == "object" && "default" in u ? u : { default: u };
|
|
3887
3890
|
}
|
|
3888
|
-
var c = n(
|
|
3891
|
+
var c = n(o), f = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(u, b) {
|
|
3889
3892
|
return b === "W" ? u + "周" : u + "日";
|
|
3890
3893
|
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(u, b) {
|
|
3891
|
-
var
|
|
3892
|
-
return
|
|
3894
|
+
var l = 100 * u + b;
|
|
3895
|
+
return l < 600 ? "凌晨" : l < 900 ? "早上" : l < 1100 ? "上午" : l < 1300 ? "中午" : l < 1800 ? "下午" : "晚上";
|
|
3893
3896
|
} };
|
|
3894
3897
|
return c.default.locale(f, null, !0), f;
|
|
3895
3898
|
}));
|
|
@@ -3897,7 +3900,7 @@ function qn() {
|
|
|
3897
3900
|
}
|
|
3898
3901
|
qn();
|
|
3899
3902
|
Oe.locale("zh-cn");
|
|
3900
|
-
const
|
|
3903
|
+
const li = {
|
|
3901
3904
|
en_US: Pn,
|
|
3902
3905
|
ja_JP: Rn,
|
|
3903
3906
|
zh_CN: Vn,
|
|
@@ -3911,5 +3914,5 @@ const oi = {
|
|
|
3911
3914
|
};
|
|
3912
3915
|
export {
|
|
3913
3916
|
ai as install,
|
|
3914
|
-
|
|
3917
|
+
li as locales
|
|
3915
3918
|
};
|