@hb-hellotech/hb-ui 1.0.9 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/components/type.d.ts +13 -0
- package/dist/components/type.d.ts.map +1 -0
- package/dist/hb_component_lib.js +1005 -1148
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/dist/index.d.ts +1 -0
- 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/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 q, 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 Ne, Select as Pe, Input as ze, Col as ft, Row as pt, FormItem as Ve, Form as Ee, SelectOption as Ue, Popconfirm as Ce, MenuItem as Ye, Menu as qe, Dropdown as je, 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 _t = "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([]), P = K(() => $.value.every((C) => C.isLinked || C.isFixed)), z = (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 _t = "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 _t = "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
|
-
|
|
202
|
-
},
|
|
203
|
-
const
|
|
204
|
-
|
|
193
|
+
}, U = () => {
|
|
194
|
+
H.value = !1;
|
|
195
|
+
}, N = () => {
|
|
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
|
+
}, j = (C) => {
|
|
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: N
|
|
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: P.value,
|
|
261
|
+
move: z
|
|
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 _t = "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) =>
|
|
296
|
-
onMouseleave: (Y) =>
|
|
295
|
+
onMouseenter: (Y) => J(g),
|
|
296
|
+
onMouseleave: (Y) => j(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,15 +312,15 @@ const _t = "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),
|
|
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), Co = {
|
|
324
324
|
// 数据源 一般等于搜索框的options
|
|
325
325
|
list: {
|
|
326
326
|
type: Array,
|
|
@@ -340,7 +340,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
340
340
|
type: Number,
|
|
341
341
|
default: 40
|
|
342
342
|
}
|
|
343
|
-
},
|
|
343
|
+
}, wt = le(St), Ft = { class: "form-footer" }, xt = /* @__PURE__ */ te({
|
|
344
344
|
name: "HbLibListForm",
|
|
345
345
|
__name: "HbListForm",
|
|
346
346
|
props: {
|
|
@@ -368,23 +368,23 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
368
368
|
} }
|
|
369
369
|
},
|
|
370
370
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
371
|
-
setup(e, { expose:
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
},
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
|
|
371
|
+
setup(e, { expose: f, emit: u }) {
|
|
372
|
+
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 = () => {
|
|
373
|
+
s("handleSearch");
|
|
374
|
+
}, D = () => {
|
|
375
|
+
s("handleReset");
|
|
376
|
+
}, H = O(), Q = () => {
|
|
377
|
+
H.value && H.value.toOpenModal();
|
|
378
|
+
}, x = (_) => {
|
|
379
|
+
s("handleSfcmConfirm", _);
|
|
380
|
+
}, $ = () => {
|
|
381
|
+
r.value = r.value === "show" ? "hide" : "show";
|
|
382
382
|
};
|
|
383
|
-
|
|
383
|
+
ce(
|
|
384
384
|
() => p.isFormExpanded,
|
|
385
|
-
(
|
|
386
|
-
if (
|
|
387
|
-
console.log(
|
|
385
|
+
(_) => {
|
|
386
|
+
if (_) {
|
|
387
|
+
console.log(_);
|
|
388
388
|
const t = document.querySelector("#subpackage_container");
|
|
389
389
|
t instanceof HTMLElement && (t.style.overflow = "hidden", setTimeout(() => {
|
|
390
390
|
t.style.overflow = "auto";
|
|
@@ -392,170 +392,170 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
|
-
const
|
|
396
|
-
const t =
|
|
395
|
+
const E = (_) => {
|
|
396
|
+
const t = _;
|
|
397
397
|
t.style.height = "", t.offsetHeight;
|
|
398
|
-
},
|
|
399
|
-
const t =
|
|
398
|
+
}, P = (_) => {
|
|
399
|
+
const t = _;
|
|
400
400
|
t.style.height = "", t.style.overflow = "", he(() => {
|
|
401
|
-
|
|
401
|
+
F.calTableHeight && F.calTableHeight();
|
|
402
402
|
});
|
|
403
|
-
},
|
|
404
|
-
const t =
|
|
405
|
-
if (
|
|
406
|
-
const
|
|
407
|
-
t.style.height =
|
|
403
|
+
}, z = (_) => {
|
|
404
|
+
const t = _, l = t.querySelector(".hb-lib-form--container");
|
|
405
|
+
if (l) {
|
|
406
|
+
const d = l.offsetHeight;
|
|
407
|
+
t.style.height = d + "px", t.style.overflow = "hidden", t.offsetHeight, requestAnimationFrame(() => {
|
|
408
408
|
t.style.height = "0";
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
},
|
|
411
|
+
}, T = () => {
|
|
412
412
|
he(() => {
|
|
413
|
-
|
|
413
|
+
F.calTableHeight && F.calTableHeight();
|
|
414
414
|
});
|
|
415
415
|
};
|
|
416
|
-
return
|
|
417
|
-
formRef:
|
|
418
|
-
SelectOption:
|
|
419
|
-
Form:
|
|
416
|
+
return f({
|
|
417
|
+
formRef: h,
|
|
418
|
+
SelectOption: Ue,
|
|
419
|
+
Form: Ee,
|
|
420
420
|
FormItem: Ve,
|
|
421
|
-
Row:
|
|
422
|
-
Col:
|
|
423
|
-
Input:
|
|
424
|
-
Select:
|
|
425
|
-
CheckboxGroup:
|
|
426
|
-
Checkbox:
|
|
421
|
+
Row: pt,
|
|
422
|
+
Col: ft,
|
|
423
|
+
Input: ze,
|
|
424
|
+
Select: Pe,
|
|
425
|
+
CheckboxGroup: Ne,
|
|
426
|
+
Checkbox: pe,
|
|
427
427
|
DatePicker: Re,
|
|
428
|
-
InputNumber:
|
|
429
|
-
RadioGroup:
|
|
430
|
-
Radio:
|
|
431
|
-
Switch:
|
|
428
|
+
InputNumber: Be,
|
|
429
|
+
RadioGroup: Oe,
|
|
430
|
+
Radio: De,
|
|
431
|
+
Switch: Ae,
|
|
432
432
|
Button: de,
|
|
433
|
-
Tooltip:
|
|
434
|
-
}), (
|
|
435
|
-
const
|
|
436
|
-
return o(), k(
|
|
437
|
-
|
|
433
|
+
Tooltip: He
|
|
434
|
+
}), (_, t) => {
|
|
435
|
+
const l = q("a-button"), d = q("a-tooltip"), y = q("HbLibFormItemFilterModal");
|
|
436
|
+
return o(), k(W, null, [
|
|
437
|
+
S(Xe, {
|
|
438
438
|
name: "form-collapse",
|
|
439
|
-
onEnter:
|
|
440
|
-
onAfterEnter:
|
|
441
|
-
onLeave:
|
|
442
|
-
onAfterLeave:
|
|
439
|
+
onEnter: E,
|
|
440
|
+
onAfterEnter: P,
|
|
441
|
+
onLeave: z,
|
|
442
|
+
onAfterLeave: T
|
|
443
443
|
}, {
|
|
444
|
-
default:
|
|
445
|
-
|
|
446
|
-
class:
|
|
444
|
+
default: c(() => [
|
|
445
|
+
ie(v("div", {
|
|
446
|
+
class: V([n(m).b(), "hb-lib-list-page-form-box hb-form-item-ui"])
|
|
447
447
|
}, [
|
|
448
|
-
|
|
448
|
+
S(n(Ee), X(_.$attrs, {
|
|
449
449
|
model: e.formData,
|
|
450
450
|
ref_key: "formRef",
|
|
451
|
-
ref:
|
|
452
|
-
class: ["hb-lib-form--container",
|
|
451
|
+
ref: h,
|
|
452
|
+
class: ["hb-lib-form--container", r.value == "show" ? "" : "hide"]
|
|
453
453
|
}), {
|
|
454
|
-
default:
|
|
455
|
-
(o(!0), k(
|
|
456
|
-
key:
|
|
454
|
+
default: c(() => [
|
|
455
|
+
(o(!0), k(W, null, ne(a.value, (i, U) => (o(), B(n(Ve), X({
|
|
456
|
+
key: U,
|
|
457
457
|
ref_for: !0
|
|
458
|
-
},
|
|
459
|
-
name:
|
|
460
|
-
class:
|
|
461
|
-
}),
|
|
462
|
-
default:
|
|
463
|
-
|
|
458
|
+
}, i, {
|
|
459
|
+
name: i.key,
|
|
460
|
+
class: i.isUnNeedBorder ? "hb-lib-form-item-border--unneed" : ""
|
|
461
|
+
}), Ge({
|
|
462
|
+
default: c(() => [
|
|
463
|
+
i.type === "slot" ? Z(_.$slots, i.key, {
|
|
464
464
|
key: 0,
|
|
465
465
|
formData: e.formData,
|
|
466
|
-
item:
|
|
466
|
+
item: i
|
|
467
467
|
}, void 0, !0) : R("", !0),
|
|
468
|
-
|
|
468
|
+
i.type === "mixin" ? Z(_.$slots, i.key, {
|
|
469
469
|
key: 1,
|
|
470
470
|
formData: e.formData,
|
|
471
|
-
item:
|
|
471
|
+
item: i
|
|
472
472
|
}, void 0, !0) : R("", !0),
|
|
473
|
-
|
|
473
|
+
i.type === "input" ? (o(), B(n(ze), X({
|
|
474
474
|
key: 2,
|
|
475
|
-
value: e.formData[
|
|
476
|
-
"onUpdate:value": (
|
|
477
|
-
}, { ref_for: !0 },
|
|
478
|
-
|
|
475
|
+
value: e.formData[i.key],
|
|
476
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
477
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
478
|
+
i.type === "select" ? (o(), B(n(Pe), X({
|
|
479
479
|
key: 3,
|
|
480
|
-
value: e.formData[
|
|
481
|
-
"onUpdate:value": (
|
|
482
|
-
}, { ref_for: !0 },
|
|
483
|
-
default:
|
|
484
|
-
(o(!0), k(
|
|
485
|
-
key:
|
|
486
|
-
value:
|
|
480
|
+
value: e.formData[i.key],
|
|
481
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
482
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
483
|
+
default: c(() => [
|
|
484
|
+
(o(!0), k(W, null, ne(i.options, (N, ee) => (o(), B(n(Ue), {
|
|
485
|
+
key: ee,
|
|
486
|
+
value: N.value
|
|
487
487
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
I(L(
|
|
488
|
+
default: c(() => [
|
|
489
|
+
I(L(N.label), 1)
|
|
490
490
|
]),
|
|
491
491
|
_: 2
|
|
492
492
|
}, 1032, ["value"]))), 128))
|
|
493
493
|
]),
|
|
494
494
|
_: 2
|
|
495
495
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
496
|
-
|
|
496
|
+
i.type === "checkbox" ? (o(), B(n(Ne), X({
|
|
497
497
|
key: 4,
|
|
498
|
-
value: e.formData[
|
|
499
|
-
"onUpdate:value": (
|
|
500
|
-
}, { ref_for: !0 },
|
|
501
|
-
default:
|
|
502
|
-
(o(!0), k(
|
|
503
|
-
key:
|
|
504
|
-
value:
|
|
498
|
+
value: e.formData[i.key],
|
|
499
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
500
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
501
|
+
default: c(() => [
|
|
502
|
+
(o(!0), k(W, null, ne(i.options, (N, ee) => (o(), B(n(pe), {
|
|
503
|
+
key: ee,
|
|
504
|
+
value: N.value
|
|
505
505
|
}, {
|
|
506
|
-
default:
|
|
507
|
-
I(L(
|
|
506
|
+
default: c(() => [
|
|
507
|
+
I(L(N.label), 1)
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, 1032, ["value"]))), 128))
|
|
511
511
|
]),
|
|
512
512
|
_: 2
|
|
513
513
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
514
|
-
|
|
514
|
+
i.type === "date-picker" ? (o(), B(n(Re), X({
|
|
515
515
|
key: 5,
|
|
516
|
-
value: e.formData[
|
|
517
|
-
"onUpdate:value": (
|
|
518
|
-
}, { ref_for: !0 },
|
|
519
|
-
|
|
516
|
+
value: e.formData[i.key],
|
|
517
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
518
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
519
|
+
i.type === "input-number" ? (o(), B(n(Be), X({
|
|
520
520
|
key: 6,
|
|
521
|
-
value: e.formData[
|
|
522
|
-
"onUpdate:value": (
|
|
523
|
-
}, { ref_for: !0 },
|
|
524
|
-
|
|
521
|
+
value: e.formData[i.key],
|
|
522
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
523
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["value", "onUpdate:value"])) : R("", !0),
|
|
524
|
+
i.type === "radio" ? (o(), B(n(Oe), X({
|
|
525
525
|
key: 7,
|
|
526
|
-
value: e.formData[
|
|
527
|
-
"onUpdate:value": (
|
|
528
|
-
}, { ref_for: !0 },
|
|
529
|
-
default:
|
|
530
|
-
(o(!0), k(
|
|
531
|
-
key:
|
|
532
|
-
value:
|
|
526
|
+
value: e.formData[i.key],
|
|
527
|
+
"onUpdate:value": (N) => e.formData[i.key] = N
|
|
528
|
+
}, { ref_for: !0 }, i.attrs), {
|
|
529
|
+
default: c(() => [
|
|
530
|
+
(o(!0), k(W, null, ne(i.options, (N, ee) => (o(), B(n(De), {
|
|
531
|
+
key: ee,
|
|
532
|
+
value: N.value
|
|
533
533
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
I(L(
|
|
534
|
+
default: c(() => [
|
|
535
|
+
I(L(N.label), 1)
|
|
536
536
|
]),
|
|
537
537
|
_: 2
|
|
538
538
|
}, 1032, ["value"]))), 128))
|
|
539
539
|
]),
|
|
540
540
|
_: 2
|
|
541
541
|
}, 1040, ["value", "onUpdate:value"])) : R("", !0),
|
|
542
|
-
|
|
542
|
+
i.type === "switch" ? (o(), B(n(Ae), X({
|
|
543
543
|
key: 8,
|
|
544
|
-
checked: e.formData[
|
|
545
|
-
"onUpdate:checked": (
|
|
546
|
-
}, { ref_for: !0 },
|
|
544
|
+
checked: e.formData[i.key],
|
|
545
|
+
"onUpdate:checked": (N) => e.formData[i.key] = N
|
|
546
|
+
}, { ref_for: !0 }, i.attrs), null, 16, ["checked", "onUpdate:checked"])) : R("", !0)
|
|
547
547
|
]),
|
|
548
548
|
_: 2
|
|
549
549
|
}, [
|
|
550
|
-
|
|
550
|
+
i.tooltip ? {
|
|
551
551
|
name: "label",
|
|
552
|
-
fn:
|
|
553
|
-
I(L(
|
|
554
|
-
|
|
555
|
-
title:
|
|
552
|
+
fn: c(() => [
|
|
553
|
+
I(L(i.label) + " ", 1),
|
|
554
|
+
S(n(He), {
|
|
555
|
+
title: i.tooltip
|
|
556
556
|
}, {
|
|
557
|
-
default:
|
|
558
|
-
|
|
557
|
+
default: c(() => [
|
|
558
|
+
S(n(dt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
559
559
|
]),
|
|
560
560
|
_: 1
|
|
561
561
|
}, 8, ["title"])
|
|
@@ -563,37 +563,37 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
563
563
|
key: "0"
|
|
564
564
|
} : void 0
|
|
565
565
|
]), 1040, ["name", "class"]))), 128)),
|
|
566
|
-
v("section",
|
|
567
|
-
|
|
566
|
+
v("section", Ft, [
|
|
567
|
+
S(l, {
|
|
568
568
|
type: "primary",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: b,
|
|
570
570
|
class: "hb_list_page_button"
|
|
571
571
|
}, {
|
|
572
|
-
icon:
|
|
573
|
-
|
|
572
|
+
icon: c(() => [
|
|
573
|
+
S(n(xe))
|
|
574
574
|
]),
|
|
575
|
-
default:
|
|
576
|
-
I(" " + L(
|
|
575
|
+
default: c(() => [
|
|
576
|
+
I(" " + L(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
}),
|
|
580
|
-
|
|
580
|
+
S(l, {
|
|
581
581
|
type: "link",
|
|
582
|
-
onClick:
|
|
582
|
+
onClick: D
|
|
583
583
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
I(L(
|
|
584
|
+
default: c(() => [
|
|
585
|
+
I(L(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
586
586
|
]),
|
|
587
587
|
_: 1
|
|
588
588
|
}),
|
|
589
|
-
e.needFilter ? (o(), B(
|
|
589
|
+
e.needFilter ? (o(), B(d, {
|
|
590
590
|
key: 0,
|
|
591
|
-
title:
|
|
591
|
+
title: _.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
592
592
|
}, {
|
|
593
|
-
default:
|
|
593
|
+
default: c(() => [
|
|
594
594
|
v("span", {
|
|
595
595
|
class: "hb-lib-form-svg",
|
|
596
|
-
onClick:
|
|
596
|
+
onClick: Q
|
|
597
597
|
}, [...t[0] || (t[0] = [
|
|
598
598
|
v("svg", {
|
|
599
599
|
t: "1757915025410",
|
|
@@ -615,73 +615,73 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
615
615
|
]),
|
|
616
616
|
_: 1
|
|
617
617
|
}, 8, ["title"])) : R("", !0),
|
|
618
|
-
Z(
|
|
618
|
+
Z(_.$slots, "formBtns", {}, void 0, !0)
|
|
619
619
|
])
|
|
620
620
|
]),
|
|
621
621
|
_: 3
|
|
622
622
|
}, 16, ["model", "class"]),
|
|
623
623
|
e.needFooter ? (o(), k("div", {
|
|
624
624
|
key: 0,
|
|
625
|
-
class:
|
|
625
|
+
class: V(n(m).e("footer"))
|
|
626
626
|
}, [
|
|
627
627
|
v("div", {
|
|
628
|
-
class:
|
|
628
|
+
class: V(n(m).e("footer__left"))
|
|
629
629
|
}, [
|
|
630
|
-
Z(
|
|
630
|
+
Z(_.$slots, "form-footer-left", {}, void 0, !0)
|
|
631
631
|
], 2),
|
|
632
632
|
v("div", {
|
|
633
|
-
class:
|
|
633
|
+
class: V(n(m).e("footer__right"))
|
|
634
634
|
}, [
|
|
635
|
-
|
|
635
|
+
r.value == "show" ? Z(_.$slots, "form-footer-right", {
|
|
636
636
|
key: 0,
|
|
637
|
-
formRef:
|
|
637
|
+
formRef: h.value
|
|
638
638
|
}, () => [
|
|
639
|
-
|
|
639
|
+
S(n(de), {
|
|
640
640
|
type: "primary",
|
|
641
|
-
onClick:
|
|
641
|
+
onClick: D
|
|
642
642
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
I(L(
|
|
643
|
+
default: c(() => [
|
|
644
|
+
I(L(_.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
645
645
|
]),
|
|
646
646
|
_: 1
|
|
647
647
|
}),
|
|
648
|
-
|
|
648
|
+
S(n(de), {
|
|
649
649
|
type: "primary",
|
|
650
|
-
onClick:
|
|
650
|
+
onClick: b
|
|
651
651
|
}, {
|
|
652
|
-
default:
|
|
653
|
-
I(L(
|
|
652
|
+
default: c(() => [
|
|
653
|
+
I(L(_.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
656
|
})
|
|
657
657
|
], !0) : R("", !0),
|
|
658
|
-
|
|
658
|
+
S(n(de), {
|
|
659
659
|
type: "primary",
|
|
660
|
-
onClick:
|
|
660
|
+
onClick: $
|
|
661
661
|
}, {
|
|
662
|
-
default:
|
|
663
|
-
I(L(
|
|
662
|
+
default: c(() => [
|
|
663
|
+
I(L(r.value == "show" ? `${_.$t("hbLibComp.hbListPageAct.close")}` : `${_.$t("hbLibComp.hbListPageAct.open")}`), 1)
|
|
664
664
|
]),
|
|
665
665
|
_: 1
|
|
666
666
|
})
|
|
667
667
|
], 2)
|
|
668
668
|
], 2)) : R("", !0)
|
|
669
669
|
], 2), [
|
|
670
|
-
[
|
|
670
|
+
[et, e.isFormExpanded]
|
|
671
671
|
])
|
|
672
672
|
]),
|
|
673
673
|
_: 3
|
|
674
674
|
}),
|
|
675
|
-
|
|
675
|
+
S(y, {
|
|
676
676
|
list: e.items,
|
|
677
677
|
ref_key: "HbSfCmRef",
|
|
678
|
-
ref:
|
|
679
|
-
onConfirm:
|
|
678
|
+
ref: H,
|
|
679
|
+
onConfirm: x
|
|
680
680
|
}, null, 8, ["list"])
|
|
681
681
|
], 64);
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
|
-
}),
|
|
684
|
+
}), Tt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-a1fedfa4"]]), Lo = {
|
|
685
685
|
// 每一个表单配置对象
|
|
686
686
|
items: {
|
|
687
687
|
type: Array,
|
|
@@ -727,7 +727,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
727
727
|
default: () => {
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
},
|
|
730
|
+
}, $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
731
|
key: 0,
|
|
732
732
|
t: "1757915338760",
|
|
733
733
|
class: "icon",
|
|
@@ -737,7 +737,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
737
737
|
"p-id": "22885",
|
|
738
738
|
width: "200",
|
|
739
739
|
height: "200"
|
|
740
|
-
},
|
|
740
|
+
}, Dt = {
|
|
741
741
|
key: 1,
|
|
742
742
|
t: "1757915360496",
|
|
743
743
|
class: "icon",
|
|
@@ -747,7 +747,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
747
747
|
"p-id": "23904",
|
|
748
748
|
width: "200",
|
|
749
749
|
height: "200"
|
|
750
|
-
},
|
|
750
|
+
}, Ot = /* @__PURE__ */ te({
|
|
751
751
|
name: "HbLibListPageAct",
|
|
752
752
|
__name: "HbListPageAct",
|
|
753
753
|
props: {
|
|
@@ -757,33 +757,33 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
757
757
|
isShowFullScreen: { type: Boolean, default: !0 }
|
|
758
758
|
},
|
|
759
759
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleOpenOrClose"],
|
|
760
|
-
setup(e, { emit:
|
|
761
|
-
const u =
|
|
762
|
-
const
|
|
763
|
-
let
|
|
764
|
-
if (
|
|
765
|
-
let
|
|
766
|
-
|
|
760
|
+
setup(e, { emit: f }) {
|
|
761
|
+
const u = we("HB_LIST_PAGE_CONTAINER"), { isFullscreen: s, toggle: F } = vt(u.PageContainerRef), m = O(""), p = () => {
|
|
762
|
+
const r = Qe();
|
|
763
|
+
let a = localStorage.getItem("BreadCrumb") || "[]", h = r?.path;
|
|
764
|
+
if (a !== "[]") {
|
|
765
|
+
let b = JSON.parse(a).find((D) => D.value === h);
|
|
766
|
+
b && (m.value = b.label.replace(/-/g, " / "));
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
|
-
return
|
|
769
|
+
return Fe(() => {
|
|
770
770
|
p();
|
|
771
|
-
}), (
|
|
772
|
-
const
|
|
773
|
-
return o(), k("section",
|
|
774
|
-
v("aside",
|
|
775
|
-
v("aside",
|
|
776
|
-
|
|
777
|
-
title:
|
|
771
|
+
}), (r, a) => {
|
|
772
|
+
const h = q("a-tooltip");
|
|
773
|
+
return o(), k("section", Mt, [
|
|
774
|
+
v("aside", It, L(m.value), 1),
|
|
775
|
+
v("aside", Ht, [
|
|
776
|
+
S(h, {
|
|
777
|
+
title: n(s) ? `${r.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${r.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
778
778
|
placement: "leftTop"
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
780
|
+
default: c(() => [
|
|
781
781
|
v("span", {
|
|
782
782
|
class: "hb-lib-list-page-act-svg",
|
|
783
|
-
onClick:
|
|
784
|
-
(...
|
|
783
|
+
onClick: a[0] || (a[0] = //@ts-ignore
|
|
784
|
+
(...b) => n(F) && n(F)(...b))
|
|
785
785
|
}, [
|
|
786
|
-
|
|
786
|
+
n(s) ? (o(), k("svg", Dt, [...a[2] || (a[2] = [
|
|
787
787
|
v("path", {
|
|
788
788
|
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
789
|
fill: "#ff5000",
|
|
@@ -799,7 +799,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
799
799
|
fill: "#ff5000",
|
|
800
800
|
"p-id": "23907"
|
|
801
801
|
}, null, -1)
|
|
802
|
-
])])) : (o(), k("svg",
|
|
802
|
+
])])) : (o(), k("svg", At, [...a[1] || (a[1] = [
|
|
803
803
|
v("path", {
|
|
804
804
|
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
805
|
fill: "#ff5000",
|
|
@@ -810,12 +810,12 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
810
810
|
]),
|
|
811
811
|
_: 1
|
|
812
812
|
}, 8, ["title"]),
|
|
813
|
-
Z(
|
|
813
|
+
Z(r.$slots, "listAct", {}, void 0, !0)
|
|
814
814
|
])
|
|
815
815
|
]);
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
}),
|
|
818
|
+
}), Bt = /* @__PURE__ */ oe(Ot, [["__scopeId", "data-v-cb524b69"]]), ko = {
|
|
819
819
|
formItems: {
|
|
820
820
|
type: Array,
|
|
821
821
|
default: () => []
|
|
@@ -835,7 +835,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
835
835
|
type: Boolean,
|
|
836
836
|
default: !0
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, Rt = le(Bt), Nt = { class: "hb-lib-list-btns-box" }, Pt = { class: "hb-lib-list-btns-left" }, zt = { class: "hb-lib-list-btns-right" }, Vt = /* @__PURE__ */ te({
|
|
839
839
|
name: "HbLibListBtnsAct",
|
|
840
840
|
__name: "HbListBtns",
|
|
841
841
|
props: {
|
|
@@ -845,29 +845,29 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
845
845
|
needOpenOrClose: { type: Boolean, default: !0 }
|
|
846
846
|
},
|
|
847
847
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
848
|
-
setup(e, { emit:
|
|
849
|
-
const u =
|
|
850
|
-
|
|
848
|
+
setup(e, { emit: f }) {
|
|
849
|
+
const u = f, s = O(!0), F = () => {
|
|
850
|
+
s.value = !s.value, u("handleOpenOrClose", s.value);
|
|
851
851
|
}, m = () => {
|
|
852
852
|
u("handleReload");
|
|
853
853
|
};
|
|
854
|
-
return
|
|
855
|
-
}), (p,
|
|
856
|
-
const
|
|
857
|
-
return o(), k("section",
|
|
858
|
-
v("aside",
|
|
854
|
+
return Fe(() => {
|
|
855
|
+
}), (p, r) => {
|
|
856
|
+
const a = q("a-tooltip");
|
|
857
|
+
return o(), k("section", Nt, [
|
|
858
|
+
v("aside", Pt, [
|
|
859
859
|
Z(p.$slots, "btnsLeft", {}, void 0, !0)
|
|
860
860
|
]),
|
|
861
|
-
v("aside",
|
|
862
|
-
e.needReload ? (o(), B(
|
|
861
|
+
v("aside", zt, [
|
|
862
|
+
e.needReload ? (o(), B(a, {
|
|
863
863
|
key: 0,
|
|
864
864
|
title: p.$t("hbLibComp.hbListBtnsAct.reload")
|
|
865
865
|
}, {
|
|
866
|
-
default:
|
|
866
|
+
default: c(() => [
|
|
867
867
|
v("span", {
|
|
868
868
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
869
869
|
onClick: m
|
|
870
|
-
}, [...
|
|
870
|
+
}, [...r[0] || (r[0] = [
|
|
871
871
|
v("svg", {
|
|
872
872
|
t: "1759041224819",
|
|
873
873
|
class: "icon",
|
|
@@ -888,19 +888,19 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
888
888
|
]),
|
|
889
889
|
_: 1
|
|
890
890
|
}, 8, ["title"])) : R("", !0),
|
|
891
|
-
e.needOpenOrClose ? (o(), B(
|
|
891
|
+
e.needOpenOrClose ? (o(), B(a, {
|
|
892
892
|
key: 1,
|
|
893
|
-
title:
|
|
893
|
+
title: s.value ? `${p.$t("hbLibComp.hbListBtnsAct.close")}` : `${p.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
894
894
|
}, {
|
|
895
|
-
default:
|
|
895
|
+
default: c(() => [
|
|
896
896
|
v("span", {
|
|
897
897
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
898
|
-
onClick:
|
|
898
|
+
onClick: F
|
|
899
899
|
}, [
|
|
900
|
-
|
|
900
|
+
s.value ? (o(), B(n(ut), {
|
|
901
901
|
key: 0,
|
|
902
902
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
903
|
-
})) : (o(), B(
|
|
903
|
+
})) : (o(), B(n(ht), {
|
|
904
904
|
key: 1,
|
|
905
905
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
906
906
|
}))
|
|
@@ -913,7 +913,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
913
913
|
]);
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
}),
|
|
916
|
+
}), Et = /* @__PURE__ */ oe(Vt, [["__scopeId", "data-v-0ab77a2c"]]), _o = {
|
|
917
917
|
formItems: {
|
|
918
918
|
type: Array,
|
|
919
919
|
default: () => []
|
|
@@ -931,83 +931,83 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
931
931
|
type: Boolean,
|
|
932
932
|
default: !0
|
|
933
933
|
}
|
|
934
|
-
},
|
|
935
|
-
const { formRef:
|
|
936
|
-
let m = null, p = null,
|
|
937
|
-
const
|
|
938
|
-
|
|
934
|
+
}, Ut = le(Et), Yt = (e = {}) => {
|
|
935
|
+
const { formRef: f, offsetBottom: u = 50, minHeight: s = 300 } = e, F = O(0);
|
|
936
|
+
let m = null, p = null, r = null, a = null, h = null;
|
|
937
|
+
const b = () => {
|
|
938
|
+
h && clearTimeout(h), h = setTimeout(() => {
|
|
939
939
|
requestAnimationFrame(() => {
|
|
940
940
|
he(() => {
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
943
|
-
const
|
|
944
|
-
let
|
|
945
|
-
|
|
941
|
+
const P = document.querySelector(".ant-table"), z = document.querySelector(".ant-pagination");
|
|
942
|
+
if (P) {
|
|
943
|
+
const T = P.getBoundingClientRect().top, _ = window.innerHeight, l = (z ? z.offsetHeight + 20 : 40) + u;
|
|
944
|
+
let d = _ - T - l;
|
|
945
|
+
d < s && (d = s), F.value = d;
|
|
946
946
|
}
|
|
947
947
|
});
|
|
948
948
|
});
|
|
949
949
|
}, 100);
|
|
950
|
-
},
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
const
|
|
954
|
-
|
|
950
|
+
}, D = () => {
|
|
951
|
+
const P = document.querySelector(".ant-pagination");
|
|
952
|
+
if (P) {
|
|
953
|
+
const z = new MutationObserver(() => {
|
|
954
|
+
b();
|
|
955
955
|
});
|
|
956
|
-
return
|
|
956
|
+
return z.observe(P, {
|
|
957
957
|
childList: !0,
|
|
958
958
|
subtree: !0,
|
|
959
959
|
attributes: !0,
|
|
960
960
|
attributeFilter: ["style", "class"]
|
|
961
|
-
}),
|
|
961
|
+
}), z;
|
|
962
962
|
}
|
|
963
963
|
return null;
|
|
964
|
-
},
|
|
965
|
-
const
|
|
966
|
-
|
|
967
|
-
document.querySelectorAll(".ant-tooltip").forEach((
|
|
968
|
-
|
|
969
|
-
}),
|
|
970
|
-
}), m.observe(
|
|
971
|
-
},
|
|
972
|
-
const
|
|
973
|
-
|
|
964
|
+
}, H = () => {
|
|
965
|
+
const P = document.querySelector(".hb-lib-list-page-form-box");
|
|
966
|
+
P && (m = new ResizeObserver(() => {
|
|
967
|
+
document.querySelectorAll(".ant-tooltip").forEach((T) => {
|
|
968
|
+
T.style.display = "none";
|
|
969
|
+
}), b();
|
|
970
|
+
}), m.observe(P));
|
|
971
|
+
}, Q = () => {
|
|
972
|
+
const P = document.querySelector(".hb-lib-list-page-form-box");
|
|
973
|
+
P && (r = new MutationObserver(() => {
|
|
974
974
|
setTimeout(() => {
|
|
975
|
-
|
|
975
|
+
b();
|
|
976
976
|
}, 100);
|
|
977
|
-
}),
|
|
977
|
+
}), r.observe(P, {
|
|
978
978
|
childList: !0,
|
|
979
979
|
subtree: !0,
|
|
980
980
|
attributes: !0,
|
|
981
981
|
attributeFilter: ["style", "class"]
|
|
982
982
|
}));
|
|
983
|
-
}, S = () => {
|
|
984
|
-
l && clearTimeout(l), l = setTimeout(() => {
|
|
985
|
-
r();
|
|
986
|
-
}, 100);
|
|
987
983
|
}, x = () => {
|
|
988
|
-
|
|
989
|
-
|
|
984
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
985
|
+
b();
|
|
986
|
+
}, 100);
|
|
987
|
+
}, $ = () => {
|
|
988
|
+
window.addEventListener("resize", x), he(() => {
|
|
989
|
+
H(), Q(), p = D();
|
|
990
990
|
});
|
|
991
|
-
},
|
|
992
|
-
window.removeEventListener("resize",
|
|
991
|
+
}, E = () => {
|
|
992
|
+
window.removeEventListener("resize", x), m && m.disconnect(), r && r.disconnect(), p && p.disconnect(), a && clearTimeout(a), h && clearTimeout(h);
|
|
993
993
|
};
|
|
994
|
-
return
|
|
995
|
-
() =>
|
|
994
|
+
return f && ce(
|
|
995
|
+
() => f,
|
|
996
996
|
() => {
|
|
997
997
|
setTimeout(() => {
|
|
998
|
-
|
|
998
|
+
b();
|
|
999
999
|
}, 200);
|
|
1000
1000
|
},
|
|
1001
1001
|
{ deep: !0 }
|
|
1002
|
-
),
|
|
1003
|
-
|
|
1004
|
-
}),
|
|
1005
|
-
|
|
1002
|
+
), Fe(() => {
|
|
1003
|
+
b(), $();
|
|
1004
|
+
}), tt(() => {
|
|
1005
|
+
E();
|
|
1006
1006
|
}), {
|
|
1007
|
-
tableHeight:
|
|
1008
|
-
calTableHeight:
|
|
1007
|
+
tableHeight: F,
|
|
1008
|
+
calTableHeight: b
|
|
1009
1009
|
};
|
|
1010
|
-
},
|
|
1010
|
+
}, qt = /* @__PURE__ */ te({
|
|
1011
1011
|
name: "HbLibListPageContainer",
|
|
1012
1012
|
__name: "HbListPageContainer",
|
|
1013
1013
|
props: {
|
|
@@ -1017,18 +1017,18 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1017
1017
|
minHeight: {}
|
|
1018
1018
|
},
|
|
1019
1019
|
setup(e) {
|
|
1020
|
-
const
|
|
1021
|
-
offsetBottom:
|
|
1020
|
+
const f = e, u = lt("PageContainerRef"), { calTableHeight: s, tableHeight: F } = Yt({
|
|
1021
|
+
offsetBottom: f.offsetBottom || 20,
|
|
1022
1022
|
// 底部预留空间
|
|
1023
|
-
minHeight:
|
|
1023
|
+
minHeight: f.minHeight || 300
|
|
1024
1024
|
// table最小高度 请勿随便修改!!
|
|
1025
|
-
}), m =
|
|
1026
|
-
return
|
|
1025
|
+
}), m = K(() => F.value);
|
|
1026
|
+
return ot("HB_LIST_PAGE_CONTAINER", {
|
|
1027
1027
|
PageContainerRef: u,
|
|
1028
1028
|
// 通过函数访问,
|
|
1029
|
-
tableHeight:
|
|
1030
|
-
calTableHeight:
|
|
1031
|
-
}), (p,
|
|
1029
|
+
tableHeight: F,
|
|
1030
|
+
calTableHeight: s
|
|
1031
|
+
}), (p, r) => (o(), k("section", {
|
|
1032
1032
|
class: "hb-lib-list-page-container",
|
|
1033
1033
|
ref_key: "PageContainerRef",
|
|
1034
1034
|
ref: u
|
|
@@ -1036,7 +1036,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1036
1036
|
Z(p.$slots, "header"),
|
|
1037
1037
|
v("section", {
|
|
1038
1038
|
class: "list-page-box",
|
|
1039
|
-
style:
|
|
1039
|
+
style: me({
|
|
1040
1040
|
"--hb-list-table-height": m.value - 20 + "px",
|
|
1041
1041
|
"--hb-list-ttable-height": e.tabelData.length ? "" : m.value - 20 + "px"
|
|
1042
1042
|
})
|
|
@@ -1045,7 +1045,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1045
1045
|
], 4)
|
|
1046
1046
|
], 512));
|
|
1047
1047
|
}
|
|
1048
|
-
}),
|
|
1048
|
+
}), So = {
|
|
1049
1049
|
tableHeight: {
|
|
1050
1050
|
type: Number,
|
|
1051
1051
|
default: 400
|
|
@@ -1060,22 +1060,22 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1060
1060
|
minHeight: {
|
|
1061
1061
|
type: Number
|
|
1062
1062
|
}
|
|
1063
|
-
},
|
|
1063
|
+
}, jt = le(qt), Kt = { style: { "font-weight": "500" } }, Wt = {
|
|
1064
1064
|
key: 0,
|
|
1065
1065
|
class: "hb-lib-search-tag__description"
|
|
1066
|
-
},
|
|
1066
|
+
}, 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
1067
|
key: 0,
|
|
1068
1068
|
class: "hb-lib-selector-empty"
|
|
1069
|
-
},
|
|
1069
|
+
}, ll = {
|
|
1070
1070
|
key: 1,
|
|
1071
1071
|
class: "hb-lib-selector-footer"
|
|
1072
|
-
},
|
|
1072
|
+
}, ol = { class: "hb-lib-footer-buttons" }, al = {
|
|
1073
1073
|
key: 2,
|
|
1074
1074
|
class: "hb-lib-selector-footer"
|
|
1075
|
-
},
|
|
1075
|
+
}, nl = { class: "hb-lib-footer-buttons" }, sl = /* @__PURE__ */ te({
|
|
1076
1076
|
name: "HbLibListMultiSelect",
|
|
1077
1077
|
__name: "HbListMultiSelect",
|
|
1078
|
-
props: /* @__PURE__ */
|
|
1078
|
+
props: /* @__PURE__ */ Me({
|
|
1079
1079
|
title: { default: "请选择" },
|
|
1080
1080
|
placeholder: { default: "点击选择" },
|
|
1081
1081
|
searchPlaceholder: { default: "搜索选项" },
|
|
@@ -1092,71 +1092,71 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1092
1092
|
value: {},
|
|
1093
1093
|
valueModifiers: {}
|
|
1094
1094
|
}),
|
|
1095
|
-
emits: /* @__PURE__ */
|
|
1096
|
-
setup(e, { emit:
|
|
1097
|
-
const u = e,
|
|
1095
|
+
emits: /* @__PURE__ */ Me(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1096
|
+
setup(e, { emit: f }) {
|
|
1097
|
+
const u = e, s = f, F = at(e, "value"), m = O(!1), p = O(""), r = O([]), a = O(), h = K(() => {
|
|
1098
1098
|
if (u.remoteSearch || !p.value) return u.options;
|
|
1099
1099
|
const t = p.value.toLowerCase();
|
|
1100
|
-
return u.options.filter((
|
|
1101
|
-
}),
|
|
1102
|
-
if (
|
|
1103
|
-
const t =
|
|
1104
|
-
return t > 0 && t <
|
|
1100
|
+
return u.options.filter((l) => l.label.toLowerCase().includes(t) || l.description?.toLowerCase().includes(t));
|
|
1101
|
+
}), 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(() => {
|
|
1102
|
+
if (h.value.length === 0) return !1;
|
|
1103
|
+
const t = h.value.filter((l) => r.value.includes(l.value)).length;
|
|
1104
|
+
return t > 0 && t < h.value.length;
|
|
1105
1105
|
});
|
|
1106
|
-
|
|
1107
|
-
() =>
|
|
1106
|
+
ce(
|
|
1107
|
+
() => F.value,
|
|
1108
1108
|
(t) => {
|
|
1109
|
-
t ?
|
|
1109
|
+
t ? r.value = Array.isArray(t) ? [...t] : [t] : r.value = [];
|
|
1110
1110
|
},
|
|
1111
1111
|
{ immediate: !0 }
|
|
1112
|
-
),
|
|
1112
|
+
), ce(
|
|
1113
1113
|
() => u.searchValue,
|
|
1114
1114
|
(t) => {
|
|
1115
1115
|
u.remoteSearch && t !== void 0 && (p.value = t);
|
|
1116
1116
|
},
|
|
1117
1117
|
{ immediate: !0 }
|
|
1118
1118
|
);
|
|
1119
|
-
const
|
|
1120
|
-
t && (m.value = t,
|
|
1121
|
-
if (
|
|
1122
|
-
const
|
|
1123
|
-
|
|
1119
|
+
const Q = (t) => {
|
|
1120
|
+
t && (m.value = t, x.value = [...r.value], p.value = "", setTimeout(() => {
|
|
1121
|
+
if (a.value) {
|
|
1122
|
+
const l = a.value.input || a.value.$el?.querySelector("input");
|
|
1123
|
+
l && l.focus();
|
|
1124
1124
|
}
|
|
1125
1125
|
}, 100));
|
|
1126
|
-
},
|
|
1127
|
-
|
|
1128
|
-
},
|
|
1129
|
-
const t = u.multiple ?
|
|
1130
|
-
|
|
1131
|
-
},
|
|
1132
|
-
const
|
|
1133
|
-
u.remoteSearch && (
|
|
1134
|
-
}, 300),
|
|
1126
|
+
}, x = O([]), $ = () => {
|
|
1127
|
+
r.value = [...x.value], m.value = !1, s("cancel");
|
|
1128
|
+
}, E = O([]), P = () => {
|
|
1129
|
+
const t = u.multiple ? r.value : r.value[0] || "", l = u.options.filter((d) => r.value.includes(d.value));
|
|
1130
|
+
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;
|
|
1131
|
+
}, z = gt((t) => {
|
|
1132
|
+
const l = t !== void 0 ? t : p.value;
|
|
1133
|
+
u.remoteSearch && (s("search", l), s("update:searchValue", l));
|
|
1134
|
+
}, 300), T = (t) => {
|
|
1135
1135
|
if (u.multiple) {
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1136
|
+
const l = new Set(r.value);
|
|
1137
|
+
l.has(t.value) ? l.delete(t.value) : l.add(t.value), r.value = Array.from(l);
|
|
1138
1138
|
} else
|
|
1139
|
-
|
|
1140
|
-
},
|
|
1139
|
+
r.value = [t.value], P();
|
|
1140
|
+
}, _ = (t) => {
|
|
1141
1141
|
if (t.target.checked) {
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}),
|
|
1142
|
+
const d = new Set(r.value);
|
|
1143
|
+
h.value.forEach((y) => {
|
|
1144
|
+
d.add(y.value);
|
|
1145
|
+
}), r.value = Array.from(d);
|
|
1146
1146
|
} else {
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1147
|
+
const d = new Set(h.value.map((y) => y.value));
|
|
1148
|
+
r.value = r.value.filter((y) => !d.has(y));
|
|
1149
1149
|
}
|
|
1150
1150
|
};
|
|
1151
|
-
return (t,
|
|
1152
|
-
const
|
|
1153
|
-
return o(), k("div",
|
|
1151
|
+
return (t, l) => {
|
|
1152
|
+
const d = q("a-tag"), y = q("a-input"), i = q("a-checkbox"), U = q("a-radio"), N = q("a-button"), ee = q("a-select");
|
|
1153
|
+
return o(), k("div", X({
|
|
1154
1154
|
class: "hb-lib-selector-wrapper",
|
|
1155
|
-
style: { "--prefix-width":
|
|
1155
|
+
style: { "--prefix-width": b.value }
|
|
1156
1156
|
}, t.$attrs), [
|
|
1157
|
-
|
|
1158
|
-
value:
|
|
1159
|
-
"onUpdate:value":
|
|
1157
|
+
S(ee, {
|
|
1158
|
+
value: F.value,
|
|
1159
|
+
"onUpdate:value": l[5] || (l[5] = (J) => F.value = J),
|
|
1160
1160
|
mode: e.multiple ? "multiple" : void 0,
|
|
1161
1161
|
placeholder: e.placeholder,
|
|
1162
1162
|
"show-search": !0,
|
|
@@ -1164,110 +1164,110 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1164
1164
|
open: m.value,
|
|
1165
1165
|
allowClear: "",
|
|
1166
1166
|
maxTagCount: e.maxTagCount,
|
|
1167
|
-
options:
|
|
1168
|
-
onDropdownVisibleChange:
|
|
1169
|
-
onSearch:
|
|
1167
|
+
options: h.value,
|
|
1168
|
+
onDropdownVisibleChange: Q,
|
|
1169
|
+
onSearch: n(z),
|
|
1170
1170
|
"max-tag-text-length": e.tagTextLength,
|
|
1171
|
-
class:
|
|
1171
|
+
class: V({ "has-prefix": e.prefix }),
|
|
1172
1172
|
"data-prefix": e.prefix,
|
|
1173
1173
|
style: { width: "100%" }
|
|
1174
1174
|
}, {
|
|
1175
|
-
tagRender:
|
|
1176
|
-
|
|
1175
|
+
tagRender: c(({ value: J, label: j, closable: C, option: A }) => [
|
|
1176
|
+
S(d, {
|
|
1177
1177
|
class: "hb-lib-search-tag",
|
|
1178
|
-
onClick:
|
|
1178
|
+
onClick: l[0] || (l[0] = () => Q(!0))
|
|
1179
1179
|
}, {
|
|
1180
|
-
default:
|
|
1181
|
-
v("span",
|
|
1182
|
-
|
|
1180
|
+
default: c(() => [
|
|
1181
|
+
v("span", Kt, L(j), 1),
|
|
1182
|
+
A?.description ? (o(), k("span", Wt, " (" + L(A.description) + ") ", 1)) : R("", !0)
|
|
1183
1183
|
]),
|
|
1184
1184
|
_: 2
|
|
1185
1185
|
}, 1024)
|
|
1186
1186
|
]),
|
|
1187
|
-
dropdownRender:
|
|
1188
|
-
v("div",
|
|
1189
|
-
v("div",
|
|
1190
|
-
|
|
1187
|
+
dropdownRender: c(({ menuNode: J }) => [
|
|
1188
|
+
v("div", Jt, [
|
|
1189
|
+
v("div", Gt, [
|
|
1190
|
+
S(y, {
|
|
1191
1191
|
ref_key: "searchInputRef",
|
|
1192
|
-
ref:
|
|
1192
|
+
ref: a,
|
|
1193
1193
|
class: "hb-lib-selector-search-input",
|
|
1194
1194
|
value: p.value,
|
|
1195
|
-
"onUpdate:value":
|
|
1195
|
+
"onUpdate:value": l[1] || (l[1] = (j) => p.value = j),
|
|
1196
1196
|
placeholder: "请输入关键词搜索",
|
|
1197
1197
|
"allow-clear": "",
|
|
1198
|
-
onInput:
|
|
1198
|
+
onInput: l[2] || (l[2] = (j) => n(z)(j.target.value))
|
|
1199
1199
|
}, {
|
|
1200
|
-
prefix:
|
|
1201
|
-
|
|
1200
|
+
prefix: c(() => [
|
|
1201
|
+
S(n(xe))
|
|
1202
1202
|
]),
|
|
1203
1203
|
_: 1
|
|
1204
1204
|
}, 8, ["value"])
|
|
1205
1205
|
]),
|
|
1206
|
-
v("div",
|
|
1207
|
-
(o(!0), k(
|
|
1208
|
-
key:
|
|
1209
|
-
class:
|
|
1210
|
-
onClick: () =>
|
|
1206
|
+
v("div", Qt, [
|
|
1207
|
+
(o(!0), k(W, null, ne(h.value, (j) => (o(), k("div", {
|
|
1208
|
+
key: j.value,
|
|
1209
|
+
class: V(["hb-lib-selector-option", { selected: r.value.includes(j.value) }]),
|
|
1210
|
+
onClick: () => T(j)
|
|
1211
1211
|
}, [
|
|
1212
|
-
e.multiple ? (o(), B(
|
|
1212
|
+
e.multiple ? (o(), B(i, {
|
|
1213
1213
|
key: 0,
|
|
1214
|
-
checked:
|
|
1215
|
-
onChange: () =>
|
|
1216
|
-
onClick:
|
|
1214
|
+
checked: r.value.includes(j.value),
|
|
1215
|
+
onChange: () => T(j),
|
|
1216
|
+
onClick: l[3] || (l[3] = ke(() => {
|
|
1217
1217
|
}, ["stop"]))
|
|
1218
|
-
}, null, 8, ["checked", "onChange"])) : (o(), B(
|
|
1218
|
+
}, null, 8, ["checked", "onChange"])) : (o(), B(U, {
|
|
1219
1219
|
key: 1,
|
|
1220
|
-
checked:
|
|
1221
|
-
onChange: () =>
|
|
1222
|
-
onClick:
|
|
1220
|
+
checked: r.value.includes(j.value),
|
|
1221
|
+
onChange: () => T(j),
|
|
1222
|
+
onClick: l[4] || (l[4] = ke(() => {
|
|
1223
1223
|
}, ["stop"]))
|
|
1224
1224
|
}, null, 8, ["checked", "onChange"])),
|
|
1225
|
-
v("div",
|
|
1226
|
-
v("div",
|
|
1225
|
+
v("div", Xt, [
|
|
1226
|
+
v("div", el, L(j.label), 1)
|
|
1227
1227
|
])
|
|
1228
|
-
], 10,
|
|
1228
|
+
], 10, Zt))), 128))
|
|
1229
1229
|
]),
|
|
1230
|
-
|
|
1231
|
-
e.multiple ? (o(), k("div",
|
|
1232
|
-
|
|
1233
|
-
checked:
|
|
1234
|
-
indeterminate:
|
|
1235
|
-
onChange:
|
|
1230
|
+
h.value.length === 0 ? (o(), k("div", tl, L(t.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : R("", !0),
|
|
1231
|
+
e.multiple ? (o(), k("div", ll, [
|
|
1232
|
+
S(i, {
|
|
1233
|
+
checked: D.value,
|
|
1234
|
+
indeterminate: H.value,
|
|
1235
|
+
onChange: _
|
|
1236
1236
|
}, {
|
|
1237
|
-
default:
|
|
1237
|
+
default: c(() => [
|
|
1238
1238
|
I(L(t.$t("hbLibComp.hbFormSelectFilter.allSelect")), 1)
|
|
1239
1239
|
]),
|
|
1240
1240
|
_: 1
|
|
1241
1241
|
}, 8, ["checked", "indeterminate"]),
|
|
1242
|
-
v("div",
|
|
1243
|
-
|
|
1242
|
+
v("div", ol, [
|
|
1243
|
+
S(N, {
|
|
1244
1244
|
size: "small",
|
|
1245
|
-
onClick:
|
|
1245
|
+
onClick: $
|
|
1246
1246
|
}, {
|
|
1247
|
-
default:
|
|
1247
|
+
default: c(() => [
|
|
1248
1248
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1249
1249
|
]),
|
|
1250
1250
|
_: 1
|
|
1251
1251
|
}),
|
|
1252
|
-
|
|
1252
|
+
S(N, {
|
|
1253
1253
|
type: "primary",
|
|
1254
1254
|
size: "small",
|
|
1255
|
-
onClick:
|
|
1255
|
+
onClick: P
|
|
1256
1256
|
}, {
|
|
1257
|
-
default:
|
|
1257
|
+
default: c(() => [
|
|
1258
1258
|
I(L(t.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1259
1259
|
]),
|
|
1260
1260
|
_: 1
|
|
1261
1261
|
})
|
|
1262
1262
|
])
|
|
1263
|
-
])) : (o(), k("div",
|
|
1264
|
-
|
|
1265
|
-
v("div",
|
|
1266
|
-
|
|
1263
|
+
])) : (o(), k("div", al, [
|
|
1264
|
+
l[6] || (l[6] = v("div", null, null, -1)),
|
|
1265
|
+
v("div", nl, [
|
|
1266
|
+
S(N, {
|
|
1267
1267
|
size: "small",
|
|
1268
|
-
onClick:
|
|
1268
|
+
onClick: $
|
|
1269
1269
|
}, {
|
|
1270
|
-
default:
|
|
1270
|
+
default: c(() => [
|
|
1271
1271
|
I(L(t.$t("hbLibComp.hbFormSelectFilter.close")), 1)
|
|
1272
1272
|
]),
|
|
1273
1273
|
_: 1
|
|
@@ -1281,11 +1281,7 @@ const _t = "hb-", fe = (e = "") => {
|
|
|
1281
1281
|
], 16);
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
}),
|
|
1285
|
-
Fe.install = function(e) {
|
|
1286
|
-
return e.component("HbFormSelectFilter", Fe), e;
|
|
1287
|
-
};
|
|
1288
|
-
const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-lib-form-item-filter-modal-buttons" }, gl = { key: 0 }, yl = /* @__PURE__ */ X({
|
|
1284
|
+
}), 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
1285
|
name: "HbLibMutilpleSelectModal",
|
|
1290
1286
|
__name: "HbMutilpleSelectModal",
|
|
1291
1287
|
props: {
|
|
@@ -1298,145 +1294,145 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1298
1294
|
labelKey: { default: "label" }
|
|
1299
1295
|
},
|
|
1300
1296
|
emits: ["handleConfirm", "handleCancel"],
|
|
1301
|
-
setup(e, { expose:
|
|
1302
|
-
const
|
|
1297
|
+
setup(e, { expose: f, emit: u }) {
|
|
1298
|
+
const s = e, F = u, m = O(!1), p = O(""), r = O(), a = O(), h = O([]), b = O([]), D = O(), H = Je({
|
|
1303
1299
|
searchText: "",
|
|
1304
1300
|
searchedColumn: ""
|
|
1305
|
-
}),
|
|
1301
|
+
}), 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
1302
|
y && setTimeout(() => {
|
|
1307
|
-
|
|
1303
|
+
r.value?.focus();
|
|
1308
1304
|
}, 100);
|
|
1309
|
-
}), { ...
|
|
1310
|
-
let
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
}), p.value =
|
|
1314
|
-
}, U = () => {
|
|
1315
|
-
m.value = !1;
|
|
1305
|
+
}), { ...d }))), $ = () => {
|
|
1306
|
+
let d = "";
|
|
1307
|
+
b.value.forEach((y) => {
|
|
1308
|
+
d = d + y[s.labelKey] + ",";
|
|
1309
|
+
}), p.value = d.substring(0, d.length - 1), m.value = !1, F("handleConfirm", b.value);
|
|
1316
1310
|
}, E = () => {
|
|
1311
|
+
m.value = !1;
|
|
1312
|
+
}, P = () => {
|
|
1317
1313
|
m.value = !0, he(() => {
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1314
|
+
const d = D.value?.$el?.querySelector(".ant-table-body");
|
|
1315
|
+
d && (d.scrollTop = 0);
|
|
1320
1316
|
});
|
|
1321
|
-
},
|
|
1322
|
-
|
|
1323
|
-
},
|
|
1324
|
-
p.value = "",
|
|
1325
|
-
},
|
|
1326
|
-
y(),
|
|
1327
|
-
}, t = (
|
|
1328
|
-
|
|
1329
|
-
},
|
|
1330
|
-
|
|
1317
|
+
}, z = () => {
|
|
1318
|
+
h.value = [], b.value = [];
|
|
1319
|
+
}, T = () => {
|
|
1320
|
+
p.value = "", z();
|
|
1321
|
+
}, _ = (d, y, i) => {
|
|
1322
|
+
y(), H.searchText = d[0], H.searchedColumn = i;
|
|
1323
|
+
}, t = (d, y) => {
|
|
1324
|
+
d({ confirm: !0 }), H.searchText = "", y();
|
|
1325
|
+
}, l = (d, y) => {
|
|
1326
|
+
h.value = d, b.value = y;
|
|
1331
1327
|
};
|
|
1332
|
-
return
|
|
1333
|
-
resetInputVal:
|
|
1334
|
-
}), (
|
|
1335
|
-
const
|
|
1328
|
+
return f({
|
|
1329
|
+
resetInputVal: T
|
|
1330
|
+
}), (d, y) => {
|
|
1331
|
+
const i = q("a-input"), U = q("a-button"), N = q("a-table"), ee = q("a-modal");
|
|
1336
1332
|
return o(), k("div", {
|
|
1337
1333
|
class: "hb-lib-multipleSelectModal-box",
|
|
1338
1334
|
ref_key: "hbMultipSelectModalRef",
|
|
1339
|
-
ref:
|
|
1335
|
+
ref: a
|
|
1340
1336
|
}, [
|
|
1341
|
-
|
|
1337
|
+
S(i, {
|
|
1342
1338
|
readonly: "",
|
|
1343
|
-
onClick:
|
|
1339
|
+
onClick: P,
|
|
1344
1340
|
value: p.value,
|
|
1345
|
-
"onUpdate:value": y[0] || (y[0] = (
|
|
1346
|
-
placeholder:
|
|
1341
|
+
"onUpdate:value": y[0] || (y[0] = (J) => p.value = J),
|
|
1342
|
+
placeholder: d.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1347
1343
|
}, {
|
|
1348
|
-
addonAfter:
|
|
1349
|
-
|
|
1344
|
+
addonAfter: c(() => [
|
|
1345
|
+
S(n(bt), { onClick: P })
|
|
1350
1346
|
]),
|
|
1351
1347
|
_: 1
|
|
1352
1348
|
}, 8, ["value", "placeholder"]),
|
|
1353
|
-
|
|
1349
|
+
S(ee, {
|
|
1354
1350
|
visible: m.value,
|
|
1355
|
-
"onUpdate:visible": y[1] || (y[1] = (
|
|
1351
|
+
"onUpdate:visible": y[1] || (y[1] = (J) => m.value = J),
|
|
1356
1352
|
title: e.modelTitle,
|
|
1357
1353
|
width: e.modalWidth,
|
|
1358
1354
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1359
1355
|
}, {
|
|
1360
|
-
footer:
|
|
1361
|
-
|
|
1362
|
-
default:
|
|
1363
|
-
I(L(
|
|
1356
|
+
footer: c(() => [
|
|
1357
|
+
S(U, { onClick: z }, {
|
|
1358
|
+
default: c(() => [
|
|
1359
|
+
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1364
1360
|
]),
|
|
1365
1361
|
_: 1
|
|
1366
1362
|
}),
|
|
1367
|
-
|
|
1368
|
-
default:
|
|
1369
|
-
I(L(
|
|
1363
|
+
S(U, { onClick: E }, {
|
|
1364
|
+
default: c(() => [
|
|
1365
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1370
1366
|
]),
|
|
1371
1367
|
_: 1
|
|
1372
1368
|
}),
|
|
1373
|
-
|
|
1369
|
+
S(U, {
|
|
1374
1370
|
type: "primary",
|
|
1375
|
-
onClick:
|
|
1371
|
+
onClick: $
|
|
1376
1372
|
}, {
|
|
1377
|
-
default:
|
|
1378
|
-
I(L(
|
|
1373
|
+
default: c(() => [
|
|
1374
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1379
1375
|
]),
|
|
1380
1376
|
_: 1
|
|
1381
1377
|
})
|
|
1382
1378
|
]),
|
|
1383
|
-
default:
|
|
1384
|
-
|
|
1379
|
+
default: c(() => [
|
|
1380
|
+
S(N, {
|
|
1385
1381
|
ref_key: "tableRef",
|
|
1386
|
-
ref:
|
|
1387
|
-
columns:
|
|
1388
|
-
dataSource:
|
|
1389
|
-
rowSelection: { selectedRowKeys:
|
|
1390
|
-
rowKey: (
|
|
1382
|
+
ref: D,
|
|
1383
|
+
columns: x.value,
|
|
1384
|
+
dataSource: Q.value,
|
|
1385
|
+
rowSelection: { selectedRowKeys: h.value, onChange: l },
|
|
1386
|
+
rowKey: (J) => J[e.tableKey],
|
|
1391
1387
|
scroll: { y: e.tableHeight }
|
|
1392
1388
|
}, {
|
|
1393
|
-
customFilterDropdown:
|
|
1394
|
-
v("div",
|
|
1395
|
-
|
|
1389
|
+
customFilterDropdown: c(({ setSelectedKeys: J, selectedKeys: j, confirm: C, clearFilters: A, column: g }) => [
|
|
1390
|
+
v("div", cl, [
|
|
1391
|
+
S(i, {
|
|
1396
1392
|
ref_key: "searchInput",
|
|
1397
|
-
ref:
|
|
1393
|
+
ref: r,
|
|
1398
1394
|
placeholder: `请输入${g.title}`,
|
|
1399
|
-
value:
|
|
1395
|
+
value: j[0],
|
|
1400
1396
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
1401
|
-
onChange: (Y) =>
|
|
1402
|
-
onPressEnter: (Y) =>
|
|
1397
|
+
onChange: (Y) => J(Y.target.value ? [Y.target.value] : []),
|
|
1398
|
+
onPressEnter: (Y) => _(j, C, g.dataIndex)
|
|
1403
1399
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1404
|
-
v("section",
|
|
1405
|
-
|
|
1400
|
+
v("section", dl, [
|
|
1401
|
+
S(U, {
|
|
1406
1402
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1407
1403
|
type: "ghost",
|
|
1408
|
-
onClick: (Y) => t(
|
|
1404
|
+
onClick: (Y) => t(A, C)
|
|
1409
1405
|
}, {
|
|
1410
|
-
default:
|
|
1411
|
-
I(L(
|
|
1406
|
+
default: c(() => [
|
|
1407
|
+
I(L(d.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1412
1408
|
]),
|
|
1413
1409
|
_: 1
|
|
1414
1410
|
}, 8, ["onClick"]),
|
|
1415
|
-
|
|
1411
|
+
S(U, {
|
|
1416
1412
|
type: "primary",
|
|
1417
1413
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1418
|
-
onClick: (Y) =>
|
|
1414
|
+
onClick: (Y) => _(j, C, g.dataIndex)
|
|
1419
1415
|
}, {
|
|
1420
|
-
default:
|
|
1421
|
-
I(L(
|
|
1416
|
+
default: c(() => [
|
|
1417
|
+
I(L(d.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
1422
1418
|
]),
|
|
1423
1419
|
_: 1
|
|
1424
1420
|
}, 8, ["onClick"])
|
|
1425
1421
|
])
|
|
1426
1422
|
])
|
|
1427
1423
|
]),
|
|
1428
|
-
customFilterIcon:
|
|
1429
|
-
|
|
1430
|
-
style:
|
|
1424
|
+
customFilterIcon: c(({ filtered: J }) => [
|
|
1425
|
+
S(n(xe), {
|
|
1426
|
+
style: me({ color: J ? "#108ee9" : void 0 })
|
|
1431
1427
|
}, null, 8, ["style"])
|
|
1432
1428
|
]),
|
|
1433
|
-
bodyCell:
|
|
1434
|
-
|
|
1435
|
-
(o(!0), k(
|
|
1436
|
-
C.toLowerCase() ===
|
|
1437
|
-
key:
|
|
1429
|
+
bodyCell: c(({ text: J, column: j }) => [
|
|
1430
|
+
H.searchText && H.searchedColumn === j.dataIndex ? (o(), k("span", ul, [
|
|
1431
|
+
(o(!0), k(W, null, ne(J.toString().split(new RegExp(`(?<=${H.searchText})|(?=${H.searchText})`, "i")), (C, A) => (o(), k(W, null, [
|
|
1432
|
+
C.toLowerCase() === H.searchText.toLowerCase() ? (o(), k("mark", {
|
|
1433
|
+
key: A,
|
|
1438
1434
|
class: "highlight"
|
|
1439
|
-
}, L(C), 1)) : (o(), k(
|
|
1435
|
+
}, L(C), 1)) : (o(), k(W, { key: 1 }, [
|
|
1440
1436
|
I(L(C), 1)
|
|
1441
1437
|
], 64))
|
|
1442
1438
|
], 64))), 256))
|
|
@@ -1450,7 +1446,7 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1450
1446
|
], 512);
|
|
1451
1447
|
};
|
|
1452
1448
|
}
|
|
1453
|
-
}),
|
|
1449
|
+
}), wo = {
|
|
1454
1450
|
modelTitle: {
|
|
1455
1451
|
type: String,
|
|
1456
1452
|
default: "搜索弹窗"
|
|
@@ -1480,13 +1476,13 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1480
1476
|
type: String,
|
|
1481
1477
|
default: "label"
|
|
1482
1478
|
}
|
|
1483
|
-
},
|
|
1479
|
+
}, bl = le(hl), fl = { class: "hb-lib-table-act-box" }, pl = ["onClick"], ml = {
|
|
1484
1480
|
href: "javascript:;",
|
|
1485
1481
|
class: "hb-lib-table-main-action"
|
|
1486
|
-
},
|
|
1482
|
+
}, vl = ["onClick"], gl = {
|
|
1487
1483
|
href: "javascript:;",
|
|
1488
1484
|
class: "hb-lib-table-more-action"
|
|
1489
|
-
},
|
|
1485
|
+
}, yl = ["onClick"], Cl = { href: "javascript:;" }, Ll = ["onClick"], kl = { class: "hb-lib-table-confirm-modal-content" }, _l = /* @__PURE__ */ te({
|
|
1490
1486
|
name: "HbLibTableAct",
|
|
1491
1487
|
__name: "HbTableAct",
|
|
1492
1488
|
props: {
|
|
@@ -1494,119 +1490,119 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1494
1490
|
record: {},
|
|
1495
1491
|
buttonDisplaysQuantity: {}
|
|
1496
1492
|
},
|
|
1497
|
-
setup(e, { expose:
|
|
1498
|
-
const u = e, { t:
|
|
1499
|
-
|
|
1500
|
-
},
|
|
1501
|
-
p.value =
|
|
1502
|
-
},
|
|
1493
|
+
setup(e, { expose: f }) {
|
|
1494
|
+
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 = ($) => {
|
|
1495
|
+
$.handler && $.handler(u.record);
|
|
1496
|
+
}, D = ($) => {
|
|
1497
|
+
p.value = $, F.value = !0;
|
|
1498
|
+
}, H = () => {
|
|
1503
1499
|
if (p.value) {
|
|
1504
1500
|
m.value = !0;
|
|
1505
1501
|
try {
|
|
1506
|
-
|
|
1502
|
+
b(p.value), m.value = !1, F.value = !1;
|
|
1507
1503
|
} catch {
|
|
1508
1504
|
m.value = !1;
|
|
1509
1505
|
}
|
|
1510
1506
|
}
|
|
1511
|
-
},
|
|
1512
|
-
|
|
1513
|
-
},
|
|
1507
|
+
}, Q = () => {
|
|
1508
|
+
F.value = !1, p.value = null;
|
|
1509
|
+
}, x = K(() => p.value ? {
|
|
1514
1510
|
title: p.value.confirmTitle,
|
|
1515
1511
|
content: p.value.confirmContent || p.value.confirmTitle
|
|
1516
1512
|
} : {
|
|
1517
|
-
title:
|
|
1518
|
-
content:
|
|
1513
|
+
title: s("hbLibComp.hbTableAct.secendConfirm"),
|
|
1514
|
+
content: s("hbLibComp.hbTableAct.confirmContent")
|
|
1519
1515
|
});
|
|
1520
|
-
return
|
|
1521
|
-
ADropdown:
|
|
1522
|
-
AMenu:
|
|
1516
|
+
return f({
|
|
1517
|
+
ADropdown: je,
|
|
1518
|
+
AMenu: qe,
|
|
1523
1519
|
AMenuItem: Ye,
|
|
1524
|
-
APopconfirm:
|
|
1525
|
-
AModal:
|
|
1520
|
+
APopconfirm: Ce,
|
|
1521
|
+
AModal: _e,
|
|
1526
1522
|
DownOutlined: Ie
|
|
1527
|
-
}), (
|
|
1528
|
-
const
|
|
1529
|
-
return o(), k("div",
|
|
1530
|
-
(o(!0), k(
|
|
1531
|
-
|
|
1532
|
-
|
|
1523
|
+
}), ($, E) => {
|
|
1524
|
+
const P = q("a-divider"), z = nt("has");
|
|
1525
|
+
return o(), k("div", fl, [
|
|
1526
|
+
(o(!0), k(W, null, ne(a.value, (T, _) => (o(), k(W, { key: _ }, [
|
|
1527
|
+
T.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1528
|
+
T.confirmType === "modal" ? ie((o(), k("a", {
|
|
1533
1529
|
key: 0,
|
|
1534
1530
|
href: "javascript:;",
|
|
1535
|
-
onClick: (t) =>
|
|
1531
|
+
onClick: (t) => D(T),
|
|
1536
1532
|
class: "hb-lib-table-main-action"
|
|
1537
1533
|
}, [
|
|
1538
|
-
I(L(
|
|
1539
|
-
], 8,
|
|
1540
|
-
[
|
|
1541
|
-
]) : (o(), B(
|
|
1534
|
+
I(L(T.label), 1)
|
|
1535
|
+
], 8, pl)), [
|
|
1536
|
+
[z, T.permissionsTag || null]
|
|
1537
|
+
]) : (o(), B(n(Ce), {
|
|
1542
1538
|
key: 1,
|
|
1543
|
-
title:
|
|
1544
|
-
onConfirm: (t) =>
|
|
1539
|
+
title: T.confirmTitle,
|
|
1540
|
+
onConfirm: (t) => b(T)
|
|
1545
1541
|
}, {
|
|
1546
|
-
default:
|
|
1547
|
-
|
|
1548
|
-
I(L(
|
|
1542
|
+
default: c(() => [
|
|
1543
|
+
ie((o(), k("a", ml, [
|
|
1544
|
+
I(L(T.label), 1)
|
|
1549
1545
|
])), [
|
|
1550
|
-
[
|
|
1546
|
+
[z, T.permissionsTag || null]
|
|
1551
1547
|
])
|
|
1552
1548
|
]),
|
|
1553
1549
|
_: 2
|
|
1554
1550
|
}, 1032, ["title", "onConfirm"]))
|
|
1555
|
-
], 64)) : (o(), k(
|
|
1556
|
-
|
|
1551
|
+
], 64)) : (o(), k(W, { key: 1 }, [
|
|
1552
|
+
ie((o(), k("a", {
|
|
1557
1553
|
href: "javascript:;",
|
|
1558
|
-
onClick: (t) =>
|
|
1554
|
+
onClick: (t) => b(T),
|
|
1559
1555
|
class: "hb-lib-table-main-action"
|
|
1560
1556
|
}, [
|
|
1561
|
-
I(L(
|
|
1562
|
-
], 8,
|
|
1563
|
-
[
|
|
1557
|
+
I(L(T.label), 1)
|
|
1558
|
+
], 8, vl)), [
|
|
1559
|
+
[z, T.permissionsTag || null]
|
|
1564
1560
|
]),
|
|
1565
|
-
|
|
1561
|
+
h.value && h.value.length > 0 || _ !== a.value.length - 1 ? (o(), B(P, {
|
|
1566
1562
|
key: 0,
|
|
1567
1563
|
type: "vertical"
|
|
1568
1564
|
})) : R("", !0)
|
|
1569
1565
|
], 64))
|
|
1570
1566
|
], 64))), 128)),
|
|
1571
|
-
|
|
1572
|
-
overlay:
|
|
1573
|
-
|
|
1574
|
-
default:
|
|
1575
|
-
(o(!0), k(
|
|
1576
|
-
key:
|
|
1567
|
+
h.value && h.value.length > 0 ? (o(), B(n(je), { key: 0 }, {
|
|
1568
|
+
overlay: c(() => [
|
|
1569
|
+
S(n(qe), null, {
|
|
1570
|
+
default: c(() => [
|
|
1571
|
+
(o(!0), k(W, null, ne(h.value, (T) => (o(), B(n(Ye), {
|
|
1572
|
+
key: T.key
|
|
1577
1573
|
}, {
|
|
1578
|
-
default:
|
|
1579
|
-
|
|
1580
|
-
|
|
1574
|
+
default: c(() => [
|
|
1575
|
+
T.needConfirm ? (o(), k(W, { key: 0 }, [
|
|
1576
|
+
T.confirmType === "modal" ? ie((o(), k("a", {
|
|
1581
1577
|
key: 0,
|
|
1582
1578
|
href: "javascript:;",
|
|
1583
|
-
onClick: (
|
|
1579
|
+
onClick: (_) => D(T)
|
|
1584
1580
|
}, [
|
|
1585
|
-
I(L(
|
|
1586
|
-
], 8,
|
|
1587
|
-
[
|
|
1588
|
-
]) : (o(), B(
|
|
1581
|
+
I(L(T.label), 1)
|
|
1582
|
+
], 8, yl)), [
|
|
1583
|
+
[z, T.permissionsTag || null]
|
|
1584
|
+
]) : (o(), B(n(Ce), {
|
|
1589
1585
|
key: 1,
|
|
1590
|
-
title:
|
|
1591
|
-
onConfirm: (
|
|
1586
|
+
title: T.confirmTitle,
|
|
1587
|
+
onConfirm: (_) => b(T)
|
|
1592
1588
|
}, {
|
|
1593
|
-
default:
|
|
1594
|
-
|
|
1595
|
-
I(L(
|
|
1589
|
+
default: c(() => [
|
|
1590
|
+
ie((o(), k("a", Cl, [
|
|
1591
|
+
I(L(T.label), 1)
|
|
1596
1592
|
])), [
|
|
1597
|
-
[
|
|
1593
|
+
[z, T.permissionsTag || null]
|
|
1598
1594
|
])
|
|
1599
1595
|
]),
|
|
1600
1596
|
_: 2
|
|
1601
1597
|
}, 1032, ["title", "onConfirm"]))
|
|
1602
|
-
], 64)) :
|
|
1598
|
+
], 64)) : ie((o(), k("a", {
|
|
1603
1599
|
key: 1,
|
|
1604
1600
|
href: "javascript:;",
|
|
1605
|
-
onClick: (
|
|
1601
|
+
onClick: (_) => b(T)
|
|
1606
1602
|
}, [
|
|
1607
|
-
I(L(
|
|
1608
|
-
], 8,
|
|
1609
|
-
[
|
|
1603
|
+
I(L(T.label), 1)
|
|
1604
|
+
], 8, Ll)), [
|
|
1605
|
+
[z, T.permissionsTag || null]
|
|
1610
1606
|
])
|
|
1611
1607
|
]),
|
|
1612
1608
|
_: 2
|
|
@@ -1615,36 +1611,36 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1615
1611
|
_: 1
|
|
1616
1612
|
})
|
|
1617
1613
|
]),
|
|
1618
|
-
default:
|
|
1619
|
-
v("a",
|
|
1620
|
-
I(L(
|
|
1621
|
-
|
|
1614
|
+
default: c(() => [
|
|
1615
|
+
v("a", gl, [
|
|
1616
|
+
I(L($.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1617
|
+
S(n(Ie), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1622
1618
|
])
|
|
1623
1619
|
]),
|
|
1624
1620
|
_: 1
|
|
1625
1621
|
})) : R("", !0),
|
|
1626
|
-
|
|
1627
|
-
visible:
|
|
1628
|
-
title:
|
|
1622
|
+
S(n(_e), {
|
|
1623
|
+
visible: F.value,
|
|
1624
|
+
title: x.value.title,
|
|
1629
1625
|
"confirm-loading": m.value,
|
|
1630
|
-
onOk:
|
|
1631
|
-
onCancel:
|
|
1626
|
+
onOk: H,
|
|
1627
|
+
onCancel: Q
|
|
1632
1628
|
}, {
|
|
1633
|
-
default:
|
|
1634
|
-
v("p",
|
|
1629
|
+
default: c(() => [
|
|
1630
|
+
v("p", kl, L(x.value.content), 1)
|
|
1635
1631
|
]),
|
|
1636
1632
|
_: 1
|
|
1637
1633
|
}, 8, ["visible", "title", "confirm-loading"])
|
|
1638
1634
|
]);
|
|
1639
1635
|
};
|
|
1640
1636
|
}
|
|
1641
|
-
}),
|
|
1637
|
+
}), Sl = /* @__PURE__ */ oe(_l, [["__scopeId", "data-v-ecac600b"]]), wl = le(Sl), Fl = (e) => ({ tableWidth: K(() => {
|
|
1642
1638
|
const u = Array.isArray(e) ? e : e.value;
|
|
1643
|
-
return !u || u.length === 0 ? 0 : u.map((
|
|
1644
|
-
}) }),
|
|
1639
|
+
return !u || u.length === 0 ? 0 : u.map((s) => s.width && Number(s.width.toString().replace("px", "")) || 0).reduce((s, F) => s + F, 0);
|
|
1640
|
+
}) }), xl = {
|
|
1645
1641
|
key: 0,
|
|
1646
1642
|
class: "hb-lib-list-table-act"
|
|
1647
|
-
},
|
|
1643
|
+
}, Tl = { class: "empty-container" }, $l = /* @__PURE__ */ te({
|
|
1648
1644
|
name: "HbLibListTable",
|
|
1649
1645
|
__name: "HbListTable",
|
|
1650
1646
|
props: {
|
|
@@ -1654,20 +1650,20 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1654
1650
|
defaultWidth: { default: () => 150 }
|
|
1655
1651
|
},
|
|
1656
1652
|
setup(e) {
|
|
1657
|
-
const { t:
|
|
1658
|
-
|
|
1653
|
+
const { t: f } = re(), u = e, s = O([]), F = we("HB_LIST_PAGE_CONTAINER"), { tableWidth: m } = Fl(K(() => u.columns));
|
|
1654
|
+
ce(
|
|
1659
1655
|
() => u.columns,
|
|
1660
|
-
(
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1663
|
-
let
|
|
1664
|
-
if (!
|
|
1665
|
-
|
|
1666
|
-
else if (typeof
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1656
|
+
(a) => {
|
|
1657
|
+
const h = a.filter((b) => b != null && b.checked);
|
|
1658
|
+
s.value = h.map((b) => {
|
|
1659
|
+
let D = { ...b, title: b.title || b.label };
|
|
1660
|
+
if (!D.width)
|
|
1661
|
+
D.width = u.defaultWidth;
|
|
1662
|
+
else if (typeof D.width == "string") {
|
|
1663
|
+
const H = parseInt(D.width, 10);
|
|
1664
|
+
D.width = isNaN(H) ? u.defaultWidth : H;
|
|
1669
1665
|
}
|
|
1670
|
-
return
|
|
1666
|
+
return D.resizable === void 0 && (D.resizable = !0), D;
|
|
1671
1667
|
});
|
|
1672
1668
|
},
|
|
1673
1669
|
{
|
|
@@ -1675,84 +1671,84 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1675
1671
|
deep: !0
|
|
1676
1672
|
}
|
|
1677
1673
|
);
|
|
1678
|
-
const p = (
|
|
1679
|
-
if (
|
|
1680
|
-
const
|
|
1681
|
-
|
|
1674
|
+
const p = (a, h) => {
|
|
1675
|
+
if (h) {
|
|
1676
|
+
const b = typeof a == "string" ? parseInt(a, 10) : a;
|
|
1677
|
+
h.width = isNaN(b) ? 150 : b;
|
|
1682
1678
|
}
|
|
1683
|
-
},
|
|
1684
|
-
return (
|
|
1685
|
-
const
|
|
1679
|
+
}, r = (a, h = "YYYY-MM-DD HH:mm:ss") => a ? Te(a).format(h) : "";
|
|
1680
|
+
return (a, h) => {
|
|
1681
|
+
const b = q("a-empty"), D = q("a-tooltip"), H = q("HbLibCopy"), Q = q("a-table");
|
|
1686
1682
|
return o(), k("div", {
|
|
1687
|
-
class:
|
|
1688
|
-
style:
|
|
1683
|
+
class: V(["hb-lib-list-table", { "nowrap-table": u.rowHeight }]),
|
|
1684
|
+
style: me({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1689
1685
|
}, [
|
|
1690
|
-
|
|
1691
|
-
Z(
|
|
1692
|
-
Z(
|
|
1686
|
+
a.$slots.tableActLeft ? (o(), k("section", xl, [
|
|
1687
|
+
Z(a.$slots, "tableActLeft", {}, void 0, !0),
|
|
1688
|
+
Z(a.$slots, "tableActRight", {}, void 0, !0)
|
|
1693
1689
|
])) : R("", !0),
|
|
1694
|
-
|
|
1695
|
-
columns:
|
|
1690
|
+
S(Q, X(a.$attrs, {
|
|
1691
|
+
columns: s.value,
|
|
1696
1692
|
onResizeColumn: p,
|
|
1697
1693
|
scroll: {
|
|
1698
|
-
x:
|
|
1699
|
-
y:
|
|
1694
|
+
x: n(m),
|
|
1695
|
+
y: n(F).tableHeight
|
|
1700
1696
|
}
|
|
1701
|
-
}),
|
|
1702
|
-
emptyText:
|
|
1703
|
-
v("div",
|
|
1704
|
-
|
|
1705
|
-
description:
|
|
1697
|
+
}), Ge({
|
|
1698
|
+
emptyText: c(() => [
|
|
1699
|
+
v("div", Tl, [
|
|
1700
|
+
S(b, {
|
|
1701
|
+
description: n(f)("hbLibComp.hbListTable.noData")
|
|
1706
1702
|
}, null, 8, ["description"])
|
|
1707
1703
|
])
|
|
1708
1704
|
]),
|
|
1709
1705
|
_: 2
|
|
1710
1706
|
}, [
|
|
1711
|
-
|
|
1707
|
+
a.$slots.headerCell ? {
|
|
1712
1708
|
name: "headerCell",
|
|
1713
|
-
fn:
|
|
1714
|
-
Z(
|
|
1715
|
-
I(L(
|
|
1709
|
+
fn: c(({ column: x }) => [
|
|
1710
|
+
Z(a.$slots, "headerCell", { column: x }, () => [
|
|
1711
|
+
I(L(x.title), 1)
|
|
1716
1712
|
], !0)
|
|
1717
1713
|
]),
|
|
1718
1714
|
key: "0"
|
|
1719
1715
|
} : void 0,
|
|
1720
|
-
|
|
1716
|
+
a.$slots.bodyCell ? {
|
|
1721
1717
|
name: "bodyCell",
|
|
1722
|
-
fn:
|
|
1723
|
-
Z(
|
|
1724
|
-
column:
|
|
1725
|
-
record:
|
|
1726
|
-
index:
|
|
1718
|
+
fn: c(({ column: x, record: $, index: E }) => [
|
|
1719
|
+
Z(a.$slots, "bodyCell", {
|
|
1720
|
+
column: x,
|
|
1721
|
+
record: $,
|
|
1722
|
+
index: E
|
|
1727
1723
|
}, void 0, !0),
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
title:
|
|
1731
|
-
I(L(x
|
|
1724
|
+
x && x.needTooltip ? (o(), k(W, { key: 0 }, [
|
|
1725
|
+
x.needTooltip ? (o(), B(D, { key: 0 }, {
|
|
1726
|
+
title: c(() => [
|
|
1727
|
+
I(L($[x.dataIndex]), 1)
|
|
1732
1728
|
]),
|
|
1733
|
-
default:
|
|
1734
|
-
I(" " + L(x
|
|
1729
|
+
default: c(() => [
|
|
1730
|
+
I(" " + L($[x.dataIndex]), 1)
|
|
1735
1731
|
]),
|
|
1736
1732
|
_: 2
|
|
1737
1733
|
}, 1024)) : R("", !0)
|
|
1738
1734
|
], 64)) : R("", !0),
|
|
1739
|
-
|
|
1735
|
+
x && x.needCopy ? (o(), B(H, {
|
|
1740
1736
|
key: 1,
|
|
1741
|
-
"cp-text": x
|
|
1737
|
+
"cp-text": $[x.dataIndex],
|
|
1742
1738
|
style: { position: "relative" }
|
|
1743
1739
|
}, null, 8, ["cp-text"])) : R("", !0),
|
|
1744
|
-
|
|
1745
|
-
I(L(
|
|
1740
|
+
x && x.needFormat ? (o(), k(W, { key: 2 }, [
|
|
1741
|
+
I(L(r($[x.dataIndex], x.format)), 1)
|
|
1746
1742
|
], 64)) : R("", !0)
|
|
1747
1743
|
]),
|
|
1748
1744
|
key: "1"
|
|
1749
1745
|
} : void 0,
|
|
1750
|
-
|
|
1746
|
+
a.$slots.expandedRowRender ? {
|
|
1751
1747
|
name: "expandedRowRender",
|
|
1752
|
-
fn:
|
|
1753
|
-
Z(
|
|
1748
|
+
fn: c(({ record: x }) => [
|
|
1749
|
+
Z(a.$slots, "expandedRowRender", {
|
|
1754
1750
|
column: e.childColumns,
|
|
1755
|
-
record:
|
|
1751
|
+
record: x
|
|
1756
1752
|
}, void 0, !0)
|
|
1757
1753
|
]),
|
|
1758
1754
|
key: "2"
|
|
@@ -1761,7 +1757,7 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1761
1757
|
], 6);
|
|
1762
1758
|
};
|
|
1763
1759
|
}
|
|
1764
|
-
}),
|
|
1760
|
+
}), Ml = /* @__PURE__ */ oe($l, [["__scopeId", "data-v-f5b59c06"]]), Fo = {
|
|
1765
1761
|
columns: {
|
|
1766
1762
|
type: Array,
|
|
1767
1763
|
default: () => [],
|
|
@@ -1780,16 +1776,16 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1780
1776
|
type: [String, Number],
|
|
1781
1777
|
default: 150
|
|
1782
1778
|
}
|
|
1783
|
-
},
|
|
1779
|
+
}, Il = le(Ml), Hl = { class: "hb-lib-table-setting-box" }, Al = {
|
|
1784
1780
|
key: 0,
|
|
1785
1781
|
class: "hb-lib-table-drag-item"
|
|
1786
|
-
},
|
|
1782
|
+
}, Dl = {
|
|
1787
1783
|
key: 0,
|
|
1788
1784
|
class: "hb-lib-table-drag-item-act"
|
|
1789
|
-
},
|
|
1785
|
+
}, Ol = ["onClick"], Bl = ["onClick"], Rl = { class: "hb-lib-table-set-btn-group" }, Nl = {
|
|
1790
1786
|
class: "select-all-container",
|
|
1791
1787
|
style: { "margin-right": "10px" }
|
|
1792
|
-
},
|
|
1788
|
+
}, Pl = /* @__PURE__ */ te({
|
|
1793
1789
|
name: "HbLibTableColumnSet",
|
|
1794
1790
|
__name: "HbTableColumnSet",
|
|
1795
1791
|
props: {
|
|
@@ -1821,109 +1817,109 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1821
1817
|
}
|
|
1822
1818
|
},
|
|
1823
1819
|
emits: ["on-get-columns", "refresh", "clearSelected"],
|
|
1824
|
-
setup(e, { emit:
|
|
1825
|
-
const u =
|
|
1820
|
+
setup(e, { emit: f }) {
|
|
1821
|
+
const u = f, { t: s } = re(), F = e, m = O([]), p = K(() => a.value.filter((t) => t.checked));
|
|
1826
1822
|
O([]);
|
|
1827
|
-
const
|
|
1828
|
-
|
|
1829
|
-
},
|
|
1830
|
-
const
|
|
1823
|
+
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) => {
|
|
1824
|
+
h.value = t.oldIndex;
|
|
1825
|
+
}, Q = (t) => {
|
|
1826
|
+
const l = t.newIndex;
|
|
1831
1827
|
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
|
-
|
|
1828
|
+
const y = m.value.filter((U) => U.fixed === "left").length, i = m.value.length - m.value.filter((U) => U.fixed === "right").length;
|
|
1829
|
+
if ((y > 0 && l < y || i < m.value.length && l >= i) && (Se.warning(s("hbLibComp.hbLibListTableColumsSet.errorTip")), h.value !== null)) {
|
|
1830
|
+
const U = a.value.splice(l, 1)[0];
|
|
1831
|
+
a.value.splice(h.value, 0, U);
|
|
1836
1832
|
}
|
|
1837
1833
|
}
|
|
1838
|
-
|
|
1839
|
-
},
|
|
1840
|
-
t.target.checked ?
|
|
1841
|
-
},
|
|
1842
|
-
|
|
1843
|
-
}, U = () => {
|
|
1844
|
-
m.value = [...l.value], u("on-get-columns", m.value), h.value = !1;
|
|
1834
|
+
h.value = null;
|
|
1835
|
+
}, x = (t) => {
|
|
1836
|
+
t.target.checked ? a.value.forEach((d) => d.checked = !0) : a.value.forEach((d) => d.checked = !1);
|
|
1837
|
+
}, $ = (t, l) => {
|
|
1838
|
+
l ? t.checked = !0 : t.checked = !1;
|
|
1845
1839
|
}, E = () => {
|
|
1846
|
-
m.value =
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1840
|
+
m.value = [...a.value], u("on-get-columns", m.value), r.value = !1;
|
|
1841
|
+
}, P = () => {
|
|
1842
|
+
m.value = F.tableColumns.map((l) => ({
|
|
1843
|
+
...l,
|
|
1844
|
+
label: l.title && l.title.tag ? z(l.title) : l.title || l.title2,
|
|
1845
|
+
value: l.dataIndex,
|
|
1846
|
+
checked: l.checked || l.checked === void 0
|
|
1847
|
+
})), a.value = [...m.value];
|
|
1852
1848
|
let t = [];
|
|
1853
|
-
|
|
1854
|
-
t.push(
|
|
1849
|
+
F.tableColumns.forEach(function(l) {
|
|
1850
|
+
t.push(l.dataIndex);
|
|
1855
1851
|
});
|
|
1856
|
-
},
|
|
1852
|
+
}, z = (t) => t.children[0].text, T = (t) => {
|
|
1857
1853
|
delete t.fixed;
|
|
1858
|
-
const
|
|
1859
|
-
if (
|
|
1860
|
-
let
|
|
1861
|
-
for (let y = 0; y <
|
|
1862
|
-
|
|
1863
|
-
if (
|
|
1864
|
-
const y = [...
|
|
1865
|
-
y.splice(
|
|
1854
|
+
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1855
|
+
if (l !== -1) {
|
|
1856
|
+
let d = -1;
|
|
1857
|
+
for (let y = 0; y < a.value.length; y++)
|
|
1858
|
+
a.value[y].fixed === "left" && (d = y);
|
|
1859
|
+
if (d !== -1 && l !== d + 1) {
|
|
1860
|
+
const y = [...a.value], [i] = y.splice(l, 1);
|
|
1861
|
+
y.splice(d + 1, 0, i), a.value = y;
|
|
1866
1862
|
}
|
|
1867
1863
|
}
|
|
1868
|
-
},
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
let
|
|
1872
|
-
for (let y = 0; y <
|
|
1873
|
-
|
|
1874
|
-
if (
|
|
1875
|
-
const y = [...
|
|
1876
|
-
|
|
1864
|
+
}, _ = (t) => {
|
|
1865
|
+
const l = a.value.findIndex((d) => d.value === t.value);
|
|
1866
|
+
if (l !== -1) {
|
|
1867
|
+
let d = -1;
|
|
1868
|
+
for (let y = 0; y < a.value.length; y++)
|
|
1869
|
+
a.value[y].fixed === "left" && (d = y);
|
|
1870
|
+
if (d !== -1 && l !== d + 1) {
|
|
1871
|
+
const y = [...a.value], i = y.splice(l, 1);
|
|
1872
|
+
i[0].fixed = "left", y.splice(d + 1, 0, i[0]), a.value = y;
|
|
1877
1873
|
}
|
|
1878
1874
|
}
|
|
1879
1875
|
};
|
|
1880
|
-
return
|
|
1881
|
-
const
|
|
1882
|
-
return o(), k("div",
|
|
1883
|
-
|
|
1884
|
-
title:
|
|
1876
|
+
return P(), (t, l) => {
|
|
1877
|
+
const d = q("a-tooltip"), y = q("a-button");
|
|
1878
|
+
return o(), k("div", Hl, [
|
|
1879
|
+
S(n(mt), {
|
|
1880
|
+
title: n(s)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
1885
1881
|
trigger: "click",
|
|
1886
1882
|
placement: "leftTop",
|
|
1887
1883
|
overlayClassName: "alertInfoContent",
|
|
1888
|
-
visible:
|
|
1889
|
-
"onUpdate:visible":
|
|
1884
|
+
visible: r.value,
|
|
1885
|
+
"onUpdate:visible": l[1] || (l[1] = (i) => r.value = i)
|
|
1890
1886
|
}, {
|
|
1891
|
-
content:
|
|
1892
|
-
|
|
1893
|
-
modelValue:
|
|
1894
|
-
"onUpdate:modelValue":
|
|
1887
|
+
content: c(() => [
|
|
1888
|
+
S(n(fe), {
|
|
1889
|
+
modelValue: a.value,
|
|
1890
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
|
|
1895
1891
|
"item-key": "value",
|
|
1896
1892
|
class: "hb-lib-table-set-drag",
|
|
1897
1893
|
"ghost-class": "ghost",
|
|
1898
1894
|
animation: "200",
|
|
1899
1895
|
handle: ".drag-handle",
|
|
1900
|
-
onStart:
|
|
1901
|
-
onEnd:
|
|
1896
|
+
onStart: H,
|
|
1897
|
+
onEnd: Q
|
|
1902
1898
|
}, {
|
|
1903
|
-
item:
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
checked:
|
|
1907
|
-
onChange: (
|
|
1899
|
+
item: c(({ element: i }) => [
|
|
1900
|
+
i.fixed !== "right" ? (o(), k("div", Al, [
|
|
1901
|
+
S(n(pe), {
|
|
1902
|
+
checked: i.checked,
|
|
1903
|
+
onChange: (U) => $(i, U.target.checked)
|
|
1908
1904
|
}, {
|
|
1909
|
-
default:
|
|
1910
|
-
I(L(
|
|
1905
|
+
default: c(() => [
|
|
1906
|
+
I(L(i.label), 1)
|
|
1911
1907
|
]),
|
|
1912
1908
|
_: 2
|
|
1913
1909
|
}, 1032, ["checked", "onChange"]),
|
|
1914
|
-
|
|
1910
|
+
i.checked ? (o(), k("section", Dl, [
|
|
1915
1911
|
v("span", {
|
|
1916
|
-
class:
|
|
1912
|
+
class: V(i.fixed ? "drag-hide" : "drag-handle")
|
|
1917
1913
|
}, "⋮⋮", 2),
|
|
1918
|
-
|
|
1919
|
-
title:
|
|
1920
|
-
I(L(
|
|
1914
|
+
i.fixed ? (o(), B(d, { key: 0 }, {
|
|
1915
|
+
title: c(() => [
|
|
1916
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
1921
1917
|
]),
|
|
1922
|
-
default:
|
|
1918
|
+
default: c(() => [
|
|
1923
1919
|
v("span", {
|
|
1924
1920
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1925
|
-
onClick: (
|
|
1926
|
-
}, [...
|
|
1921
|
+
onClick: (U) => T(i)
|
|
1922
|
+
}, [...l[2] || (l[2] = [
|
|
1927
1923
|
v("svg", {
|
|
1928
1924
|
t: "1759048615600",
|
|
1929
1925
|
class: "icon",
|
|
@@ -1940,19 +1936,19 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1940
1936
|
fill: "#ff5000"
|
|
1941
1937
|
})
|
|
1942
1938
|
], -1)
|
|
1943
|
-
])], 8,
|
|
1939
|
+
])], 8, Ol)
|
|
1944
1940
|
]),
|
|
1945
1941
|
_: 2
|
|
1946
1942
|
}, 1024)) : R("", !0),
|
|
1947
|
-
|
|
1948
|
-
title:
|
|
1949
|
-
I(L(
|
|
1943
|
+
i.fixed ? R("", !0) : (o(), B(d, { key: 1 }, {
|
|
1944
|
+
title: c(() => [
|
|
1945
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
1950
1946
|
]),
|
|
1951
|
-
default:
|
|
1947
|
+
default: c(() => [
|
|
1952
1948
|
v("span", {
|
|
1953
1949
|
class: "hb-lib-table-drag-item-act-btn",
|
|
1954
|
-
onClick: (
|
|
1955
|
-
}, [...
|
|
1950
|
+
onClick: (U) => _(i)
|
|
1951
|
+
}, [...l[3] || (l[3] = [
|
|
1956
1952
|
v("svg", {
|
|
1957
1953
|
t: "1759048735643",
|
|
1958
1954
|
class: "icon",
|
|
@@ -1969,7 +1965,7 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1969
1965
|
fill: "#ff5000"
|
|
1970
1966
|
})
|
|
1971
1967
|
], -1)
|
|
1972
|
-
])], 8,
|
|
1968
|
+
])], 8, Bl)
|
|
1973
1969
|
]),
|
|
1974
1970
|
_: 2
|
|
1975
1971
|
}, 1024))
|
|
@@ -1978,36 +1974,36 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
1978
1974
|
]),
|
|
1979
1975
|
_: 1
|
|
1980
1976
|
}, 8, ["modelValue"]),
|
|
1981
|
-
v("div",
|
|
1982
|
-
v("div",
|
|
1983
|
-
|
|
1984
|
-
checked:
|
|
1985
|
-
indeterminate:
|
|
1986
|
-
onChange:
|
|
1977
|
+
v("div", Rl, [
|
|
1978
|
+
v("div", Nl, [
|
|
1979
|
+
S(n(pe), {
|
|
1980
|
+
checked: b.value,
|
|
1981
|
+
indeterminate: D.value,
|
|
1982
|
+
onChange: x
|
|
1987
1983
|
}, {
|
|
1988
|
-
default:
|
|
1989
|
-
I(L(
|
|
1984
|
+
default: c(() => [
|
|
1985
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
1990
1986
|
]),
|
|
1991
1987
|
_: 1
|
|
1992
1988
|
}, 8, ["checked", "indeterminate"])
|
|
1993
1989
|
]),
|
|
1994
|
-
|
|
1995
|
-
onClick:
|
|
1990
|
+
S(y, {
|
|
1991
|
+
onClick: E,
|
|
1996
1992
|
type: "primary"
|
|
1997
1993
|
}, {
|
|
1998
|
-
default:
|
|
1999
|
-
I(L(
|
|
1994
|
+
default: c(() => [
|
|
1995
|
+
I(L(n(s)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2000
1996
|
]),
|
|
2001
1997
|
_: 1
|
|
2002
1998
|
})
|
|
2003
1999
|
])
|
|
2004
2000
|
]),
|
|
2005
|
-
default:
|
|
2006
|
-
|
|
2007
|
-
title:
|
|
2001
|
+
default: c(() => [
|
|
2002
|
+
S(d, {
|
|
2003
|
+
title: n(s)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2008
2004
|
placement: "leftTop"
|
|
2009
2005
|
}, {
|
|
2010
|
-
default:
|
|
2006
|
+
default: c(() => [...l[4] || (l[4] = [
|
|
2011
2007
|
v("span", { class: "hb-lib-table-col-set" }, [
|
|
2012
2008
|
v("svg", {
|
|
2013
2009
|
t: "1759041858618",
|
|
@@ -2040,7 +2036,19 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
2040
2036
|
]);
|
|
2041
2037
|
};
|
|
2042
2038
|
}
|
|
2043
|
-
}),
|
|
2039
|
+
}), zl = /* @__PURE__ */ oe(Pl, [["__scopeId", "data-v-c9fc6c04"]]), Vl = le(zl), El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2040
|
+
__proto__: null,
|
|
2041
|
+
HbLibFormItemFilterModal: wt,
|
|
2042
|
+
HbLibListBtnsAct: Ut,
|
|
2043
|
+
HbLibListForm: $t,
|
|
2044
|
+
HbLibListMultiSelect: rl,
|
|
2045
|
+
HbLibListPageAct: Rt,
|
|
2046
|
+
HbLibListPageContainer: jt,
|
|
2047
|
+
HbLibListTable: Il,
|
|
2048
|
+
HbLibMutilpleSelectModal: bl,
|
|
2049
|
+
HbLibTableAct: wl,
|
|
2050
|
+
HbLibTableColumnSet: Vl
|
|
2051
|
+
}, Symbol.toStringTag, { value: "Module" })), Ul = {
|
|
2044
2052
|
// 如果存在cpText时,K和V无效
|
|
2045
2053
|
cpText: {
|
|
2046
2054
|
type: String,
|
|
@@ -2081,204 +2089,52 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
2081
2089
|
type: String,
|
|
2082
2090
|
default: "ab"
|
|
2083
2091
|
}
|
|
2084
|
-
},
|
|
2092
|
+
}, Yl = /* @__PURE__ */ te({
|
|
2085
2093
|
name: "HbLibCopy",
|
|
2086
2094
|
__name: "copy",
|
|
2087
|
-
props:
|
|
2095
|
+
props: Ul,
|
|
2088
2096
|
setup(e) {
|
|
2089
|
-
const
|
|
2090
|
-
|
|
2091
|
-
u.value =
|
|
2097
|
+
const f = e, u = O();
|
|
2098
|
+
st(() => {
|
|
2099
|
+
u.value = f.data;
|
|
2092
2100
|
});
|
|
2093
|
-
const
|
|
2094
|
-
if (
|
|
2101
|
+
const s = K(() => {
|
|
2102
|
+
if (f.cpText) return f.cpText;
|
|
2095
2103
|
let m = "";
|
|
2096
|
-
if (
|
|
2097
|
-
if (Array.isArray(
|
|
2098
|
-
if (
|
|
2099
|
-
const p =
|
|
2100
|
-
m = p ? p[
|
|
2104
|
+
if (f.data)
|
|
2105
|
+
if (Array.isArray(f.data)) {
|
|
2106
|
+
if (f.K && f.V && f.L) {
|
|
2107
|
+
const p = f.data.find((r) => r?.[f.K] === f.V);
|
|
2108
|
+
m = p ? p[f.L] : "";
|
|
2101
2109
|
}
|
|
2102
2110
|
} else
|
|
2103
|
-
|
|
2111
|
+
f.K && (m = f.data[f.K]);
|
|
2104
2112
|
return m;
|
|
2105
|
-
}),
|
|
2106
|
-
navigator.clipboard.writeText(
|
|
2107
|
-
|
|
2113
|
+
}), F = () => {
|
|
2114
|
+
navigator.clipboard.writeText(s.value).then(() => {
|
|
2115
|
+
Se.success(f.copySuccessTip);
|
|
2108
2116
|
}).catch(() => {
|
|
2109
|
-
|
|
2117
|
+
Se.error("复制失败");
|
|
2110
2118
|
});
|
|
2111
2119
|
};
|
|
2112
2120
|
return (m, p) => {
|
|
2113
|
-
const
|
|
2114
|
-
return
|
|
2121
|
+
const r = q("a-tooltip");
|
|
2122
|
+
return s.value ? (o(), B(r, {
|
|
2115
2123
|
key: 0,
|
|
2116
2124
|
title: m.tooltipTitle
|
|
2117
2125
|
}, {
|
|
2118
|
-
default:
|
|
2126
|
+
default: c(() => [
|
|
2119
2127
|
v("i", {
|
|
2120
|
-
class:
|
|
2121
|
-
style:
|
|
2122
|
-
onClick:
|
|
2128
|
+
class: V(["hb-lib-copy-text-eyevue icon strongQ strong-copy", m.classType == "ab" ? "ab" : "normal"]),
|
|
2129
|
+
style: me({ ...m.cpStyle }),
|
|
2130
|
+
onClick: ke(F, ["stop", "prevent"])
|
|
2123
2131
|
}, null, 6)
|
|
2124
2132
|
]),
|
|
2125
2133
|
_: 1
|
|
2126
2134
|
}, 8, ["title"])) : R("", !0);
|
|
2127
2135
|
};
|
|
2128
2136
|
}
|
|
2129
|
-
}),
|
|
2130
|
-
__proto__: null,
|
|
2131
|
-
HbLibCopy: et,
|
|
2132
|
-
HbLibFormItemFilterModal: Mt,
|
|
2133
|
-
HbLibListBtnsAct: Qt,
|
|
2134
|
-
HbLibListForm: Ot,
|
|
2135
|
-
HbLibListMultiSelect: Fe,
|
|
2136
|
-
HbLibListPageAct: Kt,
|
|
2137
|
-
HbLibListPageContainer: tl,
|
|
2138
|
-
HbLibListTable: zl,
|
|
2139
|
-
HbLibMutilpleSelectModal: Ll,
|
|
2140
|
-
HbLibTableAct: Al,
|
|
2141
|
-
HbLibTableColumnSet: Gl
|
|
2142
|
-
}, Symbol.toStringTag, { value: "Module" })), ea = {
|
|
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
|
-
}, ta = /* @__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
|
-
}), la = /* @__PURE__ */ X({
|
|
2224
|
-
name: "HbTree",
|
|
2225
|
-
__name: "tree",
|
|
2226
|
-
props: ea,
|
|
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(ta, {
|
|
2274
|
-
key: M.key,
|
|
2275
|
-
item: M,
|
|
2276
|
-
expandedKeys: _.value,
|
|
2277
|
-
onToggleExpand: h
|
|
2278
|
-
}, null, 8, ["item", "expandedKeys"]))), 128))
|
|
2279
|
-
], 2));
|
|
2280
|
-
}
|
|
2281
|
-
}), aa = le(la), tt = {
|
|
2137
|
+
}), ql = /* @__PURE__ */ oe(Yl, [["__scopeId", "data-v-d5ca4420"]]), jl = le(ql), Kl = {
|
|
2282
2138
|
dragList: {
|
|
2283
2139
|
type: Array,
|
|
2284
2140
|
required: !0
|
|
@@ -2317,135 +2173,136 @@ const ml = { class: "hb-lib-form-item-filter-modal-search" }, vl = { class: "hb-
|
|
|
2317
2173
|
type: String,
|
|
2318
2174
|
default: ""
|
|
2319
2175
|
}
|
|
2320
|
-
},
|
|
2176
|
+
}, Wl = /* @__PURE__ */ te({
|
|
2321
2177
|
name: "HbDrag",
|
|
2322
2178
|
__name: "index",
|
|
2323
|
-
props:
|
|
2179
|
+
props: Kl,
|
|
2324
2180
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2325
|
-
setup(e, { emit:
|
|
2326
|
-
const u = e,
|
|
2327
|
-
|
|
2181
|
+
setup(e, { emit: f }) {
|
|
2182
|
+
const u = e, s = it([]);
|
|
2183
|
+
ce(
|
|
2328
2184
|
() => u.dragList,
|
|
2329
|
-
(
|
|
2330
|
-
|
|
2185
|
+
(b) => {
|
|
2186
|
+
s.value = b;
|
|
2331
2187
|
},
|
|
2332
2188
|
{
|
|
2333
2189
|
deep: !0,
|
|
2334
2190
|
immediate: !0
|
|
2335
2191
|
}
|
|
2336
2192
|
);
|
|
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",
|
|
2193
|
+
const F = $e("drag"), m = f, p = (b) => {
|
|
2194
|
+
console.log("drag start", b), m("handleDragStart", b);
|
|
2195
|
+
}, r = (b) => {
|
|
2196
|
+
console.log("drag end", b), m("handleDragEnd", b);
|
|
2197
|
+
}, a = (b) => {
|
|
2198
|
+
console.log("drag add", b), m("handleDragAdd", b);
|
|
2199
|
+
}, h = (b) => {
|
|
2200
|
+
console.log("drag remove", b), m("handleDragRemove", b);
|
|
2345
2201
|
};
|
|
2346
|
-
return (
|
|
2347
|
-
class:
|
|
2202
|
+
return (b, D) => (o(), k("div", {
|
|
2203
|
+
class: V(n(F).b())
|
|
2348
2204
|
}, [
|
|
2349
|
-
|
|
2205
|
+
b.childrenType == "component" ? (o(), B(n(fe), X({
|
|
2350
2206
|
key: 0,
|
|
2351
|
-
modelValue:
|
|
2352
|
-
"onUpdate:modelValue":
|
|
2207
|
+
modelValue: s.value,
|
|
2208
|
+
"onUpdate:modelValue": D[0] || (D[0] = (H) => s.value = H),
|
|
2353
2209
|
"item-key": "key",
|
|
2354
|
-
class: { [
|
|
2355
|
-
},
|
|
2356
|
-
"ghost-class":
|
|
2210
|
+
class: { [b.dragClass]: b.dragClass }
|
|
2211
|
+
}, b.$attrs, {
|
|
2212
|
+
"ghost-class": b.ghostClass,
|
|
2357
2213
|
onStart: p,
|
|
2358
|
-
onEnd:
|
|
2359
|
-
onAdd:
|
|
2360
|
-
onRemove:
|
|
2214
|
+
onEnd: r,
|
|
2215
|
+
onAdd: a,
|
|
2216
|
+
onRemove: h
|
|
2361
2217
|
}), {
|
|
2362
|
-
item:
|
|
2363
|
-
(o(), B(
|
|
2218
|
+
item: c(({ element: H }) => [
|
|
2219
|
+
(o(), B(rt(H.component)))
|
|
2364
2220
|
]),
|
|
2365
2221
|
_: 1
|
|
2366
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), B(
|
|
2222
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (o(), B(n(fe), X({
|
|
2367
2223
|
key: 1,
|
|
2368
|
-
modelValue:
|
|
2369
|
-
"onUpdate:modelValue":
|
|
2224
|
+
modelValue: s.value,
|
|
2225
|
+
"onUpdate:modelValue": D[1] || (D[1] = (H) => s.value = H),
|
|
2370
2226
|
"item-key": "id",
|
|
2371
|
-
class: { [
|
|
2372
|
-
},
|
|
2373
|
-
"ghost-class":
|
|
2227
|
+
class: { [b.dragClass]: b.dragClass }
|
|
2228
|
+
}, b.$attrs, {
|
|
2229
|
+
"ghost-class": b.ghostClass,
|
|
2374
2230
|
onStart: p,
|
|
2375
|
-
onEnd:
|
|
2376
|
-
onAdd:
|
|
2377
|
-
onRemove:
|
|
2231
|
+
onEnd: r,
|
|
2232
|
+
onAdd: a,
|
|
2233
|
+
onRemove: h
|
|
2378
2234
|
}), {
|
|
2379
|
-
item:
|
|
2235
|
+
item: c(({ element: H }) => [
|
|
2380
2236
|
v("div", null, [
|
|
2381
|
-
Z(
|
|
2237
|
+
Z(b.$slots, "default", { item: H }, void 0, !0)
|
|
2382
2238
|
])
|
|
2383
2239
|
]),
|
|
2384
2240
|
_: 3
|
|
2385
2241
|
}, 16, ["modelValue", "class", "ghost-class"]))
|
|
2386
2242
|
], 2));
|
|
2387
2243
|
}
|
|
2388
|
-
}),
|
|
2244
|
+
}), Jl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-15b227f5"]]), Gl = le(Jl), Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2389
2245
|
__proto__: null,
|
|
2390
|
-
HbLibFuncCompCopy:
|
|
2391
|
-
HbLibFuncCompDrag:
|
|
2392
|
-
HbLibFuncCompTree: aa
|
|
2246
|
+
HbLibFuncCompCopy: jl,
|
|
2247
|
+
HbLibFuncCompDrag: Gl
|
|
2393
2248
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2394
|
-
let
|
|
2395
|
-
|
|
2249
|
+
let Zl = {
|
|
2250
|
+
...El,
|
|
2251
|
+
...Ql
|
|
2252
|
+
};
|
|
2253
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2396
2254
|
__proto__: null,
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
default: ra
|
|
2407
|
-
}, Symbol.toStringTag, { value: "Module" })), da = { 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" } }, ua = {
|
|
2408
|
-
hbLibComp: da
|
|
2409
|
-
}, ha = { 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回目の確認" } }, ba = {
|
|
2410
|
-
hbLibComp: ha
|
|
2411
|
-
}, fa = { 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: "操作内容" } }, pa = {
|
|
2412
|
-
hbLibComp: fa
|
|
2413
|
-
}, ma = { 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" } }, va = {
|
|
2414
|
-
hbLibComp: ma
|
|
2255
|
+
default: Zl
|
|
2256
|
+
}, Symbol.toStringTag, { value: "Module" })), Xl = { 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" } }, eo = {
|
|
2257
|
+
hbLibComp: Xl
|
|
2258
|
+
}, to = { 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回目の確認" } }, lo = {
|
|
2259
|
+
hbLibComp: to
|
|
2260
|
+
}, oo = { 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: "操作内容" } }, ao = {
|
|
2261
|
+
hbLibComp: oo
|
|
2262
|
+
}, no = { 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" } }, so = {
|
|
2263
|
+
hbLibComp: no
|
|
2415
2264
|
};
|
|
2416
|
-
var
|
|
2417
|
-
function
|
|
2418
|
-
return We || (We = 1, (function(e,
|
|
2419
|
-
(function(u,
|
|
2420
|
-
e.exports =
|
|
2421
|
-
})(
|
|
2422
|
-
function
|
|
2265
|
+
var be = { exports: {} }, io = be.exports, We;
|
|
2266
|
+
function ro() {
|
|
2267
|
+
return We || (We = 1, (function(e, f) {
|
|
2268
|
+
(function(u, s) {
|
|
2269
|
+
e.exports = s(Te);
|
|
2270
|
+
})(io, (function(u) {
|
|
2271
|
+
function s(p) {
|
|
2423
2272
|
return p && typeof p == "object" && "default" in p ? p : { default: p };
|
|
2424
2273
|
}
|
|
2425
|
-
var
|
|
2426
|
-
return
|
|
2427
|
-
}, 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,
|
|
2428
|
-
var
|
|
2429
|
-
return
|
|
2274
|
+
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) {
|
|
2275
|
+
return r === "W" ? p + "周" : p + "日";
|
|
2276
|
+
}, 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) {
|
|
2277
|
+
var a = 100 * p + r;
|
|
2278
|
+
return a < 600 ? "凌晨" : a < 900 ? "早上" : a < 1100 ? "上午" : a < 1300 ? "中午" : a < 1800 ? "下午" : "晚上";
|
|
2430
2279
|
} };
|
|
2431
|
-
return
|
|
2280
|
+
return F.default.locale(m, null, !0), m;
|
|
2432
2281
|
}));
|
|
2433
|
-
})(
|
|
2282
|
+
})(be)), be.exports;
|
|
2434
2283
|
}
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
e.use(Je[u]);
|
|
2284
|
+
ro();
|
|
2285
|
+
Te.locale("zh-cn");
|
|
2286
|
+
const xo = {
|
|
2287
|
+
en_US: eo,
|
|
2288
|
+
ja_JP: lo,
|
|
2289
|
+
zh_CN: ao,
|
|
2290
|
+
de_DE: so
|
|
2291
|
+
}, To = function(e) {
|
|
2292
|
+
Object.keys(Ke).forEach((u) => {
|
|
2293
|
+
e.use(Ke[u]);
|
|
2446
2294
|
});
|
|
2447
2295
|
};
|
|
2448
2296
|
export {
|
|
2449
|
-
|
|
2450
|
-
|
|
2297
|
+
Ul as HbCopyProps,
|
|
2298
|
+
Kl as HbDragProps,
|
|
2299
|
+
Lo as HbFormProps,
|
|
2300
|
+
wo as HbFormSelectModalprops,
|
|
2301
|
+
_o as HbListBtnsProps,
|
|
2302
|
+
ko as HbListPageActProps,
|
|
2303
|
+
Co as HbSfCmProps,
|
|
2304
|
+
Fo as HbTableProps,
|
|
2305
|
+
So as ListPageContainerProps,
|
|
2306
|
+
To as install,
|
|
2307
|
+
xo as locales
|
|
2451
2308
|
};
|