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