@vue-start/element-pro 0.2.36 → 0.2.37

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