@vue-start/element-pro 0.2.36 → 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 +40 -11
- package/dist/index.es.js +657 -571
- 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
|
|
2
|
-
import { ElFormItem as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { keys as
|
|
5
|
-
import { useEffect as _, generateId 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 Ie = () => ({
|
|
|
36
36
|
emit: u,
|
|
37
37
|
expose: a
|
|
38
38
|
}) => {
|
|
39
|
-
const o = e.model ||
|
|
39
|
+
const o = e.model || Je({}), n = R();
|
|
40
40
|
return _(() => {
|
|
41
|
-
!
|
|
42
|
-
var
|
|
43
|
-
(
|
|
44
|
-
f ? u("finish",
|
|
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(
|
|
48
|
-
ref:
|
|
47
|
+
}, []), a($e(et, n)), () => c(ne, s({
|
|
48
|
+
ref: n
|
|
49
49
|
}, v(e, "model"), {
|
|
50
|
-
hideRequiredAsterisk:
|
|
50
|
+
hideRequiredAsterisk: q(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
51
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 Ie = () => ({
|
|
|
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 o =
|
|
101
|
+
const o = qe.service({
|
|
102
102
|
target: a,
|
|
103
103
|
body: e.body,
|
|
104
104
|
fullscreen: e.fullscreen,
|
|
@@ -115,7 +115,7 @@ const Ie = () => ({
|
|
|
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"
|
|
@@ -125,12 +125,10 @@ const Ie = () => ({
|
|
|
125
125
|
default: !1
|
|
126
126
|
},
|
|
127
127
|
cancelText: {
|
|
128
|
-
type: String
|
|
129
|
-
default: "\u53D6\u6D88"
|
|
128
|
+
type: String
|
|
130
129
|
},
|
|
131
130
|
okText: {
|
|
132
|
-
type: String
|
|
133
|
-
default: "\u786E\u8BA4"
|
|
131
|
+
type: String
|
|
134
132
|
},
|
|
135
133
|
confirmLoading: Boolean,
|
|
136
134
|
footer: {
|
|
@@ -148,7 +146,7 @@ const Ie = () => ({
|
|
|
148
146
|
type: Boolean,
|
|
149
147
|
default: !1
|
|
150
148
|
}
|
|
151
|
-
}),
|
|
149
|
+
}), nt = x({
|
|
152
150
|
props: {
|
|
153
151
|
...Se.props,
|
|
154
152
|
appendToBody: {
|
|
@@ -159,63 +157,65 @@ const Ie = () => ({
|
|
|
159
157
|
type: Boolean,
|
|
160
158
|
default: !0
|
|
161
159
|
},
|
|
162
|
-
...
|
|
160
|
+
...ue()
|
|
163
161
|
},
|
|
164
162
|
setup: (e, {
|
|
165
163
|
slots: t,
|
|
166
164
|
emit: u,
|
|
167
165
|
expose: a
|
|
168
166
|
}) => {
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
const {
|
|
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"));
|
|
175
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
|
-
}, v(e, ...
|
|
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
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"
|
|
@@ -225,12 +225,10 @@ const Ie = () => ({
|
|
|
225
225
|
default: !1
|
|
226
226
|
},
|
|
227
227
|
cancelText: {
|
|
228
|
-
type: String
|
|
229
|
-
default: "\u53D6\u6D88"
|
|
228
|
+
type: String
|
|
230
229
|
},
|
|
231
230
|
okText: {
|
|
232
|
-
type: String
|
|
233
|
-
default: "\u786E\u8BA4"
|
|
231
|
+
type: String
|
|
234
232
|
},
|
|
235
233
|
footer: {
|
|
236
234
|
type: Boolean,
|
|
@@ -244,10 +242,10 @@ const Ie = () => ({
|
|
|
244
242
|
type: Boolean,
|
|
245
243
|
default: !1
|
|
246
244
|
}
|
|
247
|
-
}),
|
|
245
|
+
}), ea = x({
|
|
248
246
|
props: {
|
|
249
247
|
...Pe.props,
|
|
250
|
-
...
|
|
248
|
+
...Yt(),
|
|
251
249
|
appendToBody: {
|
|
252
250
|
type: Boolean,
|
|
253
251
|
default: !0
|
|
@@ -262,57 +260,59 @@ const Ie = () => ({
|
|
|
262
260
|
emit: u,
|
|
263
261
|
expose: a
|
|
264
262
|
}) => {
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
263
|
+
const {
|
|
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");
|
|
271
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
|
-
}, v(e,
|
|
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
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: {
|
|
317
317
|
type: Number,
|
|
318
318
|
default: 1
|
|
@@ -322,39 +322,39 @@ const Ie = () => ({
|
|
|
322
322
|
slots: t,
|
|
323
323
|
emit: u
|
|
324
324
|
}) => {
|
|
325
|
-
const a =
|
|
326
|
-
|
|
325
|
+
const a = R(e.page), o = R(e.pageSize);
|
|
326
|
+
j(() => {
|
|
327
327
|
a.value !== e.page && (a.value = e.page);
|
|
328
|
-
}, () => e.page),
|
|
328
|
+
}, () => e.page), j(() => {
|
|
329
329
|
o.value !== e.pageSize && (o.value = e.pageSize);
|
|
330
330
|
}, () => e.pageSize);
|
|
331
|
-
const
|
|
331
|
+
const n = At(() => {
|
|
332
332
|
u("composeChange", a.value, o.value);
|
|
333
|
-
}, 300),
|
|
334
|
-
|
|
333
|
+
}, 300), l = () => {
|
|
334
|
+
n(), u("update:page", a.value);
|
|
335
335
|
}, f = () => {
|
|
336
|
-
|
|
336
|
+
n(), u("update:pageSize", o.value);
|
|
337
337
|
};
|
|
338
|
-
return () => c(
|
|
338
|
+
return () => c(Ce, s({
|
|
339
339
|
currentPage: a.value,
|
|
340
340
|
"onUpdate:currentPage": (r) => a.value = r,
|
|
341
341
|
pageSize: o.value,
|
|
342
342
|
"onUpdate:pageSize": (r) => o.value = r,
|
|
343
|
-
onCurrentChange:
|
|
343
|
+
onCurrentChange: l,
|
|
344
344
|
onSizeChange: f
|
|
345
345
|
}, v(e, "currentPage", "pageSize")), t);
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), aa = x({
|
|
348
348
|
props: {
|
|
349
|
-
...
|
|
349
|
+
...Ke.props
|
|
350
350
|
},
|
|
351
351
|
setup: (e, {
|
|
352
352
|
slots: t
|
|
353
|
-
}) => () => c(
|
|
353
|
+
}) => () => c(Ke, e, {
|
|
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 Ie = () => ({
|
|
|
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 o =
|
|
378
|
-
a(
|
|
379
|
-
const
|
|
380
|
-
return () => c(
|
|
377
|
+
const o = R();
|
|
378
|
+
a(L(o));
|
|
379
|
+
const n = V(Oe());
|
|
380
|
+
return () => c(we, s({
|
|
381
381
|
ref: o
|
|
382
|
-
}, v(e,
|
|
383
|
-
"onUpdate:modelValue": (
|
|
384
|
-
u("update:modelValue",
|
|
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(
|
|
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
393
|
key: r.value
|
|
394
394
|
}, v(r, "value"), {
|
|
395
395
|
label: r.value
|
|
396
396
|
}), {
|
|
397
|
-
default: () => [
|
|
398
|
-
}) : c(
|
|
397
|
+
default: () => [m || r.label]
|
|
398
|
+
}) : c(Ge, s({
|
|
399
399
|
key: r.value
|
|
400
400
|
}, r, {
|
|
401
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 Ie = () => ({
|
|
|
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 o =
|
|
432
|
-
a(
|
|
433
|
-
const
|
|
434
|
-
return () => c(
|
|
431
|
+
const o = R();
|
|
432
|
+
a(L(o));
|
|
433
|
+
const n = V(De());
|
|
434
|
+
return () => c(xe, s({
|
|
435
435
|
ref: o
|
|
436
|
-
}, v(e,
|
|
437
|
-
"onUpdate:modelValue": (
|
|
438
|
-
u("update:modelValue",
|
|
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(
|
|
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
447
|
key: r.value
|
|
448
448
|
}, v(r, "value"), {
|
|
449
449
|
label: r.value
|
|
450
450
|
}), {
|
|
451
|
-
default: () => [
|
|
452
|
-
}) : c(
|
|
451
|
+
default: () => [m || r.label]
|
|
452
|
+
}) : c(bt, s({
|
|
453
453
|
key: r.value
|
|
454
454
|
}, v(r, "value"), {
|
|
455
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 o =
|
|
476
|
-
a(
|
|
477
|
-
const
|
|
478
|
-
return () => c(
|
|
475
|
+
const o = R();
|
|
476
|
+
a(L(o));
|
|
477
|
+
const n = V(Le());
|
|
478
|
+
return () => c(ke, s({
|
|
479
479
|
ref: o
|
|
480
|
-
}, v(e,
|
|
481
|
-
"onUpdate:modelValue": (
|
|
482
|
-
u("update:modelValue",
|
|
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(
|
|
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
491
|
key: r.value
|
|
492
492
|
}, r), {
|
|
493
|
-
default: () => [
|
|
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,27 +507,27 @@ const Ie = () => ({
|
|
|
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
516
|
var a, o;
|
|
517
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
518
|
-
key:
|
|
519
|
-
}, v(
|
|
520
|
-
name:
|
|
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
|
})
|
|
530
|
-
}),
|
|
530
|
+
}), de = {
|
|
531
531
|
convertSubMenuProps: {
|
|
532
532
|
type: Function
|
|
533
533
|
},
|
|
@@ -537,13 +537,13 @@ const Ie = () => ({
|
|
|
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: {
|
|
544
544
|
type: Object
|
|
545
545
|
},
|
|
546
|
-
...
|
|
546
|
+
...de
|
|
547
547
|
},
|
|
548
548
|
setup: (e, {
|
|
549
549
|
slots: t
|
|
@@ -553,35 +553,35 @@ const Ie = () => ({
|
|
|
553
553
|
(a = e.onMenuItemClick) == null || a.call(e, e.menu);
|
|
554
554
|
};
|
|
555
555
|
return () => {
|
|
556
|
-
var o,
|
|
556
|
+
var o, n;
|
|
557
557
|
const a = e.menu;
|
|
558
|
-
return (a == null ? void 0 : a.children) &&
|
|
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
560
|
}, (o = e.convertSubMenuProps) == null ? void 0 : o.call(e, a)), {
|
|
561
|
-
default: () => [
|
|
562
|
-
menu:
|
|
563
|
-
},
|
|
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
|
},
|
|
@@ -596,43 +596,43 @@ const Ie = () => ({
|
|
|
596
596
|
label: "label"
|
|
597
597
|
}
|
|
598
598
|
},
|
|
599
|
-
...
|
|
600
|
-
}),
|
|
599
|
+
...de
|
|
600
|
+
}), oa = x({
|
|
601
601
|
props: {
|
|
602
|
-
...v(
|
|
603
|
-
...
|
|
602
|
+
...v(H.props, "defaultActive"),
|
|
603
|
+
...ze()
|
|
604
604
|
},
|
|
605
605
|
setup: (e, {
|
|
606
606
|
slots: t
|
|
607
607
|
}) => {
|
|
608
|
-
const u =
|
|
609
|
-
|
|
608
|
+
const u = R(e.activeKey);
|
|
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 f = ((
|
|
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
|
-
...v(
|
|
619
|
-
value:
|
|
620
|
-
label:
|
|
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
|
-
}), o =
|
|
627
|
-
return () => c(
|
|
626
|
+
}), o = V(ze());
|
|
627
|
+
return () => c(H, s({
|
|
628
628
|
defaultActive: u.value
|
|
629
629
|
}, v(e, o)), {
|
|
630
|
-
default: () => c(
|
|
631
|
-
menu:
|
|
632
|
-
},
|
|
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 Ie = () => ({
|
|
|
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
|
-
...v(
|
|
669
|
-
...
|
|
668
|
+
...v(Re.props, "fileList"),
|
|
669
|
+
...Ae()
|
|
670
670
|
},
|
|
671
671
|
setup: (e, {
|
|
672
672
|
slots: t,
|
|
@@ -674,96 +674,101 @@ const Ie = () => ({
|
|
|
674
674
|
emit: a
|
|
675
675
|
}) => {
|
|
676
676
|
const {
|
|
677
|
-
showMsg: o
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
showMsg: o,
|
|
678
|
+
t: n
|
|
679
|
+
} = ce(), l = R();
|
|
680
|
+
u(L(l, ua));
|
|
680
681
|
const {
|
|
681
|
-
formItem:
|
|
682
|
-
} =
|
|
683
|
-
var
|
|
684
|
-
return ((
|
|
685
|
-
}) : [],
|
|
686
|
-
let
|
|
687
|
-
const
|
|
688
|
-
var
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
a("update:modelValue",
|
|
692
|
-
var
|
|
693
|
-
return ((
|
|
694
|
-
})), (
|
|
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");
|
|
695
696
|
};
|
|
696
|
-
|
|
697
|
-
|
|
697
|
+
j(() => {
|
|
698
|
+
d || (m.value = r(), d = !1);
|
|
698
699
|
}, () => e.modelValue);
|
|
699
|
-
let
|
|
700
|
-
const
|
|
701
|
-
e.globalLoading && (
|
|
700
|
+
let P;
|
|
701
|
+
const w = () => {
|
|
702
|
+
e.globalLoading && (P = qe.service({
|
|
702
703
|
lock: !0,
|
|
703
|
-
text: "
|
|
704
|
-
...
|
|
704
|
+
text: n.value("uploadingWatting"),
|
|
705
|
+
...q(e.globalLoading) ? {} : e.globalLoading
|
|
705
706
|
}));
|
|
706
|
-
},
|
|
707
|
-
e.globalLoading && (
|
|
707
|
+
}, g = () => {
|
|
708
|
+
e.globalLoading && (P == null || P.close());
|
|
708
709
|
};
|
|
709
710
|
_(() => () => {
|
|
710
|
-
|
|
711
|
+
g();
|
|
711
712
|
}, []);
|
|
712
|
-
const
|
|
713
|
+
const k = (y, h, b) => {
|
|
713
714
|
if (e.onErrorMsg) {
|
|
714
|
-
e.onErrorMsg(
|
|
715
|
+
e.onErrorMsg(y, h);
|
|
715
716
|
return;
|
|
716
717
|
}
|
|
717
718
|
o({
|
|
718
719
|
type: "error",
|
|
719
|
-
message:
|
|
720
|
+
message: h
|
|
720
721
|
});
|
|
721
|
-
},
|
|
722
|
-
var
|
|
722
|
+
}, F = (y) => {
|
|
723
|
+
var h;
|
|
723
724
|
if (e.beforeUpload)
|
|
724
|
-
return e.beforeUpload(
|
|
725
|
-
if (e.accept && !qt(e.accept,
|
|
726
|
-
return
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
if (
|
|
731
|
-
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
|
+
accept: e.accept.replace(/,/g, "\uFF0C")
|
|
729
|
+
}), !1;
|
|
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
|
+
}), !1;
|
|
732
737
|
}
|
|
733
|
-
return (
|
|
734
|
-
},
|
|
735
|
-
var
|
|
736
|
-
(
|
|
737
|
-
},
|
|
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) => {
|
|
738
746
|
var b;
|
|
739
|
-
(b = e.
|
|
740
|
-
},
|
|
741
|
-
var p;
|
|
742
|
-
r.value = re(r.value, (b) => !(d.uid === b.uid && d.name === b.name)), (p = e.onRemove) == null || p.call(e, d, g), P();
|
|
743
|
-
}, y = F(() => L(e.limit) ? e.limit > O(r.value) : !0), h = w(De());
|
|
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());
|
|
744
749
|
return () => {
|
|
745
|
-
var
|
|
750
|
+
var y, h;
|
|
746
751
|
return c("div", {
|
|
747
|
-
class: `pro-uploader ${
|
|
748
|
-
}, [(
|
|
752
|
+
class: `pro-uploader ${C.value ? "" : "pro-uploader-limit"}`
|
|
753
|
+
}, [(y = t.start) == null ? void 0 : y.call(t), c(Re, s({
|
|
749
754
|
ref: l,
|
|
750
|
-
fileList:
|
|
751
|
-
"onUpdate:fileList": (
|
|
752
|
-
}, v(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...
|
|
753
|
-
beforeUpload:
|
|
754
|
-
onSuccess:
|
|
755
|
-
onError:
|
|
756
|
-
onRemove:
|
|
755
|
+
fileList: m.value,
|
|
756
|
+
"onUpdate:fileList": (b) => m.value = b
|
|
757
|
+
}, v(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...M), {
|
|
758
|
+
beforeUpload: F,
|
|
759
|
+
onSuccess: Z,
|
|
760
|
+
onError: J,
|
|
761
|
+
onRemove: S
|
|
757
762
|
}), {
|
|
758
763
|
default: () => {
|
|
759
|
-
var
|
|
760
|
-
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))])];
|
|
761
766
|
},
|
|
762
767
|
...v(t, "default")
|
|
763
|
-
}), (
|
|
768
|
+
}), (h = t.end) == null ? void 0 : h.call(t)]);
|
|
764
769
|
};
|
|
765
770
|
}
|
|
766
|
-
}),
|
|
771
|
+
}), Ue = () => ({
|
|
767
772
|
modelValue: {
|
|
768
773
|
type: Array
|
|
769
774
|
},
|
|
@@ -780,54 +785,54 @@ const Ie = () => ({
|
|
|
780
785
|
divider: {
|
|
781
786
|
type: Function
|
|
782
787
|
}
|
|
783
|
-
}),
|
|
788
|
+
}), ca = x({
|
|
784
789
|
props: {
|
|
785
790
|
...v($.props, "modelValue"),
|
|
786
791
|
controlsPosition: {
|
|
787
792
|
type: String,
|
|
788
793
|
default: "right"
|
|
789
794
|
},
|
|
790
|
-
...
|
|
795
|
+
...Ue()
|
|
791
796
|
},
|
|
792
797
|
setup: (e, {
|
|
793
798
|
slots: t,
|
|
794
799
|
emit: u
|
|
795
800
|
}) => {
|
|
796
|
-
const a =
|
|
797
|
-
let
|
|
798
|
-
|
|
799
|
-
|
|
801
|
+
const a = R(N(e.modelValue, 0)), o = R(N(e.modelValue, 1));
|
|
802
|
+
let n = !1;
|
|
803
|
+
j(() => {
|
|
804
|
+
n || (a.value = N(e.modelValue, 0), o.value = N(e.modelValue, 1)), n = !1;
|
|
800
805
|
}, [e.modelValue, () => e.modelValue]);
|
|
801
|
-
const
|
|
802
|
-
|
|
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);
|
|
803
808
|
}, f = (i) => {
|
|
804
|
-
for (let
|
|
805
|
-
if (
|
|
806
|
-
return i[
|
|
807
|
-
}, r =
|
|
809
|
+
for (let P = 0; P < i.length; P++)
|
|
810
|
+
if (z(i[P]))
|
|
811
|
+
return i[P];
|
|
812
|
+
}, r = E(() => {
|
|
808
813
|
var i;
|
|
809
814
|
return f([o.value, (i = e.start) == null ? void 0 : i.max, e.max]);
|
|
810
|
-
}),
|
|
815
|
+
}), m = E(() => {
|
|
811
816
|
var i;
|
|
812
817
|
return f([a.value, (i = e.end) == null ? void 0 : i.min, e.min]);
|
|
813
|
-
}),
|
|
818
|
+
}), d = V(Ue());
|
|
814
819
|
return () => {
|
|
815
|
-
var
|
|
816
|
-
const i = v(e, ...
|
|
820
|
+
var P, w;
|
|
821
|
+
const i = v(e, ...d, "min", "max");
|
|
817
822
|
return c("span", {
|
|
818
823
|
class: "pro-number-range"
|
|
819
|
-
}, [c($,
|
|
824
|
+
}, [c($, s(i, v(e.start, "max"), {
|
|
820
825
|
max: r.value,
|
|
821
826
|
modelValue: a.value,
|
|
822
|
-
"onUpdate:modelValue": [(
|
|
823
|
-
}), null), c("span", null, [((
|
|
824
|
-
min:
|
|
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,
|
|
825
830
|
modelValue: o.value,
|
|
826
|
-
"onUpdate:modelValue": [(
|
|
831
|
+
"onUpdate:modelValue": [(g) => o.value = g, l]
|
|
827
832
|
}), null)]);
|
|
828
833
|
};
|
|
829
834
|
}
|
|
830
|
-
}),
|
|
835
|
+
}), je = () => ({
|
|
831
836
|
treeData: {
|
|
832
837
|
type: Array
|
|
833
838
|
},
|
|
@@ -844,126 +849,126 @@ const Ie = () => ({
|
|
|
844
849
|
checkedKeys: {
|
|
845
850
|
type: Array
|
|
846
851
|
}
|
|
847
|
-
}),
|
|
852
|
+
}), Ba = x({
|
|
848
853
|
props: {
|
|
849
|
-
...
|
|
850
|
-
...
|
|
854
|
+
...Fe.props,
|
|
855
|
+
...je()
|
|
851
856
|
},
|
|
852
857
|
setup: (e, {
|
|
853
858
|
slots: t
|
|
854
859
|
}) => {
|
|
855
|
-
const u =
|
|
856
|
-
const
|
|
857
|
-
if (!!
|
|
860
|
+
const u = V(je()), o = (() => {
|
|
861
|
+
const n = e.fieldNames;
|
|
862
|
+
if (!!n)
|
|
858
863
|
return {
|
|
859
|
-
label:
|
|
860
|
-
children:
|
|
861
|
-
disabled:
|
|
862
|
-
isLeaf:
|
|
863
|
-
class:
|
|
864
|
+
label: n.title,
|
|
865
|
+
children: n.children,
|
|
866
|
+
disabled: n.disabled,
|
|
867
|
+
isLeaf: n.isLeaf,
|
|
868
|
+
class: n.class
|
|
864
869
|
};
|
|
865
870
|
})();
|
|
866
871
|
return () => {
|
|
867
|
-
var
|
|
868
|
-
return c(
|
|
872
|
+
var n;
|
|
873
|
+
return c(Fe, s(v(e, u), {
|
|
869
874
|
data: e.treeData || e.data,
|
|
870
875
|
props: o || e.props,
|
|
871
|
-
nodeKey: ((
|
|
872
|
-
showCheckbox:
|
|
876
|
+
nodeKey: ((n = e.fieldNames) == null ? void 0 : n.key) || e.nodeKey,
|
|
877
|
+
showCheckbox: q(e.selectable) ? e.selectable : e.showCheckbox,
|
|
873
878
|
defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
|
|
874
879
|
defaultCheckedKeys: e.checkedKeys || e.checkedKeys
|
|
875
880
|
}), t);
|
|
876
881
|
};
|
|
877
882
|
}
|
|
878
883
|
});
|
|
879
|
-
function
|
|
880
|
-
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);
|
|
881
886
|
}
|
|
882
|
-
const
|
|
887
|
+
const We = () => ({
|
|
883
888
|
options: Array
|
|
884
|
-
}),
|
|
889
|
+
}), ia = x({
|
|
885
890
|
props: {
|
|
886
|
-
...
|
|
887
|
-
...
|
|
891
|
+
...Te.props,
|
|
892
|
+
...We()
|
|
888
893
|
},
|
|
889
894
|
setup: (e, {
|
|
890
895
|
slots: t,
|
|
891
896
|
expose: u
|
|
892
897
|
}) => {
|
|
893
|
-
const a =
|
|
894
|
-
u(
|
|
895
|
-
const o =
|
|
896
|
-
return () => c(
|
|
898
|
+
const a = R();
|
|
899
|
+
u(L(a));
|
|
900
|
+
const o = V(We());
|
|
901
|
+
return () => c(Te, s({
|
|
897
902
|
ref: a
|
|
898
903
|
}, v(e, o)), {
|
|
899
904
|
dropdown: () => {
|
|
900
|
-
let
|
|
901
|
-
return c(
|
|
905
|
+
let n;
|
|
906
|
+
return c(Ct, null, da(n = T(e.options, (l) => {
|
|
902
907
|
var r;
|
|
903
|
-
const f = (r = t.label) == null ? void 0 : r.call(t,
|
|
904
|
-
return c(
|
|
905
|
-
command:
|
|
906
|
-
}, v(
|
|
907
|
-
default: () => [f ||
|
|
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]
|
|
908
913
|
});
|
|
909
|
-
})) ?
|
|
910
|
-
default: () => [
|
|
914
|
+
})) ? n : {
|
|
915
|
+
default: () => [n]
|
|
911
916
|
});
|
|
912
917
|
},
|
|
913
918
|
...t
|
|
914
919
|
});
|
|
915
920
|
}
|
|
916
|
-
}),
|
|
917
|
-
InputComp:
|
|
921
|
+
}), fa = B({
|
|
922
|
+
InputComp: wt,
|
|
918
923
|
valueType: "text",
|
|
919
924
|
name: "PFromText"
|
|
920
|
-
}),
|
|
925
|
+
}), ma = B({
|
|
921
926
|
InputComp: $,
|
|
922
927
|
valueType: "digit",
|
|
923
928
|
name: "PFormNumber"
|
|
924
|
-
}),
|
|
925
|
-
InputComp:
|
|
929
|
+
}), ya = B({
|
|
930
|
+
InputComp: ca,
|
|
926
931
|
valueType: "digitRange",
|
|
927
932
|
name: "PFormNumberRange"
|
|
928
|
-
}),
|
|
929
|
-
InputComp:
|
|
933
|
+
}), sa = B({
|
|
934
|
+
InputComp: xt,
|
|
930
935
|
valueType: "date",
|
|
931
936
|
name: "PFormDate"
|
|
932
|
-
}),
|
|
933
|
-
InputComp:
|
|
937
|
+
}), ga = B({
|
|
938
|
+
InputComp: kt,
|
|
934
939
|
valueType: "time",
|
|
935
940
|
name: "PFormTime"
|
|
936
|
-
}),
|
|
937
|
-
InputComp:
|
|
941
|
+
}), va = B({
|
|
942
|
+
InputComp: ra,
|
|
938
943
|
valueType: "select",
|
|
939
944
|
name: "PFormSelect"
|
|
940
|
-
}),
|
|
941
|
-
InputComp:
|
|
945
|
+
}), ha = B({
|
|
946
|
+
InputComp: Et,
|
|
942
947
|
valueType: "treeSelect",
|
|
943
948
|
name: "PFormTreeSelect"
|
|
944
|
-
}),
|
|
945
|
-
InputComp:
|
|
949
|
+
}), ba = B({
|
|
950
|
+
InputComp: na,
|
|
946
951
|
valueType: "checkbox",
|
|
947
952
|
name: "PFromCheckbox"
|
|
948
|
-
}),
|
|
949
|
-
InputComp:
|
|
953
|
+
}), pa = B({
|
|
954
|
+
InputComp: la,
|
|
950
955
|
valueType: "radio",
|
|
951
956
|
name: "PFromRadio"
|
|
952
|
-
}),
|
|
953
|
-
InputComp:
|
|
957
|
+
}), Sa = B({
|
|
958
|
+
InputComp: Rt,
|
|
954
959
|
valueType: "switch",
|
|
955
960
|
name: "PFromSwitch"
|
|
956
|
-
}),
|
|
957
|
-
InputComp:
|
|
961
|
+
}), Pa = B({
|
|
962
|
+
InputComp: Ft,
|
|
958
963
|
valueType: "cascader",
|
|
959
964
|
name: "PFormCascader"
|
|
960
|
-
}),
|
|
961
|
-
InputComp:
|
|
965
|
+
}), Ca = B({
|
|
966
|
+
InputComp: Tt,
|
|
962
967
|
valueType: "color",
|
|
963
968
|
name: "PFormColor"
|
|
964
|
-
}),
|
|
969
|
+
}), ut = x({
|
|
965
970
|
props: {
|
|
966
|
-
...v(
|
|
971
|
+
...v(le.props, "label", "prop"),
|
|
967
972
|
title: {
|
|
968
973
|
type: String
|
|
969
974
|
},
|
|
@@ -981,52 +986,52 @@ const Ae = () => ({
|
|
|
981
986
|
slots: t
|
|
982
987
|
}) => {
|
|
983
988
|
const u = ({
|
|
984
|
-
row:
|
|
985
|
-
column:
|
|
989
|
+
row: n,
|
|
990
|
+
column: l,
|
|
986
991
|
$index: f
|
|
987
992
|
}) => {
|
|
988
|
-
var
|
|
989
|
-
const r =
|
|
990
|
-
...
|
|
991
|
-
title:
|
|
992
|
-
dataIndex:
|
|
993
|
-
}, i =
|
|
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 = {
|
|
994
999
|
value: i,
|
|
995
1000
|
text: i,
|
|
996
1001
|
record: r,
|
|
997
|
-
column:
|
|
998
|
-
index:
|
|
999
|
-
},
|
|
1000
|
-
return
|
|
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);
|
|
1001
1006
|
}, o = {
|
|
1002
1007
|
header: ({
|
|
1003
|
-
column:
|
|
1004
|
-
$index:
|
|
1008
|
+
column: n,
|
|
1009
|
+
$index: l
|
|
1005
1010
|
}) => {
|
|
1006
1011
|
var i;
|
|
1007
|
-
const f =
|
|
1008
|
-
...
|
|
1012
|
+
const f = l, r = n.label, m = {
|
|
1013
|
+
...n,
|
|
1009
1014
|
title: r,
|
|
1010
|
-
dataIndex:
|
|
1015
|
+
dataIndex: n.property
|
|
1011
1016
|
};
|
|
1012
1017
|
return ((i = t.headerCell) == null ? void 0 : i.call(t, {
|
|
1013
1018
|
title: r,
|
|
1014
|
-
column:
|
|
1019
|
+
column: m,
|
|
1015
1020
|
index: f
|
|
1016
1021
|
})) || r;
|
|
1017
1022
|
}
|
|
1018
1023
|
};
|
|
1019
|
-
return (!e.children ||
|
|
1024
|
+
return (!e.children || D(e.children) <= 0) && (o.default = u), () => c(le, s(v(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
1020
1025
|
prop: e.dataIndex,
|
|
1021
1026
|
label: e.title
|
|
1022
1027
|
}), {
|
|
1023
|
-
default: () => [
|
|
1024
|
-
key:
|
|
1025
|
-
},
|
|
1028
|
+
default: () => [D(e.children) > 0 && T(e.children, (n) => c(ut, s({
|
|
1029
|
+
key: n.dataIndex
|
|
1030
|
+
}, n), t))],
|
|
1026
1031
|
...o
|
|
1027
1032
|
});
|
|
1028
1033
|
}
|
|
1029
|
-
}),
|
|
1034
|
+
}), Ka = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], wa = () => ({
|
|
1030
1035
|
columns: {
|
|
1031
1036
|
type: Array
|
|
1032
1037
|
},
|
|
@@ -1046,141 +1051,141 @@ const Ae = () => ({
|
|
|
1046
1051
|
type: Object,
|
|
1047
1052
|
default: void 0
|
|
1048
1053
|
}
|
|
1049
|
-
}),
|
|
1054
|
+
}), ct = x({
|
|
1050
1055
|
props: {
|
|
1051
|
-
...
|
|
1052
|
-
...
|
|
1056
|
+
...Me.props,
|
|
1057
|
+
...wa()
|
|
1053
1058
|
},
|
|
1054
1059
|
setup: (e, {
|
|
1055
1060
|
slots: t,
|
|
1056
1061
|
expose: u,
|
|
1057
1062
|
emit: a
|
|
1058
1063
|
}) => {
|
|
1059
|
-
const o =
|
|
1060
|
-
u(
|
|
1061
|
-
const
|
|
1062
|
-
...
|
|
1063
|
-
[r(
|
|
1064
|
-
}), {})), r = (
|
|
1065
|
-
const
|
|
1066
|
-
return Ut(
|
|
1067
|
-
},
|
|
1068
|
-
const
|
|
1069
|
-
return
|
|
1070
|
-
}), i =
|
|
1071
|
-
const
|
|
1072
|
-
return
|
|
1073
|
-
}),
|
|
1074
|
-
...
|
|
1075
|
-
[
|
|
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
|
|
1076
1081
|
}), {}));
|
|
1077
|
-
let
|
|
1078
|
-
const
|
|
1079
|
-
var
|
|
1080
|
-
if (!
|
|
1082
|
+
let w = [], g = !1;
|
|
1083
|
+
const k = (S) => {
|
|
1084
|
+
var M, y, h, b, K, A, ie, fe;
|
|
1085
|
+
if (!g)
|
|
1081
1086
|
return;
|
|
1082
|
-
const
|
|
1083
|
-
if (
|
|
1084
|
-
if (
|
|
1085
|
-
const
|
|
1086
|
-
|
|
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));
|
|
1087
1092
|
return;
|
|
1088
|
-
} else if (
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1092
|
-
(
|
|
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);
|
|
1093
1098
|
});
|
|
1094
1099
|
return;
|
|
1095
1100
|
}
|
|
1096
1101
|
}
|
|
1097
|
-
if (!
|
|
1102
|
+
if (!Gt(i.value, C, {
|
|
1098
1103
|
sort: !0
|
|
1099
1104
|
})) {
|
|
1100
|
-
if (!
|
|
1101
|
-
const
|
|
1102
|
-
(
|
|
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);
|
|
1103
1108
|
return;
|
|
1104
1109
|
}
|
|
1105
1110
|
if ((b = e.rowSelection) != null && b.pagination) {
|
|
1106
|
-
const
|
|
1107
|
-
|
|
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);
|
|
1108
1113
|
return;
|
|
1109
1114
|
}
|
|
1110
|
-
(
|
|
1115
|
+
(fe = (ie = e.rowSelection).onChange) == null || fe.call(ie, C, S), a("update:selectedRowKeys", C);
|
|
1111
1116
|
}
|
|
1112
|
-
},
|
|
1117
|
+
}, F = E(() => {
|
|
1113
1118
|
if (!!e.rowSelection)
|
|
1114
1119
|
return {
|
|
1115
|
-
onSelectionChange:
|
|
1120
|
+
onSelectionChange: k
|
|
1116
1121
|
};
|
|
1117
1122
|
});
|
|
1118
1123
|
_(() => {
|
|
1119
|
-
var
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1122
|
-
if (
|
|
1123
|
-
const
|
|
1124
|
-
...
|
|
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,
|
|
1125
1130
|
[r(b)]: !0
|
|
1126
1131
|
}), {});
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
var
|
|
1130
|
-
const b = r(
|
|
1131
|
-
|
|
1132
|
-
}),
|
|
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;
|
|
1133
1138
|
});
|
|
1134
1139
|
} else
|
|
1135
|
-
|
|
1136
|
-
}, [i,
|
|
1140
|
+
g = !0;
|
|
1141
|
+
}, [i, l]);
|
|
1137
1142
|
const Z = () => {
|
|
1138
|
-
var
|
|
1143
|
+
var S, C;
|
|
1139
1144
|
if (e.spanMethod)
|
|
1140
1145
|
return e.spanMethod;
|
|
1141
|
-
if (((
|
|
1142
|
-
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);
|
|
1143
1148
|
return ({
|
|
1144
|
-
row:
|
|
1145
|
-
column:
|
|
1149
|
+
row: y,
|
|
1150
|
+
column: h
|
|
1146
1151
|
}) => {
|
|
1147
|
-
const b =
|
|
1148
|
-
if (
|
|
1149
|
-
const
|
|
1152
|
+
const b = h.property;
|
|
1153
|
+
if (M[b]) {
|
|
1154
|
+
const K = y[M[b]], A = y[b + "-colspan"];
|
|
1150
1155
|
return {
|
|
1151
|
-
rowspan:
|
|
1152
|
-
colspan:
|
|
1156
|
+
rowspan: K !== void 0 ? K : 1,
|
|
1157
|
+
colspan: A !== void 0 ? A : 1
|
|
1153
1158
|
};
|
|
1154
1159
|
}
|
|
1155
1160
|
};
|
|
1156
1161
|
}
|
|
1157
1162
|
return e.spanMethod;
|
|
1158
|
-
},
|
|
1159
|
-
return () => c(
|
|
1163
|
+
}, J = E(() => Z());
|
|
1164
|
+
return () => c(Me, s({
|
|
1160
1165
|
ref: o,
|
|
1161
|
-
id:
|
|
1166
|
+
id: n
|
|
1162
1167
|
}, v(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
|
|
1163
|
-
data:
|
|
1164
|
-
spanMethod:
|
|
1165
|
-
},
|
|
1168
|
+
data: l.value,
|
|
1169
|
+
spanMethod: J.value
|
|
1170
|
+
}, F.value), {
|
|
1166
1171
|
default: () => {
|
|
1167
|
-
var
|
|
1168
|
-
return [(
|
|
1172
|
+
var S, C, M, y, h;
|
|
1173
|
+
return [(S = t.start) == null ? void 0 : S.call(t), m.value && c(le, s({
|
|
1169
1174
|
type: "selection",
|
|
1170
|
-
className:
|
|
1171
|
-
}, v((
|
|
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({
|
|
1172
1177
|
key: b.dataIndex
|
|
1173
|
-
}, b), t)), (
|
|
1174
|
-
target:
|
|
1178
|
+
}, b), t)), (h = t.default) == null ? void 0 : h.call(t), e.loading && c(at, {
|
|
1179
|
+
target: n,
|
|
1175
1180
|
loading: !0
|
|
1176
1181
|
}, null)];
|
|
1177
1182
|
},
|
|
1178
|
-
...
|
|
1183
|
+
...G(t, "append", "empty")
|
|
1179
1184
|
});
|
|
1180
1185
|
}
|
|
1181
|
-
}),
|
|
1186
|
+
}), xa = x({
|
|
1182
1187
|
props: {
|
|
1183
|
-
...
|
|
1188
|
+
...re.props,
|
|
1184
1189
|
type: {
|
|
1185
1190
|
type: String,
|
|
1186
1191
|
default: "primary"
|
|
@@ -1192,141 +1197,222 @@ const Ae = () => ({
|
|
|
1192
1197
|
},
|
|
1193
1198
|
setup: (e, {
|
|
1194
1199
|
slots: t
|
|
1195
|
-
}) => () => 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
|
+
}
|
|
1196
1280
|
});
|
|
1197
|
-
|
|
1198
|
-
...
|
|
1199
|
-
...
|
|
1200
|
-
formMethods: { type: Array, default:
|
|
1281
|
+
U.props = {
|
|
1282
|
+
...ne.props,
|
|
1283
|
+
...U.props,
|
|
1284
|
+
formMethods: { type: Array, default: et }
|
|
1201
1285
|
};
|
|
1202
|
-
|
|
1203
|
-
...
|
|
1204
|
-
...
|
|
1286
|
+
Y.props = {
|
|
1287
|
+
...U.props,
|
|
1288
|
+
...Y.props,
|
|
1205
1289
|
inline: { type: Boolean, default: !0 }
|
|
1206
1290
|
};
|
|
1207
|
-
|
|
1208
|
-
...
|
|
1209
|
-
...
|
|
1210
|
-
};
|
|
1211
|
-
Y.props = {
|
|
1212
|
-
...lt.props,
|
|
1213
|
-
...Y.props
|
|
1291
|
+
me.props = {
|
|
1292
|
+
...ae.props,
|
|
1293
|
+
...me.props
|
|
1214
1294
|
};
|
|
1215
1295
|
ee.props = {
|
|
1216
|
-
...
|
|
1296
|
+
...ct.props,
|
|
1217
1297
|
...ee.props
|
|
1218
1298
|
};
|
|
1299
|
+
te.props = {
|
|
1300
|
+
..._e.props,
|
|
1301
|
+
...te.props
|
|
1302
|
+
};
|
|
1219
1303
|
ye.props = {
|
|
1220
|
-
...
|
|
1304
|
+
...te.props,
|
|
1221
1305
|
...ye.props
|
|
1222
1306
|
};
|
|
1223
|
-
me.props = {
|
|
1224
|
-
...A.props,
|
|
1225
|
-
...me.props
|
|
1226
|
-
};
|
|
1227
1307
|
se.props = {
|
|
1228
|
-
...
|
|
1308
|
+
...U.props,
|
|
1229
1309
|
...se.props
|
|
1230
1310
|
};
|
|
1231
1311
|
ge.props = {
|
|
1232
|
-
...
|
|
1233
|
-
...ge.props
|
|
1234
|
-
modelValue: String
|
|
1312
|
+
...nt.props,
|
|
1313
|
+
...ge.props
|
|
1235
1314
|
};
|
|
1236
1315
|
ve.props = {
|
|
1237
|
-
...
|
|
1316
|
+
...ot.props,
|
|
1238
1317
|
...ve.props,
|
|
1318
|
+
modelValue: String
|
|
1319
|
+
};
|
|
1320
|
+
he.props = {
|
|
1321
|
+
...Ze.props,
|
|
1322
|
+
...he.props,
|
|
1239
1323
|
placement: { type: String, default: "top-start" }
|
|
1240
1324
|
};
|
|
1241
|
-
const
|
|
1242
|
-
[
|
|
1243
|
-
[
|
|
1244
|
-
[
|
|
1245
|
-
[
|
|
1246
|
-
[
|
|
1247
|
-
[
|
|
1248
|
-
[
|
|
1249
|
-
[
|
|
1250
|
-
[
|
|
1251
|
-
[
|
|
1252
|
-
[
|
|
1253
|
-
[
|
|
1254
|
-
[
|
|
1255
|
-
[
|
|
1256
|
-
[
|
|
1257
|
-
[
|
|
1258
|
-
[
|
|
1259
|
-
[
|
|
1260
|
-
[
|
|
1261
|
-
[
|
|
1262
|
-
[
|
|
1263
|
-
[
|
|
1264
|
-
[
|
|
1265
|
-
[
|
|
1266
|
-
[
|
|
1267
|
-
[
|
|
1268
|
-
[
|
|
1269
|
-
[
|
|
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,
|
|
1270
1355
|
text: be,
|
|
1271
|
-
digit:
|
|
1272
|
-
date:
|
|
1356
|
+
digit: st,
|
|
1357
|
+
date: gt,
|
|
1273
1358
|
time: be,
|
|
1274
|
-
select:
|
|
1275
|
-
radio:
|
|
1276
|
-
checkbox:
|
|
1359
|
+
select: Q,
|
|
1360
|
+
radio: Q,
|
|
1361
|
+
checkbox: Q,
|
|
1277
1362
|
treeSelect: pe,
|
|
1278
1363
|
cascader: pe
|
|
1279
|
-
},
|
|
1280
|
-
text:
|
|
1281
|
-
digit:
|
|
1282
|
-
digitRange:
|
|
1283
|
-
date:
|
|
1284
|
-
time:
|
|
1285
|
-
select:
|
|
1286
|
-
treeSelect:
|
|
1287
|
-
checkbox:
|
|
1288
|
-
radio:
|
|
1289
|
-
switch:
|
|
1290
|
-
cascader:
|
|
1291
|
-
color:
|
|
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
|
|
1292
1377
|
};
|
|
1293
1378
|
export {
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
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
|
-
|
|
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
|
|
1332
1418
|
};
|