@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.es.js CHANGED
@@ -1,208 +1,59 @@
1
- import { createExpose as $, createFormItemCompFn as Q, createExposeObj as k, ProForm as P, ProSearchForm as F, ProFormList as h, ProTable as T, ProDesc as b, ProCurdDesc as x, ProCurdForm as E, ProCurdModal as I } from "@vue-start/pro";
2
- import { ElFormItem as v, ElForm as C, ElSelect as R, ElOption as X, ElRadioGroup as B, ElRadioButton as Y, ElRadio as Z, ElCheckboxGroup as V, ElCheckbox as ee, ElInput as te, ElInputNumber as oe, ElDatePicker as ae, ElTimePicker as re, ElTreeSelect as ne, ElSwitch as le, ElCascader as ue, ElLoading as de, ElDialog as z, ElButton as A, ElPagination as M, ElPopover as O, ElTableColumn as w, ElTable as L, ElDescriptions as ce } from "element-plus";
3
- import { defineComponent as m, createVNode as d, mergeProps as c, reactive as ie, ref as f, toRaw as pe, isVNode as N } from "vue";
4
- import { keys as g, omit as i, isBoolean as G, map as y, isString as me, debounce as se, size as fe, pick as ge } from "lodash";
5
- import { useEffect as H, generateId as ye, useWatch as S } from "@vue-start/hooks";
6
- const D = () => ({
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
- }), Pe = m({
10
+ }), xe = f({
11
11
  props: {
12
- ...v.props,
13
- ...D()
12
+ ...h.props,
13
+ ...W()
14
14
  },
15
15
  setup: (e, {
16
- slots: t
16
+ slots: a
17
17
  }) => {
18
- const a = g(D());
19
- return () => d(v, c(i(e, ...a, "name", "prop"), {
18
+ const u = S(W());
19
+ return () => d(h, i(p(e, ...u, "name", "prop"), {
20
20
  prop: e.prop || e.name
21
- }), t);
21
+ }), a);
22
22
  }
23
- }), W = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], Ve = m({
23
+ }), ee = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], je = f({
24
24
  props: {
25
- ...C.props,
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: t,
33
- emit: a,
34
- expose: r
32
+ slots: a,
33
+ emit: u,
34
+ expose: o
35
35
  }) => {
36
- const n = e.model || ie({}), u = f();
37
- return H(() => {
38
- !u.value || (u.value.submit = () => {
39
- var o;
40
- (o = u.value) == null || o.validate((l, p) => {
41
- l ? a("finish", pe(n)) : a("finishFailed", p);
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
- }, []), r($(W, u)), () => d(C, c({
45
- ref: u
46
- }, i(e, "model"), {
47
- hideRequiredAsterisk: G(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
48
- model: n
49
- }), t);
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
- }), s = Q(Pe, (e, t, a) => ({
51
+ }), y = re(xe, (e, a, u) => ({
52
52
  modelValue: e,
53
- "onUpdate:modelValue": t,
53
+ "onUpdate:modelValue": a,
54
54
  clearable: !0,
55
- disabled: a
56
- })), U = () => ({
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
- }), ke = m({
84
+ }), Ie = f({
234
85
  props: {
235
- ...Se()
86
+ ...Ee()
236
87
  },
237
88
  setup: (e, {
238
- slots: t
89
+ slots: a
239
90
  }) => {
240
- const a = _();
241
- return H(() => {
91
+ const u = ae();
92
+ return _(() => {
242
93
  if (!e.loading)
243
94
  return;
244
- let r = e.target;
245
- if (t.default ? r = document.getElementById(a) : e.target && me(e.target) && (r = document.querySelector("#" + e.target)), !r)
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 n = de.service({
248
- target: r,
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
- n && n.close();
109
+ l && l.close();
259
110
  };
260
- }, () => e.loading), () => t.default ? d("div", {
261
- id: a
262
- }, [t.default()]) : null;
111
+ }, () => e.loading), () => a.default ? d("div", {
112
+ id: u
113
+ }, [a.default()]) : null;
263
114
  }
264
- }), K = () => ({
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
- }), Fe = m({
147
+ }), Re = f({
297
148
  props: {
298
- ...z.props,
299
- ...K()
149
+ ...L.props,
150
+ ...H()
300
151
  },
301
152
  setup: (e, {
302
- slots: t,
303
- emit: a
153
+ slots: a,
154
+ emit: u
304
155
  }) => {
305
- const r = f(e.visible);
306
- S(() => {
307
- r.value !== e.visible && (r.value = e.visible);
156
+ const o = g(e.visible);
157
+ F(() => {
158
+ o.value !== e.visible && (o.value = e.visible);
308
159
  }, () => e.visible);
309
- const n = () => {
310
- var l;
311
- if ((l = e.cancelButtonProps) != null && l.onClick) {
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
- r.value = !1, a("update:visible", !1);
316
- }, u = () => {
317
- var l;
318
- if ((l = e.okButtonProps) != null && l.onClick) {
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
- a("ok");
323
- }, o = g(K());
324
- return () => d(z, c({
173
+ u("ok");
174
+ }, n = S(H());
175
+ return () => d(L, i({
325
176
  class: e.clsName
326
- }, i(e, ...o, "modelValue"), {
327
- closeOnClickModal: G(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
328
- modelValue: r.value,
329
- "onUpdate:modelValue": [(l) => r.value = l, (l) => {
330
- a("update:visible", l);
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
- a("cancel");
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(A, c(i(e.cancelButtonProps, "onClick"), {
339
- onClick: n
189
+ }, [d(w, i(p(e.cancelButtonProps, "onClick"), {
190
+ onClick: l
340
191
  }), {
341
192
  default: () => [e.cancelText]
342
- }), d(A, c({
193
+ }), d(w, i({
343
194
  type: "primary",
344
195
  loading: e.confirmLoading
345
- }, i(e.okButtonProps, "onClick"), {
346
- onClick: u
196
+ }, p(e.okButtonProps, "onClick"), {
197
+ onClick: r
347
198
  }), {
348
199
  default: () => [e.okText]
349
200
  })]),
350
- ...t
201
+ ...a
351
202
  });
352
203
  }
353
- }), qe = m({
204
+ }), qe = f({
354
205
  props: {
355
- ...M.props,
206
+ ...N.props,
356
207
  page: {
357
208
  type: Number,
358
209
  default: 1
359
210
  }
360
211
  },
361
212
  setup: (e, {
362
- slots: t,
363
- emit: a
213
+ slots: a,
214
+ emit: u
364
215
  }) => {
365
- const r = f(e.page), n = f(e.pageSize);
366
- S(() => {
367
- r.value !== e.page && (r.value = e.page);
368
- }, () => e.page), S(() => {
369
- n.value !== e.pageSize && (n.value = e.pageSize);
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 u = se(() => {
372
- a("composeChange", r.value, n.value);
373
- }, 300), o = () => {
374
- u(), a("update:page", r.value);
375
- }, l = () => {
376
- u(), a("update:pageSize", n.value);
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(M, c({
379
- currentPage: r.value,
380
- "onUpdate:currentPage": (p) => r.value = p,
381
- pageSize: n.value,
382
- "onUpdate:pageSize": (p) => n.value = p,
383
- onCurrentChange: o,
384
- onSizeChange: l
385
- }, i(e, "currentPage", "pageSize")), t);
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
- }), Ke = m({
238
+ }), Oe = f({
388
239
  props: {
389
- ...O.props
240
+ ...U.props
390
241
  },
391
242
  setup: (e, {
392
- slots: t
393
- }) => () => d(O, e, {
394
- reference: t.default,
395
- default: t.content
243
+ slots: a
244
+ }) => () => d(U, e, {
245
+ reference: a.default,
246
+ default: a.content
396
247
  })
397
- }), J = m({
248
+ }), J = () => ({
249
+ options: Array,
250
+ buttonStyle: {
251
+ type: String,
252
+ default: "default"
253
+ }
254
+ }), Be = f({
398
255
  props: {
399
- ...i(w.props, "label", "prop"),
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: t
415
- }) => () => d(w, c(i(e, "title", "label", "renderHeader", "prop", "dataIndex", "formatter", "customRender", "children"), {
416
- label: N(e.title) ? void 0 : e.title,
417
- renderHeader: N(e.title) ? () => e.title : void 0,
418
- prop: e.dataIndex,
419
- formatter: (a, r, n, u) => e.customRender ? e.customRender({
420
- value: n,
421
- text: n,
422
- record: a,
423
- column: r,
424
- index: u
425
- }) : n
426
- }), {
427
- default: () => [fe(e.children) > 0 && y(e.children, (a) => d(J, c({
428
- key: a.dataIndex
429
- }, a), t))],
430
- default: t[e.dataIndex],
431
- header: t[`${e.dataIndex}_header`]
432
- })
433
- }), he = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Te = m({
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
- ...L.props,
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: t,
448
- expose: a
531
+ slots: a,
532
+ expose: u
449
533
  }) => {
450
- const r = f(), n = _("table");
451
- return a($(he, r)), () => d(L, c({
452
- ref: r,
453
- id: n
454
- }, i(e, "columns", "dataSource", "loading"), {
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 u, o;
459
- return [(u = t.start) == null ? void 0 : u.call(t), y(e.columns, (l) => d(J, c({
460
- key: l.dataIndex
461
- }, l), t)), (o = t.default) == null ? void 0 : o.call(t), e.loading && d(ke, {
462
- target: n,
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
- ...ge(t, "append", "empty")
550
+ ...se(a, "append", "empty")
467
551
  });
468
552
  }
469
553
  });
470
- P.props = {
554
+ C.props = {
555
+ ...s.props,
471
556
  ...C.props,
472
- ...P.props,
473
- formMethods: { type: Array, default: W }
557
+ formMethods: { type: Array, default: ee }
474
558
  };
475
- F.props = {
476
- ...P.props,
477
- ...F.props,
559
+ R.props = {
560
+ ...C.props,
561
+ ...R.props,
478
562
  inline: { type: Boolean, default: !0 }
479
563
  };
480
- h.props = {
481
- ...v.props,
482
- ...h.props
564
+ B.props = {
565
+ ...h.props,
566
+ ...B.props
483
567
  };
484
- T.props = {
485
- ...Te.props,
486
- ...T.props
568
+ V.props = {
569
+ ...Me.props,
570
+ ...V.props
487
571
  };
488
- b.props = {
489
- ...ce.props,
490
- ...b.props
572
+ k.props = {
573
+ ...ve.props,
574
+ ...k.props
491
575
  };
492
- x.props = {
493
- ...b.props,
494
- ...x.props
576
+ z.props = {
577
+ ...k.props,
578
+ ...z.props
495
579
  };
496
- E.props = {
497
- ...P.props,
498
- ...E.props
580
+ A.props = {
581
+ ...C.props,
582
+ ...A.props
499
583
  };
500
- I.props = {
501
- ...Fe.props,
502
- ...I.props
584
+ M.props = {
585
+ ...Re.props,
586
+ ...M.props
503
587
  };
504
588
  export {
505
- W as FormMethods,
506
- Ce as ProCheckbox,
507
- Ve as ProForm,
508
- je as ProFormCascader,
509
- Ne as ProFormCheckbox,
510
- Me as ProFormDatePicker,
511
- Pe as ProFormItem,
512
- De as ProFormRadio,
513
- we as ProFormSelect,
514
- Ue as ProFormSwitch,
515
- ze as ProFormText,
516
- Ae as ProFormTextNumber,
517
- Oe as ProFormTimePicker,
518
- Le as ProFormTreeSelect,
519
- ke as ProLoading,
520
- Fe as ProModal,
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
- Ke as ProPopover,
523
- ve as ProRadio,
524
- be as ProSelect,
525
- Te as ProTable,
526
- J as ProTableColumn,
527
- he as TableMethods,
528
- s as createFormItemComponent,
529
- _ as createLoadingId
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
  };