@vue-start/element-pro 0.2.31 → 0.2.33

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,31 +1,31 @@
1
- import { createExpose as Be, createFormItemCompFn as Qe, createExposeObj as D, useGetCompByKey as Ne, ElementKeys as m, useProConfig as Xe, ProForm as U, ProSearchForm as _, ProFormList as ae, ProTable as W, ProDesc as Z, ProCurdDesc as ne, ProCurdForm as le, ProCurdModal as re, ProUploaderText as oe, ProTip as ue, ProCurd as Ye, ProList as et, ProPage as tt, ProOperate as at, ProShowText as ce, ProShowDigit as nt, ProShowDate as lt, ProShowOptions as G, ProShowTree as de } from "@vue-start/pro";
2
- import { ElFormItem as H, ElForm as J, ElLoading as Oe, ElDialog as ie, ElDrawer as fe, ElPagination as ye, ElPopover as me, ElCheckboxGroup as se, ElCheckboxButton as rt, ElCheckbox as De, ElRadioGroup as ge, ElRadioButton as ot, ElRadio as ut, ElSelect as be, ElOption as ct, ElTabs as ve, ElTabPane as dt, ElMenu as j, ElUpload as pe, useFormItem as it, ElInputNumber as z, ElTree as Se, ElDropdown as Pe, ElDropdownMenu as ft, ElDropdownItem as yt, ElInput as mt, ElDatePicker as st, ElTimePicker as gt, ElTreeSelect as bt, ElSwitch as vt, ElCascader as pt, ElTableColumn as Q, ElTable as he, ElButton as X, ElDescriptions as Le, ElTooltip as Ue, ElRow as St, ElCol as Pt, ElDescriptionsItem as ht, ElScrollbar as Ct, ElEmpty as Kt } from "element-plus";
3
- import { defineComponent as C, createVNode as c, mergeProps as y, reactive as kt, ref as F, toRaw as xt, computed as N, Fragment as Ae, isVNode as Et, nextTick as Ft } from "vue";
4
- import { keys as I, omit as s, isBoolean as $, isString as Tt, debounce as Rt, map as M, size as B, pick as ee, get as O, isNumber as L, isArray as wt, filter as Ce, reduce as Ke, forEach as ke, isFunction as Mt, find as It, last as Vt } from "lodash";
5
- import { useEffect as q, generateId as Bt, useWatch as A, convertCollection as Nt, isValidFileType as Ot, convertFileSize as Dt, isSame as Lt, getNameMapByMergeOpts as Ut } from "@vue-start/hooks";
6
- const xe = () => ({
1
+ import { createExpose as ze, createFormItemCompFn as rt, createExposeObj as O, useGetCompByKey as je, ElementKeys as s, useProConfig as ot, ProForm as U, ProSearchForm as X, ProFormList as fe, ProTable as Y, ProDesc as ee, ProCurdDesc as ye, ProCurdForm as me, ProCurdModal as se, ProUploaderText as ge, ProTip as ve, ProCurd as ut, ProList as ct, ProPage as dt, ProOperate as it, ProShowText as be, ProShowDigit as ft, ProShowDate as yt, ProShowOptions as J, ProShowTree as pe } from "@vue-start/pro";
2
+ import { ElFormItem as te, ElForm as ae, ElLoading as $e, ElDialog as Se, ElDrawer as Pe, ElPagination as he, ElPopover as Ce, ElCheckboxGroup as Ke, ElCheckboxButton as mt, ElCheckbox as qe, ElRadioGroup as ke, ElRadioButton as st, ElRadio as gt, ElSelect as xe, ElOption as vt, ElTabs as Ee, ElTabPane as bt, ElMenu as $, ElUpload as Fe, useFormItem as pt, ElInputNumber as j, ElTree as Te, ElDropdown as Re, ElDropdownMenu as St, ElDropdownItem as Pt, ElInput as ht, ElDatePicker as Ct, ElTimePicker as Kt, ElTreeSelect as kt, ElSwitch as xt, ElCascader as Et, ElTableColumn as ne, ElTable as we, ElButton as le, ElDescriptions as Ge, ElTooltip as _e, ElRow as Ft, ElCol as Tt, ElDescriptionsItem as Rt, ElScrollbar as wt, ElEmpty as Mt } from "element-plus";
3
+ import { defineComponent as K, createVNode as c, mergeProps as m, reactive as It, ref as E, toRaw as Vt, computed as F, Fragment as We, isVNode as Bt, nextTick as Nt } from "vue";
4
+ import { keys as w, omit as v, isBoolean as q, isString as Ot, debounce as Dt, map as R, size as N, pick as ue, get as I, isNumber as D, isArray as Ze, filter as re, reduce as Q, isFunction as Lt, forEach as Me, find as Ut, last as At } from "lodash";
5
+ import { useEffect as G, generateId as zt, useWatch as A, convertCollection as jt, isValidFileType as $t, convertFileSize as qt, isSame as Gt, getNameMapByMergeOpts as _t } from "@vue-start/hooks";
6
+ const Ie = () => ({
7
7
  name: {
8
8
  type: [String, Array]
9
9
  }
10
- }), ze = C({
10
+ }), He = K({
11
11
  props: {
12
- ...H.props,
13
- ...xe()
12
+ ...te.props,
13
+ ...Ie()
14
14
  },
15
15
  setup: (e, {
16
16
  slots: t
17
17
  }) => {
18
- const u = I(xe());
19
- return () => c(H, y(s(e, ...u, "name", "prop"), {
18
+ const u = w(Ie());
19
+ return () => c(te, m(v(e, ...u, "name", "prop"), {
20
20
  prop: e.prop || e.name
21
21
  }), {
22
22
  label: e.label ? () => e.label : void 0,
23
23
  ...t
24
24
  });
25
25
  }
26
- }), je = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], At = C({
26
+ }), Je = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], Wt = K({
27
27
  props: {
28
- ...J.props,
28
+ ...ae.props,
29
29
  hideRequiredMark: {
30
30
  type: [Boolean, Object],
31
31
  default: void 0
@@ -36,27 +36,27 @@ const xe = () => ({
36
36
  emit: u,
37
37
  expose: a
38
38
  }) => {
39
- const o = e.model || kt({}), l = F();
40
- return q(() => {
39
+ const o = e.model || It({}), l = E();
40
+ return G(() => {
41
41
  !l.value || (l.value.submit = () => {
42
42
  var n;
43
43
  (n = l.value) == null || n.validate((f, r) => {
44
- f ? u("finish", xt(o)) : u("finishFailed", r);
44
+ f ? u("finish", Vt(o)) : u("finishFailed", r);
45
45
  });
46
46
  });
47
- }, []), a(Be(je, l)), () => c(J, y({
47
+ }, []), a(ze(Je, l)), () => c(ae, m({
48
48
  ref: l
49
- }, s(e, "model"), {
50
- hideRequiredAsterisk: $(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
49
+ }, v(e, "model"), {
50
+ hideRequiredAsterisk: q(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
51
51
  model: o
52
52
  }), t);
53
53
  }
54
- }), V = Qe(ze, (e, t, u) => ({
54
+ }), M = rt(He, (e, t, u) => ({
55
55
  modelValue: e,
56
56
  "onUpdate:modelValue": t,
57
57
  clearable: !0,
58
58
  disabled: u
59
- })), $e = (e = "comp") => e + "-" + Bt(), zt = () => ({
59
+ })), Qe = (e = "comp") => e + "-" + zt(), Zt = () => ({
60
60
  loading: {
61
61
  type: Boolean
62
62
  },
@@ -84,21 +84,21 @@ const xe = () => ({
84
84
  customClass: {
85
85
  type: String
86
86
  }
87
- }), qe = C({
87
+ }), Xe = K({
88
88
  props: {
89
- ...zt()
89
+ ...Zt()
90
90
  },
91
91
  setup: (e, {
92
92
  slots: t
93
93
  }) => {
94
- const u = $e();
95
- return q(() => {
94
+ const u = Qe();
95
+ return G(() => {
96
96
  if (!e.loading)
97
97
  return;
98
98
  let a = e.target;
99
- if (t.default ? a = document.getElementById(u) : e.target && Tt(e.target) && (a = document.querySelector("#" + e.target)), !a)
99
+ if (t.default ? a = document.getElementById(u) : e.target && Ot(e.target) && (a = document.querySelector("#" + e.target)), !a)
100
100
  return;
101
- const o = Oe.service({
101
+ const o = $e.service({
102
102
  target: a,
103
103
  body: e.body,
104
104
  fullscreen: e.fullscreen,
@@ -115,7 +115,7 @@ const xe = () => ({
115
115
  id: u
116
116
  }, [t.default()]) : null;
117
117
  }
118
- }), Y = () => ({
118
+ }), oe = () => ({
119
119
  clsName: {
120
120
  type: String,
121
121
  default: "pro-modal"
@@ -144,10 +144,9 @@ const xe = () => ({
144
144
  scrollProps: {
145
145
  type: Object
146
146
  }
147
- }), Ge = C({
148
- inheritAttrs: !1,
147
+ }), Ye = K({
149
148
  props: {
150
- ...ie.props,
149
+ ...Se.props,
151
150
  appendToBody: {
152
151
  type: Boolean,
153
152
  default: !0
@@ -156,22 +155,22 @@ const xe = () => ({
156
155
  type: Boolean,
157
156
  default: !0
158
157
  },
159
- ...Y()
158
+ ...oe()
160
159
  },
161
160
  setup: (e, {
162
161
  slots: t,
163
162
  emit: u,
164
163
  expose: a
165
164
  }) => {
166
- const o = F();
167
- a(D(o));
168
- const l = (S) => {
169
- u("update:modelValue", S), u("update:visible", S);
165
+ const o = E();
166
+ a(O(o));
167
+ const l = (C) => {
168
+ u("update:modelValue", C), u("update:visible", C), C || u("cancel");
170
169
  }, n = () => {
171
- u("cancel"), l(!1);
170
+ l(!1);
172
171
  }, f = () => {
173
172
  u("ok");
174
- }, r = Ne(), v = r(m.ProOperateKey), g = r(m.ScrollKey), b = N(() => [{
173
+ }, r = je(), S = r(s.ProOperateKey), P = r(s.ScrollKey), i = F(() => [{
175
174
  value: "cancel",
176
175
  label: e.cancelText,
177
176
  onClick: n
@@ -183,30 +182,30 @@ const xe = () => ({
183
182
  type: "primary"
184
183
  },
185
184
  onClick: f
186
- }]), K = I(Y());
187
- return () => c(ie, y({
185
+ }]), k = w(oe());
186
+ return () => c(Se, m({
188
187
  class: e.clsName,
189
188
  ref: o
190
- }, s(e, ...K), {
191
- closeOnClickModal: $(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
189
+ }, v(e, ...k), {
190
+ closeOnClickModal: q(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
192
191
  modelValue: e.visible || e.modelValue,
193
192
  "onUpdate:modelValue": l
194
193
  }), {
195
- footer: e.footer === !1 ? void 0 : () => c(v, {
196
- items: b.value
194
+ footer: e.footer === !1 ? void 0 : () => c(S, {
195
+ items: i.value
197
196
  }, null),
198
197
  ...t,
199
- default: () => c(g, y({
198
+ default: () => c(P, m({
200
199
  class: `${e.clsName}-scroll`
201
200
  }, e.scrollProps), {
202
201
  default: () => {
203
- var S;
204
- return [(S = t.default) == null ? void 0 : S.call(t)];
202
+ var C;
203
+ return [(C = t.default) == null ? void 0 : C.call(t)];
205
204
  }
206
205
  })
207
206
  });
208
207
  }
209
- }), jt = () => ({
208
+ }), Ht = () => ({
210
209
  clsName: {
211
210
  type: String,
212
211
  default: "pro-drawer"
@@ -231,10 +230,10 @@ const xe = () => ({
231
230
  scrollProps: {
232
231
  type: Object
233
232
  }
234
- }), $t = C({
233
+ }), Jt = K({
235
234
  props: {
236
- ...fe.props,
237
- ...jt(),
235
+ ...Pe.props,
236
+ ...Ht(),
238
237
  appendToBody: {
239
238
  type: Boolean,
240
239
  default: !0
@@ -249,15 +248,15 @@ const xe = () => ({
249
248
  emit: u,
250
249
  expose: a
251
250
  }) => {
252
- const o = F();
253
- a(D(o));
254
- const l = (S) => {
255
- u("update:modelValue", S), u("update:visible", S);
251
+ const o = E();
252
+ a(O(o));
253
+ const l = (C) => {
254
+ u("update:modelValue", C), u("update:visible", C), C || u("cancel");
256
255
  }, n = () => {
257
- u("cancel"), l(!1);
256
+ l(!1);
258
257
  }, f = () => {
259
258
  u("ok");
260
- }, r = Ne(), v = r(m.ProOperateKey), g = r(m.ScrollKey), b = N(() => [{
259
+ }, r = je(), S = r(s.ProOperateKey), P = r(s.ScrollKey), i = F(() => [{
261
260
  value: "cancel",
262
261
  label: e.cancelText,
263
262
  onClick: n
@@ -269,31 +268,31 @@ const xe = () => ({
269
268
  type: "primary"
270
269
  },
271
270
  onClick: f
272
- }]), K = I(Y());
273
- return () => c(fe, y({
271
+ }]), k = w(oe());
272
+ return () => c(Pe, m({
274
273
  class: e.clsName,
275
274
  ref: o
276
- }, s(e, K), {
275
+ }, v(e, k), {
277
276
  modelValue: e.visible || e.modelValue,
278
277
  "onUpdate:modelValue": l
279
278
  }), {
280
- footer: e.footer === !1 ? void 0 : () => c(v, {
281
- items: b.value
279
+ footer: e.footer === !1 ? void 0 : () => c(S, {
280
+ items: i.value
282
281
  }, null),
283
282
  ...t,
284
- default: () => c(g, y({
283
+ default: () => c(P, m({
285
284
  class: `${e.clsName}-scroll`
286
285
  }, e.scrollProps), {
287
286
  default: () => {
288
- var S;
289
- return [(S = t.default) == null ? void 0 : S.call(t)];
287
+ var C;
288
+ return [(C = t.default) == null ? void 0 : C.call(t)];
290
289
  }
291
290
  })
292
291
  });
293
292
  }
294
- }), qt = C({
293
+ }), Qt = K({
295
294
  props: {
296
- ...ye.props,
295
+ ...he.props,
297
296
  page: {
298
297
  type: Number,
299
298
  default: 1
@@ -303,39 +302,39 @@ const xe = () => ({
303
302
  slots: t,
304
303
  emit: u
305
304
  }) => {
306
- const a = F(e.page), o = F(e.pageSize);
305
+ const a = E(e.page), o = E(e.pageSize);
307
306
  A(() => {
308
307
  a.value !== e.page && (a.value = e.page);
309
308
  }, () => e.page), A(() => {
310
309
  o.value !== e.pageSize && (o.value = e.pageSize);
311
310
  }, () => e.pageSize);
312
- const l = Rt(() => {
311
+ const l = Dt(() => {
313
312
  u("composeChange", a.value, o.value);
314
313
  }, 300), n = () => {
315
314
  l(), u("update:page", a.value);
316
315
  }, f = () => {
317
316
  l(), u("update:pageSize", o.value);
318
317
  };
319
- return () => c(ye, y({
318
+ return () => c(he, m({
320
319
  currentPage: a.value,
321
320
  "onUpdate:currentPage": (r) => a.value = r,
322
321
  pageSize: o.value,
323
322
  "onUpdate:pageSize": (r) => o.value = r,
324
323
  onCurrentChange: n,
325
324
  onSizeChange: f
326
- }, s(e, "currentPage", "pageSize")), t);
325
+ }, v(e, "currentPage", "pageSize")), t);
327
326
  }
328
- }), Gt = C({
327
+ }), Xt = K({
329
328
  props: {
330
- ...me.props
329
+ ...Ce.props
331
330
  },
332
331
  setup: (e, {
333
332
  slots: t
334
- }) => () => c(me, e, {
333
+ }) => () => c(Ce, e, {
335
334
  reference: t.default,
336
335
  default: t.content
337
336
  })
338
- }), Ee = () => ({
337
+ }), Ve = () => ({
339
338
  options: Array,
340
339
  buttonStyle: {
341
340
  type: String,
@@ -345,49 +344,49 @@ const xe = () => ({
345
344
  type: String,
346
345
  default: "default"
347
346
  }
348
- }), _t = C({
347
+ }), Yt = K({
349
348
  props: {
350
- ...se.props,
351
- ...Ee()
349
+ ...Ke.props,
350
+ ...Ve()
352
351
  },
353
352
  setup: (e, {
354
353
  slots: t,
355
354
  emit: u,
356
355
  expose: a
357
356
  }) => {
358
- const o = F();
359
- a(D(o));
360
- const l = I(Ee());
361
- return () => c(se, y({
357
+ const o = E();
358
+ a(O(o));
359
+ const l = w(Ve());
360
+ return () => c(Ke, m({
362
361
  ref: o
363
- }, s(e, l), {
362
+ }, v(e, l), {
364
363
  "onUpdate:modelValue": (n) => {
365
364
  u("update:modelValue", n || void 0);
366
365
  }
367
366
  }), {
368
367
  default: () => {
369
368
  var n, f;
370
- return [(n = t.start) == null ? void 0 : n.call(t), M(e.options, (r) => {
371
- var g;
372
- const v = (g = t.label) == null ? void 0 : g.call(t, r);
373
- return e.optionType === "button" || e.buttonStyle === "button" ? c(rt, y({
369
+ return [(n = t.start) == null ? void 0 : n.call(t), R(e.options, (r) => {
370
+ var P;
371
+ const S = (P = t.label) == null ? void 0 : P.call(t, r);
372
+ return e.optionType === "button" || e.buttonStyle === "button" ? c(mt, m({
374
373
  key: r.value
375
- }, s(r, "value"), {
374
+ }, v(r, "value"), {
376
375
  label: r.value
377
376
  }), {
378
- default: () => [v || r.label]
379
- }) : c(De, y({
377
+ default: () => [S || r.label]
378
+ }) : c(qe, m({
380
379
  key: r.value
381
380
  }, r, {
382
381
  label: r.value
383
382
  }), {
384
- default: () => [v || r.label]
383
+ default: () => [S || r.label]
385
384
  });
386
385
  }), (f = t.default) == null ? void 0 : f.call(t)];
387
386
  }
388
387
  });
389
388
  }
390
- }), Fe = () => ({
389
+ }), Be = () => ({
391
390
  options: {
392
391
  type: Array
393
392
  },
@@ -399,88 +398,88 @@ const xe = () => ({
399
398
  type: String,
400
399
  default: "default"
401
400
  }
402
- }), Wt = C({
401
+ }), ea = K({
403
402
  props: {
404
- ...ge.props,
405
- ...Fe()
403
+ ...ke.props,
404
+ ...Be()
406
405
  },
407
406
  setup: (e, {
408
407
  slots: t,
409
408
  emit: u,
410
409
  expose: a
411
410
  }) => {
412
- const o = F();
413
- a(D(o));
414
- const l = I(Fe());
415
- return () => c(ge, y({
411
+ const o = E();
412
+ a(O(o));
413
+ const l = w(Be());
414
+ return () => c(ke, m({
416
415
  ref: o
417
- }, s(e, l), {
416
+ }, v(e, l), {
418
417
  "onUpdate:modelValue": (n) => {
419
418
  u("update:modelValue", n);
420
419
  }
421
420
  }), {
422
421
  default: () => {
423
422
  var n, f;
424
- return [(n = t.start) == null ? void 0 : n.call(t), M(e.options, (r) => {
425
- var g;
426
- const v = (g = t.label) == null ? void 0 : g.call(t, r);
427
- return e.optionType === "button" || e.buttonStyle === "button" ? c(ot, y({
423
+ return [(n = t.start) == null ? void 0 : n.call(t), R(e.options, (r) => {
424
+ var P;
425
+ const S = (P = t.label) == null ? void 0 : P.call(t, r);
426
+ return e.optionType === "button" || e.buttonStyle === "button" ? c(st, m({
428
427
  key: r.value
429
- }, s(r, "value"), {
428
+ }, v(r, "value"), {
430
429
  label: r.value
431
430
  }), {
432
- default: () => [v || r.label]
433
- }) : c(ut, y({
431
+ default: () => [S || r.label]
432
+ }) : c(gt, m({
434
433
  key: r.value
435
- }, s(r, "value"), {
434
+ }, v(r, "value"), {
436
435
  label: r.value
437
436
  }), {
438
- default: () => [v || r.label]
437
+ default: () => [S || r.label]
439
438
  });
440
439
  }), (f = t.default) == null ? void 0 : f.call(t)];
441
440
  }
442
441
  });
443
442
  }
444
- }), Te = () => ({
443
+ }), Ne = () => ({
445
444
  options: Array
446
- }), Zt = C({
445
+ }), ta = K({
447
446
  props: {
448
- ...be.props,
449
- ...Te()
447
+ ...xe.props,
448
+ ...Ne()
450
449
  },
451
450
  setup: (e, {
452
451
  slots: t,
453
452
  emit: u,
454
453
  expose: a
455
454
  }) => {
456
- const o = F();
457
- a(D(o));
458
- const l = I(Te());
459
- return () => c(be, y({
455
+ const o = E();
456
+ a(O(o));
457
+ const l = w(Ne());
458
+ return () => c(xe, m({
460
459
  ref: o
461
- }, s(e, l), {
460
+ }, v(e, l), {
462
461
  "onUpdate:modelValue": (n) => {
463
462
  u("update:modelValue", n || void 0);
464
463
  }
465
464
  }), {
466
465
  default: () => {
467
466
  var n, f;
468
- return [(n = t.start) == null ? void 0 : n.call(t), M(e.options, (r) => {
469
- var g;
470
- const v = (g = t.label) == null ? void 0 : g.call(t, r);
471
- return c(ct, y({
467
+ return [(n = t.start) == null ? void 0 : n.call(t), R(e.options, (r) => {
468
+ var P;
469
+ const S = (P = t.label) == null ? void 0 : P.call(t, r);
470
+ return c(vt, m({
472
471
  key: r.value
473
472
  }, r), {
474
- default: () => [v || r.label]
473
+ default: () => [S || r.label]
475
474
  });
476
475
  }), (f = t.default) == null ? void 0 : f.call(t)];
477
476
  },
478
- ...s(t, "default")
477
+ ...v(t, "default")
479
478
  });
480
479
  }
481
- }), Sa = C({
480
+ }), Ea = K({
482
481
  props: {
483
- ...ve.props,
482
+ ...Ee.props,
484
483
  options: {
485
484
  type: Array
486
485
  }
@@ -488,16 +487,16 @@ const xe = () => ({
488
487
  setup: (e, {
489
488
  slots: t,
490
489
  emit: u
491
- }) => () => c(ve, y(s(e, "options"), {
490
+ }) => () => c(Ee, m(v(e, "options"), {
492
491
  "onUpdate:modelValue": (a) => {
493
492
  u("update:modelValue", a);
494
493
  }
495
494
  }), {
496
495
  default: () => {
497
496
  var a, o;
498
- return [(a = t.start) == null ? void 0 : a.call(t), M(e.options, (l) => c(dt, y({
497
+ return [(a = t.start) == null ? void 0 : a.call(t), R(e.options, (l) => c(bt, m({
499
498
  key: l.value
500
- }, s(l, "value"), {
499
+ }, v(l, "value"), {
501
500
  name: l.value
502
501
  }), {
503
502
  label: () => {
@@ -508,7 +507,7 @@ const xe = () => ({
508
507
  },
509
508
  ...t
510
509
  })
511
- }), te = {
510
+ }), ce = {
512
511
  convertSubMenuProps: {
513
512
  type: Function
514
513
  },
@@ -518,13 +517,13 @@ const xe = () => ({
518
517
  onMenuItemClick: {
519
518
  type: Function
520
519
  }
521
- }, _e = I(te), We = C({
520
+ }, et = w(ce), tt = K({
522
521
  inheritAttrs: !1,
523
522
  props: {
524
523
  menu: {
525
524
  type: Object
526
525
  },
527
- ...te
526
+ ...ce
528
527
  },
529
528
  setup: (e, {
530
529
  slots: t
@@ -536,17 +535,17 @@ const xe = () => ({
536
535
  return () => {
537
536
  var o, l;
538
537
  const a = e.menu;
539
- return (a == null ? void 0 : a.children) && B(a.children) > 0 ? c(j.SubMenu, y({
538
+ return (a == null ? void 0 : a.children) && N(a.children) > 0 ? c($.SubMenu, m({
540
539
  index: a == null ? void 0 : a.value
541
540
  }, (o = e.convertSubMenuProps) == null ? void 0 : o.call(e, a)), {
542
- default: () => [M(a.children, (n) => c(We, y({
541
+ default: () => [R(a.children, (n) => c(tt, m({
543
542
  menu: n
544
- }, ee(e, _e)), t))],
543
+ }, ue(e, et)), t))],
545
544
  title: () => {
546
545
  var n;
547
546
  return ((n = t.title) == null ? void 0 : n.call(t, a)) || (a == null ? void 0 : a.label);
548
547
  }
549
- }) : c(j.MenuItem, y({
548
+ }) : c($.MenuItem, m({
550
549
  index: a == null ? void 0 : a.value
551
550
  }, (l = e.convertMenuItemProps) == null ? void 0 : l.call(e, a), {
552
551
  onClick: u
@@ -562,7 +561,7 @@ const xe = () => ({
562
561
  });
563
562
  };
564
563
  }
565
- }), Re = () => ({
564
+ }), Oe = () => ({
566
565
  activeKey: {
567
566
  type: String
568
567
  },
@@ -577,43 +576,43 @@ const xe = () => ({
577
576
  label: "label"
578
577
  }
579
578
  },
580
- ...te
581
- }), Ht = C({
579
+ ...ce
580
+ }), aa = K({
582
581
  props: {
583
- ...s(j.props, "defaultActive"),
584
- ...Re()
582
+ ...v($.props, "defaultActive"),
583
+ ...Oe()
585
584
  },
586
585
  setup: (e, {
587
586
  slots: t
588
587
  }) => {
589
- const u = F(e.activeKey);
588
+ const u = E(e.activeKey);
590
589
  A(() => {
591
590
  e.activeKey !== u.value && (u.value = e.activeKey);
592
591
  }, () => e.activeKey);
593
- const a = N(() => {
592
+ const a = F(() => {
594
593
  var l;
595
- return Nt(e.options, (n) => {
596
- var v, g;
597
- const f = ((v = e.fieldNames) == null ? void 0 : v.value) || "value", r = ((g = e.fieldNames) == null ? void 0 : g.label) || "label";
594
+ return jt(e.options, (n) => {
595
+ var S, P;
596
+ const f = ((S = e.fieldNames) == null ? void 0 : S.value) || "value", r = ((P = e.fieldNames) == null ? void 0 : P.label) || "label";
598
597
  return {
599
- ...s(n, f, r),
600
- value: O(n, f),
601
- label: O(n, r)
598
+ ...v(n, f, r),
599
+ value: I(n, f),
600
+ label: I(n, r)
602
601
  };
603
602
  }, {
604
603
  children: ((l = e.fieldNames) == null ? void 0 : l.children) || "children",
605
604
  childrenName: "children"
606
605
  });
607
- }), o = I(Re());
608
- return () => c(j, y({
606
+ }), o = w(Oe());
607
+ return () => c($, m({
609
608
  defaultActive: u.value
610
- }, s(e, o)), {
611
- default: () => c(Ae, null, [M(a.value, (l) => c(We, y({
609
+ }, v(e, o)), {
610
+ default: () => c(We, null, [R(a.value, (l) => c(tt, m({
612
611
  menu: l
613
- }, ee(e, _e)), t))])
612
+ }, ue(e, et)), t))])
614
613
  });
615
614
  }
616
- }), we = () => ({
615
+ }), De = () => ({
617
616
  modelValue: {
618
617
  type: Array,
619
618
  default: void 0
@@ -644,10 +643,10 @@ const xe = () => ({
644
643
  type: Function,
645
644
  default: void 0
646
645
  }
647
- }), Jt = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], Ze = C({
646
+ }), na = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], at = K({
648
647
  props: {
649
- ...s(pe.props, "fileList"),
650
- ...we()
648
+ ...v(Fe.props, "fileList"),
649
+ ...De()
651
650
  },
652
651
  setup: (e, {
653
652
  slots: t,
@@ -656,95 +655,95 @@ const xe = () => ({
656
655
  }) => {
657
656
  const {
658
657
  showMsg: o
659
- } = Xe(), l = F();
660
- u(D(l, Jt));
658
+ } = ot(), l = E();
659
+ u(O(l, na));
661
660
  const {
662
661
  formItem: n
663
- } = it(), f = () => wt(e.modelValue) ? M(e.modelValue, (i) => {
664
- var d;
665
- return ((d = e.convertItemData) == null ? void 0 : d.call(e, i)) || i;
666
- }) : [], r = F(f());
667
- let v = !1;
668
- const g = () => {
669
- var d;
670
- v = !0;
671
- const i = Ce(r.value, (p) => p.status === "success");
672
- a("update:modelValue", M(i, (p) => {
673
- var x;
674
- return ((x = e.convertResponseData) == null ? void 0 : x.call(e, p)) || p;
675
- })), (d = n == null ? void 0 : n.validate) == null || d.call(n, "change");
662
+ } = pt(), f = () => Ze(e.modelValue) ? R(e.modelValue, (d) => {
663
+ var g;
664
+ return ((g = e.convertItemData) == null ? void 0 : g.call(e, d)) || d;
665
+ }) : [], r = E(f());
666
+ let S = !1;
667
+ const P = () => {
668
+ var g;
669
+ S = !0;
670
+ const d = re(r.value, (p) => p.status === "success");
671
+ a("update:modelValue", R(d, (p) => {
672
+ var b;
673
+ return ((b = e.convertResponseData) == null ? void 0 : b.call(e, p)) || p;
674
+ })), (g = n == null ? void 0 : n.validate) == null || g.call(n, "change");
676
675
  };
677
676
  A(() => {
678
- v || (r.value = f(), v = !1);
677
+ S || (r.value = f(), S = !1);
679
678
  }, () => e.modelValue);
680
- let b;
681
- const K = () => {
682
- e.globalLoading && (b = Oe.service({
679
+ let i;
680
+ const k = () => {
681
+ e.globalLoading && (i = $e.service({
683
682
  lock: !0,
684
683
  text: "\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E...",
685
- ...$(e.globalLoading) ? {} : e.globalLoading
684
+ ...q(e.globalLoading) ? {} : e.globalLoading
686
685
  }));
687
- }, S = () => {
688
- e.globalLoading && (b == null || b.close());
686
+ }, C = () => {
687
+ e.globalLoading && (i == null || i.close());
689
688
  };
690
- q(() => () => {
691
- S();
689
+ G(() => () => {
690
+ C();
692
691
  }, []);
693
- const T = (i, d) => {
692
+ const x = (d, g) => {
694
693
  if (e.onErrorMsg) {
695
- e.onErrorMsg(i, d);
694
+ e.onErrorMsg(d, g);
696
695
  return;
697
696
  }
698
697
  o({
699
698
  type: "error",
700
- message: d
699
+ message: g
701
700
  });
702
- }, P = (i) => {
703
- var d;
701
+ }, _ = (d) => {
702
+ var g;
704
703
  if (e.beforeUpload)
705
- return e.beforeUpload(i);
706
- if (e.accept && !Ot(e.accept, i.name))
707
- return T("FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
708
- if (L(i.size)) {
709
- if (i.size <= 0)
710
- return T("FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
711
- if (L(e.maxSize) && i.size > e.maxSize)
712
- return T("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${Dt(e.maxSize)}\u7684\u6587\u4EF6`), !1;
704
+ return e.beforeUpload(d);
705
+ if (e.accept && !$t(e.accept, d.name))
706
+ return x("FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
707
+ if (D(d.size)) {
708
+ if (d.size <= 0)
709
+ return x("FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
710
+ if (D(e.maxSize) && d.size > e.maxSize)
711
+ return x("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${qt(e.maxSize)}\u7684\u6587\u4EF6`), !1;
713
712
  }
714
- return (d = e.onStart) == null || d.call(e, i), K(), !0;
715
- }, h = (i, d, p) => {
716
- var x;
717
- (x = e.onSuccess) == null || x.call(e, i, d, p), g(), S();
718
- }, E = (i, d, p) => {
719
- var x;
720
- (x = e.onError) == null || x.call(e, i, d, p), S(), T("UploadError", "\u4E0A\u4F20\u5931\u8D25");
721
- }, R = (i, d) => {
713
+ return (g = e.onStart) == null || g.call(e, d), k(), !0;
714
+ }, W = (d, g, p) => {
715
+ var b;
716
+ (b = e.onSuccess) == null || b.call(e, d, g, p), P(), C();
717
+ }, Z = (d, g, p) => {
718
+ var b;
719
+ (b = e.onError) == null || b.call(e, d, g, p), C(), x("UploadError", "\u4E0A\u4F20\u5931\u8D25");
720
+ }, H = (d, g) => {
722
721
  var p;
723
- r.value = Ce(r.value, (x) => !(i.uid === x.uid && i.name === x.name)), (p = e.onRemove) == null || p.call(e, i, d), g();
724
- }, w = N(() => L(e.limit) ? e.limit > B(r.value) : !0), k = I(we());
722
+ r.value = re(r.value, (b) => !(d.uid === b.uid && d.name === b.name)), (p = e.onRemove) == null || p.call(e, d, g), P();
723
+ }, y = F(() => D(e.limit) ? e.limit > N(r.value) : !0), h = w(De());
725
724
  return () => {
726
- var i, d;
725
+ var d, g;
727
726
  return c("div", {
728
- class: `pro-uploader ${w.value ? "" : "pro-uploader-limit"}`
729
- }, [(i = t.start) == null ? void 0 : i.call(t), c(pe, y({
727
+ class: `pro-uploader ${y.value ? "" : "pro-uploader-limit"}`
728
+ }, [(d = t.start) == null ? void 0 : d.call(t), c(Fe, m({
730
729
  ref: l,
731
730
  fileList: r.value,
732
731
  "onUpdate:fileList": (p) => r.value = p
733
- }, s(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...k), {
734
- beforeUpload: P,
735
- onSuccess: h,
736
- onError: E,
737
- onRemove: R
732
+ }, v(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...h), {
733
+ beforeUpload: _,
734
+ onSuccess: W,
735
+ onError: Z,
736
+ onRemove: H
738
737
  }), {
739
738
  default: () => {
740
- var p, x;
741
- return [w.value && c(Ae, null, [((p = t.default) == null ? void 0 : p.call(t)) || ((x = e.renderDom) == null ? void 0 : x.call(e))])];
739
+ var p, b;
740
+ return [y.value && c(We, null, [((p = t.default) == null ? void 0 : p.call(t)) || ((b = e.renderDom) == null ? void 0 : b.call(e))])];
742
741
  },
743
- ...s(t, "default")
744
- }), (d = t.end) == null ? void 0 : d.call(t)]);
742
+ ...v(t, "default")
743
+ }), (g = t.end) == null ? void 0 : g.call(t)]);
745
744
  };
746
745
  }
747
- }), Me = () => ({
746
+ }), Le = () => ({
748
747
  modelValue: {
749
748
  type: Array
750
749
  },
@@ -761,54 +760,54 @@ const xe = () => ({
761
760
  divider: {
762
761
  type: Function
763
762
  }
764
- }), Qt = C({
763
+ }), la = K({
765
764
  props: {
766
- ...s(z.props, "modelValue"),
765
+ ...v(j.props, "modelValue"),
767
766
  controlsPosition: {
768
767
  type: String,
769
768
  default: "right"
770
769
  },
771
- ...Me()
770
+ ...Le()
772
771
  },
773
772
  setup: (e, {
774
773
  slots: t,
775
774
  emit: u
776
775
  }) => {
777
- const a = F(O(e.modelValue, 0)), o = F(O(e.modelValue, 1));
776
+ const a = E(I(e.modelValue, 0)), o = E(I(e.modelValue, 1));
778
777
  let l = !1;
779
778
  A(() => {
780
- l || (a.value = O(e.modelValue, 0), o.value = O(e.modelValue, 1)), l = !1;
779
+ l || (a.value = I(e.modelValue, 0), o.value = I(e.modelValue, 1)), l = !1;
781
780
  }, [e.modelValue, () => e.modelValue]);
782
781
  const n = () => {
783
- l = !0, e.singleEmit ? u("update:modelValue", [a.value, o.value]) : L(a.value) && L(o.value) ? u("update:modelValue", [a.value, o.value]) : u("update:modelValue", null);
784
- }, f = (b) => {
785
- for (let K = 0; K < b.length; K++)
786
- if (L(b[K]))
787
- return b[K];
788
- }, r = N(() => {
789
- var b;
790
- return f([o.value, (b = e.start) == null ? void 0 : b.max, e.max]);
791
- }), v = N(() => {
792
- var b;
793
- return f([a.value, (b = e.end) == null ? void 0 : b.min, e.min]);
794
- }), g = I(Me());
782
+ l = !0, e.singleEmit ? u("update:modelValue", [a.value, o.value]) : D(a.value) && D(o.value) ? u("update:modelValue", [a.value, o.value]) : u("update:modelValue", null);
783
+ }, f = (i) => {
784
+ for (let k = 0; k < i.length; k++)
785
+ if (D(i[k]))
786
+ return i[k];
787
+ }, r = F(() => {
788
+ var i;
789
+ return f([o.value, (i = e.start) == null ? void 0 : i.max, e.max]);
790
+ }), S = F(() => {
791
+ var i;
792
+ return f([a.value, (i = e.end) == null ? void 0 : i.min, e.min]);
793
+ }), P = w(Le());
795
794
  return () => {
796
- var K, S;
797
- const b = s(e, ...g, "min", "max");
795
+ var k, C;
796
+ const i = v(e, ...P, "min", "max");
798
797
  return c("span", {
799
798
  class: "pro-number-range"
800
- }, [c(z, y(b, s(e.start, "max"), {
799
+ }, [c(j, m(i, v(e.start, "max"), {
801
800
  max: r.value,
802
801
  modelValue: a.value,
803
- "onUpdate:modelValue": [(T) => a.value = T, n]
804
- }), null), c("span", null, [((K = t.divider) == null ? void 0 : K.call(t)) || ((S = e.divider) == null ? void 0 : S.call(e)) || " - "]), c(z, y(b, s(e.start, "min"), {
805
- min: v.value,
802
+ "onUpdate:modelValue": [(x) => a.value = x, n]
803
+ }), null), c("span", null, [((k = t.divider) == null ? void 0 : k.call(t)) || ((C = e.divider) == null ? void 0 : C.call(e)) || " - "]), c(j, m(i, v(e.start, "min"), {
804
+ min: S.value,
806
805
  modelValue: o.value,
807
- "onUpdate:modelValue": [(T) => o.value = T, n]
806
+ "onUpdate:modelValue": [(x) => o.value = x, n]
808
807
  }), null)]);
809
808
  };
810
809
  }
811
- }), Ie = () => ({
810
+ }), Ue = () => ({
812
811
  treeData: {
813
812
  type: Array
814
813
  },
@@ -825,15 +824,15 @@ const xe = () => ({
825
824
  checkedKeys: {
826
825
  type: Array
827
826
  }
828
- }), Pa = C({
827
+ }), Fa = K({
829
828
  props: {
830
- ...Se.props,
831
- ...Ie()
829
+ ...Te.props,
830
+ ...Ue()
832
831
  },
833
832
  setup: (e, {
834
833
  slots: t
835
834
  }) => {
836
- const u = I(Ie()), o = (() => {
835
+ const u = w(Ue()), o = (() => {
837
836
  const l = e.fieldNames;
838
837
  if (!!l)
839
838
  return {
@@ -846,45 +845,45 @@ const xe = () => ({
846
845
  })();
847
846
  return () => {
848
847
  var l;
849
- return c(Se, y(s(e, u), {
848
+ return c(Te, m(v(e, u), {
850
849
  data: e.treeData || e.data,
851
850
  props: o || e.props,
852
851
  nodeKey: ((l = e.fieldNames) == null ? void 0 : l.key) || e.nodeKey,
853
- showCheckbox: $(e.selectable) ? e.selectable : e.showCheckbox,
852
+ showCheckbox: q(e.selectable) ? e.selectable : e.showCheckbox,
854
853
  defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
855
854
  defaultCheckedKeys: e.checkedKeys || e.checkedKeys
856
855
  }), t);
857
856
  };
858
857
  }
859
858
  });
860
- function Xt(e) {
861
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Et(e);
859
+ function ra(e) {
860
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Bt(e);
862
861
  }
863
- const Ve = () => ({
862
+ const Ae = () => ({
864
863
  options: Array
865
- }), Yt = C({
864
+ }), oa = K({
866
865
  props: {
867
- ...Pe.props,
868
- ...Ve()
866
+ ...Re.props,
867
+ ...Ae()
869
868
  },
870
869
  setup: (e, {
871
870
  slots: t,
872
871
  expose: u
873
872
  }) => {
874
- const a = F();
875
- u(D(a));
876
- const o = I(Ve());
877
- return () => c(Pe, y({
873
+ const a = E();
874
+ u(O(a));
875
+ const o = w(Ae());
876
+ return () => c(Re, m({
878
877
  ref: a
879
- }, s(e, o)), {
878
+ }, v(e, o)), {
880
879
  dropdown: () => {
881
880
  let l;
882
- return c(ft, null, Xt(l = M(e.options, (n) => {
881
+ return c(St, null, ra(l = R(e.options, (n) => {
883
882
  var r;
884
883
  const f = (r = t.label) == null ? void 0 : r.call(t, n);
885
- return c(yt, y({
884
+ return c(Pt, m({
886
885
  command: n.value
887
- }, s(n, "value", "label")), {
886
+ }, v(n, "value", "label")), {
888
887
  default: () => [f || n.label]
889
888
  });
890
889
  })) ? l : {
@@ -894,53 +893,53 @@ const Ve = () => ({
894
893
  ...t
895
894
  });
896
895
  }
897
- }), ea = V({
898
- InputComp: mt,
896
+ }), ua = M({
897
+ InputComp: ht,
899
898
  valueType: "text",
900
899
  name: "PFromText"
901
- }), ta = V({
902
- InputComp: z,
900
+ }), ca = M({
901
+ InputComp: j,
903
902
  valueType: "digit",
904
903
  name: "PFormNumber"
905
- }), aa = V({
906
- InputComp: Qt,
904
+ }), da = M({
905
+ InputComp: la,
907
906
  valueType: "digitRange",
908
907
  name: "PFormNumberRange"
909
- }), na = V({
910
- InputComp: st,
908
+ }), ia = M({
909
+ InputComp: Ct,
911
910
  valueType: "date",
912
911
  name: "PFormDate"
913
- }), la = V({
914
- InputComp: gt,
912
+ }), fa = M({
913
+ InputComp: Kt,
915
914
  valueType: "time",
916
915
  name: "PFormTime"
917
- }), ra = V({
918
- InputComp: Zt,
916
+ }), ya = M({
917
+ InputComp: ta,
919
918
  valueType: "select",
920
919
  name: "PFormSelect"
921
- }), oa = V({
922
- InputComp: bt,
920
+ }), ma = M({
921
+ InputComp: kt,
923
922
  valueType: "treeSelect",
924
923
  name: "PFormTreeSelect"
925
- }), ua = V({
926
- InputComp: _t,
924
+ }), sa = M({
925
+ InputComp: Yt,
927
926
  valueType: "checkbox",
928
927
  name: "PFromCheckbox"
929
- }), ca = V({
930
- InputComp: Wt,
928
+ }), ga = M({
929
+ InputComp: ea,
931
930
  valueType: "radio",
932
931
  name: "PFromRadio"
933
- }), da = V({
934
- InputComp: vt,
932
+ }), va = M({
933
+ InputComp: xt,
935
934
  valueType: "switch",
936
935
  name: "PFromSwitch"
937
- }), ia = V({
938
- InputComp: pt,
936
+ }), ba = M({
937
+ InputComp: Et,
939
938
  valueType: "cascader",
940
939
  name: "PFormCascader"
941
- }), He = C({
940
+ }), nt = K({
942
941
  props: {
943
- ...s(Q.props, "label", "prop"),
942
+ ...v(ne.props, "label", "prop"),
944
943
  title: {
945
944
  type: String
946
945
  },
@@ -962,48 +961,48 @@ const Ve = () => ({
962
961
  column: n,
963
962
  $index: f
964
963
  }) => {
965
- var T;
966
- const r = l, v = f, g = {
964
+ var x;
965
+ const r = l, S = f, P = {
967
966
  ...n,
968
967
  title: n.label,
969
968
  dataIndex: n.property
970
- }, b = O(l, g.dataIndex), K = {
971
- value: b,
972
- text: b,
969
+ }, i = I(l, P.dataIndex), k = {
970
+ value: i,
971
+ text: i,
973
972
  record: r,
974
- column: g,
975
- index: v
976
- }, S = (T = t.bodyCell) == null ? void 0 : T.call(t, K);
977
- return S || (e.customRender ? e.customRender(K) : b);
973
+ column: P,
974
+ index: S
975
+ }, C = (x = t.bodyCell) == null ? void 0 : x.call(t, k);
976
+ return C || (e.customRender ? e.customRender(k) : i);
978
977
  }, o = {
979
978
  header: ({
980
979
  column: l,
981
980
  $index: n
982
981
  }) => {
983
- var b;
984
- const f = n, r = l.label, v = {
982
+ var i;
983
+ const f = n, r = l.label, S = {
985
984
  ...l,
986
985
  title: r,
987
986
  dataIndex: l.property
988
987
  };
989
- return ((b = t.headerCell) == null ? void 0 : b.call(t, {
988
+ return ((i = t.headerCell) == null ? void 0 : i.call(t, {
990
989
  title: r,
991
- column: v,
990
+ column: S,
992
991
  index: f
993
992
  })) || r;
994
993
  }
995
994
  };
996
- return (!e.children || B(e.children) <= 0) && (o.default = u), () => c(Q, y(s(e, "title", "dataIndex", "prop", "customRender", "children"), {
995
+ return (!e.children || N(e.children) <= 0) && (o.default = u), () => c(ne, m(v(e, "title", "dataIndex", "prop", "customRender", "children"), {
997
996
  prop: e.dataIndex,
998
997
  label: e.title
999
998
  }), {
1000
- default: () => [B(e.children) > 0 && M(e.children, (l) => c(He, y({
999
+ default: () => [N(e.children) > 0 && R(e.children, (l) => c(nt, m({
1001
1000
  key: l.dataIndex
1002
1001
  }, l), t))],
1003
1002
  ...o
1004
1003
  });
1005
1004
  }
1006
- }), fa = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], ya = () => ({
1005
+ }), pa = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Sa = () => ({
1007
1006
  columns: {
1008
1007
  type: Array
1009
1008
  },
@@ -1017,140 +1016,147 @@ const Ve = () => ({
1017
1016
  type: Object
1018
1017
  },
1019
1018
  selectedRowKeys: {
1020
- type: Array
1019
+ type: [Array, String]
1021
1020
  },
1022
1021
  rowSelection: {
1023
1022
  type: Object,
1024
1023
  default: void 0
1025
1024
  }
1026
- }), Je = C({
1025
+ }), lt = K({
1027
1026
  props: {
1028
- ...he.props,
1029
- ...ya()
1027
+ ...we.props,
1028
+ ...Sa()
1030
1029
  },
1031
1030
  setup: (e, {
1032
1031
  slots: t,
1033
1032
  expose: u,
1034
1033
  emit: a
1035
1034
  }) => {
1036
- const o = F(), l = $e("table");
1037
- u(Be(fa, o));
1038
- const n = (P) => {
1035
+ const o = E(), l = Qe("table");
1036
+ u(ze(pa, o));
1037
+ const n = F(() => e.dataSource || e.data || []), f = F(() => Q(n.value, (y, h) => ({
1038
+ ...y,
1039
+ [r(h)]: !0
1040
+ }), {})), r = (y) => {
1039
1041
  const h = e.rowKey;
1040
- return Mt(h) ? h(P) : h ? P[h] : P.id;
1041
- }, f = N(() => !!e.rowSelection), r = N(() => {
1042
- const P = e.rowSelection;
1043
- return P ? !P.type || P.type === "multi" : !1;
1044
- });
1045
- let v = [], g = !1;
1046
- const b = (P) => {
1047
- var E, R, w;
1048
- if (!g)
1042
+ return Lt(h) ? h(y) : h ? y[h] : y.id;
1043
+ }, S = F(() => !!e.rowSelection), P = F(() => {
1044
+ const y = e.rowSelection;
1045
+ return y ? !y.type || y.type === "multi" : !1;
1046
+ }), i = F(() => {
1047
+ const y = e.selectedRowKeys;
1048
+ return Ze(y) ? y : y ? [y] : [];
1049
+ }), k = F(() => Q(i.value, (y, h) => ({
1050
+ ...y,
1051
+ [h]: !0
1052
+ }), {}));
1053
+ let C = [], x = !1;
1054
+ const _ = (y) => {
1055
+ var d, g, p, b, V, L, de, ie;
1056
+ if (!x)
1049
1057
  return;
1050
- const h = M(P, (k) => n(k));
1051
- if (f.value && !r.value) {
1052
- if (B(h) <= 0 && B(v) > 0) {
1053
- const k = e.dataSource || e.data, i = It(k, (d) => n(d) === v[0]);
1054
- i && ((E = o.value) == null || E.toggleRowSelection(i, !0));
1058
+ const h = R(y, (T) => r(T));
1059
+ if (S.value && !P.value) {
1060
+ if (N(h) <= 0 && N(C) > 0) {
1061
+ const T = n.value, B = Ut(T, (z) => r(z) === C[0]);
1062
+ B && ((d = o.value) == null || d.toggleRowSelection(B, !0));
1055
1063
  return;
1056
- } else if (B(h) > 1) {
1057
- const k = Vt(h);
1058
- ke(P, (i) => {
1059
- var d;
1060
- (d = o.value) == null || d.toggleRowSelection(i, n(i) === k);
1064
+ } else if (N(h) > 1) {
1065
+ const T = At(h);
1066
+ Me(y, (B) => {
1067
+ var z;
1068
+ (z = o.value) == null || z.toggleRowSelection(B, r(B) === T);
1061
1069
  });
1062
1070
  return;
1063
1071
  }
1064
1072
  }
1065
- Lt(e.selectedRowKeys, h, {
1073
+ if (!Gt(i.value, h, {
1066
1074
  sort: !0
1067
- }) || ((w = (R = e.rowSelection).onChange) == null || w.call(R, h, P), a("update:selectedRowKeys", h));
1068
- }, K = N(() => {
1075
+ })) {
1076
+ if (!P.value) {
1077
+ const T = I(h, 0);
1078
+ (p = (g = e.rowSelection).onChange) == null || p.call(g, T, I(y, 0)), a("update:selectedRowKeys", T);
1079
+ return;
1080
+ }
1081
+ if ((b = e.rowSelection) != null && b.pagination) {
1082
+ const T = re(i.value, (B) => !f.value[B]);
1083
+ T.push(...h), (L = (V = e.rowSelection).onChange) == null || L.call(V, T, []), a("update:selectedRowKeys", T);
1084
+ return;
1085
+ }
1086
+ (ie = (de = e.rowSelection).onChange) == null || ie.call(de, h, y), a("update:selectedRowKeys", h);
1087
+ }
1088
+ }, W = F(() => {
1069
1089
  if (!!e.rowSelection)
1070
1090
  return {
1071
- onSelectionChange: b
1091
+ onSelectionChange: _
1072
1092
  };
1073
1093
  });
1074
- q(() => {
1094
+ G(() => {
1075
1095
  var h;
1076
- g = !1, v = e.selectedRowKeys;
1077
- const P = e.dataSource || e.data;
1078
- if (f.value) {
1079
- const E = e.selectedRowKeys, R = Ke(E, (d, p) => ({
1080
- ...d,
1081
- [p]: !0
1082
- }), {}), w = (h = o.value) == null ? void 0 : h.getSelectionRows(), k = Ke(w, (d, p) => ({
1083
- ...d,
1084
- [n(p)]: !0
1096
+ x = !1, C = i.value;
1097
+ const y = n.value;
1098
+ if (S.value) {
1099
+ const d = (h = o.value) == null ? void 0 : h.getSelectionRows(), g = Q(d, (p, b) => ({
1100
+ ...p,
1101
+ [r(b)]: !0
1085
1102
  }), {});
1086
- let i = !1;
1087
- if (B(E) !== B(w))
1088
- i = !0;
1089
- else if (B(E) !== 0)
1090
- for (let d = 0; d < E.length; d++) {
1091
- const p = E[d];
1092
- if (!k[p]) {
1093
- i = !0;
1094
- break;
1095
- }
1096
- }
1097
- i ? Ft(() => {
1098
- ke(P, (d) => {
1099
- var x;
1100
- const p = n(d);
1101
- R[p] !== k[p] && ((x = o.value) == null || x.toggleRowSelection(d, !!R[p]));
1102
- }), g = !0;
1103
- }) : g = !0;
1103
+ Nt(() => {
1104
+ Me(y, (p) => {
1105
+ var V;
1106
+ const b = r(p);
1107
+ k.value[b] !== g[b] && ((V = o.value) == null || V.toggleRowSelection(p, !!k.value[b]));
1108
+ }), x = !0;
1109
+ });
1104
1110
  } else
1105
- g = !0;
1106
- }, [() => e.selectedRowKeys, () => e.dataSource, () => e.data]);
1107
- const S = () => {
1108
- var P, h;
1111
+ x = !0;
1112
+ }, [i, n]);
1113
+ const Z = () => {
1114
+ var y, h;
1109
1115
  if (e.spanMethod)
1110
1116
  return e.spanMethod;
1111
- if (((P = e.mergeOpts) == null ? void 0 : P.rowNames) || ((h = e.mergeOpts) == null ? void 0 : h.colNames)) {
1112
- const E = Ut(e.mergeOpts);
1117
+ if (((y = e.mergeOpts) == null ? void 0 : y.rowNames) || ((h = e.mergeOpts) == null ? void 0 : h.colNames)) {
1118
+ const d = _t(e.mergeOpts);
1113
1119
  return ({
1114
- row: R,
1115
- column: w
1120
+ row: g,
1121
+ column: p
1116
1122
  }) => {
1117
- const k = w.property;
1118
- if (E[k]) {
1119
- const i = R[E[k]], d = R[k + "-colspan"];
1123
+ const b = p.property;
1124
+ if (d[b]) {
1125
+ const V = g[d[b]], L = g[b + "-colspan"];
1120
1126
  return {
1121
- rowspan: i !== void 0 ? i : 1,
1122
- colspan: d !== void 0 ? d : 1
1127
+ rowspan: V !== void 0 ? V : 1,
1128
+ colspan: L !== void 0 ? L : 1
1123
1129
  };
1124
1130
  }
1125
1131
  };
1126
1132
  }
1127
1133
  return e.spanMethod;
1128
- }, T = N(() => S());
1129
- return () => c(he, y({
1134
+ }, H = F(() => Z());
1135
+ return () => c(we, m({
1130
1136
  ref: o,
1131
1137
  id: l
1132
- }, s(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
1133
- data: e.dataSource || e.data,
1134
- spanMethod: T.value
1135
- }, K.value), {
1138
+ }, v(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
1139
+ data: n.value,
1140
+ spanMethod: H.value
1141
+ }, W.value), {
1136
1142
  default: () => {
1137
- var P, h, E, R, w;
1138
- return [(P = t.start) == null ? void 0 : P.call(t), f.value && c(Q, y({
1143
+ var y, h, d, g, p;
1144
+ return [(y = t.start) == null ? void 0 : y.call(t), S.value && c(ne, m({
1139
1145
  type: "selection",
1140
- className: r.value ? "pro-multi" : "pro-single"
1141
- }, s((h = e.rowSelection) == null ? void 0 : h.column, "slots")), (R = (E = e.rowSelection) == null ? void 0 : E.column) == null ? void 0 : R.slots), M(e.columns, (k) => c(He, y({
1142
- key: k.dataIndex
1143
- }, k), t)), (w = t.default) == null ? void 0 : w.call(t), e.loading && c(qe, {
1146
+ className: P.value ? "pro-multi" : "pro-single"
1147
+ }, v((h = e.rowSelection) == null ? void 0 : h.column, "slots")), (g = (d = e.rowSelection) == null ? void 0 : d.column) == null ? void 0 : g.slots), R(e.columns, (b) => c(nt, m({
1148
+ key: b.dataIndex
1149
+ }, b), t)), (p = t.default) == null ? void 0 : p.call(t), e.loading && c(Xe, {
1144
1150
  target: l,
1145
1151
  loading: !0
1146
1152
  }, null)];
1147
1153
  },
1148
- ...ee(t, "append", "empty")
1154
+ ...ue(t, "append", "empty")
1149
1155
  });
1150
1156
  }
1151
- }), ma = C({
1157
+ }), Pa = K({
1152
1158
  props: {
1153
- ...X.props,
1159
+ ...le.props,
1154
1160
  type: {
1155
1161
  type: String,
1156
1162
  default: "primary"
@@ -1162,139 +1168,139 @@ const Ve = () => ({
1162
1168
  },
1163
1169
  setup: (e, {
1164
1170
  slots: t
1165
- }) => () => c(X, e, t)
1171
+ }) => () => c(le, e, t)
1166
1172
  });
1167
1173
  U.props = {
1168
- ...J.props,
1174
+ ...ae.props,
1169
1175
  ...U.props,
1170
- formMethods: { type: Array, default: je }
1176
+ formMethods: { type: Array, default: Je }
1171
1177
  };
1172
- _.props = {
1178
+ X.props = {
1173
1179
  ...U.props,
1174
- ..._.props,
1180
+ ...X.props,
1175
1181
  inline: { type: Boolean, default: !0 }
1176
1182
  };
1177
- ae.props = {
1178
- ...H.props,
1179
- ...ae.props
1183
+ fe.props = {
1184
+ ...te.props,
1185
+ ...fe.props
1180
1186
  };
1181
- W.props = {
1182
- ...Je.props,
1183
- ...W.props
1187
+ Y.props = {
1188
+ ...lt.props,
1189
+ ...Y.props
1184
1190
  };
1185
- Z.props = {
1186
- ...Le.props,
1187
- ...Z.props
1191
+ ee.props = {
1192
+ ...Ge.props,
1193
+ ...ee.props
1188
1194
  };
1189
- ne.props = {
1190
- ...Z.props,
1191
- ...ne.props
1195
+ ye.props = {
1196
+ ...ee.props,
1197
+ ...ye.props
1192
1198
  };
1193
- le.props = {
1199
+ me.props = {
1194
1200
  ...U.props,
1195
- ...le.props
1201
+ ...me.props
1196
1202
  };
1197
- re.props = {
1198
- ...Ge.props,
1199
- ...re.props
1203
+ se.props = {
1204
+ ...Ye.props,
1205
+ ...se.props
1200
1206
  };
1201
- oe.props = {
1202
- ...Ze.props,
1203
- ...oe.props,
1207
+ ge.props = {
1208
+ ...at.props,
1209
+ ...ge.props,
1204
1210
  modelValue: String
1205
1211
  };
1206
- ue.props = {
1207
- ...Ue.props,
1208
- ...ue.props,
1212
+ ve.props = {
1213
+ ..._e.props,
1214
+ ...ve.props,
1209
1215
  placement: { type: String, default: "top-start" }
1210
1216
  };
1211
- const ha = {
1212
- [m.LoadingKey]: qe,
1213
- [m.RowKey]: St,
1214
- [m.ColKey]: Pt,
1215
- [m.ButtonKey]: X,
1216
- [m.DescriptionsKey]: Le,
1217
- [m.DescriptionsItemKey]: ht,
1218
- [m.MenusKey]: Ht,
1219
- [m.ModalKey]: Ge,
1220
- [m.DrawerKey]: $t,
1221
- [m.PaginationKey]: qt,
1222
- [m.PopoverKey]: Gt,
1223
- [m.TooltipKey]: Ue,
1224
- [m.CheckboxKey]: De,
1225
- [m.FormKey]: At,
1226
- [m.FormItemKey]: ze,
1227
- [m.TableKey]: Je,
1228
- [m.TableOperateKey]: ma,
1229
- [m.UploaderKey]: Ze,
1230
- [m.DropdownKey]: Yt,
1231
- [m.ScrollKey]: Ct,
1232
- [m.EmptyKey]: Kt,
1233
- [m.ProFormKey]: U,
1234
- [m.ProSearchFormKey]: _,
1235
- [m.ProTableKey]: W,
1236
- [m.ProCurdKey]: Ye,
1237
- [m.ProListKey]: et,
1238
- [m.ProPageKey]: tt,
1239
- [m.ProOperateKey]: at,
1240
- text: ce,
1241
- digit: nt,
1242
- date: lt,
1243
- time: ce,
1244
- select: G,
1245
- radio: G,
1246
- checkbox: G,
1247
- treeSelect: de,
1248
- cascader: de
1249
- }, Ca = {
1250
- text: ea,
1251
- digit: ta,
1252
- digitRange: aa,
1253
- date: na,
1254
- time: la,
1255
- select: ra,
1256
- treeSelect: oa,
1257
- checkbox: ua,
1258
- radio: ca,
1259
- switch: da,
1260
- cascader: ia
1217
+ const Ta = {
1218
+ [s.LoadingKey]: Xe,
1219
+ [s.RowKey]: Ft,
1220
+ [s.ColKey]: Tt,
1221
+ [s.ButtonKey]: le,
1222
+ [s.DescriptionsKey]: Ge,
1223
+ [s.DescriptionsItemKey]: Rt,
1224
+ [s.MenusKey]: aa,
1225
+ [s.ModalKey]: Ye,
1226
+ [s.DrawerKey]: Jt,
1227
+ [s.PaginationKey]: Qt,
1228
+ [s.PopoverKey]: Xt,
1229
+ [s.TooltipKey]: _e,
1230
+ [s.CheckboxKey]: qe,
1231
+ [s.FormKey]: Wt,
1232
+ [s.FormItemKey]: He,
1233
+ [s.TableKey]: lt,
1234
+ [s.TableOperateKey]: Pa,
1235
+ [s.UploaderKey]: at,
1236
+ [s.DropdownKey]: oa,
1237
+ [s.ScrollKey]: wt,
1238
+ [s.EmptyKey]: Mt,
1239
+ [s.ProFormKey]: U,
1240
+ [s.ProSearchFormKey]: X,
1241
+ [s.ProTableKey]: Y,
1242
+ [s.ProCurdKey]: ut,
1243
+ [s.ProListKey]: ct,
1244
+ [s.ProPageKey]: dt,
1245
+ [s.ProOperateKey]: it,
1246
+ text: be,
1247
+ digit: ft,
1248
+ date: yt,
1249
+ time: be,
1250
+ select: J,
1251
+ radio: J,
1252
+ checkbox: J,
1253
+ treeSelect: pe,
1254
+ cascader: pe
1255
+ }, Ra = {
1256
+ text: ua,
1257
+ digit: ca,
1258
+ digitRange: da,
1259
+ date: ia,
1260
+ time: fa,
1261
+ select: ya,
1262
+ treeSelect: ma,
1263
+ checkbox: sa,
1264
+ radio: ga,
1265
+ switch: va,
1266
+ cascader: ba
1261
1267
  };
1262
1268
  export {
1263
- je as FormMethods,
1264
- Qt as InputNumberRange,
1265
- _t as ProCheckbox,
1266
- $t as ProDrawer,
1267
- Yt as ProDropdown,
1268
- At as ProForm,
1269
- ia as ProFormCascader,
1270
- ua as ProFormCheckbox,
1271
- na as ProFormDatePicker,
1272
- aa as ProFormInputNumberRange,
1273
- ze as ProFormItem,
1274
- ca as ProFormRadio,
1275
- ra as ProFormSelect,
1276
- da as ProFormSwitch,
1277
- ea as ProFormText,
1278
- ta as ProFormTextNumber,
1279
- la as ProFormTimePicker,
1280
- oa as ProFormTreeSelect,
1281
- qe as ProLoading,
1282
- Ht as ProMenus,
1283
- Ge as ProModal,
1284
- qt as ProPagination,
1285
- Gt as ProPopover,
1286
- Wt as ProRadio,
1287
- Zt as ProSelect,
1288
- Je as ProTable,
1289
- He as ProTableColumn,
1290
- ma as ProTableOperateItem,
1291
- Sa as ProTabs,
1292
- Pa as ProTree,
1293
- Ze as ProUploader,
1294
- fa as TableMethods,
1295
- Jt as UploadMethods,
1296
- V as createFormItemComponent,
1297
- $e as createLoadingId,
1298
- ha as elementMap,
1299
- Ca as formElementMap
1269
+ Je as FormMethods,
1270
+ la as InputNumberRange,
1271
+ Yt as ProCheckbox,
1272
+ Jt as ProDrawer,
1273
+ oa as ProDropdown,
1274
+ Wt as ProForm,
1275
+ ba as ProFormCascader,
1276
+ sa as ProFormCheckbox,
1277
+ ia as ProFormDatePicker,
1278
+ da as ProFormInputNumberRange,
1279
+ He as ProFormItem,
1280
+ ga as ProFormRadio,
1281
+ ya as ProFormSelect,
1282
+ va as ProFormSwitch,
1283
+ ua as ProFormText,
1284
+ ca as ProFormTextNumber,
1285
+ fa as ProFormTimePicker,
1286
+ ma as ProFormTreeSelect,
1287
+ Xe as ProLoading,
1288
+ aa as ProMenus,
1289
+ Ye as ProModal,
1290
+ Qt as ProPagination,
1291
+ Xt as ProPopover,
1292
+ ea as ProRadio,
1293
+ ta as ProSelect,
1294
+ lt as ProTable,
1295
+ nt as ProTableColumn,
1296
+ Pa as ProTableOperateItem,
1297
+ Ea as ProTabs,
1298
+ Fa as ProTree,
1299
+ at as ProUploader,
1300
+ pa as TableMethods,
1301
+ na as UploadMethods,
1302
+ M as createFormItemComponent,
1303
+ Qe as createLoadingId,
1304
+ Ta as elementMap,
1305
+ Ra as formElementMap
1300
1306
  };