@vue-start/element-pro 0.2.16 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +571 -449
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/index.d.ts +0 -3874
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { createExpose as
|
|
2
|
-
import { ElFormItem as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { keys as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
const
|
|
1
|
+
import { createExpose as pe, createFormItemCompFn as ze, createExposeObj as U, ProForm as V, ProSearchForm as w, ProFormList as Z, ProTable as D, ProDesc as O, ProCurdDesc as H, ProCurdForm as J, ProCurdModal as Q, ProUploaderText as X, ElementKeys as y, ProCurd as Ae, ProList as Ue, ProShowText as Y, ProShowDigit as Le, ProShowDate as we, ProShowOptions as L, ProShowTree as _ } from "@vue-start/pro";
|
|
2
|
+
import { ElFormItem as j, ElForm as q, ElLoading as De, ElDialog as ee, ElButton as M, ElPagination as te, ElPopover as ae, ElCheckboxGroup as ne, ElCheckboxButton as Oe, ElCheckbox as Ce, ElRadioGroup as le, ElRadioButton as je, ElRadio as qe, ElSelect as re, ElOption as $e, ElTabs as oe, ElTabPane as Ge, ElMenu as N, ElUpload as ue, useFormItem as We, ElInputNumber as B, ElTree as ce, ElInput as Ze, ElDatePicker as He, ElTimePicker as Je, ElTreeSelect as Qe, ElSwitch as Xe, ElCascader as Ye, ElTableColumn as de, ElTable as ie, ElDescriptions as ke, ElRow as _e, ElCol as et, ElDescriptionsItem as tt } from "element-plus";
|
|
3
|
+
import { defineComponent as S, createVNode as c, mergeProps as m, reactive as at, ref as s, toRaw as nt, computed as z, Fragment as lt } from "vue";
|
|
4
|
+
import { keys as F, omit as i, isBoolean as $, isString as rt, debounce as ot, map as k, size as A, pick as G, get as T, isNumber as K, filter as me, isArray as ut } from "lodash";
|
|
5
|
+
import { useEffect as Fe, generateId as ct, useWatch as I, convertCollection as dt, isValidFileType as it, convertFileSize as mt } from "@vue-start/hooks";
|
|
6
|
+
const fe = () => ({
|
|
7
7
|
name: {
|
|
8
8
|
type: [String, Array]
|
|
9
9
|
}
|
|
10
|
-
}),
|
|
10
|
+
}), xe = S({
|
|
11
11
|
props: {
|
|
12
|
-
...
|
|
13
|
-
...
|
|
12
|
+
...j.props,
|
|
13
|
+
...fe()
|
|
14
14
|
},
|
|
15
15
|
setup: (e, {
|
|
16
16
|
slots: t
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return () =>
|
|
18
|
+
const u = F(fe());
|
|
19
|
+
return () => c(j, m(i(e, ...u, "name", "prop"), {
|
|
20
20
|
prop: e.prop || e.name
|
|
21
21
|
}), t);
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), Ee = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], ft = S({
|
|
24
24
|
props: {
|
|
25
|
-
...
|
|
25
|
+
...q.props,
|
|
26
26
|
hideRequiredMark: {
|
|
27
27
|
type: [Boolean, Object],
|
|
28
28
|
default: void 0
|
|
@@ -30,30 +30,30 @@ const ce = () => ({
|
|
|
30
30
|
},
|
|
31
31
|
setup: (e, {
|
|
32
32
|
slots: t,
|
|
33
|
-
emit:
|
|
33
|
+
emit: u,
|
|
34
34
|
expose: a
|
|
35
35
|
}) => {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
!
|
|
39
|
-
var
|
|
40
|
-
(
|
|
41
|
-
|
|
36
|
+
const r = e.model || at({}), n = s();
|
|
37
|
+
return Fe(() => {
|
|
38
|
+
!n.value || (n.value.submit = () => {
|
|
39
|
+
var o;
|
|
40
|
+
(o = n.value) == null || o.validate((d, l) => {
|
|
41
|
+
d ? u("finish", nt(r)) : u("finishFailed", l);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
}, []), a(
|
|
45
|
-
ref:
|
|
46
|
-
},
|
|
47
|
-
hideRequiredAsterisk:
|
|
48
|
-
model:
|
|
44
|
+
}, []), a(pe(Ee, n)), () => c(q, m({
|
|
45
|
+
ref: n
|
|
46
|
+
}, i(e, "model"), {
|
|
47
|
+
hideRequiredAsterisk: $(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
48
|
+
model: r
|
|
49
49
|
}), t);
|
|
50
50
|
}
|
|
51
|
-
}), C =
|
|
51
|
+
}), C = ze(xe, (e, t, u) => ({
|
|
52
52
|
modelValue: e,
|
|
53
53
|
"onUpdate:modelValue": t,
|
|
54
54
|
clearable: !0,
|
|
55
|
-
disabled:
|
|
56
|
-
})),
|
|
55
|
+
disabled: u
|
|
56
|
+
})), Te = (e = "comp") => e + "-" + ct(), yt = () => ({
|
|
57
57
|
loading: {
|
|
58
58
|
type: Boolean
|
|
59
59
|
},
|
|
@@ -81,21 +81,21 @@ const ce = () => ({
|
|
|
81
81
|
customClass: {
|
|
82
82
|
type: String
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), Ke = S({
|
|
85
85
|
props: {
|
|
86
|
-
...
|
|
86
|
+
...yt()
|
|
87
87
|
},
|
|
88
88
|
setup: (e, {
|
|
89
89
|
slots: t
|
|
90
90
|
}) => {
|
|
91
|
-
const
|
|
92
|
-
return
|
|
91
|
+
const u = Te();
|
|
92
|
+
return Fe(() => {
|
|
93
93
|
if (!e.loading)
|
|
94
94
|
return;
|
|
95
95
|
let a = e.target;
|
|
96
|
-
if (t.default ? a = document.getElementById(
|
|
96
|
+
if (t.default ? a = document.getElementById(u) : e.target && rt(e.target) && (a = document.querySelector("#" + e.target)), !a)
|
|
97
97
|
return;
|
|
98
|
-
const
|
|
98
|
+
const r = De.service({
|
|
99
99
|
target: a,
|
|
100
100
|
body: e.body,
|
|
101
101
|
fullscreen: e.fullscreen,
|
|
@@ -106,13 +106,13 @@ const ce = () => ({
|
|
|
106
106
|
customClass: e.customClass
|
|
107
107
|
});
|
|
108
108
|
return () => {
|
|
109
|
-
|
|
109
|
+
r && r.close();
|
|
110
110
|
};
|
|
111
|
-
}, () => e.loading), () => t.default ?
|
|
112
|
-
id:
|
|
111
|
+
}, () => e.loading), () => t.default ? c("div", {
|
|
112
|
+
id: u
|
|
113
113
|
}, [t.default()]) : null;
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), ye = () => ({
|
|
116
116
|
clsName: {
|
|
117
117
|
type: String,
|
|
118
118
|
default: "pro-modal"
|
|
@@ -144,70 +144,72 @@ const ce = () => ({
|
|
|
144
144
|
type: [Object, Boolean],
|
|
145
145
|
default: void 0
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), Ie = S({
|
|
148
|
+
inheritAttrs: !1,
|
|
148
149
|
props: {
|
|
149
|
-
...
|
|
150
|
+
...ee.props,
|
|
150
151
|
appendToBody: {
|
|
151
152
|
type: Boolean,
|
|
152
153
|
default: !0
|
|
153
154
|
},
|
|
154
|
-
...
|
|
155
|
+
...ye()
|
|
155
156
|
},
|
|
156
157
|
setup: (e, {
|
|
157
158
|
slots: t,
|
|
158
|
-
emit:
|
|
159
|
+
emit: u,
|
|
160
|
+
attrs: a
|
|
159
161
|
}) => {
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
const r = s(e.visible);
|
|
163
|
+
I(() => {
|
|
164
|
+
r.value !== e.visible && (r.value = e.visible);
|
|
163
165
|
}, () => e.visible);
|
|
164
|
-
const
|
|
165
|
-
var
|
|
166
|
-
if ((
|
|
166
|
+
const n = () => {
|
|
167
|
+
var l;
|
|
168
|
+
if ((l = e.cancelButtonProps) != null && l.onClick) {
|
|
167
169
|
e.cancelButtonProps.onClick();
|
|
168
170
|
return;
|
|
169
171
|
}
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
var
|
|
173
|
-
if ((
|
|
172
|
+
r.value = !1, u("update:visible", !1);
|
|
173
|
+
}, o = () => {
|
|
174
|
+
var l;
|
|
175
|
+
if ((l = e.okButtonProps) != null && l.onClick) {
|
|
174
176
|
e.okButtonProps.onClick();
|
|
175
177
|
return;
|
|
176
178
|
}
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
return () =>
|
|
179
|
+
u("ok");
|
|
180
|
+
}, d = F(ye());
|
|
181
|
+
return () => c(ee, m({
|
|
180
182
|
class: e.clsName
|
|
181
|
-
},
|
|
182
|
-
closeOnClickModal:
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue": [(
|
|
185
|
-
|
|
183
|
+
}, i(a, "onCancel"), i(e, ...d, "modelValue"), {
|
|
184
|
+
closeOnClickModal: $(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
|
|
185
|
+
modelValue: r.value,
|
|
186
|
+
"onUpdate:modelValue": [(l) => r.value = l, (l) => {
|
|
187
|
+
u("update:visible", l);
|
|
186
188
|
}],
|
|
187
189
|
onClose: () => {
|
|
188
|
-
|
|
190
|
+
u("cancel");
|
|
189
191
|
}
|
|
190
192
|
}), {
|
|
191
|
-
footer: e.footer === !1 ? void 0 : () =>
|
|
193
|
+
footer: e.footer === !1 ? void 0 : () => c("div", {
|
|
192
194
|
class: `${e.clsName}-operate`
|
|
193
|
-
}, [
|
|
194
|
-
onClick:
|
|
195
|
+
}, [c(M, m(i(e.cancelButtonProps, "onClick"), {
|
|
196
|
+
onClick: n
|
|
195
197
|
}), {
|
|
196
198
|
default: () => [e.cancelText]
|
|
197
|
-
}),
|
|
199
|
+
}), c(M, m({
|
|
198
200
|
type: "primary",
|
|
199
201
|
loading: e.confirmLoading
|
|
200
|
-
},
|
|
201
|
-
onClick:
|
|
202
|
+
}, i(e.okButtonProps, "onClick"), {
|
|
203
|
+
onClick: o
|
|
202
204
|
}), {
|
|
203
205
|
default: () => [e.okText]
|
|
204
206
|
})]),
|
|
205
207
|
...t
|
|
206
208
|
});
|
|
207
209
|
}
|
|
208
|
-
}),
|
|
210
|
+
}), vt = S({
|
|
209
211
|
props: {
|
|
210
|
-
...
|
|
212
|
+
...te.props,
|
|
211
213
|
page: {
|
|
212
214
|
type: Number,
|
|
213
215
|
default: 1
|
|
@@ -215,41 +217,41 @@ const ce = () => ({
|
|
|
215
217
|
},
|
|
216
218
|
setup: (e, {
|
|
217
219
|
slots: t,
|
|
218
|
-
emit:
|
|
220
|
+
emit: u
|
|
219
221
|
}) => {
|
|
220
|
-
const a =
|
|
221
|
-
|
|
222
|
+
const a = s(e.page), r = s(e.pageSize);
|
|
223
|
+
I(() => {
|
|
222
224
|
a.value !== e.page && (a.value = e.page);
|
|
223
|
-
}, () => e.page),
|
|
224
|
-
|
|
225
|
+
}, () => e.page), I(() => {
|
|
226
|
+
r.value !== e.pageSize && (r.value = e.pageSize);
|
|
225
227
|
}, () => e.pageSize);
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
}, 300),
|
|
229
|
-
|
|
230
|
-
},
|
|
231
|
-
|
|
228
|
+
const n = ot(() => {
|
|
229
|
+
u("composeChange", a.value, r.value);
|
|
230
|
+
}, 300), o = () => {
|
|
231
|
+
n(), u("update:page", a.value);
|
|
232
|
+
}, d = () => {
|
|
233
|
+
n(), u("update:pageSize", r.value);
|
|
232
234
|
};
|
|
233
|
-
return () =>
|
|
235
|
+
return () => c(te, m({
|
|
234
236
|
currentPage: a.value,
|
|
235
|
-
"onUpdate:currentPage": (
|
|
236
|
-
pageSize:
|
|
237
|
-
"onUpdate:pageSize": (
|
|
238
|
-
onCurrentChange:
|
|
239
|
-
onSizeChange:
|
|
240
|
-
},
|
|
237
|
+
"onUpdate:currentPage": (l) => a.value = l,
|
|
238
|
+
pageSize: r.value,
|
|
239
|
+
"onUpdate:pageSize": (l) => r.value = l,
|
|
240
|
+
onCurrentChange: o,
|
|
241
|
+
onSizeChange: d
|
|
242
|
+
}, i(e, "currentPage", "pageSize")), t);
|
|
241
243
|
}
|
|
242
|
-
}),
|
|
244
|
+
}), bt = S({
|
|
243
245
|
props: {
|
|
244
|
-
...
|
|
246
|
+
...ae.props
|
|
245
247
|
},
|
|
246
248
|
setup: (e, {
|
|
247
249
|
slots: t
|
|
248
|
-
}) => () =>
|
|
250
|
+
}) => () => c(ae, e, {
|
|
249
251
|
reference: t.default,
|
|
250
252
|
default: t.content
|
|
251
253
|
})
|
|
252
|
-
}),
|
|
254
|
+
}), ve = () => ({
|
|
253
255
|
options: Array,
|
|
254
256
|
buttonStyle: {
|
|
255
257
|
type: String,
|
|
@@ -259,49 +261,49 @@ const ce = () => ({
|
|
|
259
261
|
type: String,
|
|
260
262
|
default: "default"
|
|
261
263
|
}
|
|
262
|
-
}),
|
|
264
|
+
}), gt = S({
|
|
263
265
|
props: {
|
|
264
|
-
...
|
|
265
|
-
...
|
|
266
|
+
...ne.props,
|
|
267
|
+
...ve()
|
|
266
268
|
},
|
|
267
269
|
setup: (e, {
|
|
268
270
|
slots: t,
|
|
269
|
-
emit:
|
|
271
|
+
emit: u,
|
|
270
272
|
expose: a
|
|
271
273
|
}) => {
|
|
272
|
-
const
|
|
273
|
-
a(
|
|
274
|
-
const
|
|
275
|
-
return () =>
|
|
276
|
-
ref:
|
|
277
|
-
},
|
|
278
|
-
"onUpdate:modelValue": (
|
|
279
|
-
|
|
274
|
+
const r = s();
|
|
275
|
+
a(U(r));
|
|
276
|
+
const n = F(ve());
|
|
277
|
+
return () => c(ne, m({
|
|
278
|
+
ref: r
|
|
279
|
+
}, i(e, n), {
|
|
280
|
+
"onUpdate:modelValue": (o) => {
|
|
281
|
+
u("update:modelValue", o || void 0);
|
|
280
282
|
}
|
|
281
283
|
}), {
|
|
282
284
|
default: () => {
|
|
283
|
-
var
|
|
284
|
-
return [(
|
|
285
|
-
var
|
|
286
|
-
const
|
|
287
|
-
return e.optionType === "button" || e.buttonStyle === "button" ?
|
|
288
|
-
key:
|
|
289
|
-
},
|
|
290
|
-
label:
|
|
285
|
+
var o, d;
|
|
286
|
+
return [(o = t.start) == null ? void 0 : o.call(t), k(e.options, (l) => {
|
|
287
|
+
var g;
|
|
288
|
+
const b = (g = t.label) == null ? void 0 : g.call(t, l);
|
|
289
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(Oe, m({
|
|
290
|
+
key: l.value
|
|
291
|
+
}, i(l, "value"), {
|
|
292
|
+
label: l.value
|
|
291
293
|
}), {
|
|
292
|
-
default: () => [
|
|
293
|
-
}) :
|
|
294
|
-
key:
|
|
295
|
-
},
|
|
296
|
-
label:
|
|
294
|
+
default: () => [b || l.label]
|
|
295
|
+
}) : c(Ce, m({
|
|
296
|
+
key: l.value
|
|
297
|
+
}, l, {
|
|
298
|
+
label: l.value
|
|
297
299
|
}), {
|
|
298
|
-
default: () => [
|
|
300
|
+
default: () => [b || l.label]
|
|
299
301
|
});
|
|
300
|
-
}), (
|
|
302
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
301
303
|
}
|
|
302
304
|
});
|
|
303
305
|
}
|
|
304
|
-
}),
|
|
306
|
+
}), be = () => ({
|
|
305
307
|
options: {
|
|
306
308
|
type: Array
|
|
307
309
|
},
|
|
@@ -313,115 +315,115 @@ const ce = () => ({
|
|
|
313
315
|
type: String,
|
|
314
316
|
default: "default"
|
|
315
317
|
}
|
|
316
|
-
}),
|
|
318
|
+
}), Pt = S({
|
|
317
319
|
props: {
|
|
318
|
-
...
|
|
319
|
-
...
|
|
320
|
+
...le.props,
|
|
321
|
+
...be()
|
|
320
322
|
},
|
|
321
323
|
setup: (e, {
|
|
322
324
|
slots: t,
|
|
323
|
-
emit:
|
|
325
|
+
emit: u,
|
|
324
326
|
expose: a
|
|
325
327
|
}) => {
|
|
326
|
-
const
|
|
327
|
-
a(
|
|
328
|
-
const
|
|
329
|
-
return () =>
|
|
330
|
-
ref:
|
|
331
|
-
},
|
|
332
|
-
"onUpdate:modelValue": (
|
|
333
|
-
|
|
328
|
+
const r = s();
|
|
329
|
+
a(U(r));
|
|
330
|
+
const n = F(be());
|
|
331
|
+
return () => c(le, m({
|
|
332
|
+
ref: r
|
|
333
|
+
}, i(e, n), {
|
|
334
|
+
"onUpdate:modelValue": (o) => {
|
|
335
|
+
u("update:modelValue", o);
|
|
334
336
|
}
|
|
335
337
|
}), {
|
|
336
338
|
default: () => {
|
|
337
|
-
var
|
|
338
|
-
return [(
|
|
339
|
-
var
|
|
340
|
-
const
|
|
341
|
-
return e.optionType === "button" || e.buttonStyle === "button" ?
|
|
342
|
-
key:
|
|
343
|
-
},
|
|
344
|
-
label:
|
|
339
|
+
var o, d;
|
|
340
|
+
return [(o = t.start) == null ? void 0 : o.call(t), k(e.options, (l) => {
|
|
341
|
+
var g;
|
|
342
|
+
const b = (g = t.label) == null ? void 0 : g.call(t, l);
|
|
343
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(je, m({
|
|
344
|
+
key: l.value
|
|
345
|
+
}, i(l, "value"), {
|
|
346
|
+
label: l.value
|
|
345
347
|
}), {
|
|
346
|
-
default: () => [
|
|
347
|
-
}) :
|
|
348
|
-
key:
|
|
349
|
-
},
|
|
350
|
-
label:
|
|
348
|
+
default: () => [b || l.label]
|
|
349
|
+
}) : c(qe, m({
|
|
350
|
+
key: l.value
|
|
351
|
+
}, i(l, "value"), {
|
|
352
|
+
label: l.value
|
|
351
353
|
}), {
|
|
352
|
-
default: () => [
|
|
354
|
+
default: () => [b || l.label]
|
|
353
355
|
});
|
|
354
|
-
}), (
|
|
356
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
355
357
|
}
|
|
356
358
|
});
|
|
357
359
|
}
|
|
358
|
-
}),
|
|
360
|
+
}), ge = () => ({
|
|
359
361
|
options: Array
|
|
360
|
-
}),
|
|
362
|
+
}), ht = S({
|
|
361
363
|
props: {
|
|
362
|
-
...
|
|
363
|
-
...
|
|
364
|
+
...re.props,
|
|
365
|
+
...ge()
|
|
364
366
|
},
|
|
365
367
|
setup: (e, {
|
|
366
368
|
slots: t,
|
|
367
|
-
emit:
|
|
369
|
+
emit: u,
|
|
368
370
|
expose: a
|
|
369
371
|
}) => {
|
|
370
|
-
const
|
|
371
|
-
a(
|
|
372
|
-
const
|
|
373
|
-
return () =>
|
|
374
|
-
ref:
|
|
375
|
-
},
|
|
376
|
-
"onUpdate:modelValue": (
|
|
377
|
-
|
|
372
|
+
const r = s();
|
|
373
|
+
a(U(r));
|
|
374
|
+
const n = F(ge());
|
|
375
|
+
return () => c(re, m({
|
|
376
|
+
ref: r
|
|
377
|
+
}, i(e, n), {
|
|
378
|
+
"onUpdate:modelValue": (o) => {
|
|
379
|
+
u("update:modelValue", o || void 0);
|
|
378
380
|
}
|
|
379
381
|
}), {
|
|
380
382
|
default: () => {
|
|
381
|
-
var
|
|
382
|
-
return [(
|
|
383
|
-
var
|
|
384
|
-
const
|
|
385
|
-
return
|
|
386
|
-
key:
|
|
387
|
-
},
|
|
388
|
-
default: () => [
|
|
383
|
+
var o, d;
|
|
384
|
+
return [(o = t.start) == null ? void 0 : o.call(t), k(e.options, (l) => {
|
|
385
|
+
var g;
|
|
386
|
+
const b = (g = t.label) == null ? void 0 : g.call(t, l);
|
|
387
|
+
return c($e, m({
|
|
388
|
+
key: l.value
|
|
389
|
+
}, l), {
|
|
390
|
+
default: () => [b || l.label]
|
|
389
391
|
});
|
|
390
|
-
}), (
|
|
392
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
391
393
|
},
|
|
392
|
-
...
|
|
394
|
+
...i(t, "default")
|
|
393
395
|
});
|
|
394
396
|
}
|
|
395
|
-
}),
|
|
397
|
+
}), Dt = S({
|
|
396
398
|
props: {
|
|
397
|
-
...
|
|
399
|
+
...oe.props,
|
|
398
400
|
options: {
|
|
399
401
|
type: Array
|
|
400
402
|
}
|
|
401
403
|
},
|
|
402
404
|
setup: (e, {
|
|
403
405
|
slots: t,
|
|
404
|
-
emit:
|
|
405
|
-
}) => () =>
|
|
406
|
+
emit: u
|
|
407
|
+
}) => () => c(oe, m(i(e, "options"), {
|
|
406
408
|
"onUpdate:modelValue": (a) => {
|
|
407
|
-
|
|
409
|
+
u("update:modelValue", a);
|
|
408
410
|
}
|
|
409
411
|
}), {
|
|
410
412
|
default: () => {
|
|
411
|
-
var a,
|
|
412
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
413
|
-
key:
|
|
414
|
-
},
|
|
415
|
-
name:
|
|
413
|
+
var a, r;
|
|
414
|
+
return [(a = t.start) == null ? void 0 : a.call(t), k(e.options, (n) => c(Ge, m({
|
|
415
|
+
key: n.value
|
|
416
|
+
}, i(n, "value"), {
|
|
417
|
+
name: n.value
|
|
416
418
|
}), {
|
|
417
419
|
label: () => {
|
|
418
|
-
var
|
|
419
|
-
return ((
|
|
420
|
+
var o;
|
|
421
|
+
return ((o = t.label) == null ? void 0 : o.call(t, n)) || n.label;
|
|
420
422
|
}
|
|
421
|
-
})), (
|
|
423
|
+
})), (r = t.default) == null ? void 0 : r.call(t)];
|
|
422
424
|
}
|
|
423
425
|
})
|
|
424
|
-
}),
|
|
426
|
+
}), W = {
|
|
425
427
|
convertSubMenuProps: {
|
|
426
428
|
type: Function
|
|
427
429
|
},
|
|
@@ -431,47 +433,47 @@ const ce = () => ({
|
|
|
431
433
|
onMenuItemClick: {
|
|
432
434
|
type: Function
|
|
433
435
|
}
|
|
434
|
-
},
|
|
436
|
+
}, Re = F(W), Ve = S({
|
|
435
437
|
inheritAttrs: !1,
|
|
436
438
|
props: {
|
|
437
439
|
menu: {
|
|
438
440
|
type: Object
|
|
439
441
|
},
|
|
440
|
-
...
|
|
442
|
+
...W
|
|
441
443
|
},
|
|
442
444
|
setup: (e, {
|
|
443
445
|
slots: t
|
|
444
446
|
}) => {
|
|
445
|
-
const
|
|
447
|
+
const u = () => {
|
|
446
448
|
var a;
|
|
447
449
|
(a = e.onMenuItemClick) == null || a.call(e, e.menu);
|
|
448
450
|
};
|
|
449
451
|
return () => {
|
|
450
|
-
var
|
|
452
|
+
var r, n;
|
|
451
453
|
const a = e.menu;
|
|
452
|
-
return (a == null ? void 0 : a.children) &&
|
|
454
|
+
return (a == null ? void 0 : a.children) && A(a.children) > 0 ? c(N.SubMenu, m({
|
|
453
455
|
index: a == null ? void 0 : a.value
|
|
454
|
-
}, (
|
|
455
|
-
default: () => [
|
|
456
|
-
menu:
|
|
457
|
-
},
|
|
456
|
+
}, (r = e.convertSubMenuProps) == null ? void 0 : r.call(e, a)), {
|
|
457
|
+
default: () => [k(a.children, (o) => c(Ve, m({
|
|
458
|
+
menu: o
|
|
459
|
+
}, G(e, Re)), t))],
|
|
458
460
|
title: () => {
|
|
459
|
-
var
|
|
460
|
-
return ((
|
|
461
|
+
var o;
|
|
462
|
+
return ((o = t.title) == null ? void 0 : o.call(t, a)) || (a == null ? void 0 : a.label);
|
|
461
463
|
}
|
|
462
|
-
}) :
|
|
464
|
+
}) : c(N.MenuItem, m({
|
|
463
465
|
index: a == null ? void 0 : a.value
|
|
464
|
-
}, (
|
|
465
|
-
onClick:
|
|
466
|
+
}, (n = e.convertMenuItemProps) == null ? void 0 : n.call(e, a), {
|
|
467
|
+
onClick: u
|
|
466
468
|
}), {
|
|
467
469
|
title: () => {
|
|
468
|
-
var
|
|
469
|
-
return ((
|
|
470
|
+
var o;
|
|
471
|
+
return ((o = t.title) == null ? void 0 : o.call(t, a)) || (a == null ? void 0 : a.label);
|
|
470
472
|
}
|
|
471
473
|
});
|
|
472
474
|
};
|
|
473
475
|
}
|
|
474
|
-
}),
|
|
476
|
+
}), Pe = () => ({
|
|
475
477
|
activeKey: {
|
|
476
478
|
type: String
|
|
477
479
|
},
|
|
@@ -486,43 +488,43 @@ const ce = () => ({
|
|
|
486
488
|
label: "label"
|
|
487
489
|
}
|
|
488
490
|
},
|
|
489
|
-
...
|
|
490
|
-
}),
|
|
491
|
+
...W
|
|
492
|
+
}), St = S({
|
|
491
493
|
props: {
|
|
492
|
-
...
|
|
493
|
-
...
|
|
494
|
+
...i(N.props, "defaultActive"),
|
|
495
|
+
...Pe()
|
|
494
496
|
},
|
|
495
497
|
setup: (e, {
|
|
496
498
|
slots: t
|
|
497
499
|
}) => {
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
e.activeKey !==
|
|
500
|
+
const u = s(e.activeKey);
|
|
501
|
+
I(() => {
|
|
502
|
+
e.activeKey !== u.value && (u.value = e.activeKey);
|
|
501
503
|
}, () => e.activeKey);
|
|
502
|
-
const a =
|
|
503
|
-
var
|
|
504
|
-
return
|
|
505
|
-
var
|
|
506
|
-
const
|
|
504
|
+
const a = z(() => {
|
|
505
|
+
var n;
|
|
506
|
+
return dt(e.options, (o) => {
|
|
507
|
+
var b, g;
|
|
508
|
+
const d = ((b = e.fieldNames) == null ? void 0 : b.value) || "value", l = ((g = e.fieldNames) == null ? void 0 : g.label) || "label";
|
|
507
509
|
return {
|
|
508
|
-
...
|
|
509
|
-
value:
|
|
510
|
-
label:
|
|
510
|
+
...i(o, d, l),
|
|
511
|
+
value: T(o, d),
|
|
512
|
+
label: T(o, l)
|
|
511
513
|
};
|
|
512
514
|
}, {
|
|
513
|
-
children: ((
|
|
515
|
+
children: ((n = e.fieldNames) == null ? void 0 : n.children) || "children",
|
|
514
516
|
childrenName: "children"
|
|
515
517
|
});
|
|
516
|
-
}),
|
|
517
|
-
return () =>
|
|
518
|
-
defaultActive:
|
|
519
|
-
},
|
|
520
|
-
default: () =>
|
|
521
|
-
menu:
|
|
522
|
-
},
|
|
518
|
+
}), r = F(Pe());
|
|
519
|
+
return () => c(N, m({
|
|
520
|
+
defaultActive: u.value
|
|
521
|
+
}, i(e, r)), {
|
|
522
|
+
default: () => c(lt, null, [k(a.value, (n) => c(Ve, m({
|
|
523
|
+
menu: n
|
|
524
|
+
}, G(e, Re)), t))])
|
|
523
525
|
});
|
|
524
526
|
}
|
|
525
|
-
}),
|
|
527
|
+
}), he = () => ({
|
|
526
528
|
modelValue: {
|
|
527
529
|
type: Array,
|
|
528
530
|
default: void 0
|
|
@@ -545,121 +547,237 @@ const ce = () => ({
|
|
|
545
547
|
beforeUpload: {
|
|
546
548
|
type: Function
|
|
547
549
|
}
|
|
548
|
-
}),
|
|
550
|
+
}), st = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], Me = S({
|
|
549
551
|
props: {
|
|
550
|
-
...
|
|
551
|
-
...
|
|
552
|
+
...i(ue.props, "fileList"),
|
|
553
|
+
...he()
|
|
552
554
|
},
|
|
553
555
|
setup: (e, {
|
|
554
556
|
slots: t,
|
|
555
|
-
expose:
|
|
557
|
+
expose: u,
|
|
556
558
|
emit: a
|
|
557
559
|
}) => {
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
+
const r = s();
|
|
561
|
+
u(U(r, st));
|
|
560
562
|
const {
|
|
561
|
-
formItem:
|
|
562
|
-
} =
|
|
563
|
-
var
|
|
564
|
-
return ((
|
|
565
|
-
}) : [],
|
|
566
|
-
let
|
|
567
|
-
const
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
a("update:modelValue",
|
|
572
|
-
var
|
|
573
|
-
return ((
|
|
574
|
-
})), (
|
|
563
|
+
formItem: n
|
|
564
|
+
} = We(), o = () => ut(e.modelValue) ? k(e.modelValue, (v) => {
|
|
565
|
+
var P;
|
|
566
|
+
return ((P = e.convertItemData) == null ? void 0 : P.call(e, v)) || v;
|
|
567
|
+
}) : [], d = s(o());
|
|
568
|
+
let l = !1;
|
|
569
|
+
const b = () => {
|
|
570
|
+
var P;
|
|
571
|
+
l = !0;
|
|
572
|
+
const v = me(d.value, (h) => h.status === "success");
|
|
573
|
+
a("update:modelValue", k(v, (h) => {
|
|
574
|
+
var x;
|
|
575
|
+
return ((x = e.convertResponseData) == null ? void 0 : x.call(e, h)) || h;
|
|
576
|
+
})), (P = n == null ? void 0 : n.validate) == null || P.call(n, "change");
|
|
575
577
|
};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
+
I(() => {
|
|
579
|
+
l || (d.value = o(), l = !1);
|
|
578
580
|
}, () => e.modelValue);
|
|
579
|
-
const
|
|
580
|
-
var
|
|
581
|
+
const g = (v) => {
|
|
582
|
+
var P, h, x, E;
|
|
581
583
|
if (e.beforeUpload)
|
|
582
|
-
return e.beforeUpload(
|
|
583
|
-
if (e.accept && !
|
|
584
|
-
return (
|
|
585
|
-
if (
|
|
586
|
-
if (
|
|
587
|
-
return (
|
|
588
|
-
if (
|
|
589
|
-
return (
|
|
584
|
+
return e.beforeUpload(v);
|
|
585
|
+
if (e.accept && !it(e.accept, v.name))
|
|
586
|
+
return (P = e.onErrorMsg) == null || P.call(e, "FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
|
|
587
|
+
if (K(v.size)) {
|
|
588
|
+
if (v.size <= 0)
|
|
589
|
+
return (h = e.onErrorMsg) == null || h.call(e, "FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
|
|
590
|
+
if (K(e.maxSize) && v.size > e.maxSize)
|
|
591
|
+
return (x = e.onErrorMsg) == null || x.call(e, "FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${mt(e.maxSize)}\u7684\u6587\u4EF6`), !1;
|
|
590
592
|
}
|
|
591
|
-
return (
|
|
592
|
-
},
|
|
593
|
+
return (E = e.onStart) == null || E.call(e, v), !0;
|
|
594
|
+
}, f = z(() => K(e.limit) ? e.limit > A(d.value) : !0), p = F(he());
|
|
593
595
|
return () => {
|
|
594
|
-
var
|
|
595
|
-
return
|
|
596
|
-
class: `pro-uploader ${
|
|
597
|
-
}, [(
|
|
598
|
-
ref:
|
|
599
|
-
fileList:
|
|
600
|
-
"onUpdate:fileList": (
|
|
601
|
-
},
|
|
602
|
-
beforeUpload:
|
|
603
|
-
onSuccess: (
|
|
604
|
-
var
|
|
605
|
-
(
|
|
596
|
+
var v, P;
|
|
597
|
+
return c("div", {
|
|
598
|
+
class: `pro-uploader ${f.value ? "" : "pro-uploader-limit"}`
|
|
599
|
+
}, [(v = t.start) == null ? void 0 : v.call(t), c(ue, m({
|
|
600
|
+
ref: r,
|
|
601
|
+
fileList: d.value,
|
|
602
|
+
"onUpdate:fileList": (h) => d.value = h
|
|
603
|
+
}, i(e, "fileList", "onSuccess", "onRemove", "beforeUpload", ...p), {
|
|
604
|
+
beforeUpload: g,
|
|
605
|
+
onSuccess: (h, x, E) => {
|
|
606
|
+
var R;
|
|
607
|
+
(R = e.onSuccess) == null || R.call(e, h, x, E), b();
|
|
606
608
|
},
|
|
607
|
-
onRemove: (
|
|
608
|
-
var
|
|
609
|
-
|
|
609
|
+
onRemove: (h, x) => {
|
|
610
|
+
var E;
|
|
611
|
+
d.value = me(d.value, (R) => !(h.uid === R.uid && h.name === R.name)), (E = e.onRemove) == null || E.call(e, h, x), b();
|
|
610
612
|
}
|
|
611
613
|
}), {
|
|
612
614
|
default: () => {
|
|
613
|
-
var
|
|
614
|
-
return [
|
|
615
|
+
var h;
|
|
616
|
+
return [f.value && ((h = t.default) == null ? void 0 : h.call(t))];
|
|
615
617
|
},
|
|
616
|
-
...
|
|
617
|
-
}), (
|
|
618
|
+
...i(t, "default")
|
|
619
|
+
}), (P = t.end) == null ? void 0 : P.call(t)]);
|
|
618
620
|
};
|
|
619
621
|
}
|
|
620
|
-
}),
|
|
621
|
-
|
|
622
|
+
}), Se = () => ({
|
|
623
|
+
modelValue: {
|
|
624
|
+
type: Array
|
|
625
|
+
},
|
|
626
|
+
start: {
|
|
627
|
+
type: Object
|
|
628
|
+
},
|
|
629
|
+
end: {
|
|
630
|
+
type: Object
|
|
631
|
+
},
|
|
632
|
+
singleEmit: {
|
|
633
|
+
type: Boolean,
|
|
634
|
+
default: !1
|
|
635
|
+
},
|
|
636
|
+
divider: {
|
|
637
|
+
type: Function
|
|
638
|
+
}
|
|
639
|
+
}), pt = S({
|
|
640
|
+
props: {
|
|
641
|
+
...i(B.props, "modelValue"),
|
|
642
|
+
controlsPosition: {
|
|
643
|
+
type: String,
|
|
644
|
+
default: "right"
|
|
645
|
+
},
|
|
646
|
+
...Se()
|
|
647
|
+
},
|
|
648
|
+
setup: (e, {
|
|
649
|
+
slots: t,
|
|
650
|
+
emit: u
|
|
651
|
+
}) => {
|
|
652
|
+
const a = s(T(e.modelValue, 0)), r = s(T(e.modelValue, 1));
|
|
653
|
+
let n = !1;
|
|
654
|
+
I(() => {
|
|
655
|
+
n || (a.value = T(e.modelValue, 0), r.value = T(e.modelValue, 1)), n = !1;
|
|
656
|
+
}, [e.modelValue, () => e.modelValue]);
|
|
657
|
+
const o = () => {
|
|
658
|
+
n = !0, e.singleEmit ? u("update:modelValue", [a.value, r.value]) : K(a.value) && K(r.value) ? u("update:modelValue", [a.value, r.value]) : u("update:modelValue", null);
|
|
659
|
+
}, d = (f) => {
|
|
660
|
+
for (let p = 0; p < f.length; p++)
|
|
661
|
+
if (K(f[p]))
|
|
662
|
+
return f[p];
|
|
663
|
+
}, l = z(() => {
|
|
664
|
+
var f;
|
|
665
|
+
return d([r.value, (f = e.start) == null ? void 0 : f.max, e.max]);
|
|
666
|
+
}), b = z(() => {
|
|
667
|
+
var f;
|
|
668
|
+
return d([a.value, (f = e.end) == null ? void 0 : f.min, e.min]);
|
|
669
|
+
}), g = F(Se());
|
|
670
|
+
return () => {
|
|
671
|
+
var p, v;
|
|
672
|
+
const f = i(e, ...g, "min", "max");
|
|
673
|
+
return c("span", {
|
|
674
|
+
class: "pro-number-range"
|
|
675
|
+
}, [c(B, m(f, i(e.start, "max"), {
|
|
676
|
+
max: l.value,
|
|
677
|
+
modelValue: a.value,
|
|
678
|
+
"onUpdate:modelValue": [(P) => a.value = P, o]
|
|
679
|
+
}), null), c("span", null, [((p = t.divider) == null ? void 0 : p.call(t)) || ((v = e.divider) == null ? void 0 : v.call(e)) || " - "]), c(B, m(f, i(e.start, "min"), {
|
|
680
|
+
min: b.value,
|
|
681
|
+
modelValue: r.value,
|
|
682
|
+
"onUpdate:modelValue": [(P) => r.value = P, o]
|
|
683
|
+
}), null)]);
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
}), se = () => ({
|
|
687
|
+
treeData: {
|
|
688
|
+
type: Array
|
|
689
|
+
},
|
|
690
|
+
fieldNames: {
|
|
691
|
+
type: Object
|
|
692
|
+
},
|
|
693
|
+
selectable: {
|
|
694
|
+
type: Boolean,
|
|
695
|
+
default: void 0
|
|
696
|
+
},
|
|
697
|
+
expandedKeys: {
|
|
698
|
+
type: Array
|
|
699
|
+
},
|
|
700
|
+
checkedKeys: {
|
|
701
|
+
type: Array
|
|
702
|
+
}
|
|
703
|
+
}), Ot = S({
|
|
704
|
+
props: {
|
|
705
|
+
...ce.props,
|
|
706
|
+
...se()
|
|
707
|
+
},
|
|
708
|
+
setup: (e, {
|
|
709
|
+
slots: t
|
|
710
|
+
}) => {
|
|
711
|
+
const u = F(se()), r = (() => {
|
|
712
|
+
const n = e.fieldNames;
|
|
713
|
+
if (!!n)
|
|
714
|
+
return {
|
|
715
|
+
label: n.title,
|
|
716
|
+
children: n.children,
|
|
717
|
+
disabled: n.disabled,
|
|
718
|
+
isLeaf: n.isLeaf,
|
|
719
|
+
class: n.class
|
|
720
|
+
};
|
|
721
|
+
})();
|
|
722
|
+
return () => {
|
|
723
|
+
var n;
|
|
724
|
+
return c(ce, m(i(e, u), {
|
|
725
|
+
data: e.treeData || e.data,
|
|
726
|
+
props: r || e.props,
|
|
727
|
+
nodeKey: ((n = e.fieldNames) == null ? void 0 : n.key) || e.nodeKey,
|
|
728
|
+
showCheckbox: $(e.selectable) ? e.selectable : e.showCheckbox,
|
|
729
|
+
defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
|
|
730
|
+
defaultCheckedKeys: e.checkedKeys || e.checkedKeys
|
|
731
|
+
}), t);
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
}), Ct = C({
|
|
735
|
+
InputComp: Ze,
|
|
622
736
|
valueType: "text",
|
|
623
737
|
name: "PFromText"
|
|
624
|
-
}),
|
|
625
|
-
InputComp:
|
|
738
|
+
}), kt = C({
|
|
739
|
+
InputComp: B,
|
|
626
740
|
valueType: "digit",
|
|
627
741
|
name: "PFormNumber"
|
|
628
|
-
}),
|
|
629
|
-
InputComp:
|
|
742
|
+
}), Ft = C({
|
|
743
|
+
InputComp: pt,
|
|
744
|
+
valueType: "digitRange",
|
|
745
|
+
name: "PFormNumberRange"
|
|
746
|
+
}), xt = C({
|
|
747
|
+
InputComp: He,
|
|
630
748
|
valueType: "date",
|
|
631
749
|
name: "PFormDate"
|
|
632
|
-
}),
|
|
633
|
-
InputComp:
|
|
750
|
+
}), Et = C({
|
|
751
|
+
InputComp: Je,
|
|
634
752
|
valueType: "time",
|
|
635
753
|
name: "PFormTime"
|
|
636
|
-
}),
|
|
637
|
-
InputComp:
|
|
754
|
+
}), Tt = C({
|
|
755
|
+
InputComp: ht,
|
|
638
756
|
valueType: "select",
|
|
639
757
|
name: "PFormSelect"
|
|
640
|
-
}),
|
|
641
|
-
InputComp:
|
|
758
|
+
}), Kt = C({
|
|
759
|
+
InputComp: Qe,
|
|
642
760
|
valueType: "treeSelect",
|
|
643
761
|
name: "PFormTreeSelect"
|
|
644
|
-
}),
|
|
645
|
-
InputComp:
|
|
762
|
+
}), It = C({
|
|
763
|
+
InputComp: gt,
|
|
646
764
|
valueType: "checkbox",
|
|
647
765
|
name: "PFromCheckbox"
|
|
648
|
-
}),
|
|
649
|
-
InputComp:
|
|
766
|
+
}), Rt = C({
|
|
767
|
+
InputComp: Pt,
|
|
650
768
|
valueType: "radio",
|
|
651
769
|
name: "PFromRadio"
|
|
652
|
-
}),
|
|
653
|
-
InputComp:
|
|
770
|
+
}), Vt = C({
|
|
771
|
+
InputComp: Xe,
|
|
654
772
|
valueType: "switch",
|
|
655
773
|
name: "PFromSwitch"
|
|
656
|
-
}),
|
|
657
|
-
InputComp:
|
|
774
|
+
}), Mt = C({
|
|
775
|
+
InputComp: Ye,
|
|
658
776
|
valueType: "cascader",
|
|
659
777
|
name: "PFormCascader"
|
|
660
|
-
}),
|
|
778
|
+
}), Be = S({
|
|
661
779
|
props: {
|
|
662
|
-
...
|
|
780
|
+
...i(de.props, "label", "prop"),
|
|
663
781
|
title: {
|
|
664
782
|
type: String
|
|
665
783
|
},
|
|
@@ -676,55 +794,55 @@ const ce = () => ({
|
|
|
676
794
|
setup: (e, {
|
|
677
795
|
slots: t
|
|
678
796
|
}) => {
|
|
679
|
-
const
|
|
680
|
-
row:
|
|
681
|
-
column:
|
|
682
|
-
$index:
|
|
797
|
+
const u = ({
|
|
798
|
+
row: n,
|
|
799
|
+
column: o,
|
|
800
|
+
$index: d
|
|
683
801
|
}) => {
|
|
684
|
-
var
|
|
685
|
-
const
|
|
686
|
-
...
|
|
687
|
-
title:
|
|
688
|
-
dataIndex:
|
|
689
|
-
},
|
|
690
|
-
value:
|
|
691
|
-
text:
|
|
692
|
-
record:
|
|
693
|
-
column:
|
|
694
|
-
index:
|
|
695
|
-
},
|
|
696
|
-
return
|
|
697
|
-
},
|
|
802
|
+
var P;
|
|
803
|
+
const l = n, b = d, g = {
|
|
804
|
+
...o,
|
|
805
|
+
title: o.label,
|
|
806
|
+
dataIndex: o.property
|
|
807
|
+
}, f = T(n, g.dataIndex), p = {
|
|
808
|
+
value: f,
|
|
809
|
+
text: f,
|
|
810
|
+
record: l,
|
|
811
|
+
column: g,
|
|
812
|
+
index: b
|
|
813
|
+
}, v = (P = t.bodyCell) == null ? void 0 : P.call(t, p);
|
|
814
|
+
return v || (e.customRender ? e.customRender(p) : f);
|
|
815
|
+
}, r = {
|
|
698
816
|
header: ({
|
|
699
|
-
column:
|
|
700
|
-
$index:
|
|
817
|
+
column: n,
|
|
818
|
+
$index: o
|
|
701
819
|
}) => {
|
|
702
|
-
var
|
|
703
|
-
const
|
|
704
|
-
...
|
|
705
|
-
title:
|
|
706
|
-
dataIndex:
|
|
820
|
+
var f;
|
|
821
|
+
const d = o, l = n.label, b = {
|
|
822
|
+
...n,
|
|
823
|
+
title: l,
|
|
824
|
+
dataIndex: n.property
|
|
707
825
|
};
|
|
708
|
-
return ((
|
|
709
|
-
title:
|
|
710
|
-
column:
|
|
711
|
-
index:
|
|
712
|
-
})) ||
|
|
826
|
+
return ((f = t.headerCell) == null ? void 0 : f.call(t, {
|
|
827
|
+
title: l,
|
|
828
|
+
column: b,
|
|
829
|
+
index: d
|
|
830
|
+
})) || l;
|
|
713
831
|
}
|
|
714
832
|
};
|
|
715
|
-
return (!e.children ||
|
|
833
|
+
return (!e.children || A(e.children) <= 0) && (r.default = u), () => c(de, m(i(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
716
834
|
prop: e.dataIndex,
|
|
717
835
|
label: e.title
|
|
718
836
|
}), {
|
|
719
|
-
default: () => [
|
|
720
|
-
key:
|
|
721
|
-
},
|
|
722
|
-
...
|
|
837
|
+
default: () => [A(e.children) > 0 && k(e.children, (n) => c(Be, m({
|
|
838
|
+
key: n.dataIndex
|
|
839
|
+
}, n), t))],
|
|
840
|
+
...r
|
|
723
841
|
});
|
|
724
842
|
}
|
|
725
|
-
}),
|
|
843
|
+
}), Bt = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Ne = S({
|
|
726
844
|
props: {
|
|
727
|
-
...
|
|
845
|
+
...ie.props,
|
|
728
846
|
columns: {
|
|
729
847
|
type: Array
|
|
730
848
|
},
|
|
@@ -737,30 +855,30 @@ const ce = () => ({
|
|
|
737
855
|
},
|
|
738
856
|
setup: (e, {
|
|
739
857
|
slots: t,
|
|
740
|
-
expose:
|
|
858
|
+
expose: u
|
|
741
859
|
}) => {
|
|
742
|
-
const a =
|
|
743
|
-
return
|
|
860
|
+
const a = s(), r = Te("table");
|
|
861
|
+
return u(pe(Bt, a)), () => c(ie, m({
|
|
744
862
|
ref: a,
|
|
745
|
-
id:
|
|
746
|
-
},
|
|
863
|
+
id: r
|
|
864
|
+
}, i(e, "columns", "dataSource", "loading"), {
|
|
747
865
|
data: e.dataSource || e.data
|
|
748
866
|
}), {
|
|
749
867
|
default: () => {
|
|
750
|
-
var
|
|
751
|
-
return [(
|
|
752
|
-
key:
|
|
753
|
-
},
|
|
754
|
-
target:
|
|
868
|
+
var n, o;
|
|
869
|
+
return [(n = t.start) == null ? void 0 : n.call(t), k(e.columns, (d) => c(Be, m({
|
|
870
|
+
key: d.dataIndex
|
|
871
|
+
}, d), t)), (o = t.default) == null ? void 0 : o.call(t), e.loading && c(Ke, {
|
|
872
|
+
target: r,
|
|
755
873
|
loading: !0
|
|
756
874
|
}, null)];
|
|
757
875
|
},
|
|
758
|
-
...
|
|
876
|
+
...G(t, "append", "empty")
|
|
759
877
|
});
|
|
760
878
|
}
|
|
761
|
-
}),
|
|
879
|
+
}), Nt = S({
|
|
762
880
|
props: {
|
|
763
|
-
...
|
|
881
|
+
...M.props,
|
|
764
882
|
type: {
|
|
765
883
|
type: String,
|
|
766
884
|
default: "primary"
|
|
@@ -772,121 +890,125 @@ const ce = () => ({
|
|
|
772
890
|
},
|
|
773
891
|
setup: (e, {
|
|
774
892
|
slots: t
|
|
775
|
-
}) => () =>
|
|
893
|
+
}) => () => c(M, e, t)
|
|
776
894
|
});
|
|
777
|
-
|
|
778
|
-
...
|
|
779
|
-
...
|
|
780
|
-
formMethods: { type: Array, default:
|
|
895
|
+
V.props = {
|
|
896
|
+
...q.props,
|
|
897
|
+
...V.props,
|
|
898
|
+
formMethods: { type: Array, default: Ee }
|
|
781
899
|
};
|
|
782
|
-
|
|
783
|
-
...
|
|
784
|
-
...
|
|
900
|
+
w.props = {
|
|
901
|
+
...V.props,
|
|
902
|
+
...w.props,
|
|
785
903
|
inline: { type: Boolean, default: !0 }
|
|
786
904
|
};
|
|
787
|
-
|
|
788
|
-
...
|
|
789
|
-
|
|
905
|
+
Z.props = {
|
|
906
|
+
...j.props,
|
|
907
|
+
...Z.props
|
|
790
908
|
};
|
|
791
909
|
D.props = {
|
|
792
|
-
...
|
|
910
|
+
...Ne.props,
|
|
793
911
|
...D.props
|
|
794
912
|
};
|
|
795
|
-
|
|
796
|
-
...
|
|
797
|
-
...
|
|
913
|
+
O.props = {
|
|
914
|
+
...ke.props,
|
|
915
|
+
...O.props
|
|
798
916
|
};
|
|
799
|
-
|
|
800
|
-
...
|
|
801
|
-
...
|
|
802
|
-
};
|
|
803
|
-
W.props = {
|
|
804
|
-
...s.props,
|
|
805
|
-
...W.props
|
|
917
|
+
H.props = {
|
|
918
|
+
...O.props,
|
|
919
|
+
...H.props
|
|
806
920
|
};
|
|
807
|
-
|
|
808
|
-
...
|
|
809
|
-
...
|
|
921
|
+
J.props = {
|
|
922
|
+
...V.props,
|
|
923
|
+
...J.props
|
|
810
924
|
};
|
|
811
|
-
|
|
925
|
+
Q.props = {
|
|
812
926
|
...Ie.props,
|
|
813
|
-
...
|
|
927
|
+
...Q.props
|
|
928
|
+
};
|
|
929
|
+
X.props = {
|
|
930
|
+
...Me.props,
|
|
931
|
+
...X.props,
|
|
814
932
|
modelValue: String
|
|
815
933
|
};
|
|
816
|
-
const
|
|
817
|
-
[
|
|
818
|
-
[
|
|
819
|
-
[
|
|
820
|
-
[
|
|
821
|
-
[
|
|
822
|
-
[
|
|
823
|
-
[
|
|
824
|
-
[
|
|
825
|
-
[
|
|
826
|
-
[
|
|
827
|
-
[
|
|
828
|
-
[
|
|
829
|
-
[
|
|
830
|
-
[
|
|
831
|
-
[
|
|
832
|
-
[
|
|
833
|
-
[
|
|
834
|
-
[
|
|
835
|
-
[
|
|
836
|
-
[
|
|
837
|
-
[
|
|
838
|
-
text:
|
|
839
|
-
digit:
|
|
840
|
-
date:
|
|
841
|
-
time:
|
|
842
|
-
select:
|
|
843
|
-
radio:
|
|
844
|
-
checkbox:
|
|
845
|
-
treeSelect:
|
|
846
|
-
cascader:
|
|
847
|
-
},
|
|
848
|
-
text:
|
|
849
|
-
digit:
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
934
|
+
const jt = {
|
|
935
|
+
[y.LoadingKey]: Ke,
|
|
936
|
+
[y.RowKey]: _e,
|
|
937
|
+
[y.ColKey]: et,
|
|
938
|
+
[y.ButtonKey]: M,
|
|
939
|
+
[y.DescriptionsKey]: ke,
|
|
940
|
+
[y.DescriptionsItemKey]: tt,
|
|
941
|
+
[y.MenusKey]: St,
|
|
942
|
+
[y.ModalKey]: Ie,
|
|
943
|
+
[y.PaginationKey]: vt,
|
|
944
|
+
[y.PopoverKey]: bt,
|
|
945
|
+
[y.CheckboxKey]: Ce,
|
|
946
|
+
[y.FormKey]: ft,
|
|
947
|
+
[y.FormItemKey]: xe,
|
|
948
|
+
[y.TableKey]: Ne,
|
|
949
|
+
[y.TableOperateKey]: Nt,
|
|
950
|
+
[y.UploaderKey]: Me,
|
|
951
|
+
[y.ProFormKey]: V,
|
|
952
|
+
[y.ProSearchFormKey]: w,
|
|
953
|
+
[y.ProTableKey]: D,
|
|
954
|
+
[y.ProCurdKey]: Ae,
|
|
955
|
+
[y.ProListKey]: Ue,
|
|
956
|
+
text: Y,
|
|
957
|
+
digit: Le,
|
|
958
|
+
date: we,
|
|
959
|
+
time: Y,
|
|
960
|
+
select: L,
|
|
961
|
+
radio: L,
|
|
962
|
+
checkbox: L,
|
|
963
|
+
treeSelect: _,
|
|
964
|
+
cascader: _
|
|
965
|
+
}, qt = {
|
|
966
|
+
text: Ct,
|
|
967
|
+
digit: kt,
|
|
968
|
+
digitRange: Ft,
|
|
969
|
+
date: xt,
|
|
970
|
+
time: Et,
|
|
971
|
+
select: Tt,
|
|
972
|
+
treeSelect: Kt,
|
|
973
|
+
checkbox: It,
|
|
974
|
+
radio: Rt,
|
|
975
|
+
switch: Vt,
|
|
976
|
+
cascader: Mt
|
|
858
977
|
};
|
|
859
978
|
export {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
Ct as
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
vt as
|
|
880
|
-
bt as
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
979
|
+
Ee as FormMethods,
|
|
980
|
+
pt as InputNumberRange,
|
|
981
|
+
gt as ProCheckbox,
|
|
982
|
+
ft as ProForm,
|
|
983
|
+
Mt as ProFormCascader,
|
|
984
|
+
It as ProFormCheckbox,
|
|
985
|
+
xt as ProFormDatePicker,
|
|
986
|
+
Ft as ProFormInputNumberRange,
|
|
987
|
+
xe as ProFormItem,
|
|
988
|
+
Rt as ProFormRadio,
|
|
989
|
+
Tt as ProFormSelect,
|
|
990
|
+
Vt as ProFormSwitch,
|
|
991
|
+
Ct as ProFormText,
|
|
992
|
+
kt as ProFormTextNumber,
|
|
993
|
+
Et as ProFormTimePicker,
|
|
994
|
+
Kt as ProFormTreeSelect,
|
|
995
|
+
Ke as ProLoading,
|
|
996
|
+
St as ProMenus,
|
|
997
|
+
Ie as ProModal,
|
|
998
|
+
vt as ProPagination,
|
|
999
|
+
bt as ProPopover,
|
|
1000
|
+
Pt as ProRadio,
|
|
1001
|
+
ht as ProSelect,
|
|
1002
|
+
Ne as ProTable,
|
|
1003
|
+
Be as ProTableColumn,
|
|
1004
|
+
Nt as ProTableOperateItem,
|
|
1005
|
+
Dt as ProTabs,
|
|
1006
|
+
Ot as ProTree,
|
|
1007
|
+
Me as ProUploader,
|
|
1008
|
+
Bt as TableMethods,
|
|
1009
|
+
st as UploadMethods,
|
|
888
1010
|
C as createFormItemComponent,
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
1011
|
+
Te as createLoadingId,
|
|
1012
|
+
jt as elementMap,
|
|
1013
|
+
qt as formElementMap
|
|
892
1014
|
};
|