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