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