@vue-start/element-pro 0.2.17 → 0.2.20
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.d.ts +271 -59
- package/dist/index.es.js +549 -429
- package/dist/index.js +1 -1
- package/package.json +2 -2
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 u =
|
|
19
|
-
return () => c(
|
|
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
|
|
@@ -33,27 +33,27 @@ const ce = () => ({
|
|
|
33
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
55
|
disabled: u
|
|
56
|
-
})),
|
|
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 u =
|
|
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(u) : e.target &&
|
|
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
111
|
}, () => e.loading), () => t.default ? c("div", {
|
|
112
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,47 +144,47 @@ const ce = () => ({
|
|
|
144
144
|
type: [Object, Boolean],
|
|
145
145
|
default: void 0
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), Ie = S({
|
|
148
148
|
inheritAttrs: !1,
|
|
149
149
|
props: {
|
|
150
|
-
...
|
|
150
|
+
...ee.props,
|
|
151
151
|
appendToBody: {
|
|
152
152
|
type: Boolean,
|
|
153
153
|
default: !0
|
|
154
154
|
},
|
|
155
|
-
...
|
|
155
|
+
...ye()
|
|
156
156
|
},
|
|
157
157
|
setup: (e, {
|
|
158
158
|
slots: t,
|
|
159
159
|
emit: u,
|
|
160
160
|
attrs: a
|
|
161
161
|
}) => {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
const r = s(e.visible);
|
|
163
|
+
I(() => {
|
|
164
|
+
r.value !== e.visible && (r.value = e.visible);
|
|
165
165
|
}, () => e.visible);
|
|
166
|
-
const
|
|
167
|
-
var
|
|
168
|
-
if ((
|
|
166
|
+
const n = () => {
|
|
167
|
+
var l;
|
|
168
|
+
if ((l = e.cancelButtonProps) != null && l.onClick) {
|
|
169
169
|
e.cancelButtonProps.onClick();
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
},
|
|
174
|
-
var
|
|
175
|
-
if ((
|
|
172
|
+
r.value = !1, u("update:visible", !1);
|
|
173
|
+
}, o = () => {
|
|
174
|
+
var l;
|
|
175
|
+
if ((l = e.okButtonProps) != null && l.onClick) {
|
|
176
176
|
e.okButtonProps.onClick();
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
u("ok");
|
|
180
|
-
},
|
|
181
|
-
return () => c(
|
|
180
|
+
}, d = F(ye());
|
|
181
|
+
return () => c(ee, m({
|
|
182
182
|
class: e.clsName
|
|
183
|
-
},
|
|
184
|
-
closeOnClickModal:
|
|
185
|
-
modelValue:
|
|
186
|
-
"onUpdate:modelValue": [(
|
|
187
|
-
u("update:visible",
|
|
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);
|
|
188
188
|
}],
|
|
189
189
|
onClose: () => {
|
|
190
190
|
u("cancel");
|
|
@@ -192,24 +192,24 @@ const ce = () => ({
|
|
|
192
192
|
}), {
|
|
193
193
|
footer: e.footer === !1 ? void 0 : () => c("div", {
|
|
194
194
|
class: `${e.clsName}-operate`
|
|
195
|
-
}, [c(
|
|
196
|
-
onClick:
|
|
195
|
+
}, [c(M, m(i(e.cancelButtonProps, "onClick"), {
|
|
196
|
+
onClick: n
|
|
197
197
|
}), {
|
|
198
198
|
default: () => [e.cancelText]
|
|
199
|
-
}), c(
|
|
199
|
+
}), c(M, m({
|
|
200
200
|
type: "primary",
|
|
201
201
|
loading: e.confirmLoading
|
|
202
|
-
},
|
|
203
|
-
onClick:
|
|
202
|
+
}, i(e.okButtonProps, "onClick"), {
|
|
203
|
+
onClick: o
|
|
204
204
|
}), {
|
|
205
205
|
default: () => [e.okText]
|
|
206
206
|
})]),
|
|
207
207
|
...t
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
210
|
+
}), vt = S({
|
|
211
211
|
props: {
|
|
212
|
-
...
|
|
212
|
+
...te.props,
|
|
213
213
|
page: {
|
|
214
214
|
type: Number,
|
|
215
215
|
default: 1
|
|
@@ -219,39 +219,39 @@ const ce = () => ({
|
|
|
219
219
|
slots: t,
|
|
220
220
|
emit: u
|
|
221
221
|
}) => {
|
|
222
|
-
const a =
|
|
223
|
-
|
|
222
|
+
const a = s(e.page), r = s(e.pageSize);
|
|
223
|
+
I(() => {
|
|
224
224
|
a.value !== e.page && (a.value = e.page);
|
|
225
|
-
}, () => e.page),
|
|
226
|
-
|
|
225
|
+
}, () => e.page), I(() => {
|
|
226
|
+
r.value !== e.pageSize && (r.value = e.pageSize);
|
|
227
227
|
}, () => e.pageSize);
|
|
228
|
-
const
|
|
229
|
-
u("composeChange", a.value,
|
|
230
|
-
}, 300),
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
|
|
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);
|
|
234
234
|
};
|
|
235
|
-
return () => c(
|
|
235
|
+
return () => c(te, m({
|
|
236
236
|
currentPage: a.value,
|
|
237
|
-
"onUpdate:currentPage": (
|
|
238
|
-
pageSize:
|
|
239
|
-
"onUpdate:pageSize": (
|
|
240
|
-
onCurrentChange:
|
|
241
|
-
onSizeChange:
|
|
242
|
-
},
|
|
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);
|
|
243
243
|
}
|
|
244
|
-
}),
|
|
244
|
+
}), bt = S({
|
|
245
245
|
props: {
|
|
246
|
-
...
|
|
246
|
+
...ae.props
|
|
247
247
|
},
|
|
248
248
|
setup: (e, {
|
|
249
249
|
slots: t
|
|
250
|
-
}) => () => c(
|
|
250
|
+
}) => () => c(ae, e, {
|
|
251
251
|
reference: t.default,
|
|
252
252
|
default: t.content
|
|
253
253
|
})
|
|
254
|
-
}),
|
|
254
|
+
}), ve = () => ({
|
|
255
255
|
options: Array,
|
|
256
256
|
buttonStyle: {
|
|
257
257
|
type: String,
|
|
@@ -261,49 +261,49 @@ const ce = () => ({
|
|
|
261
261
|
type: String,
|
|
262
262
|
default: "default"
|
|
263
263
|
}
|
|
264
|
-
}),
|
|
264
|
+
}), gt = S({
|
|
265
265
|
props: {
|
|
266
|
-
...
|
|
267
|
-
...
|
|
266
|
+
...ne.props,
|
|
267
|
+
...ve()
|
|
268
268
|
},
|
|
269
269
|
setup: (e, {
|
|
270
270
|
slots: t,
|
|
271
271
|
emit: u,
|
|
272
272
|
expose: a
|
|
273
273
|
}) => {
|
|
274
|
-
const
|
|
275
|
-
a(
|
|
276
|
-
const
|
|
277
|
-
return () => c(
|
|
278
|
-
ref:
|
|
279
|
-
},
|
|
280
|
-
"onUpdate:modelValue": (
|
|
281
|
-
u("update:modelValue",
|
|
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);
|
|
282
282
|
}
|
|
283
283
|
}), {
|
|
284
284
|
default: () => {
|
|
285
|
-
var
|
|
286
|
-
return [(
|
|
287
|
-
var
|
|
288
|
-
const
|
|
289
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
290
|
-
key:
|
|
291
|
-
},
|
|
292
|
-
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
|
|
293
293
|
}), {
|
|
294
|
-
default: () => [
|
|
295
|
-
}) : c(
|
|
296
|
-
key:
|
|
297
|
-
},
|
|
298
|
-
label:
|
|
294
|
+
default: () => [b || l.label]
|
|
295
|
+
}) : c(Ce, m({
|
|
296
|
+
key: l.value
|
|
297
|
+
}, l, {
|
|
298
|
+
label: l.value
|
|
299
299
|
}), {
|
|
300
|
-
default: () => [
|
|
300
|
+
default: () => [b || l.label]
|
|
301
301
|
});
|
|
302
|
-
}), (
|
|
302
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), be = () => ({
|
|
307
307
|
options: {
|
|
308
308
|
type: Array
|
|
309
309
|
},
|
|
@@ -315,88 +315,88 @@ const ce = () => ({
|
|
|
315
315
|
type: String,
|
|
316
316
|
default: "default"
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), Pt = S({
|
|
319
319
|
props: {
|
|
320
|
-
...
|
|
321
|
-
...
|
|
320
|
+
...le.props,
|
|
321
|
+
...be()
|
|
322
322
|
},
|
|
323
323
|
setup: (e, {
|
|
324
324
|
slots: t,
|
|
325
325
|
emit: u,
|
|
326
326
|
expose: a
|
|
327
327
|
}) => {
|
|
328
|
-
const
|
|
329
|
-
a(
|
|
330
|
-
const
|
|
331
|
-
return () => c(
|
|
332
|
-
ref:
|
|
333
|
-
},
|
|
334
|
-
"onUpdate:modelValue": (
|
|
335
|
-
u("update:modelValue",
|
|
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);
|
|
336
336
|
}
|
|
337
337
|
}), {
|
|
338
338
|
default: () => {
|
|
339
|
-
var
|
|
340
|
-
return [(
|
|
341
|
-
var
|
|
342
|
-
const
|
|
343
|
-
return e.optionType === "button" || e.buttonStyle === "button" ? c(
|
|
344
|
-
key:
|
|
345
|
-
},
|
|
346
|
-
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
|
|
347
347
|
}), {
|
|
348
|
-
default: () => [
|
|
349
|
-
}) : c(
|
|
350
|
-
key:
|
|
351
|
-
},
|
|
352
|
-
label:
|
|
348
|
+
default: () => [b || l.label]
|
|
349
|
+
}) : c(qe, m({
|
|
350
|
+
key: l.value
|
|
351
|
+
}, i(l, "value"), {
|
|
352
|
+
label: l.value
|
|
353
353
|
}), {
|
|
354
|
-
default: () => [
|
|
354
|
+
default: () => [b || l.label]
|
|
355
355
|
});
|
|
356
|
-
}), (
|
|
356
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
|
-
}),
|
|
360
|
+
}), ge = () => ({
|
|
361
361
|
options: Array
|
|
362
|
-
}),
|
|
362
|
+
}), ht = S({
|
|
363
363
|
props: {
|
|
364
|
-
...
|
|
365
|
-
...
|
|
364
|
+
...re.props,
|
|
365
|
+
...ge()
|
|
366
366
|
},
|
|
367
367
|
setup: (e, {
|
|
368
368
|
slots: t,
|
|
369
369
|
emit: u,
|
|
370
370
|
expose: a
|
|
371
371
|
}) => {
|
|
372
|
-
const
|
|
373
|
-
a(
|
|
374
|
-
const
|
|
375
|
-
return () => c(
|
|
376
|
-
ref:
|
|
377
|
-
},
|
|
378
|
-
"onUpdate:modelValue": (
|
|
379
|
-
u("update:modelValue",
|
|
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);
|
|
380
380
|
}
|
|
381
381
|
}), {
|
|
382
382
|
default: () => {
|
|
383
|
-
var
|
|
384
|
-
return [(
|
|
385
|
-
var
|
|
386
|
-
const
|
|
387
|
-
return c(
|
|
388
|
-
key:
|
|
389
|
-
},
|
|
390
|
-
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]
|
|
391
391
|
});
|
|
392
|
-
}), (
|
|
392
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
393
393
|
},
|
|
394
|
-
...
|
|
394
|
+
...i(t, "default")
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
}),
|
|
397
|
+
}), Dt = S({
|
|
398
398
|
props: {
|
|
399
|
-
...
|
|
399
|
+
...oe.props,
|
|
400
400
|
options: {
|
|
401
401
|
type: Array
|
|
402
402
|
}
|
|
@@ -404,26 +404,26 @@ const ce = () => ({
|
|
|
404
404
|
setup: (e, {
|
|
405
405
|
slots: t,
|
|
406
406
|
emit: u
|
|
407
|
-
}) => () => c(
|
|
407
|
+
}) => () => c(oe, m(i(e, "options"), {
|
|
408
408
|
"onUpdate:modelValue": (a) => {
|
|
409
409
|
u("update:modelValue", a);
|
|
410
410
|
}
|
|
411
411
|
}), {
|
|
412
412
|
default: () => {
|
|
413
|
-
var a,
|
|
414
|
-
return [(a = t.start) == null ? void 0 : a.call(t),
|
|
415
|
-
key:
|
|
416
|
-
},
|
|
417
|
-
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
|
|
418
418
|
}), {
|
|
419
419
|
label: () => {
|
|
420
|
-
var
|
|
421
|
-
return ((
|
|
420
|
+
var o;
|
|
421
|
+
return ((o = t.label) == null ? void 0 : o.call(t, n)) || n.label;
|
|
422
422
|
}
|
|
423
|
-
})), (
|
|
423
|
+
})), (r = t.default) == null ? void 0 : r.call(t)];
|
|
424
424
|
}
|
|
425
425
|
})
|
|
426
|
-
}),
|
|
426
|
+
}), W = {
|
|
427
427
|
convertSubMenuProps: {
|
|
428
428
|
type: Function
|
|
429
429
|
},
|
|
@@ -433,13 +433,13 @@ const ce = () => ({
|
|
|
433
433
|
onMenuItemClick: {
|
|
434
434
|
type: Function
|
|
435
435
|
}
|
|
436
|
-
},
|
|
436
|
+
}, Re = F(W), Ve = S({
|
|
437
437
|
inheritAttrs: !1,
|
|
438
438
|
props: {
|
|
439
439
|
menu: {
|
|
440
440
|
type: Object
|
|
441
441
|
},
|
|
442
|
-
...
|
|
442
|
+
...W
|
|
443
443
|
},
|
|
444
444
|
setup: (e, {
|
|
445
445
|
slots: t
|
|
@@ -449,31 +449,31 @@ const ce = () => ({
|
|
|
449
449
|
(a = e.onMenuItemClick) == null || a.call(e, e.menu);
|
|
450
450
|
};
|
|
451
451
|
return () => {
|
|
452
|
-
var
|
|
452
|
+
var r, n;
|
|
453
453
|
const a = e.menu;
|
|
454
|
-
return (a == null ? void 0 : a.children) &&
|
|
454
|
+
return (a == null ? void 0 : a.children) && A(a.children) > 0 ? c(N.SubMenu, m({
|
|
455
455
|
index: a == null ? void 0 : a.value
|
|
456
|
-
}, (
|
|
457
|
-
default: () => [
|
|
458
|
-
menu:
|
|
459
|
-
},
|
|
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))],
|
|
460
460
|
title: () => {
|
|
461
|
-
var
|
|
462
|
-
return ((
|
|
461
|
+
var o;
|
|
462
|
+
return ((o = t.title) == null ? void 0 : o.call(t, a)) || (a == null ? void 0 : a.label);
|
|
463
463
|
}
|
|
464
|
-
}) : c(
|
|
464
|
+
}) : c(N.MenuItem, m({
|
|
465
465
|
index: a == null ? void 0 : a.value
|
|
466
|
-
}, (
|
|
466
|
+
}, (n = e.convertMenuItemProps) == null ? void 0 : n.call(e, a), {
|
|
467
467
|
onClick: u
|
|
468
468
|
}), {
|
|
469
469
|
title: () => {
|
|
470
|
-
var
|
|
471
|
-
return ((
|
|
470
|
+
var o;
|
|
471
|
+
return ((o = t.title) == null ? void 0 : o.call(t, a)) || (a == null ? void 0 : a.label);
|
|
472
472
|
}
|
|
473
473
|
});
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
}),
|
|
476
|
+
}), Pe = () => ({
|
|
477
477
|
activeKey: {
|
|
478
478
|
type: String
|
|
479
479
|
},
|
|
@@ -488,43 +488,43 @@ const ce = () => ({
|
|
|
488
488
|
label: "label"
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
|
-
...
|
|
492
|
-
}),
|
|
491
|
+
...W
|
|
492
|
+
}), St = S({
|
|
493
493
|
props: {
|
|
494
|
-
...
|
|
495
|
-
...
|
|
494
|
+
...i(N.props, "defaultActive"),
|
|
495
|
+
...Pe()
|
|
496
496
|
},
|
|
497
497
|
setup: (e, {
|
|
498
498
|
slots: t
|
|
499
499
|
}) => {
|
|
500
|
-
const u =
|
|
501
|
-
|
|
500
|
+
const u = s(e.activeKey);
|
|
501
|
+
I(() => {
|
|
502
502
|
e.activeKey !== u.value && (u.value = e.activeKey);
|
|
503
503
|
}, () => e.activeKey);
|
|
504
|
-
const a =
|
|
505
|
-
var
|
|
506
|
-
return
|
|
507
|
-
var
|
|
508
|
-
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";
|
|
509
509
|
return {
|
|
510
|
-
...
|
|
511
|
-
value:
|
|
512
|
-
label:
|
|
510
|
+
...i(o, d, l),
|
|
511
|
+
value: T(o, d),
|
|
512
|
+
label: T(o, l)
|
|
513
513
|
};
|
|
514
514
|
}, {
|
|
515
|
-
children: ((
|
|
515
|
+
children: ((n = e.fieldNames) == null ? void 0 : n.children) || "children",
|
|
516
516
|
childrenName: "children"
|
|
517
517
|
});
|
|
518
|
-
}),
|
|
519
|
-
return () => c(
|
|
518
|
+
}), r = F(Pe());
|
|
519
|
+
return () => c(N, m({
|
|
520
520
|
defaultActive: u.value
|
|
521
|
-
},
|
|
522
|
-
default: () => c(
|
|
523
|
-
menu:
|
|
524
|
-
},
|
|
521
|
+
}, i(e, r)), {
|
|
522
|
+
default: () => c(lt, null, [k(a.value, (n) => c(Ve, m({
|
|
523
|
+
menu: n
|
|
524
|
+
}, G(e, Re)), t))])
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
}),
|
|
527
|
+
}), he = () => ({
|
|
528
528
|
modelValue: {
|
|
529
529
|
type: Array,
|
|
530
530
|
default: void 0
|
|
@@ -547,121 +547,237 @@ const ce = () => ({
|
|
|
547
547
|
beforeUpload: {
|
|
548
548
|
type: Function
|
|
549
549
|
}
|
|
550
|
-
}),
|
|
550
|
+
}), st = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], Me = S({
|
|
551
551
|
props: {
|
|
552
|
-
...
|
|
553
|
-
...
|
|
552
|
+
...i(ue.props, "fileList"),
|
|
553
|
+
...he()
|
|
554
554
|
},
|
|
555
555
|
setup: (e, {
|
|
556
556
|
slots: t,
|
|
557
557
|
expose: u,
|
|
558
558
|
emit: a
|
|
559
559
|
}) => {
|
|
560
|
-
const
|
|
561
|
-
u(
|
|
560
|
+
const r = s();
|
|
561
|
+
u(U(r, st));
|
|
562
562
|
const {
|
|
563
|
-
formItem:
|
|
564
|
-
} =
|
|
565
|
-
var
|
|
566
|
-
return ((
|
|
567
|
-
}) : [],
|
|
568
|
-
let
|
|
569
|
-
const
|
|
570
|
-
var
|
|
571
|
-
|
|
572
|
-
const
|
|
573
|
-
a("update:modelValue",
|
|
574
|
-
var
|
|
575
|
-
return ((
|
|
576
|
-
})), (
|
|
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");
|
|
577
577
|
};
|
|
578
|
-
|
|
579
|
-
|
|
578
|
+
I(() => {
|
|
579
|
+
l || (d.value = o(), l = !1);
|
|
580
580
|
}, () => e.modelValue);
|
|
581
|
-
const
|
|
582
|
-
var
|
|
581
|
+
const g = (v) => {
|
|
582
|
+
var P, h, x, E;
|
|
583
583
|
if (e.beforeUpload)
|
|
584
|
-
return e.beforeUpload(
|
|
585
|
-
if (e.accept && !
|
|
586
|
-
return (
|
|
587
|
-
if (
|
|
588
|
-
if (
|
|
589
|
-
return (
|
|
590
|
-
if (
|
|
591
|
-
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;
|
|
592
592
|
}
|
|
593
|
-
return (
|
|
594
|
-
},
|
|
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());
|
|
595
595
|
return () => {
|
|
596
|
-
var
|
|
596
|
+
var v, P;
|
|
597
597
|
return c("div", {
|
|
598
|
-
class: `pro-uploader ${
|
|
599
|
-
}, [(
|
|
600
|
-
ref:
|
|
601
|
-
fileList:
|
|
602
|
-
"onUpdate:fileList": (
|
|
603
|
-
},
|
|
604
|
-
beforeUpload:
|
|
605
|
-
onSuccess: (
|
|
606
|
-
var
|
|
607
|
-
(
|
|
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();
|
|
608
608
|
},
|
|
609
|
-
onRemove: (
|
|
610
|
-
var
|
|
611
|
-
|
|
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();
|
|
612
612
|
}
|
|
613
613
|
}), {
|
|
614
614
|
default: () => {
|
|
615
|
-
var
|
|
616
|
-
return [
|
|
615
|
+
var h;
|
|
616
|
+
return [f.value && ((h = t.default) == null ? void 0 : h.call(t))];
|
|
617
617
|
},
|
|
618
|
-
...
|
|
619
|
-
}), (
|
|
618
|
+
...i(t, "default")
|
|
619
|
+
}), (P = t.end) == null ? void 0 : P.call(t)]);
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
}),
|
|
623
|
-
|
|
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,
|
|
624
736
|
valueType: "text",
|
|
625
737
|
name: "PFromText"
|
|
626
|
-
}),
|
|
627
|
-
InputComp:
|
|
738
|
+
}), kt = C({
|
|
739
|
+
InputComp: B,
|
|
628
740
|
valueType: "digit",
|
|
629
741
|
name: "PFormNumber"
|
|
630
|
-
}),
|
|
631
|
-
InputComp:
|
|
742
|
+
}), Ft = C({
|
|
743
|
+
InputComp: pt,
|
|
744
|
+
valueType: "digitRange",
|
|
745
|
+
name: "PFormNumberRange"
|
|
746
|
+
}), xt = C({
|
|
747
|
+
InputComp: He,
|
|
632
748
|
valueType: "date",
|
|
633
749
|
name: "PFormDate"
|
|
634
|
-
}),
|
|
635
|
-
InputComp:
|
|
750
|
+
}), Et = C({
|
|
751
|
+
InputComp: Je,
|
|
636
752
|
valueType: "time",
|
|
637
753
|
name: "PFormTime"
|
|
638
|
-
}),
|
|
639
|
-
InputComp:
|
|
754
|
+
}), Tt = C({
|
|
755
|
+
InputComp: ht,
|
|
640
756
|
valueType: "select",
|
|
641
757
|
name: "PFormSelect"
|
|
642
|
-
}),
|
|
643
|
-
InputComp:
|
|
758
|
+
}), Kt = C({
|
|
759
|
+
InputComp: Qe,
|
|
644
760
|
valueType: "treeSelect",
|
|
645
761
|
name: "PFormTreeSelect"
|
|
646
|
-
}),
|
|
647
|
-
InputComp:
|
|
762
|
+
}), It = C({
|
|
763
|
+
InputComp: gt,
|
|
648
764
|
valueType: "checkbox",
|
|
649
765
|
name: "PFromCheckbox"
|
|
650
|
-
}),
|
|
651
|
-
InputComp:
|
|
766
|
+
}), Rt = C({
|
|
767
|
+
InputComp: Pt,
|
|
652
768
|
valueType: "radio",
|
|
653
769
|
name: "PFromRadio"
|
|
654
|
-
}),
|
|
655
|
-
InputComp:
|
|
770
|
+
}), Vt = C({
|
|
771
|
+
InputComp: Xe,
|
|
656
772
|
valueType: "switch",
|
|
657
773
|
name: "PFromSwitch"
|
|
658
|
-
}),
|
|
659
|
-
InputComp:
|
|
774
|
+
}), Mt = C({
|
|
775
|
+
InputComp: Ye,
|
|
660
776
|
valueType: "cascader",
|
|
661
777
|
name: "PFormCascader"
|
|
662
|
-
}),
|
|
778
|
+
}), Be = S({
|
|
663
779
|
props: {
|
|
664
|
-
...
|
|
780
|
+
...i(de.props, "label", "prop"),
|
|
665
781
|
title: {
|
|
666
782
|
type: String
|
|
667
783
|
},
|
|
@@ -679,54 +795,54 @@ const ce = () => ({
|
|
|
679
795
|
slots: t
|
|
680
796
|
}) => {
|
|
681
797
|
const u = ({
|
|
682
|
-
row:
|
|
683
|
-
column:
|
|
684
|
-
$index:
|
|
798
|
+
row: n,
|
|
799
|
+
column: o,
|
|
800
|
+
$index: d
|
|
685
801
|
}) => {
|
|
686
|
-
var
|
|
687
|
-
const
|
|
688
|
-
...
|
|
689
|
-
title:
|
|
690
|
-
dataIndex:
|
|
691
|
-
},
|
|
692
|
-
value:
|
|
693
|
-
text:
|
|
694
|
-
record:
|
|
695
|
-
column:
|
|
696
|
-
index:
|
|
697
|
-
},
|
|
698
|
-
return
|
|
699
|
-
},
|
|
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 = {
|
|
700
816
|
header: ({
|
|
701
|
-
column:
|
|
702
|
-
$index:
|
|
817
|
+
column: n,
|
|
818
|
+
$index: o
|
|
703
819
|
}) => {
|
|
704
|
-
var
|
|
705
|
-
const
|
|
706
|
-
...
|
|
707
|
-
title:
|
|
708
|
-
dataIndex:
|
|
820
|
+
var f;
|
|
821
|
+
const d = o, l = n.label, b = {
|
|
822
|
+
...n,
|
|
823
|
+
title: l,
|
|
824
|
+
dataIndex: n.property
|
|
709
825
|
};
|
|
710
|
-
return ((
|
|
711
|
-
title:
|
|
712
|
-
column:
|
|
713
|
-
index:
|
|
714
|
-
})) ||
|
|
826
|
+
return ((f = t.headerCell) == null ? void 0 : f.call(t, {
|
|
827
|
+
title: l,
|
|
828
|
+
column: b,
|
|
829
|
+
index: d
|
|
830
|
+
})) || l;
|
|
715
831
|
}
|
|
716
832
|
};
|
|
717
|
-
return (!e.children ||
|
|
833
|
+
return (!e.children || A(e.children) <= 0) && (r.default = u), () => c(de, m(i(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
718
834
|
prop: e.dataIndex,
|
|
719
835
|
label: e.title
|
|
720
836
|
}), {
|
|
721
|
-
default: () => [
|
|
722
|
-
key:
|
|
723
|
-
},
|
|
724
|
-
...
|
|
837
|
+
default: () => [A(e.children) > 0 && k(e.children, (n) => c(Be, m({
|
|
838
|
+
key: n.dataIndex
|
|
839
|
+
}, n), t))],
|
|
840
|
+
...r
|
|
725
841
|
});
|
|
726
842
|
}
|
|
727
|
-
}),
|
|
843
|
+
}), Bt = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Ne = S({
|
|
728
844
|
props: {
|
|
729
|
-
...
|
|
845
|
+
...ie.props,
|
|
730
846
|
columns: {
|
|
731
847
|
type: Array
|
|
732
848
|
},
|
|
@@ -741,28 +857,28 @@ const ce = () => ({
|
|
|
741
857
|
slots: t,
|
|
742
858
|
expose: u
|
|
743
859
|
}) => {
|
|
744
|
-
const a =
|
|
745
|
-
return u(
|
|
860
|
+
const a = s(), r = Te("table");
|
|
861
|
+
return u(pe(Bt, a)), () => c(ie, m({
|
|
746
862
|
ref: a,
|
|
747
|
-
id:
|
|
748
|
-
},
|
|
863
|
+
id: r
|
|
864
|
+
}, i(e, "columns", "dataSource", "loading"), {
|
|
749
865
|
data: e.dataSource || e.data
|
|
750
866
|
}), {
|
|
751
867
|
default: () => {
|
|
752
|
-
var
|
|
753
|
-
return [(
|
|
754
|
-
key:
|
|
755
|
-
},
|
|
756
|
-
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,
|
|
757
873
|
loading: !0
|
|
758
874
|
}, null)];
|
|
759
875
|
},
|
|
760
|
-
...
|
|
876
|
+
...G(t, "append", "empty")
|
|
761
877
|
});
|
|
762
878
|
}
|
|
763
|
-
}),
|
|
879
|
+
}), Nt = S({
|
|
764
880
|
props: {
|
|
765
|
-
...
|
|
881
|
+
...M.props,
|
|
766
882
|
type: {
|
|
767
883
|
type: String,
|
|
768
884
|
default: "primary"
|
|
@@ -774,121 +890,125 @@ const ce = () => ({
|
|
|
774
890
|
},
|
|
775
891
|
setup: (e, {
|
|
776
892
|
slots: t
|
|
777
|
-
}) => () => c(
|
|
893
|
+
}) => () => c(M, e, t)
|
|
778
894
|
});
|
|
779
|
-
|
|
780
|
-
...
|
|
781
|
-
...
|
|
782
|
-
formMethods: { type: Array, default:
|
|
783
|
-
};
|
|
784
|
-
A.props = {
|
|
785
|
-
...s.props,
|
|
786
|
-
...A.props,
|
|
787
|
-
inline: { type: Boolean, default: !0 }
|
|
788
|
-
};
|
|
789
|
-
$.props = {
|
|
790
|
-
...D.props,
|
|
791
|
-
...$.props
|
|
792
|
-
};
|
|
793
|
-
L.props = {
|
|
794
|
-
...Re.props,
|
|
795
|
-
...L.props
|
|
895
|
+
V.props = {
|
|
896
|
+
...q.props,
|
|
897
|
+
...V.props,
|
|
898
|
+
formMethods: { type: Array, default: Ee }
|
|
796
899
|
};
|
|
797
900
|
w.props = {
|
|
798
|
-
...
|
|
799
|
-
...w.props
|
|
800
|
-
};
|
|
801
|
-
G.props = {
|
|
901
|
+
...V.props,
|
|
802
902
|
...w.props,
|
|
803
|
-
|
|
804
|
-
};
|
|
805
|
-
W.props = {
|
|
806
|
-
...s.props,
|
|
807
|
-
...W.props
|
|
903
|
+
inline: { type: Boolean, default: !0 }
|
|
808
904
|
};
|
|
809
905
|
Z.props = {
|
|
810
|
-
...
|
|
906
|
+
...j.props,
|
|
811
907
|
...Z.props
|
|
812
908
|
};
|
|
909
|
+
D.props = {
|
|
910
|
+
...Ne.props,
|
|
911
|
+
...D.props
|
|
912
|
+
};
|
|
913
|
+
O.props = {
|
|
914
|
+
...ke.props,
|
|
915
|
+
...O.props
|
|
916
|
+
};
|
|
813
917
|
H.props = {
|
|
918
|
+
...O.props,
|
|
919
|
+
...H.props
|
|
920
|
+
};
|
|
921
|
+
J.props = {
|
|
922
|
+
...V.props,
|
|
923
|
+
...J.props
|
|
924
|
+
};
|
|
925
|
+
Q.props = {
|
|
814
926
|
...Ie.props,
|
|
815
|
-
...
|
|
927
|
+
...Q.props
|
|
928
|
+
};
|
|
929
|
+
X.props = {
|
|
930
|
+
...Me.props,
|
|
931
|
+
...X.props,
|
|
816
932
|
modelValue: String
|
|
817
933
|
};
|
|
818
|
-
const
|
|
819
|
-
[
|
|
820
|
-
[
|
|
821
|
-
[
|
|
822
|
-
[
|
|
823
|
-
[
|
|
824
|
-
[
|
|
825
|
-
[
|
|
826
|
-
[
|
|
827
|
-
[
|
|
828
|
-
[
|
|
829
|
-
[
|
|
830
|
-
[
|
|
831
|
-
[
|
|
832
|
-
[
|
|
833
|
-
[
|
|
834
|
-
[
|
|
835
|
-
[
|
|
836
|
-
[
|
|
837
|
-
[
|
|
838
|
-
[
|
|
839
|
-
[
|
|
840
|
-
text:
|
|
841
|
-
digit:
|
|
842
|
-
date:
|
|
843
|
-
time:
|
|
844
|
-
select:
|
|
845
|
-
radio:
|
|
846
|
-
checkbox:
|
|
847
|
-
treeSelect:
|
|
848
|
-
cascader:
|
|
849
|
-
},
|
|
850
|
-
text:
|
|
851
|
-
digit:
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
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
|
|
860
977
|
};
|
|
861
978
|
export {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
Ct as
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
vt as
|
|
882
|
-
bt as
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
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,
|
|
890
1010
|
C as createFormItemComponent,
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
1011
|
+
Te as createLoadingId,
|
|
1012
|
+
jt as elementMap,
|
|
1013
|
+
qt as formElementMap
|
|
894
1014
|
};
|