@vue-start/element-pro 0.2.27 → 0.2.29
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 +8 -0
- package/dist/index.d.ts +3649 -194
- package/dist/index.es.js +513 -467
- 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 w, omit as y, isBoolean as $, isString as
|
|
5
|
-
import { useEffect as G, generateId as
|
|
6
|
-
const
|
|
1
|
+
import { createExpose as Be, createFormItemCompFn as Je, createExposeObj as U, useProConfig as Qe, ProForm as O, ProSearchForm as W, ProFormList as te, ProTable as Z, ProDesc as H, ProCurdDesc as ne, ProCurdForm as ae, ProCurdModal as le, ProUploaderText as re, ProTip as oe, ElementKeys as b, ProCurd as Xe, ProList as Ye, ProPage as et, ProShowText as ue, ProShowDigit as tt, ProShowDate as nt, ProShowOptions as _, ProShowTree as ce } from "@vue-start/pro";
|
|
2
|
+
import { ElFormItem as J, ElForm as Q, ElLoading as Ne, ElDialog as de, ElButton as z, ElPagination as ie, ElPopover as fe, ElCheckboxGroup as me, ElCheckboxButton as at, ElCheckbox as De, ElRadioGroup as ye, ElRadioButton as lt, ElRadio as rt, ElSelect as se, ElOption as ot, ElTabs as ge, ElTabPane as ut, ElMenu as q, ElUpload as ve, useFormItem as ct, ElInputNumber as j, ElTree as be, ElInput as dt, ElDatePicker as it, ElTimePicker as ft, ElTreeSelect as mt, ElSwitch as yt, ElCascader as st, ElTableColumn as X, ElTable as he, ElDropdown as Pe, ElDropdownMenu as gt, ElDropdownItem as vt, ElDescriptions as Le, ElTooltip as Ae, ElRow as bt, ElCol as ht, ElDescriptionsItem as Pt } from "element-plus";
|
|
3
|
+
import { defineComponent as C, createVNode as c, mergeProps as s, reactive as St, ref as T, toRaw as pt, computed as N, Fragment as Oe, nextTick as Se, isVNode as Ct } from "vue";
|
|
4
|
+
import { keys as w, omit as y, isBoolean as $, isString as kt, debounce as Kt, map as R, size as D, pick as Y, get as B, isNumber as L, isArray as Ft, filter as pe, reduce as Ce, forEach as Et, find as xt, isFunction as Tt } from "lodash";
|
|
5
|
+
import { useEffect as G, generateId as Rt, useWatch as A, convertCollection as wt, isValidFileType as Mt, convertFileSize as It, isSame as ke, getNameMapByMergeOpts as Vt } from "@vue-start/hooks";
|
|
6
|
+
const Ke = () => ({
|
|
7
7
|
name: {
|
|
8
8
|
type: [String, Array]
|
|
9
9
|
}
|
|
10
|
-
}),
|
|
10
|
+
}), ze = C({
|
|
11
11
|
props: {
|
|
12
|
-
...
|
|
13
|
-
...
|
|
12
|
+
...J.props,
|
|
13
|
+
...Ke()
|
|
14
14
|
},
|
|
15
15
|
setup: (e, {
|
|
16
16
|
slots: t
|
|
17
17
|
}) => {
|
|
18
|
-
const u = w(
|
|
19
|
-
return () => c(
|
|
18
|
+
const u = w(Ke());
|
|
19
|
+
return () => c(J, s(y(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
|
+
}), Ue = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], Bt = C({
|
|
27
27
|
props: {
|
|
28
|
-
...
|
|
28
|
+
...Q.props,
|
|
29
29
|
hideRequiredMark: {
|
|
30
30
|
type: [Boolean, Object],
|
|
31
31
|
default: void 0
|
|
@@ -36,27 +36,27 @@ const ke = () => ({
|
|
|
36
36
|
emit: u,
|
|
37
37
|
expose: n
|
|
38
38
|
}) => {
|
|
39
|
-
const o = e.model ||
|
|
39
|
+
const o = e.model || St({}), l = T();
|
|
40
40
|
return G(() => {
|
|
41
|
-
!
|
|
41
|
+
!l.value || (l.value.submit = () => {
|
|
42
42
|
var a;
|
|
43
|
-
(a =
|
|
44
|
-
|
|
43
|
+
(a = l.value) == null || a.validate((f, r) => {
|
|
44
|
+
f ? u("finish", pt(o)) : u("finishFailed", r);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
}, []), n(
|
|
48
|
-
ref:
|
|
47
|
+
}, []), n(Be(Ue, l)), () => c(Q, s({
|
|
48
|
+
ref: l
|
|
49
49
|
}, y(e, "model"), {
|
|
50
50
|
hideRequiredAsterisk: $(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
51
51
|
model: o
|
|
52
52
|
}), t);
|
|
53
53
|
}
|
|
54
|
-
}), M =
|
|
54
|
+
}), M = Je(ze, (e, t, u) => ({
|
|
55
55
|
modelValue: e,
|
|
56
56
|
"onUpdate:modelValue": t,
|
|
57
57
|
clearable: !0,
|
|
58
58
|
disabled: u
|
|
59
|
-
})),
|
|
59
|
+
})), je = (e = "comp") => e + "-" + Rt(), Nt = () => ({
|
|
60
60
|
loading: {
|
|
61
61
|
type: Boolean
|
|
62
62
|
},
|
|
@@ -84,21 +84,21 @@ const ke = () => ({
|
|
|
84
84
|
customClass: {
|
|
85
85
|
type: String
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), qe = C({
|
|
88
88
|
props: {
|
|
89
|
-
...
|
|
89
|
+
...Nt()
|
|
90
90
|
},
|
|
91
91
|
setup: (e, {
|
|
92
92
|
slots: t
|
|
93
93
|
}) => {
|
|
94
|
-
const u =
|
|
94
|
+
const u = je();
|
|
95
95
|
return G(() => {
|
|
96
96
|
if (!e.loading)
|
|
97
97
|
return;
|
|
98
98
|
let n = e.target;
|
|
99
|
-
if (t.default ? n = document.getElementById(u) : e.target &&
|
|
99
|
+
if (t.default ? n = document.getElementById(u) : e.target && kt(e.target) && (n = document.querySelector("#" + e.target)), !n)
|
|
100
100
|
return;
|
|
101
|
-
const o =
|
|
101
|
+
const o = Ne.service({
|
|
102
102
|
target: n,
|
|
103
103
|
body: e.body,
|
|
104
104
|
fullscreen: e.fullscreen,
|
|
@@ -115,7 +115,7 @@ const ke = () => ({
|
|
|
115
115
|
id: u
|
|
116
116
|
}, [t.default()]) : null;
|
|
117
117
|
}
|
|
118
|
-
}),
|
|
118
|
+
}), Fe = () => ({
|
|
119
119
|
clsName: {
|
|
120
120
|
type: String,
|
|
121
121
|
default: "pro-modal"
|
|
@@ -147,47 +147,47 @@ const ke = () => ({
|
|
|
147
147
|
type: [Object, Boolean],
|
|
148
148
|
default: void 0
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
150
|
+
}), $e = C({
|
|
151
151
|
inheritAttrs: !1,
|
|
152
152
|
props: {
|
|
153
|
-
...
|
|
153
|
+
...de.props,
|
|
154
154
|
appendToBody: {
|
|
155
155
|
type: Boolean,
|
|
156
156
|
default: !0
|
|
157
157
|
},
|
|
158
|
-
...
|
|
158
|
+
...Fe()
|
|
159
159
|
},
|
|
160
160
|
setup: (e, {
|
|
161
161
|
slots: t,
|
|
162
162
|
emit: u,
|
|
163
163
|
attrs: n
|
|
164
164
|
}) => {
|
|
165
|
-
const o =
|
|
166
|
-
|
|
165
|
+
const o = T(e.visible);
|
|
166
|
+
A(() => {
|
|
167
167
|
o.value !== e.visible && (o.value = e.visible);
|
|
168
168
|
}, () => e.visible);
|
|
169
|
-
const
|
|
170
|
-
var
|
|
171
|
-
if ((
|
|
169
|
+
const l = () => {
|
|
170
|
+
var r;
|
|
171
|
+
if ((r = e.cancelButtonProps) != null && r.onClick) {
|
|
172
172
|
e.cancelButtonProps.onClick();
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
o.value = !1, u("update:visible", !1);
|
|
176
176
|
}, a = () => {
|
|
177
|
-
var
|
|
178
|
-
if ((
|
|
177
|
+
var r;
|
|
178
|
+
if ((r = e.okButtonProps) != null && r.onClick) {
|
|
179
179
|
e.okButtonProps.onClick();
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
u("ok");
|
|
183
|
-
},
|
|
184
|
-
return () => c(
|
|
183
|
+
}, f = w(Fe());
|
|
184
|
+
return () => c(de, s({
|
|
185
185
|
class: e.clsName
|
|
186
|
-
}, y(n, "onCancel"), y(e, ...
|
|
186
|
+
}, y(n, "onCancel"), y(e, ...f, "modelValue"), {
|
|
187
187
|
closeOnClickModal: $(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
|
|
188
188
|
modelValue: o.value,
|
|
189
|
-
"onUpdate:modelValue": [(
|
|
190
|
-
u("update:visible",
|
|
189
|
+
"onUpdate:modelValue": [(r) => o.value = r, (r) => {
|
|
190
|
+
u("update:visible", r);
|
|
191
191
|
}],
|
|
192
192
|
onClose: () => {
|
|
193
193
|
u("cancel");
|
|
@@ -195,11 +195,11 @@ const ke = () => ({
|
|
|
195
195
|
}), {
|
|
196
196
|
footer: e.footer === !1 ? void 0 : () => c("div", {
|
|
197
197
|
class: `${e.clsName}-operate`
|
|
198
|
-
}, [c(
|
|
199
|
-
onClick:
|
|
198
|
+
}, [c(z, s(y(e.cancelButtonProps, "onClick"), {
|
|
199
|
+
onClick: l
|
|
200
200
|
}), {
|
|
201
201
|
default: () => [e.cancelText]
|
|
202
|
-
}), c(
|
|
202
|
+
}), c(z, s({
|
|
203
203
|
type: "primary",
|
|
204
204
|
loading: e.confirmLoading
|
|
205
205
|
}, y(e.okButtonProps, "onClick"), {
|
|
@@ -210,9 +210,9 @@ const ke = () => ({
|
|
|
210
210
|
...t
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
}),
|
|
213
|
+
}), Dt = C({
|
|
214
214
|
props: {
|
|
215
|
-
...
|
|
215
|
+
...ie.props,
|
|
216
216
|
page: {
|
|
217
217
|
type: Number,
|
|
218
218
|
default: 1
|
|
@@ -222,39 +222,39 @@ const ke = () => ({
|
|
|
222
222
|
slots: t,
|
|
223
223
|
emit: u
|
|
224
224
|
}) => {
|
|
225
|
-
const n =
|
|
226
|
-
|
|
225
|
+
const n = T(e.page), o = T(e.pageSize);
|
|
226
|
+
A(() => {
|
|
227
227
|
n.value !== e.page && (n.value = e.page);
|
|
228
|
-
}, () => e.page),
|
|
228
|
+
}, () => e.page), A(() => {
|
|
229
229
|
o.value !== e.pageSize && (o.value = e.pageSize);
|
|
230
230
|
}, () => e.pageSize);
|
|
231
|
-
const
|
|
231
|
+
const l = Kt(() => {
|
|
232
232
|
u("composeChange", n.value, o.value);
|
|
233
233
|
}, 300), a = () => {
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
|
|
234
|
+
l(), u("update:page", n.value);
|
|
235
|
+
}, f = () => {
|
|
236
|
+
l(), u("update:pageSize", o.value);
|
|
237
237
|
};
|
|
238
|
-
return () => c(
|
|
238
|
+
return () => c(ie, s({
|
|
239
239
|
currentPage: n.value,
|
|
240
|
-
"onUpdate:currentPage": (
|
|
240
|
+
"onUpdate:currentPage": (r) => n.value = r,
|
|
241
241
|
pageSize: o.value,
|
|
242
|
-
"onUpdate:pageSize": (
|
|
242
|
+
"onUpdate:pageSize": (r) => o.value = r,
|
|
243
243
|
onCurrentChange: a,
|
|
244
|
-
onSizeChange:
|
|
244
|
+
onSizeChange: f
|
|
245
245
|
}, y(e, "currentPage", "pageSize")), t);
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
247
|
+
}), Lt = C({
|
|
248
248
|
props: {
|
|
249
|
-
...
|
|
249
|
+
...fe.props
|
|
250
250
|
},
|
|
251
251
|
setup: (e, {
|
|
252
252
|
slots: t
|
|
253
|
-
}) => () => c(
|
|
253
|
+
}) => () => c(fe, e, {
|
|
254
254
|
reference: t.default,
|
|
255
255
|
default: t.content
|
|
256
256
|
})
|
|
257
|
-
}),
|
|
257
|
+
}), Ee = () => ({
|
|
258
258
|
options: Array,
|
|
259
259
|
buttonStyle: {
|
|
260
260
|
type: String,
|
|
@@ -264,45 +264,45 @@ const ke = () => ({
|
|
|
264
264
|
type: String,
|
|
265
265
|
default: "default"
|
|
266
266
|
}
|
|
267
|
-
}),
|
|
267
|
+
}), At = C({
|
|
268
268
|
props: {
|
|
269
|
-
...
|
|
270
|
-
...
|
|
269
|
+
...me.props,
|
|
270
|
+
...Ee()
|
|
271
271
|
},
|
|
272
272
|
setup: (e, {
|
|
273
273
|
slots: t,
|
|
274
274
|
emit: u,
|
|
275
275
|
expose: n
|
|
276
276
|
}) => {
|
|
277
|
-
const o =
|
|
278
|
-
n(
|
|
279
|
-
const
|
|
280
|
-
return () => c(
|
|
277
|
+
const o = T();
|
|
278
|
+
n(U(o));
|
|
279
|
+
const l = w(Ee());
|
|
280
|
+
return () => c(me, s({
|
|
281
281
|
ref: o
|
|
282
|
-
}, y(e,
|
|
282
|
+
}, y(e, l), {
|
|
283
283
|
"onUpdate:modelValue": (a) => {
|
|
284
284
|
u("update:modelValue", a || void 0);
|
|
285
285
|
}
|
|
286
286
|
}), {
|
|
287
287
|
default: () => {
|
|
288
|
-
var a,
|
|
289
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
290
|
-
var
|
|
291
|
-
const
|
|
292
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
293
|
-
key:
|
|
294
|
-
}, y(
|
|
295
|
-
label:
|
|
288
|
+
var a, f;
|
|
289
|
+
return [(a = t.start) == null ? void 0 : a.call(t), R(e.options, (r) => {
|
|
290
|
+
var P;
|
|
291
|
+
const h = (P = t.label) == null ? void 0 : P.call(t, r);
|
|
292
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(at, s({
|
|
293
|
+
key: r.value
|
|
294
|
+
}, y(r, "value"), {
|
|
295
|
+
label: r.value
|
|
296
296
|
}), {
|
|
297
|
-
default: () => [
|
|
298
|
-
}) : c(
|
|
299
|
-
key:
|
|
300
|
-
},
|
|
301
|
-
label:
|
|
297
|
+
default: () => [h || r.label]
|
|
298
|
+
}) : c(De, s({
|
|
299
|
+
key: r.value
|
|
300
|
+
}, r, {
|
|
301
|
+
label: r.value
|
|
302
302
|
}), {
|
|
303
|
-
default: () => [
|
|
303
|
+
default: () => [h || r.label]
|
|
304
304
|
});
|
|
305
|
-
}), (
|
|
305
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
306
306
|
}
|
|
307
307
|
});
|
|
308
308
|
}
|
|
@@ -318,9 +318,9 @@ const ke = () => ({
|
|
|
318
318
|
type: String,
|
|
319
319
|
default: "default"
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), Ot = C({
|
|
322
322
|
props: {
|
|
323
|
-
...
|
|
323
|
+
...ye.props,
|
|
324
324
|
...xe()
|
|
325
325
|
},
|
|
326
326
|
setup: (e, {
|
|
@@ -328,78 +328,78 @@ const ke = () => ({
|
|
|
328
328
|
emit: u,
|
|
329
329
|
expose: n
|
|
330
330
|
}) => {
|
|
331
|
-
const o =
|
|
332
|
-
n(
|
|
333
|
-
const
|
|
334
|
-
return () => c(
|
|
331
|
+
const o = T();
|
|
332
|
+
n(U(o));
|
|
333
|
+
const l = w(xe());
|
|
334
|
+
return () => c(ye, s({
|
|
335
335
|
ref: o
|
|
336
|
-
}, y(e,
|
|
336
|
+
}, y(e, l), {
|
|
337
337
|
"onUpdate:modelValue": (a) => {
|
|
338
338
|
u("update:modelValue", a);
|
|
339
339
|
}
|
|
340
340
|
}), {
|
|
341
341
|
default: () => {
|
|
342
|
-
var a,
|
|
343
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
344
|
-
var
|
|
345
|
-
const
|
|
346
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
347
|
-
key:
|
|
348
|
-
}, y(
|
|
349
|
-
label:
|
|
342
|
+
var a, f;
|
|
343
|
+
return [(a = t.start) == null ? void 0 : a.call(t), R(e.options, (r) => {
|
|
344
|
+
var P;
|
|
345
|
+
const h = (P = t.label) == null ? void 0 : P.call(t, r);
|
|
346
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(lt, s({
|
|
347
|
+
key: r.value
|
|
348
|
+
}, y(r, "value"), {
|
|
349
|
+
label: r.value
|
|
350
350
|
}), {
|
|
351
|
-
default: () => [
|
|
352
|
-
}) : c(
|
|
353
|
-
key:
|
|
354
|
-
}, y(
|
|
355
|
-
label:
|
|
351
|
+
default: () => [h || r.label]
|
|
352
|
+
}) : c(rt, s({
|
|
353
|
+
key: r.value
|
|
354
|
+
}, y(r, "value"), {
|
|
355
|
+
label: r.value
|
|
356
356
|
}), {
|
|
357
|
-
default: () => [
|
|
357
|
+
default: () => [h || r.label]
|
|
358
358
|
});
|
|
359
|
-
}), (
|
|
359
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
|
-
}),
|
|
363
|
+
}), Te = () => ({
|
|
364
364
|
options: Array
|
|
365
|
-
}),
|
|
365
|
+
}), zt = C({
|
|
366
366
|
props: {
|
|
367
|
-
...
|
|
368
|
-
...
|
|
367
|
+
...se.props,
|
|
368
|
+
...Te()
|
|
369
369
|
},
|
|
370
370
|
setup: (e, {
|
|
371
371
|
slots: t,
|
|
372
372
|
emit: u,
|
|
373
373
|
expose: n
|
|
374
374
|
}) => {
|
|
375
|
-
const o =
|
|
376
|
-
n(
|
|
377
|
-
const
|
|
378
|
-
return () => c(
|
|
375
|
+
const o = T();
|
|
376
|
+
n(U(o));
|
|
377
|
+
const l = w(Te());
|
|
378
|
+
return () => c(se, s({
|
|
379
379
|
ref: o
|
|
380
|
-
}, y(e,
|
|
380
|
+
}, y(e, l), {
|
|
381
381
|
"onUpdate:modelValue": (a) => {
|
|
382
382
|
u("update:modelValue", a || void 0);
|
|
383
383
|
}
|
|
384
384
|
}), {
|
|
385
385
|
default: () => {
|
|
386
|
-
var a,
|
|
387
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
388
|
-
var
|
|
389
|
-
const
|
|
390
|
-
return c(
|
|
391
|
-
key:
|
|
392
|
-
},
|
|
393
|
-
default: () => [
|
|
386
|
+
var a, f;
|
|
387
|
+
return [(a = t.start) == null ? void 0 : a.call(t), R(e.options, (r) => {
|
|
388
|
+
var P;
|
|
389
|
+
const h = (P = t.label) == null ? void 0 : P.call(t, r);
|
|
390
|
+
return c(ot, s({
|
|
391
|
+
key: r.value
|
|
392
|
+
}, r), {
|
|
393
|
+
default: () => [h || r.label]
|
|
394
394
|
});
|
|
395
|
-
}), (
|
|
395
|
+
}), (f = t.default) == null ? void 0 : f.call(t)];
|
|
396
396
|
},
|
|
397
397
|
...y(t, "default")
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
}),
|
|
400
|
+
}), mn = C({
|
|
401
401
|
props: {
|
|
402
|
-
...
|
|
402
|
+
...ge.props,
|
|
403
403
|
options: {
|
|
404
404
|
type: Array
|
|
405
405
|
}
|
|
@@ -407,21 +407,21 @@ const ke = () => ({
|
|
|
407
407
|
setup: (e, {
|
|
408
408
|
slots: t,
|
|
409
409
|
emit: u
|
|
410
|
-
}) => () => c(
|
|
410
|
+
}) => () => c(ge, s(y(e, "options"), {
|
|
411
411
|
"onUpdate:modelValue": (n) => {
|
|
412
412
|
u("update:modelValue", n);
|
|
413
413
|
}
|
|
414
414
|
}), {
|
|
415
415
|
default: () => {
|
|
416
416
|
var n, o;
|
|
417
|
-
return [(n = t.start) == null ? void 0 : n.call(t),
|
|
418
|
-
key:
|
|
419
|
-
}, y(
|
|
420
|
-
name:
|
|
417
|
+
return [(n = t.start) == null ? void 0 : n.call(t), R(e.options, (l) => c(ut, s({
|
|
418
|
+
key: l.value
|
|
419
|
+
}, y(l, "value"), {
|
|
420
|
+
name: l.value
|
|
421
421
|
}), {
|
|
422
422
|
label: () => {
|
|
423
423
|
var a;
|
|
424
|
-
return ((a = t.label) == null ? void 0 : a.call(t,
|
|
424
|
+
return ((a = t.label) == null ? void 0 : a.call(t, l)) || l.label;
|
|
425
425
|
}
|
|
426
426
|
})), (o = t.end) == null ? void 0 : o.call(t)];
|
|
427
427
|
},
|
|
@@ -437,7 +437,7 @@ const ke = () => ({
|
|
|
437
437
|
onMenuItemClick: {
|
|
438
438
|
type: Function
|
|
439
439
|
}
|
|
440
|
-
},
|
|
440
|
+
}, Ge = w(ee), _e = C({
|
|
441
441
|
inheritAttrs: !1,
|
|
442
442
|
props: {
|
|
443
443
|
menu: {
|
|
@@ -453,21 +453,21 @@ const ke = () => ({
|
|
|
453
453
|
(n = e.onMenuItemClick) == null || n.call(e, e.menu);
|
|
454
454
|
};
|
|
455
455
|
return () => {
|
|
456
|
-
var o,
|
|
456
|
+
var o, l;
|
|
457
457
|
const n = e.menu;
|
|
458
|
-
return (n == null ? void 0 : n.children) &&
|
|
458
|
+
return (n == null ? void 0 : n.children) && D(n.children) > 0 ? c(q.SubMenu, s({
|
|
459
459
|
index: n == null ? void 0 : n.value
|
|
460
460
|
}, (o = e.convertSubMenuProps) == null ? void 0 : o.call(e, n)), {
|
|
461
|
-
default: () => [
|
|
461
|
+
default: () => [R(n.children, (a) => c(_e, s({
|
|
462
462
|
menu: a
|
|
463
|
-
},
|
|
463
|
+
}, Y(e, Ge)), t))],
|
|
464
464
|
title: () => {
|
|
465
465
|
var a;
|
|
466
466
|
return ((a = t.title) == null ? void 0 : a.call(t, n)) || (n == null ? void 0 : n.label);
|
|
467
467
|
}
|
|
468
|
-
}) : c(
|
|
468
|
+
}) : c(q.MenuItem, s({
|
|
469
469
|
index: n == null ? void 0 : n.value
|
|
470
|
-
}, (
|
|
470
|
+
}, (l = e.convertMenuItemProps) == null ? void 0 : l.call(e, n), {
|
|
471
471
|
onClick: u
|
|
472
472
|
}), {
|
|
473
473
|
title: () => {
|
|
@@ -481,7 +481,7 @@ const ke = () => ({
|
|
|
481
481
|
});
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
}),
|
|
484
|
+
}), Re = () => ({
|
|
485
485
|
activeKey: {
|
|
486
486
|
type: String
|
|
487
487
|
},
|
|
@@ -497,42 +497,42 @@ const ke = () => ({
|
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
499
|
...ee
|
|
500
|
-
}),
|
|
500
|
+
}), Ut = C({
|
|
501
501
|
props: {
|
|
502
|
-
...y(
|
|
503
|
-
...
|
|
502
|
+
...y(q.props, "defaultActive"),
|
|
503
|
+
...Re()
|
|
504
504
|
},
|
|
505
505
|
setup: (e, {
|
|
506
506
|
slots: t
|
|
507
507
|
}) => {
|
|
508
|
-
const u =
|
|
509
|
-
|
|
508
|
+
const u = T(e.activeKey);
|
|
509
|
+
A(() => {
|
|
510
510
|
e.activeKey !== u.value && (u.value = e.activeKey);
|
|
511
511
|
}, () => e.activeKey);
|
|
512
512
|
const n = N(() => {
|
|
513
|
-
var
|
|
514
|
-
return
|
|
515
|
-
var
|
|
516
|
-
const
|
|
513
|
+
var l;
|
|
514
|
+
return wt(e.options, (a) => {
|
|
515
|
+
var h, P;
|
|
516
|
+
const f = ((h = e.fieldNames) == null ? void 0 : h.value) || "value", r = ((P = e.fieldNames) == null ? void 0 : P.label) || "label";
|
|
517
517
|
return {
|
|
518
|
-
...y(a,
|
|
519
|
-
value: B(a,
|
|
520
|
-
label: B(a,
|
|
518
|
+
...y(a, f, r),
|
|
519
|
+
value: B(a, f),
|
|
520
|
+
label: B(a, r)
|
|
521
521
|
};
|
|
522
522
|
}, {
|
|
523
|
-
children: ((
|
|
523
|
+
children: ((l = e.fieldNames) == null ? void 0 : l.children) || "children",
|
|
524
524
|
childrenName: "children"
|
|
525
525
|
});
|
|
526
|
-
}), o = w(
|
|
527
|
-
return () => c(
|
|
526
|
+
}), o = w(Re());
|
|
527
|
+
return () => c(q, s({
|
|
528
528
|
defaultActive: u.value
|
|
529
529
|
}, y(e, o)), {
|
|
530
|
-
default: () => c(
|
|
531
|
-
menu:
|
|
532
|
-
},
|
|
530
|
+
default: () => c(Oe, null, [R(n.value, (l) => c(_e, s({
|
|
531
|
+
menu: l
|
|
532
|
+
}, Y(e, Ge)), t))])
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
}),
|
|
535
|
+
}), we = () => ({
|
|
536
536
|
modelValue: {
|
|
537
537
|
type: Array,
|
|
538
538
|
default: void 0
|
|
@@ -563,10 +563,10 @@ const ke = () => ({
|
|
|
563
563
|
type: Function,
|
|
564
564
|
default: void 0
|
|
565
565
|
}
|
|
566
|
-
}),
|
|
566
|
+
}), jt = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], We = C({
|
|
567
567
|
props: {
|
|
568
|
-
...y(
|
|
569
|
-
...
|
|
568
|
+
...y(ve.props, "fileList"),
|
|
569
|
+
...we()
|
|
570
570
|
},
|
|
571
571
|
setup: (e, {
|
|
572
572
|
slots: t,
|
|
@@ -575,95 +575,95 @@ const ke = () => ({
|
|
|
575
575
|
}) => {
|
|
576
576
|
const {
|
|
577
577
|
showMsg: o
|
|
578
|
-
} =
|
|
579
|
-
u(
|
|
578
|
+
} = Qe(), l = T();
|
|
579
|
+
u(U(l, jt));
|
|
580
580
|
const {
|
|
581
581
|
formItem: a
|
|
582
|
-
} =
|
|
583
|
-
var
|
|
584
|
-
return ((
|
|
585
|
-
}) : [],
|
|
586
|
-
let
|
|
587
|
-
const
|
|
588
|
-
var
|
|
589
|
-
|
|
590
|
-
const i =
|
|
591
|
-
n("update:modelValue",
|
|
592
|
-
var
|
|
593
|
-
return ((
|
|
594
|
-
})), (
|
|
582
|
+
} = ct(), f = () => Ft(e.modelValue) ? R(e.modelValue, (i) => {
|
|
583
|
+
var g;
|
|
584
|
+
return ((g = e.convertItemData) == null ? void 0 : g.call(e, i)) || i;
|
|
585
|
+
}) : [], r = T(f());
|
|
586
|
+
let h = !1;
|
|
587
|
+
const P = () => {
|
|
588
|
+
var g;
|
|
589
|
+
h = !0;
|
|
590
|
+
const i = pe(r.value, (p) => p.status === "success");
|
|
591
|
+
n("update:modelValue", R(i, (p) => {
|
|
592
|
+
var x;
|
|
593
|
+
return ((x = e.convertResponseData) == null ? void 0 : x.call(e, p)) || p;
|
|
594
|
+
})), (g = a == null ? void 0 : a.validate) == null || g.call(a, "change");
|
|
595
595
|
};
|
|
596
|
-
|
|
597
|
-
|
|
596
|
+
A(() => {
|
|
597
|
+
h || (r.value = f(), h = !1);
|
|
598
598
|
}, () => e.modelValue);
|
|
599
|
-
let
|
|
600
|
-
const
|
|
601
|
-
e.globalLoading && (
|
|
599
|
+
let v;
|
|
600
|
+
const F = () => {
|
|
601
|
+
e.globalLoading && (v = Ne.service({
|
|
602
602
|
lock: !0,
|
|
603
603
|
text: "\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E...",
|
|
604
604
|
...$(e.globalLoading) ? {} : e.globalLoading
|
|
605
605
|
}));
|
|
606
606
|
}, d = () => {
|
|
607
|
-
e.globalLoading && (
|
|
607
|
+
e.globalLoading && (v == null || v.close());
|
|
608
608
|
};
|
|
609
609
|
G(() => () => {
|
|
610
610
|
d();
|
|
611
611
|
}, []);
|
|
612
|
-
const
|
|
612
|
+
const m = (i, g) => {
|
|
613
613
|
if (e.onErrorMsg) {
|
|
614
|
-
e.onErrorMsg(i,
|
|
614
|
+
e.onErrorMsg(i, g);
|
|
615
615
|
return;
|
|
616
616
|
}
|
|
617
617
|
o({
|
|
618
618
|
type: "error",
|
|
619
|
-
message:
|
|
619
|
+
message: g
|
|
620
620
|
});
|
|
621
|
-
},
|
|
622
|
-
var
|
|
621
|
+
}, k = (i) => {
|
|
622
|
+
var g;
|
|
623
623
|
if (e.beforeUpload)
|
|
624
624
|
return e.beforeUpload(i);
|
|
625
|
-
if (e.accept && !
|
|
626
|
-
return
|
|
627
|
-
if (
|
|
625
|
+
if (e.accept && !Mt(e.accept, i.name))
|
|
626
|
+
return m("FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
|
|
627
|
+
if (L(i.size)) {
|
|
628
628
|
if (i.size <= 0)
|
|
629
|
-
return
|
|
630
|
-
if (
|
|
631
|
-
return
|
|
629
|
+
return m("FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
|
|
630
|
+
if (L(e.maxSize) && i.size > e.maxSize)
|
|
631
|
+
return m("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${It(e.maxSize)}\u7684\u6587\u4EF6`), !1;
|
|
632
632
|
}
|
|
633
|
-
return (
|
|
634
|
-
}, S = (i,
|
|
635
|
-
var
|
|
636
|
-
(
|
|
637
|
-
},
|
|
638
|
-
var
|
|
639
|
-
(
|
|
640
|
-
},
|
|
641
|
-
var
|
|
642
|
-
|
|
643
|
-
}, I = N(() =>
|
|
633
|
+
return (g = e.onStart) == null || g.call(e, i), F(), !0;
|
|
634
|
+
}, S = (i, g, p) => {
|
|
635
|
+
var x;
|
|
636
|
+
(x = e.onSuccess) == null || x.call(e, i, g, p), P(), d();
|
|
637
|
+
}, E = (i, g, p) => {
|
|
638
|
+
var x;
|
|
639
|
+
(x = e.onError) == null || x.call(e, i, g, p), d(), m("UploadError", "\u4E0A\u4F20\u5931\u8D25");
|
|
640
|
+
}, K = (i, g) => {
|
|
641
|
+
var p;
|
|
642
|
+
r.value = pe(r.value, (x) => !(i.uid === x.uid && i.name === x.name)), (p = e.onRemove) == null || p.call(e, i, g), P();
|
|
643
|
+
}, I = N(() => L(e.limit) ? e.limit > D(r.value) : !0), V = w(we());
|
|
644
644
|
return () => {
|
|
645
|
-
var i,
|
|
645
|
+
var i, g;
|
|
646
646
|
return c("div", {
|
|
647
647
|
class: `pro-uploader ${I.value ? "" : "pro-uploader-limit"}`
|
|
648
|
-
}, [(i = t.start) == null ? void 0 : i.call(t), c(
|
|
649
|
-
ref:
|
|
650
|
-
fileList:
|
|
651
|
-
"onUpdate:fileList": (
|
|
648
|
+
}, [(i = t.start) == null ? void 0 : i.call(t), c(ve, s({
|
|
649
|
+
ref: l,
|
|
650
|
+
fileList: r.value,
|
|
651
|
+
"onUpdate:fileList": (p) => r.value = p
|
|
652
652
|
}, y(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...V), {
|
|
653
|
-
beforeUpload:
|
|
653
|
+
beforeUpload: k,
|
|
654
654
|
onSuccess: S,
|
|
655
|
-
onError:
|
|
656
|
-
onRemove:
|
|
655
|
+
onError: E,
|
|
656
|
+
onRemove: K
|
|
657
657
|
}), {
|
|
658
658
|
default: () => {
|
|
659
|
-
var
|
|
660
|
-
return [I.value && c(
|
|
659
|
+
var p, x;
|
|
660
|
+
return [I.value && c(Oe, null, [((p = t.default) == null ? void 0 : p.call(t)) || ((x = e.renderDom) == null ? void 0 : x.call(e))])];
|
|
661
661
|
},
|
|
662
662
|
...y(t, "default")
|
|
663
|
-
}), (
|
|
663
|
+
}), (g = t.end) == null ? void 0 : g.call(t)]);
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
|
-
}),
|
|
666
|
+
}), Me = () => ({
|
|
667
667
|
modelValue: {
|
|
668
668
|
type: Array
|
|
669
669
|
},
|
|
@@ -680,54 +680,54 @@ const ke = () => ({
|
|
|
680
680
|
divider: {
|
|
681
681
|
type: Function
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), qt = C({
|
|
684
684
|
props: {
|
|
685
|
-
...y(
|
|
685
|
+
...y(j.props, "modelValue"),
|
|
686
686
|
controlsPosition: {
|
|
687
687
|
type: String,
|
|
688
688
|
default: "right"
|
|
689
689
|
},
|
|
690
|
-
...
|
|
690
|
+
...Me()
|
|
691
691
|
},
|
|
692
692
|
setup: (e, {
|
|
693
693
|
slots: t,
|
|
694
694
|
emit: u
|
|
695
695
|
}) => {
|
|
696
|
-
const n =
|
|
697
|
-
let
|
|
698
|
-
|
|
699
|
-
|
|
696
|
+
const n = T(B(e.modelValue, 0)), o = T(B(e.modelValue, 1));
|
|
697
|
+
let l = !1;
|
|
698
|
+
A(() => {
|
|
699
|
+
l || (n.value = B(e.modelValue, 0), o.value = B(e.modelValue, 1)), l = !1;
|
|
700
700
|
}, [e.modelValue, () => e.modelValue]);
|
|
701
701
|
const a = () => {
|
|
702
|
-
|
|
703
|
-
},
|
|
704
|
-
for (let
|
|
705
|
-
if (
|
|
706
|
-
return
|
|
707
|
-
},
|
|
708
|
-
var
|
|
709
|
-
return
|
|
710
|
-
}),
|
|
711
|
-
var
|
|
712
|
-
return
|
|
713
|
-
}),
|
|
702
|
+
l = !0, e.singleEmit ? u("update:modelValue", [n.value, o.value]) : L(n.value) && L(o.value) ? u("update:modelValue", [n.value, o.value]) : u("update:modelValue", null);
|
|
703
|
+
}, f = (v) => {
|
|
704
|
+
for (let F = 0; F < v.length; F++)
|
|
705
|
+
if (L(v[F]))
|
|
706
|
+
return v[F];
|
|
707
|
+
}, r = N(() => {
|
|
708
|
+
var v;
|
|
709
|
+
return f([o.value, (v = e.start) == null ? void 0 : v.max, e.max]);
|
|
710
|
+
}), h = N(() => {
|
|
711
|
+
var v;
|
|
712
|
+
return f([n.value, (v = e.end) == null ? void 0 : v.min, e.min]);
|
|
713
|
+
}), P = w(Me());
|
|
714
714
|
return () => {
|
|
715
|
-
var
|
|
716
|
-
const
|
|
715
|
+
var F, d;
|
|
716
|
+
const v = y(e, ...P, "min", "max");
|
|
717
717
|
return c("span", {
|
|
718
718
|
class: "pro-number-range"
|
|
719
|
-
}, [c(
|
|
720
|
-
max:
|
|
719
|
+
}, [c(j, s(v, y(e.start, "max"), {
|
|
720
|
+
max: r.value,
|
|
721
721
|
modelValue: n.value,
|
|
722
|
-
"onUpdate:modelValue": [(
|
|
723
|
-
}), null), c("span", null, [((
|
|
724
|
-
min:
|
|
722
|
+
"onUpdate:modelValue": [(m) => n.value = m, a]
|
|
723
|
+
}), null), c("span", null, [((F = t.divider) == null ? void 0 : F.call(t)) || ((d = e.divider) == null ? void 0 : d.call(e)) || " - "]), c(j, s(v, y(e.start, "min"), {
|
|
724
|
+
min: h.value,
|
|
725
725
|
modelValue: o.value,
|
|
726
|
-
"onUpdate:modelValue": [(
|
|
726
|
+
"onUpdate:modelValue": [(m) => o.value = m, a]
|
|
727
727
|
}), null)]);
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
730
|
+
}), Ie = () => ({
|
|
731
731
|
treeData: {
|
|
732
732
|
type: Array
|
|
733
733
|
},
|
|
@@ -744,84 +744,84 @@ const ke = () => ({
|
|
|
744
744
|
checkedKeys: {
|
|
745
745
|
type: Array
|
|
746
746
|
}
|
|
747
|
-
}),
|
|
747
|
+
}), yn = C({
|
|
748
748
|
props: {
|
|
749
|
-
...
|
|
750
|
-
...
|
|
749
|
+
...be.props,
|
|
750
|
+
...Ie()
|
|
751
751
|
},
|
|
752
752
|
setup: (e, {
|
|
753
753
|
slots: t
|
|
754
754
|
}) => {
|
|
755
|
-
const u = w(
|
|
756
|
-
const
|
|
757
|
-
if (!!
|
|
755
|
+
const u = w(Ie()), o = (() => {
|
|
756
|
+
const l = e.fieldNames;
|
|
757
|
+
if (!!l)
|
|
758
758
|
return {
|
|
759
|
-
label:
|
|
760
|
-
children:
|
|
761
|
-
disabled:
|
|
762
|
-
isLeaf:
|
|
763
|
-
class:
|
|
759
|
+
label: l.title,
|
|
760
|
+
children: l.children,
|
|
761
|
+
disabled: l.disabled,
|
|
762
|
+
isLeaf: l.isLeaf,
|
|
763
|
+
class: l.class
|
|
764
764
|
};
|
|
765
765
|
})();
|
|
766
766
|
return () => {
|
|
767
|
-
var
|
|
768
|
-
return c(
|
|
767
|
+
var l;
|
|
768
|
+
return c(be, s(y(e, u), {
|
|
769
769
|
data: e.treeData || e.data,
|
|
770
770
|
props: o || e.props,
|
|
771
|
-
nodeKey: ((
|
|
771
|
+
nodeKey: ((l = e.fieldNames) == null ? void 0 : l.key) || e.nodeKey,
|
|
772
772
|
showCheckbox: $(e.selectable) ? e.selectable : e.showCheckbox,
|
|
773
773
|
defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
|
|
774
774
|
defaultCheckedKeys: e.checkedKeys || e.checkedKeys
|
|
775
775
|
}), t);
|
|
776
776
|
};
|
|
777
777
|
}
|
|
778
|
-
}),
|
|
779
|
-
InputComp:
|
|
778
|
+
}), $t = M({
|
|
779
|
+
InputComp: dt,
|
|
780
780
|
valueType: "text",
|
|
781
781
|
name: "PFromText"
|
|
782
|
-
}),
|
|
783
|
-
InputComp:
|
|
782
|
+
}), Gt = M({
|
|
783
|
+
InputComp: j,
|
|
784
784
|
valueType: "digit",
|
|
785
785
|
name: "PFormNumber"
|
|
786
|
-
}),
|
|
787
|
-
InputComp:
|
|
786
|
+
}), _t = M({
|
|
787
|
+
InputComp: qt,
|
|
788
788
|
valueType: "digitRange",
|
|
789
789
|
name: "PFormNumberRange"
|
|
790
|
-
}),
|
|
791
|
-
InputComp:
|
|
790
|
+
}), Wt = M({
|
|
791
|
+
InputComp: it,
|
|
792
792
|
valueType: "date",
|
|
793
793
|
name: "PFormDate"
|
|
794
|
-
}),
|
|
795
|
-
InputComp:
|
|
794
|
+
}), Zt = M({
|
|
795
|
+
InputComp: ft,
|
|
796
796
|
valueType: "time",
|
|
797
797
|
name: "PFormTime"
|
|
798
|
-
}),
|
|
799
|
-
InputComp:
|
|
798
|
+
}), Ht = M({
|
|
799
|
+
InputComp: zt,
|
|
800
800
|
valueType: "select",
|
|
801
801
|
name: "PFormSelect"
|
|
802
|
-
}),
|
|
803
|
-
InputComp:
|
|
802
|
+
}), Jt = M({
|
|
803
|
+
InputComp: mt,
|
|
804
804
|
valueType: "treeSelect",
|
|
805
805
|
name: "PFormTreeSelect"
|
|
806
|
-
}),
|
|
807
|
-
InputComp:
|
|
806
|
+
}), Qt = M({
|
|
807
|
+
InputComp: At,
|
|
808
808
|
valueType: "checkbox",
|
|
809
809
|
name: "PFromCheckbox"
|
|
810
|
-
}),
|
|
811
|
-
InputComp:
|
|
810
|
+
}), Xt = M({
|
|
811
|
+
InputComp: Ot,
|
|
812
812
|
valueType: "radio",
|
|
813
813
|
name: "PFromRadio"
|
|
814
|
-
}),
|
|
815
|
-
InputComp:
|
|
814
|
+
}), Yt = M({
|
|
815
|
+
InputComp: yt,
|
|
816
816
|
valueType: "switch",
|
|
817
817
|
name: "PFromSwitch"
|
|
818
|
-
}),
|
|
819
|
-
InputComp:
|
|
818
|
+
}), en = M({
|
|
819
|
+
InputComp: st,
|
|
820
820
|
valueType: "cascader",
|
|
821
821
|
name: "PFormCascader"
|
|
822
|
-
}),
|
|
822
|
+
}), Ze = C({
|
|
823
823
|
props: {
|
|
824
|
-
...y(
|
|
824
|
+
...y(X.props, "label", "prop"),
|
|
825
825
|
title: {
|
|
826
826
|
type: String
|
|
827
827
|
},
|
|
@@ -839,52 +839,52 @@ const ke = () => ({
|
|
|
839
839
|
slots: t
|
|
840
840
|
}) => {
|
|
841
841
|
const u = ({
|
|
842
|
-
row:
|
|
842
|
+
row: l,
|
|
843
843
|
column: a,
|
|
844
|
-
$index:
|
|
844
|
+
$index: f
|
|
845
845
|
}) => {
|
|
846
|
-
var
|
|
847
|
-
const
|
|
846
|
+
var m;
|
|
847
|
+
const r = l, h = f, P = {
|
|
848
848
|
...a,
|
|
849
849
|
title: a.label,
|
|
850
850
|
dataIndex: a.property
|
|
851
|
-
},
|
|
852
|
-
value:
|
|
853
|
-
text:
|
|
854
|
-
record:
|
|
855
|
-
column:
|
|
856
|
-
index:
|
|
857
|
-
}, d = (
|
|
858
|
-
return d || (e.customRender ? e.customRender(
|
|
851
|
+
}, v = B(l, P.dataIndex), F = {
|
|
852
|
+
value: v,
|
|
853
|
+
text: v,
|
|
854
|
+
record: r,
|
|
855
|
+
column: P,
|
|
856
|
+
index: h
|
|
857
|
+
}, d = (m = t.bodyCell) == null ? void 0 : m.call(t, F);
|
|
858
|
+
return d || (e.customRender ? e.customRender(F) : v);
|
|
859
859
|
}, o = {
|
|
860
860
|
header: ({
|
|
861
|
-
column:
|
|
861
|
+
column: l,
|
|
862
862
|
$index: a
|
|
863
863
|
}) => {
|
|
864
|
-
var
|
|
865
|
-
const
|
|
866
|
-
...
|
|
867
|
-
title:
|
|
868
|
-
dataIndex:
|
|
864
|
+
var v;
|
|
865
|
+
const f = a, r = l.label, h = {
|
|
866
|
+
...l,
|
|
867
|
+
title: r,
|
|
868
|
+
dataIndex: l.property
|
|
869
869
|
};
|
|
870
|
-
return ((
|
|
871
|
-
title:
|
|
872
|
-
column:
|
|
873
|
-
index:
|
|
874
|
-
})) ||
|
|
870
|
+
return ((v = t.headerCell) == null ? void 0 : v.call(t, {
|
|
871
|
+
title: r,
|
|
872
|
+
column: h,
|
|
873
|
+
index: f
|
|
874
|
+
})) || r;
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
|
-
return (!e.children ||
|
|
877
|
+
return (!e.children || D(e.children) <= 0) && (o.default = u), () => c(X, s(y(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
878
878
|
prop: e.dataIndex,
|
|
879
879
|
label: e.title
|
|
880
880
|
}), {
|
|
881
|
-
default: () => [
|
|
882
|
-
key:
|
|
883
|
-
},
|
|
881
|
+
default: () => [D(e.children) > 0 && R(e.children, (l) => c(Ze, s({
|
|
882
|
+
key: l.dataIndex
|
|
883
|
+
}, l), t))],
|
|
884
884
|
...o
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
|
-
}),
|
|
887
|
+
}), tn = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], nn = () => ({
|
|
888
888
|
columns: {
|
|
889
889
|
type: Array
|
|
890
890
|
},
|
|
@@ -904,96 +904,96 @@ const ke = () => ({
|
|
|
904
904
|
type: Object,
|
|
905
905
|
default: void 0
|
|
906
906
|
}
|
|
907
|
-
}),
|
|
907
|
+
}), He = C({
|
|
908
908
|
props: {
|
|
909
|
-
...
|
|
910
|
-
...
|
|
909
|
+
...he.props,
|
|
910
|
+
...nn()
|
|
911
911
|
},
|
|
912
912
|
setup: (e, {
|
|
913
913
|
slots: t,
|
|
914
914
|
expose: u,
|
|
915
915
|
emit: n
|
|
916
916
|
}) => {
|
|
917
|
-
const o =
|
|
918
|
-
u(
|
|
917
|
+
const o = T(), l = je("table");
|
|
918
|
+
u(Be(tn, o));
|
|
919
919
|
const a = (d) => {
|
|
920
|
-
const
|
|
921
|
-
return
|
|
922
|
-
},
|
|
920
|
+
const m = e.rowKey;
|
|
921
|
+
return Tt(m) ? m(d) : m ? d[m] : d.id;
|
|
922
|
+
}, f = N(() => {
|
|
923
923
|
const d = e.rowSelection;
|
|
924
924
|
return d ? !d.type || d.type === "multi" : !1;
|
|
925
|
-
}),
|
|
926
|
-
var
|
|
927
|
-
const
|
|
928
|
-
|
|
925
|
+
}), r = (d) => {
|
|
926
|
+
var k, S;
|
|
927
|
+
const m = d ? [a(d)] : [];
|
|
928
|
+
ke(e.selectedRowKeys, m, {
|
|
929
929
|
sort: !0
|
|
930
|
-
}) || ((S = (
|
|
931
|
-
},
|
|
932
|
-
var
|
|
933
|
-
const
|
|
934
|
-
|
|
930
|
+
}) || ((S = (k = e.rowSelection).onChange) == null || S.call(k, m, d ? [d] : []), n("update:selectedRowKeys", m));
|
|
931
|
+
}, h = (d) => {
|
|
932
|
+
var k, S;
|
|
933
|
+
const m = R(d, (E) => a(E));
|
|
934
|
+
ke(e.selectedRowKeys, m, {
|
|
935
935
|
sort: !0
|
|
936
|
-
}) || ((S = (
|
|
937
|
-
},
|
|
936
|
+
}) || ((S = (k = e.rowSelection).onChange) == null || S.call(k, m, d), n("update:selectedRowKeys", m));
|
|
937
|
+
}, P = N(() => {
|
|
938
938
|
if (!!e.rowSelection)
|
|
939
|
-
return
|
|
940
|
-
onSelectionChange:
|
|
939
|
+
return f.value ? {
|
|
940
|
+
onSelectionChange: h
|
|
941
941
|
} : {
|
|
942
942
|
highlightCurrentRow: !0,
|
|
943
|
-
onCurrentChange:
|
|
943
|
+
onCurrentChange: r
|
|
944
944
|
};
|
|
945
945
|
});
|
|
946
946
|
G(() => {
|
|
947
|
-
var
|
|
947
|
+
var m, k;
|
|
948
948
|
const d = e.dataSource || e.data;
|
|
949
|
-
if (
|
|
950
|
-
const S = e.selectedRowKeys,
|
|
949
|
+
if (f.value) {
|
|
950
|
+
const S = e.selectedRowKeys, E = Ce(S, (i, g) => ({
|
|
951
951
|
...i,
|
|
952
|
-
[
|
|
953
|
-
}), {}),
|
|
952
|
+
[g]: !0
|
|
953
|
+
}), {}), K = (m = o.value) == null ? void 0 : m.getSelectionRows(), I = Ce(K, (i, g) => ({
|
|
954
954
|
...i,
|
|
955
|
-
[a(
|
|
955
|
+
[a(g)]: !0
|
|
956
956
|
}), {});
|
|
957
957
|
let V = !1;
|
|
958
|
-
if (
|
|
958
|
+
if (D(S) !== D(K))
|
|
959
959
|
V = !0;
|
|
960
|
-
else if (
|
|
960
|
+
else if (D(S) !== 0)
|
|
961
961
|
for (let i = 0; i < S.length; i++) {
|
|
962
|
-
const
|
|
963
|
-
if (!I[
|
|
962
|
+
const g = S[i];
|
|
963
|
+
if (!I[g]) {
|
|
964
964
|
V = !0;
|
|
965
965
|
break;
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
|
-
V &&
|
|
969
|
-
|
|
970
|
-
var
|
|
971
|
-
const
|
|
972
|
-
|
|
968
|
+
V && Se(() => {
|
|
969
|
+
Et(d, (i) => {
|
|
970
|
+
var p;
|
|
971
|
+
const g = a(i);
|
|
972
|
+
E[g] !== I[g] && ((p = o.value) == null || p.toggleRowSelection(i, !!E[g]));
|
|
973
973
|
});
|
|
974
974
|
});
|
|
975
975
|
} else {
|
|
976
|
-
const S = (
|
|
977
|
-
let
|
|
978
|
-
S && (
|
|
979
|
-
var
|
|
980
|
-
(
|
|
976
|
+
const S = (k = e.selectedRowKeys) == null ? void 0 : k[0];
|
|
977
|
+
let E = null;
|
|
978
|
+
S && (E = xt(d, (K) => a(K) === S)), Se(() => {
|
|
979
|
+
var K;
|
|
980
|
+
(K = o.value) == null || K.setCurrentRow(E);
|
|
981
981
|
});
|
|
982
982
|
}
|
|
983
983
|
}, [() => e.selectedRowKeys, () => e.dataSource, () => e.data]);
|
|
984
|
-
const
|
|
985
|
-
var d,
|
|
984
|
+
const v = () => {
|
|
985
|
+
var d, m;
|
|
986
986
|
if (e.spanMethod)
|
|
987
987
|
return e.spanMethod;
|
|
988
|
-
if (((d = e.mergeOpts) == null ? void 0 : d.rowNames) || ((
|
|
989
|
-
const
|
|
988
|
+
if (((d = e.mergeOpts) == null ? void 0 : d.rowNames) || ((m = e.mergeOpts) == null ? void 0 : m.colNames)) {
|
|
989
|
+
const k = Vt(e.mergeOpts);
|
|
990
990
|
return ({
|
|
991
991
|
row: S,
|
|
992
|
-
column:
|
|
992
|
+
column: E
|
|
993
993
|
}) => {
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const I = S[
|
|
994
|
+
const K = E.property;
|
|
995
|
+
if (k[K]) {
|
|
996
|
+
const I = S[k[K]], V = S[K + "-colspan"];
|
|
997
997
|
return {
|
|
998
998
|
rowspan: I !== void 0 ? I : 1,
|
|
999
999
|
colspan: V !== void 0 ? V : 1
|
|
@@ -1002,31 +1002,31 @@ const ke = () => ({
|
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
return e.spanMethod;
|
|
1005
|
-
},
|
|
1006
|
-
return () => c(
|
|
1005
|
+
}, F = N(() => v());
|
|
1006
|
+
return () => c(he, s({
|
|
1007
1007
|
ref: o,
|
|
1008
|
-
id:
|
|
1008
|
+
id: l
|
|
1009
1009
|
}, y(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
|
|
1010
1010
|
data: e.dataSource || e.data,
|
|
1011
|
-
spanMethod:
|
|
1012
|
-
},
|
|
1011
|
+
spanMethod: F.value
|
|
1012
|
+
}, P.value), {
|
|
1013
1013
|
default: () => {
|
|
1014
|
-
var d,
|
|
1015
|
-
return [(d = t.start) == null ? void 0 : d.call(t),
|
|
1014
|
+
var d, m, k, S, E;
|
|
1015
|
+
return [(d = t.start) == null ? void 0 : d.call(t), f.value && c(X, s({
|
|
1016
1016
|
type: "selection"
|
|
1017
|
-
}, y((
|
|
1018
|
-
key:
|
|
1019
|
-
},
|
|
1020
|
-
target:
|
|
1017
|
+
}, y((m = e.rowSelection) == null ? void 0 : m.column, "slots")), (S = (k = e.rowSelection) == null ? void 0 : k.column) == null ? void 0 : S.slots), R(e.columns, (K) => c(Ze, s({
|
|
1018
|
+
key: K.dataIndex
|
|
1019
|
+
}, K), t)), (E = t.default) == null ? void 0 : E.call(t), e.loading && c(qe, {
|
|
1020
|
+
target: l,
|
|
1021
1021
|
loading: !0
|
|
1022
1022
|
}, null)];
|
|
1023
1023
|
},
|
|
1024
|
-
...
|
|
1024
|
+
...Y(t, "append", "empty")
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
|
-
}),
|
|
1027
|
+
}), an = C({
|
|
1028
1028
|
props: {
|
|
1029
|
-
...
|
|
1029
|
+
...z.props,
|
|
1030
1030
|
type: {
|
|
1031
1031
|
type: String,
|
|
1032
1032
|
default: "primary"
|
|
@@ -1038,32 +1038,70 @@ const ke = () => ({
|
|
|
1038
1038
|
},
|
|
1039
1039
|
setup: (e, {
|
|
1040
1040
|
slots: t
|
|
1041
|
-
}) => () => c(
|
|
1041
|
+
}) => () => c(z, e, t)
|
|
1042
|
+
});
|
|
1043
|
+
function ln(e) {
|
|
1044
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ct(e);
|
|
1045
|
+
}
|
|
1046
|
+
const Ve = () => ({
|
|
1047
|
+
options: Array
|
|
1048
|
+
}), rn = C({
|
|
1049
|
+
props: {
|
|
1050
|
+
...Pe.props,
|
|
1051
|
+
...Ve()
|
|
1052
|
+
},
|
|
1053
|
+
setup: (e, {
|
|
1054
|
+
slots: t,
|
|
1055
|
+
expose: u
|
|
1056
|
+
}) => {
|
|
1057
|
+
const n = T();
|
|
1058
|
+
u(U(n));
|
|
1059
|
+
const o = w(Ve());
|
|
1060
|
+
return () => c(Pe, s({
|
|
1061
|
+
ref: n
|
|
1062
|
+
}, y(e, o)), {
|
|
1063
|
+
dropdown: () => {
|
|
1064
|
+
let l;
|
|
1065
|
+
return c(gt, null, ln(l = R(e.options, (a) => {
|
|
1066
|
+
var r;
|
|
1067
|
+
const f = (r = t.label) == null ? void 0 : r.call(t, a);
|
|
1068
|
+
return c(vt, s({
|
|
1069
|
+
command: a.value
|
|
1070
|
+
}, y(a, "value", "label")), {
|
|
1071
|
+
default: () => [f || a.label]
|
|
1072
|
+
});
|
|
1073
|
+
})) ? l : {
|
|
1074
|
+
default: () => [l]
|
|
1075
|
+
});
|
|
1076
|
+
},
|
|
1077
|
+
...t
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1042
1080
|
});
|
|
1043
1081
|
O.props = {
|
|
1044
|
-
...
|
|
1082
|
+
...Q.props,
|
|
1045
1083
|
...O.props,
|
|
1046
|
-
formMethods: { type: Array, default:
|
|
1084
|
+
formMethods: { type: Array, default: Ue }
|
|
1047
1085
|
};
|
|
1048
|
-
|
|
1086
|
+
W.props = {
|
|
1049
1087
|
...O.props,
|
|
1050
|
-
...
|
|
1088
|
+
...W.props,
|
|
1051
1089
|
inline: { type: Boolean, default: !0 }
|
|
1052
1090
|
};
|
|
1053
1091
|
te.props = {
|
|
1054
|
-
...
|
|
1092
|
+
...J.props,
|
|
1055
1093
|
...te.props
|
|
1056
1094
|
};
|
|
1095
|
+
Z.props = {
|
|
1096
|
+
...He.props,
|
|
1097
|
+
...Z.props
|
|
1098
|
+
};
|
|
1057
1099
|
H.props = {
|
|
1058
|
-
...
|
|
1100
|
+
...Le.props,
|
|
1059
1101
|
...H.props
|
|
1060
1102
|
};
|
|
1061
|
-
J.props = {
|
|
1062
|
-
...Be.props,
|
|
1063
|
-
...J.props
|
|
1064
|
-
};
|
|
1065
1103
|
ne.props = {
|
|
1066
|
-
...
|
|
1104
|
+
...H.props,
|
|
1067
1105
|
...ne.props
|
|
1068
1106
|
};
|
|
1069
1107
|
ae.props = {
|
|
@@ -1071,92 +1109,100 @@ ae.props = {
|
|
|
1071
1109
|
...ae.props
|
|
1072
1110
|
};
|
|
1073
1111
|
le.props = {
|
|
1074
|
-
|
|
1112
|
+
...$e.props,
|
|
1075
1113
|
...le.props
|
|
1076
1114
|
};
|
|
1077
1115
|
re.props = {
|
|
1078
|
-
...
|
|
1116
|
+
...We.props,
|
|
1079
1117
|
...re.props,
|
|
1080
1118
|
modelValue: String
|
|
1081
1119
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
[
|
|
1089
|
-
[
|
|
1090
|
-
[
|
|
1091
|
-
[
|
|
1092
|
-
[
|
|
1093
|
-
[
|
|
1094
|
-
[
|
|
1095
|
-
[
|
|
1096
|
-
[
|
|
1097
|
-
[
|
|
1098
|
-
[
|
|
1099
|
-
[
|
|
1100
|
-
[
|
|
1101
|
-
[
|
|
1102
|
-
[
|
|
1103
|
-
[
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1120
|
+
oe.props = {
|
|
1121
|
+
...Ae.props,
|
|
1122
|
+
...oe.props,
|
|
1123
|
+
placement: { type: String, default: "top-start" }
|
|
1124
|
+
};
|
|
1125
|
+
const sn = {
|
|
1126
|
+
[b.LoadingKey]: qe,
|
|
1127
|
+
[b.RowKey]: bt,
|
|
1128
|
+
[b.ColKey]: ht,
|
|
1129
|
+
[b.ButtonKey]: z,
|
|
1130
|
+
[b.DescriptionsKey]: Le,
|
|
1131
|
+
[b.DescriptionsItemKey]: Pt,
|
|
1132
|
+
[b.MenusKey]: Ut,
|
|
1133
|
+
[b.ModalKey]: $e,
|
|
1134
|
+
[b.PaginationKey]: Dt,
|
|
1135
|
+
[b.PopoverKey]: Lt,
|
|
1136
|
+
[b.TooltipKey]: Ae,
|
|
1137
|
+
[b.CheckboxKey]: De,
|
|
1138
|
+
[b.FormKey]: Bt,
|
|
1139
|
+
[b.FormItemKey]: ze,
|
|
1140
|
+
[b.TableKey]: He,
|
|
1141
|
+
[b.TableOperateKey]: an,
|
|
1142
|
+
[b.UploaderKey]: We,
|
|
1143
|
+
[b.DropdownKey]: rn,
|
|
1144
|
+
[b.ProFormKey]: O,
|
|
1145
|
+
[b.ProSearchFormKey]: W,
|
|
1146
|
+
[b.ProTableKey]: Z,
|
|
1147
|
+
[b.ProCurdKey]: Xe,
|
|
1148
|
+
[b.ProListKey]: Ye,
|
|
1149
|
+
[b.ProPageKey]: et,
|
|
1150
|
+
text: ue,
|
|
1151
|
+
digit: tt,
|
|
1152
|
+
date: nt,
|
|
1153
|
+
time: ue,
|
|
1154
|
+
select: _,
|
|
1155
|
+
radio: _,
|
|
1156
|
+
checkbox: _,
|
|
1157
|
+
treeSelect: ce,
|
|
1158
|
+
cascader: ce
|
|
1159
|
+
}, gn = {
|
|
1160
|
+
text: $t,
|
|
1161
|
+
digit: Gt,
|
|
1162
|
+
digitRange: _t,
|
|
1163
|
+
date: Wt,
|
|
1164
|
+
time: Zt,
|
|
1165
|
+
select: Ht,
|
|
1166
|
+
treeSelect: Jt,
|
|
1167
|
+
checkbox: Qt,
|
|
1168
|
+
radio: Xt,
|
|
1169
|
+
switch: Yt,
|
|
1170
|
+
cascader: en
|
|
1125
1171
|
};
|
|
1126
1172
|
export {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1173
|
+
Ue as FormMethods,
|
|
1174
|
+
qt as InputNumberRange,
|
|
1175
|
+
At as ProCheckbox,
|
|
1176
|
+
Bt as ProForm,
|
|
1177
|
+
en as ProFormCascader,
|
|
1178
|
+
Qt as ProFormCheckbox,
|
|
1179
|
+
Wt as ProFormDatePicker,
|
|
1180
|
+
_t as ProFormInputNumberRange,
|
|
1181
|
+
ze as ProFormItem,
|
|
1182
|
+
Xt as ProFormRadio,
|
|
1183
|
+
Ht as ProFormSelect,
|
|
1184
|
+
Yt as ProFormSwitch,
|
|
1185
|
+
$t as ProFormText,
|
|
1186
|
+
Gt as ProFormTextNumber,
|
|
1187
|
+
Zt as ProFormTimePicker,
|
|
1188
|
+
Jt as ProFormTreeSelect,
|
|
1189
|
+
qe as ProLoading,
|
|
1190
|
+
Ut as ProMenus,
|
|
1191
|
+
$e as ProModal,
|
|
1192
|
+
Dt as ProPagination,
|
|
1193
|
+
Lt as ProPopover,
|
|
1194
|
+
Ot as ProRadio,
|
|
1195
|
+
zt as ProSelect,
|
|
1196
|
+
He as ProTable,
|
|
1197
|
+
Ze as ProTableColumn,
|
|
1198
|
+
an as ProTableOperateItem,
|
|
1199
|
+
mn as ProTabs,
|
|
1200
|
+
yn as ProTree,
|
|
1201
|
+
We as ProUploader,
|
|
1202
|
+
tn as TableMethods,
|
|
1203
|
+
jt as UploadMethods,
|
|
1158
1204
|
M as createFormItemComponent,
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1205
|
+
je as createLoadingId,
|
|
1206
|
+
sn as elementMap,
|
|
1207
|
+
gn as formElementMap
|
|
1162
1208
|
};
|