@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/dist/index.es.js CHANGED
@@ -1,26 +1,26 @@
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";
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 = f({
10
+ }), xe = m({
11
11
  props: {
12
12
  ...h.props,
13
13
  ...W()
14
14
  },
15
15
  setup: (e, {
16
- slots: a
16
+ slots: t
17
17
  }) => {
18
18
  const u = S(W());
19
- return () => d(h, i(p(e, ...u, "name", "prop"), {
19
+ return () => c(h, i(p(e, ...u, "name", "prop"), {
20
20
  prop: e.prop || e.name
21
- }), a);
21
+ }), t);
22
22
  }
23
- }), ee = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], je = f({
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: a,
32
+ slots: t,
33
33
  emit: u,
34
34
  expose: o
35
35
  }) => {
36
- const l = e.model || Se({}), r = g();
36
+ const l = e.model || Se({}), n = g();
37
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);
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, r)), () => d(s, i({
45
- ref: r
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
- }), a);
49
+ }), t);
50
50
  }
51
- }), y = re(xe, (e, a, u) => ({
51
+ }), b = ne(xe, (e, t, u) => ({
52
52
  modelValue: e,
53
- "onUpdate:modelValue": a,
53
+ "onUpdate:modelValue": t,
54
54
  clearable: !0,
55
55
  disabled: u
56
- })), ae = (e = "comp") => e + "-" + Te(), Ee = () => ({
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 = f({
84
+ }), Ie = m({
85
85
  props: {
86
86
  ...Ee()
87
87
  },
88
88
  setup: (e, {
89
- slots: a
89
+ slots: t
90
90
  }) => {
91
- const u = ae();
91
+ const u = te();
92
92
  return _(() => {
93
93
  if (!e.loading)
94
94
  return;
95
95
  let o = e.target;
96
- if (a.default ? o = document.getElementById(u) : e.target && ke(e.target) && (o = document.querySelector("#" + e.target)), !o)
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 = ne.service({
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), () => a.default ? d("div", {
111
+ }, () => e.loading), () => t.default ? c("div", {
112
112
  id: u
113
- }, [a.default()]) : null;
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 = f({
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: a,
157
+ slots: t,
154
158
  emit: u
155
159
  }) => {
156
160
  const o = g(e.visible);
157
- F(() => {
161
+ T(() => {
158
162
  o.value !== e.visible && (o.value = e.visible);
159
163
  }, () => e.visible);
160
164
  const l = () => {
161
- var c;
162
- if ((c = e.cancelButtonProps) != null && c.onClick) {
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
- }, r = () => {
168
- var c;
169
- if ((c = e.okButtonProps) != null && c.onClick) {
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
- }, n = S(H());
175
- return () => d(L, i({
178
+ }, r = S(H());
179
+ return () => c(L, i({
176
180
  class: e.clsName
177
- }, p(e, ...n, "modelValue"), {
181
+ }, p(e, ...r, "modelValue"), {
178
182
  closeOnClickModal: Z(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
179
183
  modelValue: o.value,
180
- "onUpdate:modelValue": [(c) => o.value = c, (c) => {
181
- u("update:visible", c);
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 : () => d("div", {
191
+ footer: e.footer === !1 ? void 0 : () => c("div", {
188
192
  class: `${e.clsName}-operate`
189
- }, [d(w, i(p(e.cancelButtonProps, "onClick"), {
193
+ }, [c(w, i(p(e.cancelButtonProps, "onClick"), {
190
194
  onClick: l
191
195
  }), {
192
196
  default: () => [e.cancelText]
193
- }), d(w, i({
197
+ }), c(w, i({
194
198
  type: "primary",
195
199
  loading: e.confirmLoading
196
200
  }, p(e.okButtonProps, "onClick"), {
197
- onClick: r
201
+ onClick: n
198
202
  }), {
199
203
  default: () => [e.okText]
200
204
  })]),
201
- ...a
205
+ ...t
202
206
  });
203
207
  }
204
- }), qe = f({
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: a,
217
+ slots: t,
214
218
  emit: u
215
219
  }) => {
216
220
  const o = g(e.page), l = g(e.pageSize);
217
- F(() => {
221
+ T(() => {
218
222
  o.value !== e.page && (o.value = e.page);
219
- }, () => e.page), F(() => {
223
+ }, () => e.page), T(() => {
220
224
  l.value !== e.pageSize && (l.value = e.pageSize);
221
225
  }, () => e.pageSize);
222
- const r = he(() => {
226
+ const n = he(() => {
223
227
  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);
228
+ }, 300), r = () => {
229
+ n(), u("update:page", o.value);
230
+ }, d = () => {
231
+ n(), u("update:pageSize", l.value);
228
232
  };
229
- return () => d(N, i({
233
+ return () => c(N, i({
230
234
  currentPage: o.value,
231
- "onUpdate:currentPage": (t) => o.value = t,
235
+ "onUpdate:currentPage": (a) => o.value = a,
232
236
  pageSize: l.value,
233
- "onUpdate:pageSize": (t) => l.value = t,
234
- onCurrentChange: n,
235
- onSizeChange: c
236
- }, p(e, "currentPage", "pageSize")), a);
237
+ "onUpdate:pageSize": (a) => l.value = a,
238
+ onCurrentChange: r,
239
+ onSizeChange: d
240
+ }, p(e, "currentPage", "pageSize")), t);
237
241
  }
238
- }), Oe = f({
242
+ }), Oe = m({
239
243
  props: {
240
244
  ...U.props
241
245
  },
242
246
  setup: (e, {
243
- slots: a
244
- }) => () => d(U, e, {
245
- reference: a.default,
246
- default: a.content
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 = f({
262
+ }), Be = m({
255
263
  props: {
256
264
  ...D.props,
257
265
  ...J()
258
266
  },
259
267
  setup: (e, {
260
- slots: a,
268
+ slots: t,
261
269
  emit: u,
262
270
  expose: o
263
271
  }) => {
264
272
  const l = g();
265
- o(T(l));
266
- const r = S(J());
267
- return () => d(D, i({
273
+ o(F(l));
274
+ const n = S(J());
275
+ return () => c(D, i({
268
276
  ref: l
269
- }, p(e, r), {
270
- "onUpdate:modelValue": (n) => {
271
- u("update:modelValue", n || void 0);
277
+ }, p(e, n), {
278
+ "onUpdate:modelValue": (r) => {
279
+ u("update:modelValue", r || void 0);
272
280
  }
273
281
  }), {
274
282
  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
+ 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: () => [b || t.label]
285
- }) : d(le, i({
286
- key: t.value
287
- }, t, {
288
- label: t.value
292
+ default: () => [y || a.label]
293
+ }) : c(le, i({
294
+ key: a.value
295
+ }, a, {
296
+ label: a.value
289
297
  }), {
290
- default: () => [b || t.label]
298
+ default: () => [y || a.label]
291
299
  });
292
- }), (c = a.default) == null ? void 0 : c.call(a)];
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 = f({
316
+ }), Ve = m({
305
317
  props: {
306
318
  ...j.props,
307
319
  ...Q()
308
320
  },
309
321
  setup: (e, {
310
- slots: a,
322
+ slots: t,
311
323
  emit: u,
312
324
  expose: o
313
325
  }) => {
314
326
  const l = g();
315
- o(T(l));
316
- const r = S(Q());
317
- return () => d(j, i({
327
+ o(F(l));
328
+ const n = S(Q());
329
+ return () => c(j, i({
318
330
  ref: l
319
- }, p(e, r), {
320
- "onUpdate:modelValue": (n) => {
321
- u("update:modelValue", n);
331
+ }, p(e, n), {
332
+ "onUpdate:modelValue": (r) => {
333
+ u("update:modelValue", r);
322
334
  }
323
335
  }), {
324
336
  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
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: () => [b || t.label]
335
- }) : d(ce, i({
336
- key: t.value
337
- }, p(t, "value"), {
338
- label: t.value
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: () => [b || t.label]
352
+ default: () => [y || a.label]
341
353
  });
342
- }), (c = a.default) == null ? void 0 : c.call(a)];
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 = f({
360
+ }), ze = m({
349
361
  props: {
350
362
  ...q.props,
351
363
  ...X()
352
364
  },
353
365
  setup: (e, {
354
- slots: a,
366
+ slots: t,
355
367
  emit: u,
356
368
  expose: o
357
369
  }) => {
358
370
  const l = g();
359
- o(T(l));
360
- const r = S(X());
361
- return () => d(q, i({
371
+ o(F(l));
372
+ const n = S(X());
373
+ return () => c(q, i({
362
374
  ref: l
363
- }, p(e, r), {
364
- "onUpdate:modelValue": (n) => {
365
- u("update:modelValue", n || void 0);
375
+ }, p(e, n), {
376
+ "onUpdate:modelValue": (r) => {
377
+ u("update:modelValue", r || void 0);
366
378
  }
367
379
  }), {
368
380
  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]
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
- }), (c = a.default) == null ? void 0 : c.call(a)];
390
+ }), (d = t.default) == null ? void 0 : d.call(t)];
379
391
  },
380
- ...p(a, "default")
392
+ ...p(t, "default")
381
393
  });
382
394
  }
383
- }), Ke = f({
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: a,
403
+ slots: t,
392
404
  emit: u
393
- }) => () => d(O, i(p(e, "options"), {
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 = 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
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 n;
407
- return ((n = a.label) == null ? void 0 : n.call(a, r)) || r.label;
418
+ var r;
419
+ return ((r = t.label) == null ? void 0 : r.call(t, n)) || n.label;
408
420
  }
409
- })), (l = a.default) == null ? void 0 : l.call(a)];
421
+ })), (l = t.default) == null ? void 0 : l.call(t)];
410
422
  }
411
423
  })
412
- }), $e = y({
424
+ }), $e = b({
413
425
  InputComp: pe,
414
426
  valueType: "text",
415
427
  name: "PFromText"
416
- }), Ge = y({
417
- InputComp: me,
428
+ }), Ge = b({
429
+ InputComp: fe,
418
430
  valueType: "digit",
419
431
  name: "PFormNumber"
420
- }), We = y({
421
- InputComp: fe,
432
+ }), We = b({
433
+ InputComp: me,
422
434
  valueType: "date",
423
435
  name: "PFormDate"
424
- }), He = y({
425
- InputComp: be,
436
+ }), He = b({
437
+ InputComp: ye,
426
438
  valueType: "time",
427
439
  name: "PFormTime"
428
- }), Je = y({
440
+ }), Je = b({
429
441
  InputComp: ze,
430
442
  valueType: "select",
431
443
  name: "PFormSelect"
432
- }), Qe = y({
433
- InputComp: ye,
444
+ }), Qe = b({
445
+ InputComp: be,
434
446
  valueType: "treeSelect",
435
447
  name: "PFormTreeSelect"
436
- }), Xe = y({
448
+ }), Xe = b({
437
449
  InputComp: Be,
438
450
  valueType: "checkbox",
439
451
  name: "PFromCheckbox"
440
- }), Ye = y({
452
+ }), Ye = b({
441
453
  InputComp: Ve,
442
454
  valueType: "radio",
443
455
  name: "PFromRadio"
444
- }), Ze = y({
456
+ }), Ze = b({
445
457
  InputComp: ge,
446
458
  valueType: "switch",
447
459
  name: "PFromSwitch"
448
- }), _e = y({
460
+ }), _e = b({
449
461
  InputComp: Pe,
450
462
  valueType: "cascader",
451
463
  name: "PFormCascader"
452
- }), te = f({
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: a
481
+ slots: t
470
482
  }) => {
471
483
  const u = ({
472
- row: r,
473
- column: n,
474
- $index: c
484
+ row: n,
485
+ column: r,
486
+ $index: d
475
487
  }) => {
476
488
  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 = {
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: t,
485
- column: m,
486
- index: b
487
- }, E = (I = a.bodyCell) == null ? void 0 : I.call(a, x);
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: r,
492
- $index: n
503
+ column: n,
504
+ $index: r
493
505
  }) => {
494
506
  var P;
495
- const c = n, t = r.label, b = {
496
- ...r,
497
- title: t,
498
- dataIndex: r.property
507
+ const d = r, a = n.label, y = {
508
+ ...n,
509
+ title: a,
510
+ dataIndex: n.property
499
511
  };
500
- return ((P = a.headerCell) == null ? void 0 : P.call(a, {
501
- title: t,
502
- column: b,
503
- index: c
504
- })) || t;
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), () => d(K, i(p(e, "title", "dataIndex", "prop", "customRender", "children"), {
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, (r) => d(te, i({
512
- key: r.dataIndex
513
- }, r), a))],
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 = f({
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: a,
543
+ slots: t,
532
544
  expose: u
533
545
  }) => {
534
- const o = g(), l = ae("table");
535
- return u(Y(Ae, o)), () => d($, i({
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 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, {
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(a, "append", "empty")
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
- te as ProTableColumn,
622
+ ae as ProTableColumn,
611
623
  Ke as ProTabs,
612
624
  Ae as TableMethods,
613
- y as createFormItemComponent,
614
- ae as createLoadingId
625
+ b as createFormItemComponent,
626
+ te as createLoadingId
615
627
  };