@vue-start/element-pro 0.2.32 → 0.2.34

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