@vue-start/element-pro 0.2.37 → 0.2.38
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/CHANGELOG.md +4 -0
- package/dist/index.d.ts +36 -3
- package/dist/index.es.js +708 -627
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { createExpose as $e, createFormItemCompFn as
|
|
2
|
-
import { ElFormItem as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { keys as
|
|
5
|
-
import { useEffect as _, generateId as $t, useWatch as j, convertCollection as
|
|
6
|
-
const
|
|
1
|
+
import { createExpose as $e, createFormItemCompFn as dt, useProConfig as ce, createExposeObj as L, useGetCompByKey as He, ElementKeys as p, ProForm as U, ProSearchForm as Y, ProFormList as me, ProTable as ee, ProDesc as te, ProCurdDesc as ye, ProCurdForm as se, ProCurdModal as ge, ProUploaderText as ve, ProTip as he, ProCurd as it, ProList as ft, ProPage as mt, ProOperate as yt, ProShowText as be, ProShowDigit as st, ProShowDate as gt, ProShowOptions as Q, ProShowTree as pe } from "@vue-start/pro";
|
|
2
|
+
import { ElFormItem as ae, ElForm as ne, ElLoading as qe, ElDialog as Se, ElDrawer as Pe, ElPagination as Ce, ElPopover as Ke, ElCheckboxGroup as we, ElCheckboxButton as vt, ElCheckbox as Ge, ElRadioGroup as xe, ElRadioButton as ht, ElRadio as bt, ElSelect as ke, ElOption as pt, ElTabs as Ee, ElTabPane as St, ElMenu as H, ElUpload as Re, useFormItem as Pt, ElInputNumber as $, ElTree as Fe, ElDropdown as Te, ElDropdownMenu as Ct, ElDropdownItem as Kt, ElInput as wt, ElDatePicker as xt, ElTimePicker as kt, ElTreeSelect as Et, ElSwitch as Rt, ElCascader as Ft, ElColorPicker as Tt, ElTableColumn as le, ElTable as Me, ElButton as re, ElTableV2 as Ie, ElDescriptions as _e, ElTooltip as Ze, ElRow as Mt, ElCol as It, ElDescriptionsItem as Vt, ElScrollbar as Bt, ElEmpty as Nt } from "element-plus";
|
|
3
|
+
import { defineComponent as x, createVNode as c, mergeProps as s, reactive as Je, ref as R, toRaw as Ot, computed as E, Fragment as Qe, isVNode as Dt, nextTick as Lt } from "vue";
|
|
4
|
+
import { keys as V, omit as v, isBoolean as q, isString as zt, debounce as At, map as T, size as D, pick as G, get as N, isNumber as z, isArray as Xe, filter as oe, reduce as X, isFunction as Ut, forEach as Ve, find as jt, last as Wt } from "lodash";
|
|
5
|
+
import { useEffect as _, generateId as $t, useWatch as j, convertCollection as Ht, isValidFileType as qt, convertFileSize as Be, isSame as Gt, getNameMapByMergeOpts as _t, useUpdateKey as Zt, useResizeObserver as Jt } from "@vue-start/hooks";
|
|
6
|
+
const Ne = () => ({
|
|
7
7
|
name: {
|
|
8
8
|
type: [String, Array]
|
|
9
9
|
}
|
|
10
|
-
}),
|
|
10
|
+
}), Ye = x({
|
|
11
11
|
props: {
|
|
12
|
-
...
|
|
13
|
-
...
|
|
12
|
+
...ae.props,
|
|
13
|
+
...Ne()
|
|
14
14
|
},
|
|
15
15
|
setup: (e, {
|
|
16
16
|
slots: t
|
|
17
17
|
}) => {
|
|
18
|
-
const u =
|
|
19
|
-
return () => c(
|
|
18
|
+
const u = V(Ne());
|
|
19
|
+
return () => c(ae, s(v(e, ...u, "name", "prop"), {
|
|
20
20
|
prop: e.prop || e.name
|
|
21
21
|
}), {
|
|
22
22
|
label: e.label ? () => e.label : void 0,
|
|
23
23
|
...t
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), et = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], Qt = x({
|
|
27
27
|
props: {
|
|
28
|
-
...
|
|
28
|
+
...ne.props,
|
|
29
29
|
hideRequiredMark: {
|
|
30
30
|
type: [Boolean, Object],
|
|
31
31
|
default: void 0
|
|
@@ -36,27 +36,27 @@ const Be = () => ({
|
|
|
36
36
|
emit: u,
|
|
37
37
|
expose: a
|
|
38
38
|
}) => {
|
|
39
|
-
const
|
|
39
|
+
const o = e.model || Je({}), n = R();
|
|
40
40
|
return _(() => {
|
|
41
|
-
!
|
|
42
|
-
var
|
|
43
|
-
(
|
|
44
|
-
|
|
41
|
+
!n.value || (n.value.submit = () => {
|
|
42
|
+
var l;
|
|
43
|
+
(l = n.value) == null || l.validate((f, r) => {
|
|
44
|
+
f ? u("finish", Ot(o)) : u("finishFailed", r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
}, []), a($e(
|
|
48
|
-
ref:
|
|
49
|
-
},
|
|
50
|
-
hideRequiredAsterisk:
|
|
51
|
-
model:
|
|
47
|
+
}, []), a($e(et, n)), () => c(ne, s({
|
|
48
|
+
ref: n
|
|
49
|
+
}, v(e, "model"), {
|
|
50
|
+
hideRequiredAsterisk: q(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
51
|
+
model: o
|
|
52
52
|
}), t);
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
54
|
+
}), B = dt(Ye, (e, t, u) => ({
|
|
55
55
|
modelValue: e,
|
|
56
56
|
"onUpdate:modelValue": t,
|
|
57
57
|
clearable: !0,
|
|
58
58
|
disabled: u
|
|
59
|
-
})),
|
|
59
|
+
})), tt = (e = "comp") => e + "-" + $t(), Xt = () => ({
|
|
60
60
|
loading: {
|
|
61
61
|
type: Boolean
|
|
62
62
|
},
|
|
@@ -84,21 +84,21 @@ const Be = () => ({
|
|
|
84
84
|
customClass: {
|
|
85
85
|
type: String
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), at = x({
|
|
88
88
|
props: {
|
|
89
|
-
...
|
|
89
|
+
...Xt()
|
|
90
90
|
},
|
|
91
91
|
setup: (e, {
|
|
92
92
|
slots: t
|
|
93
93
|
}) => {
|
|
94
|
-
const u =
|
|
94
|
+
const u = tt();
|
|
95
95
|
return _(() => {
|
|
96
96
|
if (!e.loading)
|
|
97
97
|
return;
|
|
98
98
|
let a = e.target;
|
|
99
|
-
if (t.default ? a = document.getElementById(u) : e.target &&
|
|
99
|
+
if (t.default ? a = document.getElementById(u) : e.target && zt(e.target) && (a = document.querySelector("#" + e.target)), !a)
|
|
100
100
|
return;
|
|
101
|
-
const
|
|
101
|
+
const o = qe.service({
|
|
102
102
|
target: a,
|
|
103
103
|
body: e.body,
|
|
104
104
|
fullscreen: e.fullscreen,
|
|
@@ -109,13 +109,13 @@ const Be = () => ({
|
|
|
109
109
|
customClass: e.customClass
|
|
110
110
|
});
|
|
111
111
|
return () => {
|
|
112
|
-
|
|
112
|
+
o && o.close();
|
|
113
113
|
};
|
|
114
114
|
}, () => e.loading), () => t.default ? c("div", {
|
|
115
115
|
id: u
|
|
116
116
|
}, [t.default()]) : null;
|
|
117
117
|
}
|
|
118
|
-
}),
|
|
118
|
+
}), ue = () => ({
|
|
119
119
|
clsName: {
|
|
120
120
|
type: String,
|
|
121
121
|
default: "pro-modal"
|
|
@@ -146,9 +146,9 @@ const Be = () => ({
|
|
|
146
146
|
type: Boolean,
|
|
147
147
|
default: !1
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), nt = x({
|
|
150
150
|
props: {
|
|
151
|
-
...
|
|
151
|
+
...Se.props,
|
|
152
152
|
appendToBody: {
|
|
153
153
|
type: Boolean,
|
|
154
154
|
default: !0
|
|
@@ -157,7 +157,7 @@ const Be = () => ({
|
|
|
157
157
|
type: Boolean,
|
|
158
158
|
default: !0
|
|
159
159
|
},
|
|
160
|
-
...
|
|
160
|
+
...ue()
|
|
161
161
|
},
|
|
162
162
|
setup: (e, {
|
|
163
163
|
slots: t,
|
|
@@ -165,57 +165,57 @@ const Be = () => ({
|
|
|
165
165
|
expose: a
|
|
166
166
|
}) => {
|
|
167
167
|
const {
|
|
168
|
-
t:
|
|
169
|
-
} =
|
|
170
|
-
a(L(
|
|
171
|
-
const
|
|
172
|
-
u("update:modelValue",
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
},
|
|
168
|
+
t: o
|
|
169
|
+
} = ce(), n = R();
|
|
170
|
+
a(L(n));
|
|
171
|
+
const l = (g) => {
|
|
172
|
+
u("update:modelValue", g), u("update:visible", g), g || (u("cancel"), u("closed"));
|
|
173
|
+
}, f = () => {
|
|
174
|
+
l(!1);
|
|
175
|
+
}, r = () => {
|
|
176
176
|
u("ok");
|
|
177
|
-
},
|
|
177
|
+
}, m = He(), d = m(p.ProOperateKey), i = m(p.ScrollKey), P = E(() => [{
|
|
178
178
|
value: "cancel",
|
|
179
|
-
label:
|
|
180
|
-
onClick:
|
|
179
|
+
label: o.value("cancel"),
|
|
180
|
+
onClick: f
|
|
181
181
|
}, {
|
|
182
182
|
value: "ok",
|
|
183
|
-
label:
|
|
183
|
+
label: o.value("confirm"),
|
|
184
184
|
loading: e.confirmLoading,
|
|
185
185
|
extraProps: {
|
|
186
186
|
type: "primary"
|
|
187
187
|
},
|
|
188
|
-
onClick:
|
|
189
|
-
}]),
|
|
188
|
+
onClick: r
|
|
189
|
+
}]), w = V(ue());
|
|
190
190
|
return () => {
|
|
191
|
-
const
|
|
192
|
-
return e.useScroll &&
|
|
193
|
-
class:
|
|
194
|
-
ref:
|
|
195
|
-
},
|
|
196
|
-
closeOnClickModal:
|
|
191
|
+
const g = [e.clsName];
|
|
192
|
+
return e.useScroll && g.push("scroll"), c(Se, s({
|
|
193
|
+
class: g,
|
|
194
|
+
ref: n
|
|
195
|
+
}, v(e, ...w), {
|
|
196
|
+
closeOnClickModal: q(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
|
|
197
197
|
modelValue: e.visible || e.modelValue,
|
|
198
|
-
"onUpdate:modelValue":
|
|
198
|
+
"onUpdate:modelValue": l
|
|
199
199
|
}), {
|
|
200
|
-
footer: e.footer === !1 ? void 0 : () => c(
|
|
201
|
-
items:
|
|
200
|
+
footer: e.footer === !1 ? void 0 : () => c(d, {
|
|
201
|
+
items: P.value
|
|
202
202
|
}, null),
|
|
203
203
|
...t,
|
|
204
204
|
default: () => {
|
|
205
|
-
var
|
|
206
|
-
return e.useScroll ? c(
|
|
205
|
+
var k;
|
|
206
|
+
return e.useScroll ? c(i, s({
|
|
207
207
|
class: `${e.clsName}-scroll`
|
|
208
208
|
}, e.scrollProps), {
|
|
209
209
|
default: () => {
|
|
210
|
-
var
|
|
211
|
-
return [(
|
|
210
|
+
var F;
|
|
211
|
+
return [(F = t.default) == null ? void 0 : F.call(t)];
|
|
212
212
|
}
|
|
213
|
-
}) : (
|
|
213
|
+
}) : (k = t.default) == null ? void 0 : k.call(t);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
}),
|
|
218
|
+
}), Yt = () => ({
|
|
219
219
|
clsName: {
|
|
220
220
|
type: String,
|
|
221
221
|
default: "pro-drawer"
|
|
@@ -242,10 +242,10 @@ const Be = () => ({
|
|
|
242
242
|
type: Boolean,
|
|
243
243
|
default: !1
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), ea = x({
|
|
246
246
|
props: {
|
|
247
|
-
...
|
|
248
|
-
...
|
|
247
|
+
...Pe.props,
|
|
248
|
+
...Yt(),
|
|
249
249
|
appendToBody: {
|
|
250
250
|
type: Boolean,
|
|
251
251
|
default: !0
|
|
@@ -261,56 +261,56 @@ const Be = () => ({
|
|
|
261
261
|
expose: a
|
|
262
262
|
}) => {
|
|
263
263
|
const {
|
|
264
|
-
t:
|
|
265
|
-
} =
|
|
266
|
-
a(L(
|
|
267
|
-
const
|
|
268
|
-
u("update:modelValue",
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
},
|
|
264
|
+
t: o
|
|
265
|
+
} = ce(), n = R();
|
|
266
|
+
a(L(n));
|
|
267
|
+
const l = (g) => {
|
|
268
|
+
u("update:modelValue", g), u("update:visible", g), g || u("cancel");
|
|
269
|
+
}, f = () => {
|
|
270
|
+
l(!1);
|
|
271
|
+
}, r = () => {
|
|
272
272
|
u("ok");
|
|
273
|
-
},
|
|
273
|
+
}, m = He(), d = m(p.ProOperateKey), i = m(p.ScrollKey), P = E(() => [{
|
|
274
274
|
value: "cancel",
|
|
275
|
-
label:
|
|
276
|
-
onClick:
|
|
275
|
+
label: o.value("cancel"),
|
|
276
|
+
onClick: f
|
|
277
277
|
}, {
|
|
278
278
|
value: "ok",
|
|
279
|
-
label:
|
|
279
|
+
label: o.value("confirm"),
|
|
280
280
|
loading: e.confirmLoading,
|
|
281
281
|
extraProps: {
|
|
282
282
|
type: "primary"
|
|
283
283
|
},
|
|
284
|
-
onClick:
|
|
285
|
-
}]),
|
|
284
|
+
onClick: r
|
|
285
|
+
}]), w = V(ue());
|
|
286
286
|
return () => {
|
|
287
|
-
const
|
|
288
|
-
return e.useScroll &&
|
|
289
|
-
class:
|
|
290
|
-
ref:
|
|
291
|
-
},
|
|
287
|
+
const g = [e.clsName];
|
|
288
|
+
return e.useScroll && g.push("scroll"), c(Pe, s({
|
|
289
|
+
class: g,
|
|
290
|
+
ref: n
|
|
291
|
+
}, v(e, w), {
|
|
292
292
|
modelValue: e.visible || e.modelValue,
|
|
293
|
-
"onUpdate:modelValue":
|
|
293
|
+
"onUpdate:modelValue": l
|
|
294
294
|
}), {
|
|
295
|
-
footer: e.footer === !1 ? void 0 : () => c(
|
|
296
|
-
items:
|
|
295
|
+
footer: e.footer === !1 ? void 0 : () => c(d, {
|
|
296
|
+
items: P.value
|
|
297
297
|
}, null),
|
|
298
298
|
...t,
|
|
299
299
|
default: () => {
|
|
300
|
-
var
|
|
301
|
-
return e.useScroll ? c(
|
|
300
|
+
var k;
|
|
301
|
+
return e.useScroll ? c(i, s({
|
|
302
302
|
class: `${e.clsName}-scroll`
|
|
303
303
|
}, e.scrollProps), {
|
|
304
304
|
default: () => {
|
|
305
|
-
var
|
|
306
|
-
return [(
|
|
305
|
+
var F;
|
|
306
|
+
return [(F = t.default) == null ? void 0 : F.call(t)];
|
|
307
307
|
}
|
|
308
|
-
}) : (
|
|
308
|
+
}) : (k = t.default) == null ? void 0 : k.call(t);
|
|
309
309
|
}
|
|
310
310
|
});
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), ta = x({
|
|
314
314
|
props: {
|
|
315
315
|
...Ce.props,
|
|
316
316
|
page: {
|
|
@@ -322,29 +322,29 @@ const Be = () => ({
|
|
|
322
322
|
slots: t,
|
|
323
323
|
emit: u
|
|
324
324
|
}) => {
|
|
325
|
-
const a =
|
|
325
|
+
const a = R(e.page), o = R(e.pageSize);
|
|
326
326
|
j(() => {
|
|
327
327
|
a.value !== e.page && (a.value = e.page);
|
|
328
328
|
}, () => e.page), j(() => {
|
|
329
|
-
|
|
329
|
+
o.value !== e.pageSize && (o.value = e.pageSize);
|
|
330
330
|
}, () => e.pageSize);
|
|
331
|
-
const
|
|
332
|
-
u("composeChange", a.value,
|
|
333
|
-
}, 300),
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
|
|
331
|
+
const n = At(() => {
|
|
332
|
+
u("composeChange", a.value, o.value);
|
|
333
|
+
}, 300), l = () => {
|
|
334
|
+
n(), u("update:page", a.value);
|
|
335
|
+
}, f = () => {
|
|
336
|
+
n(), u("update:pageSize", o.value);
|
|
337
337
|
};
|
|
338
338
|
return () => c(Ce, s({
|
|
339
339
|
currentPage: a.value,
|
|
340
|
-
"onUpdate:currentPage": (
|
|
341
|
-
pageSize:
|
|
342
|
-
"onUpdate:pageSize": (
|
|
343
|
-
onCurrentChange:
|
|
344
|
-
onSizeChange:
|
|
345
|
-
},
|
|
340
|
+
"onUpdate:currentPage": (r) => a.value = r,
|
|
341
|
+
pageSize: o.value,
|
|
342
|
+
"onUpdate:pageSize": (r) => o.value = r,
|
|
343
|
+
onCurrentChange: l,
|
|
344
|
+
onSizeChange: f
|
|
345
|
+
}, v(e, "currentPage", "pageSize")), t);
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), aa = x({
|
|
348
348
|
props: {
|
|
349
349
|
...Ke.props
|
|
350
350
|
},
|
|
@@ -354,7 +354,7 @@ const Be = () => ({
|
|
|
354
354
|
reference: t.default,
|
|
355
355
|
default: t.content
|
|
356
356
|
})
|
|
357
|
-
}),
|
|
357
|
+
}), Oe = () => ({
|
|
358
358
|
options: Array,
|
|
359
359
|
buttonStyle: {
|
|
360
360
|
type: String,
|
|
@@ -364,49 +364,49 @@ const Be = () => ({
|
|
|
364
364
|
type: String,
|
|
365
365
|
default: "default"
|
|
366
366
|
}
|
|
367
|
-
}),
|
|
367
|
+
}), na = x({
|
|
368
368
|
props: {
|
|
369
|
-
...
|
|
370
|
-
...
|
|
369
|
+
...we.props,
|
|
370
|
+
...Oe()
|
|
371
371
|
},
|
|
372
372
|
setup: (e, {
|
|
373
373
|
slots: t,
|
|
374
374
|
emit: u,
|
|
375
375
|
expose: a
|
|
376
376
|
}) => {
|
|
377
|
-
const
|
|
378
|
-
a(L(
|
|
379
|
-
const
|
|
380
|
-
return () => c(
|
|
381
|
-
ref:
|
|
382
|
-
},
|
|
383
|
-
"onUpdate:modelValue": (
|
|
384
|
-
u("update:modelValue",
|
|
377
|
+
const o = R();
|
|
378
|
+
a(L(o));
|
|
379
|
+
const n = V(Oe());
|
|
380
|
+
return () => c(we, s({
|
|
381
|
+
ref: o
|
|
382
|
+
}, v(e, n), {
|
|
383
|
+
"onUpdate:modelValue": (l) => {
|
|
384
|
+
u("update:modelValue", l || void 0);
|
|
385
385
|
}
|
|
386
386
|
}), {
|
|
387
387
|
default: () => {
|
|
388
|
-
var
|
|
389
|
-
return [(
|
|
390
|
-
var
|
|
391
|
-
const
|
|
392
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
393
|
-
key:
|
|
394
|
-
},
|
|
395
|
-
label:
|
|
388
|
+
var l, f;
|
|
389
|
+
return [(l = t.start) == null ? void 0 : l.call(t), T(e.options, (r) => {
|
|
390
|
+
var d;
|
|
391
|
+
const m = (d = t.label) == null ? void 0 : d.call(t, r);
|
|
392
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(vt, s({
|
|
393
|
+
key: r.value
|
|
394
|
+
}, v(r, "value"), {
|
|
395
|
+
label: r.value
|
|
396
396
|
}), {
|
|
397
|
-
default: () => [
|
|
398
|
-
}) : c(
|
|
399
|
-
key:
|
|
400
|
-
},
|
|
401
|
-
label:
|
|
397
|
+
default: () => [m || r.label]
|
|
398
|
+
}) : c(Ge, s({
|
|
399
|
+
key: r.value
|
|
400
|
+
}, r, {
|
|
401
|
+
label: r.value
|
|
402
402
|
}), {
|
|
403
|
-
default: () => [
|
|
403
|
+
default: () => [m || r.label]
|
|
404
404
|
});
|
|
405
|
-
}), (
|
|
405
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
406
406
|
}
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
}),
|
|
409
|
+
}), De = () => ({
|
|
410
410
|
options: {
|
|
411
411
|
type: Array
|
|
412
412
|
},
|
|
@@ -418,88 +418,88 @@ const Be = () => ({
|
|
|
418
418
|
type: String,
|
|
419
419
|
default: "default"
|
|
420
420
|
}
|
|
421
|
-
}),
|
|
421
|
+
}), la = x({
|
|
422
422
|
props: {
|
|
423
|
-
...
|
|
424
|
-
...
|
|
423
|
+
...xe.props,
|
|
424
|
+
...De()
|
|
425
425
|
},
|
|
426
426
|
setup: (e, {
|
|
427
427
|
slots: t,
|
|
428
428
|
emit: u,
|
|
429
429
|
expose: a
|
|
430
430
|
}) => {
|
|
431
|
-
const
|
|
432
|
-
a(L(
|
|
433
|
-
const
|
|
434
|
-
return () => c(
|
|
435
|
-
ref:
|
|
436
|
-
},
|
|
437
|
-
"onUpdate:modelValue": (
|
|
438
|
-
u("update:modelValue",
|
|
431
|
+
const o = R();
|
|
432
|
+
a(L(o));
|
|
433
|
+
const n = V(De());
|
|
434
|
+
return () => c(xe, s({
|
|
435
|
+
ref: o
|
|
436
|
+
}, v(e, n), {
|
|
437
|
+
"onUpdate:modelValue": (l) => {
|
|
438
|
+
u("update:modelValue", l);
|
|
439
439
|
}
|
|
440
440
|
}), {
|
|
441
441
|
default: () => {
|
|
442
|
-
var
|
|
443
|
-
return [(
|
|
444
|
-
var
|
|
445
|
-
const
|
|
446
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
447
|
-
key:
|
|
448
|
-
},
|
|
449
|
-
label:
|
|
442
|
+
var l, f;
|
|
443
|
+
return [(l = t.start) == null ? void 0 : l.call(t), T(e.options, (r) => {
|
|
444
|
+
var d;
|
|
445
|
+
const m = (d = t.label) == null ? void 0 : d.call(t, r);
|
|
446
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(ht, s({
|
|
447
|
+
key: r.value
|
|
448
|
+
}, v(r, "value"), {
|
|
449
|
+
label: r.value
|
|
450
450
|
}), {
|
|
451
|
-
default: () => [
|
|
452
|
-
}) : c(
|
|
453
|
-
key:
|
|
454
|
-
},
|
|
455
|
-
label:
|
|
451
|
+
default: () => [m || r.label]
|
|
452
|
+
}) : c(bt, s({
|
|
453
|
+
key: r.value
|
|
454
|
+
}, v(r, "value"), {
|
|
455
|
+
label: r.value
|
|
456
456
|
}), {
|
|
457
|
-
default: () => [
|
|
457
|
+
default: () => [m || r.label]
|
|
458
458
|
});
|
|
459
|
-
}), (
|
|
459
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
}),
|
|
463
|
+
}), Le = () => ({
|
|
464
464
|
options: Array
|
|
465
|
-
}),
|
|
465
|
+
}), ra = x({
|
|
466
466
|
props: {
|
|
467
|
-
...
|
|
468
|
-
...
|
|
467
|
+
...ke.props,
|
|
468
|
+
...Le()
|
|
469
469
|
},
|
|
470
470
|
setup: (e, {
|
|
471
471
|
slots: t,
|
|
472
472
|
emit: u,
|
|
473
473
|
expose: a
|
|
474
474
|
}) => {
|
|
475
|
-
const
|
|
476
|
-
a(L(
|
|
477
|
-
const
|
|
478
|
-
return () => c(
|
|
479
|
-
ref:
|
|
480
|
-
},
|
|
481
|
-
"onUpdate:modelValue": (
|
|
482
|
-
u("update:modelValue",
|
|
475
|
+
const o = R();
|
|
476
|
+
a(L(o));
|
|
477
|
+
const n = V(Le());
|
|
478
|
+
return () => c(ke, s({
|
|
479
|
+
ref: o
|
|
480
|
+
}, v(e, n), {
|
|
481
|
+
"onUpdate:modelValue": (l) => {
|
|
482
|
+
u("update:modelValue", l || void 0);
|
|
483
483
|
}
|
|
484
484
|
}), {
|
|
485
485
|
default: () => {
|
|
486
|
-
var
|
|
487
|
-
return [(
|
|
488
|
-
var
|
|
489
|
-
const
|
|
490
|
-
return c(
|
|
491
|
-
key:
|
|
492
|
-
},
|
|
493
|
-
default: () => [
|
|
486
|
+
var l, f;
|
|
487
|
+
return [(l = t.start) == null ? void 0 : l.call(t), T(e.options, (r) => {
|
|
488
|
+
var d;
|
|
489
|
+
const m = (d = t.label) == null ? void 0 : d.call(t, r);
|
|
490
|
+
return c(pt, s({
|
|
491
|
+
key: r.value
|
|
492
|
+
}, r), {
|
|
493
|
+
default: () => [m || r.label]
|
|
494
494
|
});
|
|
495
|
-
}), (
|
|
495
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
496
496
|
},
|
|
497
|
-
...
|
|
497
|
+
...v(t, "default")
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
500
|
+
}), Va = x({
|
|
501
501
|
props: {
|
|
502
|
-
...
|
|
502
|
+
...Ee.props,
|
|
503
503
|
options: {
|
|
504
504
|
type: Array
|
|
505
505
|
}
|
|
@@ -507,23 +507,23 @@ const Be = () => ({
|
|
|
507
507
|
setup: (e, {
|
|
508
508
|
slots: t,
|
|
509
509
|
emit: u
|
|
510
|
-
}) => () => c(
|
|
510
|
+
}) => () => c(Ee, s(v(e, "options"), {
|
|
511
511
|
"onUpdate:modelValue": (a) => {
|
|
512
512
|
u("update:modelValue", a);
|
|
513
513
|
}
|
|
514
514
|
}), {
|
|
515
515
|
default: () => {
|
|
516
|
-
var a,
|
|
517
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
518
|
-
key:
|
|
519
|
-
},
|
|
520
|
-
name:
|
|
516
|
+
var a, o;
|
|
517
|
+
return [(a = t.start) == null ? void 0 : a.call(t), T(e.options, (n) => c(St, s({
|
|
518
|
+
key: n.value
|
|
519
|
+
}, v(n, "value"), {
|
|
520
|
+
name: n.value
|
|
521
521
|
}), {
|
|
522
522
|
label: () => {
|
|
523
|
-
var
|
|
524
|
-
return ((
|
|
523
|
+
var l;
|
|
524
|
+
return ((l = t.label) == null ? void 0 : l.call(t, n)) || n.label;
|
|
525
525
|
}
|
|
526
|
-
})), (
|
|
526
|
+
})), (o = t.end) == null ? void 0 : o.call(t)];
|
|
527
527
|
},
|
|
528
528
|
...t
|
|
529
529
|
})
|
|
@@ -537,7 +537,7 @@ const Be = () => ({
|
|
|
537
537
|
onMenuItemClick: {
|
|
538
538
|
type: Function
|
|
539
539
|
}
|
|
540
|
-
},
|
|
540
|
+
}, lt = V(de), rt = x({
|
|
541
541
|
inheritAttrs: !1,
|
|
542
542
|
props: {
|
|
543
543
|
menu: {
|
|
@@ -553,35 +553,35 @@ const Be = () => ({
|
|
|
553
553
|
(a = e.onMenuItemClick) == null || a.call(e, e.menu);
|
|
554
554
|
};
|
|
555
555
|
return () => {
|
|
556
|
-
var
|
|
556
|
+
var o, n;
|
|
557
557
|
const a = e.menu;
|
|
558
|
-
return (a == null ? void 0 : a.children) && D(a.children) > 0 ? c(
|
|
558
|
+
return (a == null ? void 0 : a.children) && D(a.children) > 0 ? c(H.SubMenu, s({
|
|
559
559
|
index: a == null ? void 0 : a.value
|
|
560
|
-
}, (
|
|
561
|
-
default: () => [
|
|
562
|
-
menu:
|
|
563
|
-
},
|
|
560
|
+
}, (o = e.convertSubMenuProps) == null ? void 0 : o.call(e, a)), {
|
|
561
|
+
default: () => [T(a.children, (l) => c(rt, s({
|
|
562
|
+
menu: l
|
|
563
|
+
}, G(e, lt)), t))],
|
|
564
564
|
title: () => {
|
|
565
|
-
var
|
|
566
|
-
return ((
|
|
565
|
+
var l;
|
|
566
|
+
return ((l = t.title) == null ? void 0 : l.call(t, a)) || (a == null ? void 0 : a.label);
|
|
567
567
|
}
|
|
568
|
-
}) : c(
|
|
568
|
+
}) : c(H.MenuItem, s({
|
|
569
569
|
index: a == null ? void 0 : a.value
|
|
570
|
-
}, (
|
|
570
|
+
}, (n = e.convertMenuItemProps) == null ? void 0 : n.call(e, a), {
|
|
571
571
|
onClick: u
|
|
572
572
|
}), {
|
|
573
573
|
title: () => {
|
|
574
|
-
var
|
|
575
|
-
return ((
|
|
574
|
+
var l;
|
|
575
|
+
return ((l = t.title) == null ? void 0 : l.call(t, a)) || (a == null ? void 0 : a.label);
|
|
576
576
|
},
|
|
577
577
|
default: t.default ? () => {
|
|
578
|
-
var
|
|
579
|
-
return (
|
|
578
|
+
var l;
|
|
579
|
+
return (l = t.default) == null ? void 0 : l.call(t, a);
|
|
580
580
|
} : void 0
|
|
581
581
|
});
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
}),
|
|
584
|
+
}), ze = () => ({
|
|
585
585
|
activeKey: {
|
|
586
586
|
type: String
|
|
587
587
|
},
|
|
@@ -597,42 +597,42 @@ const Be = () => ({
|
|
|
597
597
|
}
|
|
598
598
|
},
|
|
599
599
|
...de
|
|
600
|
-
}),
|
|
600
|
+
}), oa = x({
|
|
601
601
|
props: {
|
|
602
|
-
...
|
|
603
|
-
...
|
|
602
|
+
...v(H.props, "defaultActive"),
|
|
603
|
+
...ze()
|
|
604
604
|
},
|
|
605
605
|
setup: (e, {
|
|
606
606
|
slots: t
|
|
607
607
|
}) => {
|
|
608
|
-
const u =
|
|
608
|
+
const u = R(e.activeKey);
|
|
609
609
|
j(() => {
|
|
610
610
|
e.activeKey !== u.value && (u.value = e.activeKey);
|
|
611
611
|
}, () => e.activeKey);
|
|
612
|
-
const a =
|
|
613
|
-
var
|
|
614
|
-
return
|
|
615
|
-
var
|
|
616
|
-
const
|
|
612
|
+
const a = E(() => {
|
|
613
|
+
var n;
|
|
614
|
+
return Ht(e.options, (l) => {
|
|
615
|
+
var m, d;
|
|
616
|
+
const f = ((m = e.fieldNames) == null ? void 0 : m.value) || "value", r = ((d = e.fieldNames) == null ? void 0 : d.label) || "label";
|
|
617
617
|
return {
|
|
618
|
-
...
|
|
619
|
-
value: N(
|
|
620
|
-
label: N(
|
|
618
|
+
...v(l, f, r),
|
|
619
|
+
value: N(l, f),
|
|
620
|
+
label: N(l, r)
|
|
621
621
|
};
|
|
622
622
|
}, {
|
|
623
|
-
children: ((
|
|
623
|
+
children: ((n = e.fieldNames) == null ? void 0 : n.children) || "children",
|
|
624
624
|
childrenName: "children"
|
|
625
625
|
});
|
|
626
|
-
}),
|
|
627
|
-
return () => c(
|
|
626
|
+
}), o = V(ze());
|
|
627
|
+
return () => c(H, s({
|
|
628
628
|
defaultActive: u.value
|
|
629
|
-
},
|
|
630
|
-
default: () => c(
|
|
631
|
-
menu:
|
|
632
|
-
},
|
|
629
|
+
}, v(e, o)), {
|
|
630
|
+
default: () => c(Qe, null, [T(a.value, (n) => c(rt, s({
|
|
631
|
+
menu: n
|
|
632
|
+
}, G(e, lt)), t))])
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
}),
|
|
635
|
+
}), Ae = () => ({
|
|
636
636
|
modelValue: {
|
|
637
637
|
type: Array,
|
|
638
638
|
default: void 0
|
|
@@ -663,10 +663,10 @@ const Be = () => ({
|
|
|
663
663
|
type: Function,
|
|
664
664
|
default: void 0
|
|
665
665
|
}
|
|
666
|
-
}),
|
|
666
|
+
}), ua = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], ot = x({
|
|
667
667
|
props: {
|
|
668
|
-
...
|
|
669
|
-
...
|
|
668
|
+
...v(Re.props, "fileList"),
|
|
669
|
+
...Ae()
|
|
670
670
|
},
|
|
671
671
|
setup: (e, {
|
|
672
672
|
slots: t,
|
|
@@ -674,101 +674,101 @@ const Be = () => ({
|
|
|
674
674
|
emit: a
|
|
675
675
|
}) => {
|
|
676
676
|
const {
|
|
677
|
-
showMsg:
|
|
678
|
-
t:
|
|
679
|
-
} =
|
|
680
|
-
u(L(
|
|
677
|
+
showMsg: o,
|
|
678
|
+
t: n
|
|
679
|
+
} = ce(), l = R();
|
|
680
|
+
u(L(l, ua));
|
|
681
681
|
const {
|
|
682
|
-
formItem:
|
|
683
|
-
} =
|
|
684
|
-
var
|
|
685
|
-
return ((
|
|
686
|
-
}) : [],
|
|
687
|
-
let
|
|
688
|
-
const
|
|
689
|
-
var
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
a("update:modelValue",
|
|
693
|
-
var
|
|
694
|
-
return ((
|
|
695
|
-
})), (
|
|
682
|
+
formItem: f
|
|
683
|
+
} = Pt(), r = () => Xe(e.modelValue) ? T(e.modelValue, (y) => {
|
|
684
|
+
var h;
|
|
685
|
+
return ((h = e.convertItemData) == null ? void 0 : h.call(e, y)) || y;
|
|
686
|
+
}) : [], m = R(r());
|
|
687
|
+
let d = !1;
|
|
688
|
+
const i = () => {
|
|
689
|
+
var h;
|
|
690
|
+
d = !0;
|
|
691
|
+
const y = oe(m.value, (b) => b.status === "success");
|
|
692
|
+
a("update:modelValue", T(y, (b) => {
|
|
693
|
+
var K;
|
|
694
|
+
return ((K = e.convertResponseData) == null ? void 0 : K.call(e, b)) || b;
|
|
695
|
+
})), (h = f == null ? void 0 : f.validate) == null || h.call(f, "change");
|
|
696
696
|
};
|
|
697
697
|
j(() => {
|
|
698
|
-
|
|
698
|
+
d || (m.value = r(), d = !1);
|
|
699
699
|
}, () => e.modelValue);
|
|
700
|
-
let
|
|
701
|
-
const
|
|
702
|
-
e.globalLoading && (
|
|
700
|
+
let P;
|
|
701
|
+
const w = () => {
|
|
702
|
+
e.globalLoading && (P = qe.service({
|
|
703
703
|
lock: !0,
|
|
704
|
-
text:
|
|
705
|
-
...
|
|
704
|
+
text: n.value("uploadingWatting"),
|
|
705
|
+
...q(e.globalLoading) ? {} : e.globalLoading
|
|
706
706
|
}));
|
|
707
|
-
},
|
|
708
|
-
e.globalLoading && (
|
|
707
|
+
}, g = () => {
|
|
708
|
+
e.globalLoading && (P == null || P.close());
|
|
709
709
|
};
|
|
710
710
|
_(() => () => {
|
|
711
|
-
|
|
711
|
+
g();
|
|
712
712
|
}, []);
|
|
713
|
-
const
|
|
713
|
+
const k = (y, h, b) => {
|
|
714
714
|
if (e.onErrorMsg) {
|
|
715
|
-
e.onErrorMsg(
|
|
715
|
+
e.onErrorMsg(y, h);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
|
|
718
|
+
o({
|
|
719
719
|
type: "error",
|
|
720
|
-
message:
|
|
720
|
+
message: h
|
|
721
721
|
});
|
|
722
|
-
},
|
|
723
|
-
var
|
|
722
|
+
}, F = (y) => {
|
|
723
|
+
var h;
|
|
724
724
|
if (e.beforeUpload)
|
|
725
|
-
return e.beforeUpload(
|
|
726
|
-
if (e.accept && !
|
|
727
|
-
return
|
|
725
|
+
return e.beforeUpload(y);
|
|
726
|
+
if (e.accept && !qt(e.accept, y.name))
|
|
727
|
+
return k("FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`, {
|
|
728
728
|
accept: e.accept.replace(/,/g, "\uFF0C")
|
|
729
729
|
}), !1;
|
|
730
|
-
if (
|
|
731
|
-
if (
|
|
732
|
-
return
|
|
733
|
-
if (
|
|
734
|
-
return
|
|
735
|
-
maxSize:
|
|
730
|
+
if (z(y.size)) {
|
|
731
|
+
if (y.size <= 0)
|
|
732
|
+
return k("FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
|
|
733
|
+
if (z(e.maxSize) && y.size > e.maxSize)
|
|
734
|
+
return k("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${Be(e.maxSize)}\u7684\u6587\u4EF6`, {
|
|
735
|
+
maxSize: Be(e.maxSize)
|
|
736
736
|
}), !1;
|
|
737
737
|
}
|
|
738
|
-
return (
|
|
739
|
-
}, Z = (
|
|
740
|
-
var
|
|
741
|
-
(
|
|
742
|
-
},
|
|
743
|
-
var
|
|
744
|
-
(
|
|
745
|
-
},
|
|
746
|
-
var
|
|
747
|
-
|
|
748
|
-
},
|
|
738
|
+
return (h = e.onStart) == null || h.call(e, y), w(), !0;
|
|
739
|
+
}, Z = (y, h, b) => {
|
|
740
|
+
var K;
|
|
741
|
+
(K = e.onSuccess) == null || K.call(e, y, h, b), i(), g();
|
|
742
|
+
}, J = (y, h, b) => {
|
|
743
|
+
var K;
|
|
744
|
+
(K = e.onError) == null || K.call(e, y, h, b), g(), k("UploadError", "\u4E0A\u4F20\u5931\u8D25");
|
|
745
|
+
}, S = (y, h) => {
|
|
746
|
+
var b;
|
|
747
|
+
m.value = oe(m.value, (K) => !(y.uid === K.uid && y.name === K.name)), (b = e.onRemove) == null || b.call(e, y, h), i();
|
|
748
|
+
}, C = E(() => z(e.limit) ? e.limit > D(m.value) : !0), M = V(Ae());
|
|
749
749
|
return () => {
|
|
750
|
-
var
|
|
750
|
+
var y, h;
|
|
751
751
|
return c("div", {
|
|
752
|
-
class: `pro-uploader ${
|
|
753
|
-
}, [(
|
|
754
|
-
ref:
|
|
755
|
-
fileList:
|
|
756
|
-
"onUpdate:fileList": (
|
|
757
|
-
},
|
|
758
|
-
beforeUpload:
|
|
752
|
+
class: `pro-uploader ${C.value ? "" : "pro-uploader-limit"}`
|
|
753
|
+
}, [(y = t.start) == null ? void 0 : y.call(t), c(Re, s({
|
|
754
|
+
ref: l,
|
|
755
|
+
fileList: m.value,
|
|
756
|
+
"onUpdate:fileList": (b) => m.value = b
|
|
757
|
+
}, v(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...M), {
|
|
758
|
+
beforeUpload: F,
|
|
759
759
|
onSuccess: Z,
|
|
760
|
-
onError:
|
|
761
|
-
onRemove:
|
|
760
|
+
onError: J,
|
|
761
|
+
onRemove: S
|
|
762
762
|
}), {
|
|
763
763
|
default: () => {
|
|
764
|
-
var
|
|
765
|
-
return [
|
|
764
|
+
var b, K;
|
|
765
|
+
return [C.value && c(Qe, null, [((b = t.default) == null ? void 0 : b.call(t)) || ((K = e.renderDom) == null ? void 0 : K.call(e))])];
|
|
766
766
|
},
|
|
767
|
-
...
|
|
768
|
-
}), (
|
|
767
|
+
...v(t, "default")
|
|
768
|
+
}), (h = t.end) == null ? void 0 : h.call(t)]);
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
|
-
}),
|
|
771
|
+
}), Ue = () => ({
|
|
772
772
|
modelValue: {
|
|
773
773
|
type: Array
|
|
774
774
|
},
|
|
@@ -785,54 +785,54 @@ const Be = () => ({
|
|
|
785
785
|
divider: {
|
|
786
786
|
type: Function
|
|
787
787
|
}
|
|
788
|
-
}),
|
|
788
|
+
}), ca = x({
|
|
789
789
|
props: {
|
|
790
|
-
...
|
|
790
|
+
...v($.props, "modelValue"),
|
|
791
791
|
controlsPosition: {
|
|
792
792
|
type: String,
|
|
793
793
|
default: "right"
|
|
794
794
|
},
|
|
795
|
-
...
|
|
795
|
+
...Ue()
|
|
796
796
|
},
|
|
797
797
|
setup: (e, {
|
|
798
798
|
slots: t,
|
|
799
799
|
emit: u
|
|
800
800
|
}) => {
|
|
801
|
-
const a =
|
|
802
|
-
let
|
|
801
|
+
const a = R(N(e.modelValue, 0)), o = R(N(e.modelValue, 1));
|
|
802
|
+
let n = !1;
|
|
803
803
|
j(() => {
|
|
804
|
-
|
|
804
|
+
n || (a.value = N(e.modelValue, 0), o.value = N(e.modelValue, 1)), n = !1;
|
|
805
805
|
}, [e.modelValue, () => e.modelValue]);
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
},
|
|
809
|
-
for (let
|
|
810
|
-
if (
|
|
811
|
-
return
|
|
812
|
-
},
|
|
813
|
-
var
|
|
814
|
-
return
|
|
815
|
-
}),
|
|
816
|
-
var
|
|
817
|
-
return
|
|
818
|
-
}),
|
|
806
|
+
const l = () => {
|
|
807
|
+
n = !0, e.singleEmit ? u("update:modelValue", [a.value, o.value]) : z(a.value) && z(o.value) ? u("update:modelValue", [a.value, o.value]) : u("update:modelValue", null);
|
|
808
|
+
}, f = (i) => {
|
|
809
|
+
for (let P = 0; P < i.length; P++)
|
|
810
|
+
if (z(i[P]))
|
|
811
|
+
return i[P];
|
|
812
|
+
}, r = E(() => {
|
|
813
|
+
var i;
|
|
814
|
+
return f([o.value, (i = e.start) == null ? void 0 : i.max, e.max]);
|
|
815
|
+
}), m = E(() => {
|
|
816
|
+
var i;
|
|
817
|
+
return f([a.value, (i = e.end) == null ? void 0 : i.min, e.min]);
|
|
818
|
+
}), d = V(Ue());
|
|
819
819
|
return () => {
|
|
820
|
-
var
|
|
821
|
-
const
|
|
820
|
+
var P, w;
|
|
821
|
+
const i = v(e, ...d, "min", "max");
|
|
822
822
|
return c("span", {
|
|
823
823
|
class: "pro-number-range"
|
|
824
|
-
}, [c(
|
|
825
|
-
max:
|
|
824
|
+
}, [c($, s(i, v(e.start, "max"), {
|
|
825
|
+
max: r.value,
|
|
826
826
|
modelValue: a.value,
|
|
827
|
-
"onUpdate:modelValue": [(
|
|
828
|
-
}), null), c("span", null, [((
|
|
829
|
-
min:
|
|
830
|
-
modelValue:
|
|
831
|
-
"onUpdate:modelValue": [(
|
|
827
|
+
"onUpdate:modelValue": [(g) => a.value = g, l]
|
|
828
|
+
}), null), c("span", null, [((P = t.divider) == null ? void 0 : P.call(t)) || ((w = e.divider) == null ? void 0 : w.call(e)) || " - "]), c($, s(i, v(e.start, "min"), {
|
|
829
|
+
min: m.value,
|
|
830
|
+
modelValue: o.value,
|
|
831
|
+
"onUpdate:modelValue": [(g) => o.value = g, l]
|
|
832
832
|
}), null)]);
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
|
-
}),
|
|
835
|
+
}), je = () => ({
|
|
836
836
|
treeData: {
|
|
837
837
|
type: Array
|
|
838
838
|
},
|
|
@@ -849,126 +849,126 @@ const Be = () => ({
|
|
|
849
849
|
checkedKeys: {
|
|
850
850
|
type: Array
|
|
851
851
|
}
|
|
852
|
-
}),
|
|
852
|
+
}), Ba = x({
|
|
853
853
|
props: {
|
|
854
|
-
...
|
|
855
|
-
...
|
|
854
|
+
...Fe.props,
|
|
855
|
+
...je()
|
|
856
856
|
},
|
|
857
857
|
setup: (e, {
|
|
858
858
|
slots: t
|
|
859
859
|
}) => {
|
|
860
|
-
const u =
|
|
861
|
-
const
|
|
862
|
-
if (!!
|
|
860
|
+
const u = V(je()), o = (() => {
|
|
861
|
+
const n = e.fieldNames;
|
|
862
|
+
if (!!n)
|
|
863
863
|
return {
|
|
864
|
-
label:
|
|
865
|
-
children:
|
|
866
|
-
disabled:
|
|
867
|
-
isLeaf:
|
|
868
|
-
class:
|
|
864
|
+
label: n.title,
|
|
865
|
+
children: n.children,
|
|
866
|
+
disabled: n.disabled,
|
|
867
|
+
isLeaf: n.isLeaf,
|
|
868
|
+
class: n.class
|
|
869
869
|
};
|
|
870
870
|
})();
|
|
871
871
|
return () => {
|
|
872
|
-
var
|
|
873
|
-
return c(
|
|
872
|
+
var n;
|
|
873
|
+
return c(Fe, s(v(e, u), {
|
|
874
874
|
data: e.treeData || e.data,
|
|
875
|
-
props:
|
|
876
|
-
nodeKey: ((
|
|
877
|
-
showCheckbox:
|
|
875
|
+
props: o || e.props,
|
|
876
|
+
nodeKey: ((n = e.fieldNames) == null ? void 0 : n.key) || e.nodeKey,
|
|
877
|
+
showCheckbox: q(e.selectable) ? e.selectable : e.showCheckbox,
|
|
878
878
|
defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
|
|
879
879
|
defaultCheckedKeys: e.checkedKeys || e.checkedKeys
|
|
880
880
|
}), t);
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
});
|
|
884
|
-
function
|
|
885
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
884
|
+
function da(e) {
|
|
885
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Dt(e);
|
|
886
886
|
}
|
|
887
|
-
const
|
|
887
|
+
const We = () => ({
|
|
888
888
|
options: Array
|
|
889
|
-
}),
|
|
889
|
+
}), ia = x({
|
|
890
890
|
props: {
|
|
891
|
-
...
|
|
892
|
-
...
|
|
891
|
+
...Te.props,
|
|
892
|
+
...We()
|
|
893
893
|
},
|
|
894
894
|
setup: (e, {
|
|
895
895
|
slots: t,
|
|
896
896
|
expose: u
|
|
897
897
|
}) => {
|
|
898
|
-
const a =
|
|
898
|
+
const a = R();
|
|
899
899
|
u(L(a));
|
|
900
|
-
const
|
|
901
|
-
return () => c(
|
|
900
|
+
const o = V(We());
|
|
901
|
+
return () => c(Te, s({
|
|
902
902
|
ref: a
|
|
903
|
-
},
|
|
903
|
+
}, v(e, o)), {
|
|
904
904
|
dropdown: () => {
|
|
905
|
-
let
|
|
906
|
-
return c(
|
|
907
|
-
var
|
|
908
|
-
const
|
|
909
|
-
return c(
|
|
910
|
-
command:
|
|
911
|
-
},
|
|
912
|
-
default: () => [
|
|
905
|
+
let n;
|
|
906
|
+
return c(Ct, null, da(n = T(e.options, (l) => {
|
|
907
|
+
var r;
|
|
908
|
+
const f = (r = t.label) == null ? void 0 : r.call(t, l);
|
|
909
|
+
return c(Kt, s({
|
|
910
|
+
command: l.value
|
|
911
|
+
}, v(l, "value", "label")), {
|
|
912
|
+
default: () => [f || l.label]
|
|
913
913
|
});
|
|
914
|
-
})) ?
|
|
915
|
-
default: () => [
|
|
914
|
+
})) ? n : {
|
|
915
|
+
default: () => [n]
|
|
916
916
|
});
|
|
917
917
|
},
|
|
918
918
|
...t
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
}),
|
|
922
|
-
InputComp:
|
|
921
|
+
}), fa = B({
|
|
922
|
+
InputComp: wt,
|
|
923
923
|
valueType: "text",
|
|
924
924
|
name: "PFromText"
|
|
925
|
-
}),
|
|
926
|
-
InputComp:
|
|
925
|
+
}), ma = B({
|
|
926
|
+
InputComp: $,
|
|
927
927
|
valueType: "digit",
|
|
928
928
|
name: "PFormNumber"
|
|
929
|
-
}),
|
|
930
|
-
InputComp:
|
|
929
|
+
}), ya = B({
|
|
930
|
+
InputComp: ca,
|
|
931
931
|
valueType: "digitRange",
|
|
932
932
|
name: "PFormNumberRange"
|
|
933
|
-
}),
|
|
934
|
-
InputComp:
|
|
933
|
+
}), sa = B({
|
|
934
|
+
InputComp: xt,
|
|
935
935
|
valueType: "date",
|
|
936
936
|
name: "PFormDate"
|
|
937
|
-
}),
|
|
938
|
-
InputComp:
|
|
937
|
+
}), ga = B({
|
|
938
|
+
InputComp: kt,
|
|
939
939
|
valueType: "time",
|
|
940
940
|
name: "PFormTime"
|
|
941
|
-
}),
|
|
942
|
-
InputComp:
|
|
941
|
+
}), va = B({
|
|
942
|
+
InputComp: ra,
|
|
943
943
|
valueType: "select",
|
|
944
944
|
name: "PFormSelect"
|
|
945
|
-
}),
|
|
946
|
-
InputComp:
|
|
945
|
+
}), ha = B({
|
|
946
|
+
InputComp: Et,
|
|
947
947
|
valueType: "treeSelect",
|
|
948
948
|
name: "PFormTreeSelect"
|
|
949
|
-
}),
|
|
950
|
-
InputComp:
|
|
949
|
+
}), ba = B({
|
|
950
|
+
InputComp: na,
|
|
951
951
|
valueType: "checkbox",
|
|
952
952
|
name: "PFromCheckbox"
|
|
953
|
-
}),
|
|
954
|
-
InputComp:
|
|
953
|
+
}), pa = B({
|
|
954
|
+
InputComp: la,
|
|
955
955
|
valueType: "radio",
|
|
956
956
|
name: "PFromRadio"
|
|
957
|
-
}),
|
|
958
|
-
InputComp:
|
|
957
|
+
}), Sa = B({
|
|
958
|
+
InputComp: Rt,
|
|
959
959
|
valueType: "switch",
|
|
960
960
|
name: "PFromSwitch"
|
|
961
|
-
}),
|
|
962
|
-
InputComp:
|
|
961
|
+
}), Pa = B({
|
|
962
|
+
InputComp: Ft,
|
|
963
963
|
valueType: "cascader",
|
|
964
964
|
name: "PFormCascader"
|
|
965
|
-
}),
|
|
965
|
+
}), Ca = B({
|
|
966
966
|
InputComp: Tt,
|
|
967
967
|
valueType: "color",
|
|
968
968
|
name: "PFormColor"
|
|
969
|
-
}),
|
|
969
|
+
}), ut = x({
|
|
970
970
|
props: {
|
|
971
|
-
...
|
|
971
|
+
...v(le.props, "label", "prop"),
|
|
972
972
|
title: {
|
|
973
973
|
type: String
|
|
974
974
|
},
|
|
@@ -986,52 +986,52 @@ const je = () => ({
|
|
|
986
986
|
slots: t
|
|
987
987
|
}) => {
|
|
988
988
|
const u = ({
|
|
989
|
-
row:
|
|
990
|
-
column:
|
|
991
|
-
$index:
|
|
989
|
+
row: n,
|
|
990
|
+
column: l,
|
|
991
|
+
$index: f
|
|
992
992
|
}) => {
|
|
993
|
-
var
|
|
994
|
-
const
|
|
995
|
-
...
|
|
996
|
-
title:
|
|
997
|
-
dataIndex:
|
|
998
|
-
},
|
|
999
|
-
value:
|
|
1000
|
-
text:
|
|
1001
|
-
record:
|
|
1002
|
-
column:
|
|
1003
|
-
index:
|
|
1004
|
-
},
|
|
1005
|
-
return
|
|
1006
|
-
},
|
|
993
|
+
var g;
|
|
994
|
+
const r = n, m = f, d = {
|
|
995
|
+
...l,
|
|
996
|
+
title: l.label,
|
|
997
|
+
dataIndex: l.property
|
|
998
|
+
}, i = N(n, d.dataIndex), P = {
|
|
999
|
+
value: i,
|
|
1000
|
+
text: i,
|
|
1001
|
+
record: r,
|
|
1002
|
+
column: d,
|
|
1003
|
+
index: m
|
|
1004
|
+
}, w = (g = t.bodyCell) == null ? void 0 : g.call(t, P);
|
|
1005
|
+
return w || (e.customRender ? e.customRender(P) : i);
|
|
1006
|
+
}, o = {
|
|
1007
1007
|
header: ({
|
|
1008
|
-
column:
|
|
1009
|
-
$index:
|
|
1008
|
+
column: n,
|
|
1009
|
+
$index: l
|
|
1010
1010
|
}) => {
|
|
1011
|
-
var
|
|
1012
|
-
const
|
|
1013
|
-
...
|
|
1014
|
-
title:
|
|
1015
|
-
dataIndex:
|
|
1011
|
+
var i;
|
|
1012
|
+
const f = l, r = n.label, m = {
|
|
1013
|
+
...n,
|
|
1014
|
+
title: r,
|
|
1015
|
+
dataIndex: n.property
|
|
1016
1016
|
};
|
|
1017
|
-
return ((
|
|
1018
|
-
title:
|
|
1019
|
-
column:
|
|
1020
|
-
index:
|
|
1021
|
-
})) ||
|
|
1017
|
+
return ((i = t.headerCell) == null ? void 0 : i.call(t, {
|
|
1018
|
+
title: r,
|
|
1019
|
+
column: m,
|
|
1020
|
+
index: f
|
|
1021
|
+
})) || r;
|
|
1022
1022
|
}
|
|
1023
1023
|
};
|
|
1024
|
-
return (!e.children || D(e.children) <= 0) && (
|
|
1024
|
+
return (!e.children || D(e.children) <= 0) && (o.default = u), () => c(le, s(v(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
1025
1025
|
prop: e.dataIndex,
|
|
1026
1026
|
label: e.title
|
|
1027
1027
|
}), {
|
|
1028
|
-
default: () => [D(e.children) > 0 &&
|
|
1029
|
-
key:
|
|
1030
|
-
},
|
|
1031
|
-
...
|
|
1028
|
+
default: () => [D(e.children) > 0 && T(e.children, (n) => c(ut, s({
|
|
1029
|
+
key: n.dataIndex
|
|
1030
|
+
}, n), t))],
|
|
1031
|
+
...o
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
}),
|
|
1034
|
+
}), Ka = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], wa = () => ({
|
|
1035
1035
|
columns: {
|
|
1036
1036
|
type: Array
|
|
1037
1037
|
},
|
|
@@ -1051,141 +1051,141 @@ const je = () => ({
|
|
|
1051
1051
|
type: Object,
|
|
1052
1052
|
default: void 0
|
|
1053
1053
|
}
|
|
1054
|
-
}),
|
|
1054
|
+
}), ct = x({
|
|
1055
1055
|
props: {
|
|
1056
1056
|
...Me.props,
|
|
1057
|
-
...
|
|
1057
|
+
...wa()
|
|
1058
1058
|
},
|
|
1059
1059
|
setup: (e, {
|
|
1060
1060
|
slots: t,
|
|
1061
1061
|
expose: u,
|
|
1062
1062
|
emit: a
|
|
1063
1063
|
}) => {
|
|
1064
|
-
const
|
|
1065
|
-
u($e(
|
|
1066
|
-
const
|
|
1067
|
-
...
|
|
1068
|
-
[
|
|
1069
|
-
}), {})),
|
|
1070
|
-
const
|
|
1071
|
-
return
|
|
1072
|
-
},
|
|
1073
|
-
const
|
|
1074
|
-
return
|
|
1075
|
-
}),
|
|
1076
|
-
const
|
|
1077
|
-
return
|
|
1078
|
-
}),
|
|
1079
|
-
...
|
|
1080
|
-
[
|
|
1064
|
+
const o = R(), n = tt("table");
|
|
1065
|
+
u($e(Ka, o));
|
|
1066
|
+
const l = E(() => e.dataSource || e.data || []), f = E(() => X(l.value, (S, C) => ({
|
|
1067
|
+
...S,
|
|
1068
|
+
[r(C)]: !0
|
|
1069
|
+
}), {})), r = (S) => {
|
|
1070
|
+
const C = e.rowKey;
|
|
1071
|
+
return Ut(C) ? C(S) : C ? S[C] : S.id;
|
|
1072
|
+
}, m = E(() => !!e.rowSelection), d = E(() => {
|
|
1073
|
+
const S = e.rowSelection;
|
|
1074
|
+
return S ? !S.type || S.type === "multi" : !1;
|
|
1075
|
+
}), i = E(() => {
|
|
1076
|
+
const S = e.selectedRowKeys;
|
|
1077
|
+
return Xe(S) ? S : S ? [S] : [];
|
|
1078
|
+
}), P = E(() => X(i.value, (S, C) => ({
|
|
1079
|
+
...S,
|
|
1080
|
+
[C]: !0
|
|
1081
1081
|
}), {}));
|
|
1082
|
-
let
|
|
1083
|
-
const
|
|
1084
|
-
var
|
|
1085
|
-
if (!
|
|
1082
|
+
let w = [], g = !1;
|
|
1083
|
+
const k = (S) => {
|
|
1084
|
+
var M, y, h, b, K, A, ie, fe;
|
|
1085
|
+
if (!g)
|
|
1086
1086
|
return;
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1089
|
-
if (D(
|
|
1090
|
-
const
|
|
1091
|
-
O && ((
|
|
1087
|
+
const C = T(S, (I) => r(I));
|
|
1088
|
+
if (m.value && !d.value) {
|
|
1089
|
+
if (D(C) <= 0 && D(w) > 0) {
|
|
1090
|
+
const I = l.value, O = jt(I, (W) => r(W) === w[0]);
|
|
1091
|
+
O && ((M = o.value) == null || M.toggleRowSelection(O, !0));
|
|
1092
1092
|
return;
|
|
1093
|
-
} else if (D(
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1096
|
-
var
|
|
1097
|
-
(
|
|
1093
|
+
} else if (D(C) > 1) {
|
|
1094
|
+
const I = Wt(C);
|
|
1095
|
+
Ve(S, (O) => {
|
|
1096
|
+
var W;
|
|
1097
|
+
(W = o.value) == null || W.toggleRowSelection(O, r(O) === I);
|
|
1098
1098
|
});
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
|
-
if (!
|
|
1102
|
+
if (!Gt(i.value, C, {
|
|
1103
1103
|
sort: !0
|
|
1104
1104
|
})) {
|
|
1105
|
-
if (!
|
|
1106
|
-
const
|
|
1107
|
-
(
|
|
1105
|
+
if (!d.value) {
|
|
1106
|
+
const I = N(C, 0);
|
|
1107
|
+
(h = (y = e.rowSelection).onChange) == null || h.call(y, I, N(S, 0)), a("update:selectedRowKeys", I);
|
|
1108
1108
|
return;
|
|
1109
1109
|
}
|
|
1110
|
-
if ((
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1110
|
+
if ((b = e.rowSelection) != null && b.pagination) {
|
|
1111
|
+
const I = oe(i.value, (O) => !f.value[O]);
|
|
1112
|
+
I.push(...C), (A = (K = e.rowSelection).onChange) == null || A.call(K, I, []), a("update:selectedRowKeys", I);
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
(fe = (ie = e.rowSelection).onChange) == null || fe.call(ie,
|
|
1115
|
+
(fe = (ie = e.rowSelection).onChange) == null || fe.call(ie, C, S), a("update:selectedRowKeys", C);
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, F = E(() => {
|
|
1118
1118
|
if (!!e.rowSelection)
|
|
1119
1119
|
return {
|
|
1120
|
-
onSelectionChange:
|
|
1120
|
+
onSelectionChange: k
|
|
1121
1121
|
};
|
|
1122
1122
|
});
|
|
1123
1123
|
_(() => {
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1126
|
-
const
|
|
1127
|
-
if (
|
|
1128
|
-
const
|
|
1129
|
-
...
|
|
1130
|
-
[
|
|
1124
|
+
var C;
|
|
1125
|
+
g = !1, w = i.value;
|
|
1126
|
+
const S = l.value;
|
|
1127
|
+
if (m.value) {
|
|
1128
|
+
const M = (C = o.value) == null ? void 0 : C.getSelectionRows(), y = X(M, (h, b) => ({
|
|
1129
|
+
...h,
|
|
1130
|
+
[r(b)]: !0
|
|
1131
1131
|
}), {});
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1137
|
-
}),
|
|
1132
|
+
Lt(() => {
|
|
1133
|
+
Ve(S, (h) => {
|
|
1134
|
+
var K;
|
|
1135
|
+
const b = r(h);
|
|
1136
|
+
P.value[b] !== y[b] && ((K = o.value) == null || K.toggleRowSelection(h, !!P.value[b]));
|
|
1137
|
+
}), g = !0;
|
|
1138
1138
|
});
|
|
1139
1139
|
} else
|
|
1140
|
-
|
|
1141
|
-
}, [
|
|
1140
|
+
g = !0;
|
|
1141
|
+
}, [i, l]);
|
|
1142
1142
|
const Z = () => {
|
|
1143
|
-
var
|
|
1143
|
+
var S, C;
|
|
1144
1144
|
if (e.spanMethod)
|
|
1145
1145
|
return e.spanMethod;
|
|
1146
|
-
if (((
|
|
1147
|
-
const
|
|
1146
|
+
if (((S = e.mergeOpts) == null ? void 0 : S.rowNames) || ((C = e.mergeOpts) == null ? void 0 : C.colNames)) {
|
|
1147
|
+
const M = _t(e.mergeOpts);
|
|
1148
1148
|
return ({
|
|
1149
|
-
row:
|
|
1150
|
-
column:
|
|
1149
|
+
row: y,
|
|
1150
|
+
column: h
|
|
1151
1151
|
}) => {
|
|
1152
|
-
const
|
|
1153
|
-
if (
|
|
1154
|
-
const
|
|
1152
|
+
const b = h.property;
|
|
1153
|
+
if (M[b]) {
|
|
1154
|
+
const K = y[M[b]], A = y[b + "-colspan"];
|
|
1155
1155
|
return {
|
|
1156
|
-
rowspan:
|
|
1157
|
-
colspan:
|
|
1156
|
+
rowspan: K !== void 0 ? K : 1,
|
|
1157
|
+
colspan: A !== void 0 ? A : 1
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
1162
|
return e.spanMethod;
|
|
1163
|
-
},
|
|
1163
|
+
}, J = E(() => Z());
|
|
1164
1164
|
return () => c(Me, s({
|
|
1165
|
-
ref:
|
|
1166
|
-
id:
|
|
1167
|
-
},
|
|
1168
|
-
data:
|
|
1169
|
-
spanMethod:
|
|
1170
|
-
},
|
|
1165
|
+
ref: o,
|
|
1166
|
+
id: n
|
|
1167
|
+
}, v(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
|
|
1168
|
+
data: l.value,
|
|
1169
|
+
spanMethod: J.value
|
|
1170
|
+
}, F.value), {
|
|
1171
1171
|
default: () => {
|
|
1172
|
-
var
|
|
1173
|
-
return [(
|
|
1172
|
+
var S, C, M, y, h;
|
|
1173
|
+
return [(S = t.start) == null ? void 0 : S.call(t), m.value && c(le, s({
|
|
1174
1174
|
type: "selection",
|
|
1175
|
-
className:
|
|
1176
|
-
},
|
|
1177
|
-
key:
|
|
1178
|
-
},
|
|
1179
|
-
target:
|
|
1175
|
+
className: d.value ? "pro-multi" : "pro-single"
|
|
1176
|
+
}, v((C = e.rowSelection) == null ? void 0 : C.column, "slots")), (y = (M = e.rowSelection) == null ? void 0 : M.column) == null ? void 0 : y.slots), T(e.columns, (b) => c(ut, s({
|
|
1177
|
+
key: b.dataIndex
|
|
1178
|
+
}, b), t)), (h = t.default) == null ? void 0 : h.call(t), e.loading && c(at, {
|
|
1179
|
+
target: n,
|
|
1180
1180
|
loading: !0
|
|
1181
1181
|
}, null)];
|
|
1182
1182
|
},
|
|
1183
|
-
...
|
|
1183
|
+
...G(t, "append", "empty")
|
|
1184
1184
|
});
|
|
1185
1185
|
}
|
|
1186
|
-
}),
|
|
1186
|
+
}), xa = x({
|
|
1187
1187
|
props: {
|
|
1188
|
-
...
|
|
1188
|
+
...re.props,
|
|
1189
1189
|
type: {
|
|
1190
1190
|
type: String,
|
|
1191
1191
|
default: "primary"
|
|
@@ -1197,141 +1197,222 @@ const je = () => ({
|
|
|
1197
1197
|
},
|
|
1198
1198
|
setup: (e, {
|
|
1199
1199
|
slots: t
|
|
1200
|
-
}) => () => c(
|
|
1200
|
+
}) => () => c(re, e, t)
|
|
1201
|
+
}), ka = () => ({
|
|
1202
|
+
fixed: {
|
|
1203
|
+
type: Boolean,
|
|
1204
|
+
default: !0
|
|
1205
|
+
},
|
|
1206
|
+
dataSource: Array,
|
|
1207
|
+
columns: {
|
|
1208
|
+
type: Array
|
|
1209
|
+
},
|
|
1210
|
+
dynamicHei: {
|
|
1211
|
+
type: Boolean,
|
|
1212
|
+
default: !0
|
|
1213
|
+
},
|
|
1214
|
+
minWidth: {
|
|
1215
|
+
type: Number,
|
|
1216
|
+
default: 100
|
|
1217
|
+
}
|
|
1218
|
+
}), Ea = x({
|
|
1219
|
+
inheritAttrs: !1,
|
|
1220
|
+
props: {
|
|
1221
|
+
...v(Ie.props, ["class"]),
|
|
1222
|
+
...ka()
|
|
1223
|
+
},
|
|
1224
|
+
setup: (e, {
|
|
1225
|
+
attrs: t
|
|
1226
|
+
}) => {
|
|
1227
|
+
const u = R(), [a, o] = Zt(), n = Je({
|
|
1228
|
+
width: 0,
|
|
1229
|
+
height: 0
|
|
1230
|
+
});
|
|
1231
|
+
Jt(u, (d) => {
|
|
1232
|
+
var P;
|
|
1233
|
+
const i = (P = d[0]) == null ? void 0 : P.contentRect;
|
|
1234
|
+
n.width = i.width, n.height = i.height, o();
|
|
1235
|
+
});
|
|
1236
|
+
const l = E(() => {
|
|
1237
|
+
var w, g;
|
|
1238
|
+
const d = ((w = e.columns) == null ? void 0 : w.filter((k) => k.width || k.minWidth)) || [], i = d.reduce((k, F) => k + (F.width || F.minWidth || 0), 0), P = (((g = e.columns) == null ? void 0 : g.length) || 0) - d.length;
|
|
1239
|
+
return P > 0 && n.width > 0 ? Math.max((n.width - i - (e.vScrollbarSize || 0)) / P, e.minWidth || 0) : e.minWidth;
|
|
1240
|
+
}), f = E(() => T(e.columns, (d) => {
|
|
1241
|
+
const i = d.dataIndex || d.key, P = {
|
|
1242
|
+
...d,
|
|
1243
|
+
width: d.width || d.minWidth || l.value,
|
|
1244
|
+
key: i,
|
|
1245
|
+
dataKey: i
|
|
1246
|
+
};
|
|
1247
|
+
return d.customRender && (P.cellRenderer = ({
|
|
1248
|
+
cellData: w,
|
|
1249
|
+
rowData: g,
|
|
1250
|
+
rowIndex: k,
|
|
1251
|
+
column: F
|
|
1252
|
+
}) => d.customRender({
|
|
1253
|
+
value: w,
|
|
1254
|
+
text: w,
|
|
1255
|
+
record: g,
|
|
1256
|
+
column: F,
|
|
1257
|
+
index: k
|
|
1258
|
+
})), P;
|
|
1259
|
+
})), r = E(() => !e.estimatedRowHeight && e.dynamicHei ? 50 : e.estimatedRowHeight), m = E(() => {
|
|
1260
|
+
const d = ["el-table"];
|
|
1261
|
+
return r.value && d.push("dynamic-hei"), d;
|
|
1262
|
+
});
|
|
1263
|
+
return () => c("div", s({
|
|
1264
|
+
class: "pro-table-v2-wrapper",
|
|
1265
|
+
style: {
|
|
1266
|
+
"--estimated-hei": `${r.value || 0}px`
|
|
1267
|
+
},
|
|
1268
|
+
ref: u
|
|
1269
|
+
}, G(t, ["class"])), [n.width > 0 && n.height > 0 && c(Ie, s({
|
|
1270
|
+
key: a.value,
|
|
1271
|
+
class: m.value
|
|
1272
|
+
}, v(t, ["class", "className"]), v(e, "dataSource", "data", "columns", "estimatedRowHeight", "width", "height"), {
|
|
1273
|
+
estimatedRowHeight: r.value,
|
|
1274
|
+
columns: f.value,
|
|
1275
|
+
data: e.dataSource || e.data || [],
|
|
1276
|
+
width: n.width,
|
|
1277
|
+
height: n.height
|
|
1278
|
+
}), null)]);
|
|
1279
|
+
}
|
|
1201
1280
|
});
|
|
1202
|
-
|
|
1203
|
-
...
|
|
1204
|
-
...
|
|
1205
|
-
formMethods: { type: Array, default:
|
|
1281
|
+
U.props = {
|
|
1282
|
+
...ne.props,
|
|
1283
|
+
...U.props,
|
|
1284
|
+
formMethods: { type: Array, default: et }
|
|
1206
1285
|
};
|
|
1207
|
-
|
|
1208
|
-
...
|
|
1209
|
-
...
|
|
1286
|
+
Y.props = {
|
|
1287
|
+
...U.props,
|
|
1288
|
+
...Y.props,
|
|
1210
1289
|
inline: { type: Boolean, default: !0 }
|
|
1211
1290
|
};
|
|
1212
|
-
|
|
1213
|
-
...
|
|
1214
|
-
...
|
|
1215
|
-
};
|
|
1216
|
-
Y.props = {
|
|
1217
|
-
...ot.props,
|
|
1218
|
-
...Y.props
|
|
1291
|
+
me.props = {
|
|
1292
|
+
...ae.props,
|
|
1293
|
+
...me.props
|
|
1219
1294
|
};
|
|
1220
1295
|
ee.props = {
|
|
1221
|
-
...
|
|
1296
|
+
...ct.props,
|
|
1222
1297
|
...ee.props
|
|
1223
1298
|
};
|
|
1224
|
-
|
|
1225
|
-
...
|
|
1226
|
-
...
|
|
1299
|
+
te.props = {
|
|
1300
|
+
..._e.props,
|
|
1301
|
+
...te.props
|
|
1302
|
+
};
|
|
1303
|
+
ye.props = {
|
|
1304
|
+
...te.props,
|
|
1305
|
+
...ye.props
|
|
1227
1306
|
};
|
|
1228
1307
|
se.props = {
|
|
1229
|
-
...
|
|
1308
|
+
...U.props,
|
|
1230
1309
|
...se.props
|
|
1231
1310
|
};
|
|
1232
1311
|
ge.props = {
|
|
1233
|
-
...
|
|
1312
|
+
...nt.props,
|
|
1234
1313
|
...ge.props
|
|
1235
1314
|
};
|
|
1236
1315
|
ve.props = {
|
|
1237
|
-
...
|
|
1316
|
+
...ot.props,
|
|
1238
1317
|
...ve.props,
|
|
1239
1318
|
modelValue: String
|
|
1240
1319
|
};
|
|
1241
|
-
|
|
1320
|
+
he.props = {
|
|
1242
1321
|
...Ze.props,
|
|
1243
|
-
...
|
|
1322
|
+
...he.props,
|
|
1244
1323
|
placement: { type: String, default: "top-start" }
|
|
1245
1324
|
};
|
|
1246
|
-
const
|
|
1247
|
-
[
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1251
|
-
[
|
|
1252
|
-
[
|
|
1253
|
-
[
|
|
1254
|
-
[
|
|
1255
|
-
[
|
|
1256
|
-
[
|
|
1257
|
-
[
|
|
1258
|
-
[
|
|
1259
|
-
[
|
|
1260
|
-
[
|
|
1261
|
-
[
|
|
1262
|
-
[
|
|
1263
|
-
[
|
|
1264
|
-
[
|
|
1265
|
-
[
|
|
1266
|
-
[
|
|
1267
|
-
[
|
|
1268
|
-
[
|
|
1269
|
-
[
|
|
1270
|
-
[
|
|
1271
|
-
[
|
|
1272
|
-
[
|
|
1273
|
-
[
|
|
1274
|
-
[
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1325
|
+
const Na = {
|
|
1326
|
+
[p.LoadingKey]: at,
|
|
1327
|
+
[p.RowKey]: Mt,
|
|
1328
|
+
[p.ColKey]: It,
|
|
1329
|
+
[p.ButtonKey]: re,
|
|
1330
|
+
[p.DescriptionsKey]: _e,
|
|
1331
|
+
[p.DescriptionsItemKey]: Vt,
|
|
1332
|
+
[p.MenusKey]: oa,
|
|
1333
|
+
[p.ModalKey]: nt,
|
|
1334
|
+
[p.DrawerKey]: ea,
|
|
1335
|
+
[p.PaginationKey]: ta,
|
|
1336
|
+
[p.PopoverKey]: aa,
|
|
1337
|
+
[p.TooltipKey]: Ze,
|
|
1338
|
+
[p.CheckboxKey]: Ge,
|
|
1339
|
+
[p.FormKey]: Qt,
|
|
1340
|
+
[p.FormItemKey]: Ye,
|
|
1341
|
+
[p.TableKey]: ct,
|
|
1342
|
+
[p.TableV2Key]: Ea,
|
|
1343
|
+
[p.TableOperateKey]: xa,
|
|
1344
|
+
[p.UploaderKey]: ot,
|
|
1345
|
+
[p.DropdownKey]: ia,
|
|
1346
|
+
[p.ScrollKey]: Bt,
|
|
1347
|
+
[p.EmptyKey]: Nt,
|
|
1348
|
+
[p.ProFormKey]: U,
|
|
1349
|
+
[p.ProSearchFormKey]: Y,
|
|
1350
|
+
[p.ProTableKey]: ee,
|
|
1351
|
+
[p.ProCurdKey]: it,
|
|
1352
|
+
[p.ProListKey]: ft,
|
|
1353
|
+
[p.ProPageKey]: mt,
|
|
1354
|
+
[p.ProOperateKey]: yt,
|
|
1355
|
+
text: be,
|
|
1356
|
+
digit: st,
|
|
1357
|
+
date: gt,
|
|
1358
|
+
time: be,
|
|
1359
|
+
select: Q,
|
|
1360
|
+
radio: Q,
|
|
1361
|
+
checkbox: Q,
|
|
1362
|
+
treeSelect: pe,
|
|
1363
|
+
cascader: pe
|
|
1364
|
+
}, Oa = {
|
|
1365
|
+
text: fa,
|
|
1366
|
+
digit: ma,
|
|
1367
|
+
digitRange: ya,
|
|
1368
|
+
date: sa,
|
|
1369
|
+
time: ga,
|
|
1370
|
+
select: va,
|
|
1371
|
+
treeSelect: ha,
|
|
1372
|
+
checkbox: ba,
|
|
1373
|
+
radio: pa,
|
|
1374
|
+
switch: Sa,
|
|
1375
|
+
cascader: Pa,
|
|
1376
|
+
color: Ca
|
|
1297
1377
|
};
|
|
1298
1378
|
export {
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1379
|
+
et as FormMethods,
|
|
1380
|
+
ca as InputNumberRange,
|
|
1381
|
+
na as ProCheckbox,
|
|
1382
|
+
ea as ProDrawer,
|
|
1383
|
+
ia as ProDropdown,
|
|
1384
|
+
Qt as ProForm,
|
|
1385
|
+
Pa as ProFormCascader,
|
|
1386
|
+
ba as ProFormCheckbox,
|
|
1387
|
+
Ca as ProFormColor,
|
|
1388
|
+
sa as ProFormDatePicker,
|
|
1389
|
+
ya as ProFormInputNumberRange,
|
|
1390
|
+
Ye as ProFormItem,
|
|
1391
|
+
pa as ProFormRadio,
|
|
1392
|
+
va as ProFormSelect,
|
|
1393
|
+
Sa as ProFormSwitch,
|
|
1394
|
+
fa as ProFormText,
|
|
1395
|
+
ma as ProFormTextNumber,
|
|
1396
|
+
ga as ProFormTimePicker,
|
|
1397
|
+
ha as ProFormTreeSelect,
|
|
1398
|
+
at as ProLoading,
|
|
1399
|
+
oa as ProMenus,
|
|
1400
|
+
nt as ProModal,
|
|
1401
|
+
ta as ProPagination,
|
|
1402
|
+
aa as ProPopover,
|
|
1403
|
+
la as ProRadio,
|
|
1404
|
+
ra as ProSelect,
|
|
1405
|
+
ct as ProTable,
|
|
1406
|
+
ut as ProTableColumn,
|
|
1407
|
+
xa as ProTableOperateItem,
|
|
1408
|
+
Ea as ProTableV2,
|
|
1409
|
+
Va as ProTabs,
|
|
1410
|
+
Ba as ProTree,
|
|
1411
|
+
ot as ProUploader,
|
|
1412
|
+
Ka as TableMethods,
|
|
1413
|
+
ua as UploadMethods,
|
|
1414
|
+
B as createFormItemComponent,
|
|
1415
|
+
tt as createLoadingId,
|
|
1416
|
+
Na as elementMap,
|
|
1417
|
+
Oa as formElementMap
|
|
1337
1418
|
};
|