@hb-hellotech/hb-ui 1.2.5-beta.4 → 1.2.5-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/form_comp/hb_tooltip_select/src/type.d.ts +51 -0
- package/dist/components/business_comp/form_comp/hb_tooltip_select/src/type.d.ts.map +1 -0
- package/dist/components/business_comp/form_comp/index.d.ts +3 -0
- package/dist/components/business_comp/form_comp/index.d.ts.map +1 -0
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/src/type.d.ts +0 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts +0 -36
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts +0 -22
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/HbListBtns.vue.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/type.d.ts +1 -12
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts +5 -71
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +2 -38
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/type.d.ts +1 -17
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_list_table/src/type.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/src/type.d.ts.map +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1040 -971
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +10 -2
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 ee, reactive as Je, ref as P, computed as W, watch as se, createElementBlock as S, openBlock as a, normalizeClass as E, unref as n, createVNode as x, withCtx as s, createElementVNode as g, toDisplayString as L, createTextVNode as O, createBlock as B, createCommentVNode as z, Fragment as G, renderList as ae, inject as $e, resolveComponent as K, Transition as tt, withDirectives as re, mergeProps as X, createSlots as Ge, renderSlot as j, vShow as lt, nextTick as be, onMounted as Me, onUnmounted as ot, useTemplateRef as at, provide as nt, normalizeStyle as me, mergeModels as ke, useModel as Qe, withModifiers as _e, resolveDirective as st, useAttrs as it, watchEffect as rt, shallowRef as ct, resolveDynamicComponent as dt } from "vue";
|
|
3
3
|
import fe from "vuedraggable";
|
|
4
|
-
import { CloseOutlined as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { useRoute as
|
|
4
|
+
import { CloseOutlined as ut, QuestionCircleOutlined as bt, SearchOutlined as Ie, UpCircleOutlined as ht, DownCircleOutlined as ft, UnorderedListOutlined as pt, DownOutlined as De } from "@ant-design/icons-vue";
|
|
5
|
+
import { Modal as Se, Button as ue, Tooltip as we, Switch as Oe, Radio as Re, RadioGroup as Be, InputNumber as Pe, DatePicker as Ne, Checkbox as pe, CheckboxGroup as ze, Select as Fe, Input as Ve, Col as mt, Row as vt, FormItem as Ee, Form as Ue, SelectOption as xe, Popconfirm as Ce, MenuItem as Ye, Menu as je, Dropdown as qe, Popover as gt, message as Te } from "ant-design-vue";
|
|
6
|
+
import { useRoute as Ze } from "vue-router";
|
|
7
7
|
import { useI18n as ce } from "vue-i18n";
|
|
8
8
|
import Le from "lodash";
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const f = `${
|
|
13
|
-
return
|
|
14
|
-
}, ie = (
|
|
9
|
+
import { useFullscreen as yt, useDebounceFn as Ct } from "@vueuse/core";
|
|
10
|
+
import He from "dayjs";
|
|
11
|
+
const Lt = "hb-", Ae = (e = "") => {
|
|
12
|
+
const f = `${Lt}${e}`;
|
|
13
|
+
return kt(f);
|
|
14
|
+
}, ie = (e, f, r, i) => (f && (e += `-${f}`), r && (e += `__${r}`), i && (e += `--${i}`), e), kt = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (f) => f ? ie(
|
|
16
|
+
b: (f) => f ? ie(e, f, "", "") : ie(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (f) => f ? ie(
|
|
18
|
+
e: (f) => f ? ie(e, "", f, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (f) => ie(
|
|
20
|
+
m: (f) => ie(e, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (f,
|
|
22
|
+
be: (f, r) => ie(e, f, r, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (f,
|
|
24
|
+
em: (f, r) => ie(e, "", f, r),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (f,
|
|
26
|
+
bem: (f, r, i) => ie(e, f, r, i),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (f,
|
|
29
|
-
}),
|
|
28
|
+
is: (f, r) => r ? `is-${f}` : ""
|
|
29
|
+
}), _t = ["onMouseenter", "onMouseleave"], St = ["onClick"], wt = /* @__PURE__ */ ee({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -37,21 +37,21 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(
|
|
41
|
-
const i = ce().t,
|
|
40
|
+
setup(e, { expose: f, emit: r }) {
|
|
41
|
+
const i = ce().t, F = ce().messages.value.en_US, m = ce().messages.value.ja_JP, b = ce().messages.value.zh_CN, c = e, t = r, u = Ae("sfcm"), v = Ze(), R = Je({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
const I = _.draggedContext.element,
|
|
43
|
+
}), A = P(!1), V = P(600);
|
|
44
|
+
let y = [];
|
|
45
|
+
const p = P([]), H = P([]), $ = W(() => p.value.every((_) => _.isLinked || _.isFixed)), U = (_) => {
|
|
46
|
+
const I = _.draggedContext.element, C = _.relatedContext.index;
|
|
47
47
|
if (I.isLinked || I.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const
|
|
50
|
-
if (
|
|
49
|
+
const Y = p.value.map((Z, ne) => ({ item: Z, index: ne })).filter(({ item: Z }) => Z.isLinked).map(({ index: Z }) => Z);
|
|
50
|
+
if (Y.length === 0)
|
|
51
51
|
return !0;
|
|
52
|
-
for (let
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
52
|
+
for (let Z = 0; Z < Y.length - 1; Z++) {
|
|
53
|
+
const ne = Y[Z], de = Y[Z + 1];
|
|
54
|
+
if (C > ne && C < de)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
@@ -61,54 +61,54 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
61
61
|
if (_)
|
|
62
62
|
try {
|
|
63
63
|
I = JSON.parse(_).value.jobNumber || "anonymous";
|
|
64
|
-
} catch (
|
|
65
|
-
console.warn("解析用户信息失败:",
|
|
64
|
+
} catch (Y) {
|
|
65
|
+
console.warn("解析用户信息失败:", Y);
|
|
66
66
|
}
|
|
67
|
-
let
|
|
68
|
-
return `searchFormConfig_${I}_${
|
|
67
|
+
let C = v?.path;
|
|
68
|
+
return `searchFormConfig_${I}_${C}`;
|
|
69
69
|
}, w = (_) => ({
|
|
70
|
-
ja_JP: () => Le.get(
|
|
71
|
-
en_US: () => Le.get(
|
|
72
|
-
zh_CN: () => Le.get(
|
|
73
|
-
})[
|
|
70
|
+
ja_JP: () => Le.get(m, _.labelLanguage || ""),
|
|
71
|
+
en_US: () => Le.get(F, _.labelLanguage || ""),
|
|
72
|
+
zh_CN: () => Le.get(b, _.labelLanguage || "")
|
|
73
|
+
})[R.lan]?.() || _.label, l = (_) => {
|
|
74
74
|
try {
|
|
75
|
-
const I = M(),
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
label: w(
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})), ye =
|
|
88
|
-
|
|
89
|
-
label: w(
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
75
|
+
const I = M(), C = localStorage.getItem(I);
|
|
76
|
+
if (C) {
|
|
77
|
+
const Y = JSON.parse(C);
|
|
78
|
+
if (Y.originalList && Array.isArray(Y.originalList)) {
|
|
79
|
+
y = JSON.parse(JSON.stringify(Y.originalList));
|
|
80
|
+
const Z = y.filter((T) => T?.isFixed), ne = y.filter((T) => T?.isLinked), de = Y.showList.filter((T) => !T.isFixed && !T.isLinked), ve = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - Z.length - ne.length) : de.length, ge = Z.map((T) => ({
|
|
81
|
+
...T,
|
|
82
|
+
label: w(T) || `${T.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: T.key,
|
|
84
|
+
isFixed: T?.isFixed || !1,
|
|
85
|
+
isLinked: T?.isLinked || !1,
|
|
86
|
+
labelLanguage: T?.labelLanguage || void 0
|
|
87
|
+
})), ye = ne.map((T) => ({
|
|
88
|
+
...T,
|
|
89
|
+
label: w(T) || `${T.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: T.key,
|
|
91
|
+
isFixed: T?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})), D = de.slice(0, ve).map((
|
|
95
|
-
|
|
96
|
-
label: w(
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: T?.labelLanguage || void 0
|
|
94
|
+
})), D = de.slice(0, ve).map((T) => ({
|
|
95
|
+
...T,
|
|
96
|
+
label: w(T) || `${T.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: T.key,
|
|
98
|
+
isFixed: T?.isFixed || !1,
|
|
99
|
+
isLinked: T?.isLinked || !1,
|
|
100
|
+
labelLanguage: T?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
return H.value =
|
|
105
|
-
|
|
106
|
-
label: w(
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
p.value = [...ge, ...ye, ...D];
|
|
103
|
+
const Xe = p.value.map((T) => T.key), et = y.map((T) => T.key).filter((T) => !Xe.includes(T));
|
|
104
|
+
return H.value = y.filter((T) => et.includes(T.key)).map((T) => ({
|
|
105
|
+
...T,
|
|
106
|
+
label: w(T) || `${T.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
+
key: T.key,
|
|
108
|
+
isFixed: T?.isFixed || !1,
|
|
109
|
+
isLinked: T?.isLinked || !1,
|
|
110
110
|
active: !1,
|
|
111
|
-
labelLanguage:
|
|
111
|
+
labelLanguage: T?.labelLanguage || void 0
|
|
112
112
|
})), !0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -119,45 +119,45 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
119
119
|
}, o = () => {
|
|
120
120
|
try {
|
|
121
121
|
const _ = {
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
124
|
-
...
|
|
125
|
-
key:
|
|
126
|
-
label:
|
|
127
|
-
isFixed:
|
|
128
|
-
isLinked:
|
|
129
|
-
labelLanguage:
|
|
122
|
+
originalList: y,
|
|
123
|
+
showList: p.value.map((C) => ({
|
|
124
|
+
...C,
|
|
125
|
+
key: C.key,
|
|
126
|
+
label: C.label,
|
|
127
|
+
isFixed: C.isFixed,
|
|
128
|
+
isLinked: C.isLinked,
|
|
129
|
+
labelLanguage: C?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
131
|
}, I = M();
|
|
132
132
|
localStorage.setItem(I, JSON.stringify(_));
|
|
133
133
|
} catch (_) {
|
|
134
134
|
console.warn("保存搜索配置失败:", _);
|
|
135
135
|
}
|
|
136
|
-
},
|
|
137
|
-
const _ =
|
|
136
|
+
}, h = W(() => {
|
|
137
|
+
const _ = p.value.filter((C) => !C.isFixed && !C.isLinked).length, I = p.value.filter((C) => C.isFixed || C.isLinked).length;
|
|
138
138
|
return _ >= c.showNumber - I;
|
|
139
139
|
});
|
|
140
140
|
se(
|
|
141
141
|
() => c.list,
|
|
142
142
|
(_) => {
|
|
143
|
-
let I = JSON.stringify(
|
|
144
|
-
if (!(!I && l()) && (
|
|
145
|
-
|
|
146
|
-
const
|
|
143
|
+
let I = JSON.stringify(p.value) !== JSON.stringify(_);
|
|
144
|
+
if (!(!I && l()) && (y.length === 0 || I)) {
|
|
145
|
+
y = JSON.parse(JSON.stringify(_));
|
|
146
|
+
const C = _.filter((D) => D?.isFixed), Y = _.filter((D) => D?.isLinked), Z = _.filter((D) => !D?.isFixed && !D?.isLinked), ne = c.showNumber && c.showNumber > 0 ? Math.max(0, c.showNumber - C.length - Y.length) : Z.length, de = C.map((D) => ({
|
|
147
147
|
...D,
|
|
148
148
|
label: w(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
149
149
|
key: D.key,
|
|
150
150
|
isFixed: D?.isFixed || !1,
|
|
151
151
|
isLinked: D?.isLinked || !1,
|
|
152
152
|
labelLanguage: D?.labelLanguage || void 0
|
|
153
|
-
})), ve =
|
|
153
|
+
})), ve = Y.map((D) => ({
|
|
154
154
|
...D,
|
|
155
155
|
label: w(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
156
156
|
key: D.key,
|
|
157
157
|
isFixed: D?.isFixed || !1,
|
|
158
158
|
isLinked: !0,
|
|
159
159
|
labelLanguage: D?.labelLanguage || void 0
|
|
160
|
-
})), ge =
|
|
160
|
+
})), ge = Z.slice(0, ne).map((D) => ({
|
|
161
161
|
...D,
|
|
162
162
|
label: w(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
163
163
|
key: D.key,
|
|
@@ -165,8 +165,8 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
165
165
|
isLinked: D?.isLinked || !1,
|
|
166
166
|
labelLanguage: D?.labelLanguage || void 0
|
|
167
167
|
}));
|
|
168
|
-
|
|
169
|
-
const ye =
|
|
168
|
+
p.value = [...de, ...ve, ...ge];
|
|
169
|
+
const ye = Z.slice(ne).map((D) => ({
|
|
170
170
|
...D,
|
|
171
171
|
label: w(D) || `${D.subLabel || ""}${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
172
172
|
key: D.key,
|
|
@@ -180,96 +180,96 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
180
180
|
},
|
|
181
181
|
{ immediate: !0 }
|
|
182
182
|
);
|
|
183
|
-
const
|
|
184
|
-
const I =
|
|
185
|
-
I !== -1 && (
|
|
186
|
-
},
|
|
187
|
-
if (
|
|
183
|
+
const k = (_) => {
|
|
184
|
+
const I = p.value.findIndex((C) => C.key === _.key);
|
|
185
|
+
I !== -1 && (p.value.splice(I, 1), H.value.push({ ..._, active: !1 }));
|
|
186
|
+
}, d = (_) => {
|
|
187
|
+
if (h.value)
|
|
188
188
|
return;
|
|
189
|
-
const I = H.value.findIndex((
|
|
189
|
+
const I = H.value.findIndex((C) => C.key === _.key);
|
|
190
190
|
if (I !== -1) {
|
|
191
|
-
const [
|
|
192
|
-
|
|
191
|
+
const [C] = H.value.splice(I, 1);
|
|
192
|
+
p.value.push({ ...C, active: !1 });
|
|
193
193
|
}
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
o(),
|
|
200
|
-
},
|
|
201
|
-
const I = H.value.findIndex((
|
|
194
|
+
}, q = () => {
|
|
195
|
+
A.value = !1;
|
|
196
|
+
}, N = () => {
|
|
197
|
+
A.value = !0;
|
|
198
|
+
}, le = () => {
|
|
199
|
+
o(), t("confirm", p.value), q();
|
|
200
|
+
}, Q = (_) => {
|
|
201
|
+
const I = H.value.findIndex((C) => C.key === _.key);
|
|
202
202
|
I !== -1 && (H.value[I].active = !0);
|
|
203
|
-
},
|
|
204
|
-
const I = H.value.findIndex((
|
|
203
|
+
}, J = (_) => {
|
|
204
|
+
const I = H.value.findIndex((C) => C.key === _.key);
|
|
205
205
|
I !== -1 && (H.value[I].active = !1);
|
|
206
206
|
};
|
|
207
207
|
return f({
|
|
208
|
-
toOpenModal:
|
|
208
|
+
toOpenModal: N
|
|
209
209
|
}), (_, I) => (a(), S("div", {
|
|
210
|
-
class:
|
|
210
|
+
class: E(n(u).b())
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
visible:
|
|
214
|
-
"onUpdate:visible": I[1] || (I[1] = (
|
|
215
|
-
width:
|
|
216
|
-
onCancel:
|
|
217
|
-
onOk:
|
|
212
|
+
x(n(Se), {
|
|
213
|
+
visible: A.value,
|
|
214
|
+
"onUpdate:visible": I[1] || (I[1] = (C) => A.value = C),
|
|
215
|
+
width: V.value,
|
|
216
|
+
onCancel: q,
|
|
217
|
+
onOk: le
|
|
218
218
|
}, {
|
|
219
219
|
title: s(() => [
|
|
220
|
-
|
|
221
|
-
class:
|
|
222
|
-
},
|
|
220
|
+
g("div", {
|
|
221
|
+
class: E(n(u).e("title"))
|
|
222
|
+
}, L(e.title), 3)
|
|
223
223
|
]),
|
|
224
224
|
footer: s(() => [
|
|
225
|
-
|
|
225
|
+
x(n(ue), { onClick: q }, {
|
|
226
226
|
default: s(() => [
|
|
227
|
-
|
|
227
|
+
O(L(_.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
}),
|
|
231
|
-
|
|
231
|
+
x(n(ue), {
|
|
232
232
|
type: "primary",
|
|
233
|
-
onClick:
|
|
233
|
+
onClick: le
|
|
234
234
|
}, {
|
|
235
235
|
default: s(() => [
|
|
236
|
-
|
|
236
|
+
O(L(_.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
237
237
|
]),
|
|
238
238
|
_: 1
|
|
239
239
|
})
|
|
240
240
|
]),
|
|
241
241
|
default: s(() => [
|
|
242
|
-
|
|
243
|
-
class:
|
|
242
|
+
g("section", {
|
|
243
|
+
class: E(n(u).e("show"))
|
|
244
244
|
}, [
|
|
245
|
-
|
|
246
|
-
class:
|
|
245
|
+
g("div", {
|
|
246
|
+
class: E(n(u).e("show__title"))
|
|
247
247
|
}, [
|
|
248
|
-
|
|
249
|
-
class:
|
|
250
|
-
},
|
|
251
|
-
|
|
248
|
+
g("span", {
|
|
249
|
+
class: E(n(u).e("title__tip"))
|
|
250
|
+
}, L(_.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
251
|
+
g("span", null, L(_.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(e.showNumber) + L(_.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
252
252
|
], 2),
|
|
253
|
-
|
|
254
|
-
class:
|
|
253
|
+
g("div", {
|
|
254
|
+
class: E(n(u).e("show__tag"))
|
|
255
255
|
}, [
|
|
256
|
-
|
|
257
|
-
modelValue:
|
|
258
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
256
|
+
x(n(fe), {
|
|
257
|
+
modelValue: p.value,
|
|
258
|
+
"onUpdate:modelValue": I[0] || (I[0] = (C) => p.value = C),
|
|
259
259
|
"item-key": "key",
|
|
260
260
|
tag: "div",
|
|
261
|
-
disabled:
|
|
262
|
-
move:
|
|
261
|
+
disabled: $.value,
|
|
262
|
+
move: U
|
|
263
263
|
}, {
|
|
264
|
-
item: s(({ element:
|
|
265
|
-
|
|
266
|
-
class:
|
|
264
|
+
item: s(({ element: C }) => [
|
|
265
|
+
g("div", {
|
|
266
|
+
class: E([n(u).e("show__tag__item"), n(u).is("fixed", C.isFixed), n(u).is("linked", C.isLinked)])
|
|
267
267
|
}, [
|
|
268
|
-
|
|
269
|
-
!
|
|
268
|
+
O(L(C.label) + " ", 1),
|
|
269
|
+
!C.isFixed && !C.isLinked && e.list.length > 1 ? (a(), B(n(ut), {
|
|
270
270
|
key: 0,
|
|
271
|
-
class:
|
|
272
|
-
onClick: (
|
|
271
|
+
class: E(n(u).e("show__tag__item-close")),
|
|
272
|
+
onClick: (Y) => k(C)
|
|
273
273
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
274
274
|
], 2)
|
|
275
275
|
]),
|
|
@@ -277,35 +277,35 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
277
277
|
}, 8, ["modelValue", "disabled"])
|
|
278
278
|
], 2)
|
|
279
279
|
], 2),
|
|
280
|
-
|
|
281
|
-
class:
|
|
280
|
+
g("section", {
|
|
281
|
+
class: E(n(u).e("unshow"))
|
|
282
282
|
}, [
|
|
283
|
-
|
|
284
|
-
class:
|
|
283
|
+
g("div", {
|
|
284
|
+
class: E(n(u).e("show__title"))
|
|
285
285
|
}, [
|
|
286
|
-
|
|
287
|
-
class:
|
|
288
|
-
},
|
|
286
|
+
g("span", {
|
|
287
|
+
class: E(n(u).e("title__tip"))
|
|
288
|
+
}, L(_.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
289
289
|
], 2),
|
|
290
|
-
|
|
291
|
-
class:
|
|
290
|
+
g("div", {
|
|
291
|
+
class: E(n(u).e("unshow__tag"))
|
|
292
292
|
}, [
|
|
293
|
-
H.value.length > 0 ? (a(!0), S(
|
|
294
|
-
class:
|
|
295
|
-
key:
|
|
296
|
-
onMouseenter: (
|
|
297
|
-
onMouseleave: (
|
|
293
|
+
H.value.length > 0 ? (a(!0), S(G, { key: 0 }, ae(H.value, (C) => (a(), S("div", {
|
|
294
|
+
class: E([n(u).e("unshow__tag__item"), n(u).is("fixed", C.isFixed || ""), n(u).is("linked", C.isLinked || "")]),
|
|
295
|
+
key: C.key,
|
|
296
|
+
onMouseenter: (Y) => Q(C),
|
|
297
|
+
onMouseleave: (Y) => J(C)
|
|
298
298
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
O(L(C.label) + " ", 1),
|
|
300
|
+
C.active ? (a(), S("aside", {
|
|
301
301
|
key: 0,
|
|
302
|
-
class:
|
|
303
|
-
onClick: (
|
|
304
|
-
},
|
|
305
|
-
], 42,
|
|
302
|
+
class: E(n(u).e("unshow__tag__item-add")),
|
|
303
|
+
onClick: (Y) => d(C)
|
|
304
|
+
}, L(_.$t("hbLibComp.hbFormItemFilterModal.add")), 11, St)) : z("", !0)
|
|
305
|
+
], 42, _t))), 128)) : (a(), S("div", {
|
|
306
306
|
key: 1,
|
|
307
|
-
class:
|
|
308
|
-
},
|
|
307
|
+
class: E(n(u).e("unshow__tag__empty"))
|
|
308
|
+
}, L(_.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
309
309
|
], 2)
|
|
310
310
|
], 2)
|
|
311
311
|
]),
|
|
@@ -313,15 +313,15 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
313
313
|
}, 8, ["visible", "width"])
|
|
314
314
|
], 2));
|
|
315
315
|
}
|
|
316
|
-
}), oe = (
|
|
317
|
-
const
|
|
318
|
-
for (const [i,
|
|
319
|
-
|
|
320
|
-
return
|
|
321
|
-
},
|
|
322
|
-
for (const i of [
|
|
323
|
-
|
|
324
|
-
},
|
|
316
|
+
}), oe = (e, f) => {
|
|
317
|
+
const r = e.__vccOpts || e;
|
|
318
|
+
for (const [i, F] of f)
|
|
319
|
+
r[i] = F;
|
|
320
|
+
return r;
|
|
321
|
+
}, Ft = /* @__PURE__ */ oe(wt, [["__scopeId", "data-v-52ee50f2"]]), te = (e, f) => (e.install = (r) => {
|
|
322
|
+
for (const i of [e, ...Object.values({})])
|
|
323
|
+
r.component(i.name, i);
|
|
324
|
+
}, e), xt = te(Ft), Tt = { class: "form-footer" }, $t = /* @__PURE__ */ ee({
|
|
325
325
|
name: "HbLibListForm",
|
|
326
326
|
__name: "HbListForm",
|
|
327
327
|
props: {
|
|
@@ -348,21 +348,21 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
348
348
|
calTableHeight: { type: Function, default: () => () => {
|
|
349
349
|
} }
|
|
350
350
|
},
|
|
351
|
-
emits: ["handleSearch", "handleReset", "handleSfcmConfirm"
|
|
352
|
-
setup(
|
|
353
|
-
const i =
|
|
351
|
+
emits: ["handleSearch", "handleReset", "handleSfcmConfirm"],
|
|
352
|
+
setup(e, { expose: f, emit: r }) {
|
|
353
|
+
const i = r, F = $e("HB_LIST_PAGE_CONTAINER"), m = Ae("form"), b = e, c = P("show"), t = W(() => [...b.items]), u = P(), v = () => {
|
|
354
354
|
i("handleSearch");
|
|
355
|
-
},
|
|
355
|
+
}, R = () => {
|
|
356
356
|
i("handleReset");
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
357
|
+
}, A = P(), V = () => {
|
|
358
|
+
A.value && A.value.toOpenModal();
|
|
359
|
+
}, y = (w) => {
|
|
360
360
|
i("handleSfcmConfirm", w);
|
|
361
|
-
},
|
|
361
|
+
}, p = () => {
|
|
362
362
|
c.value = c.value === "show" ? "hide" : "show";
|
|
363
363
|
};
|
|
364
364
|
se(
|
|
365
|
-
() =>
|
|
365
|
+
() => b.isFormExpanded,
|
|
366
366
|
(w) => {
|
|
367
367
|
if (w) {
|
|
368
368
|
console.log(w);
|
|
@@ -376,167 +376,167 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
376
376
|
const H = (w) => {
|
|
377
377
|
const l = w;
|
|
378
378
|
l.style.height = "", l.offsetHeight;
|
|
379
|
-
},
|
|
379
|
+
}, $ = (w) => {
|
|
380
380
|
const l = w;
|
|
381
|
-
l.style.height = "", l.style.overflow = "",
|
|
382
|
-
|
|
381
|
+
l.style.height = "", l.style.overflow = "", be(() => {
|
|
382
|
+
F.calTableHeight && F.calTableHeight();
|
|
383
383
|
});
|
|
384
|
-
},
|
|
384
|
+
}, U = (w) => {
|
|
385
385
|
const l = w, o = l.querySelector(".hb-lib-form--container");
|
|
386
386
|
if (o) {
|
|
387
|
-
const
|
|
388
|
-
l.style.height =
|
|
387
|
+
const h = o.offsetHeight;
|
|
388
|
+
l.style.height = h + "px", l.style.overflow = "hidden", l.offsetHeight, requestAnimationFrame(() => {
|
|
389
389
|
l.style.height = "0";
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
}, M = () => {
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
be(() => {
|
|
394
|
+
F.calTableHeight && F.calTableHeight();
|
|
395
395
|
});
|
|
396
396
|
};
|
|
397
397
|
return f({
|
|
398
|
-
formRef:
|
|
399
|
-
SelectOption:
|
|
400
|
-
Form:
|
|
401
|
-
FormItem:
|
|
402
|
-
Row:
|
|
398
|
+
formRef: u,
|
|
399
|
+
SelectOption: xe,
|
|
400
|
+
Form: Ue,
|
|
401
|
+
FormItem: Ee,
|
|
402
|
+
Row: vt,
|
|
403
403
|
Col: mt,
|
|
404
|
-
Input:
|
|
405
|
-
Select:
|
|
406
|
-
CheckboxGroup:
|
|
407
|
-
Checkbox:
|
|
408
|
-
DatePicker:
|
|
409
|
-
InputNumber:
|
|
410
|
-
RadioGroup:
|
|
411
|
-
Radio:
|
|
412
|
-
Switch:
|
|
404
|
+
Input: Ve,
|
|
405
|
+
Select: Fe,
|
|
406
|
+
CheckboxGroup: ze,
|
|
407
|
+
Checkbox: pe,
|
|
408
|
+
DatePicker: Ne,
|
|
409
|
+
InputNumber: Pe,
|
|
410
|
+
RadioGroup: Be,
|
|
411
|
+
Radio: Re,
|
|
412
|
+
Switch: Oe,
|
|
413
413
|
Button: ue,
|
|
414
|
-
Tooltip:
|
|
414
|
+
Tooltip: we
|
|
415
415
|
}), (w, l) => {
|
|
416
|
-
const o =
|
|
417
|
-
return a(), S(
|
|
418
|
-
|
|
416
|
+
const o = K("a-button"), h = K("a-tooltip"), k = K("HbLibFormItemFilterModal");
|
|
417
|
+
return a(), S(G, null, [
|
|
418
|
+
x(tt, {
|
|
419
419
|
name: "form-collapse",
|
|
420
420
|
onEnter: H,
|
|
421
|
-
onAfterEnter:
|
|
422
|
-
onLeave:
|
|
421
|
+
onAfterEnter: $,
|
|
422
|
+
onLeave: U,
|
|
423
423
|
onAfterLeave: M
|
|
424
424
|
}, {
|
|
425
425
|
default: s(() => [
|
|
426
|
-
re(
|
|
427
|
-
class:
|
|
426
|
+
re(g("div", {
|
|
427
|
+
class: E([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
428
428
|
}, [
|
|
429
|
-
|
|
430
|
-
model:
|
|
429
|
+
x(n(Ue), X(w.$attrs, {
|
|
430
|
+
model: e.formData,
|
|
431
431
|
ref_key: "formRef",
|
|
432
|
-
ref:
|
|
432
|
+
ref: u,
|
|
433
433
|
class: ["hb-lib-form--container", c.value == "show" ? "" : "hide"]
|
|
434
434
|
}), {
|
|
435
435
|
default: s(() => [
|
|
436
|
-
(a(!0), S(
|
|
437
|
-
key:
|
|
436
|
+
(a(!0), S(G, null, ae(t.value, (d, q) => (a(), B(n(Ee), X({
|
|
437
|
+
key: q,
|
|
438
438
|
ref_for: !0
|
|
439
|
-
},
|
|
440
|
-
name:
|
|
441
|
-
class:
|
|
439
|
+
}, d, {
|
|
440
|
+
name: d.key,
|
|
441
|
+
class: d.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
442
442
|
}), Ge({
|
|
443
443
|
default: s(() => [
|
|
444
|
-
|
|
444
|
+
d.type === "slot" ? j(w.$slots, d.key, {
|
|
445
445
|
key: 0,
|
|
446
|
-
formData:
|
|
447
|
-
item:
|
|
446
|
+
formData: e.formData,
|
|
447
|
+
item: d
|
|
448
448
|
}, void 0, !0) : z("", !0),
|
|
449
|
-
|
|
449
|
+
d.type === "mixin" ? j(w.$slots, d.key, {
|
|
450
450
|
key: 1,
|
|
451
|
-
formData:
|
|
452
|
-
item:
|
|
451
|
+
formData: e.formData,
|
|
452
|
+
item: d
|
|
453
453
|
}, void 0, !0) : z("", !0),
|
|
454
|
-
|
|
454
|
+
d.type === "input" ? (a(), B(n(Ve), X({
|
|
455
455
|
key: 2,
|
|
456
|
-
value:
|
|
457
|
-
"onUpdate:value": (
|
|
458
|
-
}, { ref_for: !0 },
|
|
459
|
-
|
|
456
|
+
value: e.formData[d.key],
|
|
457
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
458
|
+
}, { ref_for: !0 }, d.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
459
|
+
d.type === "select" ? (a(), B(n(Fe), X({
|
|
460
460
|
key: 3,
|
|
461
|
-
value:
|
|
462
|
-
"onUpdate:value": (
|
|
463
|
-
}, { ref_for: !0 },
|
|
461
|
+
value: e.formData[d.key],
|
|
462
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
463
|
+
}, { ref_for: !0 }, d.attrs), {
|
|
464
464
|
default: s(() => [
|
|
465
|
-
(a(!0), S(
|
|
466
|
-
key:
|
|
467
|
-
value:
|
|
465
|
+
(a(!0), S(G, null, ae(d.options, (N, le) => (a(), B(n(xe), {
|
|
466
|
+
key: le,
|
|
467
|
+
value: N.value
|
|
468
468
|
}, {
|
|
469
469
|
default: s(() => [
|
|
470
|
-
|
|
470
|
+
O(L(N.label), 1)
|
|
471
471
|
]),
|
|
472
472
|
_: 2
|
|
473
473
|
}, 1032, ["value"]))), 128))
|
|
474
474
|
]),
|
|
475
475
|
_: 2
|
|
476
476
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
477
|
-
|
|
477
|
+
d.type === "checkbox" ? (a(), B(n(ze), X({
|
|
478
478
|
key: 4,
|
|
479
|
-
value:
|
|
480
|
-
"onUpdate:value": (
|
|
481
|
-
}, { ref_for: !0 },
|
|
479
|
+
value: e.formData[d.key],
|
|
480
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
481
|
+
}, { ref_for: !0 }, d.attrs), {
|
|
482
482
|
default: s(() => [
|
|
483
|
-
(a(!0), S(
|
|
484
|
-
key:
|
|
485
|
-
value:
|
|
483
|
+
(a(!0), S(G, null, ae(d.options, (N, le) => (a(), B(n(pe), {
|
|
484
|
+
key: le,
|
|
485
|
+
value: N.value
|
|
486
486
|
}, {
|
|
487
487
|
default: s(() => [
|
|
488
|
-
|
|
488
|
+
O(L(N.label), 1)
|
|
489
489
|
]),
|
|
490
490
|
_: 2
|
|
491
491
|
}, 1032, ["value"]))), 128))
|
|
492
492
|
]),
|
|
493
493
|
_: 2
|
|
494
494
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
495
|
-
|
|
495
|
+
d.type === "date-picker" ? (a(), B(n(Ne), X({
|
|
496
496
|
key: 5,
|
|
497
|
-
value:
|
|
498
|
-
"onUpdate:value": (
|
|
499
|
-
}, { ref_for: !0 },
|
|
500
|
-
|
|
497
|
+
value: e.formData[d.key],
|
|
498
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
499
|
+
}, { ref_for: !0 }, d.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
500
|
+
d.type === "input-number" ? (a(), B(n(Pe), X({
|
|
501
501
|
key: 6,
|
|
502
|
-
value:
|
|
503
|
-
"onUpdate:value": (
|
|
504
|
-
}, { ref_for: !0 },
|
|
505
|
-
|
|
502
|
+
value: e.formData[d.key],
|
|
503
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
504
|
+
}, { ref_for: !0 }, d.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
505
|
+
d.type === "radio" ? (a(), B(n(Be), X({
|
|
506
506
|
key: 7,
|
|
507
|
-
value:
|
|
508
|
-
"onUpdate:value": (
|
|
509
|
-
}, { ref_for: !0 },
|
|
507
|
+
value: e.formData[d.key],
|
|
508
|
+
"onUpdate:value": (N) => e.formData[d.key] = N
|
|
509
|
+
}, { ref_for: !0 }, d.attrs), {
|
|
510
510
|
default: s(() => [
|
|
511
|
-
(a(!0), S(
|
|
512
|
-
key:
|
|
513
|
-
value:
|
|
511
|
+
(a(!0), S(G, null, ae(d.options, (N, le) => (a(), B(n(Re), {
|
|
512
|
+
key: le,
|
|
513
|
+
value: N.value
|
|
514
514
|
}, {
|
|
515
515
|
default: s(() => [
|
|
516
|
-
|
|
516
|
+
O(L(N.label), 1)
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
519
519
|
}, 1032, ["value"]))), 128))
|
|
520
520
|
]),
|
|
521
521
|
_: 2
|
|
522
522
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
523
|
-
|
|
523
|
+
d.type === "switch" ? (a(), B(n(Oe), X({
|
|
524
524
|
key: 8,
|
|
525
|
-
checked:
|
|
526
|
-
"onUpdate:checked": (
|
|
527
|
-
}, { ref_for: !0 },
|
|
525
|
+
checked: e.formData[d.key],
|
|
526
|
+
"onUpdate:checked": (N) => e.formData[d.key] = N
|
|
527
|
+
}, { ref_for: !0 }, d.attrs), null, 16, ["checked", "onUpdate:checked"])) : z("", !0)
|
|
528
528
|
]),
|
|
529
529
|
_: 2
|
|
530
530
|
}, [
|
|
531
|
-
|
|
531
|
+
d.tooltip ? {
|
|
532
532
|
name: "label",
|
|
533
533
|
fn: s(() => [
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
title:
|
|
534
|
+
O(L(d.label) + " ", 1),
|
|
535
|
+
x(n(we), {
|
|
536
|
+
title: d.tooltip
|
|
537
537
|
}, {
|
|
538
538
|
default: s(() => [
|
|
539
|
-
|
|
539
|
+
x(n(bt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
540
540
|
]),
|
|
541
541
|
_: 1
|
|
542
542
|
}, 8, ["title"])
|
|
@@ -544,39 +544,39 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
544
544
|
key: "0"
|
|
545
545
|
} : void 0
|
|
546
546
|
]), 1040, ["name", "class"]))), 128)),
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
g("section", Tt, [
|
|
548
|
+
x(o, {
|
|
549
549
|
type: "primary",
|
|
550
|
-
onClick:
|
|
550
|
+
onClick: v,
|
|
551
551
|
class: "hb_list_page_button"
|
|
552
552
|
}, {
|
|
553
553
|
icon: s(() => [
|
|
554
|
-
|
|
554
|
+
x(n(Ie))
|
|
555
555
|
]),
|
|
556
556
|
default: s(() => [
|
|
557
|
-
|
|
557
|
+
O(" " + L(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}),
|
|
561
|
-
|
|
561
|
+
x(o, {
|
|
562
562
|
type: "link",
|
|
563
|
-
onClick:
|
|
563
|
+
onClick: R
|
|
564
564
|
}, {
|
|
565
565
|
default: s(() => [
|
|
566
|
-
|
|
566
|
+
O(L(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
569
|
}),
|
|
570
|
-
|
|
570
|
+
e.needFilter ? (a(), B(h, {
|
|
571
571
|
key: 0,
|
|
572
572
|
title: w.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
573
573
|
}, {
|
|
574
574
|
default: s(() => [
|
|
575
|
-
|
|
575
|
+
g("span", {
|
|
576
576
|
class: "hb-lib-form-svg",
|
|
577
|
-
onClick:
|
|
577
|
+
onClick: V
|
|
578
578
|
}, [...l[0] || (l[0] = [
|
|
579
|
-
|
|
579
|
+
g("svg", {
|
|
580
580
|
t: "1757915025410",
|
|
581
581
|
class: "icon",
|
|
582
582
|
viewBox: "0 0 1024 1024",
|
|
@@ -586,7 +586,7 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
586
586
|
width: "200",
|
|
587
587
|
height: "200"
|
|
588
588
|
}, [
|
|
589
|
-
|
|
589
|
+
g("path", {
|
|
590
590
|
d: "M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",
|
|
591
591
|
fill: "#ff5000",
|
|
592
592
|
"p-id": "16347"
|
|
@@ -601,68 +601,68 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
601
601
|
]),
|
|
602
602
|
_: 3
|
|
603
603
|
}, 16, ["model", "class"]),
|
|
604
|
-
|
|
604
|
+
e.needFooter ? (a(), S("div", {
|
|
605
605
|
key: 0,
|
|
606
|
-
class:
|
|
606
|
+
class: E(n(m).e("footer"))
|
|
607
607
|
}, [
|
|
608
|
-
|
|
609
|
-
class:
|
|
608
|
+
g("div", {
|
|
609
|
+
class: E(n(m).e("footer__left"))
|
|
610
610
|
}, [
|
|
611
611
|
j(w.$slots, "form-footer-left", {}, void 0, !0)
|
|
612
612
|
], 2),
|
|
613
|
-
|
|
614
|
-
class:
|
|
613
|
+
g("div", {
|
|
614
|
+
class: E(n(m).e("footer__right"))
|
|
615
615
|
}, [
|
|
616
616
|
c.value == "show" ? j(w.$slots, "form-footer-right", {
|
|
617
617
|
key: 0,
|
|
618
|
-
formRef:
|
|
618
|
+
formRef: u.value
|
|
619
619
|
}, () => [
|
|
620
|
-
|
|
620
|
+
x(n(ue), {
|
|
621
621
|
type: "primary",
|
|
622
|
-
onClick:
|
|
622
|
+
onClick: R
|
|
623
623
|
}, {
|
|
624
624
|
default: s(() => [
|
|
625
|
-
|
|
625
|
+
O(L(w.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
626
626
|
]),
|
|
627
627
|
_: 1
|
|
628
628
|
}),
|
|
629
|
-
|
|
629
|
+
x(n(ue), {
|
|
630
630
|
type: "primary",
|
|
631
|
-
onClick:
|
|
631
|
+
onClick: v
|
|
632
632
|
}, {
|
|
633
633
|
default: s(() => [
|
|
634
|
-
|
|
634
|
+
O(L(w.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
637
|
})
|
|
638
638
|
], !0) : z("", !0),
|
|
639
|
-
|
|
639
|
+
x(n(ue), {
|
|
640
640
|
type: "primary",
|
|
641
|
-
onClick:
|
|
641
|
+
onClick: p
|
|
642
642
|
}, {
|
|
643
643
|
default: s(() => [
|
|
644
|
-
|
|
644
|
+
O(L(c.value == "show" ? `${w.$t("hbLibComp.hbListPageAct.close")}` : `${w.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
645
645
|
]),
|
|
646
646
|
_: 1
|
|
647
647
|
})
|
|
648
648
|
], 2)
|
|
649
649
|
], 2)) : z("", !0)
|
|
650
650
|
], 2), [
|
|
651
|
-
[
|
|
651
|
+
[lt, e.isFormExpanded]
|
|
652
652
|
])
|
|
653
653
|
]),
|
|
654
654
|
_: 3
|
|
655
655
|
}),
|
|
656
|
-
|
|
657
|
-
list:
|
|
656
|
+
x(k, {
|
|
657
|
+
list: t.value,
|
|
658
658
|
ref_key: "HbSfCmRef",
|
|
659
|
-
ref:
|
|
660
|
-
onConfirm:
|
|
659
|
+
ref: A,
|
|
660
|
+
onConfirm: y
|
|
661
661
|
}, null, 8, ["list"])
|
|
662
662
|
], 64);
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
|
-
}),
|
|
665
|
+
}), Mt = /* @__PURE__ */ oe($t, [["__scopeId", "data-v-203a1bd9"]]), It = te(Mt), Ht = { class: "hb-lib-list-page-act-box" }, At = { class: "hb-lib-list-page-breadcrumb" }, Dt = { class: "hb-lib-list-page-act" }, Ot = {
|
|
666
666
|
key: 0,
|
|
667
667
|
t: "1757915338760",
|
|
668
668
|
class: "icon",
|
|
@@ -672,7 +672,7 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
672
672
|
"p-id": "22885",
|
|
673
673
|
width: "200",
|
|
674
674
|
height: "200"
|
|
675
|
-
},
|
|
675
|
+
}, Rt = {
|
|
676
676
|
key: 1,
|
|
677
677
|
t: "1757915360496",
|
|
678
678
|
class: "icon",
|
|
@@ -682,60 +682,56 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
682
682
|
"p-id": "23904",
|
|
683
683
|
width: "200",
|
|
684
684
|
height: "200"
|
|
685
|
-
}, Bt = /* @__PURE__ */
|
|
685
|
+
}, Bt = /* @__PURE__ */ ee({
|
|
686
686
|
name: "HbLibListPageAct",
|
|
687
687
|
__name: "HbListPageAct",
|
|
688
688
|
props: {
|
|
689
|
-
formItems: {},
|
|
690
|
-
isShowSelfFilter: { type: Boolean, default: !0 },
|
|
691
|
-
isShowOpenClose: { type: Boolean, default: !0 },
|
|
692
689
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
693
690
|
},
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
b && (p.value = b.label.replace(/-/g, " / "));
|
|
691
|
+
setup(e) {
|
|
692
|
+
const f = $e("HB_LIST_PAGE_CONTAINER"), { isFullscreen: r, toggle: i } = yt(f.PageContainerRef), F = P(""), m = () => {
|
|
693
|
+
const b = Ze();
|
|
694
|
+
let c = localStorage.getItem("BreadCrumb") || "[]", t = b?.path;
|
|
695
|
+
if (c !== "[]") {
|
|
696
|
+
let u = JSON.parse(c).find((v) => v.value === t);
|
|
697
|
+
u && (F.value = u.label.replace(/-/g, " / "));
|
|
702
698
|
}
|
|
703
699
|
};
|
|
704
|
-
return
|
|
700
|
+
return Me(() => {
|
|
705
701
|
m();
|
|
706
|
-
}), (
|
|
707
|
-
const
|
|
708
|
-
return a(), S("section",
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
title: n(
|
|
702
|
+
}), (b, c) => {
|
|
703
|
+
const t = K("a-tooltip");
|
|
704
|
+
return a(), S("section", Ht, [
|
|
705
|
+
g("aside", At, L(F.value), 1),
|
|
706
|
+
g("aside", Dt, [
|
|
707
|
+
x(t, {
|
|
708
|
+
title: n(r) ? `${b.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${b.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
713
709
|
placement: "leftTop"
|
|
714
710
|
}, {
|
|
715
711
|
default: s(() => [
|
|
716
|
-
|
|
712
|
+
g("span", {
|
|
717
713
|
class: "hb-lib-list-page-act-svg",
|
|
718
|
-
onClick:
|
|
719
|
-
(...
|
|
714
|
+
onClick: c[0] || (c[0] = //@ts-ignore
|
|
715
|
+
(...u) => n(i) && n(i)(...u))
|
|
720
716
|
}, [
|
|
721
|
-
n(
|
|
722
|
-
|
|
717
|
+
n(r) ? (a(), S("svg", Rt, [...c[2] || (c[2] = [
|
|
718
|
+
g("path", {
|
|
723
719
|
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",
|
|
724
720
|
fill: "#ff5000",
|
|
725
721
|
"p-id": "23905"
|
|
726
722
|
}, null, -1),
|
|
727
|
-
|
|
723
|
+
g("path", {
|
|
728
724
|
d: "M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",
|
|
729
725
|
fill: "#ff5000",
|
|
730
726
|
"p-id": "23906"
|
|
731
727
|
}, null, -1),
|
|
732
|
-
|
|
728
|
+
g("path", {
|
|
733
729
|
d: "M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",
|
|
734
730
|
fill: "#ff5000",
|
|
735
731
|
"p-id": "23907"
|
|
736
732
|
}, null, -1)
|
|
737
|
-
])])) : (a(), S("svg",
|
|
738
|
-
|
|
733
|
+
])])) : (a(), S("svg", Ot, [...c[1] || (c[1] = [
|
|
734
|
+
g("path", {
|
|
739
735
|
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",
|
|
740
736
|
fill: "#ff5000",
|
|
741
737
|
"p-id": "22886"
|
|
@@ -745,45 +741,43 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
745
741
|
]),
|
|
746
742
|
_: 1
|
|
747
743
|
}, 8, ["title"]),
|
|
748
|
-
j(
|
|
744
|
+
j(b.$slots, "listAct", {}, void 0, !0)
|
|
749
745
|
])
|
|
750
746
|
]);
|
|
751
747
|
};
|
|
752
748
|
}
|
|
753
|
-
}),
|
|
749
|
+
}), Pt = /* @__PURE__ */ oe(Bt, [["__scopeId", "data-v-a7ddfc50"]]), Nt = te(Pt), zt = { class: "hb-lib-list-btns-box" }, Vt = { class: "hb-lib-list-btns-left" }, Et = { class: "hb-lib-list-btns-right" }, Ut = /* @__PURE__ */ ee({
|
|
754
750
|
name: "HbLibListBtnsAct",
|
|
755
751
|
__name: "HbListBtns",
|
|
756
752
|
props: {
|
|
757
|
-
formItems: { default: () => [] },
|
|
758
|
-
isShowSelfFilter: { type: Boolean, default: !0 },
|
|
759
753
|
needReload: { type: Boolean, default: !0 },
|
|
760
754
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
761
755
|
},
|
|
762
756
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
763
|
-
setup(
|
|
764
|
-
const
|
|
765
|
-
i.value = !i.value,
|
|
766
|
-
},
|
|
767
|
-
|
|
757
|
+
setup(e, { emit: f }) {
|
|
758
|
+
const r = f, i = P(!0), F = () => {
|
|
759
|
+
i.value = !i.value, r("handleOpenOrClose", i.value);
|
|
760
|
+
}, m = () => {
|
|
761
|
+
r("handleReload");
|
|
768
762
|
};
|
|
769
|
-
return
|
|
770
|
-
}), (
|
|
771
|
-
const
|
|
772
|
-
return a(), S("section",
|
|
773
|
-
|
|
774
|
-
j(
|
|
763
|
+
return Me(() => {
|
|
764
|
+
}), (b, c) => {
|
|
765
|
+
const t = K("a-tooltip");
|
|
766
|
+
return a(), S("section", zt, [
|
|
767
|
+
g("aside", Vt, [
|
|
768
|
+
j(b.$slots, "btnsLeft", {}, void 0, !0)
|
|
775
769
|
]),
|
|
776
|
-
|
|
777
|
-
|
|
770
|
+
g("aside", Et, [
|
|
771
|
+
e.needReload ? (a(), B(t, {
|
|
778
772
|
key: 0,
|
|
779
|
-
title:
|
|
773
|
+
title: b.$t("hbLibComp.hbListBtnsAct.reload")
|
|
780
774
|
}, {
|
|
781
775
|
default: s(() => [
|
|
782
|
-
|
|
776
|
+
g("span", {
|
|
783
777
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
784
|
-
onClick:
|
|
778
|
+
onClick: m
|
|
785
779
|
}, [...c[0] || (c[0] = [
|
|
786
|
-
|
|
780
|
+
g("svg", {
|
|
787
781
|
t: "1759041224819",
|
|
788
782
|
class: "icon",
|
|
789
783
|
viewBox: "0 0 1024 1024",
|
|
@@ -793,7 +787,7 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
793
787
|
width: "200",
|
|
794
788
|
height: "200"
|
|
795
789
|
}, [
|
|
796
|
-
|
|
790
|
+
g("path", {
|
|
797
791
|
d: "M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",
|
|
798
792
|
fill: "#ff5000",
|
|
799
793
|
"p-id": "4203"
|
|
@@ -803,19 +797,19 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
803
797
|
]),
|
|
804
798
|
_: 1
|
|
805
799
|
}, 8, ["title"])) : z("", !0),
|
|
806
|
-
|
|
800
|
+
e.needOpenOrClose ? (a(), B(t, {
|
|
807
801
|
key: 1,
|
|
808
|
-
title: i.value ? `${
|
|
802
|
+
title: i.value ? `${b.$t("hbLibComp.hbListBtnsAct.close")}` : `${b.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
809
803
|
}, {
|
|
810
804
|
default: s(() => [
|
|
811
|
-
|
|
805
|
+
g("span", {
|
|
812
806
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
813
|
-
onClick:
|
|
807
|
+
onClick: F
|
|
814
808
|
}, [
|
|
815
|
-
i.value ? (a(),
|
|
809
|
+
i.value ? (a(), B(n(ht), {
|
|
816
810
|
key: 0,
|
|
817
811
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
818
|
-
})) : (a(),
|
|
812
|
+
})) : (a(), B(n(ft), {
|
|
819
813
|
key: 1,
|
|
820
814
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
821
815
|
}))
|
|
@@ -823,88 +817,88 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
823
817
|
]),
|
|
824
818
|
_: 1
|
|
825
819
|
}, 8, ["title"])) : z("", !0),
|
|
826
|
-
j(
|
|
820
|
+
j(b.$slots, "btnsRight", {}, void 0, !0)
|
|
827
821
|
])
|
|
828
822
|
]);
|
|
829
823
|
};
|
|
830
824
|
}
|
|
831
|
-
}),
|
|
832
|
-
const { formRef: f, offsetBottom:
|
|
833
|
-
let
|
|
834
|
-
const
|
|
835
|
-
|
|
825
|
+
}), Yt = /* @__PURE__ */ oe(Ut, [["__scopeId", "data-v-da13672b"]]), jt = te(Yt), qt = (e = {}) => {
|
|
826
|
+
const { formRef: f, offsetBottom: r = 50, minHeight: i = 300 } = e, F = P(0);
|
|
827
|
+
let m = null, b = null, c = null, t = null, u = null;
|
|
828
|
+
const v = () => {
|
|
829
|
+
u && clearTimeout(u), u = setTimeout(() => {
|
|
836
830
|
requestAnimationFrame(() => {
|
|
837
|
-
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
840
|
-
const M =
|
|
841
|
-
let
|
|
842
|
-
|
|
831
|
+
be(() => {
|
|
832
|
+
const $ = document.querySelector(".ant-table"), U = document.querySelector(".ant-pagination");
|
|
833
|
+
if ($) {
|
|
834
|
+
const M = $.getBoundingClientRect().top, w = window.innerHeight, o = (U ? U.offsetHeight + 20 : 40) + r;
|
|
835
|
+
let h = w - M - o;
|
|
836
|
+
h < i && (h = i), F.value = h;
|
|
843
837
|
}
|
|
844
838
|
});
|
|
845
839
|
});
|
|
846
840
|
}, 100);
|
|
847
|
-
},
|
|
848
|
-
const
|
|
849
|
-
if (
|
|
850
|
-
const
|
|
851
|
-
|
|
841
|
+
}, R = () => {
|
|
842
|
+
const $ = document.querySelector(".ant-pagination");
|
|
843
|
+
if ($) {
|
|
844
|
+
const U = new MutationObserver(() => {
|
|
845
|
+
v();
|
|
852
846
|
});
|
|
853
|
-
return
|
|
847
|
+
return U.observe($, {
|
|
854
848
|
childList: !0,
|
|
855
849
|
subtree: !0,
|
|
856
850
|
attributes: !0,
|
|
857
851
|
attributeFilter: ["style", "class"]
|
|
858
|
-
}),
|
|
852
|
+
}), U;
|
|
859
853
|
}
|
|
860
854
|
return null;
|
|
861
|
-
},
|
|
862
|
-
const
|
|
863
|
-
|
|
855
|
+
}, A = () => {
|
|
856
|
+
const $ = document.querySelector(".hb-lib-list-page-form-box");
|
|
857
|
+
$ && (m = new ResizeObserver(() => {
|
|
864
858
|
document.querySelectorAll(".ant-tooltip").forEach((M) => {
|
|
865
859
|
M.style.display = "none";
|
|
866
|
-
}),
|
|
867
|
-
}),
|
|
868
|
-
},
|
|
869
|
-
const
|
|
870
|
-
|
|
860
|
+
}), v();
|
|
861
|
+
}), m.observe($));
|
|
862
|
+
}, V = () => {
|
|
863
|
+
const $ = document.querySelector(".hb-lib-list-page-form-box");
|
|
864
|
+
$ && (c = new MutationObserver(() => {
|
|
871
865
|
setTimeout(() => {
|
|
872
|
-
|
|
866
|
+
v();
|
|
873
867
|
}, 100);
|
|
874
|
-
}), c.observe(
|
|
868
|
+
}), c.observe($, {
|
|
875
869
|
childList: !0,
|
|
876
870
|
subtree: !0,
|
|
877
871
|
attributes: !0,
|
|
878
872
|
attributeFilter: ["style", "class"]
|
|
879
873
|
}));
|
|
880
|
-
},
|
|
881
|
-
|
|
882
|
-
|
|
874
|
+
}, y = () => {
|
|
875
|
+
t && clearTimeout(t), t = setTimeout(() => {
|
|
876
|
+
v();
|
|
883
877
|
}, 100);
|
|
884
|
-
},
|
|
885
|
-
window.addEventListener("resize",
|
|
886
|
-
|
|
878
|
+
}, p = () => {
|
|
879
|
+
window.addEventListener("resize", y), be(() => {
|
|
880
|
+
A(), V(), b = R();
|
|
887
881
|
});
|
|
888
882
|
}, H = () => {
|
|
889
|
-
window.removeEventListener("resize",
|
|
883
|
+
window.removeEventListener("resize", y), m && m.disconnect(), c && c.disconnect(), b && b.disconnect(), t && clearTimeout(t), u && clearTimeout(u);
|
|
890
884
|
};
|
|
891
885
|
return f && se(
|
|
892
886
|
() => f,
|
|
893
887
|
() => {
|
|
894
888
|
setTimeout(() => {
|
|
895
|
-
|
|
889
|
+
v();
|
|
896
890
|
}, 200);
|
|
897
891
|
},
|
|
898
892
|
{ deep: !0 }
|
|
899
|
-
),
|
|
900
|
-
|
|
901
|
-
}),
|
|
893
|
+
), Me(() => {
|
|
894
|
+
v(), p();
|
|
895
|
+
}), ot(() => {
|
|
902
896
|
H();
|
|
903
897
|
}), {
|
|
904
|
-
tableHeight:
|
|
905
|
-
calTableHeight:
|
|
898
|
+
tableHeight: F,
|
|
899
|
+
calTableHeight: v
|
|
906
900
|
};
|
|
907
|
-
},
|
|
901
|
+
}, Kt = /* @__PURE__ */ ee({
|
|
908
902
|
name: "HbLibListPageContainer",
|
|
909
903
|
__name: "HbListPageContainer",
|
|
910
904
|
props: {
|
|
@@ -913,52 +907,51 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
913
907
|
offsetBottom: {},
|
|
914
908
|
minHeight: {}
|
|
915
909
|
},
|
|
916
|
-
setup(
|
|
917
|
-
const f =
|
|
910
|
+
setup(e) {
|
|
911
|
+
const f = e, r = at("PageContainerRef"), { calTableHeight: i, tableHeight: F } = qt({
|
|
918
912
|
offsetBottom: f.offsetBottom || 20,
|
|
919
913
|
// 底部预留空间
|
|
920
914
|
minHeight: f.minHeight || 300
|
|
921
915
|
// table最小高度 请勿随便修改!!
|
|
922
|
-
}),
|
|
923
|
-
return
|
|
924
|
-
PageContainerRef:
|
|
916
|
+
}), m = W(() => F.value);
|
|
917
|
+
return nt("HB_LIST_PAGE_CONTAINER", {
|
|
918
|
+
PageContainerRef: r,
|
|
925
919
|
// 通过函数访问,
|
|
926
|
-
tableHeight:
|
|
920
|
+
tableHeight: F,
|
|
927
921
|
calTableHeight: i
|
|
928
|
-
}), (
|
|
922
|
+
}), (b, c) => (a(), S("section", {
|
|
929
923
|
class: "hb-lib-list-page-container",
|
|
930
924
|
ref_key: "PageContainerRef",
|
|
931
|
-
ref:
|
|
925
|
+
ref: r
|
|
932
926
|
}, [
|
|
933
|
-
j(
|
|
934
|
-
|
|
927
|
+
j(b.$slots, "header"),
|
|
928
|
+
g("section", {
|
|
935
929
|
class: "list-page-box",
|
|
936
|
-
style:
|
|
937
|
-
"--hb-list-table-height":
|
|
938
|
-
"--hb-list-ttable-height":
|
|
930
|
+
style: me({
|
|
931
|
+
"--hb-list-table-height": m.value - 20 + "px",
|
|
932
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value - 20 + "px"
|
|
939
933
|
})
|
|
940
934
|
}, [
|
|
941
|
-
j(
|
|
935
|
+
j(b.$slots, "default")
|
|
942
936
|
], 4)
|
|
943
937
|
], 512));
|
|
944
938
|
}
|
|
945
|
-
}),
|
|
939
|
+
}), Wt = te(Kt), Jt = { style: { "font-weight": "500" } }, Gt = {
|
|
946
940
|
key: 0,
|
|
947
941
|
class: "hb-lib-search-tag__description"
|
|
948
|
-
},
|
|
942
|
+
}, Qt = { class: "hb-lib-selector-dropdown" }, Zt = { class: "hb-lib-selector-search" }, Xt = { class: "hb-lib-selector-list" }, el = ["onClick"], tl = { class: "hb-lib-option-content" }, ll = { class: "hb-lib-option-label" }, ol = {
|
|
949
943
|
key: 0,
|
|
950
944
|
class: "hb-lib-selector-empty"
|
|
951
|
-
},
|
|
945
|
+
}, al = {
|
|
952
946
|
key: 1,
|
|
953
947
|
class: "hb-lib-selector-footer"
|
|
954
|
-
},
|
|
948
|
+
}, nl = { class: "hb-lib-footer-buttons" }, sl = {
|
|
955
949
|
key: 2,
|
|
956
950
|
class: "hb-lib-selector-footer"
|
|
957
|
-
},
|
|
951
|
+
}, il = { class: "hb-lib-footer-buttons" }, rl = /* @__PURE__ */ ee({
|
|
958
952
|
name: "HbLibListMultiSelect",
|
|
959
953
|
__name: "HbListMultiSelect",
|
|
960
|
-
props: /* @__PURE__ */
|
|
961
|
-
title: { default: "请选择" },
|
|
954
|
+
props: /* @__PURE__ */ ke({
|
|
962
955
|
placeholder: { default: "点击选择" },
|
|
963
956
|
searchPlaceholder: { default: "搜索选项" },
|
|
964
957
|
width: { default: 600 },
|
|
@@ -974,183 +967,183 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
974
967
|
value: {},
|
|
975
968
|
valueModifiers: {}
|
|
976
969
|
}),
|
|
977
|
-
emits: /* @__PURE__ */
|
|
978
|
-
setup(
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
const l =
|
|
982
|
-
return
|
|
983
|
-
}),
|
|
984
|
-
if (
|
|
985
|
-
const l =
|
|
986
|
-
return l > 0 && l <
|
|
970
|
+
emits: /* @__PURE__ */ ke(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
971
|
+
setup(e, { emit: f }) {
|
|
972
|
+
const r = e, i = f, F = Qe(e, "value"), m = P(!1), b = P(""), c = P([]), t = P(), u = W(() => {
|
|
973
|
+
if (r.remoteSearch || !b.value) return r.options;
|
|
974
|
+
const l = b.value.toLowerCase();
|
|
975
|
+
return r.options.filter((o) => o.label.toLowerCase().includes(l) || o.description?.toLowerCase().includes(l));
|
|
976
|
+
}), v = W(() => r.prefix ? `${r.prefix.length * 14 + 8}px` : "0px"), R = W(() => u.value.length === 0 ? !1 : u.value.every((l) => c.value.includes(l.value))), A = W(() => {
|
|
977
|
+
if (u.value.length === 0) return !1;
|
|
978
|
+
const l = u.value.filter((o) => c.value.includes(o.value)).length;
|
|
979
|
+
return l > 0 && l < u.value.length;
|
|
987
980
|
});
|
|
988
981
|
se(
|
|
989
|
-
() =>
|
|
982
|
+
() => F.value,
|
|
990
983
|
(l) => {
|
|
991
984
|
l ? c.value = Array.isArray(l) ? [...l] : [l] : c.value = [];
|
|
992
985
|
},
|
|
993
986
|
{ immediate: !0 }
|
|
994
987
|
), se(
|
|
995
|
-
() =>
|
|
988
|
+
() => r.searchValue,
|
|
996
989
|
(l) => {
|
|
997
|
-
|
|
990
|
+
r.remoteSearch && l !== void 0 && (b.value = l);
|
|
998
991
|
},
|
|
999
992
|
{ immediate: !0 }
|
|
1000
993
|
);
|
|
1001
|
-
const
|
|
1002
|
-
l && (
|
|
1003
|
-
if (
|
|
1004
|
-
const o =
|
|
994
|
+
const V = (l) => {
|
|
995
|
+
l && (m.value = l, y.value = [...c.value], b.value = "", setTimeout(() => {
|
|
996
|
+
if (t.value) {
|
|
997
|
+
const o = t.value.input || t.value.$el?.querySelector("input");
|
|
1005
998
|
o && o.focus();
|
|
1006
999
|
}
|
|
1007
1000
|
}, 100));
|
|
1008
|
-
},
|
|
1009
|
-
c.value = [...
|
|
1010
|
-
}, H =
|
|
1011
|
-
const l =
|
|
1012
|
-
H.value = o, console.log(l, o),
|
|
1013
|
-
},
|
|
1014
|
-
const o = l !== void 0 ? l :
|
|
1015
|
-
|
|
1001
|
+
}, y = P([]), p = () => {
|
|
1002
|
+
c.value = [...y.value], m.value = !1, i("cancel");
|
|
1003
|
+
}, H = P([]), $ = () => {
|
|
1004
|
+
const l = r.multiple ? c.value : c.value[0] || "", o = r.options.filter((h) => c.value.includes(h.value));
|
|
1005
|
+
H.value = o, console.log(l, o), y.value = [...c.value], F.value = l, i("update:value", l), i("change", l, o), i("confirm", l, o), m.value = !1;
|
|
1006
|
+
}, U = Ct((l) => {
|
|
1007
|
+
const o = l !== void 0 ? l : b.value;
|
|
1008
|
+
r.remoteSearch && (i("search", o), i("update:searchValue", o));
|
|
1016
1009
|
}, 300), M = (l) => {
|
|
1017
|
-
if (
|
|
1010
|
+
if (r.multiple) {
|
|
1018
1011
|
const o = new Set(c.value);
|
|
1019
1012
|
o.has(l.value) ? o.delete(l.value) : o.add(l.value), c.value = Array.from(o);
|
|
1020
1013
|
} else
|
|
1021
|
-
c.value = [l.value],
|
|
1014
|
+
c.value = [l.value], $();
|
|
1022
1015
|
}, w = (l) => {
|
|
1023
1016
|
if (l.target.checked) {
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}), c.value = Array.from(
|
|
1017
|
+
const h = new Set(c.value);
|
|
1018
|
+
u.value.forEach((k) => {
|
|
1019
|
+
h.add(k.value);
|
|
1020
|
+
}), c.value = Array.from(h);
|
|
1028
1021
|
} else {
|
|
1029
|
-
const
|
|
1030
|
-
c.value = c.value.filter((
|
|
1022
|
+
const h = new Set(u.value.map((k) => k.value));
|
|
1023
|
+
c.value = c.value.filter((k) => !h.has(k));
|
|
1031
1024
|
}
|
|
1032
1025
|
};
|
|
1033
1026
|
return (l, o) => {
|
|
1034
|
-
const
|
|
1027
|
+
const h = K("a-tag"), k = K("a-input"), d = K("a-checkbox"), q = K("a-radio"), N = K("a-button"), le = K("a-select");
|
|
1035
1028
|
return a(), S("div", X({
|
|
1036
1029
|
class: "hb-lib-selector-wrapper",
|
|
1037
|
-
style: { "--prefix-width":
|
|
1030
|
+
style: { "--prefix-width": v.value }
|
|
1038
1031
|
}, l.$attrs), [
|
|
1039
|
-
|
|
1040
|
-
value:
|
|
1041
|
-
"onUpdate:value": o[5] || (o[5] = (
|
|
1042
|
-
mode:
|
|
1043
|
-
placeholder:
|
|
1032
|
+
x(le, {
|
|
1033
|
+
value: F.value,
|
|
1034
|
+
"onUpdate:value": o[5] || (o[5] = (Q) => F.value = Q),
|
|
1035
|
+
mode: e.multiple ? "multiple" : void 0,
|
|
1036
|
+
placeholder: e.placeholder,
|
|
1044
1037
|
"show-search": !0,
|
|
1045
1038
|
"filter-option": !1,
|
|
1046
|
-
open:
|
|
1039
|
+
open: m.value,
|
|
1047
1040
|
allowClear: "",
|
|
1048
|
-
maxTagCount:
|
|
1049
|
-
options:
|
|
1050
|
-
onDropdownVisibleChange:
|
|
1051
|
-
onSearch: n(
|
|
1052
|
-
"max-tag-text-length":
|
|
1053
|
-
class:
|
|
1054
|
-
"data-prefix":
|
|
1041
|
+
maxTagCount: e.maxTagCount,
|
|
1042
|
+
options: u.value,
|
|
1043
|
+
onDropdownVisibleChange: V,
|
|
1044
|
+
onSearch: n(U),
|
|
1045
|
+
"max-tag-text-length": e.tagTextLength,
|
|
1046
|
+
class: E({ "has-prefix": e.prefix }),
|
|
1047
|
+
"data-prefix": e.prefix,
|
|
1055
1048
|
style: { width: "100%" }
|
|
1056
1049
|
}, {
|
|
1057
|
-
tagRender: s(({ value:
|
|
1058
|
-
|
|
1050
|
+
tagRender: s(({ value: Q, label: J, closable: _, option: I }) => [
|
|
1051
|
+
x(h, {
|
|
1059
1052
|
class: "hb-lib-search-tag",
|
|
1060
|
-
onClick: o[0] || (o[0] = () =>
|
|
1053
|
+
onClick: o[0] || (o[0] = () => V(!0))
|
|
1061
1054
|
}, {
|
|
1062
1055
|
default: s(() => [
|
|
1063
|
-
|
|
1064
|
-
I?.description ? (a(), S("span",
|
|
1056
|
+
g("span", Jt, L(J), 1),
|
|
1057
|
+
I?.description ? (a(), S("span", Gt, " (" + L(I.description) + ") ", 1)) : z("", !0)
|
|
1065
1058
|
]),
|
|
1066
1059
|
_: 2
|
|
1067
1060
|
}, 1024)
|
|
1068
1061
|
]),
|
|
1069
|
-
dropdownRender: s(({ menuNode:
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1062
|
+
dropdownRender: s(({ menuNode: Q }) => [
|
|
1063
|
+
g("div", Qt, [
|
|
1064
|
+
g("div", Zt, [
|
|
1065
|
+
x(k, {
|
|
1073
1066
|
ref_key: "searchInputRef",
|
|
1074
|
-
ref:
|
|
1067
|
+
ref: t,
|
|
1075
1068
|
class: "hb-lib-selector-search-input",
|
|
1076
|
-
value:
|
|
1077
|
-
"onUpdate:value": o[1] || (o[1] = (
|
|
1069
|
+
value: b.value,
|
|
1070
|
+
"onUpdate:value": o[1] || (o[1] = (J) => b.value = J),
|
|
1078
1071
|
placeholder: "请输入关键词搜索",
|
|
1079
1072
|
"allow-clear": "",
|
|
1080
|
-
onInput: o[2] || (o[2] = (
|
|
1073
|
+
onInput: o[2] || (o[2] = (J) => n(U)(J.target.value))
|
|
1081
1074
|
}, {
|
|
1082
1075
|
prefix: s(() => [
|
|
1083
|
-
|
|
1076
|
+
x(n(Ie))
|
|
1084
1077
|
]),
|
|
1085
1078
|
_: 1
|
|
1086
1079
|
}, 8, ["value"])
|
|
1087
1080
|
]),
|
|
1088
|
-
|
|
1089
|
-
(a(!0), S(
|
|
1090
|
-
key:
|
|
1091
|
-
class:
|
|
1092
|
-
onClick: () => M(
|
|
1081
|
+
g("div", Xt, [
|
|
1082
|
+
(a(!0), S(G, null, ae(u.value, (J) => (a(), S("div", {
|
|
1083
|
+
key: J.value,
|
|
1084
|
+
class: E(["hb-lib-selector-option", { selected: c.value.includes(J.value) }]),
|
|
1085
|
+
onClick: () => M(J)
|
|
1093
1086
|
}, [
|
|
1094
|
-
|
|
1087
|
+
e.multiple ? (a(), B(d, {
|
|
1095
1088
|
key: 0,
|
|
1096
|
-
checked: c.value.includes(
|
|
1097
|
-
onChange: () => M(
|
|
1098
|
-
onClick: o[3] || (o[3] =
|
|
1089
|
+
checked: c.value.includes(J.value),
|
|
1090
|
+
onChange: () => M(J),
|
|
1091
|
+
onClick: o[3] || (o[3] = _e(() => {
|
|
1099
1092
|
}, ["stop"]))
|
|
1100
|
-
}, null, 8, ["checked", "onChange"])) : (a(),
|
|
1093
|
+
}, null, 8, ["checked", "onChange"])) : (a(), B(q, {
|
|
1101
1094
|
key: 1,
|
|
1102
|
-
checked: c.value.includes(
|
|
1103
|
-
onChange: () => M(
|
|
1104
|
-
onClick: o[4] || (o[4] =
|
|
1095
|
+
checked: c.value.includes(J.value),
|
|
1096
|
+
onChange: () => M(J),
|
|
1097
|
+
onClick: o[4] || (o[4] = _e(() => {
|
|
1105
1098
|
}, ["stop"]))
|
|
1106
1099
|
}, null, 8, ["checked", "onChange"])),
|
|
1107
|
-
|
|
1108
|
-
|
|
1100
|
+
g("div", tl, [
|
|
1101
|
+
g("div", ll, L(J.label), 1)
|
|
1109
1102
|
])
|
|
1110
|
-
], 10,
|
|
1103
|
+
], 10, el))), 128))
|
|
1111
1104
|
]),
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
checked:
|
|
1116
|
-
indeterminate:
|
|
1105
|
+
u.value.length === 0 ? (a(), S("div", ol, L(l.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1106
|
+
e.multiple ? (a(), S("div", al, [
|
|
1107
|
+
x(d, {
|
|
1108
|
+
checked: R.value,
|
|
1109
|
+
indeterminate: A.value,
|
|
1117
1110
|
onChange: w
|
|
1118
1111
|
}, {
|
|
1119
1112
|
default: s(() => [
|
|
1120
|
-
|
|
1113
|
+
O(L(l.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1121
1114
|
]),
|
|
1122
1115
|
_: 1
|
|
1123
1116
|
}, 8, ["checked", "indeterminate"]),
|
|
1124
|
-
|
|
1125
|
-
|
|
1117
|
+
g("div", nl, [
|
|
1118
|
+
x(N, {
|
|
1126
1119
|
size: "small",
|
|
1127
|
-
onClick:
|
|
1120
|
+
onClick: p
|
|
1128
1121
|
}, {
|
|
1129
1122
|
default: s(() => [
|
|
1130
|
-
|
|
1123
|
+
O(L(l.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1131
1124
|
]),
|
|
1132
1125
|
_: 1
|
|
1133
1126
|
}),
|
|
1134
|
-
|
|
1127
|
+
x(N, {
|
|
1135
1128
|
type: "primary",
|
|
1136
1129
|
size: "small",
|
|
1137
|
-
onClick:
|
|
1130
|
+
onClick: $
|
|
1138
1131
|
}, {
|
|
1139
1132
|
default: s(() => [
|
|
1140
|
-
|
|
1133
|
+
O(L(l.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1141
1134
|
]),
|
|
1142
1135
|
_: 1
|
|
1143
1136
|
})
|
|
1144
1137
|
])
|
|
1145
|
-
])) : (a(), S("div",
|
|
1146
|
-
o[6] || (o[6] =
|
|
1147
|
-
|
|
1148
|
-
|
|
1138
|
+
])) : (a(), S("div", sl, [
|
|
1139
|
+
o[6] || (o[6] = g("div", null, null, -1)),
|
|
1140
|
+
g("div", il, [
|
|
1141
|
+
x(N, {
|
|
1149
1142
|
size: "small",
|
|
1150
|
-
onClick:
|
|
1143
|
+
onClick: p
|
|
1151
1144
|
}, {
|
|
1152
1145
|
default: s(() => [
|
|
1153
|
-
|
|
1146
|
+
O(L(l.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1154
1147
|
]),
|
|
1155
1148
|
_: 1
|
|
1156
1149
|
})
|
|
@@ -1163,7 +1156,7 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1163
1156
|
], 16);
|
|
1164
1157
|
};
|
|
1165
1158
|
}
|
|
1166
|
-
}),
|
|
1159
|
+
}), cl = /* @__PURE__ */ oe(rl, [["__scopeId", "data-v-87177371"]]), dl = te(cl), ul = { class: "hb-lib-form-item-filter-modal-search" }, bl = { class: "hb-lib-form-item-filter-modal-buttons" }, hl = { key: 0 }, fl = /* @__PURE__ */ ee({
|
|
1167
1160
|
name: "HbLibMutilpleSelectModal",
|
|
1168
1161
|
__name: "HbMutilpleSelectModal",
|
|
1169
1162
|
props: {
|
|
@@ -1176,146 +1169,146 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1176
1169
|
labelKey: { default: "label" }
|
|
1177
1170
|
},
|
|
1178
1171
|
emits: ["handleConfirm", "handleCancel"],
|
|
1179
|
-
setup(
|
|
1180
|
-
const i =
|
|
1172
|
+
setup(e, { expose: f, emit: r }) {
|
|
1173
|
+
const i = e, F = r, m = P(!1), b = P(""), c = P(), t = P(), u = P([]), v = P([]), R = P(), A = Je({
|
|
1181
1174
|
searchText: "",
|
|
1182
1175
|
searchedColumn: ""
|
|
1183
|
-
}),
|
|
1184
|
-
|
|
1176
|
+
}), V = W(() => i.tableData.map((h) => (h.id = h.id || Math.random(), h))), y = W(() => i.tableColumn.map((h) => (h.customFilterDropdown && (h.onFilter = (k, d) => d[h.dataIndex].toString().toLowerCase().includes(k.toLowerCase()), h.onFilterDropdownVisibleChange = (k) => {
|
|
1177
|
+
k && setTimeout(() => {
|
|
1185
1178
|
c.value?.focus();
|
|
1186
1179
|
}, 100);
|
|
1187
|
-
}), { ...
|
|
1188
|
-
let
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
}),
|
|
1180
|
+
}), { ...h }))), p = () => {
|
|
1181
|
+
let h = "";
|
|
1182
|
+
v.value.forEach((k) => {
|
|
1183
|
+
h = h + k[i.labelKey] + ",";
|
|
1184
|
+
}), b.value = h.substring(0, h.length - 1), m.value = !1, F("handleConfirm", v.value);
|
|
1192
1185
|
}, H = () => {
|
|
1193
|
-
|
|
1194
|
-
},
|
|
1195
|
-
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1186
|
+
m.value = !1;
|
|
1187
|
+
}, $ = () => {
|
|
1188
|
+
m.value = !0, be(() => {
|
|
1189
|
+
const h = R.value?.$el?.querySelector(".ant-table-body");
|
|
1190
|
+
h && (h.scrollTop = 0);
|
|
1198
1191
|
});
|
|
1199
|
-
},
|
|
1200
|
-
|
|
1192
|
+
}, U = () => {
|
|
1193
|
+
u.value = [], v.value = [];
|
|
1201
1194
|
}, M = () => {
|
|
1202
|
-
|
|
1203
|
-
}, w = (
|
|
1204
|
-
|
|
1205
|
-
}, l = (
|
|
1206
|
-
|
|
1207
|
-
}, o = (
|
|
1208
|
-
|
|
1195
|
+
b.value = "", U();
|
|
1196
|
+
}, w = (h, k, d) => {
|
|
1197
|
+
k(), A.searchText = h[0], A.searchedColumn = d;
|
|
1198
|
+
}, l = (h, k) => {
|
|
1199
|
+
h({ confirm: !0 }), A.searchText = "", k();
|
|
1200
|
+
}, o = (h, k) => {
|
|
1201
|
+
u.value = h, v.value = k;
|
|
1209
1202
|
};
|
|
1210
1203
|
return f({
|
|
1211
1204
|
resetInputVal: M
|
|
1212
|
-
}), (
|
|
1213
|
-
const
|
|
1205
|
+
}), (h, k) => {
|
|
1206
|
+
const d = K("a-input"), q = K("a-button"), N = K("a-table"), le = K("a-modal");
|
|
1214
1207
|
return a(), S("div", {
|
|
1215
1208
|
class: "hb-lib-multipleSelectModal-box",
|
|
1216
1209
|
ref_key: "hbMultipSelectModalRef",
|
|
1217
|
-
ref:
|
|
1210
|
+
ref: t
|
|
1218
1211
|
}, [
|
|
1219
|
-
|
|
1212
|
+
x(d, {
|
|
1220
1213
|
readonly: "",
|
|
1221
|
-
onClick:
|
|
1222
|
-
value:
|
|
1223
|
-
"onUpdate:value":
|
|
1224
|
-
placeholder:
|
|
1214
|
+
onClick: $,
|
|
1215
|
+
value: b.value,
|
|
1216
|
+
"onUpdate:value": k[0] || (k[0] = (Q) => b.value = Q),
|
|
1217
|
+
placeholder: h.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1225
1218
|
}, {
|
|
1226
1219
|
addonAfter: s(() => [
|
|
1227
|
-
|
|
1220
|
+
x(n(pt), { onClick: $ })
|
|
1228
1221
|
]),
|
|
1229
1222
|
_: 1
|
|
1230
1223
|
}, 8, ["value", "placeholder"]),
|
|
1231
|
-
|
|
1232
|
-
visible:
|
|
1233
|
-
"onUpdate:visible":
|
|
1234
|
-
title:
|
|
1235
|
-
width:
|
|
1224
|
+
x(le, {
|
|
1225
|
+
visible: m.value,
|
|
1226
|
+
"onUpdate:visible": k[1] || (k[1] = (Q) => m.value = Q),
|
|
1227
|
+
title: e.modelTitle,
|
|
1228
|
+
width: e.modalWidth,
|
|
1236
1229
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1237
1230
|
}, {
|
|
1238
1231
|
footer: s(() => [
|
|
1239
|
-
|
|
1232
|
+
x(q, { onClick: U }, {
|
|
1240
1233
|
default: s(() => [
|
|
1241
|
-
|
|
1234
|
+
O(L(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1242
1235
|
]),
|
|
1243
1236
|
_: 1
|
|
1244
1237
|
}),
|
|
1245
|
-
|
|
1238
|
+
x(q, { onClick: H }, {
|
|
1246
1239
|
default: s(() => [
|
|
1247
|
-
|
|
1240
|
+
O(L(h.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1248
1241
|
]),
|
|
1249
1242
|
_: 1
|
|
1250
1243
|
}),
|
|
1251
|
-
|
|
1244
|
+
x(q, {
|
|
1252
1245
|
type: "primary",
|
|
1253
|
-
onClick:
|
|
1246
|
+
onClick: p
|
|
1254
1247
|
}, {
|
|
1255
1248
|
default: s(() => [
|
|
1256
|
-
|
|
1249
|
+
O(L(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1257
1250
|
]),
|
|
1258
1251
|
_: 1
|
|
1259
1252
|
})
|
|
1260
1253
|
]),
|
|
1261
1254
|
default: s(() => [
|
|
1262
|
-
|
|
1255
|
+
x(N, {
|
|
1263
1256
|
ref_key: "tableRef",
|
|
1264
|
-
ref:
|
|
1265
|
-
columns:
|
|
1266
|
-
dataSource:
|
|
1267
|
-
rowSelection: { selectedRowKeys:
|
|
1268
|
-
rowKey: (
|
|
1269
|
-
scroll: { y:
|
|
1257
|
+
ref: R,
|
|
1258
|
+
columns: y.value,
|
|
1259
|
+
dataSource: V.value,
|
|
1260
|
+
rowSelection: { selectedRowKeys: u.value, onChange: o },
|
|
1261
|
+
rowKey: (Q) => Q[e.tableKey],
|
|
1262
|
+
scroll: { y: e.tableHeight }
|
|
1270
1263
|
}, {
|
|
1271
|
-
customFilterDropdown: s(({ setSelectedKeys:
|
|
1272
|
-
|
|
1273
|
-
|
|
1264
|
+
customFilterDropdown: s(({ setSelectedKeys: Q, selectedKeys: J, confirm: _, clearFilters: I, column: C }) => [
|
|
1265
|
+
g("div", ul, [
|
|
1266
|
+
x(d, {
|
|
1274
1267
|
ref_key: "searchInput",
|
|
1275
1268
|
ref: c,
|
|
1276
|
-
placeholder: `请输入${
|
|
1277
|
-
value:
|
|
1269
|
+
placeholder: `请输入${C.title}`,
|
|
1270
|
+
value: J[0],
|
|
1278
1271
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1279
|
-
onChange: (
|
|
1280
|
-
onPressEnter: (
|
|
1272
|
+
onChange: (Y) => Q(Y.target.value ? [Y.target.value] : []),
|
|
1273
|
+
onPressEnter: (Y) => w(J, _, C.dataIndex)
|
|
1281
1274
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1282
|
-
|
|
1283
|
-
|
|
1275
|
+
g("section", bl, [
|
|
1276
|
+
x(q, {
|
|
1284
1277
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1285
1278
|
type: "ghost",
|
|
1286
|
-
onClick: (
|
|
1279
|
+
onClick: (Y) => l(I, _)
|
|
1287
1280
|
}, {
|
|
1288
1281
|
default: s(() => [
|
|
1289
|
-
|
|
1282
|
+
O(L(h.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1290
1283
|
]),
|
|
1291
1284
|
_: 1
|
|
1292
1285
|
}, 8, ["onClick"]),
|
|
1293
|
-
|
|
1286
|
+
x(q, {
|
|
1294
1287
|
type: "primary",
|
|
1295
1288
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1296
|
-
onClick: (
|
|
1289
|
+
onClick: (Y) => w(J, _, C.dataIndex)
|
|
1297
1290
|
}, {
|
|
1298
1291
|
default: s(() => [
|
|
1299
|
-
|
|
1292
|
+
O(L(h.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1300
1293
|
]),
|
|
1301
1294
|
_: 1
|
|
1302
1295
|
}, 8, ["onClick"])
|
|
1303
1296
|
])
|
|
1304
1297
|
])
|
|
1305
1298
|
]),
|
|
1306
|
-
customFilterIcon: s(({ filtered:
|
|
1307
|
-
|
|
1308
|
-
style:
|
|
1299
|
+
customFilterIcon: s(({ filtered: Q }) => [
|
|
1300
|
+
x(n(Ie), {
|
|
1301
|
+
style: me({ color: Q ? "#108ee9" : void 0 })
|
|
1309
1302
|
}, null, 8, ["style"])
|
|
1310
1303
|
]),
|
|
1311
|
-
bodyCell: s(({ text:
|
|
1312
|
-
|
|
1313
|
-
(a(!0), S(
|
|
1314
|
-
_.toLowerCase() ===
|
|
1304
|
+
bodyCell: s(({ text: Q, column: J }) => [
|
|
1305
|
+
A.searchText && A.searchedColumn === J.dataIndex ? (a(), S("span", hl, [
|
|
1306
|
+
(a(!0), S(G, null, ae(Q.toString().split(new RegExp(`(?<=${A.searchText})|(?=${A.searchText})`, "i")), (_, I) => (a(), S(G, null, [
|
|
1307
|
+
_.toLowerCase() === A.searchText.toLowerCase() ? (a(), S("mark", {
|
|
1315
1308
|
key: I,
|
|
1316
1309
|
class: "highlight"
|
|
1317
|
-
},
|
|
1318
|
-
|
|
1310
|
+
}, L(_), 1)) : (a(), S(G, { key: 1 }, [
|
|
1311
|
+
O(L(_), 1)
|
|
1319
1312
|
], 64))
|
|
1320
1313
|
], 64))), 256))
|
|
1321
1314
|
])) : z("", !0)
|
|
@@ -1328,13 +1321,13 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1328
1321
|
], 512);
|
|
1329
1322
|
};
|
|
1330
1323
|
}
|
|
1331
|
-
}),
|
|
1324
|
+
}), pl = te(fl), ml = { class: "hb-lib-table-act-box" }, vl = ["onClick"], gl = {
|
|
1332
1325
|
href: "javascript:;",
|
|
1333
1326
|
class: "hb-lib-table-main-action"
|
|
1334
|
-
},
|
|
1327
|
+
}, yl = ["onClick"], Cl = {
|
|
1335
1328
|
href: "javascript:;",
|
|
1336
1329
|
class: "hb-lib-table-more-action"
|
|
1337
|
-
},
|
|
1330
|
+
}, Ll = ["onClick"], kl = { href: "javascript:;" }, _l = ["onClick"], Sl = { class: "hb-lib-table-confirm-modal-content" }, wl = /* @__PURE__ */ ee({
|
|
1338
1331
|
name: "HbLibTableAct",
|
|
1339
1332
|
__name: "HbTableAct",
|
|
1340
1333
|
props: {
|
|
@@ -1342,25 +1335,25 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1342
1335
|
record: {},
|
|
1343
1336
|
buttonDisplaysQuantity: {}
|
|
1344
1337
|
},
|
|
1345
|
-
setup(
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1348
|
-
},
|
|
1349
|
-
|
|
1350
|
-
},
|
|
1351
|
-
if (
|
|
1352
|
-
|
|
1338
|
+
setup(e, { expose: f }) {
|
|
1339
|
+
const r = e, { t: i } = ce(), F = P(!1), m = P(!1), b = P(null), c = W(() => r.actions.filter((p) => p.condition !== void 0 ? p.condition : !0)), t = W(() => c.value.slice(0, r.buttonDisplaysQuantity)), u = W(() => c.value.slice(r.buttonDisplaysQuantity)), v = (p) => {
|
|
1340
|
+
p.handler && p.handler(r.record);
|
|
1341
|
+
}, R = (p) => {
|
|
1342
|
+
b.value = p, F.value = !0;
|
|
1343
|
+
}, A = () => {
|
|
1344
|
+
if (b.value) {
|
|
1345
|
+
m.value = !0;
|
|
1353
1346
|
try {
|
|
1354
|
-
b
|
|
1347
|
+
v(b.value), m.value = !1, F.value = !1;
|
|
1355
1348
|
} catch {
|
|
1356
|
-
|
|
1349
|
+
m.value = !1;
|
|
1357
1350
|
}
|
|
1358
1351
|
}
|
|
1359
|
-
},
|
|
1360
|
-
|
|
1361
|
-
},
|
|
1362
|
-
title:
|
|
1363
|
-
content:
|
|
1352
|
+
}, V = () => {
|
|
1353
|
+
F.value = !1, b.value = null;
|
|
1354
|
+
}, y = W(() => b.value ? {
|
|
1355
|
+
title: b.value.confirmTitle,
|
|
1356
|
+
content: b.value.confirmContent || b.value.confirmTitle
|
|
1364
1357
|
} : {
|
|
1365
1358
|
title: i("hbLibComp.hbTableAct.secendConfirm"),
|
|
1366
1359
|
content: i("hbLibComp.hbTableAct.confirmContent")
|
|
@@ -1370,79 +1363,79 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1370
1363
|
AMenu: je,
|
|
1371
1364
|
AMenuItem: Ye,
|
|
1372
1365
|
APopconfirm: Ce,
|
|
1373
|
-
AModal:
|
|
1374
|
-
DownOutlined:
|
|
1375
|
-
}), (
|
|
1376
|
-
const
|
|
1366
|
+
AModal: Se,
|
|
1367
|
+
DownOutlined: De
|
|
1368
|
+
}), (p, H) => {
|
|
1369
|
+
const $ = K("a-divider"), U = st("has");
|
|
1377
1370
|
return a(), S("div", ml, [
|
|
1378
|
-
(a(!0), S(
|
|
1379
|
-
M.needConfirm ? (a(), S(
|
|
1371
|
+
(a(!0), S(G, null, ae(t.value, (M, w) => (a(), S(G, { key: w }, [
|
|
1372
|
+
M.needConfirm ? (a(), S(G, { key: 0 }, [
|
|
1380
1373
|
M.confirmType === "modal" ? re((a(), S("a", {
|
|
1381
1374
|
key: 0,
|
|
1382
1375
|
href: "javascript:;",
|
|
1383
|
-
onClick: (l) =>
|
|
1376
|
+
onClick: (l) => R(M),
|
|
1384
1377
|
class: "hb-lib-table-main-action"
|
|
1385
1378
|
}, [
|
|
1386
|
-
|
|
1387
|
-
], 8,
|
|
1388
|
-
[
|
|
1389
|
-
]) : (a(),
|
|
1379
|
+
O(L(M.label), 1)
|
|
1380
|
+
], 8, vl)), [
|
|
1381
|
+
[U, M.permissionsTag || null]
|
|
1382
|
+
]) : (a(), B(n(Ce), {
|
|
1390
1383
|
key: 1,
|
|
1391
1384
|
title: M.confirmTitle,
|
|
1392
|
-
onConfirm: (l) =>
|
|
1385
|
+
onConfirm: (l) => v(M)
|
|
1393
1386
|
}, {
|
|
1394
1387
|
default: s(() => [
|
|
1395
|
-
re((a(), S("a",
|
|
1396
|
-
|
|
1388
|
+
re((a(), S("a", gl, [
|
|
1389
|
+
O(L(M.label), 1)
|
|
1397
1390
|
])), [
|
|
1398
|
-
[
|
|
1391
|
+
[U, M.permissionsTag || null]
|
|
1399
1392
|
])
|
|
1400
1393
|
]),
|
|
1401
1394
|
_: 2
|
|
1402
1395
|
}, 1032, ["title", "onConfirm"]))
|
|
1403
|
-
], 64)) : (a(), S(
|
|
1396
|
+
], 64)) : (a(), S(G, { key: 1 }, [
|
|
1404
1397
|
re((a(), S("a", {
|
|
1405
1398
|
href: "javascript:;",
|
|
1406
|
-
onClick: (l) =>
|
|
1399
|
+
onClick: (l) => v(M),
|
|
1407
1400
|
class: "hb-lib-table-main-action"
|
|
1408
1401
|
}, [
|
|
1409
|
-
|
|
1410
|
-
], 8,
|
|
1411
|
-
[
|
|
1402
|
+
O(L(M.label), 1)
|
|
1403
|
+
], 8, yl)), [
|
|
1404
|
+
[U, M.permissionsTag || null]
|
|
1412
1405
|
]),
|
|
1413
|
-
|
|
1406
|
+
u.value && u.value.length > 0 || w !== t.value.length - 1 ? (a(), B($, {
|
|
1414
1407
|
key: 0,
|
|
1415
1408
|
type: "vertical"
|
|
1416
1409
|
})) : z("", !0)
|
|
1417
1410
|
], 64))
|
|
1418
1411
|
], 64))), 128)),
|
|
1419
|
-
|
|
1412
|
+
u.value && u.value.length > 0 ? (a(), B(n(qe), { key: 0 }, {
|
|
1420
1413
|
overlay: s(() => [
|
|
1421
|
-
|
|
1414
|
+
x(n(je), null, {
|
|
1422
1415
|
default: s(() => [
|
|
1423
|
-
(a(!0), S(
|
|
1416
|
+
(a(!0), S(G, null, ae(u.value, (M) => (a(), B(n(Ye), {
|
|
1424
1417
|
key: M.key
|
|
1425
1418
|
}, {
|
|
1426
1419
|
default: s(() => [
|
|
1427
|
-
M.needConfirm ? (a(), S(
|
|
1420
|
+
M.needConfirm ? (a(), S(G, { key: 0 }, [
|
|
1428
1421
|
M.confirmType === "modal" ? re((a(), S("a", {
|
|
1429
1422
|
key: 0,
|
|
1430
1423
|
href: "javascript:;",
|
|
1431
|
-
onClick: (w) =>
|
|
1424
|
+
onClick: (w) => R(M)
|
|
1432
1425
|
}, [
|
|
1433
|
-
|
|
1434
|
-
], 8,
|
|
1435
|
-
[
|
|
1436
|
-
]) : (a(),
|
|
1426
|
+
O(L(M.label), 1)
|
|
1427
|
+
], 8, Ll)), [
|
|
1428
|
+
[U, M.permissionsTag || null]
|
|
1429
|
+
]) : (a(), B(n(Ce), {
|
|
1437
1430
|
key: 1,
|
|
1438
1431
|
title: M.confirmTitle,
|
|
1439
|
-
onConfirm: (w) =>
|
|
1432
|
+
onConfirm: (w) => v(M)
|
|
1440
1433
|
}, {
|
|
1441
1434
|
default: s(() => [
|
|
1442
|
-
re((a(), S("a",
|
|
1443
|
-
|
|
1435
|
+
re((a(), S("a", kl, [
|
|
1436
|
+
O(L(M.label), 1)
|
|
1444
1437
|
])), [
|
|
1445
|
-
[
|
|
1438
|
+
[U, M.permissionsTag || null]
|
|
1446
1439
|
])
|
|
1447
1440
|
]),
|
|
1448
1441
|
_: 2
|
|
@@ -1450,11 +1443,11 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1450
1443
|
], 64)) : re((a(), S("a", {
|
|
1451
1444
|
key: 1,
|
|
1452
1445
|
href: "javascript:;",
|
|
1453
|
-
onClick: (w) =>
|
|
1446
|
+
onClick: (w) => v(M)
|
|
1454
1447
|
}, [
|
|
1455
|
-
|
|
1456
|
-
], 8,
|
|
1457
|
-
[
|
|
1448
|
+
O(L(M.label), 1)
|
|
1449
|
+
], 8, _l)), [
|
|
1450
|
+
[U, M.permissionsTag || null]
|
|
1458
1451
|
])
|
|
1459
1452
|
]),
|
|
1460
1453
|
_: 2
|
|
@@ -1464,59 +1457,58 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1464
1457
|
})
|
|
1465
1458
|
]),
|
|
1466
1459
|
default: s(() => [
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1460
|
+
g("a", Cl, [
|
|
1461
|
+
O(L(p.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1462
|
+
x(n(De), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1470
1463
|
])
|
|
1471
1464
|
]),
|
|
1472
1465
|
_: 1
|
|
1473
1466
|
})) : z("", !0),
|
|
1474
|
-
|
|
1475
|
-
visible:
|
|
1476
|
-
title:
|
|
1477
|
-
"confirm-loading":
|
|
1478
|
-
onOk:
|
|
1479
|
-
onCancel:
|
|
1467
|
+
x(n(Se), {
|
|
1468
|
+
visible: F.value,
|
|
1469
|
+
title: y.value.title,
|
|
1470
|
+
"confirm-loading": m.value,
|
|
1471
|
+
onOk: A,
|
|
1472
|
+
onCancel: V
|
|
1480
1473
|
}, {
|
|
1481
1474
|
default: s(() => [
|
|
1482
|
-
|
|
1475
|
+
g("p", Sl, L(y.value.content), 1)
|
|
1483
1476
|
]),
|
|
1484
1477
|
_: 1
|
|
1485
1478
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1486
1479
|
]);
|
|
1487
1480
|
};
|
|
1488
1481
|
}
|
|
1489
|
-
}),
|
|
1490
|
-
const
|
|
1491
|
-
return !
|
|
1482
|
+
}), Fl = /* @__PURE__ */ oe(wl, [["__scopeId", "data-v-ecac600b"]]), xl = te(Fl), Tl = (e) => ({ tableWidth: W(() => {
|
|
1483
|
+
const r = Array.isArray(e) ? e : e.value;
|
|
1484
|
+
return !r || r.length === 0 ? 0 : r.map((i) => i.width && Number(i.width.toString().replace("px", "")) || 0).reduce((i, F) => i + F, 0);
|
|
1492
1485
|
}) }), $l = {
|
|
1493
1486
|
key: 0,
|
|
1494
1487
|
class: "hb-lib-list-table-act"
|
|
1495
|
-
},
|
|
1488
|
+
}, Ml = { class: "empty-container" }, Il = /* @__PURE__ */ ee({
|
|
1496
1489
|
name: "HbLibListTable",
|
|
1497
1490
|
__name: "HbListTable",
|
|
1498
1491
|
props: {
|
|
1499
1492
|
columns: {},
|
|
1500
|
-
childColumns: {},
|
|
1501
1493
|
rowHeight: {},
|
|
1502
1494
|
defaultWidth: { default: () => 150 },
|
|
1503
1495
|
tooltipPlacement: { default: () => "topLeft" }
|
|
1504
1496
|
},
|
|
1505
|
-
setup(
|
|
1506
|
-
const { t: f } = ce(),
|
|
1497
|
+
setup(e) {
|
|
1498
|
+
const { t: f } = ce(), r = e, i = P([]), F = $e("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Tl(W(() => r.columns));
|
|
1507
1499
|
se(
|
|
1508
|
-
() =>
|
|
1509
|
-
(
|
|
1510
|
-
const
|
|
1511
|
-
i.value =
|
|
1512
|
-
let
|
|
1513
|
-
if (
|
|
1514
|
-
|
|
1515
|
-
else if (typeof
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1500
|
+
() => r.columns,
|
|
1501
|
+
(t) => {
|
|
1502
|
+
const u = t.filter((v) => v != null && v.checked);
|
|
1503
|
+
i.value = u.map((v) => {
|
|
1504
|
+
let R = { ...v, title: v.title || v.label };
|
|
1505
|
+
if (R.ellipsis && !R.needTooltip && (R.needTooltip = !0), !R.width)
|
|
1506
|
+
R.width = r.defaultWidth;
|
|
1507
|
+
else if (typeof R.width == "string") {
|
|
1508
|
+
const A = parseInt(R.width, 10);
|
|
1509
|
+
R.width = isNaN(A) ? r.defaultWidth : A;
|
|
1518
1510
|
}
|
|
1519
|
-
return
|
|
1511
|
+
return R.resizable === void 0 && (R.resizable = !0), R;
|
|
1520
1512
|
});
|
|
1521
1513
|
},
|
|
1522
1514
|
{
|
|
@@ -1524,173 +1516,173 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1524
1516
|
deep: !0
|
|
1525
1517
|
}
|
|
1526
1518
|
);
|
|
1527
|
-
const
|
|
1528
|
-
if (
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1519
|
+
const b = (t, u) => {
|
|
1520
|
+
if (u) {
|
|
1521
|
+
const v = typeof t == "string" ? parseInt(t, 10) : t;
|
|
1522
|
+
u.width = isNaN(v) ? 150 : v;
|
|
1531
1523
|
}
|
|
1532
|
-
}, c = (
|
|
1533
|
-
return (
|
|
1534
|
-
const
|
|
1524
|
+
}, c = (t, u = "YYYY-MM-DD HH:mm:ss") => t ? He(t).format(u) : "";
|
|
1525
|
+
return (t, u) => {
|
|
1526
|
+
const v = K("a-empty"), R = K("a-tooltip"), A = K("HbLibCopy"), V = K("a-table");
|
|
1535
1527
|
return a(), S("div", {
|
|
1536
|
-
class:
|
|
1537
|
-
style:
|
|
1528
|
+
class: E(["hb-lib-list-table", { "nowrap-table": r.rowHeight }]),
|
|
1529
|
+
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1538
1530
|
}, [
|
|
1539
|
-
|
|
1540
|
-
j(
|
|
1541
|
-
j(
|
|
1531
|
+
t.$slots.tableActLeft ? (a(), S("section", $l, [
|
|
1532
|
+
j(t.$slots, "tableActLeft", {}, void 0, !0),
|
|
1533
|
+
j(t.$slots, "tableActRight", {}, void 0, !0)
|
|
1542
1534
|
])) : z("", !0),
|
|
1543
|
-
|
|
1535
|
+
x(V, X(t.$attrs, {
|
|
1544
1536
|
bordered: "",
|
|
1545
1537
|
columns: i.value,
|
|
1546
|
-
onResizeColumn:
|
|
1538
|
+
onResizeColumn: b,
|
|
1547
1539
|
scroll: {
|
|
1548
|
-
x: n(
|
|
1549
|
-
y: n(
|
|
1540
|
+
x: n(m),
|
|
1541
|
+
y: n(F).tableHeight
|
|
1550
1542
|
}
|
|
1551
1543
|
}), Ge({
|
|
1552
1544
|
emptyText: s(() => [
|
|
1553
|
-
|
|
1554
|
-
|
|
1545
|
+
g("div", Ml, [
|
|
1546
|
+
x(v, {
|
|
1555
1547
|
description: n(f)("hbLibComp.hbListTable.noData")
|
|
1556
1548
|
}, null, 8, ["description"])
|
|
1557
1549
|
])
|
|
1558
1550
|
]),
|
|
1559
1551
|
_: 2
|
|
1560
1552
|
}, [
|
|
1561
|
-
|
|
1553
|
+
t.$slots.headerCell ? {
|
|
1562
1554
|
name: "headerCell",
|
|
1563
|
-
fn: s(({ column:
|
|
1564
|
-
j(
|
|
1565
|
-
|
|
1555
|
+
fn: s(({ column: y }) => [
|
|
1556
|
+
j(t.$slots, "headerCell", { column: y }, () => [
|
|
1557
|
+
O(L(y.title), 1)
|
|
1566
1558
|
], !0)
|
|
1567
1559
|
]),
|
|
1568
1560
|
key: "0"
|
|
1569
1561
|
} : void 0,
|
|
1570
|
-
|
|
1562
|
+
t.$slots.bodyCell ? {
|
|
1571
1563
|
name: "bodyCell",
|
|
1572
|
-
fn: s(({ column:
|
|
1573
|
-
j(
|
|
1574
|
-
column:
|
|
1575
|
-
record:
|
|
1564
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1565
|
+
j(t.$slots, "bodyCell", {
|
|
1566
|
+
column: y,
|
|
1567
|
+
record: p,
|
|
1576
1568
|
index: H,
|
|
1577
|
-
text:
|
|
1569
|
+
text: $
|
|
1578
1570
|
}, void 0, !0),
|
|
1579
|
-
|
|
1571
|
+
y && y.needTooltip ? (a(), B(R, {
|
|
1580
1572
|
key: 0,
|
|
1581
|
-
placement:
|
|
1573
|
+
placement: e.tooltipPlacement
|
|
1582
1574
|
}, {
|
|
1583
1575
|
title: s(() => [
|
|
1584
|
-
|
|
1576
|
+
O(L(p[y.dataIndex]), 1)
|
|
1585
1577
|
]),
|
|
1586
1578
|
default: s(() => [
|
|
1587
|
-
|
|
1579
|
+
O(" " + L(p[y.dataIndex]), 1)
|
|
1588
1580
|
]),
|
|
1589
1581
|
_: 2
|
|
1590
1582
|
}, 1032, ["placement"])) : z("", !0),
|
|
1591
|
-
|
|
1583
|
+
y && y.needCopy ? (a(), B(A, {
|
|
1592
1584
|
key: 1,
|
|
1593
|
-
"cp-text":
|
|
1585
|
+
"cp-text": p[y.dataIndex],
|
|
1594
1586
|
style: { position: "relative" }
|
|
1595
1587
|
}, null, 8, ["cp-text"])) : z("", !0),
|
|
1596
|
-
|
|
1597
|
-
|
|
1588
|
+
y && y.needFormat ? (a(), S(G, { key: 2 }, [
|
|
1589
|
+
O(L(c(p[y.dataIndex], y.format)), 1)
|
|
1598
1590
|
], 64)) : z("", !0)
|
|
1599
1591
|
]),
|
|
1600
1592
|
key: "1"
|
|
1601
1593
|
} : void 0,
|
|
1602
|
-
|
|
1594
|
+
t.$slots.expandedRowRender ? {
|
|
1603
1595
|
name: "expandedRowRender",
|
|
1604
|
-
fn: s(({ column:
|
|
1605
|
-
j(
|
|
1606
|
-
record:
|
|
1607
|
-
column:
|
|
1596
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1597
|
+
j(t.$slots, "expandedRowRender", {
|
|
1598
|
+
record: p,
|
|
1599
|
+
column: y,
|
|
1608
1600
|
index: H,
|
|
1609
|
-
text:
|
|
1601
|
+
text: $
|
|
1610
1602
|
}, void 0, !0)
|
|
1611
1603
|
]),
|
|
1612
1604
|
key: "2"
|
|
1613
1605
|
} : void 0,
|
|
1614
|
-
|
|
1606
|
+
t.$slots.customFilterDropdown ? {
|
|
1615
1607
|
name: "customFilterDropdown",
|
|
1616
|
-
fn: s(({ column:
|
|
1617
|
-
j(
|
|
1618
|
-
record:
|
|
1619
|
-
column:
|
|
1608
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1609
|
+
j(t.$slots, "customFilterDropdown", {
|
|
1610
|
+
record: p,
|
|
1611
|
+
column: y,
|
|
1620
1612
|
index: H,
|
|
1621
|
-
text:
|
|
1613
|
+
text: $
|
|
1622
1614
|
}, void 0, !0)
|
|
1623
1615
|
]),
|
|
1624
1616
|
key: "3"
|
|
1625
1617
|
} : void 0,
|
|
1626
|
-
|
|
1618
|
+
t.$slots.customFilterIcon ? {
|
|
1627
1619
|
name: "customFilterIcon",
|
|
1628
|
-
fn: s(({ column:
|
|
1629
|
-
j(
|
|
1630
|
-
record:
|
|
1631
|
-
column:
|
|
1620
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1621
|
+
j(t.$slots, "customFilterIcon", {
|
|
1622
|
+
record: p,
|
|
1623
|
+
column: y,
|
|
1632
1624
|
index: H,
|
|
1633
|
-
text:
|
|
1625
|
+
text: $
|
|
1634
1626
|
}, void 0, !0)
|
|
1635
1627
|
]),
|
|
1636
1628
|
key: "4"
|
|
1637
1629
|
} : void 0,
|
|
1638
|
-
|
|
1630
|
+
t.$slots.expandIcon ? {
|
|
1639
1631
|
name: "expandIcon",
|
|
1640
|
-
fn: s(({ column:
|
|
1641
|
-
j(
|
|
1642
|
-
record:
|
|
1643
|
-
column:
|
|
1632
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1633
|
+
j(t.$slots, "expandIcon", {
|
|
1634
|
+
record: p,
|
|
1635
|
+
column: y,
|
|
1644
1636
|
index: H,
|
|
1645
|
-
text:
|
|
1637
|
+
text: $
|
|
1646
1638
|
}, void 0, !0)
|
|
1647
1639
|
]),
|
|
1648
1640
|
key: "5"
|
|
1649
1641
|
} : void 0,
|
|
1650
|
-
|
|
1642
|
+
t.$slots.footer ? {
|
|
1651
1643
|
name: "footer",
|
|
1652
|
-
fn: s(({ column:
|
|
1653
|
-
j(
|
|
1654
|
-
record:
|
|
1655
|
-
column:
|
|
1644
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1645
|
+
j(t.$slots, "footer", {
|
|
1646
|
+
record: p,
|
|
1647
|
+
column: y,
|
|
1656
1648
|
index: H,
|
|
1657
|
-
text:
|
|
1649
|
+
text: $
|
|
1658
1650
|
}, void 0, !0)
|
|
1659
1651
|
]),
|
|
1660
1652
|
key: "6"
|
|
1661
1653
|
} : void 0,
|
|
1662
|
-
|
|
1654
|
+
t.$slots.headerCell ? {
|
|
1663
1655
|
name: "headerCell",
|
|
1664
|
-
fn: s(({ column:
|
|
1665
|
-
j(
|
|
1666
|
-
record:
|
|
1667
|
-
column:
|
|
1656
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1657
|
+
j(t.$slots, "headerCell", {
|
|
1658
|
+
record: p,
|
|
1659
|
+
column: y,
|
|
1668
1660
|
index: H,
|
|
1669
|
-
text:
|
|
1661
|
+
text: $
|
|
1670
1662
|
}, void 0, !0)
|
|
1671
1663
|
]),
|
|
1672
1664
|
key: "7"
|
|
1673
1665
|
} : void 0,
|
|
1674
|
-
|
|
1666
|
+
t.$slots.summary ? {
|
|
1675
1667
|
name: "summary",
|
|
1676
|
-
fn: s(({ column:
|
|
1677
|
-
j(
|
|
1678
|
-
record:
|
|
1679
|
-
column:
|
|
1668
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1669
|
+
j(t.$slots, "summary", {
|
|
1670
|
+
record: p,
|
|
1671
|
+
column: y,
|
|
1680
1672
|
index: H,
|
|
1681
|
-
text:
|
|
1673
|
+
text: $
|
|
1682
1674
|
}, void 0, !0)
|
|
1683
1675
|
]),
|
|
1684
1676
|
key: "8"
|
|
1685
1677
|
} : void 0,
|
|
1686
|
-
|
|
1678
|
+
t.$slots.title ? {
|
|
1687
1679
|
name: "title",
|
|
1688
|
-
fn: s(({ column:
|
|
1689
|
-
j(
|
|
1690
|
-
record:
|
|
1691
|
-
column:
|
|
1680
|
+
fn: s(({ column: y, record: p, index: H, text: $ }) => [
|
|
1681
|
+
j(t.$slots, "title", {
|
|
1682
|
+
record: p,
|
|
1683
|
+
column: y,
|
|
1692
1684
|
index: H,
|
|
1693
|
-
text:
|
|
1685
|
+
text: $
|
|
1694
1686
|
}, void 0, !0)
|
|
1695
1687
|
]),
|
|
1696
1688
|
key: "9"
|
|
@@ -1699,16 +1691,16 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1699
1691
|
], 6);
|
|
1700
1692
|
};
|
|
1701
1693
|
}
|
|
1702
|
-
}),
|
|
1694
|
+
}), Hl = /* @__PURE__ */ oe(Il, [["__scopeId", "data-v-d4abbf25"]]), Al = te(Hl), Dl = { class: "hb-lib-table-setting-box" }, Ol = {
|
|
1703
1695
|
key: 0,
|
|
1704
1696
|
class: "hb-lib-table-drag-item"
|
|
1705
|
-
},
|
|
1697
|
+
}, Rl = {
|
|
1706
1698
|
key: 0,
|
|
1707
1699
|
class: "hb-lib-table-drag-item-act"
|
|
1708
|
-
}, Bl = ["onClick"],
|
|
1700
|
+
}, Bl = ["onClick"], Pl = ["onClick"], Nl = { class: "hb-lib-table-set-btn-group" }, zl = {
|
|
1709
1701
|
class: "select-all-container",
|
|
1710
1702
|
style: { "margin-right": "10px" }
|
|
1711
|
-
},
|
|
1703
|
+
}, Vl = /* @__PURE__ */ ee({
|
|
1712
1704
|
name: "HbLibTableColumnSet",
|
|
1713
1705
|
__name: "HbTableColumnSet",
|
|
1714
1706
|
props: {
|
|
@@ -1739,120 +1731,120 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1739
1731
|
default: []
|
|
1740
1732
|
}
|
|
1741
1733
|
},
|
|
1742
|
-
emits: ["on-get-columns"
|
|
1743
|
-
setup(
|
|
1744
|
-
const
|
|
1745
|
-
|
|
1746
|
-
const c =
|
|
1747
|
-
|
|
1748
|
-
},
|
|
1734
|
+
emits: ["on-get-columns"],
|
|
1735
|
+
setup(e, { emit: f }) {
|
|
1736
|
+
const r = f, { t: i } = ce(), F = e, m = P([]), b = W(() => t.value.filter((l) => l.checked));
|
|
1737
|
+
P([]);
|
|
1738
|
+
const c = P(!1), t = P([]), u = P(null), v = W(() => b.value.length > 0 && b.value.length === m.value.length), R = W(() => b.value.length > 0 && b.value.length < m.value.length), A = (l) => {
|
|
1739
|
+
u.value = l.oldIndex;
|
|
1740
|
+
}, V = (l) => {
|
|
1749
1741
|
const o = l.newIndex;
|
|
1750
|
-
if (
|
|
1751
|
-
const
|
|
1752
|
-
if ((
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1742
|
+
if (m.value.some((k) => k.fixed === "left" || k.fixed === "right" || k.fixed === !0)) {
|
|
1743
|
+
const k = m.value.filter((q) => q.fixed === "left").length, d = m.value.length - m.value.filter((q) => q.fixed === "right").length;
|
|
1744
|
+
if ((k > 0 && o < k || d < m.value.length && o >= d) && (Te.warning(i("hbLibComp.hbLibListTableColumsSet.errorTip")), u.value !== null)) {
|
|
1745
|
+
const q = t.value.splice(o, 1)[0];
|
|
1746
|
+
t.value.splice(u.value, 0, q);
|
|
1755
1747
|
}
|
|
1756
1748
|
}
|
|
1757
|
-
|
|
1758
|
-
},
|
|
1759
|
-
l.target.checked ?
|
|
1760
|
-
},
|
|
1749
|
+
u.value = null;
|
|
1750
|
+
}, y = (l) => {
|
|
1751
|
+
l.target.checked ? t.value.forEach((h) => h.checked = !0) : t.value.forEach((h) => h.checked = !1);
|
|
1752
|
+
}, p = (l, o) => {
|
|
1761
1753
|
o ? l.checked = !0 : l.checked = !1;
|
|
1762
1754
|
}, H = () => {
|
|
1763
|
-
|
|
1764
|
-
},
|
|
1765
|
-
|
|
1755
|
+
m.value = [...t.value], r("on-get-columns", m.value), c.value = !1;
|
|
1756
|
+
}, $ = () => {
|
|
1757
|
+
m.value = F.tableColumns.map((o) => ({
|
|
1766
1758
|
...o,
|
|
1767
|
-
label: o.title && o.title.tag ?
|
|
1759
|
+
label: o.title && o.title.tag ? U(o.title) : o.title || o.title2,
|
|
1768
1760
|
value: o.dataIndex,
|
|
1769
1761
|
checked: o.checked || o.checked === void 0
|
|
1770
|
-
})),
|
|
1762
|
+
})), t.value = [...m.value];
|
|
1771
1763
|
let l = [];
|
|
1772
|
-
|
|
1764
|
+
F.tableColumns.forEach(function(o) {
|
|
1773
1765
|
l.push(o.dataIndex);
|
|
1774
1766
|
});
|
|
1775
|
-
},
|
|
1767
|
+
}, U = (l) => l.children[0].text, M = (l) => {
|
|
1776
1768
|
delete l.fixed;
|
|
1777
|
-
const o =
|
|
1769
|
+
const o = t.value.findIndex((h) => h.value === l.value);
|
|
1778
1770
|
if (o !== -1) {
|
|
1779
|
-
let
|
|
1780
|
-
for (let
|
|
1781
|
-
|
|
1782
|
-
if (
|
|
1783
|
-
const
|
|
1784
|
-
|
|
1771
|
+
let h = -1;
|
|
1772
|
+
for (let k = 0; k < t.value.length; k++)
|
|
1773
|
+
t.value[k].fixed === "left" && (h = k);
|
|
1774
|
+
if (h !== -1 && o !== h + 1) {
|
|
1775
|
+
const k = [...t.value], [d] = k.splice(o, 1);
|
|
1776
|
+
k.splice(h + 1, 0, d), t.value = k;
|
|
1785
1777
|
}
|
|
1786
1778
|
}
|
|
1787
1779
|
}, w = (l) => {
|
|
1788
|
-
const o =
|
|
1780
|
+
const o = t.value.findIndex((h) => h.value === l.value);
|
|
1789
1781
|
if (o !== -1) {
|
|
1790
|
-
let
|
|
1791
|
-
for (let
|
|
1792
|
-
|
|
1793
|
-
if (
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1782
|
+
let h = -1;
|
|
1783
|
+
for (let k = 0; k < t.value.length; k++)
|
|
1784
|
+
t.value[k].fixed === "left" && (h = k);
|
|
1785
|
+
if (h !== -1 && o !== h + 1) {
|
|
1786
|
+
const k = [...t.value], d = k.splice(o, 1);
|
|
1787
|
+
d[0].fixed = "left", k.splice(h + 1, 0, d[0]), t.value = k;
|
|
1796
1788
|
}
|
|
1797
1789
|
}
|
|
1798
1790
|
};
|
|
1799
1791
|
return se(
|
|
1800
|
-
() =>
|
|
1792
|
+
() => F.tableColumns,
|
|
1801
1793
|
() => {
|
|
1802
|
-
|
|
1794
|
+
$();
|
|
1803
1795
|
},
|
|
1804
1796
|
{
|
|
1805
1797
|
immediate: !0,
|
|
1806
1798
|
deep: !0
|
|
1807
1799
|
}
|
|
1808
1800
|
), (l, o) => {
|
|
1809
|
-
const
|
|
1801
|
+
const h = K("a-tooltip"), k = K("a-button");
|
|
1810
1802
|
return a(), S("div", Dl, [
|
|
1811
|
-
|
|
1803
|
+
x(n(gt), {
|
|
1812
1804
|
title: n(i)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1813
1805
|
trigger: "click",
|
|
1814
1806
|
placement: "leftTop",
|
|
1815
1807
|
overlayClassName: "alertInfoContent",
|
|
1816
1808
|
visible: c.value,
|
|
1817
|
-
"onUpdate:visible": o[1] || (o[1] = (
|
|
1809
|
+
"onUpdate:visible": o[1] || (o[1] = (d) => c.value = d)
|
|
1818
1810
|
}, {
|
|
1819
1811
|
content: s(() => [
|
|
1820
|
-
|
|
1821
|
-
modelValue:
|
|
1822
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1812
|
+
x(n(fe), {
|
|
1813
|
+
modelValue: t.value,
|
|
1814
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => t.value = d),
|
|
1823
1815
|
"item-key": "value",
|
|
1824
1816
|
class: "hb-lib-table-set-drag",
|
|
1825
1817
|
"ghost-class": "ghost",
|
|
1826
1818
|
animation: "200",
|
|
1827
1819
|
handle: ".drag-handle",
|
|
1828
|
-
onStart:
|
|
1829
|
-
onEnd:
|
|
1820
|
+
onStart: A,
|
|
1821
|
+
onEnd: V
|
|
1830
1822
|
}, {
|
|
1831
|
-
item: s(({ element:
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
checked:
|
|
1835
|
-
onChange: (
|
|
1823
|
+
item: s(({ element: d }) => [
|
|
1824
|
+
d.fixed !== "right" ? (a(), S("div", Ol, [
|
|
1825
|
+
x(n(pe), {
|
|
1826
|
+
checked: d.checked,
|
|
1827
|
+
onChange: (q) => p(d, q.target.checked)
|
|
1836
1828
|
}, {
|
|
1837
1829
|
default: s(() => [
|
|
1838
|
-
|
|
1830
|
+
O(L(d.label), 1)
|
|
1839
1831
|
]),
|
|
1840
1832
|
_: 2
|
|
1841
1833
|
}, 1032, ["checked", "onChange"]),
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
class:
|
|
1834
|
+
d.checked ? (a(), S("section", Rl, [
|
|
1835
|
+
g("span", {
|
|
1836
|
+
class: E(d.fixed ? "drag-hide" : "drag-handle")
|
|
1845
1837
|
}, "⋮⋮", 2),
|
|
1846
|
-
|
|
1838
|
+
d.fixed ? (a(), B(h, { key: 0 }, {
|
|
1847
1839
|
title: s(() => [
|
|
1848
|
-
|
|
1840
|
+
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1849
1841
|
]),
|
|
1850
1842
|
default: s(() => [
|
|
1851
|
-
|
|
1843
|
+
g("span", {
|
|
1852
1844
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1853
|
-
onClick: (
|
|
1845
|
+
onClick: (q) => M(d)
|
|
1854
1846
|
}, [...o[2] || (o[2] = [
|
|
1855
|
-
|
|
1847
|
+
g("svg", {
|
|
1856
1848
|
t: "1759048615600",
|
|
1857
1849
|
class: "icon",
|
|
1858
1850
|
viewBox: "0 0 1024 1024",
|
|
@@ -1862,7 +1854,7 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1862
1854
|
width: "200",
|
|
1863
1855
|
height: "200"
|
|
1864
1856
|
}, [
|
|
1865
|
-
|
|
1857
|
+
g("path", {
|
|
1866
1858
|
d: "M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z",
|
|
1867
1859
|
"p-id": "7284",
|
|
1868
1860
|
fill: "#ff5000"
|
|
@@ -1872,16 +1864,16 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1872
1864
|
]),
|
|
1873
1865
|
_: 2
|
|
1874
1866
|
}, 1024)) : z("", !0),
|
|
1875
|
-
|
|
1867
|
+
d.fixed ? z("", !0) : (a(), B(h, { key: 1 }, {
|
|
1876
1868
|
title: s(() => [
|
|
1877
|
-
|
|
1869
|
+
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1878
1870
|
]),
|
|
1879
1871
|
default: s(() => [
|
|
1880
|
-
|
|
1872
|
+
g("span", {
|
|
1881
1873
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1882
|
-
onClick: (
|
|
1874
|
+
onClick: (q) => w(d)
|
|
1883
1875
|
}, [...o[3] || (o[3] = [
|
|
1884
|
-
|
|
1876
|
+
g("svg", {
|
|
1885
1877
|
t: "1759048735643",
|
|
1886
1878
|
class: "icon",
|
|
1887
1879
|
viewBox: "0 0 1024 1024",
|
|
@@ -1891,13 +1883,13 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1891
1883
|
width: "200",
|
|
1892
1884
|
height: "200"
|
|
1893
1885
|
}, [
|
|
1894
|
-
|
|
1886
|
+
g("path", {
|
|
1895
1887
|
d: "M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z",
|
|
1896
1888
|
"p-id": "7482",
|
|
1897
1889
|
fill: "#ff5000"
|
|
1898
1890
|
})
|
|
1899
1891
|
], -1)
|
|
1900
|
-
])], 8,
|
|
1892
|
+
])], 8, Pl)
|
|
1901
1893
|
]),
|
|
1902
1894
|
_: 2
|
|
1903
1895
|
}, 1024))
|
|
@@ -1906,38 +1898,38 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1906
1898
|
]),
|
|
1907
1899
|
_: 1
|
|
1908
1900
|
}, 8, ["modelValue"]),
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
checked:
|
|
1913
|
-
indeterminate:
|
|
1914
|
-
onChange:
|
|
1901
|
+
g("div", Nl, [
|
|
1902
|
+
g("div", zl, [
|
|
1903
|
+
x(n(pe), {
|
|
1904
|
+
checked: v.value,
|
|
1905
|
+
indeterminate: R.value,
|
|
1906
|
+
onChange: y
|
|
1915
1907
|
}, {
|
|
1916
1908
|
default: s(() => [
|
|
1917
|
-
|
|
1909
|
+
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1918
1910
|
]),
|
|
1919
1911
|
_: 1
|
|
1920
1912
|
}, 8, ["checked", "indeterminate"])
|
|
1921
1913
|
]),
|
|
1922
|
-
|
|
1914
|
+
x(k, {
|
|
1923
1915
|
onClick: H,
|
|
1924
1916
|
type: "primary"
|
|
1925
1917
|
}, {
|
|
1926
1918
|
default: s(() => [
|
|
1927
|
-
|
|
1919
|
+
O(L(n(i)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
1928
1920
|
]),
|
|
1929
1921
|
_: 1
|
|
1930
1922
|
})
|
|
1931
1923
|
])
|
|
1932
1924
|
]),
|
|
1933
1925
|
default: s(() => [
|
|
1934
|
-
|
|
1926
|
+
x(h, {
|
|
1935
1927
|
title: n(i)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
1936
1928
|
placement: "leftTop"
|
|
1937
1929
|
}, {
|
|
1938
1930
|
default: s(() => [...o[4] || (o[4] = [
|
|
1939
|
-
|
|
1940
|
-
|
|
1931
|
+
g("span", { class: "hb-lib-table-col-set" }, [
|
|
1932
|
+
g("svg", {
|
|
1941
1933
|
t: "1759041858618",
|
|
1942
1934
|
class: "icon",
|
|
1943
1935
|
viewBox: "0 0 1024 1024",
|
|
@@ -1947,12 +1939,12 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1947
1939
|
width: "200",
|
|
1948
1940
|
height: "200"
|
|
1949
1941
|
}, [
|
|
1950
|
-
|
|
1942
|
+
g("path", {
|
|
1951
1943
|
d: "M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z",
|
|
1952
1944
|
"p-id": "5220",
|
|
1953
1945
|
fill: "#ff5000"
|
|
1954
1946
|
}),
|
|
1955
|
-
|
|
1947
|
+
g("path", {
|
|
1956
1948
|
d: "M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z",
|
|
1957
1949
|
"p-id": "5221",
|
|
1958
1950
|
fill: "#ff5000"
|
|
@@ -1968,19 +1960,95 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
1968
1960
|
]);
|
|
1969
1961
|
};
|
|
1970
1962
|
}
|
|
1971
|
-
}),
|
|
1963
|
+
}), El = /* @__PURE__ */ oe(Vl, [["__scopeId", "data-v-fe93cce7"]]), Ul = te(El), Yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1972
1964
|
__proto__: null,
|
|
1973
|
-
HbLibFormItemFilterModal:
|
|
1974
|
-
HbLibListBtnsAct:
|
|
1975
|
-
HbLibListForm:
|
|
1976
|
-
HbLibListMultiSelect:
|
|
1965
|
+
HbLibFormItemFilterModal: xt,
|
|
1966
|
+
HbLibListBtnsAct: jt,
|
|
1967
|
+
HbLibListForm: It,
|
|
1968
|
+
HbLibListMultiSelect: dl,
|
|
1977
1969
|
HbLibListPageAct: Nt,
|
|
1978
|
-
HbLibListPageContainer:
|
|
1979
|
-
HbLibListTable:
|
|
1980
|
-
HbLibMutilpleSelectModal:
|
|
1981
|
-
HbLibTableAct:
|
|
1982
|
-
HbLibTableColumnSet:
|
|
1983
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1970
|
+
HbLibListPageContainer: Wt,
|
|
1971
|
+
HbLibListTable: Al,
|
|
1972
|
+
HbLibMutilpleSelectModal: pl,
|
|
1973
|
+
HbLibTableAct: xl,
|
|
1974
|
+
HbLibTableColumnSet: Ul
|
|
1975
|
+
}, Symbol.toStringTag, { value: "Module" })), jl = /* @__PURE__ */ ee({
|
|
1976
|
+
name: "HbLibFormTooltipSelect",
|
|
1977
|
+
inheritAttrs: !1,
|
|
1978
|
+
__name: "HbTooltipSelect",
|
|
1979
|
+
props: /* @__PURE__ */ ke({
|
|
1980
|
+
options: { default: () => [] },
|
|
1981
|
+
tooltipPlacement: { default: "right" },
|
|
1982
|
+
tooltipMaxWidth: { default: 280 },
|
|
1983
|
+
enableTooltip: { type: Boolean, default: !0 },
|
|
1984
|
+
enableEllipsis: { type: Boolean, default: !0 }
|
|
1985
|
+
}, {
|
|
1986
|
+
value: {
|
|
1987
|
+
default: void 0
|
|
1988
|
+
},
|
|
1989
|
+
valueModifiers: {}
|
|
1990
|
+
}),
|
|
1991
|
+
emits: ["update:value"],
|
|
1992
|
+
setup(e, { expose: f }) {
|
|
1993
|
+
const r = e, i = it(), F = W(() => {
|
|
1994
|
+
const V = i, y = V.dropdownClassName;
|
|
1995
|
+
return {
|
|
1996
|
+
...V,
|
|
1997
|
+
dropdownClassName: y ?? "hb-lib-form-tooltip-select__dropdown"
|
|
1998
|
+
};
|
|
1999
|
+
}), m = P(), b = Qe(e, "value"), c = W(() => r.options ?? []), t = W(() => ({
|
|
2000
|
+
maxWidth: typeof r.tooltipMaxWidth == "number" ? `${r.tooltipMaxWidth}px` : r.tooltipMaxWidth
|
|
2001
|
+
})), u = (V) => V.tooltip ?? V.label, v = (V) => !!(r.enableTooltip && u(V));
|
|
2002
|
+
return f({
|
|
2003
|
+
focus: () => {
|
|
2004
|
+
m.value?.focus?.();
|
|
2005
|
+
},
|
|
2006
|
+
blur: () => {
|
|
2007
|
+
m.value?.blur?.();
|
|
2008
|
+
},
|
|
2009
|
+
selectRef: m
|
|
2010
|
+
}), (V, y) => (a(), B(n(Fe), X({
|
|
2011
|
+
ref_key: "selectRef",
|
|
2012
|
+
ref: m,
|
|
2013
|
+
class: "hb-lib-form-tooltip-select"
|
|
2014
|
+
}, F.value, {
|
|
2015
|
+
value: b.value,
|
|
2016
|
+
"onUpdate:value": y[0] || (y[0] = (p) => b.value = p)
|
|
2017
|
+
}), {
|
|
2018
|
+
default: s(() => [
|
|
2019
|
+
V.$slots.default ? j(V.$slots, "default", { key: 0 }, void 0, !0) : (a(!0), S(G, { key: 1 }, ae(c.value, (p) => (a(), B(n(xe), X({
|
|
2020
|
+
key: p.value,
|
|
2021
|
+
value: p.value,
|
|
2022
|
+
disabled: p.disabled
|
|
2023
|
+
}, { ref_for: !0 }, p.optionProps), {
|
|
2024
|
+
default: s(() => [
|
|
2025
|
+
v(p) ? (a(), B(n(we), {
|
|
2026
|
+
key: 0,
|
|
2027
|
+
title: u(p),
|
|
2028
|
+
placement: r.tooltipPlacement,
|
|
2029
|
+
overlayStyle: t.value
|
|
2030
|
+
}, {
|
|
2031
|
+
default: s(() => [
|
|
2032
|
+
g("span", {
|
|
2033
|
+
class: E(["hb-lib-form-tooltip-select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2034
|
+
}, L(p.label), 3)
|
|
2035
|
+
]),
|
|
2036
|
+
_: 2
|
|
2037
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (a(), S("span", {
|
|
2038
|
+
key: 1,
|
|
2039
|
+
class: E(["hb-lib-form-tooltip-select__option", { "is-ellipsis": r.enableEllipsis }])
|
|
2040
|
+
}, L(p.label), 3))
|
|
2041
|
+
]),
|
|
2042
|
+
_: 2
|
|
2043
|
+
}, 1040, ["value", "disabled"]))), 128))
|
|
2044
|
+
]),
|
|
2045
|
+
_: 3
|
|
2046
|
+
}, 16, ["value"]));
|
|
2047
|
+
}
|
|
2048
|
+
}), ql = /* @__PURE__ */ oe(jl, [["__scopeId", "data-v-a7f23469"]]), Kl = te(ql), Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2049
|
+
__proto__: null,
|
|
2050
|
+
HbLibFormTooltipSelect: Kl
|
|
2051
|
+
}, Symbol.toStringTag, { value: "Module" })), Jl = {
|
|
1984
2052
|
// 如果存在cpText时,K和V无效
|
|
1985
2053
|
cpText: {
|
|
1986
2054
|
type: String,
|
|
@@ -2021,52 +2089,52 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
2021
2089
|
type: String,
|
|
2022
2090
|
default: "ab"
|
|
2023
2091
|
}
|
|
2024
|
-
},
|
|
2092
|
+
}, Gl = /* @__PURE__ */ ee({
|
|
2025
2093
|
name: "HbLibCopy",
|
|
2026
2094
|
__name: "copy",
|
|
2027
|
-
props:
|
|
2028
|
-
setup(
|
|
2029
|
-
const f =
|
|
2030
|
-
|
|
2031
|
-
|
|
2095
|
+
props: Jl,
|
|
2096
|
+
setup(e) {
|
|
2097
|
+
const f = e, r = P();
|
|
2098
|
+
rt(() => {
|
|
2099
|
+
r.value = f.data;
|
|
2032
2100
|
});
|
|
2033
|
-
const i =
|
|
2101
|
+
const i = W(() => {
|
|
2034
2102
|
if (f.cpText) return f.cpText;
|
|
2035
|
-
let
|
|
2103
|
+
let m = "";
|
|
2036
2104
|
if (f.data)
|
|
2037
2105
|
if (Array.isArray(f.data)) {
|
|
2038
2106
|
if (f.K && f.V && f.L) {
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2107
|
+
const b = f.data.find((c) => c?.[f.K] === f.V);
|
|
2108
|
+
m = b ? b[f.L] : "";
|
|
2041
2109
|
}
|
|
2042
2110
|
} else
|
|
2043
|
-
f.K && (
|
|
2044
|
-
return
|
|
2045
|
-
}),
|
|
2111
|
+
f.K && (m = f.data[f.K]);
|
|
2112
|
+
return m;
|
|
2113
|
+
}), F = () => {
|
|
2046
2114
|
navigator.clipboard.writeText(i.value).then(() => {
|
|
2047
|
-
|
|
2115
|
+
Te.success(f.copySuccessTip);
|
|
2048
2116
|
}).catch(() => {
|
|
2049
|
-
|
|
2117
|
+
Te.error("复制失败");
|
|
2050
2118
|
});
|
|
2051
2119
|
};
|
|
2052
|
-
return (
|
|
2053
|
-
const c =
|
|
2054
|
-
return i.value ? (a(),
|
|
2120
|
+
return (m, b) => {
|
|
2121
|
+
const c = K("a-tooltip");
|
|
2122
|
+
return i.value ? (a(), B(c, {
|
|
2055
2123
|
key: 0,
|
|
2056
|
-
title:
|
|
2124
|
+
title: m.tooltipTitle
|
|
2057
2125
|
}, {
|
|
2058
2126
|
default: s(() => [
|
|
2059
|
-
|
|
2060
|
-
class:
|
|
2061
|
-
style:
|
|
2062
|
-
onClick:
|
|
2127
|
+
g("i", {
|
|
2128
|
+
class: E(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
2129
|
+
style: me({ ...m.cpStyle }),
|
|
2130
|
+
onClick: _e(F, ["stop", "prevent"])
|
|
2063
2131
|
}, null, 6)
|
|
2064
2132
|
]),
|
|
2065
2133
|
_: 1
|
|
2066
2134
|
}, 8, ["title"])) : z("", !0);
|
|
2067
2135
|
};
|
|
2068
2136
|
}
|
|
2069
|
-
}),
|
|
2137
|
+
}), Ql = /* @__PURE__ */ oe(Gl, [["__scopeId", "data-v-d5ca4420"]]), Zl = te(Ql), Xl = {
|
|
2070
2138
|
dragList: {
|
|
2071
2139
|
type: Array,
|
|
2072
2140
|
required: !0
|
|
@@ -2105,124 +2173,125 @@ const Ct = "hb-", Te = (t = "") => {
|
|
|
2105
2173
|
type: String,
|
|
2106
2174
|
default: ""
|
|
2107
2175
|
}
|
|
2108
|
-
},
|
|
2176
|
+
}, eo = /* @__PURE__ */ ee({
|
|
2109
2177
|
name: "HbDrag",
|
|
2110
2178
|
__name: "index",
|
|
2111
|
-
props:
|
|
2179
|
+
props: Xl,
|
|
2112
2180
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2113
|
-
setup(
|
|
2114
|
-
const
|
|
2181
|
+
setup(e, { emit: f }) {
|
|
2182
|
+
const r = e, i = ct([]);
|
|
2115
2183
|
se(
|
|
2116
|
-
() =>
|
|
2117
|
-
(
|
|
2118
|
-
i.value =
|
|
2184
|
+
() => r.dragList,
|
|
2185
|
+
(v) => {
|
|
2186
|
+
i.value = v;
|
|
2119
2187
|
},
|
|
2120
2188
|
{
|
|
2121
2189
|
deep: !0,
|
|
2122
2190
|
immediate: !0
|
|
2123
2191
|
}
|
|
2124
2192
|
);
|
|
2125
|
-
const
|
|
2126
|
-
console.log("drag start",
|
|
2127
|
-
}, c = (
|
|
2128
|
-
console.log("drag end",
|
|
2129
|
-
},
|
|
2130
|
-
console.log("drag add",
|
|
2131
|
-
},
|
|
2132
|
-
console.log("drag remove",
|
|
2193
|
+
const F = Ae("drag"), m = f, b = (v) => {
|
|
2194
|
+
console.log("drag start", v), m("handleDragStart", v);
|
|
2195
|
+
}, c = (v) => {
|
|
2196
|
+
console.log("drag end", v), m("handleDragEnd", v);
|
|
2197
|
+
}, t = (v) => {
|
|
2198
|
+
console.log("drag add", v), m("handleDragAdd", v);
|
|
2199
|
+
}, u = (v) => {
|
|
2200
|
+
console.log("drag remove", v), m("handleDragRemove", v);
|
|
2133
2201
|
};
|
|
2134
|
-
return (
|
|
2135
|
-
class:
|
|
2202
|
+
return (v, R) => (a(), S("div", {
|
|
2203
|
+
class: E(n(F).b())
|
|
2136
2204
|
}, [
|
|
2137
|
-
|
|
2205
|
+
v.childrenType == "component" ? (a(), B(n(fe), X({
|
|
2138
2206
|
key: 0,
|
|
2139
2207
|
modelValue: i.value,
|
|
2140
|
-
"onUpdate:modelValue":
|
|
2208
|
+
"onUpdate:modelValue": R[0] || (R[0] = (A) => i.value = A),
|
|
2141
2209
|
"item-key": "key",
|
|
2142
|
-
class: { [
|
|
2143
|
-
},
|
|
2144
|
-
"ghost-class":
|
|
2145
|
-
onStart:
|
|
2210
|
+
class: { [v.dragClass]: v.dragClass }
|
|
2211
|
+
}, v.$attrs, {
|
|
2212
|
+
"ghost-class": v.ghostClass,
|
|
2213
|
+
onStart: b,
|
|
2146
2214
|
onEnd: c,
|
|
2147
|
-
onAdd:
|
|
2148
|
-
onRemove:
|
|
2215
|
+
onAdd: t,
|
|
2216
|
+
onRemove: u
|
|
2149
2217
|
}), {
|
|
2150
|
-
item: s(({ element:
|
|
2151
|
-
(a(),
|
|
2218
|
+
item: s(({ element: A }) => [
|
|
2219
|
+
(a(), B(dt(A.component)))
|
|
2152
2220
|
]),
|
|
2153
2221
|
_: 1
|
|
2154
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (a(),
|
|
2222
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (a(), B(n(fe), X({
|
|
2155
2223
|
key: 1,
|
|
2156
2224
|
modelValue: i.value,
|
|
2157
|
-
"onUpdate:modelValue":
|
|
2225
|
+
"onUpdate:modelValue": R[1] || (R[1] = (A) => i.value = A),
|
|
2158
2226
|
"item-key": "id",
|
|
2159
|
-
class: { [
|
|
2160
|
-
},
|
|
2161
|
-
"ghost-class":
|
|
2162
|
-
onStart:
|
|
2227
|
+
class: { [v.dragClass]: v.dragClass }
|
|
2228
|
+
}, v.$attrs, {
|
|
2229
|
+
"ghost-class": v.ghostClass,
|
|
2230
|
+
onStart: b,
|
|
2163
2231
|
onEnd: c,
|
|
2164
|
-
onAdd:
|
|
2165
|
-
onRemove:
|
|
2232
|
+
onAdd: t,
|
|
2233
|
+
onRemove: u
|
|
2166
2234
|
}), {
|
|
2167
|
-
item: s(({ element:
|
|
2168
|
-
|
|
2169
|
-
j(
|
|
2235
|
+
item: s(({ element: A }) => [
|
|
2236
|
+
g("div", null, [
|
|
2237
|
+
j(v.$slots, "default", { item: A }, void 0, !0)
|
|
2170
2238
|
])
|
|
2171
2239
|
]),
|
|
2172
2240
|
_: 3
|
|
2173
2241
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2174
2242
|
], 2));
|
|
2175
2243
|
}
|
|
2176
|
-
}),
|
|
2244
|
+
}), to = /* @__PURE__ */ oe(eo, [["__scopeId", "data-v-15b227f5"]]), lo = te(to), oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2177
2245
|
__proto__: null,
|
|
2178
|
-
HbLibFuncCompCopy:
|
|
2179
|
-
HbLibFuncCompDrag:
|
|
2246
|
+
HbLibFuncCompCopy: Zl,
|
|
2247
|
+
HbLibFuncCompDrag: lo
|
|
2180
2248
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2181
2249
|
let Ke = {
|
|
2182
|
-
...
|
|
2183
|
-
...
|
|
2250
|
+
...Yl,
|
|
2251
|
+
...Wl,
|
|
2252
|
+
...oo
|
|
2184
2253
|
};
|
|
2185
|
-
const
|
|
2186
|
-
hbLibComp:
|
|
2187
|
-
},
|
|
2188
|
-
hbLibComp:
|
|
2189
|
-
},
|
|
2190
|
-
hbLibComp:
|
|
2191
|
-
},
|
|
2192
|
-
hbLibComp:
|
|
2254
|
+
const ao = { HbFileUploadModal: { cancel: "Cancel", clickUpload: "Click to upload", confirmImport: "Confirm import", dataImport: "Import data", downloadTemplate: "Import template download", dragFile: "Drag files here or", file: "document", fileUpload: "File import", maxSupport: "Most supported", onlySupport: "Only supports", placeSelect: "Please select", selectFile: "Please select the file to upload" }, HbLogModal: { close: "closure", operateContent: "Operation content", operateLogs: "Operation log", operateTime: "Operating time", operator: "operator" }, hbFormItemFilterModal: { add: "Add to", cancel: "Cancel", confirm: "Sure", moreConditionSearch: "Multiple searches", mostMore: "Optional at most", mostMoreTip: "conditions, drag and drop to adjust the sorting", noData: "No data yet", notShowTip: "No conditions shown", titleTip: "Conditions shown" }, hbFormSelectFilter: { allSelect: "Select all", close: "closure" }, hbLibListForm: { queryCase: "query plan" }, hbLibListTableColumsSet: { allSelect: "Select all", cancelFix: "Unpin", confirm: "Sure", errorTip: "Cannot move column to fixed column position", fix: "fixed", popoverTitle: "Custom columns", title: "Table field settings" }, hbListBtnsAct: { close: "Close query conditions", open: "Expand query conditions", reload: "Refresh data" }, hbListPageAct: { close: "close", exitFullScreen: "Exit full screen", fullScreen: "full screen", open: "Expand", query: "Query", reset: "reset", selfDefine: "Filter query conditions" }, hbListTable: { noData: "No data yet" }, hbMultiSelectModal: { pleaseSelect: "Please select" }, hbTableAct: { confirmContent: "Confirm content", more: "More", secendConfirm: "Second confirmation" } }, no = {
|
|
2255
|
+
hbLibComp: ao
|
|
2256
|
+
}, so = { HbFileUploadModal: { cancel: "キャンセル", clickUpload: "クリックしてアップロード", confirmImport: "インポートの確認", dataImport: "データのインポート", downloadTemplate: "インポートテンプレートのダウンロード", dragFile: "ここにファイルをドラッグするか、", file: "書類", fileUpload: "ファイルのインポート", maxSupport: "最も支持されている", onlySupport: "サポートのみ", placeSelect: "選択してください", selectFile: "アップロードするファイルを選択してください" }, HbLogModal: { close: "閉鎖", operateContent: "操作内容", operateLogs: "操作ログ", operateTime: "稼働時間", operator: "オペレーター" }, hbFormItemFilterModal: { add: "に追加", cancel: "キャンセル", confirm: "もちろん", moreConditionSearch: "複数の検索", mostMore: "せいぜいオプション", mostMoreTip: "条件をドラッグアンドドロップして並べ替えを調整します", noData: "まだデータがありません", notShowTip: "条件が表示されていません", titleTip: "表示される条件" }, hbFormSelectFilter: { allSelect: "すべて選択", close: "閉鎖" }, hbLibListForm: { queryCase: "クエリプラン" }, hbLibListTableColumsSet: { allSelect: "すべて選択", cancelFix: "固定を解除する", confirm: "もちろん", errorTip: "列を固定列位置に移動できません", fix: "修理済み", popoverTitle: "カスタム列", title: "テーブルフィールドの設定" }, hbListBtnsAct: { close: "クエリ条件を閉じる", open: "クエリ条件を拡張する", reload: "データを更新する" }, hbListPageAct: { close: "近い", exitFullScreen: "全画面表示を終了する", fullScreen: "全画面表示", open: "拡大する", query: "クエリ", reset: "リセット", selfDefine: "フィルタークエリ条件" }, hbListTable: { noData: "まだデータがありません" }, hbMultiSelectModal: { pleaseSelect: "選択してください" }, hbTableAct: { confirmContent: "内容を確認する", more: "もっと", secendConfirm: "2回目の確認" } }, io = {
|
|
2257
|
+
hbLibComp: so
|
|
2258
|
+
}, ro = { hbFormItemFilterModal: { titleTip: "已显示条件", mostMore: "最多可选", mostMoreTip: "个条件,拖拽可以调整排序", notShowTip: "未显示条件", add: "添加", noData: "暂无数据", cancel: "取消", confirm: "确定", moreConditionSearch: "多项搜索" }, hbFormSelectFilter: { allSelect: "全选", close: "关闭" }, hbListPageAct: { query: "查询", reset: "重置", selfDefine: "筛选查询条件", open: "展开", close: "收起", fullScreen: "全屏", exitFullScreen: "退出全屏" }, hbListBtnsAct: { reload: "刷新数据", open: "展开查询条件", close: "收起查询条件" }, hbTableAct: { more: "更多", secendConfirm: "二次确认", confirmContent: "确认内容" }, hbMultiSelectModal: { pleaseSelect: "请选择" }, hbListTable: { noData: "暂时没有数据" }, hbLibListTableColumsSet: { popoverTitle: "自定义列", title: "表格字段设置", fix: "固定", cancelFix: "取消固定", allSelect: "全选", confirm: "确定", errorTip: "不能将列移动到固定列位置" }, hbLibListForm: { queryCase: "查询方案" }, HbFileUploadModal: { fileUpload: "文件导入", confirmImport: "确认导入", cancel: "取消", maxSupport: "最多支持", dataImport: "条数据导入", placeSelect: "请选择", file: "文件", selectFile: "请选择上传的文件", dragFile: "将文件拖到此处或", clickUpload: "点击上传", onlySupport: "仅支持", downloadTemplate: "导入模板下载" }, HbLogModal: { close: "关 闭", operateLogs: "操作日志", operator: "操作人", operateTime: "操作时间", operateContent: "操作内容" } }, co = {
|
|
2259
|
+
hbLibComp: ro
|
|
2260
|
+
}, uo = { HbFileUploadModal: { cancel: "Stornieren", clickUpload: "Klicken Sie zum Hochladen", confirmImport: "Bestätigen Sie den Import", dataImport: "Daten importieren", downloadTemplate: "Importvorlage herunterladen", dragFile: "Ziehen Sie Dateien hierher oder", file: "dokumentieren", fileUpload: "Dateiimport", maxSupport: "Am meisten unterstützt", onlySupport: "Unterstützt nur", placeSelect: "Bitte auswählen", selectFile: "Bitte wählen Sie die hochzuladende Datei aus" }, HbLogModal: { close: "Schließung", operateContent: "Inhalt der Operation", operateLogs: "Betriebsprotokoll", operateTime: "Betriebszeit", operator: "Operator" }, hbFormItemFilterModal: { add: "Hinzufügen zu", cancel: "Stornieren", confirm: "Sicher", moreConditionSearch: "Mehrere Suchanfragen", mostMore: "Höchstens optional", mostMoreTip: "Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen", noData: "Noch keine Daten", notShowTip: "Keine Bedingungen angezeigt", titleTip: "Bedingungen angezeigt" }, hbFormSelectFilter: { allSelect: "Alles auswählen", close: "Schließung" }, hbLibListForm: { queryCase: "Abfrageplan" }, hbLibListTableColumsSet: { allSelect: "Alles auswählen", cancelFix: "Lösen", confirm: "Sicher", errorTip: "Die Spalte kann nicht in eine feste Spaltenposition verschoben werden", fix: "behoben", popoverTitle: "Benutzerdefinierte Spalten", title: "Tabellenfeldeinstellungen" }, hbListBtnsAct: { close: "Abfragebedingungen schließen", open: "Abfragebedingungen erweitern", reload: "Daten aktualisieren" }, hbListPageAct: { close: "schließen", exitFullScreen: "Verlassen Sie den Vollbildmodus", fullScreen: "Vollbild", open: "Expandieren", query: "Abfrage", reset: "zurücksetzen", selfDefine: "Abfragebedingungen filtern" }, hbListTable: { noData: "Noch keine Daten" }, hbMultiSelectModal: { pleaseSelect: "Bitte auswählen" }, hbTableAct: { confirmContent: "Inhalt bestätigen", more: "Mehr", secendConfirm: "Zweite Bestätigung" } }, bo = {
|
|
2261
|
+
hbLibComp: uo
|
|
2193
2262
|
};
|
|
2194
|
-
var
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
2197
|
-
(function(
|
|
2198
|
-
|
|
2199
|
-
})(
|
|
2200
|
-
function i(
|
|
2201
|
-
return
|
|
2263
|
+
var he = { exports: {} }, ho = he.exports, We;
|
|
2264
|
+
function fo() {
|
|
2265
|
+
return We || (We = 1, (function(e, f) {
|
|
2266
|
+
(function(r, i) {
|
|
2267
|
+
e.exports = i(He);
|
|
2268
|
+
})(ho, (function(r) {
|
|
2269
|
+
function i(b) {
|
|
2270
|
+
return b && typeof b == "object" && "default" in b ? b : { default: b };
|
|
2202
2271
|
}
|
|
2203
|
-
var
|
|
2204
|
-
return c === "W" ?
|
|
2205
|
-
}, 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(
|
|
2206
|
-
var
|
|
2207
|
-
return
|
|
2272
|
+
var F = i(r), m = { 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(b, c) {
|
|
2273
|
+
return c === "W" ? b + "周" : b + "日";
|
|
2274
|
+
}, 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(b, c) {
|
|
2275
|
+
var t = 100 * b + c;
|
|
2276
|
+
return t < 600 ? "凌晨" : t < 900 ? "早上" : t < 1100 ? "上午" : t < 1300 ? "中午" : t < 1800 ? "下午" : "晚上";
|
|
2208
2277
|
} };
|
|
2209
|
-
return
|
|
2278
|
+
return F.default.locale(m, null, !0), m;
|
|
2210
2279
|
}));
|
|
2211
|
-
})(
|
|
2280
|
+
})(he)), he.exports;
|
|
2212
2281
|
}
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
const
|
|
2216
|
-
en_US:
|
|
2217
|
-
ja_JP:
|
|
2218
|
-
zh_CN:
|
|
2219
|
-
de_DE:
|
|
2220
|
-
},
|
|
2221
|
-
Object.keys(Ke).forEach((
|
|
2222
|
-
|
|
2282
|
+
fo();
|
|
2283
|
+
He.locale("zh-cn");
|
|
2284
|
+
const wo = {
|
|
2285
|
+
en_US: no,
|
|
2286
|
+
ja_JP: io,
|
|
2287
|
+
zh_CN: co,
|
|
2288
|
+
de_DE: bo
|
|
2289
|
+
}, Fo = function(e) {
|
|
2290
|
+
Object.keys(Ke).forEach((r) => {
|
|
2291
|
+
e.use(Ke[r]);
|
|
2223
2292
|
});
|
|
2224
2293
|
};
|
|
2225
2294
|
export {
|
|
2226
|
-
|
|
2227
|
-
|
|
2295
|
+
Fo as install,
|
|
2296
|
+
wo as locales
|
|
2228
2297
|
};
|