@hb-hellotech/hb-ui 1.1.0 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/index.d.ts +232 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_modal/src/HbMutilpleSelectModal.vue.d.ts +3 -3
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts +124 -1
- package/dist/components/business_comp/list_page_comp/hb_list_btns_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts +124 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_act/src/HbListPageAct.vue.d.ts +3 -3
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts +97 -1
- package/dist/components/business_comp/list_page_comp/hb_list_page_container/index.d.ts.map +1 -1
- package/dist/components/business_comp/list_page_comp/index.d.ts +1 -2
- package/dist/components/business_comp/list_page_comp/index.d.ts.map +1 -1
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts +151 -1
- package/dist/components/func_comp/hb_func_comp_copy/index.d.ts.map +1 -1
- package/dist/components/func_comp/index.d.ts +3 -4
- package/dist/components/func_comp/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/hb_component_lib.js +966 -1289
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_form_item_filter_modal/index.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_form_select_filter/index.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_form/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_list_form/index.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_list_table/index.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_list_table_act/index.d.ts.map +0 -1
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts +0 -5
- package/dist/components/business_comp/list_page_comp/hb_list_table_colums_set/index.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_tree/index.d.ts +0 -458
- package/dist/components/func_comp/hb_func_comp_tree/index.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts +0 -59
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.vue.d.ts +0 -187
- package/dist/components/func_comp/hb_func_comp_tree/src/tree.vue.d.ts.map +0 -1
- package/dist/components/func_comp/hb_func_comp_tree/src/treeNode.vue.d.ts +0 -39
- package/dist/components/func_comp/hb_func_comp_tree/src/treeNode.vue.d.ts.map +0 -1
- package/dist/components/hooks/useListFormItem.d.ts +0 -8
- package/dist/components/hooks/useListFormItem.d.ts.map +0 -1
- package/dist/components/type.d.ts +0 -13
- package/dist/components/type.d.ts.map +0 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { CloseOutlined as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import
|
|
9
|
-
import { useFullscreen as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
},
|
|
2
|
+
import { defineComponent as te, reactive as Je, ref as O, computed as K, watch as ce, createElementBlock as k, openBlock as o, normalizeClass as V, unref as n, createVNode as S, withCtx as c, createElementVNode as v, toDisplayString as L, createTextVNode as I, createBlock as B, createCommentVNode as R, Fragment as W, renderList as ne, inject as we, resolveComponent as j, Transition as Xe, withDirectives as ie, mergeProps as X, createSlots as Ge, renderSlot as Z, vShow as et, nextTick as he, onMounted as Fe, onUnmounted as tt, useTemplateRef as lt, provide as ot, normalizeStyle as me, mergeModels as Me, useModel as at, withModifiers as ke, resolveDirective as nt, watchEffect as st, shallowRef as it, resolveDynamicComponent as rt } from "vue";
|
|
3
|
+
import fe from "vuedraggable";
|
|
4
|
+
import { CloseOutlined as ct, QuestionCircleOutlined as dt, SearchOutlined as xe, UpCircleOutlined as ut, DownCircleOutlined as ht, UnorderedListOutlined as bt, DownOutlined as Ie } from "@ant-design/icons-vue";
|
|
5
|
+
import { Modal as _e, Button as de, Tooltip as He, Switch as Ae, Radio as De, RadioGroup as Oe, InputNumber as Be, DatePicker as Re, Checkbox as pe, CheckboxGroup as ze, Select as Ne, Input as Pe, Col as ft, Row as pt, FormItem as Ve, Form as Ee, SelectOption as Ue, Popconfirm as Ce, MenuItem as Ye, Menu as je, Dropdown as qe, Popover as mt, message as Se } from "ant-design-vue";
|
|
6
|
+
import { useRoute as Qe } from "vue-router";
|
|
7
|
+
import { useI18n as re } from "vue-i18n";
|
|
8
|
+
import Le from "lodash";
|
|
9
|
+
import { useFullscreen as vt, useDebounceFn as gt } from "@vueuse/core";
|
|
10
|
+
import Te from "dayjs";
|
|
11
|
+
const yt = "hb-", $e = (e = "") => {
|
|
12
|
+
const f = `${yt}${e}`;
|
|
13
|
+
return Ct(f);
|
|
14
|
+
}, se = (e, f, u, s) => (f && (e += `-${f}`), u && (e += `__${u}`), s && (e += `--${s}`), e), Ct = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
|
-
b: (
|
|
16
|
+
b: (f) => f ? se(e, f, "", "") : se(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
18
|
-
e: (
|
|
18
|
+
e: (f) => f ? se(e, "", f, "") : "",
|
|
19
19
|
// hb-button--primary
|
|
20
|
-
m: (
|
|
20
|
+
m: (f) => se(e, "", "", f),
|
|
21
21
|
// hb-button__header
|
|
22
|
-
be: (
|
|
22
|
+
be: (f, u) => se(e, f, u, ""),
|
|
23
23
|
// hb-button__header--primary
|
|
24
|
-
em: (
|
|
24
|
+
em: (f, u) => se(e, "", f, u),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (
|
|
26
|
+
bem: (f, u, s) => se(e, f, u, s),
|
|
27
27
|
// is-disabled
|
|
28
|
-
is: (
|
|
29
|
-
}),
|
|
28
|
+
is: (f, u) => u ? `is-${f}` : ""
|
|
29
|
+
}), Lt = ["onMouseenter", "onMouseleave"], kt = ["onClick"], _t = /* @__PURE__ */ te({
|
|
30
30
|
name: "HbLibFormItemFilterModal",
|
|
31
31
|
__name: "HbFormItemFilterModal",
|
|
32
32
|
props: {
|
|
@@ -37,78 +37,78 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
37
37
|
showNumber: { default: 40 }
|
|
38
38
|
},
|
|
39
39
|
emits: ["confirm"],
|
|
40
|
-
setup(e, { expose:
|
|
41
|
-
const
|
|
40
|
+
setup(e, { expose: f, emit: u }) {
|
|
41
|
+
const s = re().t, F = re().messages.value.en_US, m = re().messages.value.ja_JP, p = re().messages.value.zh_CN, r = e, a = u, h = $e("sfcm"), b = Qe(), D = Je({
|
|
42
42
|
lan: window.localStorage.getItem("lan")
|
|
43
|
-
}),
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
43
|
+
}), H = O(!1), Q = O(600);
|
|
44
|
+
let x = [];
|
|
45
|
+
const $ = O([]), E = O([]), N = K(() => $.value.every((C) => C.isLinked || C.isFixed)), P = (C) => {
|
|
46
|
+
const A = C.draggedContext.element, g = C.relatedContext.index;
|
|
47
|
+
if (A.isLinked || A.isFixed)
|
|
48
48
|
return !1;
|
|
49
|
-
const Y =
|
|
49
|
+
const Y = $.value.map((G, ae) => ({ item: G, index: ae })).filter(({ item: G }) => G.isLinked).map(({ index: G }) => G);
|
|
50
50
|
if (Y.length === 0)
|
|
51
51
|
return !0;
|
|
52
|
-
for (let
|
|
53
|
-
const
|
|
54
|
-
if (g >
|
|
52
|
+
for (let G = 0; G < Y.length - 1; G++) {
|
|
53
|
+
const ae = Y[G], ue = Y[G + 1];
|
|
54
|
+
if (g > ae && g < ue)
|
|
55
55
|
return !1;
|
|
56
56
|
}
|
|
57
57
|
return !0;
|
|
58
|
-
},
|
|
58
|
+
}, T = () => {
|
|
59
59
|
const C = localStorage.getItem("pro__Login_Userinfo");
|
|
60
|
-
let
|
|
60
|
+
let A = "anonymous";
|
|
61
61
|
if (C)
|
|
62
62
|
try {
|
|
63
|
-
|
|
63
|
+
A = JSON.parse(C).value.jobNumber || "anonymous";
|
|
64
64
|
} catch (Y) {
|
|
65
65
|
console.warn("解析用户信息失败:", Y);
|
|
66
66
|
}
|
|
67
|
-
let g =
|
|
68
|
-
return `searchFormConfig_${
|
|
69
|
-
},
|
|
70
|
-
ja_JP: () =>
|
|
71
|
-
en_US: () =>
|
|
72
|
-
zh_CN: () =>
|
|
73
|
-
})[
|
|
67
|
+
let g = b?.path;
|
|
68
|
+
return `searchFormConfig_${A}_${g}`;
|
|
69
|
+
}, _ = (C) => ({
|
|
70
|
+
ja_JP: () => Le.get(m, C.labelLanguage || ""),
|
|
71
|
+
en_US: () => Le.get(F, C.labelLanguage || ""),
|
|
72
|
+
zh_CN: () => Le.get(p, C.labelLanguage || "")
|
|
73
|
+
})[D.lan]?.() || C.label, t = () => {
|
|
74
74
|
try {
|
|
75
|
-
const C =
|
|
76
|
-
if (
|
|
77
|
-
const g = JSON.parse(
|
|
75
|
+
const C = T(), A = localStorage.getItem(C);
|
|
76
|
+
if (A) {
|
|
77
|
+
const g = JSON.parse(A);
|
|
78
78
|
if (g.originalList && Array.isArray(g.originalList)) {
|
|
79
|
-
|
|
80
|
-
const Y =
|
|
81
|
-
|
|
82
|
-
label:
|
|
83
|
-
key:
|
|
84
|
-
isFixed:
|
|
85
|
-
isLinked:
|
|
86
|
-
labelLanguage:
|
|
87
|
-
})),
|
|
88
|
-
|
|
89
|
-
label:
|
|
90
|
-
key:
|
|
91
|
-
isFixed:
|
|
79
|
+
x = JSON.parse(JSON.stringify(g.originalList));
|
|
80
|
+
const Y = x.filter((w) => w?.isFixed), G = x.filter((w) => w?.isLinked), ae = g.showList.filter((w) => !w.isFixed && !w.isLinked), ue = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - Y.length - G.length) : ae.length, ve = Y.map((w) => ({
|
|
81
|
+
...w,
|
|
82
|
+
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
83
|
+
key: w.key,
|
|
84
|
+
isFixed: w?.isFixed || !1,
|
|
85
|
+
isLinked: w?.isLinked || !1,
|
|
86
|
+
labelLanguage: w?.labelLanguage || void 0
|
|
87
|
+
})), ge = G.map((w) => ({
|
|
88
|
+
...w,
|
|
89
|
+
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
90
|
+
key: w.key,
|
|
91
|
+
isFixed: w?.isFixed || !1,
|
|
92
92
|
isLinked: !0,
|
|
93
|
-
labelLanguage:
|
|
94
|
-
})),
|
|
95
|
-
|
|
96
|
-
label:
|
|
97
|
-
key:
|
|
98
|
-
isFixed:
|
|
99
|
-
isLinked:
|
|
100
|
-
labelLanguage:
|
|
93
|
+
labelLanguage: w?.labelLanguage || void 0
|
|
94
|
+
})), ye = ae.slice(0, ue).map((w) => ({
|
|
95
|
+
...w,
|
|
96
|
+
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
97
|
+
key: w.key,
|
|
98
|
+
isFixed: w?.isFixed || !1,
|
|
99
|
+
isLinked: w?.isLinked || !1,
|
|
100
|
+
labelLanguage: w?.labelLanguage || void 0
|
|
101
101
|
}));
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
label:
|
|
107
|
-
key:
|
|
108
|
-
isFixed:
|
|
109
|
-
isLinked:
|
|
102
|
+
$.value = [...ve, ...ge, ...ye];
|
|
103
|
+
const M = $.value.map((w) => w.key), Ze = x.map((w) => w.key).filter((w) => !M.includes(w));
|
|
104
|
+
return E.value = x.filter((w) => Ze.includes(w.key)).map((w) => ({
|
|
105
|
+
...w,
|
|
106
|
+
label: _(w) || `${w.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
107
|
+
key: w.key,
|
|
108
|
+
isFixed: w?.isFixed || !1,
|
|
109
|
+
isLinked: w?.isLinked || !1,
|
|
110
110
|
active: !1,
|
|
111
|
-
labelLanguage:
|
|
111
|
+
labelLanguage: w?.labelLanguage || void 0
|
|
112
112
|
})), !0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -116,11 +116,11 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
116
116
|
console.warn("加载保存的搜索配置失败:", C);
|
|
117
117
|
}
|
|
118
118
|
return !1;
|
|
119
|
-
},
|
|
119
|
+
}, l = () => {
|
|
120
120
|
try {
|
|
121
121
|
const C = {
|
|
122
|
-
originalList:
|
|
123
|
-
showList:
|
|
122
|
+
originalList: x,
|
|
123
|
+
showList: $.value.map((g) => ({
|
|
124
124
|
...g,
|
|
125
125
|
key: g.key,
|
|
126
126
|
label: g.label,
|
|
@@ -128,146 +128,146 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
128
128
|
isLinked: g.isLinked,
|
|
129
129
|
labelLanguage: g?.labelLanguage || void 0
|
|
130
130
|
}))
|
|
131
|
-
},
|
|
132
|
-
localStorage.setItem(
|
|
131
|
+
}, A = T();
|
|
132
|
+
localStorage.setItem(A, JSON.stringify(C));
|
|
133
133
|
} catch (C) {
|
|
134
134
|
console.warn("保存搜索配置失败:", C);
|
|
135
135
|
}
|
|
136
|
-
},
|
|
137
|
-
const C =
|
|
138
|
-
return C >=
|
|
136
|
+
}, d = K(() => {
|
|
137
|
+
const C = $.value.filter((g) => !g.isFixed && !g.isLinked).length, A = $.value.filter((g) => g.isFixed || g.isLinked).length;
|
|
138
|
+
return C >= r.showNumber - A;
|
|
139
139
|
});
|
|
140
|
-
|
|
141
|
-
() =>
|
|
140
|
+
ce(
|
|
141
|
+
() => r.list,
|
|
142
142
|
(C) => {
|
|
143
|
-
if (!t() &&
|
|
144
|
-
|
|
145
|
-
const g = C.filter((
|
|
146
|
-
...
|
|
147
|
-
label:
|
|
148
|
-
key:
|
|
149
|
-
isFixed:
|
|
150
|
-
isLinked:
|
|
151
|
-
labelLanguage:
|
|
152
|
-
})),
|
|
153
|
-
...
|
|
154
|
-
label:
|
|
155
|
-
key:
|
|
156
|
-
isFixed:
|
|
143
|
+
if (!t() && x.length === 0) {
|
|
144
|
+
x = JSON.parse(JSON.stringify(C));
|
|
145
|
+
const g = C.filter((M) => M?.isFixed), Y = C.filter((M) => M?.isLinked), G = C.filter((M) => !M?.isFixed && !M?.isLinked), ae = r.showNumber && r.showNumber > 0 ? Math.max(0, r.showNumber - g.length - Y.length) : G.length, ue = g.map((M) => ({
|
|
146
|
+
...M,
|
|
147
|
+
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
148
|
+
key: M.key,
|
|
149
|
+
isFixed: M?.isFixed || !1,
|
|
150
|
+
isLinked: M?.isLinked || !1,
|
|
151
|
+
labelLanguage: M?.labelLanguage || void 0
|
|
152
|
+
})), ve = Y.map((M) => ({
|
|
153
|
+
...M,
|
|
154
|
+
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
155
|
+
key: M.key,
|
|
156
|
+
isFixed: M?.isFixed || !1,
|
|
157
157
|
isLinked: !0,
|
|
158
|
-
labelLanguage:
|
|
159
|
-
})),
|
|
160
|
-
...
|
|
161
|
-
label:
|
|
162
|
-
key:
|
|
163
|
-
isFixed:
|
|
164
|
-
isLinked:
|
|
165
|
-
labelLanguage:
|
|
158
|
+
labelLanguage: M?.labelLanguage || void 0
|
|
159
|
+
})), ge = G.slice(0, ae).map((M) => ({
|
|
160
|
+
...M,
|
|
161
|
+
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
162
|
+
key: M.key,
|
|
163
|
+
isFixed: M?.isFixed || !1,
|
|
164
|
+
isLinked: M?.isLinked || !1,
|
|
165
|
+
labelLanguage: M?.labelLanguage || void 0
|
|
166
166
|
}));
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
...
|
|
170
|
-
label:
|
|
171
|
-
key:
|
|
172
|
-
isFixed:
|
|
173
|
-
isLinked:
|
|
167
|
+
$.value = [...ue, ...ve, ...ge];
|
|
168
|
+
const ye = G.slice(ae).map((M) => ({
|
|
169
|
+
...M,
|
|
170
|
+
label: _(M) || `${M.subLabel || ""}${s("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,
|
|
171
|
+
key: M.key,
|
|
172
|
+
isFixed: M?.isFixed || !1,
|
|
173
|
+
isLinked: M?.isLinked || !1,
|
|
174
174
|
active: !1,
|
|
175
|
-
labelLanguage:
|
|
175
|
+
labelLanguage: M?.labelLanguage || void 0
|
|
176
176
|
}));
|
|
177
|
-
|
|
177
|
+
E.value = ye;
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
{ immediate: !0 }
|
|
181
181
|
);
|
|
182
182
|
const y = (C) => {
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
if (
|
|
183
|
+
const A = $.value.findIndex((g) => g.key === C.key);
|
|
184
|
+
A !== -1 && ($.value.splice(A, 1), E.value.push({ ...C, active: !1 }));
|
|
185
|
+
}, i = (C) => {
|
|
186
|
+
if (d.value)
|
|
187
187
|
return;
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const [g] =
|
|
191
|
-
|
|
188
|
+
const A = E.value.findIndex((g) => g.key === C.key);
|
|
189
|
+
if (A !== -1) {
|
|
190
|
+
const [g] = E.value.splice(A, 1);
|
|
191
|
+
$.value.push({ ...g, active: !1 });
|
|
192
192
|
}
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
const
|
|
201
|
-
|
|
193
|
+
}, U = () => {
|
|
194
|
+
H.value = !1;
|
|
195
|
+
}, z = () => {
|
|
196
|
+
H.value = !0;
|
|
197
|
+
}, ee = () => {
|
|
198
|
+
l(), a("confirm", $.value), U();
|
|
199
|
+
}, J = (C) => {
|
|
200
|
+
const A = E.value.findIndex((g) => g.key === C.key);
|
|
201
|
+
A !== -1 && (E.value[A].active = !0);
|
|
202
202
|
}, q = (C) => {
|
|
203
|
-
const
|
|
204
|
-
|
|
203
|
+
const A = E.value.findIndex((g) => g.key === C.key);
|
|
204
|
+
A !== -1 && (E.value[A].active = !1);
|
|
205
205
|
};
|
|
206
|
-
return
|
|
207
|
-
toOpenModal:
|
|
208
|
-
}), (C,
|
|
209
|
-
class:
|
|
206
|
+
return f({
|
|
207
|
+
toOpenModal: z
|
|
208
|
+
}), (C, A) => (o(), k("div", {
|
|
209
|
+
class: V(n(h).b())
|
|
210
210
|
}, [
|
|
211
|
-
|
|
212
|
-
visible:
|
|
213
|
-
"onUpdate:visible":
|
|
214
|
-
width:
|
|
215
|
-
onCancel:
|
|
216
|
-
onOk:
|
|
211
|
+
S(n(_e), {
|
|
212
|
+
visible: H.value,
|
|
213
|
+
"onUpdate:visible": A[1] || (A[1] = (g) => H.value = g),
|
|
214
|
+
width: Q.value,
|
|
215
|
+
onCancel: U,
|
|
216
|
+
onOk: ee
|
|
217
217
|
}, {
|
|
218
|
-
title:
|
|
218
|
+
title: c(() => [
|
|
219
219
|
v("div", {
|
|
220
|
-
class:
|
|
220
|
+
class: V(n(h).e("title"))
|
|
221
221
|
}, L(e.title), 3)
|
|
222
222
|
]),
|
|
223
|
-
footer:
|
|
224
|
-
|
|
225
|
-
default:
|
|
223
|
+
footer: c(() => [
|
|
224
|
+
S(n(de), { onClick: U }, {
|
|
225
|
+
default: c(() => [
|
|
226
226
|
I(L(C.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
227
227
|
]),
|
|
228
228
|
_: 1
|
|
229
229
|
}),
|
|
230
|
-
|
|
230
|
+
S(n(de), {
|
|
231
231
|
type: "primary",
|
|
232
|
-
onClick:
|
|
232
|
+
onClick: ee
|
|
233
233
|
}, {
|
|
234
|
-
default:
|
|
234
|
+
default: c(() => [
|
|
235
235
|
I(L(C.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
236
236
|
]),
|
|
237
237
|
_: 1
|
|
238
238
|
})
|
|
239
239
|
]),
|
|
240
|
-
default:
|
|
240
|
+
default: c(() => [
|
|
241
241
|
v("section", {
|
|
242
|
-
class:
|
|
242
|
+
class: V(n(h).e("show"))
|
|
243
243
|
}, [
|
|
244
244
|
v("div", {
|
|
245
|
-
class:
|
|
245
|
+
class: V(n(h).e("show__title"))
|
|
246
246
|
}, [
|
|
247
247
|
v("span", {
|
|
248
|
-
class:
|
|
248
|
+
class: V(n(h).e("title__tip"))
|
|
249
249
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
250
250
|
v("span", null, L(C.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(e.showNumber) + L(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
251
251
|
], 2),
|
|
252
252
|
v("div", {
|
|
253
|
-
class:
|
|
253
|
+
class: V(n(h).e("show__tag"))
|
|
254
254
|
}, [
|
|
255
|
-
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue":
|
|
255
|
+
S(n(fe), {
|
|
256
|
+
modelValue: $.value,
|
|
257
|
+
"onUpdate:modelValue": A[0] || (A[0] = (g) => $.value = g),
|
|
258
258
|
"item-key": "key",
|
|
259
259
|
tag: "div",
|
|
260
|
-
disabled:
|
|
261
|
-
move:
|
|
260
|
+
disabled: N.value,
|
|
261
|
+
move: P
|
|
262
262
|
}, {
|
|
263
|
-
item:
|
|
263
|
+
item: c(({ element: g }) => [
|
|
264
264
|
v("div", {
|
|
265
|
-
class:
|
|
265
|
+
class: V([n(h).e("show__tag__item"), n(h).is("fixed", g.isFixed), n(h).is("linked", g.isLinked)])
|
|
266
266
|
}, [
|
|
267
267
|
I(L(g.label) + " ", 1),
|
|
268
|
-
!g.isFixed && !g.isLinked && e.list.length > 1 ? (o(), B(
|
|
268
|
+
!g.isFixed && !g.isLinked && e.list.length > 1 ? (o(), B(n(ct), {
|
|
269
269
|
key: 0,
|
|
270
|
-
class:
|
|
270
|
+
class: V(n(h).e("show__tag__item-close")),
|
|
271
271
|
onClick: (Y) => y(g)
|
|
272
272
|
}, null, 8, ["class", "onClick"])) : R("", !0)
|
|
273
273
|
], 2)
|
|
@@ -277,33 +277,33 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
277
277
|
], 2)
|
|
278
278
|
], 2),
|
|
279
279
|
v("section", {
|
|
280
|
-
class:
|
|
280
|
+
class: V(n(h).e("unshow"))
|
|
281
281
|
}, [
|
|
282
282
|
v("div", {
|
|
283
|
-
class:
|
|
283
|
+
class: V(n(h).e("show__title"))
|
|
284
284
|
}, [
|
|
285
285
|
v("span", {
|
|
286
|
-
class:
|
|
286
|
+
class: V(n(h).e("title__tip"))
|
|
287
287
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
288
288
|
], 2),
|
|
289
289
|
v("div", {
|
|
290
|
-
class:
|
|
290
|
+
class: V(n(h).e("unshow__tag"))
|
|
291
291
|
}, [
|
|
292
|
-
|
|
293
|
-
class:
|
|
292
|
+
E.value.length > 0 ? (o(!0), k(W, { key: 0 }, ne(E.value, (g) => (o(), k("div", {
|
|
293
|
+
class: V([n(h).e("unshow__tag__item"), n(h).is("fixed", g.isFixed || ""), n(h).is("linked", g.isLinked || "")]),
|
|
294
294
|
key: g.key,
|
|
295
|
-
onMouseenter: (Y) =>
|
|
295
|
+
onMouseenter: (Y) => J(g),
|
|
296
296
|
onMouseleave: (Y) => q(g)
|
|
297
297
|
}, [
|
|
298
298
|
I(L(g.label) + " ", 1),
|
|
299
299
|
g.active ? (o(), k("aside", {
|
|
300
300
|
key: 0,
|
|
301
|
-
class:
|
|
302
|
-
onClick: (Y) =>
|
|
303
|
-
}, L(C.$t("hbLibComp.hbFormItemFilterModal.add")), 11,
|
|
304
|
-
], 42,
|
|
301
|
+
class: V(n(h).e("unshow__tag__item-add")),
|
|
302
|
+
onClick: (Y) => i(g)
|
|
303
|
+
}, L(C.$t("hbLibComp.hbFormItemFilterModal.add")), 11, kt)) : R("", !0)
|
|
304
|
+
], 42, Lt))), 128)) : (o(), k("div", {
|
|
305
305
|
key: 1,
|
|
306
|
-
class:
|
|
306
|
+
class: V(n(h).e("unshow__tag__empty"))
|
|
307
307
|
}, L(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
308
308
|
], 2)
|
|
309
309
|
], 2)
|
|
@@ -312,35 +312,15 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
312
312
|
}, 8, ["visible", "width"])
|
|
313
313
|
], 2));
|
|
314
314
|
}
|
|
315
|
-
}), oe = (e,
|
|
315
|
+
}), oe = (e, f) => {
|
|
316
316
|
const u = e.__vccOpts || e;
|
|
317
|
-
for (const [
|
|
318
|
-
u[
|
|
317
|
+
for (const [s, F] of f)
|
|
318
|
+
u[s] = F;
|
|
319
319
|
return u;
|
|
320
|
-
},
|
|
321
|
-
for (const
|
|
322
|
-
u.component(
|
|
323
|
-
}, e),
|
|
324
|
-
// 数据源 一般等于搜索框的options
|
|
325
|
-
list: {
|
|
326
|
-
type: Array,
|
|
327
|
-
default: () => [],
|
|
328
|
-
required: !0
|
|
329
|
-
},
|
|
330
|
-
afterChange: {
|
|
331
|
-
type: Function,
|
|
332
|
-
default: () => {
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
title: {
|
|
336
|
-
type: String,
|
|
337
|
-
default: "自定义查询条件"
|
|
338
|
-
},
|
|
339
|
-
showNumber: {
|
|
340
|
-
type: Number,
|
|
341
|
-
default: 40
|
|
342
|
-
}
|
|
343
|
-
}, xt = le(Ft), Tt = { class: "form-footer" }, $t = /* @__PURE__ */ X({
|
|
320
|
+
}, St = /* @__PURE__ */ oe(_t, [["__scopeId", "data-v-6ceb65e8"]]), le = (e, f) => (e.install = (u) => {
|
|
321
|
+
for (const s of [e, ...Object.values({})])
|
|
322
|
+
u.component(s.name, s);
|
|
323
|
+
}, e), wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
344
324
|
name: "HbLibListForm",
|
|
345
325
|
__name: "HbListForm",
|
|
346
326
|
props: {
|
|
@@ -368,23 +348,23 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
368
348
|
} }
|
|
369
349
|
},
|
|
370
350
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
371
|
-
setup(e, { expose:
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
|
|
351
|
+
setup(e, { expose: f, emit: u }) {
|
|
352
|
+
const s = u, F = we("HB_LIST_PAGE_CONTAINER"), m = $e("form"), p = e, r = O("show"), a = K(() => (console.log(p.items), [...p.items])), h = O(), b = () => {
|
|
353
|
+
s("handleSearch");
|
|
354
|
+
}, D = () => {
|
|
355
|
+
s("handleReset");
|
|
356
|
+
}, H = O(), Q = () => {
|
|
357
|
+
H.value && H.value.toOpenModal();
|
|
358
|
+
}, x = (_) => {
|
|
359
|
+
s("handleSfcmConfirm", _);
|
|
360
|
+
}, $ = () => {
|
|
361
|
+
r.value = r.value === "show" ? "hide" : "show";
|
|
382
362
|
};
|
|
383
|
-
|
|
363
|
+
ce(
|
|
384
364
|
() => p.isFormExpanded,
|
|
385
|
-
(
|
|
386
|
-
if (
|
|
387
|
-
console.log(
|
|
365
|
+
(_) => {
|
|
366
|
+
if (_) {
|
|
367
|
+
console.log(_);
|
|
388
368
|
const t = document.querySelector("#subpackage_container");
|
|
389
369
|
t instanceof HTMLElement && (t.style.overflow = "hidden", setTimeout(() => {
|
|
390
370
|
t.style.overflow = "auto";
|
|
@@ -392,170 +372,170 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
392
372
|
}
|
|
393
373
|
}
|
|
394
374
|
);
|
|
395
|
-
const
|
|
396
|
-
const t =
|
|
375
|
+
const E = (_) => {
|
|
376
|
+
const t = _;
|
|
397
377
|
t.style.height = "", t.offsetHeight;
|
|
398
|
-
},
|
|
399
|
-
const t =
|
|
378
|
+
}, N = (_) => {
|
|
379
|
+
const t = _;
|
|
400
380
|
t.style.height = "", t.style.overflow = "", he(() => {
|
|
401
|
-
|
|
381
|
+
F.calTableHeight && F.calTableHeight();
|
|
402
382
|
});
|
|
403
|
-
},
|
|
404
|
-
const t =
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
t.style.height =
|
|
383
|
+
}, P = (_) => {
|
|
384
|
+
const t = _, l = t.querySelector(".hb-lib-form--container");
|
|
385
|
+
if (l) {
|
|
386
|
+
const d = l.offsetHeight;
|
|
387
|
+
t.style.height = d + "px", t.style.overflow = "hidden", t.offsetHeight, requestAnimationFrame(() => {
|
|
408
388
|
t.style.height = "0";
|
|
409
389
|
});
|
|
410
390
|
}
|
|
411
|
-
},
|
|
391
|
+
}, T = () => {
|
|
412
392
|
he(() => {
|
|
413
|
-
|
|
393
|
+
F.calTableHeight && F.calTableHeight();
|
|
414
394
|
});
|
|
415
395
|
};
|
|
416
|
-
return
|
|
417
|
-
formRef:
|
|
418
|
-
SelectOption:
|
|
419
|
-
Form:
|
|
396
|
+
return f({
|
|
397
|
+
formRef: h,
|
|
398
|
+
SelectOption: Ue,
|
|
399
|
+
Form: Ee,
|
|
420
400
|
FormItem: Ve,
|
|
421
|
-
Row:
|
|
422
|
-
Col:
|
|
423
|
-
Input:
|
|
424
|
-
Select:
|
|
425
|
-
CheckboxGroup:
|
|
426
|
-
Checkbox:
|
|
401
|
+
Row: pt,
|
|
402
|
+
Col: ft,
|
|
403
|
+
Input: Pe,
|
|
404
|
+
Select: Ne,
|
|
405
|
+
CheckboxGroup: ze,
|
|
406
|
+
Checkbox: pe,
|
|
427
407
|
DatePicker: Re,
|
|
428
|
-
InputNumber:
|
|
429
|
-
RadioGroup:
|
|
430
|
-
Radio:
|
|
431
|
-
Switch:
|
|
408
|
+
InputNumber: Be,
|
|
409
|
+
RadioGroup: Oe,
|
|
410
|
+
Radio: De,
|
|
411
|
+
Switch: Ae,
|
|
432
412
|
Button: de,
|
|
433
|
-
Tooltip:
|
|
434
|
-
}), (
|
|
435
|
-
const
|
|
436
|
-
return o(), k(
|
|
437
|
-
|
|
413
|
+
Tooltip: He
|
|
414
|
+
}), (_, t) => {
|
|
415
|
+
const l = j("a-button"), d = j("a-tooltip"), y = j("HbLibFormItemFilterModal");
|
|
416
|
+
return o(), k(W, null, [
|
|
417
|
+
S(Xe, {
|
|
438
418
|
name: "form-collapse",
|
|
439
|
-
onEnter:
|
|
440
|
-
onAfterEnter:
|
|
441
|
-
onLeave:
|
|
442
|
-
onAfterLeave:
|
|
419
|
+
onEnter: E,
|
|
420
|
+
onAfterEnter: N,
|
|
421
|
+
onLeave: P,
|
|
422
|
+
onAfterLeave: T
|
|
443
423
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
class:
|
|
424
|
+
default: c(() => [
|
|
425
|
+
ie(v("div", {
|
|
426
|
+
class: V([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
447
427
|
}, [
|
|
448
|
-
|
|
428
|
+
S(n(Ee), X(_.$attrs, {
|
|
449
429
|
model: e.formData,
|
|
450
430
|
ref_key: "formRef",
|
|
451
|
-
ref:
|
|
452
|
-
class: ["hb-lib-form--container",
|
|
431
|
+
ref: h,
|
|
432
|
+
class: ["hb-lib-form--container", r.value == "show" ? "" : "hide"]
|
|
453
433
|
}), {
|
|
454
|
-
default:
|
|
455
|
-
(o(!0), k(
|
|
456
|
-
key:
|
|
434
|
+
default: c(() => [
|
|
435
|
+
(o(!0), k(W, null, ne(a.value, (i, U) => (o(), B(n(Ve), X({
|
|
436
|
+
key: U,
|
|
457
437
|
ref_for: !0
|
|
458
|
-
},
|
|
459
|
-
name:
|
|
460
|
-
class:
|
|
461
|
-
}),
|
|
462
|
-
default:
|
|
463
|
-
|
|
438
|
+
}, i, {
|
|
439
|
+
name: i.key,
|
|
440
|
+
class: i.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
441
|
+
}), Ge({
|
|
442
|
+
default: c(() => [
|
|
443
|
+
i.type === "slot" ? Z(_.$slots, i.key, {
|
|
464
444
|
key: 0,
|
|
465
445
|
formData: e.formData,
|
|
466
|
-
item:
|
|
446
|
+
item: i
|
|
467
447
|
}, void 0, !0) : R("", !0),
|
|
468
|
-
|
|
448
|
+
i.type === "mixin" ? Z(_.$slots, i.key, {
|
|
469
449
|
key: 1,
|
|
470
450
|
formData: e.formData,
|
|
471
|
-
item:
|
|
451
|
+
item: i
|
|
472
452
|
}, void 0, !0) : R("", !0),
|
|
473
|
-
|
|
453
|
+
i.type === "input" ? (o(), B(n(Pe), X({
|
|
474
454
|
key: 2,
|
|
475
|
-
value: e.formData[
|
|
476
|
-
"onUpdate:value": (
|
|
477
|
-
}, { ref_for: !0 },
|
|
478
|
-
|
|
455
|
+
value: e.formData[i.key],
|
|
456
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
457
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
458
|
+
i.type === "select" ? (o(), B(n(Ne), X({
|
|
479
459
|
key: 3,
|
|
480
|
-
value: e.formData[
|
|
481
|
-
"onUpdate:value": (
|
|
482
|
-
}, { ref_for: !0 },
|
|
483
|
-
default:
|
|
484
|
-
(o(!0), k(
|
|
485
|
-
key:
|
|
486
|
-
value:
|
|
460
|
+
value: e.formData[i.key],
|
|
461
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
462
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
463
|
+
default: c(() => [
|
|
464
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(Ue), {
|
|
465
|
+
key: ee,
|
|
466
|
+
value: z.value
|
|
487
467
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
I(L(
|
|
468
|
+
default: c(() => [
|
|
469
|
+
I(L(z.label), 1)
|
|
490
470
|
]),
|
|
491
471
|
_: 2
|
|
492
472
|
}, 1032, ["value"]))), 128))
|
|
493
473
|
]),
|
|
494
474
|
_: 2
|
|
495
475
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
496
|
-
|
|
476
|
+
i.type === "checkbox" ? (o(), B(n(ze), X({
|
|
497
477
|
key: 4,
|
|
498
|
-
value: e.formData[
|
|
499
|
-
"onUpdate:value": (
|
|
500
|
-
}, { ref_for: !0 },
|
|
501
|
-
default:
|
|
502
|
-
(o(!0), k(
|
|
503
|
-
key:
|
|
504
|
-
value:
|
|
478
|
+
value: e.formData[i.key],
|
|
479
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
480
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
481
|
+
default: c(() => [
|
|
482
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(pe), {
|
|
483
|
+
key: ee,
|
|
484
|
+
value: z.value
|
|
505
485
|
}, {
|
|
506
|
-
default:
|
|
507
|
-
I(L(
|
|
486
|
+
default: c(() => [
|
|
487
|
+
I(L(z.label), 1)
|
|
508
488
|
]),
|
|
509
489
|
_: 2
|
|
510
490
|
}, 1032, ["value"]))), 128))
|
|
511
491
|
]),
|
|
512
492
|
_: 2
|
|
513
493
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
514
|
-
|
|
494
|
+
i.type === "date-picker" ? (o(), B(n(Re), X({
|
|
515
495
|
key: 5,
|
|
516
|
-
value: e.formData[
|
|
517
|
-
"onUpdate:value": (
|
|
518
|
-
}, { ref_for: !0 },
|
|
519
|
-
|
|
496
|
+
value: e.formData[i.key],
|
|
497
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
498
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
499
|
+
i.type === "input-number" ? (o(), B(n(Be), X({
|
|
520
500
|
key: 6,
|
|
521
|
-
value: e.formData[
|
|
522
|
-
"onUpdate:value": (
|
|
523
|
-
}, { ref_for: !0 },
|
|
524
|
-
|
|
501
|
+
value: e.formData[i.key],
|
|
502
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
503
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
504
|
+
i.type === "radio" ? (o(), B(n(Oe), X({
|
|
525
505
|
key: 7,
|
|
526
|
-
value: e.formData[
|
|
527
|
-
"onUpdate:value": (
|
|
528
|
-
}, { ref_for: !0 },
|
|
529
|
-
default:
|
|
530
|
-
(o(!0), k(
|
|
531
|
-
key:
|
|
532
|
-
value:
|
|
506
|
+
value: e.formData[i.key],
|
|
507
|
+
"onUpdate:value": (z) => e.formData[i.key] = z
|
|
508
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
509
|
+
default: c(() => [
|
|
510
|
+
(o(!0), k(W, null, ne(i.options, (z, ee) => (o(), B(n(De), {
|
|
511
|
+
key: ee,
|
|
512
|
+
value: z.value
|
|
533
513
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
I(L(
|
|
514
|
+
default: c(() => [
|
|
515
|
+
I(L(z.label), 1)
|
|
536
516
|
]),
|
|
537
517
|
_: 2
|
|
538
518
|
}, 1032, ["value"]))), 128))
|
|
539
519
|
]),
|
|
540
520
|
_: 2
|
|
541
521
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
542
|
-
|
|
522
|
+
i.type === "switch" ? (o(), B(n(Ae), X({
|
|
543
523
|
key: 8,
|
|
544
|
-
checked: e.formData[
|
|
545
|
-
"onUpdate:checked": (
|
|
546
|
-
}, { ref_for: !0 },
|
|
524
|
+
checked: e.formData[i.key],
|
|
525
|
+
"onUpdate:checked": (z) => e.formData[i.key] = z
|
|
526
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["checked", "onUpdate:checked"])) : R("", !0)
|
|
547
527
|
]),
|
|
548
528
|
_: 2
|
|
549
529
|
}, [
|
|
550
|
-
|
|
530
|
+
i.tooltip ? {
|
|
551
531
|
name: "label",
|
|
552
|
-
fn:
|
|
553
|
-
I(L(
|
|
554
|
-
|
|
555
|
-
title:
|
|
532
|
+
fn: c(() => [
|
|
533
|
+
I(L(i.label) + " ", 1),
|
|
534
|
+
S(n(He), {
|
|
535
|
+
title: i.tooltip
|
|
556
536
|
}, {
|
|
557
|
-
default:
|
|
558
|
-
|
|
537
|
+
default: c(() => [
|
|
538
|
+
S(n(dt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
559
539
|
]),
|
|
560
540
|
_: 1
|
|
561
541
|
}, 8, ["title"])
|
|
@@ -563,37 +543,37 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
563
543
|
key: "0"
|
|
564
544
|
} : void 0
|
|
565
545
|
]), 1040, ["name", "class"]))), 128)),
|
|
566
|
-
v("section",
|
|
567
|
-
|
|
546
|
+
v("section", Ft, [
|
|
547
|
+
S(l, {
|
|
568
548
|
type: "primary",
|
|
569
|
-
onClick:
|
|
549
|
+
onClick: b,
|
|
570
550
|
class: "hb_list_page_button"
|
|
571
551
|
}, {
|
|
572
|
-
icon:
|
|
573
|
-
|
|
552
|
+
icon: c(() => [
|
|
553
|
+
S(n(xe))
|
|
574
554
|
]),
|
|
575
|
-
default:
|
|
576
|
-
I(" " + L(
|
|
555
|
+
default: c(() => [
|
|
556
|
+
I(" " + L(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
577
557
|
]),
|
|
578
558
|
_: 1
|
|
579
559
|
}),
|
|
580
|
-
|
|
560
|
+
S(l, {
|
|
581
561
|
type: "link",
|
|
582
|
-
onClick:
|
|
562
|
+
onClick: D
|
|
583
563
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
I(L(
|
|
564
|
+
default: c(() => [
|
|
565
|
+
I(L(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
586
566
|
]),
|
|
587
567
|
_: 1
|
|
588
568
|
}),
|
|
589
|
-
e.needFilter ? (o(), B(
|
|
569
|
+
e.needFilter ? (o(), B(d, {
|
|
590
570
|
key: 0,
|
|
591
|
-
title:
|
|
571
|
+
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
592
572
|
}, {
|
|
593
|
-
default:
|
|
573
|
+
default: c(() => [
|
|
594
574
|
v("span", {
|
|
595
575
|
class: "hb-lib-form-svg",
|
|
596
|
-
onClick:
|
|
576
|
+
onClick: Q
|
|
597
577
|
}, [...t[0] || (t[0] = [
|
|
598
578
|
v("svg", {
|
|
599
579
|
t: "1757915025410",
|
|
@@ -615,119 +595,73 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
615
595
|
]),
|
|
616
596
|
_: 1
|
|
617
597
|
}, 8, ["title"])) : R("", !0),
|
|
618
|
-
Z(
|
|
598
|
+
Z(_.$slots, "formBtns", {}, void 0, !0)
|
|
619
599
|
])
|
|
620
600
|
]),
|
|
621
601
|
_: 3
|
|
622
602
|
}, 16, ["model", "class"]),
|
|
623
603
|
e.needFooter ? (o(), k("div", {
|
|
624
604
|
key: 0,
|
|
625
|
-
class:
|
|
605
|
+
class: V(n(m).e("footer"))
|
|
626
606
|
}, [
|
|
627
607
|
v("div", {
|
|
628
|
-
class:
|
|
608
|
+
class: V(n(m).e("footer__left"))
|
|
629
609
|
}, [
|
|
630
|
-
Z(
|
|
610
|
+
Z(_.$slots, "form-footer-left", {}, void 0, !0)
|
|
631
611
|
], 2),
|
|
632
612
|
v("div", {
|
|
633
|
-
class:
|
|
613
|
+
class: V(n(m).e("footer__right"))
|
|
634
614
|
}, [
|
|
635
|
-
|
|
615
|
+
r.value == "show" ? Z(_.$slots, "form-footer-right", {
|
|
636
616
|
key: 0,
|
|
637
|
-
formRef:
|
|
617
|
+
formRef: h.value
|
|
638
618
|
}, () => [
|
|
639
|
-
|
|
619
|
+
S(n(de), {
|
|
640
620
|
type: "primary",
|
|
641
|
-
onClick:
|
|
621
|
+
onClick: D
|
|
642
622
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
I(L(
|
|
623
|
+
default: c(() => [
|
|
624
|
+
I(L(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
645
625
|
]),
|
|
646
626
|
_: 1
|
|
647
627
|
}),
|
|
648
|
-
|
|
628
|
+
S(n(de), {
|
|
649
629
|
type: "primary",
|
|
650
|
-
onClick:
|
|
630
|
+
onClick: b
|
|
651
631
|
}, {
|
|
652
|
-
default:
|
|
653
|
-
I(L(
|
|
632
|
+
default: c(() => [
|
|
633
|
+
I(L(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
654
634
|
]),
|
|
655
635
|
_: 1
|
|
656
636
|
})
|
|
657
637
|
], !0) : R("", !0),
|
|
658
|
-
|
|
638
|
+
S(n(de), {
|
|
659
639
|
type: "primary",
|
|
660
|
-
onClick:
|
|
640
|
+
onClick: $
|
|
661
641
|
}, {
|
|
662
|
-
default:
|
|
663
|
-
I(L(
|
|
642
|
+
default: c(() => [
|
|
643
|
+
I(L(r.value == "show" ? `${_.$t("hbLibComp.hbListPageAct.close")}` : `${_.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
664
644
|
]),
|
|
665
645
|
_: 1
|
|
666
646
|
})
|
|
667
647
|
], 2)
|
|
668
648
|
], 2)) : R("", !0)
|
|
669
649
|
], 2), [
|
|
670
|
-
[
|
|
650
|
+
[et, e.isFormExpanded]
|
|
671
651
|
])
|
|
672
652
|
]),
|
|
673
653
|
_: 3
|
|
674
654
|
}),
|
|
675
|
-
|
|
655
|
+
S(y, {
|
|
676
656
|
list: e.items,
|
|
677
657
|
ref_key: "HbSfCmRef",
|
|
678
|
-
ref:
|
|
679
|
-
onConfirm:
|
|
658
|
+
ref: H,
|
|
659
|
+
onConfirm: x
|
|
680
660
|
}, null, 8, ["list"])
|
|
681
661
|
], 64);
|
|
682
662
|
};
|
|
683
663
|
}
|
|
684
|
-
}),
|
|
685
|
-
// 每一个表单配置对象
|
|
686
|
-
items: {
|
|
687
|
-
type: Array,
|
|
688
|
-
required: !0
|
|
689
|
-
},
|
|
690
|
-
formData: {
|
|
691
|
-
type: Object,
|
|
692
|
-
required: !0
|
|
693
|
-
},
|
|
694
|
-
layoutConfig: {
|
|
695
|
-
type: Object,
|
|
696
|
-
default: {
|
|
697
|
-
// 对row的属性设置
|
|
698
|
-
row: {
|
|
699
|
-
gutter: 20
|
|
700
|
-
},
|
|
701
|
-
// 对col的属性设置
|
|
702
|
-
col: {
|
|
703
|
-
// 栅格设置
|
|
704
|
-
xs: 24,
|
|
705
|
-
sm: 12,
|
|
706
|
-
md: 8,
|
|
707
|
-
lg: 6,
|
|
708
|
-
xl: 6
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
// 是否需要底部按钮
|
|
713
|
-
needFooter: {
|
|
714
|
-
type: Boolean,
|
|
715
|
-
default: !1
|
|
716
|
-
},
|
|
717
|
-
isFormExpanded: {
|
|
718
|
-
type: Boolean,
|
|
719
|
-
default: !0
|
|
720
|
-
},
|
|
721
|
-
needFilter: {
|
|
722
|
-
type: Boolean,
|
|
723
|
-
default: !0
|
|
724
|
-
},
|
|
725
|
-
calTableHeight: {
|
|
726
|
-
type: Function,
|
|
727
|
-
default: () => {
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
}, Ht = le(Mt), It = { class: "hb-lib-list-page-act-box" }, At = { class: "hb-lib-list-page-breadcrumb" }, Dt = { class: "hb-lib-list-page-act" }, Ot = {
|
|
664
|
+
}), Tt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-a1fedfa4"]]), $t = le(Tt), Mt = { class: "hb-lib-list-page-act-box" }, It = { class: "hb-lib-list-page-breadcrumb" }, Ht = { class: "hb-lib-list-page-act" }, At = {
|
|
731
665
|
key: 0,
|
|
732
666
|
t: "1757915338760",
|
|
733
667
|
class: "icon",
|
|
@@ -737,7 +671,7 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
737
671
|
"p-id": "22885",
|
|
738
672
|
width: "200",
|
|
739
673
|
height: "200"
|
|
740
|
-
},
|
|
674
|
+
}, Dt = {
|
|
741
675
|
key: 1,
|
|
742
676
|
t: "1757915360496",
|
|
743
677
|
class: "icon",
|
|
@@ -747,7 +681,7 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
747
681
|
"p-id": "23904",
|
|
748
682
|
width: "200",
|
|
749
683
|
height: "200"
|
|
750
|
-
},
|
|
684
|
+
}, Ot = /* @__PURE__ */ te({
|
|
751
685
|
name: "HbLibListPageAct",
|
|
752
686
|
__name: "HbListPageAct",
|
|
753
687
|
props: {
|
|
@@ -757,33 +691,33 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
757
691
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
758
692
|
},
|
|
759
693
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
760
|
-
setup(e, { emit:
|
|
761
|
-
const u =
|
|
762
|
-
const
|
|
763
|
-
let
|
|
764
|
-
if (
|
|
765
|
-
let
|
|
766
|
-
|
|
694
|
+
setup(e, { emit: f }) {
|
|
695
|
+
const u = we("HB_LIST_PAGE_CONTAINER"), { isFullscreen: s, toggle: F } = vt(u.PageContainerRef), m = O(""), p = () => {
|
|
696
|
+
const r = Qe();
|
|
697
|
+
let a = localStorage.getItem("BreadCrumb") || "[]", h = r?.path;
|
|
698
|
+
if (a !== "[]") {
|
|
699
|
+
let b = JSON.parse(a).find((D) => D.value === h);
|
|
700
|
+
b && (m.value = b.label.replace(/-/g, " / "));
|
|
767
701
|
}
|
|
768
702
|
};
|
|
769
|
-
return
|
|
703
|
+
return Fe(() => {
|
|
770
704
|
p();
|
|
771
|
-
}), (
|
|
772
|
-
const
|
|
773
|
-
return o(), k("section",
|
|
774
|
-
v("aside",
|
|
775
|
-
v("aside",
|
|
776
|
-
|
|
777
|
-
title:
|
|
705
|
+
}), (r, a) => {
|
|
706
|
+
const h = j("a-tooltip");
|
|
707
|
+
return o(), k("section", Mt, [
|
|
708
|
+
v("aside", It, L(m.value), 1),
|
|
709
|
+
v("aside", Ht, [
|
|
710
|
+
S(h, {
|
|
711
|
+
title: n(s) ? `${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
778
712
|
placement: "leftTop"
|
|
779
713
|
}, {
|
|
780
|
-
default:
|
|
714
|
+
default: c(() => [
|
|
781
715
|
v("span", {
|
|
782
716
|
class: "hb-lib-list-page-act-svg",
|
|
783
|
-
onClick:
|
|
784
|
-
(...
|
|
717
|
+
onClick: a[0] || (a[0] = //@ts-ignore
|
|
718
|
+
(...b) => n(F) && n(F)(...b))
|
|
785
719
|
}, [
|
|
786
|
-
|
|
720
|
+
n(s) ? (o(), k("svg", Dt, [...a[2] || (a[2] = [
|
|
787
721
|
v("path", {
|
|
788
722
|
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",
|
|
789
723
|
fill: "#ff5000",
|
|
@@ -799,7 +733,7 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
799
733
|
fill: "#ff5000",
|
|
800
734
|
"p-id": "23907"
|
|
801
735
|
}, null, -1)
|
|
802
|
-
])])) : (o(), k("svg",
|
|
736
|
+
])])) : (o(), k("svg", At, [...a[1] || (a[1] = [
|
|
803
737
|
v("path", {
|
|
804
738
|
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",
|
|
805
739
|
fill: "#ff5000",
|
|
@@ -810,32 +744,12 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
810
744
|
]),
|
|
811
745
|
_: 1
|
|
812
746
|
}, 8, ["title"]),
|
|
813
|
-
Z(
|
|
747
|
+
Z(r.$slots, "listAct", {}, void 0, !0)
|
|
814
748
|
])
|
|
815
749
|
]);
|
|
816
750
|
};
|
|
817
751
|
}
|
|
818
|
-
}),
|
|
819
|
-
formItems: {
|
|
820
|
-
type: Array,
|
|
821
|
-
default: () => []
|
|
822
|
-
},
|
|
823
|
-
// 是否展示自定义筛选
|
|
824
|
-
isShowSelfFilter: {
|
|
825
|
-
type: Boolean,
|
|
826
|
-
default: !0
|
|
827
|
-
},
|
|
828
|
-
// 是否展示展开收起
|
|
829
|
-
isShowOpenClose: {
|
|
830
|
-
type: Boolean,
|
|
831
|
-
default: !0
|
|
832
|
-
},
|
|
833
|
-
// 是否展示全屏
|
|
834
|
-
isShowFullScreen: {
|
|
835
|
-
type: Boolean,
|
|
836
|
-
default: !0
|
|
837
|
-
}
|
|
838
|
-
}, Pt = le(Rt), zt = { class: "hb-lib-list-btns-box" }, Et = { class: "hb-lib-list-btns-left" }, Vt = { class: "hb-lib-list-btns-right" }, Ut = /* @__PURE__ */ X({
|
|
752
|
+
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]), Rt = le(Bt), zt = { class: "hb-lib-list-btns-box" }, Nt = { class: "hb-lib-list-btns-left" }, Pt = { class: "hb-lib-list-btns-right" }, Vt = /* @__PURE__ */ te({
|
|
839
753
|
name: "HbLibListBtnsAct",
|
|
840
754
|
__name: "HbListBtns",
|
|
841
755
|
props: {
|
|
@@ -845,29 +759,29 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
845
759
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
846
760
|
},
|
|
847
761
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
848
|
-
setup(e, { emit:
|
|
849
|
-
const u =
|
|
850
|
-
|
|
762
|
+
setup(e, { emit: f }) {
|
|
763
|
+
const u = f, s = O(!0), F = () => {
|
|
764
|
+
s.value = !s.value, u("handleOpenOrClose", s.value);
|
|
851
765
|
}, m = () => {
|
|
852
766
|
u("handleReload");
|
|
853
767
|
};
|
|
854
|
-
return
|
|
855
|
-
}), (p,
|
|
856
|
-
const
|
|
768
|
+
return Fe(() => {
|
|
769
|
+
}), (p, r) => {
|
|
770
|
+
const a = j("a-tooltip");
|
|
857
771
|
return o(), k("section", zt, [
|
|
858
|
-
v("aside",
|
|
772
|
+
v("aside", Nt, [
|
|
859
773
|
Z(p.$slots, "btnsLeft", {}, void 0, !0)
|
|
860
774
|
]),
|
|
861
|
-
v("aside",
|
|
862
|
-
e.needReload ? (o(), B(
|
|
775
|
+
v("aside", Pt, [
|
|
776
|
+
e.needReload ? (o(), B(a, {
|
|
863
777
|
key: 0,
|
|
864
778
|
title: p.$t("hbLibComp.hbListBtnsAct.reload")
|
|
865
779
|
}, {
|
|
866
|
-
default:
|
|
780
|
+
default: c(() => [
|
|
867
781
|
v("span", {
|
|
868
782
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
869
783
|
onClick: m
|
|
870
|
-
}, [...
|
|
784
|
+
}, [...r[0] || (r[0] = [
|
|
871
785
|
v("svg", {
|
|
872
786
|
t: "1759041224819",
|
|
873
787
|
class: "icon",
|
|
@@ -888,19 +802,19 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
888
802
|
]),
|
|
889
803
|
_: 1
|
|
890
804
|
}, 8, ["title"])) : R("", !0),
|
|
891
|
-
e.needOpenOrClose ? (o(), B(
|
|
805
|
+
e.needOpenOrClose ? (o(), B(a, {
|
|
892
806
|
key: 1,
|
|
893
|
-
title:
|
|
807
|
+
title: s.value ? `${p.$t("hbLibComp.hbListBtnsAct.close")}` : `${p.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
894
808
|
}, {
|
|
895
|
-
default:
|
|
809
|
+
default: c(() => [
|
|
896
810
|
v("span", {
|
|
897
811
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
898
|
-
onClick:
|
|
812
|
+
onClick: F
|
|
899
813
|
}, [
|
|
900
|
-
|
|
814
|
+
s.value ? (o(), B(n(ut), {
|
|
901
815
|
key: 0,
|
|
902
816
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
903
|
-
})) : (o(), B(
|
|
817
|
+
})) : (o(), B(n(ht), {
|
|
904
818
|
key: 1,
|
|
905
819
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
906
820
|
}))
|
|
@@ -913,101 +827,83 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
913
827
|
]);
|
|
914
828
|
};
|
|
915
829
|
}
|
|
916
|
-
}),
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
// 是否展示自定义筛选
|
|
922
|
-
isShowSelfFilter: {
|
|
923
|
-
type: Boolean,
|
|
924
|
-
default: !0
|
|
925
|
-
},
|
|
926
|
-
needReload: {
|
|
927
|
-
type: Boolean,
|
|
928
|
-
default: !0
|
|
929
|
-
},
|
|
930
|
-
needOpenOrClose: {
|
|
931
|
-
type: Boolean,
|
|
932
|
-
default: !0
|
|
933
|
-
}
|
|
934
|
-
}, Yt = le(Kt), jt = (e = {}) => {
|
|
935
|
-
const { formRef: d, offsetBottom: u = 50, minHeight: n = 300 } = e, _ = O(0);
|
|
936
|
-
let m = null, p = null, h = null, l = null, s = null;
|
|
937
|
-
const r = () => {
|
|
938
|
-
s && clearTimeout(s), s = setTimeout(() => {
|
|
830
|
+
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), Ut = le(Et), Yt = (e = {}) => {
|
|
831
|
+
const { formRef: f, offsetBottom: u = 50, minHeight: s = 300 } = e, F = O(0);
|
|
832
|
+
let m = null, p = null, r = null, a = null, h = null;
|
|
833
|
+
const b = () => {
|
|
834
|
+
h && clearTimeout(h), h = setTimeout(() => {
|
|
939
835
|
requestAnimationFrame(() => {
|
|
940
836
|
he(() => {
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
943
|
-
const
|
|
944
|
-
let
|
|
945
|
-
|
|
837
|
+
const N = document.querySelector(".ant-table"), P = document.querySelector(".ant-pagination");
|
|
838
|
+
if (N) {
|
|
839
|
+
const T = N.getBoundingClientRect().top, _ = window.innerHeight, l = (P ? P.offsetHeight + 20 : 40) + u;
|
|
840
|
+
let d = _ - T - l;
|
|
841
|
+
d < s && (d = s), F.value = d;
|
|
946
842
|
}
|
|
947
843
|
});
|
|
948
844
|
});
|
|
949
845
|
}, 100);
|
|
950
|
-
},
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
|
|
846
|
+
}, D = () => {
|
|
847
|
+
const N = document.querySelector(".ant-pagination");
|
|
848
|
+
if (N) {
|
|
849
|
+
const P = new MutationObserver(() => {
|
|
850
|
+
b();
|
|
955
851
|
});
|
|
956
|
-
return
|
|
852
|
+
return P.observe(N, {
|
|
957
853
|
childList: !0,
|
|
958
854
|
subtree: !0,
|
|
959
855
|
attributes: !0,
|
|
960
856
|
attributeFilter: ["style", "class"]
|
|
961
|
-
}),
|
|
857
|
+
}), P;
|
|
962
858
|
}
|
|
963
859
|
return null;
|
|
964
|
-
},
|
|
965
|
-
const
|
|
966
|
-
|
|
967
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
968
|
-
|
|
969
|
-
}),
|
|
970
|
-
}), m.observe(
|
|
971
|
-
},
|
|
972
|
-
const
|
|
973
|
-
|
|
860
|
+
}, H = () => {
|
|
861
|
+
const N = document.querySelector(".hb-lib-list-page-form-box");
|
|
862
|
+
N && (m = new ResizeObserver(() => {
|
|
863
|
+
document.querySelectorAll(".ant-tooltip").forEach((T) => {
|
|
864
|
+
T.style.display = "none";
|
|
865
|
+
}), b();
|
|
866
|
+
}), m.observe(N));
|
|
867
|
+
}, Q = () => {
|
|
868
|
+
const N = document.querySelector(".hb-lib-list-page-form-box");
|
|
869
|
+
N && (r = new MutationObserver(() => {
|
|
974
870
|
setTimeout(() => {
|
|
975
|
-
|
|
871
|
+
b();
|
|
976
872
|
}, 100);
|
|
977
|
-
}),
|
|
873
|
+
}), r.observe(N, {
|
|
978
874
|
childList: !0,
|
|
979
875
|
subtree: !0,
|
|
980
876
|
attributes: !0,
|
|
981
877
|
attributeFilter: ["style", "class"]
|
|
982
878
|
}));
|
|
983
|
-
}, S = () => {
|
|
984
|
-
l && clearTimeout(l), l = setTimeout(() => {
|
|
985
|
-
r();
|
|
986
|
-
}, 100);
|
|
987
879
|
}, x = () => {
|
|
988
|
-
|
|
989
|
-
|
|
880
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
881
|
+
b();
|
|
882
|
+
}, 100);
|
|
883
|
+
}, $ = () => {
|
|
884
|
+
window.addEventListener("resize", x), he(() => {
|
|
885
|
+
H(), Q(), p = D();
|
|
990
886
|
});
|
|
991
|
-
},
|
|
992
|
-
window.removeEventListener("resize",
|
|
887
|
+
}, E = () => {
|
|
888
|
+
window.removeEventListener("resize", x), m && m.disconnect(), r && r.disconnect(), p && p.disconnect(), a && clearTimeout(a), h && clearTimeout(h);
|
|
993
889
|
};
|
|
994
|
-
return
|
|
995
|
-
() =>
|
|
890
|
+
return f && ce(
|
|
891
|
+
() => f,
|
|
996
892
|
() => {
|
|
997
893
|
setTimeout(() => {
|
|
998
|
-
|
|
894
|
+
b();
|
|
999
895
|
}, 200);
|
|
1000
896
|
},
|
|
1001
897
|
{ deep: !0 }
|
|
1002
|
-
),
|
|
1003
|
-
|
|
1004
|
-
}),
|
|
1005
|
-
|
|
898
|
+
), Fe(() => {
|
|
899
|
+
b(), $();
|
|
900
|
+
}), tt(() => {
|
|
901
|
+
E();
|
|
1006
902
|
}), {
|
|
1007
|
-
tableHeight:
|
|
1008
|
-
calTableHeight:
|
|
903
|
+
tableHeight: F,
|
|
904
|
+
calTableHeight: b
|
|
1009
905
|
};
|
|
1010
|
-
},
|
|
906
|
+
}, jt = /* @__PURE__ */ te({
|
|
1011
907
|
name: "HbLibListPageContainer",
|
|
1012
908
|
__name: "HbListPageContainer",
|
|
1013
909
|
props: {
|
|
@@ -1017,18 +913,18 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1017
913
|
minHeight: {}
|
|
1018
914
|
},
|
|
1019
915
|
setup(e) {
|
|
1020
|
-
const
|
|
1021
|
-
offsetBottom:
|
|
916
|
+
const f = e, u = lt("PageContainerRef"), { calTableHeight: s, tableHeight: F } = Yt({
|
|
917
|
+
offsetBottom: f.offsetBottom || 20,
|
|
1022
918
|
// 底部预留空间
|
|
1023
|
-
minHeight:
|
|
919
|
+
minHeight: f.minHeight || 300
|
|
1024
920
|
// table最小高度 请勿随便修改!!
|
|
1025
|
-
}), m =
|
|
1026
|
-
return
|
|
921
|
+
}), m = K(() => F.value);
|
|
922
|
+
return ot("HB_LIST_PAGE_CONTAINER", {
|
|
1027
923
|
PageContainerRef: u,
|
|
1028
924
|
// 通过函数访问,
|
|
1029
|
-
tableHeight:
|
|
1030
|
-
calTableHeight:
|
|
1031
|
-
}), (p,
|
|
925
|
+
tableHeight: F,
|
|
926
|
+
calTableHeight: s
|
|
927
|
+
}), (p, r) => (o(), k("section", {
|
|
1032
928
|
class: "hb-lib-list-page-container",
|
|
1033
929
|
ref_key: "PageContainerRef",
|
|
1034
930
|
ref: u
|
|
@@ -1036,7 +932,7 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1036
932
|
Z(p.$slots, "header"),
|
|
1037
933
|
v("section", {
|
|
1038
934
|
class: "list-page-box",
|
|
1039
|
-
style:
|
|
935
|
+
style: me({
|
|
1040
936
|
"--hb-list-table-height": m.value - 20 + "px",
|
|
1041
937
|
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value - 20 + "px"
|
|
1042
938
|
})
|
|
@@ -1045,37 +941,22 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1045
941
|
], 4)
|
|
1046
942
|
], 512));
|
|
1047
943
|
}
|
|
1048
|
-
}),
|
|
1049
|
-
tableHeight: {
|
|
1050
|
-
type: Number,
|
|
1051
|
-
default: 400
|
|
1052
|
-
},
|
|
1053
|
-
tabelData: {
|
|
1054
|
-
type: Array,
|
|
1055
|
-
default: () => []
|
|
1056
|
-
},
|
|
1057
|
-
offsetBottom: {
|
|
1058
|
-
type: Number
|
|
1059
|
-
},
|
|
1060
|
-
minHeight: {
|
|
1061
|
-
type: Number
|
|
1062
|
-
}
|
|
1063
|
-
}, Wt = le(qt), Jt = { style: { "font-weight": "500" } }, Gt = {
|
|
944
|
+
}), qt = le(jt), Kt = { style: { "font-weight": "500" } }, Wt = {
|
|
1064
945
|
key: 0,
|
|
1065
946
|
class: "hb-lib-search-tag__description"
|
|
1066
|
-
},
|
|
947
|
+
}, Jt = { class: "hb-lib-selector-dropdown" }, Gt = { class: "hb-lib-selector-search" }, Qt = { class: "hb-lib-selector-list" }, Zt = ["onClick"], Xt = { class: "hb-lib-option-content" }, el = { class: "hb-lib-option-label" }, tl = {
|
|
1067
948
|
key: 0,
|
|
1068
949
|
class: "hb-lib-selector-empty"
|
|
1069
|
-
},
|
|
950
|
+
}, ll = {
|
|
1070
951
|
key: 1,
|
|
1071
952
|
class: "hb-lib-selector-footer"
|
|
1072
|
-
},
|
|
953
|
+
}, ol = { class: "hb-lib-footer-buttons" }, al = {
|
|
1073
954
|
key: 2,
|
|
1074
955
|
class: "hb-lib-selector-footer"
|
|
1075
|
-
},
|
|
956
|
+
}, nl = { class: "hb-lib-footer-buttons" }, sl = /* @__PURE__ */ te({
|
|
1076
957
|
name: "HbLibListMultiSelect",
|
|
1077
958
|
__name: "HbListMultiSelect",
|
|
1078
|
-
props: /* @__PURE__ */
|
|
959
|
+
props: /* @__PURE__ */ Me({
|
|
1079
960
|
title: { default: "请选择" },
|
|
1080
961
|
placeholder: { default: "点击选择" },
|
|
1081
962
|
searchPlaceholder: { default: "搜索选项" },
|
|
@@ -1092,71 +973,71 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1092
973
|
value: {},
|
|
1093
974
|
valueModifiers: {}
|
|
1094
975
|
}),
|
|
1095
|
-
emits: /* @__PURE__ */
|
|
1096
|
-
setup(e, { emit:
|
|
1097
|
-
const u = e,
|
|
976
|
+
emits: /* @__PURE__ */ Me(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
977
|
+
setup(e, { emit: f }) {
|
|
978
|
+
const u = e, s = f, F = at(e, "value"), m = O(!1), p = O(""), r = O([]), a = O(), h = K(() => {
|
|
1098
979
|
if (u.remoteSearch || !p.value) return u.options;
|
|
1099
980
|
const t = p.value.toLowerCase();
|
|
1100
|
-
return u.options.filter((
|
|
1101
|
-
}),
|
|
1102
|
-
if (
|
|
1103
|
-
const t =
|
|
1104
|
-
return t > 0 && t <
|
|
981
|
+
return u.options.filter((l) => l.label.toLowerCase().includes(t) || l.description?.toLowerCase().includes(t));
|
|
982
|
+
}), b = K(() => u.prefix ? `${u.prefix.length * 14 + 8}px` : "0px"), D = K(() => h.value.length === 0 ? !1 : h.value.every((t) => r.value.includes(t.value))), H = K(() => {
|
|
983
|
+
if (h.value.length === 0) return !1;
|
|
984
|
+
const t = h.value.filter((l) => r.value.includes(l.value)).length;
|
|
985
|
+
return t > 0 && t < h.value.length;
|
|
1105
986
|
});
|
|
1106
|
-
|
|
1107
|
-
() =>
|
|
987
|
+
ce(
|
|
988
|
+
() => F.value,
|
|
1108
989
|
(t) => {
|
|
1109
|
-
t ?
|
|
990
|
+
t ? r.value = Array.isArray(t) ? [...t] : [t] : r.value = [];
|
|
1110
991
|
},
|
|
1111
992
|
{ immediate: !0 }
|
|
1112
|
-
),
|
|
993
|
+
), ce(
|
|
1113
994
|
() => u.searchValue,
|
|
1114
995
|
(t) => {
|
|
1115
996
|
u.remoteSearch && t !== void 0 && (p.value = t);
|
|
1116
997
|
},
|
|
1117
998
|
{ immediate: !0 }
|
|
1118
999
|
);
|
|
1119
|
-
const
|
|
1120
|
-
t && (m.value = t,
|
|
1121
|
-
if (
|
|
1122
|
-
const
|
|
1123
|
-
|
|
1000
|
+
const Q = (t) => {
|
|
1001
|
+
t && (m.value = t, x.value = [...r.value], p.value = "", setTimeout(() => {
|
|
1002
|
+
if (a.value) {
|
|
1003
|
+
const l = a.value.input || a.value.$el?.querySelector("input");
|
|
1004
|
+
l && l.focus();
|
|
1124
1005
|
}
|
|
1125
1006
|
}, 100));
|
|
1126
|
-
},
|
|
1127
|
-
|
|
1128
|
-
},
|
|
1129
|
-
const t = u.multiple ?
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1132
|
-
const
|
|
1133
|
-
u.remoteSearch && (
|
|
1134
|
-
}, 300),
|
|
1007
|
+
}, x = O([]), $ = () => {
|
|
1008
|
+
r.value = [...x.value], m.value = !1, s("cancel");
|
|
1009
|
+
}, E = O([]), N = () => {
|
|
1010
|
+
const t = u.multiple ? r.value : r.value[0] || "", l = u.options.filter((d) => r.value.includes(d.value));
|
|
1011
|
+
E.value = l, console.log(t, l), x.value = [...r.value], F.value = t, s("update:value", t), s("change", t, l), s("confirm", t, l), m.value = !1;
|
|
1012
|
+
}, P = gt((t) => {
|
|
1013
|
+
const l = t !== void 0 ? t : p.value;
|
|
1014
|
+
u.remoteSearch && (s("search", l), s("update:searchValue", l));
|
|
1015
|
+
}, 300), T = (t) => {
|
|
1135
1016
|
if (u.multiple) {
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1017
|
+
const l = new Set(r.value);
|
|
1018
|
+
l.has(t.value) ? l.delete(t.value) : l.add(t.value), r.value = Array.from(l);
|
|
1138
1019
|
} else
|
|
1139
|
-
|
|
1140
|
-
},
|
|
1020
|
+
r.value = [t.value], N();
|
|
1021
|
+
}, _ = (t) => {
|
|
1141
1022
|
if (t.target.checked) {
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}),
|
|
1023
|
+
const d = new Set(r.value);
|
|
1024
|
+
h.value.forEach((y) => {
|
|
1025
|
+
d.add(y.value);
|
|
1026
|
+
}), r.value = Array.from(d);
|
|
1146
1027
|
} else {
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1028
|
+
const d = new Set(h.value.map((y) => y.value));
|
|
1029
|
+
r.value = r.value.filter((y) => !d.has(y));
|
|
1149
1030
|
}
|
|
1150
1031
|
};
|
|
1151
|
-
return (t,
|
|
1152
|
-
const
|
|
1153
|
-
return o(), k("div",
|
|
1032
|
+
return (t, l) => {
|
|
1033
|
+
const d = j("a-tag"), y = j("a-input"), i = j("a-checkbox"), U = j("a-radio"), z = j("a-button"), ee = j("a-select");
|
|
1034
|
+
return o(), k("div", X({
|
|
1154
1035
|
class: "hb-lib-selector-wrapper",
|
|
1155
|
-
style: { "--prefix-width":
|
|
1036
|
+
style: { "--prefix-width": b.value }
|
|
1156
1037
|
}, t.$attrs), [
|
|
1157
|
-
|
|
1158
|
-
value:
|
|
1159
|
-
"onUpdate:value":
|
|
1038
|
+
S(ee, {
|
|
1039
|
+
value: F.value,
|
|
1040
|
+
"onUpdate:value": l[5] || (l[5] = (J) => F.value = J),
|
|
1160
1041
|
mode: e.multiple ? "multiple" : void 0,
|
|
1161
1042
|
placeholder: e.placeholder,
|
|
1162
1043
|
"show-search": !0,
|
|
@@ -1164,110 +1045,110 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1164
1045
|
open: m.value,
|
|
1165
1046
|
allowClear: "",
|
|
1166
1047
|
maxTagCount: e.maxTagCount,
|
|
1167
|
-
options:
|
|
1168
|
-
onDropdownVisibleChange:
|
|
1169
|
-
onSearch:
|
|
1048
|
+
options: h.value,
|
|
1049
|
+
onDropdownVisibleChange: Q,
|
|
1050
|
+
onSearch: n(P),
|
|
1170
1051
|
"max-tag-text-length": e.tagTextLength,
|
|
1171
|
-
class:
|
|
1052
|
+
class: V({ "has-prefix": e.prefix }),
|
|
1172
1053
|
"data-prefix": e.prefix,
|
|
1173
1054
|
style: { width: "100%" }
|
|
1174
1055
|
}, {
|
|
1175
|
-
tagRender:
|
|
1176
|
-
|
|
1056
|
+
tagRender: c(({ value: J, label: q, closable: C, option: A }) => [
|
|
1057
|
+
S(d, {
|
|
1177
1058
|
class: "hb-lib-search-tag",
|
|
1178
|
-
onClick:
|
|
1059
|
+
onClick: l[0] || (l[0] = () => Q(!0))
|
|
1179
1060
|
}, {
|
|
1180
|
-
default:
|
|
1181
|
-
v("span",
|
|
1182
|
-
|
|
1061
|
+
default: c(() => [
|
|
1062
|
+
v("span", Kt, L(q), 1),
|
|
1063
|
+
A?.description ? (o(), k("span", Wt, " (" + L(A.description) + ") ", 1)) : R("", !0)
|
|
1183
1064
|
]),
|
|
1184
1065
|
_: 2
|
|
1185
1066
|
}, 1024)
|
|
1186
1067
|
]),
|
|
1187
|
-
dropdownRender:
|
|
1188
|
-
v("div",
|
|
1189
|
-
v("div",
|
|
1190
|
-
|
|
1068
|
+
dropdownRender: c(({ menuNode: J }) => [
|
|
1069
|
+
v("div", Jt, [
|
|
1070
|
+
v("div", Gt, [
|
|
1071
|
+
S(y, {
|
|
1191
1072
|
ref_key: "searchInputRef",
|
|
1192
|
-
ref:
|
|
1073
|
+
ref: a,
|
|
1193
1074
|
class: "hb-lib-selector-search-input",
|
|
1194
1075
|
value: p.value,
|
|
1195
|
-
"onUpdate:value":
|
|
1076
|
+
"onUpdate:value": l[1] || (l[1] = (q) => p.value = q),
|
|
1196
1077
|
placeholder: "请输入关键词搜索",
|
|
1197
1078
|
"allow-clear": "",
|
|
1198
|
-
onInput:
|
|
1079
|
+
onInput: l[2] || (l[2] = (q) => n(P)(q.target.value))
|
|
1199
1080
|
}, {
|
|
1200
|
-
prefix:
|
|
1201
|
-
|
|
1081
|
+
prefix: c(() => [
|
|
1082
|
+
S(n(xe))
|
|
1202
1083
|
]),
|
|
1203
1084
|
_: 1
|
|
1204
1085
|
}, 8, ["value"])
|
|
1205
1086
|
]),
|
|
1206
|
-
v("div",
|
|
1207
|
-
(o(!0), k(
|
|
1087
|
+
v("div", Qt, [
|
|
1088
|
+
(o(!0), k(W, null, ne(h.value, (q) => (o(), k("div", {
|
|
1208
1089
|
key: q.value,
|
|
1209
|
-
class:
|
|
1210
|
-
onClick: () =>
|
|
1090
|
+
class: V(["hb-lib-selector-option", { selected: r.value.includes(q.value) }]),
|
|
1091
|
+
onClick: () => T(q)
|
|
1211
1092
|
}, [
|
|
1212
|
-
e.multiple ? (o(), B(
|
|
1093
|
+
e.multiple ? (o(), B(i, {
|
|
1213
1094
|
key: 0,
|
|
1214
|
-
checked:
|
|
1215
|
-
onChange: () =>
|
|
1216
|
-
onClick:
|
|
1095
|
+
checked: r.value.includes(q.value),
|
|
1096
|
+
onChange: () => T(q),
|
|
1097
|
+
onClick: l[3] || (l[3] = ke(() => {
|
|
1217
1098
|
}, ["stop"]))
|
|
1218
|
-
}, null, 8, ["checked", "onChange"])) : (o(), B(
|
|
1099
|
+
}, null, 8, ["checked", "onChange"])) : (o(), B(U, {
|
|
1219
1100
|
key: 1,
|
|
1220
|
-
checked:
|
|
1221
|
-
onChange: () =>
|
|
1222
|
-
onClick:
|
|
1101
|
+
checked: r.value.includes(q.value),
|
|
1102
|
+
onChange: () => T(q),
|
|
1103
|
+
onClick: l[4] || (l[4] = ke(() => {
|
|
1223
1104
|
}, ["stop"]))
|
|
1224
1105
|
}, null, 8, ["checked", "onChange"])),
|
|
1225
|
-
v("div",
|
|
1226
|
-
v("div",
|
|
1106
|
+
v("div", Xt, [
|
|
1107
|
+
v("div", el, L(q.label), 1)
|
|
1227
1108
|
])
|
|
1228
|
-
], 10,
|
|
1109
|
+
], 10, Zt))), 128))
|
|
1229
1110
|
]),
|
|
1230
|
-
|
|
1231
|
-
e.multiple ? (o(), k("div",
|
|
1232
|
-
|
|
1233
|
-
checked:
|
|
1234
|
-
indeterminate:
|
|
1235
|
-
onChange:
|
|
1111
|
+
h.value.length === 0 ? (o(), k("div", tl, L(t.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : R("", !0),
|
|
1112
|
+
e.multiple ? (o(), k("div", ll, [
|
|
1113
|
+
S(i, {
|
|
1114
|
+
checked: D.value,
|
|
1115
|
+
indeterminate: H.value,
|
|
1116
|
+
onChange: _
|
|
1236
1117
|
}, {
|
|
1237
|
-
default:
|
|
1118
|
+
default: c(() => [
|
|
1238
1119
|
I(L(t.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1239
1120
|
]),
|
|
1240
1121
|
_: 1
|
|
1241
1122
|
}, 8, ["checked", "indeterminate"]),
|
|
1242
|
-
v("div",
|
|
1243
|
-
|
|
1123
|
+
v("div", ol, [
|
|
1124
|
+
S(z, {
|
|
1244
1125
|
size: "small",
|
|
1245
|
-
onClick:
|
|
1126
|
+
onClick: $
|
|
1246
1127
|
}, {
|
|
1247
|
-
default:
|
|
1128
|
+
default: c(() => [
|
|
1248
1129
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1249
1130
|
]),
|
|
1250
1131
|
_: 1
|
|
1251
1132
|
}),
|
|
1252
|
-
|
|
1133
|
+
S(z, {
|
|
1253
1134
|
type: "primary",
|
|
1254
1135
|
size: "small",
|
|
1255
|
-
onClick:
|
|
1136
|
+
onClick: N
|
|
1256
1137
|
}, {
|
|
1257
|
-
default:
|
|
1138
|
+
default: c(() => [
|
|
1258
1139
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1259
1140
|
]),
|
|
1260
1141
|
_: 1
|
|
1261
1142
|
})
|
|
1262
1143
|
])
|
|
1263
|
-
])) : (o(), k("div",
|
|
1264
|
-
|
|
1265
|
-
v("div",
|
|
1266
|
-
|
|
1144
|
+
])) : (o(), k("div", al, [
|
|
1145
|
+
l[6] || (l[6] = v("div", null, null, -1)),
|
|
1146
|
+
v("div", nl, [
|
|
1147
|
+
S(z, {
|
|
1267
1148
|
size: "small",
|
|
1268
|
-
onClick:
|
|
1149
|
+
onClick: $
|
|
1269
1150
|
}, {
|
|
1270
|
-
default:
|
|
1151
|
+
default: c(() => [
|
|
1271
1152
|
I(L(t.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1272
1153
|
]),
|
|
1273
1154
|
_: 1
|
|
@@ -1281,11 +1162,7 @@ const Lt = "hb-", fe = (e = "") => {
|
|
|
1281
1162
|
], 16);
|
|
1282
1163
|
};
|
|
1283
1164
|
}
|
|
1284
|
-
}),
|
|
1285
|
-
Fe.install = function(e) {
|
|
1286
|
-
return e.component("HbFormSelectFilter", Fe), e;
|
|
1287
|
-
};
|
|
1288
|
-
const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-lib-form-item-filter-modal-buttons" }, ul = { key: 0 }, hl = /* @__PURE__ */ X({
|
|
1165
|
+
}), il = /* @__PURE__ */ oe(sl, [["__scopeId", "data-v-11422adb"]]), rl = le(il), cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-lib-form-item-filter-modal-buttons" }, ul = { key: 0 }, hl = /* @__PURE__ */ te({
|
|
1289
1166
|
name: "HbLibMutilpleSelectModal",
|
|
1290
1167
|
__name: "HbMutilpleSelectModal",
|
|
1291
1168
|
props: {
|
|
@@ -1298,145 +1175,145 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1298
1175
|
labelKey: { default: "label" }
|
|
1299
1176
|
},
|
|
1300
1177
|
emits: ["handleConfirm", "handleCancel"],
|
|
1301
|
-
setup(e, { expose:
|
|
1302
|
-
const
|
|
1178
|
+
setup(e, { expose: f, emit: u }) {
|
|
1179
|
+
const s = e, F = u, m = O(!1), p = O(""), r = O(), a = O(), h = O([]), b = O([]), D = O(), H = Je({
|
|
1303
1180
|
searchText: "",
|
|
1304
1181
|
searchedColumn: ""
|
|
1305
|
-
}),
|
|
1182
|
+
}), Q = K(() => s.tableData.map((d) => (d.id = d.id || Math.random(), d))), x = K(() => s.tableColumn.map((d) => (d.customFilterDropdown && (d.onFilter = (y, i) => i[d.dataIndex].toString().toLowerCase().includes(y.toLowerCase()), d.onFilterDropdownVisibleChange = (y) => {
|
|
1306
1183
|
y && setTimeout(() => {
|
|
1307
|
-
|
|
1184
|
+
r.value?.focus();
|
|
1308
1185
|
}, 100);
|
|
1309
|
-
}), { ...
|
|
1310
|
-
let
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}), p.value =
|
|
1314
|
-
}, U = () => {
|
|
1315
|
-
m.value = !1;
|
|
1186
|
+
}), { ...d }))), $ = () => {
|
|
1187
|
+
let d = "";
|
|
1188
|
+
b.value.forEach((y) => {
|
|
1189
|
+
d = d + y[s.labelKey] + ",";
|
|
1190
|
+
}), p.value = d.substring(0, d.length - 1), m.value = !1, F("handleConfirm", b.value);
|
|
1316
1191
|
}, E = () => {
|
|
1192
|
+
m.value = !1;
|
|
1193
|
+
}, N = () => {
|
|
1317
1194
|
m.value = !0, he(() => {
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1195
|
+
const d = D.value?.$el?.querySelector(".ant-table-body");
|
|
1196
|
+
d && (d.scrollTop = 0);
|
|
1320
1197
|
});
|
|
1321
|
-
},
|
|
1322
|
-
|
|
1323
|
-
},
|
|
1324
|
-
p.value = "",
|
|
1325
|
-
},
|
|
1326
|
-
y(),
|
|
1327
|
-
}, t = (
|
|
1328
|
-
|
|
1329
|
-
},
|
|
1330
|
-
|
|
1198
|
+
}, P = () => {
|
|
1199
|
+
h.value = [], b.value = [];
|
|
1200
|
+
}, T = () => {
|
|
1201
|
+
p.value = "", P();
|
|
1202
|
+
}, _ = (d, y, i) => {
|
|
1203
|
+
y(), H.searchText = d[0], H.searchedColumn = i;
|
|
1204
|
+
}, t = (d, y) => {
|
|
1205
|
+
d({ confirm: !0 }), H.searchText = "", y();
|
|
1206
|
+
}, l = (d, y) => {
|
|
1207
|
+
h.value = d, b.value = y;
|
|
1331
1208
|
};
|
|
1332
|
-
return
|
|
1333
|
-
resetInputVal:
|
|
1334
|
-
}), (
|
|
1335
|
-
const
|
|
1209
|
+
return f({
|
|
1210
|
+
resetInputVal: T
|
|
1211
|
+
}), (d, y) => {
|
|
1212
|
+
const i = j("a-input"), U = j("a-button"), z = j("a-table"), ee = j("a-modal");
|
|
1336
1213
|
return o(), k("div", {
|
|
1337
1214
|
class: "hb-lib-multipleSelectModal-box",
|
|
1338
1215
|
ref_key: "hbMultipSelectModalRef",
|
|
1339
|
-
ref:
|
|
1216
|
+
ref: a
|
|
1340
1217
|
}, [
|
|
1341
|
-
|
|
1218
|
+
S(i, {
|
|
1342
1219
|
readonly: "",
|
|
1343
|
-
onClick:
|
|
1220
|
+
onClick: N,
|
|
1344
1221
|
value: p.value,
|
|
1345
|
-
"onUpdate:value": y[0] || (y[0] = (
|
|
1346
|
-
placeholder:
|
|
1222
|
+
"onUpdate:value": y[0] || (y[0] = (J) => p.value = J),
|
|
1223
|
+
placeholder: d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1347
1224
|
}, {
|
|
1348
|
-
addonAfter:
|
|
1349
|
-
|
|
1225
|
+
addonAfter: c(() => [
|
|
1226
|
+
S(n(bt), { onClick: N })
|
|
1350
1227
|
]),
|
|
1351
1228
|
_: 1
|
|
1352
1229
|
}, 8, ["value", "placeholder"]),
|
|
1353
|
-
|
|
1230
|
+
S(ee, {
|
|
1354
1231
|
visible: m.value,
|
|
1355
|
-
"onUpdate:visible": y[1] || (y[1] = (
|
|
1232
|
+
"onUpdate:visible": y[1] || (y[1] = (J) => m.value = J),
|
|
1356
1233
|
title: e.modelTitle,
|
|
1357
1234
|
width: e.modalWidth,
|
|
1358
1235
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1359
1236
|
}, {
|
|
1360
|
-
footer:
|
|
1361
|
-
|
|
1362
|
-
default:
|
|
1363
|
-
I(L(
|
|
1237
|
+
footer: c(() => [
|
|
1238
|
+
S(U, { onClick: P }, {
|
|
1239
|
+
default: c(() => [
|
|
1240
|
+
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1364
1241
|
]),
|
|
1365
1242
|
_: 1
|
|
1366
1243
|
}),
|
|
1367
|
-
|
|
1368
|
-
default:
|
|
1369
|
-
I(L(
|
|
1244
|
+
S(U, { onClick: E }, {
|
|
1245
|
+
default: c(() => [
|
|
1246
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1370
1247
|
]),
|
|
1371
1248
|
_: 1
|
|
1372
1249
|
}),
|
|
1373
|
-
|
|
1250
|
+
S(U, {
|
|
1374
1251
|
type: "primary",
|
|
1375
|
-
onClick:
|
|
1252
|
+
onClick: $
|
|
1376
1253
|
}, {
|
|
1377
|
-
default:
|
|
1378
|
-
I(L(
|
|
1254
|
+
default: c(() => [
|
|
1255
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1379
1256
|
]),
|
|
1380
1257
|
_: 1
|
|
1381
1258
|
})
|
|
1382
1259
|
]),
|
|
1383
|
-
default:
|
|
1384
|
-
|
|
1260
|
+
default: c(() => [
|
|
1261
|
+
S(z, {
|
|
1385
1262
|
ref_key: "tableRef",
|
|
1386
|
-
ref:
|
|
1387
|
-
columns:
|
|
1388
|
-
dataSource:
|
|
1389
|
-
rowSelection: { selectedRowKeys:
|
|
1390
|
-
rowKey: (
|
|
1263
|
+
ref: D,
|
|
1264
|
+
columns: x.value,
|
|
1265
|
+
dataSource: Q.value,
|
|
1266
|
+
rowSelection: { selectedRowKeys: h.value, onChange: l },
|
|
1267
|
+
rowKey: (J) => J[e.tableKey],
|
|
1391
1268
|
scroll: { y: e.tableHeight }
|
|
1392
1269
|
}, {
|
|
1393
|
-
customFilterDropdown:
|
|
1270
|
+
customFilterDropdown: c(({ setSelectedKeys: J, selectedKeys: q, confirm: C, clearFilters: A, column: g }) => [
|
|
1394
1271
|
v("div", cl, [
|
|
1395
|
-
|
|
1272
|
+
S(i, {
|
|
1396
1273
|
ref_key: "searchInput",
|
|
1397
|
-
ref:
|
|
1274
|
+
ref: r,
|
|
1398
1275
|
placeholder: `请输入${g.title}`,
|
|
1399
1276
|
value: q[0],
|
|
1400
1277
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1401
|
-
onChange: (Y) =>
|
|
1402
|
-
onPressEnter: (Y) =>
|
|
1278
|
+
onChange: (Y) => J(Y.target.value ? [Y.target.value] : []),
|
|
1279
|
+
onPressEnter: (Y) => _(q, C, g.dataIndex)
|
|
1403
1280
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1404
1281
|
v("section", dl, [
|
|
1405
|
-
|
|
1282
|
+
S(U, {
|
|
1406
1283
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1407
1284
|
type: "ghost",
|
|
1408
|
-
onClick: (Y) => t(
|
|
1285
|
+
onClick: (Y) => t(A, C)
|
|
1409
1286
|
}, {
|
|
1410
|
-
default:
|
|
1411
|
-
I(L(
|
|
1287
|
+
default: c(() => [
|
|
1288
|
+
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1412
1289
|
]),
|
|
1413
1290
|
_: 1
|
|
1414
1291
|
}, 8, ["onClick"]),
|
|
1415
|
-
|
|
1292
|
+
S(U, {
|
|
1416
1293
|
type: "primary",
|
|
1417
1294
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1418
|
-
onClick: (Y) =>
|
|
1295
|
+
onClick: (Y) => _(q, C, g.dataIndex)
|
|
1419
1296
|
}, {
|
|
1420
|
-
default:
|
|
1421
|
-
I(L(
|
|
1297
|
+
default: c(() => [
|
|
1298
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1422
1299
|
]),
|
|
1423
1300
|
_: 1
|
|
1424
1301
|
}, 8, ["onClick"])
|
|
1425
1302
|
])
|
|
1426
1303
|
])
|
|
1427
1304
|
]),
|
|
1428
|
-
customFilterIcon:
|
|
1429
|
-
|
|
1430
|
-
style:
|
|
1305
|
+
customFilterIcon: c(({ filtered: J }) => [
|
|
1306
|
+
S(n(xe), {
|
|
1307
|
+
style: me({ color: J ? "#108ee9" : void 0 })
|
|
1431
1308
|
}, null, 8, ["style"])
|
|
1432
1309
|
]),
|
|
1433
|
-
bodyCell:
|
|
1434
|
-
|
|
1435
|
-
(o(!0), k(
|
|
1436
|
-
C.toLowerCase() ===
|
|
1437
|
-
key:
|
|
1310
|
+
bodyCell: c(({ text: J, column: q }) => [
|
|
1311
|
+
H.searchText && H.searchedColumn === q.dataIndex ? (o(), k("span", ul, [
|
|
1312
|
+
(o(!0), k(W, null, ne(J.toString().split(new RegExp(`(?<=${H.searchText})|(?=${H.searchText})`, "i")), (C, A) => (o(), k(W, null, [
|
|
1313
|
+
C.toLowerCase() === H.searchText.toLowerCase() ? (o(), k("mark", {
|
|
1314
|
+
key: A,
|
|
1438
1315
|
class: "highlight"
|
|
1439
|
-
}, L(C), 1)) : (o(), k(
|
|
1316
|
+
}, L(C), 1)) : (o(), k(W, { key: 1 }, [
|
|
1440
1317
|
I(L(C), 1)
|
|
1441
1318
|
], 64))
|
|
1442
1319
|
], 64))), 256))
|
|
@@ -1450,43 +1327,13 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1450
1327
|
], 512);
|
|
1451
1328
|
};
|
|
1452
1329
|
}
|
|
1453
|
-
}),
|
|
1454
|
-
modelTitle: {
|
|
1455
|
-
type: String,
|
|
1456
|
-
default: "搜索弹窗"
|
|
1457
|
-
},
|
|
1458
|
-
modalWidth: {
|
|
1459
|
-
type: Number,
|
|
1460
|
-
default: 800
|
|
1461
|
-
},
|
|
1462
|
-
tableHeight: {
|
|
1463
|
-
type: Number,
|
|
1464
|
-
default: 500
|
|
1465
|
-
},
|
|
1466
|
-
tableColumn: {
|
|
1467
|
-
type: Array,
|
|
1468
|
-
default: () => [],
|
|
1469
|
-
required: !0
|
|
1470
|
-
},
|
|
1471
|
-
tableData: {
|
|
1472
|
-
type: Array,
|
|
1473
|
-
default: () => []
|
|
1474
|
-
},
|
|
1475
|
-
tableKey: {
|
|
1476
|
-
type: String,
|
|
1477
|
-
default: "id"
|
|
1478
|
-
},
|
|
1479
|
-
labelKey: {
|
|
1480
|
-
type: String,
|
|
1481
|
-
default: "label"
|
|
1482
|
-
}
|
|
1483
|
-
}, bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1330
|
+
}), bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1484
1331
|
href: "javascript:;",
|
|
1485
1332
|
class: "hb-lib-table-main-action"
|
|
1486
1333
|
}, vl = ["onClick"], gl = {
|
|
1487
1334
|
href: "javascript:;",
|
|
1488
1335
|
class: "hb-lib-table-more-action"
|
|
1489
|
-
}, yl = ["onClick"], Cl = { href: "javascript:;" }, Ll = ["onClick"], kl = { class: "hb-lib-table-confirm-modal-content" }, _l = /* @__PURE__ */
|
|
1336
|
+
}, yl = ["onClick"], Cl = { href: "javascript:;" }, Ll = ["onClick"], kl = { class: "hb-lib-table-confirm-modal-content" }, _l = /* @__PURE__ */ te({
|
|
1490
1337
|
name: "HbLibTableAct",
|
|
1491
1338
|
__name: "HbTableAct",
|
|
1492
1339
|
props: {
|
|
@@ -1494,119 +1341,119 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1494
1341
|
record: {},
|
|
1495
1342
|
buttonDisplaysQuantity: {}
|
|
1496
1343
|
},
|
|
1497
|
-
setup(e, { expose:
|
|
1498
|
-
const u = e, { t:
|
|
1499
|
-
|
|
1500
|
-
},
|
|
1501
|
-
p.value =
|
|
1502
|
-
},
|
|
1344
|
+
setup(e, { expose: f }) {
|
|
1345
|
+
const u = e, { t: s } = re(), F = O(!1), m = O(!1), p = O(null), r = K(() => u.actions.filter(($) => $.condition !== void 0 ? $.condition : !0)), a = K(() => r.value.slice(0, u.buttonDisplaysQuantity)), h = K(() => r.value.slice(u.buttonDisplaysQuantity)), b = ($) => {
|
|
1346
|
+
$.handler && $.handler(u.record);
|
|
1347
|
+
}, D = ($) => {
|
|
1348
|
+
p.value = $, F.value = !0;
|
|
1349
|
+
}, H = () => {
|
|
1503
1350
|
if (p.value) {
|
|
1504
1351
|
m.value = !0;
|
|
1505
1352
|
try {
|
|
1506
|
-
|
|
1353
|
+
b(p.value), m.value = !1, F.value = !1;
|
|
1507
1354
|
} catch {
|
|
1508
1355
|
m.value = !1;
|
|
1509
1356
|
}
|
|
1510
1357
|
}
|
|
1511
|
-
},
|
|
1512
|
-
|
|
1513
|
-
},
|
|
1358
|
+
}, Q = () => {
|
|
1359
|
+
F.value = !1, p.value = null;
|
|
1360
|
+
}, x = K(() => p.value ? {
|
|
1514
1361
|
title: p.value.confirmTitle,
|
|
1515
1362
|
content: p.value.confirmContent || p.value.confirmTitle
|
|
1516
1363
|
} : {
|
|
1517
|
-
title:
|
|
1518
|
-
content:
|
|
1364
|
+
title: s("hbLibComp.hbTableAct.secendConfirm"),
|
|
1365
|
+
content: s("hbLibComp.hbTableAct.confirmContent")
|
|
1519
1366
|
});
|
|
1520
|
-
return
|
|
1367
|
+
return f({
|
|
1521
1368
|
ADropdown: qe,
|
|
1522
1369
|
AMenu: je,
|
|
1523
1370
|
AMenuItem: Ye,
|
|
1524
|
-
APopconfirm:
|
|
1525
|
-
AModal:
|
|
1371
|
+
APopconfirm: Ce,
|
|
1372
|
+
AModal: _e,
|
|
1526
1373
|
DownOutlined: Ie
|
|
1527
|
-
}), (
|
|
1528
|
-
const
|
|
1374
|
+
}), ($, E) => {
|
|
1375
|
+
const N = j("a-divider"), P = nt("has");
|
|
1529
1376
|
return o(), k("div", fl, [
|
|
1530
|
-
(o(!0), k(
|
|
1531
|
-
|
|
1532
|
-
|
|
1377
|
+
(o(!0), k(W, null, ne(a.value, (T, _) => (o(), k(W, { key: _ }, [
|
|
1378
|
+
T.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1379
|
+
T.confirmType === "modal" ? ie((o(), k("a", {
|
|
1533
1380
|
key: 0,
|
|
1534
1381
|
href: "javascript:;",
|
|
1535
|
-
onClick: (t) =>
|
|
1382
|
+
onClick: (t) => D(T),
|
|
1536
1383
|
class: "hb-lib-table-main-action"
|
|
1537
1384
|
}, [
|
|
1538
|
-
I(L(
|
|
1385
|
+
I(L(T.label), 1)
|
|
1539
1386
|
], 8, pl)), [
|
|
1540
|
-
[
|
|
1541
|
-
]) : (o(), B(
|
|
1387
|
+
[P, T.permissionsTag || null]
|
|
1388
|
+
]) : (o(), B(n(Ce), {
|
|
1542
1389
|
key: 1,
|
|
1543
|
-
title:
|
|
1544
|
-
onConfirm: (t) =>
|
|
1390
|
+
title: T.confirmTitle,
|
|
1391
|
+
onConfirm: (t) => b(T)
|
|
1545
1392
|
}, {
|
|
1546
|
-
default:
|
|
1547
|
-
|
|
1548
|
-
I(L(
|
|
1393
|
+
default: c(() => [
|
|
1394
|
+
ie((o(), k("a", ml, [
|
|
1395
|
+
I(L(T.label), 1)
|
|
1549
1396
|
])), [
|
|
1550
|
-
[
|
|
1397
|
+
[P, T.permissionsTag || null]
|
|
1551
1398
|
])
|
|
1552
1399
|
]),
|
|
1553
1400
|
_: 2
|
|
1554
1401
|
}, 1032, ["title", "onConfirm"]))
|
|
1555
|
-
], 64)) : (o(), k(
|
|
1556
|
-
|
|
1402
|
+
], 64)) : (o(), k(W, { key: 1 }, [
|
|
1403
|
+
ie((o(), k("a", {
|
|
1557
1404
|
href: "javascript:;",
|
|
1558
|
-
onClick: (t) =>
|
|
1405
|
+
onClick: (t) => b(T),
|
|
1559
1406
|
class: "hb-lib-table-main-action"
|
|
1560
1407
|
}, [
|
|
1561
|
-
I(L(
|
|
1408
|
+
I(L(T.label), 1)
|
|
1562
1409
|
], 8, vl)), [
|
|
1563
|
-
[
|
|
1410
|
+
[P, T.permissionsTag || null]
|
|
1564
1411
|
]),
|
|
1565
|
-
|
|
1412
|
+
h.value && h.value.length > 0 || _ !== a.value.length - 1 ? (o(), B(N, {
|
|
1566
1413
|
key: 0,
|
|
1567
1414
|
type: "vertical"
|
|
1568
1415
|
})) : R("", !0)
|
|
1569
1416
|
], 64))
|
|
1570
1417
|
], 64))), 128)),
|
|
1571
|
-
|
|
1572
|
-
overlay:
|
|
1573
|
-
|
|
1574
|
-
default:
|
|
1575
|
-
(o(!0), k(
|
|
1576
|
-
key:
|
|
1418
|
+
h.value && h.value.length > 0 ? (o(), B(n(qe), { key: 0 }, {
|
|
1419
|
+
overlay: c(() => [
|
|
1420
|
+
S(n(je), null, {
|
|
1421
|
+
default: c(() => [
|
|
1422
|
+
(o(!0), k(W, null, ne(h.value, (T) => (o(), B(n(Ye), {
|
|
1423
|
+
key: T.key
|
|
1577
1424
|
}, {
|
|
1578
|
-
default:
|
|
1579
|
-
|
|
1580
|
-
|
|
1425
|
+
default: c(() => [
|
|
1426
|
+
T.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1427
|
+
T.confirmType === "modal" ? ie((o(), k("a", {
|
|
1581
1428
|
key: 0,
|
|
1582
1429
|
href: "javascript:;",
|
|
1583
|
-
onClick: (
|
|
1430
|
+
onClick: (_) => D(T)
|
|
1584
1431
|
}, [
|
|
1585
|
-
I(L(
|
|
1432
|
+
I(L(T.label), 1)
|
|
1586
1433
|
], 8, yl)), [
|
|
1587
|
-
[
|
|
1588
|
-
]) : (o(), B(
|
|
1434
|
+
[P, T.permissionsTag || null]
|
|
1435
|
+
]) : (o(), B(n(Ce), {
|
|
1589
1436
|
key: 1,
|
|
1590
|
-
title:
|
|
1591
|
-
onConfirm: (
|
|
1437
|
+
title: T.confirmTitle,
|
|
1438
|
+
onConfirm: (_) => b(T)
|
|
1592
1439
|
}, {
|
|
1593
|
-
default:
|
|
1594
|
-
|
|
1595
|
-
I(L(
|
|
1440
|
+
default: c(() => [
|
|
1441
|
+
ie((o(), k("a", Cl, [
|
|
1442
|
+
I(L(T.label), 1)
|
|
1596
1443
|
])), [
|
|
1597
|
-
[
|
|
1444
|
+
[P, T.permissionsTag || null]
|
|
1598
1445
|
])
|
|
1599
1446
|
]),
|
|
1600
1447
|
_: 2
|
|
1601
1448
|
}, 1032, ["title", "onConfirm"]))
|
|
1602
|
-
], 64)) :
|
|
1449
|
+
], 64)) : ie((o(), k("a", {
|
|
1603
1450
|
key: 1,
|
|
1604
1451
|
href: "javascript:;",
|
|
1605
|
-
onClick: (
|
|
1452
|
+
onClick: (_) => b(T)
|
|
1606
1453
|
}, [
|
|
1607
|
-
I(L(
|
|
1454
|
+
I(L(T.label), 1)
|
|
1608
1455
|
], 8, Ll)), [
|
|
1609
|
-
[
|
|
1456
|
+
[P, T.permissionsTag || null]
|
|
1610
1457
|
])
|
|
1611
1458
|
]),
|
|
1612
1459
|
_: 2
|
|
@@ -1615,36 +1462,36 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1615
1462
|
_: 1
|
|
1616
1463
|
})
|
|
1617
1464
|
]),
|
|
1618
|
-
default:
|
|
1465
|
+
default: c(() => [
|
|
1619
1466
|
v("a", gl, [
|
|
1620
|
-
I(L(
|
|
1621
|
-
|
|
1467
|
+
I(L($.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1468
|
+
S(n(Ie), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1622
1469
|
])
|
|
1623
1470
|
]),
|
|
1624
1471
|
_: 1
|
|
1625
1472
|
})) : R("", !0),
|
|
1626
|
-
|
|
1627
|
-
visible:
|
|
1628
|
-
title:
|
|
1473
|
+
S(n(_e), {
|
|
1474
|
+
visible: F.value,
|
|
1475
|
+
title: x.value.title,
|
|
1629
1476
|
"confirm-loading": m.value,
|
|
1630
|
-
onOk:
|
|
1631
|
-
onCancel:
|
|
1477
|
+
onOk: H,
|
|
1478
|
+
onCancel: Q
|
|
1632
1479
|
}, {
|
|
1633
|
-
default:
|
|
1634
|
-
v("p", kl, L(
|
|
1480
|
+
default: c(() => [
|
|
1481
|
+
v("p", kl, L(x.value.content), 1)
|
|
1635
1482
|
]),
|
|
1636
1483
|
_: 1
|
|
1637
1484
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1638
1485
|
]);
|
|
1639
1486
|
};
|
|
1640
1487
|
}
|
|
1641
|
-
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (e) => ({ tableWidth:
|
|
1488
|
+
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (e) => ({ tableWidth: K(() => {
|
|
1642
1489
|
const u = Array.isArray(e) ? e : e.value;
|
|
1643
|
-
return !u || u.length === 0 ? 0 : u.map((
|
|
1490
|
+
return !u || u.length === 0 ? 0 : u.map((s) => s.width && Number(s.width.toString().replace("px", "")) || 0).reduce((s, F) => s + F, 0);
|
|
1644
1491
|
}) }), xl = {
|
|
1645
1492
|
key: 0,
|
|
1646
1493
|
class: "hb-lib-list-table-act"
|
|
1647
|
-
}, Tl = { class: "empty-container" }, $l = /* @__PURE__ */
|
|
1494
|
+
}, Tl = { class: "empty-container" }, $l = /* @__PURE__ */ te({
|
|
1648
1495
|
name: "HbLibListTable",
|
|
1649
1496
|
__name: "HbListTable",
|
|
1650
1497
|
props: {
|
|
@@ -1654,20 +1501,20 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1654
1501
|
defaultWidth: { default: () => 150 }
|
|
1655
1502
|
},
|
|
1656
1503
|
setup(e) {
|
|
1657
|
-
const { t:
|
|
1658
|
-
|
|
1504
|
+
const { t: f } = re(), u = e, s = O([]), F = we("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Fl(K(() => u.columns));
|
|
1505
|
+
ce(
|
|
1659
1506
|
() => u.columns,
|
|
1660
|
-
(
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1663
|
-
let
|
|
1664
|
-
if (!
|
|
1665
|
-
|
|
1666
|
-
else if (typeof
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1507
|
+
(a) => {
|
|
1508
|
+
const h = a.filter((b) => b != null && b.checked);
|
|
1509
|
+
s.value = h.map((b) => {
|
|
1510
|
+
let D = { ...b, title: b.title || b.label };
|
|
1511
|
+
if (!D.width)
|
|
1512
|
+
D.width = u.defaultWidth;
|
|
1513
|
+
else if (typeof D.width == "string") {
|
|
1514
|
+
const H = parseInt(D.width, 10);
|
|
1515
|
+
D.width = isNaN(H) ? u.defaultWidth : H;
|
|
1669
1516
|
}
|
|
1670
|
-
return
|
|
1517
|
+
return D.resizable === void 0 && (D.resizable = !0), D;
|
|
1671
1518
|
});
|
|
1672
1519
|
},
|
|
1673
1520
|
{
|
|
@@ -1675,84 +1522,84 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1675
1522
|
deep: !0
|
|
1676
1523
|
}
|
|
1677
1524
|
);
|
|
1678
|
-
const p = (
|
|
1679
|
-
if (
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1525
|
+
const p = (a, h) => {
|
|
1526
|
+
if (h) {
|
|
1527
|
+
const b = typeof a == "string" ? parseInt(a, 10) : a;
|
|
1528
|
+
h.width = isNaN(b) ? 150 : b;
|
|
1682
1529
|
}
|
|
1683
|
-
},
|
|
1684
|
-
return (
|
|
1685
|
-
const
|
|
1530
|
+
}, r = (a, h = "YYYY-MM-DD HH:mm:ss") => a ? Te(a).format(h) : "";
|
|
1531
|
+
return (a, h) => {
|
|
1532
|
+
const b = j("a-empty"), D = j("a-tooltip"), H = j("HbLibCopy"), Q = j("a-table");
|
|
1686
1533
|
return o(), k("div", {
|
|
1687
|
-
class:
|
|
1688
|
-
style:
|
|
1534
|
+
class: V(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1535
|
+
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1689
1536
|
}, [
|
|
1690
|
-
|
|
1691
|
-
Z(
|
|
1692
|
-
Z(
|
|
1537
|
+
a.$slots.tableActLeft ? (o(), k("section", xl, [
|
|
1538
|
+
Z(a.$slots, "tableActLeft", {}, void 0, !0),
|
|
1539
|
+
Z(a.$slots, "tableActRight", {}, void 0, !0)
|
|
1693
1540
|
])) : R("", !0),
|
|
1694
|
-
|
|
1695
|
-
columns:
|
|
1541
|
+
S(Q, X(a.$attrs, {
|
|
1542
|
+
columns: s.value,
|
|
1696
1543
|
onResizeColumn: p,
|
|
1697
1544
|
scroll: {
|
|
1698
|
-
x:
|
|
1699
|
-
y:
|
|
1545
|
+
x: n(m),
|
|
1546
|
+
y: n(F).tableHeight
|
|
1700
1547
|
}
|
|
1701
|
-
}),
|
|
1702
|
-
emptyText:
|
|
1548
|
+
}), Ge({
|
|
1549
|
+
emptyText: c(() => [
|
|
1703
1550
|
v("div", Tl, [
|
|
1704
|
-
|
|
1705
|
-
description:
|
|
1551
|
+
S(b, {
|
|
1552
|
+
description: n(f)("hbLibComp.hbListTable.noData")
|
|
1706
1553
|
}, null, 8, ["description"])
|
|
1707
1554
|
])
|
|
1708
1555
|
]),
|
|
1709
1556
|
_: 2
|
|
1710
1557
|
}, [
|
|
1711
|
-
|
|
1558
|
+
a.$slots.headerCell ? {
|
|
1712
1559
|
name: "headerCell",
|
|
1713
|
-
fn:
|
|
1714
|
-
Z(
|
|
1715
|
-
I(L(
|
|
1560
|
+
fn: c(({ column: x }) => [
|
|
1561
|
+
Z(a.$slots, "headerCell", { column: x }, () => [
|
|
1562
|
+
I(L(x.title), 1)
|
|
1716
1563
|
], !0)
|
|
1717
1564
|
]),
|
|
1718
1565
|
key: "0"
|
|
1719
1566
|
} : void 0,
|
|
1720
|
-
|
|
1567
|
+
a.$slots.bodyCell ? {
|
|
1721
1568
|
name: "bodyCell",
|
|
1722
|
-
fn:
|
|
1723
|
-
Z(
|
|
1724
|
-
column:
|
|
1725
|
-
record:
|
|
1726
|
-
index:
|
|
1569
|
+
fn: c(({ column: x, record: $, index: E }) => [
|
|
1570
|
+
Z(a.$slots, "bodyCell", {
|
|
1571
|
+
column: x,
|
|
1572
|
+
record: $,
|
|
1573
|
+
index: E
|
|
1727
1574
|
}, void 0, !0),
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
title:
|
|
1731
|
-
I(L(x
|
|
1575
|
+
x && x.needTooltip ? (o(), k(W, { key: 0 }, [
|
|
1576
|
+
x.needTooltip ? (o(), B(D, { key: 0 }, {
|
|
1577
|
+
title: c(() => [
|
|
1578
|
+
I(L($[x.dataIndex]), 1)
|
|
1732
1579
|
]),
|
|
1733
|
-
default:
|
|
1734
|
-
I(" " + L(x
|
|
1580
|
+
default: c(() => [
|
|
1581
|
+
I(" " + L($[x.dataIndex]), 1)
|
|
1735
1582
|
]),
|
|
1736
1583
|
_: 2
|
|
1737
1584
|
}, 1024)) : R("", !0)
|
|
1738
1585
|
], 64)) : R("", !0),
|
|
1739
|
-
|
|
1586
|
+
x && x.needCopy ? (o(), B(H, {
|
|
1740
1587
|
key: 1,
|
|
1741
|
-
"cp-text": x
|
|
1588
|
+
"cp-text": $[x.dataIndex],
|
|
1742
1589
|
style: { position: "relative" }
|
|
1743
1590
|
}, null, 8, ["cp-text"])) : R("", !0),
|
|
1744
|
-
|
|
1745
|
-
I(L(
|
|
1591
|
+
x && x.needFormat ? (o(), k(W, { key: 2 }, [
|
|
1592
|
+
I(L(r($[x.dataIndex], x.format)), 1)
|
|
1746
1593
|
], 64)) : R("", !0)
|
|
1747
1594
|
]),
|
|
1748
1595
|
key: "1"
|
|
1749
1596
|
} : void 0,
|
|
1750
|
-
|
|
1597
|
+
a.$slots.expandedRowRender ? {
|
|
1751
1598
|
name: "expandedRowRender",
|
|
1752
|
-
fn:
|
|
1753
|
-
Z(
|
|
1599
|
+
fn: c(({ record: x }) => [
|
|
1600
|
+
Z(a.$slots, "expandedRowRender", {
|
|
1754
1601
|
column: e.childColumns,
|
|
1755
|
-
record:
|
|
1602
|
+
record: x
|
|
1756
1603
|
}, void 0, !0)
|
|
1757
1604
|
]),
|
|
1758
1605
|
key: "2"
|
|
@@ -1761,35 +1608,16 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1761
1608
|
], 6);
|
|
1762
1609
|
};
|
|
1763
1610
|
}
|
|
1764
|
-
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-f5b59c06"]]),
|
|
1765
|
-
columns: {
|
|
1766
|
-
type: Array,
|
|
1767
|
-
default: () => [],
|
|
1768
|
-
required: !0
|
|
1769
|
-
},
|
|
1770
|
-
childColumns: {
|
|
1771
|
-
type: Array,
|
|
1772
|
-
default: () => []
|
|
1773
|
-
},
|
|
1774
|
-
// 自定义每行行高
|
|
1775
|
-
rowHeight: {
|
|
1776
|
-
type: Number
|
|
1777
|
-
},
|
|
1778
|
-
// 默认每列宽度
|
|
1779
|
-
defaultWidth: {
|
|
1780
|
-
type: [String, Number],
|
|
1781
|
-
default: 150
|
|
1782
|
-
}
|
|
1783
|
-
}, Hl = le(Ml), Il = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1611
|
+
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-f5b59c06"]]), Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1784
1612
|
key: 0,
|
|
1785
1613
|
class: "hb-lib-table-drag-item"
|
|
1786
1614
|
}, Dl = {
|
|
1787
1615
|
key: 0,
|
|
1788
1616
|
class: "hb-lib-table-drag-item-act"
|
|
1789
|
-
}, Ol = ["onClick"], Bl = ["onClick"],
|
|
1617
|
+
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" }, zl = {
|
|
1790
1618
|
class: "select-all-container",
|
|
1791
1619
|
style: { "margin-right": "10px" }
|
|
1792
|
-
},
|
|
1620
|
+
}, Nl = /* @__PURE__ */ te({
|
|
1793
1621
|
name: "HbLibTableColumnSet",
|
|
1794
1622
|
__name: "HbTableColumnSet",
|
|
1795
1623
|
props: {
|
|
@@ -1821,109 +1649,109 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1821
1649
|
}
|
|
1822
1650
|
},
|
|
1823
1651
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1824
|
-
setup(e, { emit:
|
|
1825
|
-
const u =
|
|
1652
|
+
setup(e, { emit: f }) {
|
|
1653
|
+
const u = f, { t: s } = re(), F = e, m = O([]), p = K(() => a.value.filter((t) => t.checked));
|
|
1826
1654
|
O([]);
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1829
|
-
},
|
|
1830
|
-
const
|
|
1655
|
+
const r = O(!1), a = O([]), h = O(null), b = K(() => p.value.length > 0 && p.value.length === m.value.length), D = K(() => p.value.length > 0 && p.value.length < m.value.length), H = (t) => {
|
|
1656
|
+
h.value = t.oldIndex;
|
|
1657
|
+
}, Q = (t) => {
|
|
1658
|
+
const l = t.newIndex;
|
|
1831
1659
|
if (m.value.some((y) => y.fixed === "left" || y.fixed === "right" || y.fixed === !0)) {
|
|
1832
|
-
const y = m.value.filter((
|
|
1833
|
-
if ((y > 0 &&
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1660
|
+
const y = m.value.filter((U) => U.fixed === "left").length, i = m.value.length - m.value.filter((U) => U.fixed === "right").length;
|
|
1661
|
+
if ((y > 0 && l < y || i < m.value.length && l >= i) && (Se.warning(s("hbLibComp.hbLibListTableColumsSet.errorTip")), h.value !== null)) {
|
|
1662
|
+
const U = a.value.splice(l, 1)[0];
|
|
1663
|
+
a.value.splice(h.value, 0, U);
|
|
1836
1664
|
}
|
|
1837
1665
|
}
|
|
1838
|
-
|
|
1839
|
-
},
|
|
1840
|
-
t.target.checked ?
|
|
1841
|
-
},
|
|
1842
|
-
|
|
1843
|
-
}, U = () => {
|
|
1844
|
-
m.value = [...l.value], u("on-get-columns", m.value), h.value = !1;
|
|
1666
|
+
h.value = null;
|
|
1667
|
+
}, x = (t) => {
|
|
1668
|
+
t.target.checked ? a.value.forEach((d) => d.checked = !0) : a.value.forEach((d) => d.checked = !1);
|
|
1669
|
+
}, $ = (t, l) => {
|
|
1670
|
+
l ? t.checked = !0 : t.checked = !1;
|
|
1845
1671
|
}, E = () => {
|
|
1846
|
-
m.value =
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1672
|
+
m.value = [...a.value], u("on-get-columns", m.value), r.value = !1;
|
|
1673
|
+
}, N = () => {
|
|
1674
|
+
m.value = F.tableColumns.map((l) => ({
|
|
1675
|
+
...l,
|
|
1676
|
+
label: l.title && l.title.tag ? P(l.title) : l.title || l.title2,
|
|
1677
|
+
value: l.dataIndex,
|
|
1678
|
+
checked: l.checked || l.checked === void 0
|
|
1679
|
+
})), a.value = [...m.value];
|
|
1852
1680
|
let t = [];
|
|
1853
|
-
|
|
1854
|
-
t.push(
|
|
1681
|
+
F.tableColumns.forEach(function(l) {
|
|
1682
|
+
t.push(l.dataIndex);
|
|
1855
1683
|
});
|
|
1856
|
-
},
|
|
1684
|
+
}, P = (t) => t.children[0].text, T = (t) => {
|
|
1857
1685
|
delete t.fixed;
|
|
1858
|
-
const
|
|
1859
|
-
if (
|
|
1860
|
-
let
|
|
1861
|
-
for (let y = 0; y <
|
|
1862
|
-
|
|
1863
|
-
if (
|
|
1864
|
-
const y = [...
|
|
1865
|
-
y.splice(
|
|
1686
|
+
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1687
|
+
if (l !== -1) {
|
|
1688
|
+
let d = -1;
|
|
1689
|
+
for (let y = 0; y < a.value.length; y++)
|
|
1690
|
+
a.value[y].fixed === "left" && (d = y);
|
|
1691
|
+
if (d !== -1 && l !== d + 1) {
|
|
1692
|
+
const y = [...a.value], [i] = y.splice(l, 1);
|
|
1693
|
+
y.splice(d + 1, 0, i), a.value = y;
|
|
1866
1694
|
}
|
|
1867
1695
|
}
|
|
1868
|
-
},
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
let
|
|
1872
|
-
for (let y = 0; y <
|
|
1873
|
-
|
|
1874
|
-
if (
|
|
1875
|
-
const y = [...
|
|
1876
|
-
|
|
1696
|
+
}, _ = (t) => {
|
|
1697
|
+
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1698
|
+
if (l !== -1) {
|
|
1699
|
+
let d = -1;
|
|
1700
|
+
for (let y = 0; y < a.value.length; y++)
|
|
1701
|
+
a.value[y].fixed === "left" && (d = y);
|
|
1702
|
+
if (d !== -1 && l !== d + 1) {
|
|
1703
|
+
const y = [...a.value], i = y.splice(l, 1);
|
|
1704
|
+
i[0].fixed = "left", y.splice(d + 1, 0, i[0]), a.value = y;
|
|
1877
1705
|
}
|
|
1878
1706
|
}
|
|
1879
1707
|
};
|
|
1880
|
-
return
|
|
1881
|
-
const
|
|
1882
|
-
return o(), k("div",
|
|
1883
|
-
|
|
1884
|
-
title:
|
|
1708
|
+
return N(), (t, l) => {
|
|
1709
|
+
const d = j("a-tooltip"), y = j("a-button");
|
|
1710
|
+
return o(), k("div", Hl, [
|
|
1711
|
+
S(n(mt), {
|
|
1712
|
+
title: n(s)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1885
1713
|
trigger: "click",
|
|
1886
1714
|
placement: "leftTop",
|
|
1887
1715
|
overlayClassName: "alertInfoContent",
|
|
1888
|
-
visible:
|
|
1889
|
-
"onUpdate:visible":
|
|
1716
|
+
visible: r.value,
|
|
1717
|
+
"onUpdate:visible": l[1] || (l[1] = (i) => r.value = i)
|
|
1890
1718
|
}, {
|
|
1891
|
-
content:
|
|
1892
|
-
|
|
1893
|
-
modelValue:
|
|
1894
|
-
"onUpdate:modelValue":
|
|
1719
|
+
content: c(() => [
|
|
1720
|
+
S(n(fe), {
|
|
1721
|
+
modelValue: a.value,
|
|
1722
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
1895
1723
|
"item-key": "value",
|
|
1896
1724
|
class: "hb-lib-table-set-drag",
|
|
1897
1725
|
"ghost-class": "ghost",
|
|
1898
1726
|
animation: "200",
|
|
1899
1727
|
handle: ".drag-handle",
|
|
1900
|
-
onStart:
|
|
1901
|
-
onEnd:
|
|
1728
|
+
onStart: H,
|
|
1729
|
+
onEnd: Q
|
|
1902
1730
|
}, {
|
|
1903
|
-
item:
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
checked:
|
|
1907
|
-
onChange: (
|
|
1731
|
+
item: c(({ element: i }) => [
|
|
1732
|
+
i.fixed !== "right" ? (o(), k("div", Al, [
|
|
1733
|
+
S(n(pe), {
|
|
1734
|
+
checked: i.checked,
|
|
1735
|
+
onChange: (U) => $(i, U.target.checked)
|
|
1908
1736
|
}, {
|
|
1909
|
-
default:
|
|
1910
|
-
I(L(
|
|
1737
|
+
default: c(() => [
|
|
1738
|
+
I(L(i.label), 1)
|
|
1911
1739
|
]),
|
|
1912
1740
|
_: 2
|
|
1913
1741
|
}, 1032, ["checked", "onChange"]),
|
|
1914
|
-
|
|
1742
|
+
i.checked ? (o(), k("section", Dl, [
|
|
1915
1743
|
v("span", {
|
|
1916
|
-
class:
|
|
1744
|
+
class: V(i.fixed ? "drag-hide" : "drag-handle")
|
|
1917
1745
|
}, "⋮⋮", 2),
|
|
1918
|
-
|
|
1919
|
-
title:
|
|
1920
|
-
I(L(
|
|
1746
|
+
i.fixed ? (o(), B(d, { key: 0 }, {
|
|
1747
|
+
title: c(() => [
|
|
1748
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1921
1749
|
]),
|
|
1922
|
-
default:
|
|
1750
|
+
default: c(() => [
|
|
1923
1751
|
v("span", {
|
|
1924
1752
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1925
|
-
onClick: (
|
|
1926
|
-
}, [...
|
|
1753
|
+
onClick: (U) => T(i)
|
|
1754
|
+
}, [...l[2] || (l[2] = [
|
|
1927
1755
|
v("svg", {
|
|
1928
1756
|
t: "1759048615600",
|
|
1929
1757
|
class: "icon",
|
|
@@ -1944,15 +1772,15 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1944
1772
|
]),
|
|
1945
1773
|
_: 2
|
|
1946
1774
|
}, 1024)) : R("", !0),
|
|
1947
|
-
|
|
1948
|
-
title:
|
|
1949
|
-
I(L(
|
|
1775
|
+
i.fixed ? R("", !0) : (o(), B(d, { key: 1 }, {
|
|
1776
|
+
title: c(() => [
|
|
1777
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1950
1778
|
]),
|
|
1951
|
-
default:
|
|
1779
|
+
default: c(() => [
|
|
1952
1780
|
v("span", {
|
|
1953
1781
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1954
|
-
onClick: (
|
|
1955
|
-
}, [...
|
|
1782
|
+
onClick: (U) => _(i)
|
|
1783
|
+
}, [...l[3] || (l[3] = [
|
|
1956
1784
|
v("svg", {
|
|
1957
1785
|
t: "1759048735643",
|
|
1958
1786
|
class: "icon",
|
|
@@ -1978,36 +1806,36 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
1978
1806
|
]),
|
|
1979
1807
|
_: 1
|
|
1980
1808
|
}, 8, ["modelValue"]),
|
|
1981
|
-
v("div",
|
|
1982
|
-
v("div",
|
|
1983
|
-
|
|
1984
|
-
checked:
|
|
1985
|
-
indeterminate:
|
|
1986
|
-
onChange:
|
|
1809
|
+
v("div", Rl, [
|
|
1810
|
+
v("div", zl, [
|
|
1811
|
+
S(n(pe), {
|
|
1812
|
+
checked: b.value,
|
|
1813
|
+
indeterminate: D.value,
|
|
1814
|
+
onChange: x
|
|
1987
1815
|
}, {
|
|
1988
|
-
default:
|
|
1989
|
-
I(L(
|
|
1816
|
+
default: c(() => [
|
|
1817
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1990
1818
|
]),
|
|
1991
1819
|
_: 1
|
|
1992
1820
|
}, 8, ["checked", "indeterminate"])
|
|
1993
1821
|
]),
|
|
1994
|
-
|
|
1995
|
-
onClick:
|
|
1822
|
+
S(y, {
|
|
1823
|
+
onClick: E,
|
|
1996
1824
|
type: "primary"
|
|
1997
1825
|
}, {
|
|
1998
|
-
default:
|
|
1999
|
-
I(L(
|
|
1826
|
+
default: c(() => [
|
|
1827
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2000
1828
|
]),
|
|
2001
1829
|
_: 1
|
|
2002
1830
|
})
|
|
2003
1831
|
])
|
|
2004
1832
|
]),
|
|
2005
|
-
default:
|
|
2006
|
-
|
|
2007
|
-
title:
|
|
1833
|
+
default: c(() => [
|
|
1834
|
+
S(d, {
|
|
1835
|
+
title: n(s)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2008
1836
|
placement: "leftTop"
|
|
2009
1837
|
}, {
|
|
2010
|
-
default:
|
|
1838
|
+
default: c(() => [...l[4] || (l[4] = [
|
|
2011
1839
|
v("span", { class: "hb-lib-table-col-set" }, [
|
|
2012
1840
|
v("svg", {
|
|
2013
1841
|
t: "1759041858618",
|
|
@@ -2040,7 +1868,19 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
2040
1868
|
]);
|
|
2041
1869
|
};
|
|
2042
1870
|
}
|
|
2043
|
-
}),
|
|
1871
|
+
}), Pl = /* @__PURE__ */ oe(Nl, [["__scopeId", "data-v-c9fc6c04"]]), Vl = le(Pl), El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1872
|
+
__proto__: null,
|
|
1873
|
+
HbLibFormItemFilterModal: wt,
|
|
1874
|
+
HbLibListBtnsAct: Ut,
|
|
1875
|
+
HbLibListForm: $t,
|
|
1876
|
+
HbLibListMultiSelect: rl,
|
|
1877
|
+
HbLibListPageAct: Rt,
|
|
1878
|
+
HbLibListPageContainer: qt,
|
|
1879
|
+
HbLibListTable: Il,
|
|
1880
|
+
HbLibMutilpleSelectModal: bl,
|
|
1881
|
+
HbLibTableAct: wl,
|
|
1882
|
+
HbLibTableColumnSet: Vl
|
|
1883
|
+
}, Symbol.toStringTag, { value: "Module" })), Ul = {
|
|
2044
1884
|
// 如果存在cpText时,K和V无效
|
|
2045
1885
|
cpText: {
|
|
2046
1886
|
type: String,
|
|
@@ -2081,204 +1921,52 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
2081
1921
|
type: String,
|
|
2082
1922
|
default: "ab"
|
|
2083
1923
|
}
|
|
2084
|
-
},
|
|
1924
|
+
}, Yl = /* @__PURE__ */ te({
|
|
2085
1925
|
name: "HbLibCopy",
|
|
2086
1926
|
__name: "copy",
|
|
2087
|
-
props:
|
|
1927
|
+
props: Ul,
|
|
2088
1928
|
setup(e) {
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
u.value =
|
|
1929
|
+
const f = e, u = O();
|
|
1930
|
+
st(() => {
|
|
1931
|
+
u.value = f.data;
|
|
2092
1932
|
});
|
|
2093
|
-
const
|
|
2094
|
-
if (
|
|
1933
|
+
const s = K(() => {
|
|
1934
|
+
if (f.cpText) return f.cpText;
|
|
2095
1935
|
let m = "";
|
|
2096
|
-
if (
|
|
2097
|
-
if (Array.isArray(
|
|
2098
|
-
if (
|
|
2099
|
-
const p =
|
|
2100
|
-
m = p ? p[
|
|
1936
|
+
if (f.data)
|
|
1937
|
+
if (Array.isArray(f.data)) {
|
|
1938
|
+
if (f.K && f.V && f.L) {
|
|
1939
|
+
const p = f.data.find((r) => r?.[f.K] === f.V);
|
|
1940
|
+
m = p ? p[f.L] : "";
|
|
2101
1941
|
}
|
|
2102
1942
|
} else
|
|
2103
|
-
|
|
1943
|
+
f.K && (m = f.data[f.K]);
|
|
2104
1944
|
return m;
|
|
2105
|
-
}),
|
|
2106
|
-
navigator.clipboard.writeText(
|
|
2107
|
-
|
|
1945
|
+
}), F = () => {
|
|
1946
|
+
navigator.clipboard.writeText(s.value).then(() => {
|
|
1947
|
+
Se.success(f.copySuccessTip);
|
|
2108
1948
|
}).catch(() => {
|
|
2109
|
-
|
|
1949
|
+
Se.error("复制失败");
|
|
2110
1950
|
});
|
|
2111
1951
|
};
|
|
2112
1952
|
return (m, p) => {
|
|
2113
|
-
const
|
|
2114
|
-
return
|
|
1953
|
+
const r = j("a-tooltip");
|
|
1954
|
+
return s.value ? (o(), B(r, {
|
|
2115
1955
|
key: 0,
|
|
2116
1956
|
title: m.tooltipTitle
|
|
2117
1957
|
}, {
|
|
2118
|
-
default:
|
|
1958
|
+
default: c(() => [
|
|
2119
1959
|
v("i", {
|
|
2120
|
-
class:
|
|
2121
|
-
style:
|
|
2122
|
-
onClick:
|
|
1960
|
+
class: V(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
1961
|
+
style: me({ ...m.cpStyle }),
|
|
1962
|
+
onClick: ke(F, ["stop", "prevent"])
|
|
2123
1963
|
}, null, 6)
|
|
2124
1964
|
]),
|
|
2125
1965
|
_: 1
|
|
2126
1966
|
}, 8, ["title"])) : R("", !0);
|
|
2127
1967
|
};
|
|
2128
1968
|
}
|
|
2129
|
-
}),
|
|
2130
|
-
__proto__: null,
|
|
2131
|
-
HbLibCopy: Xe,
|
|
2132
|
-
HbLibFormItemFilterModal: xt,
|
|
2133
|
-
HbLibListBtnsAct: Yt,
|
|
2134
|
-
HbLibListForm: Ht,
|
|
2135
|
-
HbLibListMultiSelect: Fe,
|
|
2136
|
-
HbLibListPageAct: Pt,
|
|
2137
|
-
HbLibListPageContainer: Wt,
|
|
2138
|
-
HbLibListTable: Hl,
|
|
2139
|
-
HbLibMutilpleSelectModal: bl,
|
|
2140
|
-
HbLibTableAct: wl,
|
|
2141
|
-
HbLibTableColumnSet: El
|
|
2142
|
-
}, Symbol.toStringTag, { value: "Module" })), jl = {
|
|
2143
|
-
// 传进来的数据
|
|
2144
|
-
data: {
|
|
2145
|
-
type: Array,
|
|
2146
|
-
required: !0
|
|
2147
|
-
},
|
|
2148
|
-
// 双向绑定的数据
|
|
2149
|
-
modelValue: {
|
|
2150
|
-
type: Array,
|
|
2151
|
-
default: () => []
|
|
2152
|
-
},
|
|
2153
|
-
// 用户自定义label名字 考虑到后台接口的数据不一定是按label的
|
|
2154
|
-
labelKey: {
|
|
2155
|
-
type: String,
|
|
2156
|
-
default: "label"
|
|
2157
|
-
},
|
|
2158
|
-
// 自定义key名字
|
|
2159
|
-
keyKey: {
|
|
2160
|
-
type: String,
|
|
2161
|
-
default: "key"
|
|
2162
|
-
},
|
|
2163
|
-
// 自定义children名字
|
|
2164
|
-
childrenKey: {
|
|
2165
|
-
type: String,
|
|
2166
|
-
default: "children"
|
|
2167
|
-
},
|
|
2168
|
-
defaultExpandKeys: {
|
|
2169
|
-
type: Array,
|
|
2170
|
-
default: () => []
|
|
2171
|
-
},
|
|
2172
|
-
// 是否支持多选
|
|
2173
|
-
multiple: {
|
|
2174
|
-
type: Boolean,
|
|
2175
|
-
default: !1
|
|
2176
|
-
},
|
|
2177
|
-
// 是否支持远程获取数据
|
|
2178
|
-
remote: {
|
|
2179
|
-
type: Boolean,
|
|
2180
|
-
default: !1
|
|
2181
|
-
},
|
|
2182
|
-
// 是否支持单击选中item
|
|
2183
|
-
clickToSelect: {
|
|
2184
|
-
type: Boolean
|
|
2185
|
-
}
|
|
2186
|
-
// 双向数据绑定 用户可以获取选中的数据
|
|
2187
|
-
// 是否支持远程获取数据
|
|
2188
|
-
// 是否支持单击选中item
|
|
2189
|
-
// 是否支持多项选中 checkbox
|
|
2190
|
-
// 是否支持虚拟滚动
|
|
2191
|
-
}, ql = /* @__PURE__ */ X({
|
|
2192
|
-
__name: "treeNode",
|
|
2193
|
-
props: {
|
|
2194
|
-
item: {
|
|
2195
|
-
type: Object,
|
|
2196
|
-
default() {
|
|
2197
|
-
return {};
|
|
2198
|
-
}
|
|
2199
|
-
},
|
|
2200
|
-
expandedKeys: {
|
|
2201
|
-
type: Object
|
|
2202
|
-
}
|
|
2203
|
-
},
|
|
2204
|
-
emits: ["toggleExpand"],
|
|
2205
|
-
setup(e, { emit: d }) {
|
|
2206
|
-
const u = e, n = d, _ = fe("treeNode"), m = W(() => u.expandedKeys.has(u.item.key)), p = () => {
|
|
2207
|
-
n("toggleExpand", u.item.key);
|
|
2208
|
-
};
|
|
2209
|
-
return (h, l) => (o(), k("div", {
|
|
2210
|
-
class: "tree-node-container",
|
|
2211
|
-
style: be({ paddingLeft: `${e.item.level * 20}px` }),
|
|
2212
|
-
onClick: l[0] || (l[0] = (s) => p())
|
|
2213
|
-
}, [
|
|
2214
|
-
v("span", {
|
|
2215
|
-
class: z(["tree-node-icon", [
|
|
2216
|
-
m.value && "tree-node-icon-open",
|
|
2217
|
-
i(_).is("leaf", e.item.isLeaf)
|
|
2218
|
-
]])
|
|
2219
|
-
}, "➡", 2),
|
|
2220
|
-
I(L(e.item.label), 1)
|
|
2221
|
-
], 4));
|
|
2222
|
-
}
|
|
2223
|
-
}), Wl = /* @__PURE__ */ X({
|
|
2224
|
-
name: "HbTree",
|
|
2225
|
-
__name: "tree",
|
|
2226
|
-
props: jl,
|
|
2227
|
-
setup(e) {
|
|
2228
|
-
const d = e, u = fe("tree"), n = O([]), _ = O(new Set(d.defaultExpandKeys)), m = (s) => {
|
|
2229
|
-
const r = (M, w = null) => M.map((N) => {
|
|
2230
|
-
const S = N[d.childrenKey], x = {
|
|
2231
|
-
...N,
|
|
2232
|
-
originData: N,
|
|
2233
|
-
label: N[d.labelKey] || "",
|
|
2234
|
-
key: N[d.keyKey] || "",
|
|
2235
|
-
children: [],
|
|
2236
|
-
isLeaf: N.isLeaf ?? S.length === 0,
|
|
2237
|
-
level: w ? w.level + 1 : 0,
|
|
2238
|
-
parentKey: w ? w.key : null
|
|
2239
|
-
};
|
|
2240
|
-
return S.length > 0 && (x.children = r(S, x)), x;
|
|
2241
|
-
});
|
|
2242
|
-
return r(s);
|
|
2243
|
-
};
|
|
2244
|
-
se(
|
|
2245
|
-
() => d.data,
|
|
2246
|
-
(s) => {
|
|
2247
|
-
n.value = m(s);
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
deep: !0,
|
|
2251
|
-
immediate: !0
|
|
2252
|
-
}
|
|
2253
|
-
);
|
|
2254
|
-
const p = W(() => {
|
|
2255
|
-
const s = n.value, r = _.value, M = [], w = [];
|
|
2256
|
-
for (let N = s.length - 1; N >= 0; N--)
|
|
2257
|
-
w.push(s[N]);
|
|
2258
|
-
for (; w.length > 0; ) {
|
|
2259
|
-
const N = w.pop();
|
|
2260
|
-
if (M.push(N), r.has(N.key))
|
|
2261
|
-
for (let S = N.children.length - 1; S >= 0; S--)
|
|
2262
|
-
w.push(N.children[S]);
|
|
2263
|
-
}
|
|
2264
|
-
return M;
|
|
2265
|
-
}), h = (s) => {
|
|
2266
|
-
_.value.has(s) ? _.value.delete(s) : _.value.add(s);
|
|
2267
|
-
}, l = () => {
|
|
2268
|
-
};
|
|
2269
|
-
return (s, r) => (o(), k("div", {
|
|
2270
|
-
class: z([i(u).b()]),
|
|
2271
|
-
onClick: r[0] || (r[0] = (M) => l())
|
|
2272
|
-
}, [
|
|
2273
|
-
(o(!0), k(J, null, ae(p.value, (M) => (o(), B(ql, {
|
|
2274
|
-
key: M.key,
|
|
2275
|
-
item: M,
|
|
2276
|
-
expandedKeys: _.value,
|
|
2277
|
-
onToggleExpand: h
|
|
2278
|
-
}, null, 8, ["item", "expandedKeys"]))), 128))
|
|
2279
|
-
], 2));
|
|
2280
|
-
}
|
|
2281
|
-
}), Jl = le(Wl), Gl = {
|
|
1969
|
+
}), jl = /* @__PURE__ */ oe(Yl, [["__scopeId", "data-v-d5ca4420"]]), ql = le(jl), Kl = {
|
|
2282
1970
|
dragList: {
|
|
2283
1971
|
type: Array,
|
|
2284
1972
|
required: !0
|
|
@@ -2317,135 +2005,124 @@ const cl = { class: "hb-lib-form-item-filter-modal-search" }, dl = { class: "hb-
|
|
|
2317
2005
|
type: String,
|
|
2318
2006
|
default: ""
|
|
2319
2007
|
}
|
|
2320
|
-
},
|
|
2008
|
+
}, Wl = /* @__PURE__ */ te({
|
|
2321
2009
|
name: "HbDrag",
|
|
2322
2010
|
__name: "index",
|
|
2323
|
-
props:
|
|
2011
|
+
props: Kl,
|
|
2324
2012
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2325
|
-
setup(e, { emit:
|
|
2326
|
-
const u = e,
|
|
2327
|
-
|
|
2013
|
+
setup(e, { emit: f }) {
|
|
2014
|
+
const u = e, s = it([]);
|
|
2015
|
+
ce(
|
|
2328
2016
|
() => u.dragList,
|
|
2329
|
-
(
|
|
2330
|
-
|
|
2017
|
+
(b) => {
|
|
2018
|
+
s.value = b;
|
|
2331
2019
|
},
|
|
2332
2020
|
{
|
|
2333
2021
|
deep: !0,
|
|
2334
2022
|
immediate: !0
|
|
2335
2023
|
}
|
|
2336
2024
|
);
|
|
2337
|
-
const
|
|
2338
|
-
console.log("drag start",
|
|
2339
|
-
},
|
|
2340
|
-
console.log("drag end",
|
|
2341
|
-
},
|
|
2342
|
-
console.log("drag add",
|
|
2343
|
-
},
|
|
2344
|
-
console.log("drag remove",
|
|
2025
|
+
const F = $e("drag"), m = f, p = (b) => {
|
|
2026
|
+
console.log("drag start", b), m("handleDragStart", b);
|
|
2027
|
+
}, r = (b) => {
|
|
2028
|
+
console.log("drag end", b), m("handleDragEnd", b);
|
|
2029
|
+
}, a = (b) => {
|
|
2030
|
+
console.log("drag add", b), m("handleDragAdd", b);
|
|
2031
|
+
}, h = (b) => {
|
|
2032
|
+
console.log("drag remove", b), m("handleDragRemove", b);
|
|
2345
2033
|
};
|
|
2346
|
-
return (
|
|
2347
|
-
class:
|
|
2034
|
+
return (b, D) => (o(), k("div", {
|
|
2035
|
+
class: V(n(F).b())
|
|
2348
2036
|
}, [
|
|
2349
|
-
|
|
2037
|
+
b.childrenType == "component" ? (o(), B(n(fe), X({
|
|
2350
2038
|
key: 0,
|
|
2351
|
-
modelValue:
|
|
2352
|
-
"onUpdate:modelValue":
|
|
2039
|
+
modelValue: s.value,
|
|
2040
|
+
"onUpdate:modelValue": D[0] || (D[0] = (H) => s.value = H),
|
|
2353
2041
|
"item-key": "key",
|
|
2354
|
-
class: { [
|
|
2355
|
-
},
|
|
2356
|
-
"ghost-class":
|
|
2042
|
+
class: { [b.dragClass]: b.dragClass }
|
|
2043
|
+
}, b.$attrs, {
|
|
2044
|
+
"ghost-class": b.ghostClass,
|
|
2357
2045
|
onStart: p,
|
|
2358
|
-
onEnd:
|
|
2359
|
-
onAdd:
|
|
2360
|
-
onRemove:
|
|
2046
|
+
onEnd: r,
|
|
2047
|
+
onAdd: a,
|
|
2048
|
+
onRemove: h
|
|
2361
2049
|
}), {
|
|
2362
|
-
item:
|
|
2363
|
-
(o(), B(
|
|
2050
|
+
item: c(({ element: H }) => [
|
|
2051
|
+
(o(), B(rt(H.component)))
|
|
2364
2052
|
]),
|
|
2365
2053
|
_: 1
|
|
2366
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), B(
|
|
2054
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), B(n(fe), X({
|
|
2367
2055
|
key: 1,
|
|
2368
|
-
modelValue:
|
|
2369
|
-
"onUpdate:modelValue":
|
|
2056
|
+
modelValue: s.value,
|
|
2057
|
+
"onUpdate:modelValue": D[1] || (D[1] = (H) => s.value = H),
|
|
2370
2058
|
"item-key": "id",
|
|
2371
|
-
class: { [
|
|
2372
|
-
},
|
|
2373
|
-
"ghost-class":
|
|
2059
|
+
class: { [b.dragClass]: b.dragClass }
|
|
2060
|
+
}, b.$attrs, {
|
|
2061
|
+
"ghost-class": b.ghostClass,
|
|
2374
2062
|
onStart: p,
|
|
2375
|
-
onEnd:
|
|
2376
|
-
onAdd:
|
|
2377
|
-
onRemove:
|
|
2063
|
+
onEnd: r,
|
|
2064
|
+
onAdd: a,
|
|
2065
|
+
onRemove: h
|
|
2378
2066
|
}), {
|
|
2379
|
-
item:
|
|
2067
|
+
item: c(({ element: H }) => [
|
|
2380
2068
|
v("div", null, [
|
|
2381
|
-
Z(
|
|
2069
|
+
Z(b.$slots, "default", { item: H }, void 0, !0)
|
|
2382
2070
|
])
|
|
2383
2071
|
]),
|
|
2384
2072
|
_: 3
|
|
2385
2073
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2386
2074
|
], 2));
|
|
2387
2075
|
}
|
|
2388
|
-
}),
|
|
2076
|
+
}), Jl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-15b227f5"]]), Gl = le(Jl), Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2389
2077
|
__proto__: null,
|
|
2390
|
-
HbLibFuncCompCopy:
|
|
2391
|
-
HbLibFuncCompDrag:
|
|
2392
|
-
HbLibFuncCompTree: Jl
|
|
2078
|
+
HbLibFuncCompCopy: ql,
|
|
2079
|
+
HbLibFuncCompDrag: Gl
|
|
2393
2080
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2394
|
-
let
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
hbLibComp:
|
|
2400
|
-
},
|
|
2401
|
-
hbLibComp:
|
|
2402
|
-
},
|
|
2403
|
-
hbLibComp:
|
|
2404
|
-
},
|
|
2405
|
-
hbLibComp:
|
|
2081
|
+
let Ke = {
|
|
2082
|
+
...El,
|
|
2083
|
+
...Ql
|
|
2084
|
+
};
|
|
2085
|
+
const Zl = { 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" } }, Xl = {
|
|
2086
|
+
hbLibComp: Zl
|
|
2087
|
+
}, eo = { 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回目の確認" } }, to = {
|
|
2088
|
+
hbLibComp: eo
|
|
2089
|
+
}, lo = { 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: "操作内容" } }, oo = {
|
|
2090
|
+
hbLibComp: lo
|
|
2091
|
+
}, ao = { 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" } }, no = {
|
|
2092
|
+
hbLibComp: ao
|
|
2406
2093
|
};
|
|
2407
|
-
var
|
|
2408
|
-
function
|
|
2409
|
-
return We || (We = 1, (function(e,
|
|
2410
|
-
(function(u,
|
|
2411
|
-
e.exports =
|
|
2412
|
-
})(
|
|
2413
|
-
function
|
|
2094
|
+
var be = { exports: {} }, so = be.exports, We;
|
|
2095
|
+
function io() {
|
|
2096
|
+
return We || (We = 1, (function(e, f) {
|
|
2097
|
+
(function(u, s) {
|
|
2098
|
+
e.exports = s(Te);
|
|
2099
|
+
})(so, (function(u) {
|
|
2100
|
+
function s(p) {
|
|
2414
2101
|
return p && typeof p == "object" && "default" in p ? p : { default: p };
|
|
2415
2102
|
}
|
|
2416
|
-
var
|
|
2417
|
-
return
|
|
2418
|
-
}, 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(p,
|
|
2419
|
-
var
|
|
2420
|
-
return
|
|
2103
|
+
var F = s(u), 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(p, r) {
|
|
2104
|
+
return r === "W" ? p + "周" : p + "日";
|
|
2105
|
+
}, 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(p, r) {
|
|
2106
|
+
var a = 100 * p + r;
|
|
2107
|
+
return a < 600 ? "凌晨" : a < 900 ? "早上" : a < 1100 ? "上午" : a < 1300 ? "中午" : a < 1800 ? "下午" : "晚上";
|
|
2421
2108
|
} };
|
|
2422
|
-
return
|
|
2109
|
+
return F.default.locale(m, null, !0), m;
|
|
2423
2110
|
}));
|
|
2424
|
-
})(
|
|
2111
|
+
})(be)), be.exports;
|
|
2425
2112
|
}
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
e.use(Je[u]);
|
|
2113
|
+
io();
|
|
2114
|
+
Te.locale("zh-cn");
|
|
2115
|
+
const yo = {
|
|
2116
|
+
en_US: Xl,
|
|
2117
|
+
ja_JP: to,
|
|
2118
|
+
zh_CN: oo,
|
|
2119
|
+
de_DE: no
|
|
2120
|
+
}, Co = function(e) {
|
|
2121
|
+
Object.keys(Ke).forEach((u) => {
|
|
2122
|
+
e.use(Ke[u]);
|
|
2437
2123
|
});
|
|
2438
2124
|
};
|
|
2439
2125
|
export {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
Sa as HbFormProps,
|
|
2443
|
-
Ta as HbFormSelectModalprops,
|
|
2444
|
-
Fa as HbListBtnsProps,
|
|
2445
|
-
wa as HbListPageActProps,
|
|
2446
|
-
_a as HbSfCmProps,
|
|
2447
|
-
$a as HbTableProps,
|
|
2448
|
-
xa as ListPageContainerProps,
|
|
2449
|
-
Ha as install,
|
|
2450
|
-
Ma as locales
|
|
2126
|
+
Co as install,
|
|
2127
|
+
yo as locales
|
|
2451
2128
|
};
|