@vue-start/element-pro 0.2.10 → 0.2.12
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/LICENSE.md +21 -0
- package/dist/index.d.ts +70 -62
- package/dist/index.es.js +290 -251
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -56
package/dist/index.es.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { createExpose as
|
|
2
|
-
import { ElFormItem as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { keys as S, omit as p, isBoolean as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
const
|
|
1
|
+
import { createExpose as Z, createFormItemCompFn as re, createExposeObj as T, ProForm as C, ProSearchForm as R, ProFormList as B, ProTable as M, ProDesc as k, ProCurdDesc as V, ProCurdForm as A, ProCurdModal as z, ProLayout as L } from "@vue-start/pro";
|
|
2
|
+
import { ElFormItem as s, ElForm as h, ElLoading as oe, ElDialog as j, ElButton as w, ElPagination as N, ElPopover as O, ElCheckboxGroup as U, ElCheckboxButton as le, ElCheckbox as ue, ElRadioGroup as D, ElRadioButton as de, ElRadio as ce, ElSelect as q, ElOption as ie, ElTabs as K, ElTabPane as pe, ElInput as fe, ElInputNumber as me, ElDatePicker as ye, ElTimePicker as be, ElTreeSelect as ge, ElSwitch as ve, ElCascader as Pe, ElTableColumn as $, ElTable as G, ElDescriptions as Se } from "element-plus";
|
|
3
|
+
import { defineComponent as m, createVNode as c, mergeProps as i, reactive as Ce, ref as g, toRaw as ke } from "vue";
|
|
4
|
+
import { keys as S, omit as p, isBoolean as _, isString as se, debounce as he, map as P, size as W, pick as Fe, get as Te } from "lodash";
|
|
5
|
+
import { useEffect as ee, generateId as xe, useWatch as F } from "@vue-start/hooks";
|
|
6
|
+
const H = () => ({
|
|
7
7
|
name: {
|
|
8
8
|
type: [String, Array]
|
|
9
9
|
}
|
|
10
|
-
}),
|
|
10
|
+
}), Ee = m({
|
|
11
11
|
props: {
|
|
12
|
-
...
|
|
13
|
-
...
|
|
12
|
+
...s.props,
|
|
13
|
+
...H()
|
|
14
14
|
},
|
|
15
15
|
setup: (e, {
|
|
16
|
-
slots:
|
|
16
|
+
slots: t
|
|
17
17
|
}) => {
|
|
18
|
-
const u = S(
|
|
19
|
-
return () =>
|
|
18
|
+
const u = S(H());
|
|
19
|
+
return () => c(s, i(p(e, ...u, "name", "prop"), {
|
|
20
20
|
prop: e.prop || e.name
|
|
21
|
-
}),
|
|
21
|
+
}), t);
|
|
22
22
|
}
|
|
23
|
-
}),
|
|
23
|
+
}), te = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], De = m({
|
|
24
24
|
props: {
|
|
25
|
-
...
|
|
25
|
+
...h.props,
|
|
26
26
|
hideRequiredMark: {
|
|
27
27
|
type: [Boolean, Object],
|
|
28
28
|
default: void 0
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup: (e, {
|
|
32
|
-
slots:
|
|
32
|
+
slots: t,
|
|
33
33
|
emit: u,
|
|
34
34
|
expose: o
|
|
35
35
|
}) => {
|
|
36
|
-
const l = e.model ||
|
|
37
|
-
return
|
|
38
|
-
!
|
|
39
|
-
var
|
|
40
|
-
(
|
|
41
|
-
|
|
36
|
+
const l = e.model || Ce({}), n = g();
|
|
37
|
+
return ee(() => {
|
|
38
|
+
!n.value || (n.value.submit = () => {
|
|
39
|
+
var r;
|
|
40
|
+
(r = n.value) == null || r.validate((d, a) => {
|
|
41
|
+
d ? u("finish", ke(l)) : u("finishFailed", a);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
}, []), o(
|
|
45
|
-
ref:
|
|
44
|
+
}, []), o(Z(te, n)), () => c(h, i({
|
|
45
|
+
ref: n
|
|
46
46
|
}, p(e, "model"), {
|
|
47
|
-
hideRequiredAsterisk:
|
|
47
|
+
hideRequiredAsterisk: _(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
48
48
|
model: l
|
|
49
|
-
}),
|
|
49
|
+
}), t);
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), b = re(Ee, (e, t, u) => ({
|
|
52
52
|
modelValue: e,
|
|
53
|
-
"onUpdate:modelValue":
|
|
53
|
+
"onUpdate:modelValue": t,
|
|
54
54
|
clearable: !0,
|
|
55
55
|
disabled: u
|
|
56
|
-
})), ae = (e = "comp") => e + "-" +
|
|
56
|
+
})), ae = (e = "comp") => e + "-" + xe(), Ie = () => ({
|
|
57
57
|
loading: {
|
|
58
58
|
type: Boolean
|
|
59
59
|
},
|
|
@@ -81,21 +81,21 @@ const W = () => ({
|
|
|
81
81
|
customClass: {
|
|
82
82
|
type: String
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
84
|
+
}), Re = m({
|
|
85
85
|
props: {
|
|
86
|
-
...
|
|
86
|
+
...Ie()
|
|
87
87
|
},
|
|
88
88
|
setup: (e, {
|
|
89
|
-
slots:
|
|
89
|
+
slots: t
|
|
90
90
|
}) => {
|
|
91
91
|
const u = ae();
|
|
92
|
-
return
|
|
92
|
+
return ee(() => {
|
|
93
93
|
if (!e.loading)
|
|
94
94
|
return;
|
|
95
95
|
let o = e.target;
|
|
96
|
-
if (
|
|
96
|
+
if (t.default ? o = document.getElementById(u) : e.target && se(e.target) && (o = document.querySelector("#" + e.target)), !o)
|
|
97
97
|
return;
|
|
98
|
-
const l =
|
|
98
|
+
const l = oe.service({
|
|
99
99
|
target: o,
|
|
100
100
|
body: e.body,
|
|
101
101
|
fullscreen: e.fullscreen,
|
|
@@ -108,11 +108,11 @@ const W = () => ({
|
|
|
108
108
|
return () => {
|
|
109
109
|
l && l.close();
|
|
110
110
|
};
|
|
111
|
-
}, () => e.loading), () =>
|
|
111
|
+
}, () => e.loading), () => t.default ? c("div", {
|
|
112
112
|
id: u
|
|
113
|
-
}, [
|
|
113
|
+
}, [t.default()]) : null;
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), J = () => ({
|
|
116
116
|
clsName: {
|
|
117
117
|
type: String,
|
|
118
118
|
default: "pro-modal"
|
|
@@ -144,13 +144,17 @@ const W = () => ({
|
|
|
144
144
|
type: [Object, Boolean],
|
|
145
145
|
default: void 0
|
|
146
146
|
}
|
|
147
|
-
}),
|
|
147
|
+
}), Be = m({
|
|
148
148
|
props: {
|
|
149
|
-
...
|
|
150
|
-
|
|
149
|
+
...j.props,
|
|
150
|
+
appendToBody: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: !0
|
|
153
|
+
},
|
|
154
|
+
...J()
|
|
151
155
|
},
|
|
152
156
|
setup: (e, {
|
|
153
|
-
slots:
|
|
157
|
+
slots: t,
|
|
154
158
|
emit: u
|
|
155
159
|
}) => {
|
|
156
160
|
const o = g(e.visible);
|
|
@@ -158,50 +162,50 @@ const W = () => ({
|
|
|
158
162
|
o.value !== e.visible && (o.value = e.visible);
|
|
159
163
|
}, () => e.visible);
|
|
160
164
|
const l = () => {
|
|
161
|
-
var
|
|
162
|
-
if ((
|
|
165
|
+
var d;
|
|
166
|
+
if ((d = e.cancelButtonProps) != null && d.onClick) {
|
|
163
167
|
e.cancelButtonProps.onClick();
|
|
164
168
|
return;
|
|
165
169
|
}
|
|
166
170
|
o.value = !1, u("update:visible", !1);
|
|
167
|
-
},
|
|
168
|
-
var
|
|
169
|
-
if ((
|
|
171
|
+
}, n = () => {
|
|
172
|
+
var d;
|
|
173
|
+
if ((d = e.okButtonProps) != null && d.onClick) {
|
|
170
174
|
e.okButtonProps.onClick();
|
|
171
175
|
return;
|
|
172
176
|
}
|
|
173
177
|
u("ok");
|
|
174
|
-
},
|
|
175
|
-
return () =>
|
|
178
|
+
}, r = S(J());
|
|
179
|
+
return () => c(j, i({
|
|
176
180
|
class: e.clsName
|
|
177
|
-
}, p(e, ...
|
|
178
|
-
closeOnClickModal:
|
|
181
|
+
}, p(e, ...r, "modelValue"), {
|
|
182
|
+
closeOnClickModal: _(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
|
|
179
183
|
modelValue: o.value,
|
|
180
|
-
"onUpdate:modelValue": [(
|
|
181
|
-
u("update:visible",
|
|
184
|
+
"onUpdate:modelValue": [(d) => o.value = d, (d) => {
|
|
185
|
+
u("update:visible", d);
|
|
182
186
|
}],
|
|
183
187
|
onClose: () => {
|
|
184
188
|
u("cancel");
|
|
185
189
|
}
|
|
186
190
|
}), {
|
|
187
|
-
footer: e.footer === !1 ? void 0 : () =>
|
|
191
|
+
footer: e.footer === !1 ? void 0 : () => c("div", {
|
|
188
192
|
class: `${e.clsName}-operate`
|
|
189
|
-
}, [
|
|
193
|
+
}, [c(w, i(p(e.cancelButtonProps, "onClick"), {
|
|
190
194
|
onClick: l
|
|
191
195
|
}), {
|
|
192
196
|
default: () => [e.cancelText]
|
|
193
|
-
}),
|
|
197
|
+
}), c(w, i({
|
|
194
198
|
type: "primary",
|
|
195
199
|
loading: e.confirmLoading
|
|
196
200
|
}, p(e.okButtonProps, "onClick"), {
|
|
197
|
-
onClick:
|
|
201
|
+
onClick: n
|
|
198
202
|
}), {
|
|
199
203
|
default: () => [e.okText]
|
|
200
204
|
})]),
|
|
201
|
-
...
|
|
205
|
+
...t
|
|
202
206
|
});
|
|
203
207
|
}
|
|
204
|
-
}), qe =
|
|
208
|
+
}), qe = m({
|
|
205
209
|
props: {
|
|
206
210
|
...N.props,
|
|
207
211
|
page: {
|
|
@@ -210,7 +214,7 @@ const W = () => ({
|
|
|
210
214
|
}
|
|
211
215
|
},
|
|
212
216
|
setup: (e, {
|
|
213
|
-
slots:
|
|
217
|
+
slots: t,
|
|
214
218
|
emit: u
|
|
215
219
|
}) => {
|
|
216
220
|
const o = g(e.page), l = g(e.pageSize);
|
|
@@ -219,239 +223,247 @@ const W = () => ({
|
|
|
219
223
|
}, () => e.page), F(() => {
|
|
220
224
|
l.value !== e.pageSize && (l.value = e.pageSize);
|
|
221
225
|
}, () => e.pageSize);
|
|
222
|
-
const
|
|
226
|
+
const n = he(() => {
|
|
223
227
|
u("composeChange", o.value, l.value);
|
|
224
|
-
}, 300),
|
|
225
|
-
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
+
}, 300), r = () => {
|
|
229
|
+
n(), u("update:page", o.value);
|
|
230
|
+
}, d = () => {
|
|
231
|
+
n(), u("update:pageSize", l.value);
|
|
228
232
|
};
|
|
229
|
-
return () =>
|
|
233
|
+
return () => c(N, i({
|
|
230
234
|
currentPage: o.value,
|
|
231
|
-
"onUpdate:currentPage": (
|
|
235
|
+
"onUpdate:currentPage": (a) => o.value = a,
|
|
232
236
|
pageSize: l.value,
|
|
233
|
-
"onUpdate:pageSize": (
|
|
234
|
-
onCurrentChange:
|
|
235
|
-
onSizeChange:
|
|
236
|
-
}, p(e, "currentPage", "pageSize")),
|
|
237
|
+
"onUpdate:pageSize": (a) => l.value = a,
|
|
238
|
+
onCurrentChange: r,
|
|
239
|
+
onSizeChange: d
|
|
240
|
+
}, p(e, "currentPage", "pageSize")), t);
|
|
237
241
|
}
|
|
238
|
-
}),
|
|
242
|
+
}), Ke = m({
|
|
239
243
|
props: {
|
|
240
|
-
...
|
|
244
|
+
...O.props
|
|
241
245
|
},
|
|
242
246
|
setup: (e, {
|
|
243
|
-
slots:
|
|
244
|
-
}) => () =>
|
|
245
|
-
reference:
|
|
246
|
-
default:
|
|
247
|
+
slots: t
|
|
248
|
+
}) => () => c(O, e, {
|
|
249
|
+
reference: t.default,
|
|
250
|
+
default: t.content
|
|
247
251
|
})
|
|
248
|
-
}),
|
|
252
|
+
}), Q = () => ({
|
|
249
253
|
options: Array,
|
|
250
254
|
buttonStyle: {
|
|
251
255
|
type: String,
|
|
252
256
|
default: "default"
|
|
257
|
+
},
|
|
258
|
+
optionType: {
|
|
259
|
+
type: String,
|
|
260
|
+
default: "default"
|
|
253
261
|
}
|
|
254
|
-
}),
|
|
262
|
+
}), Me = m({
|
|
255
263
|
props: {
|
|
256
|
-
...
|
|
257
|
-
...
|
|
264
|
+
...U.props,
|
|
265
|
+
...Q()
|
|
258
266
|
},
|
|
259
267
|
setup: (e, {
|
|
260
|
-
slots:
|
|
268
|
+
slots: t,
|
|
261
269
|
emit: u,
|
|
262
270
|
expose: o
|
|
263
271
|
}) => {
|
|
264
272
|
const l = g();
|
|
265
273
|
o(T(l));
|
|
266
|
-
const
|
|
267
|
-
return () =>
|
|
274
|
+
const n = S(Q());
|
|
275
|
+
return () => c(U, i({
|
|
268
276
|
ref: l
|
|
269
|
-
}, p(e,
|
|
270
|
-
"onUpdate:modelValue": (
|
|
271
|
-
u("update:modelValue",
|
|
277
|
+
}, p(e, n), {
|
|
278
|
+
"onUpdate:modelValue": (r) => {
|
|
279
|
+
u("update:modelValue", r || void 0);
|
|
272
280
|
}
|
|
273
281
|
}), {
|
|
274
282
|
default: () => {
|
|
275
|
-
var
|
|
276
|
-
return [(
|
|
277
|
-
var
|
|
278
|
-
const
|
|
279
|
-
return e.buttonStyle === "button" ?
|
|
280
|
-
key:
|
|
281
|
-
}, p(
|
|
282
|
-
label:
|
|
283
|
+
var r, d;
|
|
284
|
+
return [(r = t.start) == null ? void 0 : r.call(t), P(e.options, (a) => {
|
|
285
|
+
var f;
|
|
286
|
+
const y = (f = t.label) == null ? void 0 : f.call(t, a);
|
|
287
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(le, i({
|
|
288
|
+
key: a.value
|
|
289
|
+
}, p(a, "value"), {
|
|
290
|
+
label: a.value
|
|
283
291
|
}), {
|
|
284
|
-
default: () => [
|
|
285
|
-
}) :
|
|
286
|
-
key:
|
|
287
|
-
},
|
|
288
|
-
label:
|
|
292
|
+
default: () => [y || a.label]
|
|
293
|
+
}) : c(ue, i({
|
|
294
|
+
key: a.value
|
|
295
|
+
}, a, {
|
|
296
|
+
label: a.value
|
|
289
297
|
}), {
|
|
290
|
-
default: () => [
|
|
298
|
+
default: () => [y || a.label]
|
|
291
299
|
});
|
|
292
|
-
}), (
|
|
300
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
293
301
|
}
|
|
294
302
|
});
|
|
295
303
|
}
|
|
296
|
-
}),
|
|
304
|
+
}), X = () => ({
|
|
297
305
|
options: {
|
|
298
306
|
type: Array
|
|
299
307
|
},
|
|
300
308
|
buttonStyle: {
|
|
301
309
|
type: String,
|
|
302
310
|
default: "default"
|
|
311
|
+
},
|
|
312
|
+
optionType: {
|
|
313
|
+
type: String,
|
|
314
|
+
default: "default"
|
|
303
315
|
}
|
|
304
|
-
}), Ve =
|
|
316
|
+
}), Ve = m({
|
|
305
317
|
props: {
|
|
306
|
-
...
|
|
307
|
-
...
|
|
318
|
+
...D.props,
|
|
319
|
+
...X()
|
|
308
320
|
},
|
|
309
321
|
setup: (e, {
|
|
310
|
-
slots:
|
|
322
|
+
slots: t,
|
|
311
323
|
emit: u,
|
|
312
324
|
expose: o
|
|
313
325
|
}) => {
|
|
314
326
|
const l = g();
|
|
315
327
|
o(T(l));
|
|
316
|
-
const
|
|
317
|
-
return () =>
|
|
328
|
+
const n = S(X());
|
|
329
|
+
return () => c(D, i({
|
|
318
330
|
ref: l
|
|
319
|
-
}, p(e,
|
|
320
|
-
"onUpdate:modelValue": (
|
|
321
|
-
u("update:modelValue",
|
|
331
|
+
}, p(e, n), {
|
|
332
|
+
"onUpdate:modelValue": (r) => {
|
|
333
|
+
u("update:modelValue", r);
|
|
322
334
|
}
|
|
323
335
|
}), {
|
|
324
336
|
default: () => {
|
|
325
|
-
var
|
|
326
|
-
return [(
|
|
327
|
-
var
|
|
328
|
-
const
|
|
329
|
-
return e.buttonStyle === "button" ?
|
|
330
|
-
key:
|
|
331
|
-
}, p(
|
|
332
|
-
label:
|
|
337
|
+
var r, d;
|
|
338
|
+
return [(r = t.start) == null ? void 0 : r.call(t), P(e.options, (a) => {
|
|
339
|
+
var f;
|
|
340
|
+
const y = (f = t.label) == null ? void 0 : f.call(t, a);
|
|
341
|
+
return e.optionType === "button" || e.buttonStyle === "button" ? c(de, i({
|
|
342
|
+
key: a.value
|
|
343
|
+
}, p(a, "value"), {
|
|
344
|
+
label: a.value
|
|
333
345
|
}), {
|
|
334
|
-
default: () => [
|
|
335
|
-
}) :
|
|
336
|
-
key:
|
|
337
|
-
}, p(
|
|
338
|
-
label:
|
|
346
|
+
default: () => [y || a.label]
|
|
347
|
+
}) : c(ce, i({
|
|
348
|
+
key: a.value
|
|
349
|
+
}, p(a, "value"), {
|
|
350
|
+
label: a.value
|
|
339
351
|
}), {
|
|
340
|
-
default: () => [
|
|
352
|
+
default: () => [y || a.label]
|
|
341
353
|
});
|
|
342
|
-
}), (
|
|
354
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
343
355
|
}
|
|
344
356
|
});
|
|
345
357
|
}
|
|
346
|
-
}),
|
|
358
|
+
}), Y = () => ({
|
|
347
359
|
options: Array
|
|
348
|
-
}),
|
|
360
|
+
}), Ae = m({
|
|
349
361
|
props: {
|
|
350
362
|
...q.props,
|
|
351
|
-
...
|
|
363
|
+
...Y()
|
|
352
364
|
},
|
|
353
365
|
setup: (e, {
|
|
354
|
-
slots:
|
|
366
|
+
slots: t,
|
|
355
367
|
emit: u,
|
|
356
368
|
expose: o
|
|
357
369
|
}) => {
|
|
358
370
|
const l = g();
|
|
359
371
|
o(T(l));
|
|
360
|
-
const
|
|
361
|
-
return () =>
|
|
372
|
+
const n = S(Y());
|
|
373
|
+
return () => c(q, i({
|
|
362
374
|
ref: l
|
|
363
|
-
}, p(e,
|
|
364
|
-
"onUpdate:modelValue": (
|
|
365
|
-
u("update:modelValue",
|
|
375
|
+
}, p(e, n), {
|
|
376
|
+
"onUpdate:modelValue": (r) => {
|
|
377
|
+
u("update:modelValue", r || void 0);
|
|
366
378
|
}
|
|
367
379
|
}), {
|
|
368
380
|
default: () => {
|
|
369
|
-
var
|
|
370
|
-
return [(
|
|
371
|
-
var
|
|
372
|
-
const
|
|
373
|
-
return
|
|
374
|
-
key:
|
|
375
|
-
},
|
|
376
|
-
default: () => [
|
|
381
|
+
var r, d;
|
|
382
|
+
return [(r = t.start) == null ? void 0 : r.call(t), P(e.options, (a) => {
|
|
383
|
+
var f;
|
|
384
|
+
const y = (f = t.label) == null ? void 0 : f.call(t, a);
|
|
385
|
+
return c(ie, i({
|
|
386
|
+
key: a.value
|
|
387
|
+
}, a), {
|
|
388
|
+
default: () => [y || a.label]
|
|
377
389
|
});
|
|
378
|
-
}), (
|
|
390
|
+
}), (d = t.default) == null ? void 0 : d.call(t)];
|
|
379
391
|
},
|
|
380
|
-
...p(
|
|
392
|
+
...p(t, "default")
|
|
381
393
|
});
|
|
382
394
|
}
|
|
383
|
-
}),
|
|
395
|
+
}), $e = m({
|
|
384
396
|
props: {
|
|
385
|
-
...
|
|
397
|
+
...K.props,
|
|
386
398
|
options: {
|
|
387
399
|
type: Array
|
|
388
400
|
}
|
|
389
401
|
},
|
|
390
402
|
setup: (e, {
|
|
391
|
-
slots:
|
|
403
|
+
slots: t,
|
|
392
404
|
emit: u
|
|
393
|
-
}) => () =>
|
|
405
|
+
}) => () => c(K, i(p(e, "options"), {
|
|
394
406
|
"onUpdate:modelValue": (o) => {
|
|
395
407
|
u("update:modelValue", o);
|
|
396
408
|
}
|
|
397
409
|
}), {
|
|
398
410
|
default: () => {
|
|
399
411
|
var o, l;
|
|
400
|
-
return [(o =
|
|
401
|
-
key:
|
|
402
|
-
}, p(
|
|
403
|
-
name:
|
|
412
|
+
return [(o = t.start) == null ? void 0 : o.call(t), P(e.options, (n) => c(pe, i({
|
|
413
|
+
key: n.value
|
|
414
|
+
}, p(n, "value"), {
|
|
415
|
+
name: n.value
|
|
404
416
|
}), {
|
|
405
417
|
label: () => {
|
|
406
|
-
var
|
|
407
|
-
return ((
|
|
418
|
+
var r;
|
|
419
|
+
return ((r = t.label) == null ? void 0 : r.call(t, n)) || n.label;
|
|
408
420
|
}
|
|
409
|
-
})), (l =
|
|
421
|
+
})), (l = t.default) == null ? void 0 : l.call(t)];
|
|
410
422
|
}
|
|
411
423
|
})
|
|
412
|
-
}),
|
|
413
|
-
InputComp:
|
|
424
|
+
}), Ge = b({
|
|
425
|
+
InputComp: fe,
|
|
414
426
|
valueType: "text",
|
|
415
427
|
name: "PFromText"
|
|
416
|
-
}),
|
|
428
|
+
}), We = b({
|
|
417
429
|
InputComp: me,
|
|
418
430
|
valueType: "digit",
|
|
419
431
|
name: "PFormNumber"
|
|
420
|
-
}),
|
|
421
|
-
InputComp:
|
|
432
|
+
}), He = b({
|
|
433
|
+
InputComp: ye,
|
|
422
434
|
valueType: "date",
|
|
423
435
|
name: "PFormDate"
|
|
424
|
-
}),
|
|
436
|
+
}), Je = b({
|
|
425
437
|
InputComp: be,
|
|
426
438
|
valueType: "time",
|
|
427
439
|
name: "PFormTime"
|
|
428
|
-
}),
|
|
429
|
-
InputComp:
|
|
440
|
+
}), Qe = b({
|
|
441
|
+
InputComp: Ae,
|
|
430
442
|
valueType: "select",
|
|
431
443
|
name: "PFormSelect"
|
|
432
|
-
}),
|
|
433
|
-
InputComp:
|
|
444
|
+
}), Xe = b({
|
|
445
|
+
InputComp: ge,
|
|
434
446
|
valueType: "treeSelect",
|
|
435
447
|
name: "PFormTreeSelect"
|
|
436
|
-
}),
|
|
437
|
-
InputComp:
|
|
448
|
+
}), Ye = b({
|
|
449
|
+
InputComp: Me,
|
|
438
450
|
valueType: "checkbox",
|
|
439
451
|
name: "PFromCheckbox"
|
|
440
|
-
}),
|
|
452
|
+
}), Ze = b({
|
|
441
453
|
InputComp: Ve,
|
|
442
454
|
valueType: "radio",
|
|
443
455
|
name: "PFromRadio"
|
|
444
|
-
}),
|
|
445
|
-
InputComp:
|
|
456
|
+
}), _e = b({
|
|
457
|
+
InputComp: ve,
|
|
446
458
|
valueType: "switch",
|
|
447
459
|
name: "PFromSwitch"
|
|
448
|
-
}),
|
|
460
|
+
}), et = b({
|
|
449
461
|
InputComp: Pe,
|
|
450
462
|
valueType: "cascader",
|
|
451
463
|
name: "PFormCascader"
|
|
452
|
-
}),
|
|
464
|
+
}), ne = m({
|
|
453
465
|
props: {
|
|
454
|
-
...p(
|
|
466
|
+
...p($.props, "label", "prop"),
|
|
455
467
|
title: {
|
|
456
468
|
type: String
|
|
457
469
|
},
|
|
@@ -466,57 +478,57 @@ const W = () => ({
|
|
|
466
478
|
}
|
|
467
479
|
},
|
|
468
480
|
setup: (e, {
|
|
469
|
-
slots:
|
|
481
|
+
slots: t
|
|
470
482
|
}) => {
|
|
471
483
|
const u = ({
|
|
472
|
-
row:
|
|
473
|
-
column:
|
|
474
|
-
$index:
|
|
484
|
+
row: n,
|
|
485
|
+
column: r,
|
|
486
|
+
$index: d
|
|
475
487
|
}) => {
|
|
476
488
|
var I;
|
|
477
|
-
const
|
|
478
|
-
...
|
|
479
|
-
title:
|
|
480
|
-
dataIndex:
|
|
481
|
-
},
|
|
482
|
-
value:
|
|
483
|
-
text:
|
|
484
|
-
record:
|
|
485
|
-
column:
|
|
486
|
-
index:
|
|
487
|
-
}, E = (I =
|
|
488
|
-
return E || (e.customRender ? e.customRender(x) :
|
|
489
|
+
const a = n, y = d, f = {
|
|
490
|
+
...r,
|
|
491
|
+
title: r.label,
|
|
492
|
+
dataIndex: r.property
|
|
493
|
+
}, v = Te(n, f.dataIndex), x = {
|
|
494
|
+
value: v,
|
|
495
|
+
text: v,
|
|
496
|
+
record: a,
|
|
497
|
+
column: f,
|
|
498
|
+
index: y
|
|
499
|
+
}, E = (I = t.bodyCell) == null ? void 0 : I.call(t, x);
|
|
500
|
+
return E || (e.customRender ? e.customRender(x) : v);
|
|
489
501
|
}, l = {
|
|
490
502
|
header: ({
|
|
491
|
-
column:
|
|
492
|
-
$index:
|
|
503
|
+
column: n,
|
|
504
|
+
$index: r
|
|
493
505
|
}) => {
|
|
494
|
-
var
|
|
495
|
-
const
|
|
496
|
-
...
|
|
497
|
-
title:
|
|
498
|
-
dataIndex:
|
|
506
|
+
var v;
|
|
507
|
+
const d = r, a = n.label, y = {
|
|
508
|
+
...n,
|
|
509
|
+
title: a,
|
|
510
|
+
dataIndex: n.property
|
|
499
511
|
};
|
|
500
|
-
return ((
|
|
501
|
-
title:
|
|
502
|
-
column:
|
|
503
|
-
index:
|
|
504
|
-
})) ||
|
|
512
|
+
return ((v = t.headerCell) == null ? void 0 : v.call(t, {
|
|
513
|
+
title: a,
|
|
514
|
+
column: y,
|
|
515
|
+
index: d
|
|
516
|
+
})) || a;
|
|
505
517
|
}
|
|
506
518
|
};
|
|
507
|
-
return (!e.children ||
|
|
519
|
+
return (!e.children || W(e.children) <= 0) && (l.default = u), () => c($, i(p(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
508
520
|
prop: e.dataIndex,
|
|
509
521
|
label: e.title
|
|
510
522
|
}), {
|
|
511
|
-
default: () => [
|
|
512
|
-
key:
|
|
513
|
-
},
|
|
523
|
+
default: () => [W(e.children) > 0 && P(e.children, (n) => c(ne, i({
|
|
524
|
+
key: n.dataIndex
|
|
525
|
+
}, n), t))],
|
|
514
526
|
...l
|
|
515
527
|
});
|
|
516
528
|
}
|
|
517
|
-
}),
|
|
529
|
+
}), ze = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Le = m({
|
|
518
530
|
props: {
|
|
519
|
-
|
|
531
|
+
...G.props,
|
|
520
532
|
columns: {
|
|
521
533
|
type: Array
|
|
522
534
|
},
|
|
@@ -528,33 +540,33 @@ const W = () => ({
|
|
|
528
540
|
}
|
|
529
541
|
},
|
|
530
542
|
setup: (e, {
|
|
531
|
-
slots:
|
|
543
|
+
slots: t,
|
|
532
544
|
expose: u
|
|
533
545
|
}) => {
|
|
534
546
|
const o = g(), l = ae("table");
|
|
535
|
-
return u(
|
|
547
|
+
return u(Z(ze, o)), () => c(G, i({
|
|
536
548
|
ref: o,
|
|
537
549
|
id: l
|
|
538
550
|
}, p(e, "columns", "dataSource", "loading"), {
|
|
539
551
|
data: e.dataSource || e.data
|
|
540
552
|
}), {
|
|
541
553
|
default: () => {
|
|
542
|
-
var
|
|
543
|
-
return [(
|
|
544
|
-
key:
|
|
545
|
-
},
|
|
554
|
+
var n, r;
|
|
555
|
+
return [(n = t.start) == null ? void 0 : n.call(t), P(e.columns, (d) => c(ne, i({
|
|
556
|
+
key: d.dataIndex
|
|
557
|
+
}, d), t)), (r = t.default) == null ? void 0 : r.call(t), e.loading && c(Re, {
|
|
546
558
|
target: l,
|
|
547
559
|
loading: !0
|
|
548
560
|
}, null)];
|
|
549
561
|
},
|
|
550
|
-
...
|
|
562
|
+
...Fe(t, "append", "empty")
|
|
551
563
|
});
|
|
552
564
|
}
|
|
553
565
|
});
|
|
554
566
|
C.props = {
|
|
555
|
-
...
|
|
567
|
+
...h.props,
|
|
556
568
|
...C.props,
|
|
557
|
-
formMethods: { type: Array, default:
|
|
569
|
+
formMethods: { type: Array, default: te }
|
|
558
570
|
};
|
|
559
571
|
R.props = {
|
|
560
572
|
...C.props,
|
|
@@ -562,54 +574,81 @@ R.props = {
|
|
|
562
574
|
inline: { type: Boolean, default: !0 }
|
|
563
575
|
};
|
|
564
576
|
B.props = {
|
|
565
|
-
...
|
|
577
|
+
...s.props,
|
|
566
578
|
...B.props
|
|
567
579
|
};
|
|
568
|
-
|
|
569
|
-
...
|
|
570
|
-
...
|
|
580
|
+
M.props = {
|
|
581
|
+
...Le.props,
|
|
582
|
+
...M.props
|
|
571
583
|
};
|
|
572
584
|
k.props = {
|
|
573
|
-
...
|
|
585
|
+
...Se.props,
|
|
574
586
|
...k.props
|
|
575
587
|
};
|
|
576
|
-
|
|
588
|
+
V.props = {
|
|
577
589
|
...k.props,
|
|
578
|
-
...
|
|
590
|
+
...V.props
|
|
579
591
|
};
|
|
580
592
|
A.props = {
|
|
581
593
|
...C.props,
|
|
582
594
|
...A.props
|
|
583
595
|
};
|
|
584
|
-
|
|
585
|
-
...
|
|
586
|
-
...
|
|
596
|
+
z.props = {
|
|
597
|
+
...Be.props,
|
|
598
|
+
...z.props
|
|
599
|
+
};
|
|
600
|
+
L.props = {
|
|
601
|
+
...L.props,
|
|
602
|
+
convertMenuParams: {
|
|
603
|
+
type: Function,
|
|
604
|
+
default: ({ mode: e, activeKey: t, openKeys: u }) => ({ mode: e, defaultActive: t })
|
|
605
|
+
},
|
|
606
|
+
convertSubMenuParams: {
|
|
607
|
+
type: Function,
|
|
608
|
+
default: (e) => ({ index: e.value })
|
|
609
|
+
},
|
|
610
|
+
convertMenuItemParams: {
|
|
611
|
+
type: Function,
|
|
612
|
+
default: (e) => ({ index: e.value })
|
|
613
|
+
},
|
|
614
|
+
subMenuSlots: {
|
|
615
|
+
type: Object,
|
|
616
|
+
default: {
|
|
617
|
+
title: (e) => e.label
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
menuItemSlots: {
|
|
621
|
+
type: Object,
|
|
622
|
+
default: {
|
|
623
|
+
title: (e) => e.label
|
|
624
|
+
}
|
|
625
|
+
}
|
|
587
626
|
};
|
|
588
627
|
export {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
628
|
+
te as FormMethods,
|
|
629
|
+
Me as ProCheckbox,
|
|
630
|
+
De as ProForm,
|
|
631
|
+
et as ProFormCascader,
|
|
632
|
+
Ye as ProFormCheckbox,
|
|
633
|
+
He as ProFormDatePicker,
|
|
634
|
+
Ee as ProFormItem,
|
|
635
|
+
Ze as ProFormRadio,
|
|
636
|
+
Qe as ProFormSelect,
|
|
637
|
+
_e as ProFormSwitch,
|
|
638
|
+
Ge as ProFormText,
|
|
639
|
+
We as ProFormTextNumber,
|
|
640
|
+
Je as ProFormTimePicker,
|
|
641
|
+
Xe as ProFormTreeSelect,
|
|
642
|
+
Re as ProLoading,
|
|
643
|
+
Be as ProModal,
|
|
605
644
|
qe as ProPagination,
|
|
606
|
-
|
|
645
|
+
Ke as ProPopover,
|
|
607
646
|
Ve as ProRadio,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
647
|
+
Ae as ProSelect,
|
|
648
|
+
Le as ProTable,
|
|
649
|
+
ne as ProTableColumn,
|
|
650
|
+
$e as ProTabs,
|
|
651
|
+
ze as TableMethods,
|
|
652
|
+
b as createFormItemComponent,
|
|
614
653
|
ae as createLoadingId
|
|
615
654
|
};
|