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