@vue-start/element-pro 0.2.9 → 0.2.11
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 +68 -60
- package/dist/index.es.js +208 -196
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -56
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { createExpose as Y, createFormItemCompFn as
|
|
2
|
-
import { ElFormItem as h, ElForm as s, ElLoading as
|
|
3
|
-
import { defineComponent as
|
|
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
|
|
5
|
-
import { useEffect as _, generateId as
|
|
1
|
+
import { createExpose as Y, createFormItemCompFn as ne, createExposeObj as F, 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 re, 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 de, ElSelect as q, ElOption as ce, ElTabs as O, ElTabPane as ie, ElInput as pe, ElInputNumber as fe, ElDatePicker as me, ElTimePicker as ye, ElTreeSelect as be, ElSwitch as ge, ElCascader as Pe, ElTableColumn as K, ElTable as $, ElDescriptions as ve } from "element-plus";
|
|
3
|
+
import { defineComponent as m, createVNode as c, 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 Te } from "lodash";
|
|
5
|
+
import { useEffect as _, generateId as Fe, useWatch as T } from "@vue-start/hooks";
|
|
6
6
|
const W = () => ({
|
|
7
7
|
name: {
|
|
8
8
|
type: [String, Array]
|
|
9
9
|
}
|
|
10
|
-
}), xe =
|
|
10
|
+
}), xe = m({
|
|
11
11
|
props: {
|
|
12
12
|
...h.props,
|
|
13
13
|
...W()
|
|
14
14
|
},
|
|
15
15
|
setup: (e, {
|
|
16
|
-
slots:
|
|
16
|
+
slots: t
|
|
17
17
|
}) => {
|
|
18
18
|
const u = S(W());
|
|
19
|
-
return () =>
|
|
19
|
+
return () => c(h, i(p(e, ...u, "name", "prop"), {
|
|
20
20
|
prop: e.prop || e.name
|
|
21
|
-
}),
|
|
21
|
+
}), t);
|
|
22
22
|
}
|
|
23
|
-
}), ee = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], je =
|
|
23
|
+
}), ee = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], je = m({
|
|
24
24
|
props: {
|
|
25
25
|
...s.props,
|
|
26
26
|
hideRequiredMark: {
|
|
@@ -29,31 +29,31 @@ const W = () => ({
|
|
|
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 || Se({}),
|
|
36
|
+
const l = e.model || Se({}), n = g();
|
|
37
37
|
return _(() => {
|
|
38
|
-
!
|
|
39
|
-
var
|
|
40
|
-
(
|
|
41
|
-
|
|
38
|
+
!n.value || (n.value.submit = () => {
|
|
39
|
+
var r;
|
|
40
|
+
(r = n.value) == null || r.validate((d, a) => {
|
|
41
|
+
d ? u("finish", Ce(l)) : u("finishFailed", a);
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
}, []), o(Y(ee,
|
|
45
|
-
ref:
|
|
44
|
+
}, []), o(Y(ee, n)), () => c(s, i({
|
|
45
|
+
ref: n
|
|
46
46
|
}, p(e, "model"), {
|
|
47
47
|
hideRequiredAsterisk: Z(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
|
|
48
48
|
model: l
|
|
49
|
-
}),
|
|
49
|
+
}), t);
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
51
|
+
}), b = ne(xe, (e, t, u) => ({
|
|
52
52
|
modelValue: e,
|
|
53
|
-
"onUpdate:modelValue":
|
|
53
|
+
"onUpdate:modelValue": t,
|
|
54
54
|
clearable: !0,
|
|
55
55
|
disabled: u
|
|
56
|
-
})),
|
|
56
|
+
})), te = (e = "comp") => e + "-" + Fe(), Ee = () => ({
|
|
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
|
-
}), Ie =
|
|
84
|
+
}), Ie = m({
|
|
85
85
|
props: {
|
|
86
86
|
...Ee()
|
|
87
87
|
},
|
|
88
88
|
setup: (e, {
|
|
89
|
-
slots:
|
|
89
|
+
slots: t
|
|
90
90
|
}) => {
|
|
91
|
-
const u =
|
|
91
|
+
const u = te();
|
|
92
92
|
return _(() => {
|
|
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 && ke(e.target) && (o = document.querySelector("#" + e.target)), !o)
|
|
97
97
|
return;
|
|
98
|
-
const l =
|
|
98
|
+
const l = re.service({
|
|
99
99
|
target: o,
|
|
100
100
|
body: e.body,
|
|
101
101
|
fullscreen: e.fullscreen,
|
|
@@ -108,9 +108,9 @@ 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
|
}), H = () => ({
|
|
116
116
|
clsName: {
|
|
@@ -144,64 +144,68 @@ const W = () => ({
|
|
|
144
144
|
type: [Object, Boolean],
|
|
145
145
|
default: void 0
|
|
146
146
|
}
|
|
147
|
-
}), Re =
|
|
147
|
+
}), Re = m({
|
|
148
148
|
props: {
|
|
149
149
|
...L.props,
|
|
150
|
+
appendToBody: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: !0
|
|
153
|
+
},
|
|
150
154
|
...H()
|
|
151
155
|
},
|
|
152
156
|
setup: (e, {
|
|
153
|
-
slots:
|
|
157
|
+
slots: t,
|
|
154
158
|
emit: u
|
|
155
159
|
}) => {
|
|
156
160
|
const o = g(e.visible);
|
|
157
|
-
|
|
161
|
+
T(() => {
|
|
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(H());
|
|
179
|
+
return () => c(L, i({
|
|
176
180
|
class: e.clsName
|
|
177
|
-
}, p(e, ...
|
|
181
|
+
}, p(e, ...r, "modelValue"), {
|
|
178
182
|
closeOnClickModal: Z(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,86 +214,90 @@ 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);
|
|
217
|
-
|
|
221
|
+
T(() => {
|
|
218
222
|
o.value !== e.page && (o.value = e.page);
|
|
219
|
-
}, () => e.page),
|
|
223
|
+
}, () => e.page), T(() => {
|
|
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
|
-
}), Oe =
|
|
242
|
+
}), Oe = m({
|
|
239
243
|
props: {
|
|
240
244
|
...U.props
|
|
241
245
|
},
|
|
242
246
|
setup: (e, {
|
|
243
|
-
slots:
|
|
244
|
-
}) => () =>
|
|
245
|
-
reference:
|
|
246
|
-
default:
|
|
247
|
+
slots: t
|
|
248
|
+
}) => () => c(U, e, {
|
|
249
|
+
reference: t.default,
|
|
250
|
+
default: t.content
|
|
247
251
|
})
|
|
248
252
|
}), J = () => ({
|
|
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
|
-
}), Be =
|
|
262
|
+
}), Be = m({
|
|
255
263
|
props: {
|
|
256
264
|
...D.props,
|
|
257
265
|
...J()
|
|
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
|
-
o(
|
|
266
|
-
const
|
|
267
|
-
return () =>
|
|
273
|
+
o(F(l));
|
|
274
|
+
const n = S(J());
|
|
275
|
+
return () => c(D, 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), v(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(oe, 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(le, 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
|
}
|
|
@@ -300,87 +308,91 @@ const W = () => ({
|
|
|
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
318
|
...j.props,
|
|
307
319
|
...Q()
|
|
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
|
-
o(
|
|
316
|
-
const
|
|
317
|
-
return () =>
|
|
327
|
+
o(F(l));
|
|
328
|
+
const n = S(Q());
|
|
329
|
+
return () => c(j, 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), v(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(ue, 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(de, 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
|
}), X = () => ({
|
|
347
359
|
options: Array
|
|
348
|
-
}), ze =
|
|
360
|
+
}), ze = m({
|
|
349
361
|
props: {
|
|
350
362
|
...q.props,
|
|
351
363
|
...X()
|
|
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
|
-
o(
|
|
360
|
-
const
|
|
361
|
-
return () =>
|
|
371
|
+
o(F(l));
|
|
372
|
+
const n = S(X());
|
|
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
|
-
}, p(
|
|
376
|
-
default: () => [
|
|
381
|
+
var r, d;
|
|
382
|
+
return [(r = t.start) == null ? void 0 : r.call(t), v(e.options, (a) => {
|
|
383
|
+
var f;
|
|
384
|
+
const y = (f = t.label) == null ? void 0 : f.call(t, a);
|
|
385
|
+
return c(ce, i({
|
|
386
|
+
key: a.value
|
|
387
|
+
}, p(a, "label")), {
|
|
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
|
-
}), Ke =
|
|
395
|
+
}), Ke = m({
|
|
384
396
|
props: {
|
|
385
397
|
...O.props,
|
|
386
398
|
options: {
|
|
@@ -388,68 +400,68 @@ const W = () => ({
|
|
|
388
400
|
}
|
|
389
401
|
},
|
|
390
402
|
setup: (e, {
|
|
391
|
-
slots:
|
|
403
|
+
slots: t,
|
|
392
404
|
emit: u
|
|
393
|
-
}) => () =>
|
|
405
|
+
}) => () => c(O, 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), v(e.options, (n) => c(ie, 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
|
-
}), $e =
|
|
424
|
+
}), $e = b({
|
|
413
425
|
InputComp: pe,
|
|
414
426
|
valueType: "text",
|
|
415
427
|
name: "PFromText"
|
|
416
|
-
}), Ge =
|
|
417
|
-
InputComp:
|
|
428
|
+
}), Ge = b({
|
|
429
|
+
InputComp: fe,
|
|
418
430
|
valueType: "digit",
|
|
419
431
|
name: "PFormNumber"
|
|
420
|
-
}), We =
|
|
421
|
-
InputComp:
|
|
432
|
+
}), We = b({
|
|
433
|
+
InputComp: me,
|
|
422
434
|
valueType: "date",
|
|
423
435
|
name: "PFormDate"
|
|
424
|
-
}), He =
|
|
425
|
-
InputComp:
|
|
436
|
+
}), He = b({
|
|
437
|
+
InputComp: ye,
|
|
426
438
|
valueType: "time",
|
|
427
439
|
name: "PFormTime"
|
|
428
|
-
}), Je =
|
|
440
|
+
}), Je = b({
|
|
429
441
|
InputComp: ze,
|
|
430
442
|
valueType: "select",
|
|
431
443
|
name: "PFormSelect"
|
|
432
|
-
}), Qe =
|
|
433
|
-
InputComp:
|
|
444
|
+
}), Qe = b({
|
|
445
|
+
InputComp: be,
|
|
434
446
|
valueType: "treeSelect",
|
|
435
447
|
name: "PFormTreeSelect"
|
|
436
|
-
}), Xe =
|
|
448
|
+
}), Xe = b({
|
|
437
449
|
InputComp: Be,
|
|
438
450
|
valueType: "checkbox",
|
|
439
451
|
name: "PFromCheckbox"
|
|
440
|
-
}), Ye =
|
|
452
|
+
}), Ye = b({
|
|
441
453
|
InputComp: Ve,
|
|
442
454
|
valueType: "radio",
|
|
443
455
|
name: "PFromRadio"
|
|
444
|
-
}), Ze =
|
|
456
|
+
}), Ze = b({
|
|
445
457
|
InputComp: ge,
|
|
446
458
|
valueType: "switch",
|
|
447
459
|
name: "PFromSwitch"
|
|
448
|
-
}), _e =
|
|
460
|
+
}), _e = b({
|
|
449
461
|
InputComp: Pe,
|
|
450
462
|
valueType: "cascader",
|
|
451
463
|
name: "PFormCascader"
|
|
452
|
-
}),
|
|
464
|
+
}), ae = m({
|
|
453
465
|
props: {
|
|
454
466
|
...p(K.props, "label", "prop"),
|
|
455
467
|
title: {
|
|
@@ -466,55 +478,55 @@ 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
|
-
}, P =
|
|
489
|
+
const a = n, y = d, f = {
|
|
490
|
+
...r,
|
|
491
|
+
title: r.label,
|
|
492
|
+
dataIndex: r.property
|
|
493
|
+
}, P = Te(n, f.dataIndex), x = {
|
|
482
494
|
value: P,
|
|
483
495
|
text: P,
|
|
484
|
-
record:
|
|
485
|
-
column:
|
|
486
|
-
index:
|
|
487
|
-
}, E = (I =
|
|
496
|
+
record: a,
|
|
497
|
+
column: f,
|
|
498
|
+
index: y
|
|
499
|
+
}, E = (I = t.bodyCell) == null ? void 0 : I.call(t, x);
|
|
488
500
|
return E || (e.customRender ? e.customRender(x) : P);
|
|
489
501
|
}, l = {
|
|
490
502
|
header: ({
|
|
491
|
-
column:
|
|
492
|
-
$index:
|
|
503
|
+
column: n,
|
|
504
|
+
$index: r
|
|
493
505
|
}) => {
|
|
494
506
|
var P;
|
|
495
|
-
const
|
|
496
|
-
...
|
|
497
|
-
title:
|
|
498
|
-
dataIndex:
|
|
507
|
+
const d = r, a = n.label, y = {
|
|
508
|
+
...n,
|
|
509
|
+
title: a,
|
|
510
|
+
dataIndex: n.property
|
|
499
511
|
};
|
|
500
|
-
return ((P =
|
|
501
|
-
title:
|
|
502
|
-
column:
|
|
503
|
-
index:
|
|
504
|
-
})) ||
|
|
512
|
+
return ((P = t.headerCell) == null ? void 0 : P.call(t, {
|
|
513
|
+
title: a,
|
|
514
|
+
column: y,
|
|
515
|
+
index: d
|
|
516
|
+
})) || a;
|
|
505
517
|
}
|
|
506
518
|
};
|
|
507
|
-
return (!e.children || G(e.children) <= 0) && (l.default = u), () =>
|
|
519
|
+
return (!e.children || G(e.children) <= 0) && (l.default = u), () => c(K, i(p(e, "title", "dataIndex", "prop", "customRender", "children"), {
|
|
508
520
|
prop: e.dataIndex,
|
|
509
521
|
label: e.title
|
|
510
522
|
}), {
|
|
511
|
-
default: () => [G(e.children) > 0 && v(e.children, (
|
|
512
|
-
key:
|
|
513
|
-
},
|
|
523
|
+
default: () => [G(e.children) > 0 && v(e.children, (n) => c(ae, i({
|
|
524
|
+
key: n.dataIndex
|
|
525
|
+
}, n), t))],
|
|
514
526
|
...l
|
|
515
527
|
});
|
|
516
528
|
}
|
|
517
|
-
}), Ae = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Me =
|
|
529
|
+
}), Ae = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Me = m({
|
|
518
530
|
props: {
|
|
519
531
|
...$.props,
|
|
520
532
|
columns: {
|
|
@@ -528,26 +540,26 @@ const W = () => ({
|
|
|
528
540
|
}
|
|
529
541
|
},
|
|
530
542
|
setup: (e, {
|
|
531
|
-
slots:
|
|
543
|
+
slots: t,
|
|
532
544
|
expose: u
|
|
533
545
|
}) => {
|
|
534
|
-
const o = g(), l =
|
|
535
|
-
return u(Y(Ae, o)), () =>
|
|
546
|
+
const o = g(), l = te("table");
|
|
547
|
+
return u(Y(Ae, o)), () => c($, 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), v(e.columns, (d) => c(ae, i({
|
|
556
|
+
key: d.dataIndex
|
|
557
|
+
}, d), t)), (r = t.default) == null ? void 0 : r.call(t), e.loading && c(Ie, {
|
|
546
558
|
target: l,
|
|
547
559
|
loading: !0
|
|
548
560
|
}, null)];
|
|
549
561
|
},
|
|
550
|
-
...se(
|
|
562
|
+
...se(t, "append", "empty")
|
|
551
563
|
});
|
|
552
564
|
}
|
|
553
565
|
});
|
|
@@ -607,9 +619,9 @@ export {
|
|
|
607
619
|
Ve as ProRadio,
|
|
608
620
|
ze as ProSelect,
|
|
609
621
|
Me as ProTable,
|
|
610
|
-
|
|
622
|
+
ae as ProTableColumn,
|
|
611
623
|
Ke as ProTabs,
|
|
612
624
|
Ae as TableMethods,
|
|
613
|
-
|
|
614
|
-
|
|
625
|
+
b as createFormItemComponent,
|
|
626
|
+
te as createLoadingId
|
|
615
627
|
};
|