@vue-start/element-pro 0.2.39 → 0.2.40

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,29 +1,29 @@
1
- import { createExpose as Ye, createFormItemCompFn as bt, useProConfig as fe, createExposeObj as L, useGetCompByKey as et, ElementKeys as C, ProForm as W, ProSearchForm as ae, ProFormList as he, ProTable as le, ProDesc as ne, ProCurdDesc as ve, ProCurdForm as be, ProCurdModal as Se, ProUploaderText as pe, ProTip as Pe, ProCurd as St, ProList as pt, ProPage as Pt, ProOperate as Ct, ProShowText as Ce, ProShowDigit as Vt, ProShowDate as xt, ProShowOptions as ee, ProShowTree as Ve } from "@vue-start/pro";
2
- import { ElFormItem as re, ElForm as oe, ElLoading as tt, ElDialog as xe, ElDrawer as Ke, ElPagination as ke, ElPopover as we, ElCheckboxGroup as Fe, ElCheckboxButton as Kt, ElCheckbox as at, ElRadioGroup as Ee, ElRadioButton as kt, ElRadio as wt, ElSelect as Te, ElOption as Ft, ElTabs as Re, ElTabPane as Et, ElMenu as _, ElUpload as Me, useFormItem as Tt, ElInputNumber as G, ElTree as Ne, ElDropdown as $e, ElDropdownMenu as Rt, ElDropdownItem as Mt, ElTreeSelect as Ie, ElCascader as Be, ElInput as Nt, ElDatePicker as $t, ElTimePicker as It, ElSwitch as Bt, ElColorPicker as Ot, ElTableColumn as ue, ElTable as Oe, ElButton as de, ElTableV2 as Ae, ElDescriptions as lt, ElTooltip as nt, ElRow as At, ElCol as Dt, ElDescriptionsItem as Lt, ElScrollbar as Ut, ElEmpty as zt } from "element-plus";
3
- import { defineComponent as w, createVNode as f, mergeProps as g, reactive as rt, ref as T, toRaw as jt, computed as x, Fragment as ot, isVNode as Wt, nextTick as Ht } from "vue";
4
- import { keys as M, omit as b, isBoolean as Z, isString as qt, debounce as Gt, map as F, get as E, size as D, pick as J, isNumber as U, isArray as j, filter as ce, last as ie, reduce as te, isFunction as _t, forEach as De, find as Zt } from "lodash";
5
- import { useEffect as Q, generateId as Jt, useWatch as H, parseValue as X, formatValue as Y, convertCollection as Qt, isValidFileType as Xt, convertFileSize as Le, createExposeObj as ut, findTreeItem as Ue, isSame as Yt, getNameMapByMergeOpts as ea, useUpdateKey as ta, useResizeObserver as aa } from "@vue-start/hooks";
6
- const ze = () => ({
1
+ import { createExpose as at, createFormItemCompFn as pt, useProConfig as fe, createExposeObj as D, useGetCompByKey as lt, ElementKeys as V, ProForm as W, ProSearchForm as ae, ProFormList as ve, ProTable as le, ProDesc as ne, ProCurdDesc as be, ProCurdForm as Se, ProCurdModal as pe, ProUploaderText as Pe, ProTip as Ve, ProCurd as Pt, ProList as Vt, ProPage as Ct, ProOperate as xt, ProShowText as Ce, ProShowDigit as Kt, ProShowDate as kt, ProShowOptions as Z, ProShowTree as xe } from "@vue-start/pro";
2
+ import { ElFormItem as re, ElForm as oe, ElLoading as nt, ElDialog as Ke, ElDrawer as ke, ElPagination as Fe, ElPopover as we, ElCheckboxGroup as Ee, ElCheckboxButton as Ft, ElCheckbox as rt, ElRadioGroup as Te, ElRadioButton as wt, ElRadio as Et, ElSelect as Re, ElOption as Tt, ElSelectV2 as $e, ElTabs as Me, ElTabPane as Rt, ElMenu as Q, ElUpload as Ne, useFormItem as $t, ElInputNumber as J, ElTree as Ie, ElDropdown as Oe, ElDropdownMenu as Mt, ElDropdownItem as Nt, ElTreeSelect as Be, ElCascader as Ae, ElInput as It, ElDatePicker as Ot, ElTimePicker as Bt, ElSwitch as At, ElColorPicker as Lt, ElTableColumn as ue, ElTable as Le, ElButton as de, ElTableV2 as De, ElDescriptions as ot, ElTooltip as ut, ElRow as Dt, ElCol as Ut, ElDescriptionsItem as zt, ElScrollbar as jt, ElEmpty as Wt } from "element-plus";
3
+ import { defineComponent as k, createVNode as f, mergeProps as y, reactive as dt, ref as T, toRaw as Ht, computed as x, Fragment as ct, isVNode as qt, nextTick as Gt } from "vue";
4
+ import { keys as $, omit as h, isBoolean as X, isString as _t, debounce as Zt, map as E, get as w, size as L, pick as Y, isNumber as U, isArray as j, filter as ce, last as ie, reduce as te, isFunction as Jt, forEach as Ue, find as Qt } from "lodash";
5
+ import { useEffect as ee, generateId as Xt, useWatch as H, parseValue as q, formatValue as G, createExposeObj as se, convertCollection as Yt, isValidFileType as ea, convertFileSize as ze, findTreeItem as je, isSame as ta, getNameMapByMergeOpts as aa, useUpdateKey as la, useResizeObserver as na } from "@vue-start/hooks";
6
+ const We = () => ({
7
7
  name: {
8
8
  type: [String, Array]
9
9
  }
10
- }), dt = w({
10
+ }), it = k({
11
11
  props: {
12
12
  ...re.props,
13
- ...ze()
13
+ ...We()
14
14
  },
15
15
  setup: (e, {
16
16
  slots: t
17
17
  }) => {
18
- const d = M(ze());
19
- return () => f(re, g(b(e, ...d, "name", "prop"), {
18
+ const o = $(We());
19
+ return () => f(re, y(h(e, ...o, "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
- }), ct = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], la = w({
26
+ }), mt = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], ra = k({
27
27
  props: {
28
28
  ...oe.props,
29
29
  hideRequiredMark: {
@@ -33,30 +33,30 @@ const ze = () => ({
33
33
  },
34
34
  setup: (e, {
35
35
  slots: t,
36
- emit: d,
37
- expose: l
36
+ emit: o,
37
+ expose: n
38
38
  }) => {
39
- const u = e.model || rt({}), a = T();
40
- return Q(() => {
41
- !a.value || (a.value.submit = () => {
42
- var o;
43
- (o = a.value) == null || o.validate((y, c) => {
44
- y ? d("finish", jt(u)) : d("finishFailed", c);
39
+ const u = e.model || dt({}), l = T();
40
+ return ee(() => {
41
+ !l.value || (l.value.submit = () => {
42
+ var d;
43
+ (d = l.value) == null || d.validate((s, c) => {
44
+ s ? o("finish", Ht(u)) : o("finishFailed", c);
45
45
  });
46
46
  });
47
- }, []), l(Ye(ct, a)), () => f(oe, g({
48
- ref: a
49
- }, b(e, "model"), {
50
- hideRequiredAsterisk: Z(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
47
+ }, []), n(at(mt, l)), () => f(oe, y({
48
+ ref: l
49
+ }, h(e, "model"), {
50
+ hideRequiredAsterisk: X(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
51
51
  model: u
52
52
  }), t);
53
53
  }
54
- }), I = bt(dt, (e, t, d) => ({
54
+ }), M = pt(it, (e, t, o) => ({
55
55
  modelValue: e,
56
56
  "onUpdate:modelValue": t,
57
57
  clearable: !0,
58
- disabled: d
59
- })), it = (e = "comp") => e + "-" + Jt(), na = () => ({
58
+ disabled: o
59
+ })), ft = (e = "comp") => e + "-" + Xt(), oa = () => ({
60
60
  loading: {
61
61
  type: Boolean
62
62
  },
@@ -84,22 +84,22 @@ const ze = () => ({
84
84
  customClass: {
85
85
  type: String
86
86
  }
87
- }), mt = w({
87
+ }), st = k({
88
88
  props: {
89
- ...na()
89
+ ...oa()
90
90
  },
91
91
  setup: (e, {
92
92
  slots: t
93
93
  }) => {
94
- const d = it();
95
- return Q(() => {
94
+ const o = ft();
95
+ return ee(() => {
96
96
  if (!e.loading)
97
97
  return;
98
- let l = e.target;
99
- if (t.default ? l = document.getElementById(d) : e.target && qt(e.target) && (l = document.querySelector("#" + e.target)), !l)
98
+ let n = e.target;
99
+ if (t.default ? n = document.getElementById(o) : e.target && _t(e.target) && (n = document.querySelector("#" + e.target)), !n)
100
100
  return;
101
- const u = tt.service({
102
- target: l,
101
+ const u = nt.service({
102
+ target: n,
103
103
  body: e.body,
104
104
  fullscreen: e.fullscreen,
105
105
  lock: e.lock,
@@ -112,7 +112,7 @@ const ze = () => ({
112
112
  u && u.close();
113
113
  };
114
114
  }, () => e.loading), () => t.default ? f("div", {
115
- id: d
115
+ id: o
116
116
  }, [t.default()]) : null;
117
117
  }
118
118
  }), me = () => ({
@@ -146,9 +146,9 @@ const ze = () => ({
146
146
  type: Boolean,
147
147
  default: !1
148
148
  }
149
- }), ft = w({
149
+ }), yt = k({
150
150
  props: {
151
- ...xe.props,
151
+ ...Ke.props,
152
152
  appendToBody: {
153
153
  type: Boolean,
154
154
  default: !0
@@ -161,23 +161,23 @@ const ze = () => ({
161
161
  },
162
162
  setup: (e, {
163
163
  slots: t,
164
- emit: d,
165
- expose: l
164
+ emit: o,
165
+ expose: n
166
166
  }) => {
167
167
  const {
168
168
  t: u
169
- } = fe(), a = T();
170
- l(L(a));
171
- const o = (s) => {
172
- d("update:modelValue", s), d("update:visible", s), s || (d("cancel"), d("closed"));
173
- }, y = () => {
174
- o(!1);
169
+ } = fe(), l = T();
170
+ n(D(l));
171
+ const d = (g) => {
172
+ o("update:modelValue", g), o("update:visible", g), g || (o("cancel"), o("closed"));
173
+ }, s = () => {
174
+ d(!1);
175
175
  }, c = () => {
176
- d("ok");
177
- }, n = et(), m = n(C.ProOperateKey), r = n(C.ScrollKey), i = x(() => [{
176
+ o("ok");
177
+ }, a = lt(), m = a(V.ProOperateKey), r = a(V.ScrollKey), i = x(() => [{
178
178
  value: "cancel",
179
179
  label: u.value("cancel"),
180
- onClick: y
180
+ onClick: s
181
181
  }, {
182
182
  value: "ok",
183
183
  label: u.value("confirm"),
@@ -186,16 +186,16 @@ const ze = () => ({
186
186
  type: "primary"
187
187
  },
188
188
  onClick: c
189
- }]), S = M(me());
189
+ }]), S = $(me());
190
190
  return () => {
191
- const s = [e.clsName];
192
- return e.useScroll && s.push("scroll"), f(xe, g({
193
- class: s,
194
- ref: a
195
- }, b(e, ...S), {
196
- closeOnClickModal: Z(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
191
+ const g = [e.clsName];
192
+ return e.useScroll && g.push("scroll"), f(Ke, y({
193
+ class: g,
194
+ ref: l
195
+ }, h(e, ...S), {
196
+ closeOnClickModal: X(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
197
197
  modelValue: e.visible || e.modelValue,
198
- "onUpdate:modelValue": o
198
+ "onUpdate:modelValue": d
199
199
  }), {
200
200
  footer: e.footer === !1 ? void 0 : () => f(m, {
201
201
  items: i.value
@@ -203,7 +203,7 @@ const ze = () => ({
203
203
  ...t,
204
204
  default: () => {
205
205
  var K;
206
- return e.useScroll ? f(r, g({
206
+ return e.useScroll ? f(r, y({
207
207
  class: `${e.clsName}-scroll`
208
208
  }, e.scrollProps), {
209
209
  default: () => {
@@ -215,7 +215,7 @@ const ze = () => ({
215
215
  });
216
216
  };
217
217
  }
218
- }), ra = () => ({
218
+ }), ua = () => ({
219
219
  clsName: {
220
220
  type: String,
221
221
  default: "pro-drawer"
@@ -242,10 +242,10 @@ const ze = () => ({
242
242
  type: Boolean,
243
243
  default: !1
244
244
  }
245
- }), oa = w({
245
+ }), da = k({
246
246
  props: {
247
- ...Ke.props,
248
- ...ra(),
247
+ ...ke.props,
248
+ ...ua(),
249
249
  appendToBody: {
250
250
  type: Boolean,
251
251
  default: !0
@@ -257,23 +257,23 @@ const ze = () => ({
257
257
  },
258
258
  setup: (e, {
259
259
  slots: t,
260
- emit: d,
261
- expose: l
260
+ emit: o,
261
+ expose: n
262
262
  }) => {
263
263
  const {
264
264
  t: u
265
- } = fe(), a = T();
266
- l(L(a));
267
- const o = (s) => {
268
- d("update:modelValue", s), d("update:visible", s), s || d("cancel");
269
- }, y = () => {
270
- o(!1);
265
+ } = fe(), l = T();
266
+ n(D(l));
267
+ const d = (g) => {
268
+ o("update:modelValue", g), o("update:visible", g), g || o("cancel");
269
+ }, s = () => {
270
+ d(!1);
271
271
  }, c = () => {
272
- d("ok");
273
- }, n = et(), m = n(C.ProOperateKey), r = n(C.ScrollKey), i = x(() => [{
272
+ o("ok");
273
+ }, a = lt(), m = a(V.ProOperateKey), r = a(V.ScrollKey), i = x(() => [{
274
274
  value: "cancel",
275
275
  label: u.value("cancel"),
276
- onClick: y
276
+ onClick: s
277
277
  }, {
278
278
  value: "ok",
279
279
  label: u.value("confirm"),
@@ -282,15 +282,15 @@ const ze = () => ({
282
282
  type: "primary"
283
283
  },
284
284
  onClick: c
285
- }]), S = M(me());
285
+ }]), S = $(me());
286
286
  return () => {
287
- const s = [e.clsName];
288
- return e.useScroll && s.push("scroll"), f(Ke, g({
289
- class: s,
290
- ref: a
291
- }, b(e, S), {
287
+ const g = [e.clsName];
288
+ return e.useScroll && g.push("scroll"), f(ke, y({
289
+ class: g,
290
+ ref: l
291
+ }, h(e, S), {
292
292
  modelValue: e.visible || e.modelValue,
293
- "onUpdate:modelValue": o
293
+ "onUpdate:modelValue": d
294
294
  }), {
295
295
  footer: e.footer === !1 ? void 0 : () => f(m, {
296
296
  items: i.value
@@ -298,7 +298,7 @@ const ze = () => ({
298
298
  ...t,
299
299
  default: () => {
300
300
  var K;
301
- return e.useScroll ? f(r, g({
301
+ return e.useScroll ? f(r, y({
302
302
  class: `${e.clsName}-scroll`
303
303
  }, e.scrollProps), {
304
304
  default: () => {
@@ -310,9 +310,9 @@ const ze = () => ({
310
310
  });
311
311
  };
312
312
  }
313
- }), ua = w({
313
+ }), ca = k({
314
314
  props: {
315
- ...ke.props,
315
+ ...Fe.props,
316
316
  page: {
317
317
  type: Number,
318
318
  default: 1
@@ -320,31 +320,31 @@ const ze = () => ({
320
320
  },
321
321
  setup: (e, {
322
322
  slots: t,
323
- emit: d
323
+ emit: o
324
324
  }) => {
325
- const l = T(e.page), u = T(e.pageSize);
325
+ const n = T(e.page), u = T(e.pageSize);
326
326
  H(() => {
327
- l.value !== e.page && (l.value = e.page);
327
+ n.value !== e.page && (n.value = e.page);
328
328
  }, () => e.page), H(() => {
329
329
  u.value !== e.pageSize && (u.value = e.pageSize);
330
330
  }, () => e.pageSize);
331
- const a = Gt(() => {
332
- d("composeChange", l.value, u.value);
333
- }, 300), o = () => {
334
- a(), d("update:page", l.value);
335
- }, y = () => {
336
- a(), d("update:pageSize", u.value);
331
+ const l = Zt(() => {
332
+ o("composeChange", n.value, u.value);
333
+ }, 300), d = () => {
334
+ l(), o("update:page", n.value);
335
+ }, s = () => {
336
+ l(), o("update:pageSize", u.value);
337
337
  };
338
- return () => f(ke, g({
339
- currentPage: l.value,
340
- "onUpdate:currentPage": (c) => l.value = c,
338
+ return () => f(Fe, y({
339
+ currentPage: n.value,
340
+ "onUpdate:currentPage": (c) => n.value = c,
341
341
  pageSize: u.value,
342
342
  "onUpdate:pageSize": (c) => u.value = c,
343
- onCurrentChange: o,
344
- onSizeChange: y
345
- }, b(e, "currentPage", "pageSize")), t);
343
+ onCurrentChange: d,
344
+ onSizeChange: s
345
+ }, h(e, "currentPage", "pageSize")), t);
346
346
  }
347
- }), da = w({
347
+ }), ia = k({
348
348
  props: {
349
349
  ...we.props
350
350
  },
@@ -354,7 +354,7 @@ const ze = () => ({
354
354
  reference: t.default,
355
355
  default: t.content
356
356
  })
357
- }), je = () => ({
357
+ }), He = () => ({
358
358
  options: Array,
359
359
  fieldNames: {
360
360
  type: Object
@@ -380,64 +380,64 @@ const ze = () => ({
380
380
  formatValue$: {
381
381
  type: Function
382
382
  }
383
- }), ca = w({
383
+ }), ma = k({
384
384
  props: {
385
- ...Fe.props,
386
- ...je()
385
+ ...Ee.props,
386
+ ...He()
387
387
  },
388
388
  setup: (e, {
389
389
  slots: t,
390
- emit: d,
391
- expose: l
390
+ emit: o,
391
+ expose: n
392
392
  }) => {
393
393
  const u = T();
394
- l(L(u, e.expMethods));
395
- const a = x(() => F(e.options, (n) => {
394
+ n(D(u, e.expMethods));
395
+ const l = x(() => E(e.options, (a) => {
396
396
  var m, r, i;
397
397
  return {
398
- ...n,
399
- label: E(n, ((m = e.fieldNames) == null ? void 0 : m.label) || "label"),
400
- value: E(n, ((r = e.fieldNames) == null ? void 0 : r.value) || "value"),
401
- disabled: E(n, ((i = e.fieldNames) == null ? void 0 : i.label) || "disabled")
398
+ ...a,
399
+ label: w(a, ((m = e.fieldNames) == null ? void 0 : m.label) || "label"),
400
+ value: w(a, ((r = e.fieldNames) == null ? void 0 : r.value) || "value"),
401
+ disabled: w(a, ((i = e.fieldNames) == null ? void 0 : i.label) || "disabled")
402
402
  };
403
- })), o = x(() => {
404
- const n = e.modelValue;
405
- return e.parseValue$ ? e.parseValue$(n, e) : X(n, {
403
+ })), d = x(() => {
404
+ const a = e.modelValue;
405
+ return e.parseValue$ ? e.parseValue$(a, e) : q(a, {
406
406
  multiple: !0,
407
407
  separator: e.separator$
408
408
  });
409
- }), y = (n) => {
409
+ }), s = (a) => {
410
410
  if (e.formatValue$) {
411
- d("update:modelValue", e.formatValue$(n, e));
411
+ o("update:modelValue", e.formatValue$(a, e));
412
412
  return;
413
413
  }
414
414
  if (e.separator$) {
415
- d("update:modelValue", Y(n, {
415
+ o("update:modelValue", G(a, {
416
416
  multiple: !0,
417
417
  separator: e.separator$
418
418
  }));
419
419
  return;
420
420
  }
421
- d("update:modelValue", n);
422
- }, c = [...M(je()), "modelValue"];
423
- return () => f(Fe, g({
421
+ o("update:modelValue", a);
422
+ }, c = [...$(He()), "modelValue"];
423
+ return () => f(Ee, y({
424
424
  ref: u
425
- }, b(e, c), {
426
- modelValue: o.value,
427
- "onUpdate:modelValue": (n) => y(n)
425
+ }, h(e, c), {
426
+ modelValue: d.value,
427
+ "onUpdate:modelValue": (a) => s(a)
428
428
  }), {
429
429
  default: () => {
430
- var n, m;
431
- return [(n = t.start) == null ? void 0 : n.call(t), F(a.value, (r) => {
430
+ var a, m;
431
+ return [(a = t.start) == null ? void 0 : a.call(t), E(l.value, (r) => {
432
432
  var S;
433
433
  const i = (S = t.label) == null ? void 0 : S.call(t, r);
434
- return e.optionType === "button" || e.buttonStyle === "button" ? f(Kt, g({
434
+ return e.optionType === "button" || e.buttonStyle === "button" ? f(Ft, y({
435
435
  key: r.value
436
- }, b(r, "value"), {
436
+ }, h(r, "value"), {
437
437
  label: r.value
438
438
  }), {
439
439
  default: () => [i || r.label]
440
- }) : f(at, g({
440
+ }) : f(rt, y({
441
441
  key: r.value
442
442
  }, r, {
443
443
  label: r.value
@@ -448,7 +448,7 @@ const ze = () => ({
448
448
  }
449
449
  });
450
450
  }
451
- }), We = () => ({
451
+ }), qe = () => ({
452
452
  options: {
453
453
  type: Array
454
454
  },
@@ -460,49 +460,49 @@ const ze = () => ({
460
460
  type: String,
461
461
  default: "default"
462
462
  }
463
- }), ia = w({
463
+ }), fa = k({
464
464
  props: {
465
- ...Ee.props,
466
- ...We()
465
+ ...Te.props,
466
+ ...qe()
467
467
  },
468
468
  setup: (e, {
469
469
  slots: t,
470
- emit: d,
471
- expose: l
470
+ emit: o,
471
+ expose: n
472
472
  }) => {
473
473
  const u = T();
474
- l(L(u));
475
- const a = M(We());
476
- return () => f(Ee, g({
474
+ n(D(u));
475
+ const l = $(qe());
476
+ return () => f(Te, y({
477
477
  ref: u
478
- }, b(e, a), {
479
- "onUpdate:modelValue": (o) => {
480
- d("update:modelValue", o);
478
+ }, h(e, l), {
479
+ "onUpdate:modelValue": (d) => {
480
+ o("update:modelValue", d);
481
481
  }
482
482
  }), {
483
483
  default: () => {
484
- var o, y;
485
- return [(o = t.start) == null ? void 0 : o.call(t), F(e.options, (c) => {
484
+ var d, s;
485
+ return [(d = t.start) == null ? void 0 : d.call(t), E(e.options, (c) => {
486
486
  var m;
487
- const n = (m = t.label) == null ? void 0 : m.call(t, c);
488
- return e.optionType === "button" || e.buttonStyle === "button" ? f(kt, g({
487
+ const a = (m = t.label) == null ? void 0 : m.call(t, c);
488
+ return e.optionType === "button" || e.buttonStyle === "button" ? f(wt, y({
489
489
  key: c.value
490
- }, b(c, "value"), {
490
+ }, h(c, "value"), {
491
491
  label: c.value
492
492
  }), {
493
- default: () => [n || c.label]
494
- }) : f(wt, g({
493
+ default: () => [a || c.label]
494
+ }) : f(Et, y({
495
495
  key: c.value
496
- }, b(c, "value"), {
496
+ }, h(c, "value"), {
497
497
  label: c.value
498
498
  }), {
499
- default: () => [n || c.label]
499
+ default: () => [a || c.label]
500
500
  });
501
- }), (y = t.default) == null ? void 0 : y.call(t)];
501
+ }), (s = t.default) == null ? void 0 : s.call(t)];
502
502
  }
503
503
  });
504
504
  }
505
- }), He = () => ({
505
+ }), Ge = () => ({
506
506
  options: Array,
507
507
  fieldNames: {
508
508
  type: Object
@@ -520,92 +520,151 @@ const ze = () => ({
520
520
  formatValue$: {
521
521
  type: Function
522
522
  }
523
- }), ma = w({
523
+ }), sa = k({
524
524
  props: {
525
- ...Te.props,
526
- ...He()
525
+ ...Re.props,
526
+ ...Ge()
527
527
  },
528
528
  setup: (e, {
529
529
  slots: t,
530
- emit: d,
531
- expose: l
530
+ emit: o,
531
+ expose: n
532
532
  }) => {
533
533
  const u = T();
534
- l(L(u, e.expMethods));
535
- const a = x(() => F(e.options, (n) => {
534
+ n(D(u, e.expMethods));
535
+ const l = x(() => E(e.options, (a) => {
536
536
  var m, r, i;
537
537
  return {
538
- ...n,
539
- label: E(n, ((m = e.fieldNames) == null ? void 0 : m.label) || "label"),
540
- value: E(n, ((r = e.fieldNames) == null ? void 0 : r.value) || "value"),
541
- disabled: E(n, ((i = e.fieldNames) == null ? void 0 : i.label) || "disabled")
538
+ ...a,
539
+ label: w(a, ((m = e.fieldNames) == null ? void 0 : m.label) || "label"),
540
+ value: w(a, ((r = e.fieldNames) == null ? void 0 : r.value) || "value"),
541
+ disabled: w(a, ((i = e.fieldNames) == null ? void 0 : i.label) || "disabled")
542
542
  };
543
- })), o = x(() => {
544
- const n = e.modelValue;
545
- return e.parseValue$ ? e.parseValue$(n, e) : X(n, {
543
+ })), d = x(() => {
544
+ const a = e.modelValue;
545
+ return e.parseValue$ ? e.parseValue$(a, e) : q(a, {
546
546
  multiple: e.multiple,
547
547
  separator: e.separator$
548
548
  });
549
- }), y = (n) => {
549
+ }), s = (a) => {
550
550
  if (e.formatValue$) {
551
- d("update:modelValue", e.formatValue$(n, e));
551
+ o("update:modelValue", e.formatValue$(a, e));
552
552
  return;
553
553
  }
554
554
  if (e.separator$) {
555
- d("update:modelValue", Y(n, {
555
+ o("update:modelValue", G(a, {
556
556
  multiple: e.multiple,
557
557
  separator: e.separator$
558
558
  }));
559
559
  return;
560
560
  }
561
- d("update:modelValue", n);
562
- }, c = [...M(He()), "modelValue"];
563
- return () => f(Te, g({
561
+ o("update:modelValue", a);
562
+ }, c = [...$(Ge()), "modelValue"];
563
+ return () => f(Re, y({
564
564
  ref: u
565
- }, b(e, c), {
566
- modelValue: o.value,
567
- "onUpdate:modelValue": (n) => y(n)
565
+ }, h(e, c), {
566
+ modelValue: d.value,
567
+ "onUpdate:modelValue": (a) => s(a)
568
568
  }), {
569
569
  default: () => {
570
- var n, m;
571
- return [(n = t.start) == null ? void 0 : n.call(t), F(a.value, (r) => {
570
+ var a, m;
571
+ return [(a = t.start) == null ? void 0 : a.call(t), E(l.value, (r) => {
572
572
  var S;
573
573
  const i = (S = t.label) == null ? void 0 : S.call(t, r);
574
- return f(Ft, g({
574
+ return f(Tt, y({
575
575
  key: r.value
576
576
  }, r), {
577
577
  default: () => [i || r.label]
578
578
  });
579
579
  }), (m = t.default) == null ? void 0 : m.call(t)];
580
580
  },
581
- ...b(t, "default")
581
+ ...h(t, "default")
582
582
  });
583
583
  }
584
- }), za = w({
584
+ }), _e = () => ({
585
+ options: Array,
586
+ fieldNames: Object,
587
+ expMethods: {
588
+ type: Array,
589
+ default: () => ["focus", "blur", "selectedLabel"]
590
+ },
591
+ separator$: String,
592
+ parseValue$: Function,
593
+ formatValue$: Function
594
+ }), ya = k({
595
+ name: "ProSelectV2",
585
596
  props: {
586
- ...Re.props,
597
+ ...$e.props,
598
+ ..._e()
599
+ },
600
+ setup: (e, {
601
+ slots: t,
602
+ emit: o,
603
+ expose: n
604
+ }) => {
605
+ const u = T();
606
+ n(se(u, e.expMethods));
607
+ const l = x(() => E(e.options, (a) => {
608
+ var m, r, i;
609
+ return {
610
+ ...a,
611
+ label: w(a, ((m = e.fieldNames) == null ? void 0 : m.label) || "label"),
612
+ value: w(a, ((r = e.fieldNames) == null ? void 0 : r.value) || "value"),
613
+ disabled: w(a, ((i = e.fieldNames) == null ? void 0 : i.disabled) || "disabled")
614
+ };
615
+ })), d = x(() => {
616
+ const a = e.modelValue;
617
+ return e.parseValue$ ? e.parseValue$(a, e) : q(a, {
618
+ multiple: e.multiple,
619
+ separator: e.separator$
620
+ });
621
+ }), s = (a) => {
622
+ if (e.formatValue$) {
623
+ o("update:modelValue", e.formatValue$(a, e));
624
+ return;
625
+ }
626
+ if (e.separator$) {
627
+ o("update:modelValue", G(a, {
628
+ multiple: e.multiple,
629
+ separator: e.separator$
630
+ }));
631
+ return;
632
+ }
633
+ o("update:modelValue", a);
634
+ }, c = [...$(_e()), "modelValue"];
635
+ return () => f($e, y({
636
+ ref: u
637
+ }, h(e, c), {
638
+ modelValue: d.value,
639
+ "onUpdate:modelValue": (a) => s(a),
640
+ options: l.value
641
+ }), t);
642
+ }
643
+ }), qa = k({
644
+ props: {
645
+ ...Me.props,
587
646
  options: {
588
647
  type: Array
589
648
  }
590
649
  },
591
650
  setup: (e, {
592
651
  slots: t,
593
- emit: d
594
- }) => () => f(Re, g(b(e, "options"), {
595
- "onUpdate:modelValue": (l) => {
596
- d("update:modelValue", l);
652
+ emit: o
653
+ }) => () => f(Me, y(h(e, "options"), {
654
+ "onUpdate:modelValue": (n) => {
655
+ o("update:modelValue", n);
597
656
  }
598
657
  }), {
599
658
  default: () => {
600
- var l, u;
601
- return [(l = t.start) == null ? void 0 : l.call(t), F(e.options, (a) => f(Et, g({
602
- key: a.value
603
- }, b(a, "value"), {
604
- name: a.value
659
+ var n, u;
660
+ return [(n = t.start) == null ? void 0 : n.call(t), E(e.options, (l) => f(Rt, y({
661
+ key: l.value
662
+ }, h(l, "value"), {
663
+ name: l.value
605
664
  }), {
606
665
  label: () => {
607
- var o;
608
- return ((o = t.label) == null ? void 0 : o.call(t, a)) || a.label;
666
+ var d;
667
+ return ((d = t.label) == null ? void 0 : d.call(t, l)) || l.label;
609
668
  }
610
669
  })), (u = t.end) == null ? void 0 : u.call(t)];
611
670
  },
@@ -621,7 +680,7 @@ const ze = () => ({
621
680
  onMenuItemClick: {
622
681
  type: Function
623
682
  }
624
- }, yt = M(ye), st = w({
683
+ }, gt = $(ye), ht = k({
625
684
  inheritAttrs: !1,
626
685
  props: {
627
686
  menu: {
@@ -632,40 +691,40 @@ const ze = () => ({
632
691
  setup: (e, {
633
692
  slots: t
634
693
  }) => {
635
- const d = () => {
636
- var l;
637
- (l = e.onMenuItemClick) == null || l.call(e, e.menu);
694
+ const o = () => {
695
+ var n;
696
+ (n = e.onMenuItemClick) == null || n.call(e, e.menu);
638
697
  };
639
698
  return () => {
640
- var u, a;
641
- const l = e.menu;
642
- return (l == null ? void 0 : l.children) && D(l.children) > 0 ? f(_.SubMenu, g({
643
- index: l == null ? void 0 : l.value
644
- }, (u = e.convertSubMenuProps) == null ? void 0 : u.call(e, l)), {
645
- default: () => [F(l.children, (o) => f(st, g({
646
- menu: o
647
- }, J(e, yt)), t))],
699
+ var u, l;
700
+ const n = e.menu;
701
+ return (n == null ? void 0 : n.children) && L(n.children) > 0 ? f(Q.SubMenu, y({
702
+ index: n == null ? void 0 : n.value
703
+ }, (u = e.convertSubMenuProps) == null ? void 0 : u.call(e, n)), {
704
+ default: () => [E(n.children, (d) => f(ht, y({
705
+ menu: d
706
+ }, Y(e, gt)), t))],
648
707
  title: () => {
649
- var o;
650
- return ((o = t.title) == null ? void 0 : o.call(t, l)) || (l == null ? void 0 : l.label);
708
+ var d;
709
+ return ((d = t.title) == null ? void 0 : d.call(t, n)) || (n == null ? void 0 : n.label);
651
710
  }
652
- }) : f(_.MenuItem, g({
653
- index: l == null ? void 0 : l.value
654
- }, (a = e.convertMenuItemProps) == null ? void 0 : a.call(e, l), {
655
- onClick: d
711
+ }) : f(Q.MenuItem, y({
712
+ index: n == null ? void 0 : n.value
713
+ }, (l = e.convertMenuItemProps) == null ? void 0 : l.call(e, n), {
714
+ onClick: o
656
715
  }), {
657
716
  title: () => {
658
- var o;
659
- return ((o = t.title) == null ? void 0 : o.call(t, l)) || (l == null ? void 0 : l.label);
717
+ var d;
718
+ return ((d = t.title) == null ? void 0 : d.call(t, n)) || (n == null ? void 0 : n.label);
660
719
  },
661
720
  default: t.default ? () => {
662
- var o;
663
- return (o = t.default) == null ? void 0 : o.call(t, l);
721
+ var d;
722
+ return (d = t.default) == null ? void 0 : d.call(t, n);
664
723
  } : void 0
665
724
  });
666
725
  };
667
726
  }
668
- }), qe = () => ({
727
+ }), Ze = () => ({
669
728
  activeKey: {
670
729
  type: String
671
730
  },
@@ -681,42 +740,42 @@ const ze = () => ({
681
740
  }
682
741
  },
683
742
  ...ye
684
- }), fa = w({
743
+ }), ga = k({
685
744
  props: {
686
- ...b(_.props, "defaultActive"),
687
- ...qe()
745
+ ...h(Q.props, "defaultActive"),
746
+ ...Ze()
688
747
  },
689
748
  setup: (e, {
690
749
  slots: t
691
750
  }) => {
692
- const d = T(e.activeKey);
751
+ const o = T(e.activeKey);
693
752
  H(() => {
694
- e.activeKey !== d.value && (d.value = e.activeKey);
753
+ e.activeKey !== o.value && (o.value = e.activeKey);
695
754
  }, () => e.activeKey);
696
- const l = x(() => {
697
- var a;
698
- return Qt(e.options, (o) => {
699
- var n, m;
700
- const y = ((n = e.fieldNames) == null ? void 0 : n.value) || "value", c = ((m = e.fieldNames) == null ? void 0 : m.label) || "label";
755
+ const n = x(() => {
756
+ var l;
757
+ return Yt(e.options, (d) => {
758
+ var a, m;
759
+ const s = ((a = e.fieldNames) == null ? void 0 : a.value) || "value", c = ((m = e.fieldNames) == null ? void 0 : m.label) || "label";
701
760
  return {
702
- ...b(o, y, c),
703
- value: E(o, y),
704
- label: E(o, c)
761
+ ...h(d, s, c),
762
+ value: w(d, s),
763
+ label: w(d, c)
705
764
  };
706
765
  }, {
707
- children: ((a = e.fieldNames) == null ? void 0 : a.children) || "children",
766
+ children: ((l = e.fieldNames) == null ? void 0 : l.children) || "children",
708
767
  childrenName: "children"
709
768
  });
710
- }), u = M(qe());
711
- return () => f(_, g({
712
- defaultActive: d.value
713
- }, b(e, u)), {
714
- default: () => f(ot, null, [F(l.value, (a) => f(st, g({
715
- menu: a
716
- }, J(e, yt)), t))])
769
+ }), u = $(Ze());
770
+ return () => f(Q, y({
771
+ defaultActive: o.value
772
+ }, h(e, u)), {
773
+ default: () => f(ct, null, [E(n.value, (l) => f(ht, y({
774
+ menu: l
775
+ }, Y(e, gt)), t))])
717
776
  });
718
777
  }
719
- }), Ge = () => ({
778
+ }), Je = () => ({
720
779
  modelValue: {
721
780
  type: Array,
722
781
  default: void 0
@@ -750,114 +809,114 @@ const ze = () => ({
750
809
  type: Function,
751
810
  default: void 0
752
811
  }
753
- }), ya = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], gt = w({
812
+ }), ha = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], vt = k({
754
813
  props: {
755
- ...b(Me.props, "fileList"),
756
- ...Ge()
814
+ ...h(Ne.props, "fileList"),
815
+ ...Je()
757
816
  },
758
817
  setup: (e, {
759
818
  slots: t,
760
- expose: d,
761
- emit: l
819
+ expose: o,
820
+ emit: n
762
821
  }) => {
763
822
  const {
764
823
  showMsg: u,
765
- t: a
766
- } = fe(), o = T();
767
- d(L(o, ya));
824
+ t: l
825
+ } = fe(), d = T();
826
+ o(D(d, ha));
768
827
  const {
769
- formItem: y
770
- } = Tt(), c = () => j(e.modelValue) ? F(e.modelValue, (v) => {
828
+ formItem: s
829
+ } = $t(), c = () => j(e.modelValue) ? E(e.modelValue, (b) => {
771
830
  var p;
772
- return ((p = e.convertItemData) == null ? void 0 : p.call(e, v)) || v;
773
- }) : [], n = T(c());
831
+ return ((p = e.convertItemData) == null ? void 0 : p.call(e, b)) || b;
832
+ }) : [], a = T(c());
774
833
  let m = !1;
775
834
  const r = () => {
776
835
  var p;
777
836
  m = !0;
778
- const v = ce(n.value, (P) => P.status === "success");
779
- l("update:modelValue", F(v, (P) => {
780
- var k;
781
- return ((k = e.convertResponseData) == null ? void 0 : k.call(e, P)) || P;
782
- })), (p = y == null ? void 0 : y.validate) == null || p.call(y, "change");
837
+ const b = ce(a.value, (P) => P.status === "success");
838
+ n("update:modelValue", E(b, (P) => {
839
+ var F;
840
+ return ((F = e.convertResponseData) == null ? void 0 : F.call(e, P)) || P;
841
+ })), (p = s == null ? void 0 : s.validate) == null || p.call(s, "change");
783
842
  };
784
843
  H(() => {
785
- m || (n.value = c(), m = !1);
844
+ m || (a.value = c(), m = !1);
786
845
  }, () => e.modelValue);
787
846
  let i;
788
847
  const S = () => {
789
- e.globalLoading && (i = tt.service({
848
+ e.globalLoading && (i = nt.service({
790
849
  lock: !0,
791
- text: a.value("uploadingWatting"),
792
- ...Z(e.globalLoading) ? {} : e.globalLoading
850
+ text: l.value("uploadingWatting"),
851
+ ...X(e.globalLoading) ? {} : e.globalLoading
793
852
  }));
794
- }, s = () => {
853
+ }, g = () => {
795
854
  e.globalLoading && (i == null || i.close());
796
855
  };
797
- Q(() => () => {
798
- s();
856
+ ee(() => () => {
857
+ g();
799
858
  }, []);
800
- const K = (v, p, P) => {
859
+ const K = (b, p, P) => {
801
860
  if (e.onErrorMsg) {
802
- e.onErrorMsg(v, p);
861
+ e.onErrorMsg(b, p);
803
862
  return;
804
863
  }
805
864
  u({
806
865
  type: "error",
807
866
  message: p
808
867
  });
809
- }, R = (v) => {
868
+ }, R = (b) => {
810
869
  var p;
811
870
  if (e.beforeUpload)
812
- return e.beforeUpload(v);
813
- if (e.beforeUpload2 && !e.beforeUpload2(v))
871
+ return e.beforeUpload(b);
872
+ if (e.beforeUpload2 && !e.beforeUpload2(b))
814
873
  return !1;
815
- if (e.accept && !Xt(e.accept, v.name))
874
+ if (e.accept && !ea(e.accept, b.name))
816
875
  return K("FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`, {
817
876
  accept: e.accept.replace(/,/g, "\uFF0C")
818
877
  }), !1;
819
- if (U(v.size)) {
820
- if (v.size <= 0)
878
+ if (U(b.size)) {
879
+ if (b.size <= 0)
821
880
  return K("FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
822
- if (U(e.maxSize) && v.size > e.maxSize)
823
- return K("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${Le(e.maxSize)}\u7684\u6587\u4EF6`, {
824
- maxSize: Le(e.maxSize)
881
+ if (U(e.maxSize) && b.size > e.maxSize)
882
+ return K("FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${ze(e.maxSize)}\u7684\u6587\u4EF6`, {
883
+ maxSize: ze(e.maxSize)
825
884
  }), !1;
826
885
  }
827
- return (p = e.onStart) == null || p.call(e, v), S(), !0;
828
- }, O = (v, p, P) => {
829
- var k;
830
- (k = e.onSuccess) == null || k.call(e, v, p, P), r(), s();
831
- }, B = (v, p, P) => {
832
- var k;
833
- (k = e.onError) == null || k.call(e, v, p, P), s(), K("UploadError", "\u4E0A\u4F20\u5931\u8D25");
834
- }, h = (v, p) => {
886
+ return (p = e.onStart) == null || p.call(e, b), S(), !0;
887
+ }, B = (b, p, P) => {
888
+ var F;
889
+ (F = e.onSuccess) == null || F.call(e, b, p, P), r(), g();
890
+ }, O = (b, p, P) => {
891
+ var F;
892
+ (F = e.onError) == null || F.call(e, b, p, P), g(), K("UploadError", "\u4E0A\u4F20\u5931\u8D25");
893
+ }, v = (b, p) => {
835
894
  var P;
836
- n.value = ce(n.value, (k) => !(v.uid === k.uid && v.name === k.name)), (P = e.onRemove) == null || P.call(e, v, p), r();
837
- }, V = x(() => U(e.limit) ? e.limit > D(n.value) : !0), N = M(Ge());
895
+ a.value = ce(a.value, (F) => !(b.uid === F.uid && b.name === F.name)), (P = e.onRemove) == null || P.call(e, b, p), r();
896
+ }, C = x(() => U(e.limit) ? e.limit > L(a.value) : !0), N = $(Je());
838
897
  return () => {
839
- var v, p;
898
+ var b, p;
840
899
  return f("div", {
841
- class: `pro-uploader ${V.value ? "" : "pro-uploader-limit"}`
842
- }, [(v = t.start) == null ? void 0 : v.call(t), f(Me, g({
843
- ref: o,
844
- fileList: n.value,
845
- "onUpdate:fileList": (P) => n.value = P
846
- }, b(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...N), {
900
+ class: `pro-uploader ${C.value ? "" : "pro-uploader-limit"}`
901
+ }, [(b = t.start) == null ? void 0 : b.call(t), f(Ne, y({
902
+ ref: d,
903
+ fileList: a.value,
904
+ "onUpdate:fileList": (P) => a.value = P
905
+ }, h(e, "fileList", "onSuccess", "onError", "onRemove", "beforeUpload", ...N), {
847
906
  beforeUpload: R,
848
- onSuccess: O,
849
- onError: B,
850
- onRemove: h
907
+ onSuccess: B,
908
+ onError: O,
909
+ onRemove: v
851
910
  }), {
852
911
  default: () => {
853
- var P, k;
854
- return [V.value && f(ot, null, [((P = t.default) == null ? void 0 : P.call(t)) || ((k = e.renderDom) == null ? void 0 : k.call(e))])];
912
+ var P, F;
913
+ return [C.value && f(ct, null, [((P = t.default) == null ? void 0 : P.call(t)) || ((F = e.renderDom) == null ? void 0 : F.call(e))])];
855
914
  },
856
- ...b(t, "default")
915
+ ...h(t, "default")
857
916
  }), (p = t.end) == null ? void 0 : p.call(t)]);
858
917
  };
859
918
  }
860
- }), _e = () => ({
919
+ }), Qe = () => ({
861
920
  modelValue: {
862
921
  type: Array
863
922
  },
@@ -874,54 +933,54 @@ const ze = () => ({
874
933
  divider: {
875
934
  type: Function
876
935
  }
877
- }), sa = w({
936
+ }), va = k({
878
937
  props: {
879
- ...b(G.props, "modelValue"),
938
+ ...h(J.props, "modelValue"),
880
939
  controlsPosition: {
881
940
  type: String,
882
941
  default: "right"
883
942
  },
884
- ..._e()
943
+ ...Qe()
885
944
  },
886
945
  setup: (e, {
887
946
  slots: t,
888
- emit: d
947
+ emit: o
889
948
  }) => {
890
- const l = T(E(e.modelValue, 0)), u = T(E(e.modelValue, 1));
891
- let a = !1;
949
+ const n = T(w(e.modelValue, 0)), u = T(w(e.modelValue, 1));
950
+ let l = !1;
892
951
  H(() => {
893
- a || (l.value = E(e.modelValue, 0), u.value = E(e.modelValue, 1)), a = !1;
952
+ l || (n.value = w(e.modelValue, 0), u.value = w(e.modelValue, 1)), l = !1;
894
953
  }, [e.modelValue, () => e.modelValue]);
895
- const o = () => {
896
- a = !0, e.singleEmit ? d("update:modelValue", [l.value, u.value]) : U(l.value) && U(u.value) ? d("update:modelValue", [l.value, u.value]) : d("update:modelValue", null);
897
- }, y = (r) => {
954
+ const d = () => {
955
+ l = !0, e.singleEmit ? o("update:modelValue", [n.value, u.value]) : U(n.value) && U(u.value) ? o("update:modelValue", [n.value, u.value]) : o("update:modelValue", null);
956
+ }, s = (r) => {
898
957
  for (let i = 0; i < r.length; i++)
899
958
  if (U(r[i]))
900
959
  return r[i];
901
960
  }, c = x(() => {
902
961
  var r;
903
- return y([u.value, (r = e.start) == null ? void 0 : r.max, e.max]);
904
- }), n = x(() => {
962
+ return s([u.value, (r = e.start) == null ? void 0 : r.max, e.max]);
963
+ }), a = x(() => {
905
964
  var r;
906
- return y([l.value, (r = e.end) == null ? void 0 : r.min, e.min]);
907
- }), m = M(_e());
965
+ return s([n.value, (r = e.end) == null ? void 0 : r.min, e.min]);
966
+ }), m = $(Qe());
908
967
  return () => {
909
968
  var i, S;
910
- const r = b(e, ...m, "min", "max");
969
+ const r = h(e, ...m, "min", "max");
911
970
  return f("span", {
912
971
  class: "pro-number-range"
913
- }, [f(G, g(r, b(e.start, "max"), {
972
+ }, [f(J, y(r, h(e.start, "max"), {
914
973
  max: c.value,
915
- modelValue: l.value,
916
- "onUpdate:modelValue": [(s) => l.value = s, o]
917
- }), null), f("span", null, [((i = t.divider) == null ? void 0 : i.call(t)) || ((S = e.divider) == null ? void 0 : S.call(e)) || " - "]), f(G, g(r, b(e.start, "min"), {
918
- min: n.value,
974
+ modelValue: n.value,
975
+ "onUpdate:modelValue": [(g) => n.value = g, d]
976
+ }), null), f("span", null, [((i = t.divider) == null ? void 0 : i.call(t)) || ((S = e.divider) == null ? void 0 : S.call(e)) || " - "]), f(J, y(r, h(e.start, "min"), {
977
+ min: a.value,
919
978
  modelValue: u.value,
920
- "onUpdate:modelValue": [(s) => u.value = s, o]
979
+ "onUpdate:modelValue": [(g) => u.value = g, d]
921
980
  }), null)]);
922
981
  };
923
982
  }
924
- }), ga = ["filter", "updateKeyChildren", "getCheckedNodes", "setCheckedNodes", "getCheckedKeys", "setCheckedKeys", "setChecked", "getHalfCheckedNodes", "getHalfCheckedKeys", "getCurrentKey", "getCurrentNode", "setCurrentKey", "setCurrentNode", "getNode", "remove", "append", "insertBefore", "insertAfter"], Ze = () => ({
983
+ }), ba = ["filter", "updateKeyChildren", "getCheckedNodes", "setCheckedNodes", "getCheckedKeys", "setCheckedKeys", "setChecked", "getHalfCheckedNodes", "getHalfCheckedKeys", "getCurrentKey", "getCurrentNode", "setCurrentKey", "setCurrentNode", "getNode", "remove", "append", "insertBefore", "insertAfter"], Xe = () => ({
925
984
  treeData: {
926
985
  type: Array
927
986
  },
@@ -938,76 +997,76 @@ const ze = () => ({
938
997
  checkedKeys: {
939
998
  type: Array
940
999
  }
941
- }), ja = w({
1000
+ }), Ga = k({
942
1001
  props: {
943
- ...Ne.props,
944
- ...Ze()
1002
+ ...Ie.props,
1003
+ ...Xe()
945
1004
  },
946
1005
  setup: (e, {
947
1006
  slots: t
948
1007
  }) => {
949
- const d = M(Ze()), u = (() => {
950
- const a = e.fieldNames;
951
- if (!!a)
1008
+ const o = $(Xe()), u = (() => {
1009
+ const l = e.fieldNames;
1010
+ if (!!l)
952
1011
  return {
953
- label: a.title,
954
- children: a.children,
955
- disabled: a.disabled,
956
- isLeaf: a.isLeaf,
957
- class: a.class
1012
+ label: l.title,
1013
+ children: l.children,
1014
+ disabled: l.disabled,
1015
+ isLeaf: l.isLeaf,
1016
+ class: l.class
958
1017
  };
959
1018
  })();
960
1019
  return () => {
961
- var a;
962
- return f(Ne, g(b(e, d), {
1020
+ var l;
1021
+ return f(Ie, y(h(e, o), {
963
1022
  data: e.treeData || e.data,
964
1023
  props: u || e.props,
965
- nodeKey: ((a = e.fieldNames) == null ? void 0 : a.key) || e.nodeKey,
966
- showCheckbox: Z(e.selectable) ? e.selectable : e.showCheckbox,
1024
+ nodeKey: ((l = e.fieldNames) == null ? void 0 : l.key) || e.nodeKey,
1025
+ showCheckbox: X(e.selectable) ? e.selectable : e.showCheckbox,
967
1026
  defaultExpandedKeys: e.expandedKeys || e.defaultExpandedKeys,
968
1027
  defaultCheckedKeys: e.checkedKeys || e.checkedKeys
969
1028
  }), t);
970
1029
  };
971
1030
  }
972
1031
  });
973
- function ha(e) {
974
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Wt(e);
1032
+ function Sa(e) {
1033
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !qt(e);
975
1034
  }
976
- const Je = () => ({
1035
+ const Ye = () => ({
977
1036
  options: Array
978
- }), va = w({
1037
+ }), pa = k({
979
1038
  props: {
980
- ...$e.props,
981
- ...Je()
1039
+ ...Oe.props,
1040
+ ...Ye()
982
1041
  },
983
1042
  setup: (e, {
984
1043
  slots: t,
985
- expose: d
1044
+ expose: o
986
1045
  }) => {
987
- const l = T();
988
- d(L(l));
989
- const u = M(Je());
990
- return () => f($e, g({
991
- ref: l
992
- }, b(e, u)), {
1046
+ const n = T();
1047
+ o(D(n));
1048
+ const u = $(Ye());
1049
+ return () => f(Oe, y({
1050
+ ref: n
1051
+ }, h(e, u)), {
993
1052
  dropdown: () => {
994
- let a;
995
- return f(Rt, null, ha(a = F(e.options, (o) => {
1053
+ let l;
1054
+ return f(Mt, null, Sa(l = E(e.options, (d) => {
996
1055
  var c;
997
- const y = (c = t.label) == null ? void 0 : c.call(t, o);
998
- return f(Mt, g({
999
- command: o.value
1000
- }, b(o, "value", "label")), {
1001
- default: () => [y || o.label]
1056
+ const s = (c = t.label) == null ? void 0 : c.call(t, d);
1057
+ return f(Nt, y({
1058
+ command: d.value
1059
+ }, h(d, "value", "label")), {
1060
+ default: () => [s || d.label]
1002
1061
  });
1003
- })) ? a : {
1004
- default: () => [a]
1062
+ })) ? l : {
1063
+ default: () => [l]
1005
1064
  });
1006
1065
  },
1007
1066
  ...t
1008
1067
  });
1009
1068
  }
1010
- }), Qe = () => ({
1069
+ }), et = () => ({
1011
1070
  options: Array,
1012
1071
  fieldNames: {
1013
1072
  type: Object
@@ -1018,7 +1077,7 @@ const Je = () => ({
1018
1077
  },
1019
1078
  expMethods: {
1020
1079
  type: Array,
1021
- default: () => [...ga]
1080
+ default: () => [...ba]
1022
1081
  },
1023
1082
  separator$: {
1024
1083
  type: String
@@ -1032,72 +1091,72 @@ const Je = () => ({
1032
1091
  formatValue$: {
1033
1092
  type: Function
1034
1093
  }
1035
- }), ba = w({
1094
+ }), Pa = k({
1036
1095
  props: {
1037
- ...Ie.props,
1038
- ...Qe()
1096
+ ...Be.props,
1097
+ ...et()
1039
1098
  },
1040
1099
  setup: (e, {
1041
1100
  slots: t,
1042
- emit: d,
1043
- expose: l
1101
+ emit: o,
1102
+ expose: n
1044
1103
  }) => {
1045
1104
  const u = T();
1046
- l(ut(u, e.expMethods));
1047
- const a = x(() => e.options || e.data), o = x(() => e.fieldNames || e.props), y = x(() => {
1105
+ n(se(u, e.expMethods));
1106
+ const l = x(() => e.options || e.data), d = x(() => e.fieldNames || e.props), s = x(() => {
1048
1107
  const r = e.modelValue;
1049
1108
  if (e.parseValue$)
1050
1109
  return e.parseValue$(r, e);
1051
- const i = X(r, {
1110
+ const i = q(r, {
1052
1111
  multiple: e.multiple,
1053
1112
  allPath: e.emitPath,
1054
1113
  separator: e.separator$,
1055
1114
  itemSeparator: e.itemSeparator$
1056
1115
  });
1057
- return j(i) ? e.multiple ? F(i, (S) => j(S) ? ie(S) : S) : ie(i) : i;
1116
+ return j(i) ? e.multiple ? E(i, (S) => j(S) ? ie(S) : S) : ie(i) : i;
1058
1117
  }), c = (r) => {
1059
- var S, s;
1118
+ var S, g;
1060
1119
  let i = r;
1061
1120
  if (e.emitPath && r) {
1062
- const K = ((S = o.value) == null ? void 0 : S.value) || "value", R = ((s = o.value) == null ? void 0 : s.children) || "children";
1121
+ const K = ((S = d.value) == null ? void 0 : S.value) || "value", R = ((g = d.value) == null ? void 0 : g.children) || "children";
1063
1122
  if (j(r))
1064
- i = F(r, (O) => {
1065
- const B = Ue(a.value, (h) => E(h, K) === O, {
1123
+ i = E(r, (B) => {
1124
+ const O = je(l.value, (v) => w(v, K) === B, {
1066
1125
  children: R
1067
1126
  }, []);
1068
- return F(B.parentList, (h) => E(h, K));
1127
+ return E(O.parentList, (v) => w(v, K));
1069
1128
  });
1070
1129
  else {
1071
- const O = Ue(a.value, (B) => E(B, K) === r, {
1130
+ const B = je(l.value, (O) => w(O, K) === r, {
1072
1131
  children: R
1073
1132
  }, []);
1074
- i = F(O.parentList, (B) => E(B, K));
1133
+ i = E(B.parentList, (O) => w(O, K));
1075
1134
  }
1076
1135
  }
1077
- return e.separator$ || e.itemSeparator$ ? Y(i, {
1136
+ return e.separator$ || e.itemSeparator$ ? G(i, {
1078
1137
  multiple: e.multiple,
1079
1138
  allPath: e.emitPath,
1080
1139
  separator: e.separator$,
1081
1140
  itemSeparator: e.itemSeparator$
1082
1141
  }) : i;
1083
- }, n = (r) => {
1142
+ }, a = (r) => {
1084
1143
  if (e.formatValue$) {
1085
- d("update:modelValue", e.formatValue$(r, e));
1144
+ o("update:modelValue", e.formatValue$(r, e));
1086
1145
  return;
1087
1146
  }
1088
1147
  const i = c(r);
1089
- d("update:modelValue", i);
1090
- }, m = [...M(Qe()), "modelValue", "data", "props"];
1091
- return () => f(Ie, g({
1148
+ o("update:modelValue", i);
1149
+ }, m = [...$(et()), "modelValue", "data", "props"];
1150
+ return () => f(Be, y({
1092
1151
  ref: u
1093
- }, b(e, m), {
1094
- modelValue: y.value,
1095
- "onUpdate:modelValue": (r) => n(r),
1096
- data: a.value,
1097
- props: o.value
1152
+ }, h(e, m), {
1153
+ modelValue: s.value,
1154
+ "onUpdate:modelValue": (r) => a(r),
1155
+ data: l.value,
1156
+ props: d.value
1098
1157
  }), t);
1099
1158
  }
1100
- }), Xe = () => ({
1159
+ }), tt = () => ({
1101
1160
  expandTrigger: {
1102
1161
  type: String,
1103
1162
  default: "click"
@@ -1133,108 +1192,112 @@ const Je = () => ({
1133
1192
  formatValue$: {
1134
1193
  type: Function
1135
1194
  }
1136
- }), Sa = w({
1195
+ }), Va = k({
1137
1196
  props: {
1138
- ...Be.props,
1139
- ...Xe()
1197
+ ...Ae.props,
1198
+ ...tt()
1140
1199
  },
1141
1200
  setup: (e, {
1142
1201
  slots: t,
1143
- emit: d,
1144
- expose: l
1202
+ emit: o,
1203
+ expose: n
1145
1204
  }) => {
1146
1205
  const u = T();
1147
- l(ut(u, e.expMethods));
1148
- const a = x(() => ({
1206
+ n(se(u, e.expMethods));
1207
+ const l = x(() => ({
1149
1208
  ...e.fieldNames,
1150
1209
  expandTrigger: e.expandTrigger,
1151
1210
  multiple: e.multiple,
1152
1211
  checkStrictly: e.checkStrictly,
1153
1212
  emitPath: e.emitPath,
1154
1213
  ...e.props
1155
- })), o = x(() => {
1156
- const n = e.modelValue;
1157
- return e.parseValue$ ? e.parseValue$(n, e) : X(n, {
1158
- multiple: a.value.multiple,
1159
- allPath: a.value.emitPath,
1214
+ })), d = x(() => {
1215
+ const a = e.modelValue;
1216
+ return e.parseValue$ ? e.parseValue$(a, e) : q(a, {
1217
+ multiple: l.value.multiple,
1218
+ allPath: l.value.emitPath,
1160
1219
  separator: e.separator$,
1161
1220
  itemSeparator: e.itemSeparator$
1162
1221
  });
1163
- }), y = (n) => {
1222
+ }), s = (a) => {
1164
1223
  if (e.formatValue$) {
1165
- d("update:modelValue", e.formatValue$(n, e));
1224
+ o("update:modelValue", e.formatValue$(a, e));
1166
1225
  return;
1167
1226
  }
1168
1227
  if (e.separator$ || e.itemSeparator$) {
1169
- d("update:modelValue", Y(n, {
1170
- multiple: a.value.multiple,
1171
- allPath: a.value.emitPath,
1228
+ o("update:modelValue", G(a, {
1229
+ multiple: l.value.multiple,
1230
+ allPath: l.value.emitPath,
1172
1231
  separator: e.separator$,
1173
1232
  itemSeparator: e.itemSeparator$
1174
1233
  }));
1175
1234
  return;
1176
1235
  }
1177
- d("update:modelValue", n);
1178
- }, c = [...M(Xe()), "modelValue", "props"];
1179
- return () => f(Be, g({
1236
+ o("update:modelValue", a);
1237
+ }, c = [...$(tt()), "modelValue", "props"];
1238
+ return () => f(Ae, y({
1180
1239
  ref: u
1181
- }, b(e, c), {
1182
- modelValue: o.value,
1183
- "onUpdate:modelValue": (n) => y(n),
1184
- props: a.value
1240
+ }, h(e, c), {
1241
+ modelValue: d.value,
1242
+ "onUpdate:modelValue": (a) => s(a),
1243
+ props: l.value
1185
1244
  }), t);
1186
1245
  }
1187
- }), pa = I({
1188
- InputComp: Nt,
1246
+ }), Ca = M({
1247
+ InputComp: It,
1189
1248
  valueType: "text",
1190
1249
  name: "PFromText"
1191
- }), Pa = I({
1192
- InputComp: G,
1250
+ }), xa = M({
1251
+ InputComp: J,
1193
1252
  valueType: "digit",
1194
1253
  name: "PFormNumber"
1195
- }), Ca = I({
1196
- InputComp: sa,
1254
+ }), Ka = M({
1255
+ InputComp: va,
1197
1256
  valueType: "digitRange",
1198
1257
  name: "PFormNumberRange"
1199
- }), Va = I({
1200
- InputComp: $t,
1258
+ }), ka = M({
1259
+ InputComp: Ot,
1201
1260
  valueType: "date",
1202
1261
  name: "PFormDate"
1203
- }), xa = I({
1204
- InputComp: It,
1262
+ }), Fa = M({
1263
+ InputComp: Bt,
1205
1264
  valueType: "time",
1206
1265
  name: "PFormTime"
1207
- }), Ka = I({
1208
- InputComp: ma,
1266
+ }), wa = M({
1267
+ InputComp: sa,
1209
1268
  valueType: "select",
1210
1269
  name: "PFormSelect"
1211
- }), ka = I({
1212
- InputComp: ba,
1270
+ }), Ea = M({
1271
+ InputComp: ya,
1272
+ valueType: "selectv2",
1273
+ name: "PFormSelectV2"
1274
+ }), Ta = M({
1275
+ InputComp: Pa,
1213
1276
  valueType: "treeSelect",
1214
1277
  name: "PFormTreeSelect"
1215
- }), wa = I({
1216
- InputComp: ca,
1278
+ }), Ra = M({
1279
+ InputComp: ma,
1217
1280
  valueType: "checkbox",
1218
1281
  name: "PFromCheckbox"
1219
- }), Fa = I({
1220
- InputComp: ia,
1282
+ }), $a = M({
1283
+ InputComp: fa,
1221
1284
  valueType: "radio",
1222
1285
  name: "PFromRadio"
1223
- }), Ea = I({
1224
- InputComp: Bt,
1286
+ }), Ma = M({
1287
+ InputComp: At,
1225
1288
  valueType: "switch",
1226
1289
  name: "PFromSwitch"
1227
- }), Ta = I({
1228
- InputComp: Sa,
1290
+ }), Na = M({
1291
+ InputComp: Va,
1229
1292
  valueType: "cascader",
1230
1293
  name: "PFormCascader"
1231
- }), Ra = I({
1232
- InputComp: Ot,
1294
+ }), Ia = M({
1295
+ InputComp: Lt,
1233
1296
  valueType: "color",
1234
1297
  name: "PFormColor"
1235
- }), ht = w({
1298
+ }), bt = k({
1236
1299
  props: {
1237
- ...b(ue.props, "label", "prop"),
1300
+ ...h(ue.props, "label", "prop"),
1238
1301
  title: {
1239
1302
  type: String
1240
1303
  },
@@ -1251,53 +1314,53 @@ const Je = () => ({
1251
1314
  setup: (e, {
1252
1315
  slots: t
1253
1316
  }) => {
1254
- const d = ({
1255
- row: a,
1256
- column: o,
1257
- $index: y
1317
+ const o = ({
1318
+ row: l,
1319
+ column: d,
1320
+ $index: s
1258
1321
  }) => {
1259
- var s;
1260
- const c = a, n = y, m = {
1261
- ...o,
1262
- title: o.label,
1263
- dataIndex: o.property
1264
- }, r = E(a, m.dataIndex), i = {
1322
+ var g;
1323
+ const c = l, a = s, m = {
1324
+ ...d,
1325
+ title: d.label,
1326
+ dataIndex: d.property
1327
+ }, r = w(l, m.dataIndex), i = {
1265
1328
  value: r,
1266
1329
  text: r,
1267
1330
  record: c,
1268
1331
  column: m,
1269
- index: n
1270
- }, S = (s = t.bodyCell) == null ? void 0 : s.call(t, i);
1332
+ index: a
1333
+ }, S = (g = t.bodyCell) == null ? void 0 : g.call(t, i);
1271
1334
  return S || (e.customRender ? e.customRender(i) : r);
1272
1335
  }, u = {
1273
1336
  header: ({
1274
- column: a,
1275
- $index: o
1337
+ column: l,
1338
+ $index: d
1276
1339
  }) => {
1277
1340
  var r;
1278
- const y = o, c = a.label, n = {
1279
- ...a,
1341
+ const s = d, c = l.label, a = {
1342
+ ...l,
1280
1343
  title: c,
1281
- dataIndex: a.property
1344
+ dataIndex: l.property
1282
1345
  };
1283
1346
  return ((r = t.headerCell) == null ? void 0 : r.call(t, {
1284
1347
  title: c,
1285
- column: n,
1286
- index: y
1348
+ column: a,
1349
+ index: s
1287
1350
  })) || c;
1288
1351
  }
1289
1352
  };
1290
- return (!e.children || D(e.children) <= 0) && (u.default = d), () => f(ue, g(b(e, "title", "dataIndex", "prop", "customRender", "children"), {
1353
+ return (!e.children || L(e.children) <= 0) && (u.default = o), () => f(ue, y(h(e, "title", "dataIndex", "prop", "customRender", "children"), {
1291
1354
  prop: e.dataIndex,
1292
1355
  label: e.title
1293
1356
  }), {
1294
- default: () => [D(e.children) > 0 && F(e.children, (a) => f(ht, g({
1295
- key: a.dataIndex
1296
- }, a), t))],
1357
+ default: () => [L(e.children) > 0 && E(e.children, (l) => f(bt, y({
1358
+ key: l.dataIndex
1359
+ }, l), t))],
1297
1360
  ...u
1298
1361
  });
1299
1362
  }
1300
- }), Ma = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Na = () => ({
1363
+ }), Oa = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Ba = () => ({
1301
1364
  columns: {
1302
1365
  type: Array
1303
1366
  },
@@ -1317,68 +1380,68 @@ const Je = () => ({
1317
1380
  type: Object,
1318
1381
  default: void 0
1319
1382
  }
1320
- }), vt = w({
1383
+ }), St = k({
1321
1384
  props: {
1322
- ...Oe.props,
1323
- ...Na()
1385
+ ...Le.props,
1386
+ ...Ba()
1324
1387
  },
1325
1388
  setup: (e, {
1326
1389
  slots: t,
1327
- expose: d,
1328
- emit: l
1390
+ expose: o,
1391
+ emit: n
1329
1392
  }) => {
1330
- const u = T(), a = it("table");
1331
- d(Ye(Ma, u));
1332
- const o = x(() => e.dataSource || e.data || []), y = x(() => te(o.value, (h, V) => ({
1333
- ...h,
1334
- [c(V)]: !0
1335
- }), {})), c = (h) => {
1336
- const V = e.rowKey;
1337
- return _t(V) ? V(h) : V ? h[V] : h.id;
1338
- }, n = x(() => !!e.rowSelection), m = x(() => {
1339
- const h = e.rowSelection;
1340
- return h ? !h.type || h.type === "multi" : !1;
1393
+ const u = T(), l = ft("table");
1394
+ o(at(Oa, u));
1395
+ const d = x(() => e.dataSource || e.data || []), s = x(() => te(d.value, (v, C) => ({
1396
+ ...v,
1397
+ [c(C)]: !0
1398
+ }), {})), c = (v) => {
1399
+ const C = e.rowKey;
1400
+ return Jt(C) ? C(v) : C ? v[C] : v.id;
1401
+ }, a = x(() => !!e.rowSelection), m = x(() => {
1402
+ const v = e.rowSelection;
1403
+ return v ? !v.type || v.type === "multi" : !1;
1341
1404
  }), r = x(() => {
1342
- const h = e.selectedRowKeys;
1343
- return j(h) ? h : h ? [h] : [];
1344
- }), i = x(() => te(r.value, (h, V) => ({
1345
- ...h,
1346
- [V]: !0
1405
+ const v = e.selectedRowKeys;
1406
+ return j(v) ? v : v ? [v] : [];
1407
+ }), i = x(() => te(r.value, (v, C) => ({
1408
+ ...v,
1409
+ [C]: !0
1347
1410
  }), {}));
1348
- let S = [], s = !1;
1349
- const K = (h) => {
1350
- var N, v, p, P, k, z, se, ge;
1351
- if (!s)
1411
+ let S = [], g = !1;
1412
+ const K = (v) => {
1413
+ var N, b, p, P, F, z, ge, he;
1414
+ if (!g)
1352
1415
  return;
1353
- const V = F(h, ($) => c($));
1354
- if (n.value && !m.value) {
1355
- if (D(V) <= 0 && D(S) > 0) {
1356
- const $ = o.value, A = Zt($, (q) => c(q) === S[0]);
1416
+ const C = E(v, (I) => c(I));
1417
+ if (a.value && !m.value) {
1418
+ if (L(C) <= 0 && L(S) > 0) {
1419
+ const I = d.value, A = Qt(I, (_) => c(_) === S[0]);
1357
1420
  A && ((N = u.value) == null || N.toggleRowSelection(A, !0));
1358
1421
  return;
1359
- } else if (D(V) > 1) {
1360
- const $ = ie(V);
1361
- De(h, (A) => {
1362
- var q;
1363
- (q = u.value) == null || q.toggleRowSelection(A, c(A) === $);
1422
+ } else if (L(C) > 1) {
1423
+ const I = ie(C);
1424
+ Ue(v, (A) => {
1425
+ var _;
1426
+ (_ = u.value) == null || _.toggleRowSelection(A, c(A) === I);
1364
1427
  });
1365
1428
  return;
1366
1429
  }
1367
1430
  }
1368
- if (!Yt(r.value, V, {
1431
+ if (!ta(r.value, C, {
1369
1432
  sort: !0
1370
1433
  })) {
1371
1434
  if (!m.value) {
1372
- const $ = E(V, 0);
1373
- (p = (v = e.rowSelection).onChange) == null || p.call(v, $, E(h, 0)), l("update:selectedRowKeys", $);
1435
+ const I = w(C, 0);
1436
+ (p = (b = e.rowSelection).onChange) == null || p.call(b, I, w(v, 0)), n("update:selectedRowKeys", I);
1374
1437
  return;
1375
1438
  }
1376
1439
  if ((P = e.rowSelection) != null && P.pagination) {
1377
- const $ = ce(r.value, (A) => !y.value[A]);
1378
- $.push(...V), (z = (k = e.rowSelection).onChange) == null || z.call(k, $, []), l("update:selectedRowKeys", $);
1440
+ const I = ce(r.value, (A) => !s.value[A]);
1441
+ I.push(...C), (z = (F = e.rowSelection).onChange) == null || z.call(F, I, []), n("update:selectedRowKeys", I);
1379
1442
  return;
1380
1443
  }
1381
- (ge = (se = e.rowSelection).onChange) == null || ge.call(se, V, h), l("update:selectedRowKeys", V);
1444
+ (he = (ge = e.rowSelection).onChange) == null || he.call(ge, C, v), n("update:selectedRowKeys", C);
1382
1445
  }
1383
1446
  }, R = x(() => {
1384
1447
  if (!!e.rowSelection)
@@ -1386,70 +1449,70 @@ const Je = () => ({
1386
1449
  onSelectionChange: K
1387
1450
  };
1388
1451
  });
1389
- Q(() => {
1390
- var V;
1391
- s = !1, S = r.value;
1392
- const h = o.value;
1393
- if (n.value) {
1394
- const N = (V = u.value) == null ? void 0 : V.getSelectionRows(), v = te(N, (p, P) => ({
1452
+ ee(() => {
1453
+ var C;
1454
+ g = !1, S = r.value;
1455
+ const v = d.value;
1456
+ if (a.value) {
1457
+ const N = (C = u.value) == null ? void 0 : C.getSelectionRows(), b = te(N, (p, P) => ({
1395
1458
  ...p,
1396
1459
  [c(P)]: !0
1397
1460
  }), {});
1398
- Ht(() => {
1399
- De(h, (p) => {
1400
- var k;
1461
+ Gt(() => {
1462
+ Ue(v, (p) => {
1463
+ var F;
1401
1464
  const P = c(p);
1402
- i.value[P] !== v[P] && ((k = u.value) == null || k.toggleRowSelection(p, !!i.value[P]));
1403
- }), s = !0;
1465
+ i.value[P] !== b[P] && ((F = u.value) == null || F.toggleRowSelection(p, !!i.value[P]));
1466
+ }), g = !0;
1404
1467
  });
1405
1468
  } else
1406
- s = !0;
1407
- }, [r, o]);
1408
- const O = () => {
1409
- var h, V;
1469
+ g = !0;
1470
+ }, [r, d]);
1471
+ const B = () => {
1472
+ var v, C;
1410
1473
  if (e.spanMethod)
1411
1474
  return e.spanMethod;
1412
- if (((h = e.mergeOpts) == null ? void 0 : h.rowNames) || ((V = e.mergeOpts) == null ? void 0 : V.colNames)) {
1413
- const N = ea(e.mergeOpts);
1475
+ if (((v = e.mergeOpts) == null ? void 0 : v.rowNames) || ((C = e.mergeOpts) == null ? void 0 : C.colNames)) {
1476
+ const N = aa(e.mergeOpts);
1414
1477
  return ({
1415
- row: v,
1478
+ row: b,
1416
1479
  column: p
1417
1480
  }) => {
1418
1481
  const P = p.property;
1419
1482
  if (N[P]) {
1420
- const k = v[N[P]], z = v[P + "-colspan"];
1483
+ const F = b[N[P]], z = b[P + "-colspan"];
1421
1484
  return {
1422
- rowspan: k !== void 0 ? k : 1,
1485
+ rowspan: F !== void 0 ? F : 1,
1423
1486
  colspan: z !== void 0 ? z : 1
1424
1487
  };
1425
1488
  }
1426
1489
  };
1427
1490
  }
1428
1491
  return e.spanMethod;
1429
- }, B = x(() => O());
1430
- return () => f(Oe, g({
1492
+ }, O = x(() => B());
1493
+ return () => f(Le, y({
1431
1494
  ref: u,
1432
- id: a
1433
- }, b(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
1434
- data: o.value,
1435
- spanMethod: B.value
1495
+ id: l
1496
+ }, h(e, "columns", "dataSource", "data", "loading", "spanMethod"), {
1497
+ data: d.value,
1498
+ spanMethod: O.value
1436
1499
  }, R.value), {
1437
1500
  default: () => {
1438
- var h, V, N, v, p;
1439
- return [(h = t.start) == null ? void 0 : h.call(t), n.value && f(ue, g({
1501
+ var v, C, N, b, p;
1502
+ return [(v = t.start) == null ? void 0 : v.call(t), a.value && f(ue, y({
1440
1503
  type: "selection",
1441
1504
  className: m.value ? "pro-multi" : "pro-single"
1442
- }, b((V = e.rowSelection) == null ? void 0 : V.column, "slots")), (v = (N = e.rowSelection) == null ? void 0 : N.column) == null ? void 0 : v.slots), F(e.columns, (P) => f(ht, g({
1505
+ }, h((C = e.rowSelection) == null ? void 0 : C.column, "slots")), (b = (N = e.rowSelection) == null ? void 0 : N.column) == null ? void 0 : b.slots), E(e.columns, (P) => f(bt, y({
1443
1506
  key: P.dataIndex
1444
- }, P), t)), (p = t.default) == null ? void 0 : p.call(t), e.loading && f(mt, {
1445
- target: a,
1507
+ }, P), t)), (p = t.default) == null ? void 0 : p.call(t), e.loading && f(st, {
1508
+ target: l,
1446
1509
  loading: !0
1447
1510
  }, null)];
1448
1511
  },
1449
- ...J(t, "append", "empty")
1512
+ ...Y(t, "append", "empty")
1450
1513
  });
1451
1514
  }
1452
- }), $a = w({
1515
+ }), Aa = k({
1453
1516
  props: {
1454
1517
  ...de.props,
1455
1518
  type: {
@@ -1464,7 +1527,7 @@ const Je = () => ({
1464
1527
  setup: (e, {
1465
1528
  slots: t
1466
1529
  }) => () => f(de, e, t)
1467
- }), Ia = () => ({
1530
+ }), La = () => ({
1468
1531
  fixed: {
1469
1532
  type: Boolean,
1470
1533
  default: !0
@@ -1481,207 +1544,211 @@ const Je = () => ({
1481
1544
  type: Number,
1482
1545
  default: 100
1483
1546
  }
1484
- }), Ba = w({
1547
+ }), Da = k({
1485
1548
  inheritAttrs: !1,
1486
1549
  props: {
1487
- ...b(Ae.props, ["class"]),
1488
- ...Ia()
1550
+ ...h(De.props, ["class"]),
1551
+ ...La()
1489
1552
  },
1490
1553
  setup: (e, {
1491
1554
  attrs: t
1492
1555
  }) => {
1493
- const d = T(), [l, u] = ta(), a = rt({
1556
+ const o = T(), [n, u] = la(), l = dt({
1494
1557
  width: 0,
1495
1558
  height: 0
1496
1559
  });
1497
- aa(d, (m) => {
1560
+ na(o, (m) => {
1498
1561
  var i;
1499
1562
  const r = (i = m[0]) == null ? void 0 : i.contentRect;
1500
- a.width = r.width, a.height = r.height, u();
1563
+ l.width = r.width, l.height = r.height, u();
1501
1564
  });
1502
- const o = x(() => {
1503
- var S, s;
1504
- const m = ((S = e.columns) == null ? void 0 : S.filter((K) => K.width || K.minWidth)) || [], r = m.reduce((K, R) => K + (R.width || R.minWidth || 0), 0), i = (((s = e.columns) == null ? void 0 : s.length) || 0) - m.length;
1505
- return i > 0 && a.width > 0 ? Math.max((a.width - r - (e.vScrollbarSize || 0)) / i, e.minWidth || 0) : e.minWidth;
1506
- }), y = x(() => F(e.columns, (m) => {
1565
+ const d = x(() => {
1566
+ var S, g;
1567
+ const m = ((S = e.columns) == null ? void 0 : S.filter((K) => K.width || K.minWidth)) || [], r = m.reduce((K, R) => K + (R.width || R.minWidth || 0), 0), i = (((g = e.columns) == null ? void 0 : g.length) || 0) - m.length;
1568
+ return i > 0 && l.width > 0 ? Math.max((l.width - r - (e.vScrollbarSize || 0)) / i, e.minWidth || 0) : e.minWidth;
1569
+ }), s = x(() => E(e.columns, (m) => {
1507
1570
  const r = m.dataIndex || m.key, i = {
1508
1571
  ...m,
1509
- width: m.width || m.minWidth || o.value,
1572
+ width: m.width || m.minWidth || d.value,
1510
1573
  key: r,
1511
1574
  dataKey: r
1512
1575
  };
1513
1576
  return m.customRender && (i.cellRenderer = ({
1514
1577
  cellData: S,
1515
- rowData: s,
1578
+ rowData: g,
1516
1579
  rowIndex: K,
1517
1580
  column: R
1518
1581
  }) => m.customRender({
1519
1582
  value: S,
1520
1583
  text: S,
1521
- record: s,
1584
+ record: g,
1522
1585
  column: R,
1523
1586
  index: K
1524
1587
  })), i;
1525
- })), c = x(() => !e.estimatedRowHeight && e.dynamicHei ? 50 : e.estimatedRowHeight), n = x(() => {
1588
+ })), c = x(() => !e.estimatedRowHeight && e.dynamicHei ? 50 : e.estimatedRowHeight), a = x(() => {
1526
1589
  const m = ["el-table"];
1527
1590
  return c.value && m.push("dynamic-hei"), m;
1528
1591
  });
1529
- return () => f("div", g({
1592
+ return () => f("div", y({
1530
1593
  class: "pro-table-v2-wrapper",
1531
1594
  style: {
1532
1595
  "--estimated-hei": `${c.value || 0}px`
1533
1596
  },
1534
- ref: d
1535
- }, J(t, ["class"])), [a.width > 0 && a.height > 0 && f(Ae, g({
1536
- key: l.value,
1537
- class: n.value
1538
- }, b(t, ["class", "className"]), b(e, "dataSource", "data", "columns", "estimatedRowHeight", "width", "height"), {
1597
+ ref: o
1598
+ }, Y(t, ["class"])), [l.width > 0 && l.height > 0 && f(De, y({
1599
+ key: n.value,
1600
+ class: a.value
1601
+ }, h(t, ["class", "className"]), h(e, "dataSource", "data", "columns", "estimatedRowHeight", "width", "height"), {
1539
1602
  estimatedRowHeight: c.value,
1540
- columns: y.value,
1603
+ columns: s.value,
1541
1604
  data: e.dataSource || e.data || [],
1542
- width: a.width,
1543
- height: a.height
1605
+ width: l.width,
1606
+ height: l.height
1544
1607
  }), null)]);
1545
1608
  }
1546
1609
  });
1547
1610
  W.props = {
1548
1611
  ...oe.props,
1549
1612
  ...W.props,
1550
- formMethods: { type: Array, default: ct }
1613
+ formMethods: { type: Array, default: mt }
1551
1614
  };
1552
1615
  ae.props = {
1553
1616
  ...W.props,
1554
1617
  ...ae.props,
1555
1618
  inline: { type: Boolean, default: !0 }
1556
1619
  };
1557
- he.props = {
1620
+ ve.props = {
1558
1621
  ...re.props,
1559
- ...he.props
1622
+ ...ve.props
1560
1623
  };
1561
1624
  le.props = {
1562
- ...vt.props,
1625
+ ...St.props,
1563
1626
  ...le.props
1564
1627
  };
1565
1628
  ne.props = {
1566
- ...lt.props,
1629
+ ...ot.props,
1567
1630
  ...ne.props
1568
1631
  };
1569
- ve.props = {
1570
- ...ne.props,
1571
- ...ve.props
1572
- };
1573
1632
  be.props = {
1574
- ...W.props,
1633
+ ...ne.props,
1575
1634
  ...be.props
1576
1635
  };
1577
1636
  Se.props = {
1578
- ...ft.props,
1637
+ ...W.props,
1579
1638
  ...Se.props
1580
1639
  };
1581
1640
  pe.props = {
1582
- ...gt.props,
1583
- ...pe.props,
1584
- modelValue: String
1641
+ ...yt.props,
1642
+ ...pe.props
1585
1643
  };
1586
1644
  Pe.props = {
1587
- ...nt.props,
1645
+ ...vt.props,
1588
1646
  ...Pe.props,
1647
+ modelValue: String
1648
+ };
1649
+ Ve.props = {
1650
+ ...ut.props,
1651
+ ...Ve.props,
1589
1652
  placement: { type: String, default: "top-start" }
1590
1653
  };
1591
- const Wa = {
1592
- [C.LoadingKey]: mt,
1593
- [C.RowKey]: At,
1594
- [C.ColKey]: Dt,
1595
- [C.ButtonKey]: de,
1596
- [C.DescriptionsKey]: lt,
1597
- [C.DescriptionsItemKey]: Lt,
1598
- [C.MenusKey]: fa,
1599
- [C.ModalKey]: ft,
1600
- [C.DrawerKey]: oa,
1601
- [C.PaginationKey]: ua,
1602
- [C.PopoverKey]: da,
1603
- [C.TooltipKey]: nt,
1604
- [C.CheckboxKey]: at,
1605
- [C.FormKey]: la,
1606
- [C.FormItemKey]: dt,
1607
- [C.TableKey]: vt,
1608
- [C.TableV2Key]: Ba,
1609
- [C.TableOperateKey]: $a,
1610
- [C.UploaderKey]: gt,
1611
- [C.DropdownKey]: va,
1612
- [C.ScrollKey]: Ut,
1613
- [C.EmptyKey]: zt,
1614
- [C.ProFormKey]: W,
1615
- [C.ProSearchFormKey]: ae,
1616
- [C.ProTableKey]: le,
1617
- [C.ProCurdKey]: St,
1618
- [C.ProListKey]: pt,
1619
- [C.ProPageKey]: Pt,
1620
- [C.ProOperateKey]: Ct,
1654
+ const _a = {
1655
+ [V.LoadingKey]: st,
1656
+ [V.RowKey]: Dt,
1657
+ [V.ColKey]: Ut,
1658
+ [V.ButtonKey]: de,
1659
+ [V.DescriptionsKey]: ot,
1660
+ [V.DescriptionsItemKey]: zt,
1661
+ [V.MenusKey]: ga,
1662
+ [V.ModalKey]: yt,
1663
+ [V.DrawerKey]: da,
1664
+ [V.PaginationKey]: ca,
1665
+ [V.PopoverKey]: ia,
1666
+ [V.TooltipKey]: ut,
1667
+ [V.CheckboxKey]: rt,
1668
+ [V.FormKey]: ra,
1669
+ [V.FormItemKey]: it,
1670
+ [V.TableKey]: St,
1671
+ [V.TableV2Key]: Da,
1672
+ [V.TableOperateKey]: Aa,
1673
+ [V.UploaderKey]: vt,
1674
+ [V.DropdownKey]: pa,
1675
+ [V.ScrollKey]: jt,
1676
+ [V.EmptyKey]: Wt,
1677
+ [V.ProFormKey]: W,
1678
+ [V.ProSearchFormKey]: ae,
1679
+ [V.ProTableKey]: le,
1680
+ [V.ProCurdKey]: Pt,
1681
+ [V.ProListKey]: Vt,
1682
+ [V.ProPageKey]: Ct,
1683
+ [V.ProOperateKey]: xt,
1621
1684
  text: Ce,
1622
- digit: Vt,
1623
- date: xt,
1685
+ digit: Kt,
1686
+ date: kt,
1624
1687
  time: Ce,
1625
- select: ee,
1626
- radio: ee,
1627
- checkbox: ee,
1628
- treeSelect: Ve,
1629
- cascader: Ve
1630
- }, Ha = {
1631
- text: pa,
1632
- digit: Pa,
1633
- digitRange: Ca,
1634
- date: Va,
1635
- time: xa,
1636
- select: Ka,
1637
- treeSelect: ka,
1638
- checkbox: wa,
1639
- radio: Fa,
1640
- switch: Ea,
1641
- cascader: Ta,
1642
- color: Ra
1688
+ select: Z,
1689
+ selectv2: Z,
1690
+ radio: Z,
1691
+ checkbox: Z,
1692
+ treeSelect: xe,
1693
+ cascader: xe
1694
+ }, Za = {
1695
+ text: Ca,
1696
+ digit: xa,
1697
+ digitRange: Ka,
1698
+ date: ka,
1699
+ time: Fa,
1700
+ select: wa,
1701
+ selectv2: Ea,
1702
+ treeSelect: Ta,
1703
+ checkbox: Ra,
1704
+ radio: $a,
1705
+ switch: Ma,
1706
+ cascader: Na,
1707
+ color: Ia
1643
1708
  };
1644
1709
  export {
1645
- ct as FormMethods,
1646
- sa as InputNumberRange,
1647
- Sa as ProCascader,
1648
- ca as ProCheckbox,
1649
- oa as ProDrawer,
1650
- va as ProDropdown,
1651
- la as ProForm,
1652
- Ta as ProFormCascader,
1653
- wa as ProFormCheckbox,
1654
- Ra as ProFormColor,
1655
- Va as ProFormDatePicker,
1656
- Ca as ProFormInputNumberRange,
1657
- dt as ProFormItem,
1658
- Fa as ProFormRadio,
1659
- Ka as ProFormSelect,
1660
- Ea as ProFormSwitch,
1661
- pa as ProFormText,
1662
- Pa as ProFormTextNumber,
1663
- xa as ProFormTimePicker,
1664
- ka as ProFormTreeSelect,
1665
- mt as ProLoading,
1666
- fa as ProMenus,
1667
- ft as ProModal,
1668
- ua as ProPagination,
1669
- da as ProPopover,
1670
- ia as ProRadio,
1671
- ma as ProSelect,
1672
- vt as ProTable,
1673
- ht as ProTableColumn,
1674
- $a as ProTableOperateItem,
1675
- Ba as ProTableV2,
1676
- za as ProTabs,
1677
- ja as ProTree,
1678
- ba as ProTreeSelect,
1679
- gt as ProUploader,
1680
- Ma as TableMethods,
1681
- ga as TreeMethods,
1682
- ya as UploadMethods,
1683
- I as createFormItemComponent,
1684
- it as createLoadingId,
1685
- Wa as elementMap,
1686
- Ha as formElementMap
1710
+ mt as FormMethods,
1711
+ va as InputNumberRange,
1712
+ Va as ProCascader,
1713
+ ma as ProCheckbox,
1714
+ da as ProDrawer,
1715
+ pa as ProDropdown,
1716
+ ra as ProForm,
1717
+ Na as ProFormCascader,
1718
+ Ra as ProFormCheckbox,
1719
+ Ia as ProFormColor,
1720
+ ka as ProFormDatePicker,
1721
+ Ka as ProFormInputNumberRange,
1722
+ it as ProFormItem,
1723
+ $a as ProFormRadio,
1724
+ wa as ProFormSelect,
1725
+ Ea as ProFormSelectV2,
1726
+ Ma as ProFormSwitch,
1727
+ Ca as ProFormText,
1728
+ xa as ProFormTextNumber,
1729
+ Fa as ProFormTimePicker,
1730
+ Ta as ProFormTreeSelect,
1731
+ st as ProLoading,
1732
+ ga as ProMenus,
1733
+ yt as ProModal,
1734
+ ca as ProPagination,
1735
+ ia as ProPopover,
1736
+ fa as ProRadio,
1737
+ sa as ProSelect,
1738
+ ya as ProSelectV2,
1739
+ St as ProTable,
1740
+ bt as ProTableColumn,
1741
+ Aa as ProTableOperateItem,
1742
+ Da as ProTableV2,
1743
+ qa as ProTabs,
1744
+ Ga as ProTree,
1745
+ Pa as ProTreeSelect,
1746
+ vt as ProUploader,
1747
+ Oa as TableMethods,
1748
+ ba as TreeMethods,
1749
+ ha as UploadMethods,
1750
+ M as createFormItemComponent,
1751
+ ft as createLoadingId,
1752
+ _a as elementMap,
1753
+ Za as formElementMap
1687
1754
  };