@vue-start/element-pro 0.2.10 → 0.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,59 +1,59 @@
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 = () => ({
1
+ import { createExpose as Z, createFormItemCompFn as re, createExposeObj as T, ProForm as C, ProSearchForm as R, ProFormList as B, ProTable as M, ProDesc as k, ProCurdDesc as V, ProCurdForm as A, ProCurdModal as z, ProLayout as L } from "@vue-start/pro";
2
+ import { ElFormItem as s, ElForm as h, ElLoading as oe, ElDialog as j, ElButton as w, ElPagination as N, ElPopover as O, ElCheckboxGroup as U, ElCheckboxButton as le, ElCheckbox as ue, ElRadioGroup as D, ElRadioButton as de, ElRadio as ce, ElSelect as q, ElOption as ie, ElTabs as K, ElTabPane as pe, ElInput as fe, ElInputNumber as me, ElDatePicker as ye, ElTimePicker as be, ElTreeSelect as ge, ElSwitch as ve, ElCascader as Pe, ElTableColumn as $, ElTable as G, ElDescriptions as Se } from "element-plus";
3
+ import { defineComponent as m, createVNode as c, mergeProps as i, reactive as Ce, ref as g, toRaw as ke } from "vue";
4
+ import { keys as S, omit as p, isBoolean as _, isString as se, debounce as he, map as P, size as W, pick as Fe, get as Te } from "lodash";
5
+ import { useEffect as ee, generateId as xe, useWatch as F } from "@vue-start/hooks";
6
+ const H = () => ({
7
7
  name: {
8
8
  type: [String, Array]
9
9
  }
10
- }), xe = f({
10
+ }), Ee = m({
11
11
  props: {
12
- ...h.props,
13
- ...W()
12
+ ...s.props,
13
+ ...H()
14
14
  },
15
15
  setup: (e, {
16
- slots: a
16
+ slots: t
17
17
  }) => {
18
- const u = S(W());
19
- return () => d(h, i(p(e, ...u, "name", "prop"), {
18
+ const u = S(H());
19
+ return () => c(s, 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
+ }), te = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], De = m({
24
24
  props: {
25
- ...s.props,
25
+ ...h.props,
26
26
  hideRequiredMark: {
27
27
  type: [Boolean, Object],
28
28
  default: void 0
29
29
  }
30
30
  },
31
31
  setup: (e, {
32
- slots: a,
32
+ slots: t,
33
33
  emit: u,
34
34
  expose: o
35
35
  }) => {
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);
36
+ const l = e.model || Ce({}), n = g();
37
+ return ee(() => {
38
+ !n.value || (n.value.submit = () => {
39
+ var r;
40
+ (r = n.value) == null || r.validate((d, a) => {
41
+ d ? u("finish", ke(l)) : u("finishFailed", a);
42
42
  });
43
43
  });
44
- }, []), o(Y(ee, r)), () => d(s, i({
45
- ref: r
44
+ }, []), o(Z(te, n)), () => c(h, i({
45
+ ref: n
46
46
  }, p(e, "model"), {
47
- hideRequiredAsterisk: Z(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
47
+ hideRequiredAsterisk: _(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 = re(Ee, (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
+ })), ae = (e = "comp") => e + "-" + xe(), Ie = () => ({
57
57
  loading: {
58
58
  type: Boolean
59
59
  },
@@ -81,21 +81,21 @@ const W = () => ({
81
81
  customClass: {
82
82
  type: String
83
83
  }
84
- }), Ie = f({
84
+ }), Re = m({
85
85
  props: {
86
- ...Ee()
86
+ ...Ie()
87
87
  },
88
88
  setup: (e, {
89
- slots: a
89
+ slots: t
90
90
  }) => {
91
91
  const u = ae();
92
- return _(() => {
92
+ return ee(() => {
93
93
  if (!e.loading)
94
94
  return;
95
95
  let o = e.target;
96
- if (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 && se(e.target) && (o = document.querySelector("#" + e.target)), !o)
97
97
  return;
98
- const l = ne.service({
98
+ const l = oe.service({
99
99
  target: o,
100
100
  body: e.body,
101
101
  fullscreen: e.fullscreen,
@@ -108,11 +108,11 @@ const W = () => ({
108
108
  return () => {
109
109
  l && l.close();
110
110
  };
111
- }, () => e.loading), () => 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
- }), H = () => ({
115
+ }), J = () => ({
116
116
  clsName: {
117
117
  type: String,
118
118
  default: "pro-modal"
@@ -144,13 +144,17 @@ const W = () => ({
144
144
  type: [Object, Boolean],
145
145
  default: void 0
146
146
  }
147
- }), Re = f({
147
+ }), Be = m({
148
148
  props: {
149
- ...L.props,
150
- ...H()
149
+ ...j.props,
150
+ appendToBody: {
151
+ type: Boolean,
152
+ default: !0
153
+ },
154
+ ...J()
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);
@@ -158,50 +162,50 @@ const W = () => ({
158
162
  o.value !== e.visible && (o.value = e.visible);
159
163
  }, () => e.visible);
160
164
  const l = () => {
161
- var 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(J());
179
+ return () => c(j, i({
176
180
  class: e.clsName
177
- }, p(e, ...n, "modelValue"), {
178
- closeOnClickModal: Z(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
181
+ }, p(e, ...r, "modelValue"), {
182
+ closeOnClickModal: _(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,7 +214,7 @@ 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);
@@ -219,239 +223,247 @@ const W = () => ({
219
223
  }, () => e.page), F(() => {
220
224
  l.value !== e.pageSize && (l.value = e.pageSize);
221
225
  }, () => e.pageSize);
222
- const 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
+ }), Ke = m({
239
243
  props: {
240
- ...U.props
244
+ ...O.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(O, e, {
249
+ reference: t.default,
250
+ default: t.content
247
251
  })
248
- }), J = () => ({
252
+ }), Q = () => ({
249
253
  options: Array,
250
254
  buttonStyle: {
251
255
  type: String,
252
256
  default: "default"
257
+ },
258
+ optionType: {
259
+ type: String,
260
+ default: "default"
253
261
  }
254
- }), Be = f({
262
+ }), Me = m({
255
263
  props: {
256
- ...D.props,
257
- ...J()
264
+ ...U.props,
265
+ ...Q()
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
273
  o(T(l));
266
- const r = S(J());
267
- return () => d(D, i({
274
+ const n = S(Q());
275
+ return () => c(U, 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), P(e.options, (a) => {
285
+ var f;
286
+ const y = (f = t.label) == null ? void 0 : f.call(t, a);
287
+ return e.optionType === "button" || e.buttonStyle === "button" ? c(le, i({
288
+ key: a.value
289
+ }, p(a, "value"), {
290
+ label: a.value
283
291
  }), {
284
- default: () => [b || t.label]
285
- }) : d(le, i({
286
- key: t.value
287
- }, t, {
288
- label: t.value
292
+ default: () => [y || a.label]
293
+ }) : c(ue, 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
  }
296
- }), Q = () => ({
304
+ }), X = () => ({
297
305
  options: {
298
306
  type: Array
299
307
  },
300
308
  buttonStyle: {
301
309
  type: String,
302
310
  default: "default"
311
+ },
312
+ optionType: {
313
+ type: String,
314
+ default: "default"
303
315
  }
304
- }), Ve = f({
316
+ }), Ve = m({
305
317
  props: {
306
- ...j.props,
307
- ...Q()
318
+ ...D.props,
319
+ ...X()
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
327
  o(T(l));
316
- const r = S(Q());
317
- return () => d(j, i({
328
+ const n = S(X());
329
+ return () => c(D, 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), P(e.options, (a) => {
339
+ var f;
340
+ const y = (f = t.label) == null ? void 0 : f.call(t, a);
341
+ return e.optionType === "button" || e.buttonStyle === "button" ? c(de, i({
342
+ key: a.value
343
+ }, p(a, "value"), {
344
+ label: a.value
333
345
  }), {
334
- default: () => [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(ce, 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
- }), X = () => ({
358
+ }), Y = () => ({
347
359
  options: Array
348
- }), ze = f({
360
+ }), Ae = m({
349
361
  props: {
350
362
  ...q.props,
351
- ...X()
363
+ ...Y()
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
371
  o(T(l));
360
- const r = S(X());
361
- return () => d(q, i({
372
+ const n = S(Y());
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), P(e.options, (a) => {
383
+ var f;
384
+ const y = (f = t.label) == null ? void 0 : f.call(t, a);
385
+ return c(ie, i({
386
+ key: a.value
387
+ }, a), {
388
+ default: () => [y || a.label]
377
389
  });
378
- }), (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
+ }), $e = m({
384
396
  props: {
385
- ...O.props,
397
+ ...K.props,
386
398
  options: {
387
399
  type: Array
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(K, i(p(e, "options"), {
394
406
  "onUpdate:modelValue": (o) => {
395
407
  u("update:modelValue", o);
396
408
  }
397
409
  }), {
398
410
  default: () => {
399
411
  var o, l;
400
- return [(o = 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), P(e.options, (n) => c(pe, i({
413
+ key: n.value
414
+ }, p(n, "value"), {
415
+ name: n.value
404
416
  }), {
405
417
  label: () => {
406
- var 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({
413
- InputComp: pe,
424
+ }), Ge = b({
425
+ InputComp: fe,
414
426
  valueType: "text",
415
427
  name: "PFromText"
416
- }), Ge = y({
428
+ }), We = b({
417
429
  InputComp: me,
418
430
  valueType: "digit",
419
431
  name: "PFormNumber"
420
- }), We = y({
421
- InputComp: fe,
432
+ }), He = b({
433
+ InputComp: ye,
422
434
  valueType: "date",
423
435
  name: "PFormDate"
424
- }), He = y({
436
+ }), Je = b({
425
437
  InputComp: be,
426
438
  valueType: "time",
427
439
  name: "PFormTime"
428
- }), Je = y({
429
- InputComp: ze,
440
+ }), Qe = b({
441
+ InputComp: Ae,
430
442
  valueType: "select",
431
443
  name: "PFormSelect"
432
- }), Qe = y({
433
- InputComp: ye,
444
+ }), Xe = b({
445
+ InputComp: ge,
434
446
  valueType: "treeSelect",
435
447
  name: "PFormTreeSelect"
436
- }), Xe = y({
437
- InputComp: Be,
448
+ }), Ye = b({
449
+ InputComp: Me,
438
450
  valueType: "checkbox",
439
451
  name: "PFromCheckbox"
440
- }), Ye = y({
452
+ }), Ze = b({
441
453
  InputComp: Ve,
442
454
  valueType: "radio",
443
455
  name: "PFromRadio"
444
- }), Ze = y({
445
- InputComp: ge,
456
+ }), _e = b({
457
+ InputComp: ve,
446
458
  valueType: "switch",
447
459
  name: "PFromSwitch"
448
- }), _e = y({
460
+ }), et = b({
449
461
  InputComp: Pe,
450
462
  valueType: "cascader",
451
463
  name: "PFormCascader"
452
- }), te = f({
464
+ }), ne = m({
453
465
  props: {
454
- ...p(K.props, "label", "prop"),
466
+ ...p($.props, "label", "prop"),
455
467
  title: {
456
468
  type: String
457
469
  },
@@ -466,57 +478,57 @@ const W = () => ({
466
478
  }
467
479
  },
468
480
  setup: (e, {
469
- slots: 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 = {
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
+ const a = n, y = d, f = {
490
+ ...r,
491
+ title: r.label,
492
+ dataIndex: r.property
493
+ }, v = Te(n, f.dataIndex), x = {
494
+ value: v,
495
+ text: v,
496
+ record: a,
497
+ column: f,
498
+ index: y
499
+ }, E = (I = t.bodyCell) == null ? void 0 : I.call(t, x);
500
+ return E || (e.customRender ? e.customRender(x) : v);
489
501
  }, l = {
490
502
  header: ({
491
- column: r,
492
- $index: n
503
+ column: n,
504
+ $index: r
493
505
  }) => {
494
- var P;
495
- const c = n, t = r.label, b = {
496
- ...r,
497
- title: t,
498
- dataIndex: r.property
506
+ var v;
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 ((v = t.headerCell) == null ? void 0 : v.call(t, {
513
+ title: a,
514
+ column: y,
515
+ index: d
516
+ })) || a;
505
517
  }
506
518
  };
507
- return (!e.children || G(e.children) <= 0) && (l.default = u), () => d(K, i(p(e, "title", "dataIndex", "prop", "customRender", "children"), {
519
+ return (!e.children || W(e.children) <= 0) && (l.default = u), () => c($, i(p(e, "title", "dataIndex", "prop", "customRender", "children"), {
508
520
  prop: e.dataIndex,
509
521
  label: e.title
510
522
  }), {
511
- default: () => [G(e.children) > 0 && v(e.children, (r) => d(te, i({
512
- key: r.dataIndex
513
- }, r), a))],
523
+ default: () => [W(e.children) > 0 && P(e.children, (n) => c(ne, i({
524
+ key: n.dataIndex
525
+ }, n), t))],
514
526
  ...l
515
527
  });
516
528
  }
517
- }), Ae = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Me = f({
529
+ }), ze = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Le = m({
518
530
  props: {
519
- ...$.props,
531
+ ...G.props,
520
532
  columns: {
521
533
  type: Array
522
534
  },
@@ -528,33 +540,33 @@ const W = () => ({
528
540
  }
529
541
  },
530
542
  setup: (e, {
531
- slots: a,
543
+ slots: t,
532
544
  expose: u
533
545
  }) => {
534
546
  const o = g(), l = ae("table");
535
- return u(Y(Ae, o)), () => d($, i({
547
+ return u(Z(ze, o)), () => c(G, i({
536
548
  ref: o,
537
549
  id: l
538
550
  }, p(e, "columns", "dataSource", "loading"), {
539
551
  data: e.dataSource || e.data
540
552
  }), {
541
553
  default: () => {
542
- var 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), P(e.columns, (d) => c(ne, i({
556
+ key: d.dataIndex
557
+ }, d), t)), (r = t.default) == null ? void 0 : r.call(t), e.loading && c(Re, {
546
558
  target: l,
547
559
  loading: !0
548
560
  }, null)];
549
561
  },
550
- ...se(a, "append", "empty")
562
+ ...Fe(t, "append", "empty")
551
563
  });
552
564
  }
553
565
  });
554
566
  C.props = {
555
- ...s.props,
567
+ ...h.props,
556
568
  ...C.props,
557
- formMethods: { type: Array, default: ee }
569
+ formMethods: { type: Array, default: te }
558
570
  };
559
571
  R.props = {
560
572
  ...C.props,
@@ -562,54 +574,81 @@ R.props = {
562
574
  inline: { type: Boolean, default: !0 }
563
575
  };
564
576
  B.props = {
565
- ...h.props,
577
+ ...s.props,
566
578
  ...B.props
567
579
  };
568
- V.props = {
569
- ...Me.props,
570
- ...V.props
580
+ M.props = {
581
+ ...Le.props,
582
+ ...M.props
571
583
  };
572
584
  k.props = {
573
- ...ve.props,
585
+ ...Se.props,
574
586
  ...k.props
575
587
  };
576
- z.props = {
588
+ V.props = {
577
589
  ...k.props,
578
- ...z.props
590
+ ...V.props
579
591
  };
580
592
  A.props = {
581
593
  ...C.props,
582
594
  ...A.props
583
595
  };
584
- M.props = {
585
- ...Re.props,
586
- ...M.props
596
+ z.props = {
597
+ ...Be.props,
598
+ ...z.props
599
+ };
600
+ L.props = {
601
+ ...L.props,
602
+ convertMenuParams: {
603
+ type: Function,
604
+ default: ({ mode: e, activeKey: t, openKeys: u }) => ({ mode: e, defaultActive: t })
605
+ },
606
+ convertSubMenuParams: {
607
+ type: Function,
608
+ default: (e) => ({ index: e.value })
609
+ },
610
+ convertMenuItemParams: {
611
+ type: Function,
612
+ default: (e) => ({ index: e.value })
613
+ },
614
+ subMenuSlots: {
615
+ type: Object,
616
+ default: {
617
+ title: (e) => e.label
618
+ }
619
+ },
620
+ menuItemSlots: {
621
+ type: Object,
622
+ default: {
623
+ title: (e) => e.label
624
+ }
625
+ }
587
626
  };
588
627
  export {
589
- 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,
628
+ te as FormMethods,
629
+ Me as ProCheckbox,
630
+ De as ProForm,
631
+ et as ProFormCascader,
632
+ Ye as ProFormCheckbox,
633
+ He as ProFormDatePicker,
634
+ Ee as ProFormItem,
635
+ Ze as ProFormRadio,
636
+ Qe as ProFormSelect,
637
+ _e as ProFormSwitch,
638
+ Ge as ProFormText,
639
+ We as ProFormTextNumber,
640
+ Je as ProFormTimePicker,
641
+ Xe as ProFormTreeSelect,
642
+ Re as ProLoading,
643
+ Be as ProModal,
605
644
  qe as ProPagination,
606
- Oe as ProPopover,
645
+ Ke as ProPopover,
607
646
  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,
647
+ Ae as ProSelect,
648
+ Le as ProTable,
649
+ ne as ProTableColumn,
650
+ $e as ProTabs,
651
+ ze as TableMethods,
652
+ b as createFormItemComponent,
614
653
  ae as createLoadingId
615
654
  };