@dazhicheng/ui 1.6.53 → 1.6.54
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/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.d.ts +28 -28
- package/dist/components/tt-button/index.vue.d.ts +16 -16
- package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
- package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
- package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
- package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
- package/dist/components/tt-drawer/index.d.ts +109 -109
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-modal/index.d.ts +150 -150
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
- package/dist/components/tt-panel-select/src/index.vue.d.ts +5 -5
- package/dist/components/tt-panel-select/src/index.vue.js +125 -121
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/hooks/usePanelSelectSchemas.js +92 -98
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as qe, mergeModels as I, useModel as He, computed as u, watch as O, ref as v, useTemplateRef as $, unref as r, onMounted as Je, createElementBlock as z, openBlock as A, normalizeClass as j, createVNode as q, mergeProps as Qe, withCtx as Xe, withDirectives as Ye, normalizeStyle as Ze, createBlock as H, createCommentVNode as J, nextTick as E } from "vue";
|
|
2
2
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
|
-
import { useDesign as
|
|
3
|
+
import { useDesign as el } from "../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
5
|
-
import { ElSelect as
|
|
5
|
+
import { ElSelect as ll, vLoading as tl } from "element-plus";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
import "numeral";
|
|
8
8
|
import "xe-utils";
|
|
@@ -15,19 +15,19 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
|
|
|
15
15
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
16
|
import "lodash-es";
|
|
17
17
|
import "vue-router";
|
|
18
|
-
import { useResizeObserver as
|
|
19
|
-
import { useSelectCollapseOptions as
|
|
20
|
-
import { ALL as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { usePanelSelectData as
|
|
25
|
-
import { usePanelSelectSelection as
|
|
18
|
+
import { useResizeObserver as al } from "@vueuse/core";
|
|
19
|
+
import { useSelectCollapseOptions as ol } from "../../tt-form/src/hooks/useSelectCollapse.js";
|
|
20
|
+
import { ALL as nl, DEFAULT_PANEL_SELECT_SEPARATORS as il } from "./common.js";
|
|
21
|
+
import rl from "./components/PanelLeft.vue.js";
|
|
22
|
+
import ul from "./components/PanelMiddle.vue.js";
|
|
23
|
+
import sl from "./components/PanelRight.vue.js";
|
|
24
|
+
import { usePanelSelectData as cl } from "./hooks/usePanelData.js";
|
|
25
|
+
import { usePanelSelectSelection as dl } from "./hooks/usePanelSelection.js";
|
|
26
26
|
/* empty css */
|
|
27
|
-
const m = 4,
|
|
27
|
+
const m = 4, Wl = /* @__PURE__ */ qe({
|
|
28
28
|
name: "TtPanelSelect",
|
|
29
29
|
__name: "index",
|
|
30
|
-
props: /* @__PURE__ */
|
|
30
|
+
props: /* @__PURE__ */ I({
|
|
31
31
|
disabled: { type: Boolean, default: !1 },
|
|
32
32
|
showNav: { type: Boolean, default: !0 },
|
|
33
33
|
multiple: { type: Boolean, default: !0 },
|
|
@@ -48,11 +48,11 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
48
48
|
immediate: { type: Boolean, default: !0 },
|
|
49
49
|
beforeFetch: { type: Function, default: void 0 },
|
|
50
50
|
afterFetch: { type: Function, default: void 0 },
|
|
51
|
-
separator: { default: () => [...
|
|
51
|
+
separator: { default: () => [...il] },
|
|
52
52
|
pasteSearch: { type: Boolean, default: !0 },
|
|
53
53
|
alwaysLoad: { type: Boolean, default: !1 },
|
|
54
54
|
showAll: { type: Boolean, default: !0 },
|
|
55
|
-
showAllField: { default:
|
|
55
|
+
showAllField: { default: nl },
|
|
56
56
|
showPinyinMode: { type: Boolean, default: !1 },
|
|
57
57
|
showOriginMode: { type: Boolean, default: !0 },
|
|
58
58
|
leftPlaceholder: { default: "支持模糊搜索" },
|
|
@@ -62,31 +62,35 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
62
62
|
modelValue: {},
|
|
63
63
|
modelModifiers: {}
|
|
64
64
|
}),
|
|
65
|
-
emits: /* @__PURE__ */
|
|
65
|
+
emits: /* @__PURE__ */ I(["visible-change", "change", "focus"], ["update:modelValue"]),
|
|
66
66
|
setup(s, { expose: Q, emit: X }) {
|
|
67
|
-
const Y =
|
|
67
|
+
const Y = tl, Z = ll, t = s, C = X, { prefixCls: p } = el("panel-select"), {
|
|
68
68
|
loading: ee,
|
|
69
69
|
fetchApi: f,
|
|
70
70
|
treeOptions: le,
|
|
71
|
-
navTreeOptions:
|
|
71
|
+
navTreeOptions: F,
|
|
72
72
|
navNodes: te,
|
|
73
73
|
leafNodes: h,
|
|
74
74
|
isFirstLoaded: ae,
|
|
75
75
|
buildOptionGroups: oe
|
|
76
|
-
} =
|
|
77
|
-
let
|
|
78
|
-
const
|
|
76
|
+
} = cl(t), n = He(s, "modelValue");
|
|
77
|
+
let P;
|
|
78
|
+
const R = u(() => t.disabled), ne = u(() => {
|
|
79
|
+
if (!t.multiple) return t.placeholder;
|
|
80
|
+
const e = t.showMultiple ? "支持多选和全选" : "支持多选", l = typeof t.placeholder == "string" && t.placeholder.trim() ? t.placeholder.trim().replace(/[,,]\s*$/, "") : "请选择";
|
|
81
|
+
return l.includes("支持多选和全选") || l.includes("支持多选") ? l : `${l},${e}`;
|
|
82
|
+
}), ie = u(() => {
|
|
79
83
|
const e = /* @__PURE__ */ new Map();
|
|
80
84
|
return h.value.forEach((l) => e.set(l.value, l.label)), e;
|
|
81
85
|
});
|
|
82
86
|
function x(e) {
|
|
83
|
-
return e === t.showAllField ? { label: "全部", value: t.showAllField } : { label:
|
|
87
|
+
return e === t.showAllField ? { label: "全部", value: t.showAllField } : { label: ie.value.get(e) ?? String(e), value: e };
|
|
84
88
|
}
|
|
85
|
-
function
|
|
89
|
+
function L(e) {
|
|
86
90
|
if (e != null)
|
|
87
91
|
return typeof e == "object" && "value" in e ? e.value : e;
|
|
88
92
|
}
|
|
89
|
-
const
|
|
93
|
+
const re = u({
|
|
90
94
|
get() {
|
|
91
95
|
return Array.isArray(n.value) ? t.multiple ? n.value : n.value.slice(-1) : n.value === void 0 ? [] : [n.value];
|
|
92
96
|
},
|
|
@@ -94,20 +98,20 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
94
98
|
n.value = t.multiple ? [...e] : e.at(-1);
|
|
95
99
|
}
|
|
96
100
|
});
|
|
97
|
-
|
|
101
|
+
O([() => t.multiple, () => n.value], ([e, l]) => {
|
|
98
102
|
if (e) {
|
|
99
103
|
Array.isArray(l) || (n.value = l === void 0 ? [] : [l]);
|
|
100
104
|
return;
|
|
101
105
|
}
|
|
102
106
|
Array.isArray(l) && (n.value = l.at(-1));
|
|
103
107
|
});
|
|
104
|
-
const b = v(), y = v(""), w = v(""), S = v(), V =
|
|
108
|
+
const b = v(), y = v(""), w = v(""), S = v(), V = $("middleRef"), g = $("selectWrapRef"), B = $("selectRef"), M = v(0);
|
|
105
109
|
function N() {
|
|
106
110
|
const e = g.value;
|
|
107
|
-
e && (
|
|
111
|
+
e && (M.value = e.offsetWidth);
|
|
108
112
|
}
|
|
109
|
-
|
|
110
|
-
const
|
|
113
|
+
al(g, () => N());
|
|
114
|
+
const ue = u(() => ({
|
|
111
115
|
componentProps: {
|
|
112
116
|
multiple: t.multiple,
|
|
113
117
|
component: {
|
|
@@ -117,19 +121,19 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
117
121
|
component: "TtPanelSelect",
|
|
118
122
|
selectWrapRef: g,
|
|
119
123
|
selectRef: B
|
|
120
|
-
})), { selectComponentProps:
|
|
124
|
+
})), { selectComponentProps: se } = ol(ue), T = u(() => {
|
|
121
125
|
const e = y.value.trim().toLowerCase();
|
|
122
|
-
if (!e) return
|
|
126
|
+
if (!e) return F.value;
|
|
123
127
|
const l = (a) => {
|
|
124
128
|
const o = [];
|
|
125
129
|
return a.forEach((i) => {
|
|
126
|
-
var
|
|
127
|
-
const c = (
|
|
130
|
+
var _;
|
|
131
|
+
const c = (_ = i.children) != null && _.length ? l(i.children) : void 0;
|
|
128
132
|
(String(i.label).toLowerCase().includes(e) || c && c.length) && o.push({ ...i, children: c != null && c.length ? c : void 0 });
|
|
129
133
|
}), o;
|
|
130
134
|
};
|
|
131
|
-
return l(
|
|
132
|
-
}),
|
|
135
|
+
return l(F.value);
|
|
136
|
+
}), ce = u(() => {
|
|
133
137
|
const e = [], l = (a) => {
|
|
134
138
|
a.forEach((o) => {
|
|
135
139
|
var i;
|
|
@@ -137,13 +141,13 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
137
141
|
});
|
|
138
142
|
};
|
|
139
143
|
return l(T.value), e;
|
|
140
|
-
}), k = u(() => oe(h.value, w.value)),
|
|
144
|
+
}), k = u(() => oe(h.value, w.value)), de = u(() => {
|
|
141
145
|
const e = "minmax(var(--tt-panel-select-middle-width, 450px), 1fr)";
|
|
142
146
|
return t.showNav && !t.multiple ? `200px ${e}` : !t.showNav && t.multiple ? `${e} 180px` : !t.showNav && !t.multiple ? e : `200px ${e} 180px`;
|
|
143
|
-
}),
|
|
147
|
+
}), pe = u(() => {
|
|
144
148
|
const e = "var(--tt-panel-select-middle-width, 450px)";
|
|
145
149
|
return t.showNav && !t.multiple ? `max(calc(200px + ${e}), 800px)` : !t.showNav && t.multiple ? `max(calc(${e} + 180px), 800px)` : !t.showNav && !t.multiple ? `max(${e}, 800px)` : `max(calc(200px + ${e} + 180px), 800px)`;
|
|
146
|
-
}),
|
|
150
|
+
}), me = u(() => {
|
|
147
151
|
const e = [];
|
|
148
152
|
return k.value.forEach((l) => {
|
|
149
153
|
!(t.showOriginMode && l.value === "__origin__") && e.push({ key: `group-${String(l.value)}`, type: "group", group: l });
|
|
@@ -160,23 +164,23 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
160
164
|
}
|
|
161
165
|
}), e;
|
|
162
166
|
}), {
|
|
163
|
-
selectedOptions:
|
|
167
|
+
selectedOptions: fe,
|
|
164
168
|
selectedValueSet: G,
|
|
165
|
-
isAllChecked:
|
|
166
|
-
isIndeterminate:
|
|
167
|
-
getGroupCheckCount:
|
|
168
|
-
handleGroupCheck:
|
|
169
|
-
handleAllOptionCheck:
|
|
170
|
-
handleOptionCheck:
|
|
171
|
-
handleOptionsCheck:
|
|
172
|
-
handleCheckAll:
|
|
173
|
-
clearSelected:
|
|
174
|
-
removeSelected:
|
|
175
|
-
withLockedSelectedValues:
|
|
176
|
-
} =
|
|
169
|
+
isAllChecked: he,
|
|
170
|
+
isIndeterminate: ve,
|
|
171
|
+
getGroupCheckCount: ye,
|
|
172
|
+
handleGroupCheck: we,
|
|
173
|
+
handleAllOptionCheck: ge,
|
|
174
|
+
handleOptionCheck: ke,
|
|
175
|
+
handleOptionsCheck: Ae,
|
|
176
|
+
handleCheckAll: Ce,
|
|
177
|
+
clearSelected: xe,
|
|
178
|
+
removeSelected: be,
|
|
179
|
+
withLockedSelectedValues: Se
|
|
180
|
+
} = dl({
|
|
177
181
|
multiple: u(() => t.multiple),
|
|
178
182
|
modelValue: n,
|
|
179
|
-
selectedValues:
|
|
183
|
+
selectedValues: re,
|
|
180
184
|
leafNodes: h,
|
|
181
185
|
allValue: u(() => t.showAllField)
|
|
182
186
|
}), W = u({
|
|
@@ -191,23 +195,23 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
191
195
|
},
|
|
192
196
|
set(e) {
|
|
193
197
|
const l = r(n);
|
|
194
|
-
if (
|
|
195
|
-
const o = (Array.isArray(e) ? e : []).map((i) =>
|
|
196
|
-
n.value =
|
|
198
|
+
if (P = Array.isArray(l) ? [...l] : l, t.multiple) {
|
|
199
|
+
const o = (Array.isArray(e) ? e : []).map((i) => L(i)).filter((i) => i !== void 0);
|
|
200
|
+
n.value = Se(o);
|
|
197
201
|
return;
|
|
198
202
|
}
|
|
199
|
-
n.value =
|
|
203
|
+
n.value = L(e);
|
|
200
204
|
}
|
|
201
205
|
}), D = u(
|
|
202
206
|
() => {
|
|
203
207
|
const e = {}, l = {};
|
|
204
208
|
return k.value.forEach((a) => {
|
|
205
|
-
const { enabledCount: o, checkedCount: i } =
|
|
209
|
+
const { enabledCount: o, checkedCount: i } = ye(a), c = String(a.value);
|
|
206
210
|
e[c] = o > 0 && i === o, l[c] = o > 0 && i > 0 && i < o;
|
|
207
211
|
}), { checkedMap: e, indeterminateMap: l };
|
|
208
212
|
}
|
|
209
|
-
),
|
|
210
|
-
function
|
|
213
|
+
), Ve = u(() => D.value.checkedMap), Me = u(() => D.value.indeterminateMap), Oe = u(() => G.value.has(t.showAllField)), K = u(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...h.value.map((l) => ({ ...l }))]);
|
|
214
|
+
function $e(e) {
|
|
211
215
|
const l = r(K);
|
|
212
216
|
if (Array.isArray(e)) {
|
|
213
217
|
const a = new Set(e);
|
|
@@ -225,62 +229,57 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
225
229
|
function Fe(e) {
|
|
226
230
|
b.value = e.value;
|
|
227
231
|
const l = Ee(e);
|
|
228
|
-
S.value = void 0,
|
|
232
|
+
S.value = void 0, E(() => {
|
|
229
233
|
var a;
|
|
230
234
|
S.value = l, l !== void 0 && ((a = V.value) == null || a.scrollToGroup(l));
|
|
231
235
|
});
|
|
232
236
|
}
|
|
233
|
-
function
|
|
237
|
+
function Pe(e) {
|
|
234
238
|
y.value = e;
|
|
235
239
|
}
|
|
236
|
-
function
|
|
240
|
+
function Re(e) {
|
|
237
241
|
w.value = e;
|
|
238
242
|
}
|
|
239
|
-
function
|
|
243
|
+
function Le(e, l) {
|
|
240
244
|
const a = k.value.find((o) => o.value === e);
|
|
241
|
-
a &&
|
|
245
|
+
a && we(a, l);
|
|
242
246
|
}
|
|
243
|
-
async function
|
|
247
|
+
async function Be(e) {
|
|
244
248
|
var l;
|
|
245
|
-
C("visible-change", e), e && (w.value = "", y.value = "", await
|
|
249
|
+
C("visible-change", e), e && (w.value = "", y.value = "", await E(), (l = V.value) == null || l.inputFocus(), N(), t.alwaysLoad ? await f() : !t.immediate && !r(ae) && await f());
|
|
246
250
|
}
|
|
247
|
-
function
|
|
248
|
-
U(
|
|
251
|
+
function Ne() {
|
|
252
|
+
U(P);
|
|
249
253
|
}
|
|
250
|
-
function
|
|
251
|
-
C("change", e, [...r(K)],
|
|
254
|
+
function Te(e) {
|
|
255
|
+
C("change", e, [...r(K)], $e(e));
|
|
252
256
|
}
|
|
253
|
-
function
|
|
257
|
+
function Ge(e, l) {
|
|
254
258
|
return Array.isArray(e) && Array.isArray(l) ? e.length === l.length && e.every((a, o) => a === l[o]) : e === l;
|
|
255
259
|
}
|
|
256
260
|
function U(e) {
|
|
257
|
-
|
|
261
|
+
E(() => {
|
|
258
262
|
const l = r(n);
|
|
259
|
-
|
|
263
|
+
Ge(l, e) || Te(l);
|
|
260
264
|
});
|
|
261
265
|
}
|
|
262
266
|
function d(e) {
|
|
263
267
|
const l = r(n), a = Array.isArray(l) ? [...l] : l;
|
|
264
268
|
e(), U(a);
|
|
265
269
|
}
|
|
266
|
-
function Ge(e) {
|
|
267
|
-
d(() => {
|
|
268
|
-
we(e);
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
270
|
function We(e) {
|
|
272
271
|
d(() => {
|
|
273
|
-
|
|
272
|
+
ge(e);
|
|
274
273
|
});
|
|
275
274
|
}
|
|
276
|
-
function De(e
|
|
275
|
+
function De(e) {
|
|
277
276
|
d(() => {
|
|
278
|
-
|
|
277
|
+
Ce(e);
|
|
279
278
|
});
|
|
280
279
|
}
|
|
281
280
|
function Ke(e, l) {
|
|
282
281
|
d(() => {
|
|
283
|
-
|
|
282
|
+
Le(e, l);
|
|
284
283
|
});
|
|
285
284
|
}
|
|
286
285
|
function Ue(e, l) {
|
|
@@ -288,33 +287,38 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
288
287
|
ke(e, l);
|
|
289
288
|
});
|
|
290
289
|
}
|
|
290
|
+
function _e(e, l) {
|
|
291
|
+
d(() => {
|
|
292
|
+
Ae(e, l);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
291
295
|
function Ie(e) {
|
|
292
296
|
d(() => {
|
|
293
|
-
|
|
297
|
+
be(e);
|
|
294
298
|
});
|
|
295
299
|
}
|
|
296
300
|
function ze() {
|
|
297
301
|
d(() => {
|
|
298
|
-
|
|
302
|
+
xe();
|
|
299
303
|
});
|
|
300
304
|
}
|
|
301
|
-
function
|
|
305
|
+
function je(e) {
|
|
302
306
|
C("focus", e);
|
|
303
307
|
}
|
|
304
|
-
return
|
|
308
|
+
return O(
|
|
305
309
|
() => t.params,
|
|
306
310
|
() => {
|
|
307
311
|
f();
|
|
308
312
|
},
|
|
309
313
|
{ deep: !0 }
|
|
310
|
-
),
|
|
314
|
+
), O(
|
|
311
315
|
te,
|
|
312
316
|
(e) => {
|
|
313
317
|
var l;
|
|
314
318
|
b.value !== void 0 || !e.length || (b.value = (l = e[0]) == null ? void 0 : l.value);
|
|
315
319
|
},
|
|
316
320
|
{ immediate: !0 }
|
|
317
|
-
),
|
|
321
|
+
), Je(() => {
|
|
318
322
|
t.immediate && f();
|
|
319
323
|
}), Q({
|
|
320
324
|
/** 重新加载数据源*/
|
|
@@ -323,83 +327,83 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
323
327
|
getOptions: () => r(le),
|
|
324
328
|
/** 获取当前v-model值 */
|
|
325
329
|
getValue: () => r(n)
|
|
326
|
-
}), (e, l) => (A(),
|
|
330
|
+
}), (e, l) => (A(), z("div", {
|
|
327
331
|
ref_key: "selectWrapRef",
|
|
328
332
|
ref: g,
|
|
329
333
|
class: j(r(p))
|
|
330
334
|
}, [
|
|
331
|
-
q(r(Z),
|
|
335
|
+
q(r(Z), Qe({
|
|
332
336
|
ref_key: "selectRef",
|
|
333
337
|
ref: B,
|
|
334
338
|
modelValue: W.value,
|
|
335
339
|
"onUpdate:modelValue": l[0] || (l[0] = (a) => W.value = a)
|
|
336
|
-
}, r(
|
|
340
|
+
}, r(se), {
|
|
337
341
|
multiple: s.multiple,
|
|
338
342
|
filterable: !1,
|
|
339
|
-
placeholder:
|
|
343
|
+
placeholder: ne.value,
|
|
340
344
|
persistent: !1,
|
|
341
345
|
"fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
|
|
342
346
|
disabled: s.disabled,
|
|
343
347
|
"popper-class": `${r(p)}__popper vxe-table--ignore-clear`,
|
|
344
|
-
onVisibleChange:
|
|
345
|
-
onChange:
|
|
346
|
-
onFocus:
|
|
348
|
+
onVisibleChange: Be,
|
|
349
|
+
onChange: Ne,
|
|
350
|
+
onFocus: je
|
|
347
351
|
}), {
|
|
348
|
-
empty:
|
|
349
|
-
|
|
352
|
+
empty: Xe(() => [
|
|
353
|
+
Ye((A(), z("div", {
|
|
350
354
|
"element-loading-text": "加载中",
|
|
351
355
|
class: j(`${r(p)}__panel`),
|
|
352
|
-
style:
|
|
353
|
-
"--columns":
|
|
354
|
-
"--panel-min-width":
|
|
355
|
-
"--panel-width":
|
|
356
|
+
style: Ze({
|
|
357
|
+
"--columns": de.value,
|
|
358
|
+
"--panel-min-width": pe.value,
|
|
359
|
+
"--panel-width": M.value ? `${M.value}px` : "100%"
|
|
356
360
|
})
|
|
357
361
|
}, [
|
|
358
|
-
t.showNav ? (A(), H(
|
|
362
|
+
t.showNav ? (A(), H(rl, {
|
|
359
363
|
key: 0,
|
|
360
364
|
"prefix-cls": r(p),
|
|
361
365
|
keyword: y.value,
|
|
362
366
|
"tree-data": T.value,
|
|
363
|
-
"expanded-keys":
|
|
367
|
+
"expanded-keys": ce.value,
|
|
364
368
|
"left-placeholder": s.leftPlaceholder,
|
|
365
|
-
"onUpdate:keyword":
|
|
369
|
+
"onUpdate:keyword": Pe,
|
|
366
370
|
onSelect: Fe
|
|
367
371
|
}, null, 8, ["prefix-cls", "keyword", "tree-data", "expanded-keys", "left-placeholder"])) : J("", !0),
|
|
368
|
-
q(
|
|
372
|
+
q(ul, {
|
|
369
373
|
ref_key: "middleRef",
|
|
370
374
|
ref: V,
|
|
371
375
|
"prefix-cls": r(p),
|
|
372
376
|
multiple: s.multiple,
|
|
373
377
|
keyword: w.value,
|
|
374
|
-
rows:
|
|
375
|
-
disabled:
|
|
378
|
+
rows: me.value,
|
|
379
|
+
disabled: R.value,
|
|
376
380
|
"show-all": t.showAll,
|
|
377
381
|
"option-per-row": m,
|
|
378
382
|
"row-height": 40,
|
|
379
383
|
"selected-value-set": r(G),
|
|
380
|
-
"is-all-checked": r(
|
|
381
|
-
"is-indeterminate": r(
|
|
384
|
+
"is-all-checked": r(he),
|
|
385
|
+
"is-indeterminate": r(ve),
|
|
382
386
|
"all-checked": Oe.value,
|
|
383
387
|
"scroll-to-group-value": S.value,
|
|
384
|
-
"group-checked-map":
|
|
385
|
-
"group-indeterminate-map":
|
|
388
|
+
"group-checked-map": Ve.value,
|
|
389
|
+
"group-indeterminate-map": Me.value,
|
|
386
390
|
"paste-search": s.pasteSearch,
|
|
387
391
|
separator: s.separator,
|
|
388
392
|
"middle-placeholder": s.middlePlaceholder,
|
|
389
393
|
"show-multiple": s.showMultiple,
|
|
390
|
-
"onUpdate:keyword":
|
|
391
|
-
onAllCheck:
|
|
392
|
-
onCheckAll:
|
|
393
|
-
onGroupCheck:
|
|
394
|
-
onOptionCheck:
|
|
395
|
-
onOptionsCheck:
|
|
394
|
+
"onUpdate:keyword": Re,
|
|
395
|
+
onAllCheck: We,
|
|
396
|
+
onCheckAll: De,
|
|
397
|
+
onGroupCheck: Ke,
|
|
398
|
+
onOptionCheck: Ue,
|
|
399
|
+
onOptionsCheck: _e
|
|
396
400
|
}, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-value-set", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder", "show-multiple"]),
|
|
397
|
-
t.multiple ? (A(), H(
|
|
401
|
+
t.multiple ? (A(), H(sl, {
|
|
398
402
|
key: 1,
|
|
399
403
|
"prefix-cls": r(p),
|
|
400
404
|
multiple: s.multiple,
|
|
401
|
-
disabled:
|
|
402
|
-
"selected-options": r(
|
|
405
|
+
disabled: R.value,
|
|
406
|
+
"selected-options": r(fe),
|
|
403
407
|
onClearAll: ze,
|
|
404
408
|
onRemove: Ie
|
|
405
409
|
}, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : J("", !0)
|
|
@@ -413,5 +417,5 @@ const m = 4, Gl = /* @__PURE__ */ je({
|
|
|
413
417
|
}
|
|
414
418
|
});
|
|
415
419
|
export {
|
|
416
|
-
|
|
420
|
+
Wl as default
|
|
417
421
|
};
|