@vue-start/element-pro 0.2.13 → 0.2.15

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,28 +1,28 @@
1
- import { createExpose as fe, createFormItemCompFn as he, createExposeObj as V, ProForm as R, ProSearchForm as D, ProFormList as j, ProTable as O, ProDesc as z, ProCurdDesc as w, ProCurdForm as q, ProCurdModal as $, ProUploaderText as G } from "@vue-start/pro";
2
- import { ElFormItem as U, ElForm as A, ElLoading as Ce, ElDialog as _, ElButton as W, ElPagination as Z, ElPopover as H, ElCheckboxGroup as J, ElCheckboxButton as ke, ElCheckbox as Fe, ElRadioGroup as Q, ElRadioButton as Te, ElRadio as Ee, ElSelect as X, ElOption as xe, ElTabs as Y, ElTabPane as Ie, ElMenu as M, ElUpload as ee, useFormItem as Re, ElInput as Me, ElInputNumber as Be, ElDatePicker as Ve, ElTimePicker as se, ElTreeSelect as ze, ElSwitch as Ue, ElCascader as Ae, ElTableColumn as te, ElTable as ae, ElDescriptions as Ke } from "element-plus";
3
- import { defineComponent as g, createVNode as d, mergeProps as i, reactive as Ne, ref as S, toRaw as Le, computed as me, isVNode as De } from "vue";
4
- import { keys as F, omit as f, isBoolean as ye, isString as je, debounce as Oe, map as p, size as B, pick as N, get as K, isNumber as s, filter as ne, isArray as we } from "lodash";
5
- import { useEffect as ve, generateId as qe, useWatch as x, convertTreeData as $e, isValidFileType as Ge, convertFileSize as _e } from "@vue-start/hooks";
6
- const re = () => ({
1
+ import { createExpose as be, createFormItemCompFn as Me, createExposeObj as V, ProForm as s, ProSearchForm as A, ProFormList as $, ProTable as D, ProDesc as L, ProCurdDesc as G, ProCurdForm as _, ProCurdModal as W, ProUploaderText as Z, ElementKeys as m, ProCurd as Be, ProList as Ve, ProShowText as H, ProShowDigit as ze, ProShowDate as Ue, ProShowOptions as z, ProShowTree as J } from "@vue-start/pro";
2
+ import { ElFormItem as w, ElForm as N, ElLoading as Ae, ElDialog as Q, ElButton as I, ElPagination as X, ElPopover as Y, ElCheckboxGroup as ee, ElCheckboxButton as De, ElCheckbox as Pe, ElRadioGroup as te, ElRadioButton as Le, ElRadio as we, ElSelect as ae, ElOption as Ne, ElTabs as ne, ElTabPane as Oe, ElMenu as M, ElUpload as re, useFormItem as je, ElInput as qe, ElInputNumber as $e, ElDatePicker as Ge, ElTimePicker as _e, ElTreeSelect as We, ElSwitch as Ze, ElCascader as He, ElTableColumn as oe, ElTable as le, ElDescriptions as ge, ElRow as Je, ElCol as Qe, ElDescriptionsItem as Xe } from "element-plus";
3
+ import { defineComponent as g, createVNode as i, mergeProps as d, reactive as Ye, ref as S, toRaw as et, computed as pe, isVNode as tt } from "vue";
4
+ import { keys as T, omit as f, isBoolean as Se, isString as at, debounce as nt, map as h, size as B, pick as j, get as O, isNumber as U, filter as ue, isArray as rt } from "lodash";
5
+ import { useEffect as he, generateId as ot, useWatch as K, convertTreeData as lt, isValidFileType as ut, convertFileSize as ct } from "@vue-start/hooks";
6
+ const ce = () => ({
7
7
  name: {
8
8
  type: [String, Array]
9
9
  }
10
- }), We = g({
10
+ }), Ce = g({
11
11
  props: {
12
- ...U.props,
13
- ...re()
12
+ ...w.props,
13
+ ...ce()
14
14
  },
15
15
  setup: (e, {
16
16
  slots: t
17
17
  }) => {
18
- const c = F(re());
19
- return () => d(U, i(f(e, ...c, "name", "prop"), {
18
+ const c = T(ce());
19
+ return () => i(w, d(f(e, ...c, "name", "prop"), {
20
20
  prop: e.prop || e.name
21
21
  }), t);
22
22
  }
23
- }), be = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], it = g({
23
+ }), ke = ["clearValidate", "resetFields", "scrollToField", "validate", "validateField", "submit"], it = g({
24
24
  props: {
25
- ...A.props,
25
+ ...N.props,
26
26
  hideRequiredMark: {
27
27
  type: [Boolean, Object],
28
28
  default: void 0
@@ -33,27 +33,27 @@ const re = () => ({
33
33
  emit: c,
34
34
  expose: a
35
35
  }) => {
36
- const o = e.model || Ne({}), r = S();
37
- return ve(() => {
36
+ const l = e.model || Ye({}), r = S();
37
+ return he(() => {
38
38
  !r.value || (r.value.submit = () => {
39
39
  var n;
40
- (n = r.value) == null || n.validate((u, l) => {
41
- u ? c("finish", Le(o)) : c("finishFailed", l);
40
+ (n = r.value) == null || n.validate((u, o) => {
41
+ u ? c("finish", et(l)) : c("finishFailed", o);
42
42
  });
43
43
  });
44
- }, []), a(fe(be, r)), () => d(A, i({
44
+ }, []), a(be(ke, r)), () => i(N, d({
45
45
  ref: r
46
46
  }, f(e, "model"), {
47
- hideRequiredAsterisk: ye(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
48
- model: o
47
+ hideRequiredAsterisk: Se(e.hideRequiredMark) ? e.hideRequiredMark : e.hideRequiredAsterisk,
48
+ model: l
49
49
  }), t);
50
50
  }
51
- }), h = he(We, (e, t, c) => ({
51
+ }), C = Me(Ce, (e, t, c) => ({
52
52
  modelValue: e,
53
53
  "onUpdate:modelValue": t,
54
54
  clearable: !0,
55
55
  disabled: c
56
- })), ge = (e = "comp") => e + "-" + qe(), Ze = () => ({
56
+ })), Fe = (e = "comp") => e + "-" + ot(), dt = () => ({
57
57
  loading: {
58
58
  type: Boolean
59
59
  },
@@ -81,21 +81,21 @@ const re = () => ({
81
81
  customClass: {
82
82
  type: String
83
83
  }
84
- }), He = g({
84
+ }), Te = g({
85
85
  props: {
86
- ...Ze()
86
+ ...dt()
87
87
  },
88
88
  setup: (e, {
89
89
  slots: t
90
90
  }) => {
91
- const c = ge();
92
- return ve(() => {
91
+ const c = Fe();
92
+ return he(() => {
93
93
  if (!e.loading)
94
94
  return;
95
95
  let a = e.target;
96
- if (t.default ? a = document.getElementById(c) : e.target && je(e.target) && (a = document.querySelector("#" + e.target)), !a)
96
+ if (t.default ? a = document.getElementById(c) : e.target && at(e.target) && (a = document.querySelector("#" + e.target)), !a)
97
97
  return;
98
- const o = Ce.service({
98
+ const l = Ae.service({
99
99
  target: a,
100
100
  body: e.body,
101
101
  fullscreen: e.fullscreen,
@@ -106,13 +106,13 @@ const re = () => ({
106
106
  customClass: e.customClass
107
107
  });
108
108
  return () => {
109
- o && o.close();
109
+ l && l.close();
110
110
  };
111
- }, () => e.loading), () => t.default ? d("div", {
111
+ }, () => e.loading), () => t.default ? i("div", {
112
112
  id: c
113
113
  }, [t.default()]) : null;
114
114
  }
115
- }), le = () => ({
115
+ }), ie = () => ({
116
116
  clsName: {
117
117
  type: String,
118
118
  default: "pro-modal"
@@ -144,24 +144,24 @@ const re = () => ({
144
144
  type: [Object, Boolean],
145
145
  default: void 0
146
146
  }
147
- }), Je = g({
147
+ }), xe = g({
148
148
  props: {
149
- ..._.props,
149
+ ...Q.props,
150
150
  appendToBody: {
151
151
  type: Boolean,
152
152
  default: !0
153
153
  },
154
- ...le()
154
+ ...ie()
155
155
  },
156
156
  setup: (e, {
157
157
  slots: t,
158
158
  emit: c
159
159
  }) => {
160
160
  const a = S(e.visible);
161
- x(() => {
161
+ K(() => {
162
162
  a.value !== e.visible && (a.value = e.visible);
163
163
  }, () => e.visible);
164
- const o = () => {
164
+ const l = () => {
165
165
  var u;
166
166
  if ((u = e.cancelButtonProps) != null && u.onClick) {
167
167
  e.cancelButtonProps.onClick();
@@ -175,11 +175,11 @@ const re = () => ({
175
175
  return;
176
176
  }
177
177
  c("ok");
178
- }, n = F(le());
179
- return () => d(_, i({
178
+ }, n = T(ie());
179
+ return () => i(Q, d({
180
180
  class: e.clsName
181
181
  }, f(e, ...n, "modelValue"), {
182
- closeOnClickModal: ye(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
182
+ closeOnClickModal: Se(e.maskClosable) ? e.maskClosable : e.closeOnClickModal,
183
183
  modelValue: a.value,
184
184
  "onUpdate:modelValue": [(u) => a.value = u, (u) => {
185
185
  c("update:visible", u);
@@ -188,13 +188,13 @@ const re = () => ({
188
188
  c("cancel");
189
189
  }
190
190
  }), {
191
- footer: e.footer === !1 ? void 0 : () => d("div", {
191
+ footer: e.footer === !1 ? void 0 : () => i("div", {
192
192
  class: `${e.clsName}-operate`
193
- }, [d(W, i(f(e.cancelButtonProps, "onClick"), {
194
- onClick: o
193
+ }, [i(I, d(f(e.cancelButtonProps, "onClick"), {
194
+ onClick: l
195
195
  }), {
196
196
  default: () => [e.cancelText]
197
- }), d(W, i({
197
+ }), i(I, d({
198
198
  type: "primary",
199
199
  loading: e.confirmLoading
200
200
  }, f(e.okButtonProps, "onClick"), {
@@ -207,7 +207,7 @@ const re = () => ({
207
207
  }
208
208
  }), ft = g({
209
209
  props: {
210
- ...Z.props,
210
+ ...X.props,
211
211
  page: {
212
212
  type: Number,
213
213
  default: 1
@@ -217,39 +217,39 @@ const re = () => ({
217
217
  slots: t,
218
218
  emit: c
219
219
  }) => {
220
- const a = S(e.page), o = S(e.pageSize);
221
- x(() => {
220
+ const a = S(e.page), l = S(e.pageSize);
221
+ K(() => {
222
222
  a.value !== e.page && (a.value = e.page);
223
- }, () => e.page), x(() => {
224
- o.value !== e.pageSize && (o.value = e.pageSize);
223
+ }, () => e.page), K(() => {
224
+ l.value !== e.pageSize && (l.value = e.pageSize);
225
225
  }, () => e.pageSize);
226
- const r = Oe(() => {
227
- c("composeChange", a.value, o.value);
226
+ const r = nt(() => {
227
+ c("composeChange", a.value, l.value);
228
228
  }, 300), n = () => {
229
229
  r(), c("update:page", a.value);
230
230
  }, u = () => {
231
- r(), c("update:pageSize", o.value);
231
+ r(), c("update:pageSize", l.value);
232
232
  };
233
- return () => d(Z, i({
233
+ return () => i(X, d({
234
234
  currentPage: a.value,
235
- "onUpdate:currentPage": (l) => a.value = l,
236
- pageSize: o.value,
237
- "onUpdate:pageSize": (l) => o.value = l,
235
+ "onUpdate:currentPage": (o) => a.value = o,
236
+ pageSize: l.value,
237
+ "onUpdate:pageSize": (o) => l.value = o,
238
238
  onCurrentChange: n,
239
239
  onSizeChange: u
240
240
  }, f(e, "currentPage", "pageSize")), t);
241
241
  }
242
242
  }), mt = g({
243
243
  props: {
244
- ...H.props
244
+ ...Y.props
245
245
  },
246
246
  setup: (e, {
247
247
  slots: t
248
- }) => () => d(H, e, {
248
+ }) => () => i(Y, e, {
249
249
  reference: t.default,
250
250
  default: t.content
251
251
  })
252
- }), oe = () => ({
252
+ }), de = () => ({
253
253
  options: Array,
254
254
  buttonStyle: {
255
255
  type: String,
@@ -259,21 +259,21 @@ const re = () => ({
259
259
  type: String,
260
260
  default: "default"
261
261
  }
262
- }), Qe = g({
262
+ }), yt = g({
263
263
  props: {
264
- ...J.props,
265
- ...oe()
264
+ ...ee.props,
265
+ ...de()
266
266
  },
267
267
  setup: (e, {
268
268
  slots: t,
269
269
  emit: c,
270
270
  expose: a
271
271
  }) => {
272
- const o = S();
273
- a(V(o));
274
- const r = F(oe());
275
- return () => d(J, i({
276
- ref: o
272
+ const l = S();
273
+ a(V(l));
274
+ const r = T(de());
275
+ return () => i(ee, d({
276
+ ref: l
277
277
  }, f(e, r), {
278
278
  "onUpdate:modelValue": (n) => {
279
279
  c("update:modelValue", n || void 0);
@@ -281,27 +281,27 @@ const re = () => ({
281
281
  }), {
282
282
  default: () => {
283
283
  var n, u;
284
- return [(n = t.start) == null ? void 0 : n.call(t), p(e.options, (l) => {
285
- var v;
286
- const y = (v = t.label) == null ? void 0 : v.call(t, l);
287
- return e.optionType === "button" || e.buttonStyle === "button" ? d(ke, i({
288
- key: l.value
289
- }, f(l, "value"), {
290
- label: l.value
284
+ return [(n = t.start) == null ? void 0 : n.call(t), h(e.options, (o) => {
285
+ var b;
286
+ const v = (b = t.label) == null ? void 0 : b.call(t, o);
287
+ return e.optionType === "button" || e.buttonStyle === "button" ? i(De, d({
288
+ key: o.value
289
+ }, f(o, "value"), {
290
+ label: o.value
291
291
  }), {
292
- default: () => [y || l.label]
293
- }) : d(Fe, i({
294
- key: l.value
295
- }, l, {
296
- label: l.value
292
+ default: () => [v || o.label]
293
+ }) : i(Pe, d({
294
+ key: o.value
295
+ }, o, {
296
+ label: o.value
297
297
  }), {
298
- default: () => [y || l.label]
298
+ default: () => [v || o.label]
299
299
  });
300
300
  }), (u = t.default) == null ? void 0 : u.call(t)];
301
301
  }
302
302
  });
303
303
  }
304
- }), ue = () => ({
304
+ }), fe = () => ({
305
305
  options: {
306
306
  type: Array
307
307
  },
@@ -313,21 +313,21 @@ const re = () => ({
313
313
  type: String,
314
314
  default: "default"
315
315
  }
316
- }), Xe = g({
316
+ }), vt = g({
317
317
  props: {
318
- ...Q.props,
319
- ...ue()
318
+ ...te.props,
319
+ ...fe()
320
320
  },
321
321
  setup: (e, {
322
322
  slots: t,
323
323
  emit: c,
324
324
  expose: a
325
325
  }) => {
326
- const o = S();
327
- a(V(o));
328
- const r = F(ue());
329
- return () => d(Q, i({
330
- ref: o
326
+ const l = S();
327
+ a(V(l));
328
+ const r = T(fe());
329
+ return () => i(te, d({
330
+ ref: l
331
331
  }, f(e, r), {
332
332
  "onUpdate:modelValue": (n) => {
333
333
  c("update:modelValue", n);
@@ -335,43 +335,43 @@ const re = () => ({
335
335
  }), {
336
336
  default: () => {
337
337
  var n, u;
338
- return [(n = t.start) == null ? void 0 : n.call(t), p(e.options, (l) => {
339
- var v;
340
- const y = (v = t.label) == null ? void 0 : v.call(t, l);
341
- return e.optionType === "button" || e.buttonStyle === "button" ? d(Te, i({
342
- key: l.value
343
- }, f(l, "value"), {
344
- label: l.value
338
+ return [(n = t.start) == null ? void 0 : n.call(t), h(e.options, (o) => {
339
+ var b;
340
+ const v = (b = t.label) == null ? void 0 : b.call(t, o);
341
+ return e.optionType === "button" || e.buttonStyle === "button" ? i(Le, d({
342
+ key: o.value
343
+ }, f(o, "value"), {
344
+ label: o.value
345
345
  }), {
346
- default: () => [y || l.label]
347
- }) : d(Ee, i({
348
- key: l.value
349
- }, f(l, "value"), {
350
- label: l.value
346
+ default: () => [v || o.label]
347
+ }) : i(we, d({
348
+ key: o.value
349
+ }, f(o, "value"), {
350
+ label: o.value
351
351
  }), {
352
- default: () => [y || l.label]
352
+ default: () => [v || o.label]
353
353
  });
354
354
  }), (u = t.default) == null ? void 0 : u.call(t)];
355
355
  }
356
356
  });
357
357
  }
358
- }), ce = () => ({
358
+ }), me = () => ({
359
359
  options: Array
360
- }), Ye = g({
360
+ }), bt = g({
361
361
  props: {
362
- ...X.props,
363
- ...ce()
362
+ ...ae.props,
363
+ ...me()
364
364
  },
365
365
  setup: (e, {
366
366
  slots: t,
367
367
  emit: c,
368
368
  expose: a
369
369
  }) => {
370
- const o = S();
371
- a(V(o));
372
- const r = F(ce());
373
- return () => d(X, i({
374
- ref: o
370
+ const l = S();
371
+ a(V(l));
372
+ const r = T(me());
373
+ return () => i(ae, d({
374
+ ref: l
375
375
  }, f(e, r), {
376
376
  "onUpdate:modelValue": (n) => {
377
377
  c("update:modelValue", n || void 0);
@@ -379,22 +379,22 @@ const re = () => ({
379
379
  }), {
380
380
  default: () => {
381
381
  var n, u;
382
- return [(n = t.start) == null ? void 0 : n.call(t), p(e.options, (l) => {
383
- var v;
384
- const y = (v = t.label) == null ? void 0 : v.call(t, l);
385
- return d(xe, i({
386
- key: l.value
387
- }, l), {
388
- default: () => [y || l.label]
382
+ return [(n = t.start) == null ? void 0 : n.call(t), h(e.options, (o) => {
383
+ var b;
384
+ const v = (b = t.label) == null ? void 0 : b.call(t, o);
385
+ return i(Ne, d({
386
+ key: o.value
387
+ }, o), {
388
+ default: () => [v || o.label]
389
389
  });
390
390
  }), (u = t.default) == null ? void 0 : u.call(t)];
391
391
  },
392
392
  ...f(t, "default")
393
393
  });
394
394
  }
395
- }), yt = g({
395
+ }), At = g({
396
396
  props: {
397
- ...Y.props,
397
+ ...ne.props,
398
398
  options: {
399
399
  type: Array
400
400
  }
@@ -402,14 +402,14 @@ const re = () => ({
402
402
  setup: (e, {
403
403
  slots: t,
404
404
  emit: c
405
- }) => () => d(Y, i(f(e, "options"), {
405
+ }) => () => i(ne, d(f(e, "options"), {
406
406
  "onUpdate:modelValue": (a) => {
407
407
  c("update:modelValue", a);
408
408
  }
409
409
  }), {
410
410
  default: () => {
411
- var a, o;
412
- return [(a = t.start) == null ? void 0 : a.call(t), p(e.options, (r) => d(Ie, i({
411
+ var a, l;
412
+ return [(a = t.start) == null ? void 0 : a.call(t), h(e.options, (r) => i(Oe, d({
413
413
  key: r.value
414
414
  }, f(r, "value"), {
415
415
  name: r.value
@@ -418,14 +418,14 @@ const re = () => ({
418
418
  var n;
419
419
  return ((n = t.label) == null ? void 0 : n.call(t, r)) || r.label;
420
420
  }
421
- })), (o = t.default) == null ? void 0 : o.call(t)];
421
+ })), (l = t.default) == null ? void 0 : l.call(t)];
422
422
  }
423
423
  })
424
424
  });
425
- function et(e) {
426
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !De(e);
425
+ function Pt(e) {
426
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !tt(e);
427
427
  }
428
- const L = {
428
+ const q = {
429
429
  convertSubMenuProps: {
430
430
  type: Function
431
431
  },
@@ -435,13 +435,13 @@ const L = {
435
435
  onMenuItemClick: {
436
436
  type: Function
437
437
  }
438
- }, Pe = F(L), Se = g({
438
+ }, Ee = T(q), se = g({
439
439
  inheritAttrs: !1,
440
440
  props: {
441
441
  menu: {
442
442
  type: Object
443
443
  },
444
- ...L
444
+ ...q
445
445
  },
446
446
  setup: (e, {
447
447
  slots: t
@@ -451,19 +451,19 @@ const L = {
451
451
  (a = e.onMenuItemClick) == null || a.call(e, e.menu);
452
452
  };
453
453
  return () => {
454
- var o, r;
454
+ var l, r;
455
455
  const a = e.menu;
456
- return (a == null ? void 0 : a.children) && B(a.children) > 0 ? d(M.SubMenu, i({
456
+ return (a == null ? void 0 : a.children) && B(a.children) > 0 ? i(M.SubMenu, d({
457
457
  index: a == null ? void 0 : a.value
458
- }, (o = e.convertSubMenuProps) == null ? void 0 : o.call(e, a)), {
459
- default: () => [p(a.children, (n) => d(Se, i({
458
+ }, (l = e.convertSubMenuProps) == null ? void 0 : l.call(e, a)), {
459
+ default: () => [h(a.children, (n) => i(se, d({
460
460
  menu: n
461
- }, N(e, Pe)), t))],
461
+ }, j(e, Ee)), t))],
462
462
  title: () => {
463
463
  var n;
464
464
  return ((n = t.title) == null ? void 0 : n.call(t, a)) || (a == null ? void 0 : a.label);
465
465
  }
466
- }) : d(M.MenuItem, i({
466
+ }) : i(M.MenuItem, d({
467
467
  index: a == null ? void 0 : a.value
468
468
  }, (r = e.convertMenuItemProps) == null ? void 0 : r.call(e, a), {
469
469
  onClick: c
@@ -475,7 +475,7 @@ const L = {
475
475
  });
476
476
  };
477
477
  }
478
- }), de = () => ({
478
+ }), ye = () => ({
479
479
  activeKey: {
480
480
  type: String
481
481
  },
@@ -490,46 +490,46 @@ const L = {
490
490
  label: "label"
491
491
  }
492
492
  },
493
- ...L
494
- }), vt = g({
493
+ ...q
494
+ }), gt = g({
495
495
  props: {
496
496
  ...f(M.props, "defaultActive"),
497
- ...de()
497
+ ...ye()
498
498
  },
499
499
  setup: (e, {
500
500
  slots: t
501
501
  }) => {
502
502
  const c = S(e.activeKey);
503
- x(() => {
503
+ K(() => {
504
504
  e.activeKey !== c.value && (c.value = e.activeKey);
505
505
  }, () => e.activeKey);
506
- const a = me(() => {
506
+ const a = pe(() => {
507
507
  var r;
508
- return $e(e.options, (n) => {
509
- var y, v;
510
- const u = ((y = e.fieldNames) == null ? void 0 : y.value) || "value", l = ((v = e.fieldNames) == null ? void 0 : v.label) || "label";
508
+ return lt(e.options, (n) => {
509
+ var v, b;
510
+ const u = ((v = e.fieldNames) == null ? void 0 : v.value) || "value", o = ((b = e.fieldNames) == null ? void 0 : b.label) || "label";
511
511
  return {
512
- ...f(n, u, l),
513
- value: K(n, u),
514
- label: K(n, l)
512
+ ...f(n, u, o),
513
+ value: O(n, u),
514
+ label: O(n, o)
515
515
  };
516
516
  }, {
517
517
  children: ((r = e.fieldNames) == null ? void 0 : r.children) || "children",
518
518
  childrenName: "children"
519
519
  });
520
- }), o = F(de());
520
+ }), l = T(ye());
521
521
  return () => {
522
522
  let r;
523
- return d(M, i({
523
+ return i(M, d({
524
524
  defaultActive: c.value
525
- }, f(e, o)), et(r = p(a.value, (n) => d(Se, i({
525
+ }, f(e, l)), Pt(r = h(a.value, (n) => i(se, d({
526
526
  menu: n
527
- }, N(e, Pe)), t))) ? r : {
527
+ }, j(e, Ee)), t))) ? r : {
528
528
  default: () => [r]
529
529
  });
530
530
  };
531
531
  }
532
- }), ie = () => ({
532
+ }), ve = () => ({
533
533
  modelValue: {
534
534
  type: Array,
535
535
  default: void 0
@@ -552,121 +552,121 @@ const L = {
552
552
  beforeUpload: {
553
553
  type: Function
554
554
  }
555
- }), tt = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], at = g({
555
+ }), pt = ["abort", "submit", "clearFiles", "handleStart", "handleRemove"], Ie = g({
556
556
  props: {
557
- ...f(ee.props, "fileList"),
558
- ...ie()
557
+ ...f(re.props, "fileList"),
558
+ ...ve()
559
559
  },
560
560
  setup: (e, {
561
561
  slots: t,
562
562
  expose: c,
563
563
  emit: a
564
564
  }) => {
565
- const o = S();
566
- c(V(o, tt));
565
+ const l = S();
566
+ c(V(l, pt));
567
567
  const {
568
568
  formItem: r
569
- } = Re(), n = () => we(e.modelValue) ? p(e.modelValue, (b) => {
570
- var P;
571
- return ((P = e.convertItemData) == null ? void 0 : P.call(e, b)) || b;
569
+ } = je(), n = () => rt(e.modelValue) ? h(e.modelValue, (P) => {
570
+ var p;
571
+ return ((p = e.convertItemData) == null ? void 0 : p.call(e, P)) || P;
572
572
  }) : [], u = S(n());
573
- let l = !1;
574
- const y = () => {
575
- var P;
576
- l = !0;
577
- const b = ne(u.value, (m) => m.status === "success");
578
- a("update:modelValue", p(b, (m) => {
579
- var k;
580
- return ((k = e.convertResponseData) == null ? void 0 : k.call(e, m)) || m;
581
- })), (P = r == null ? void 0 : r.validate) == null || P.call(r, "change");
573
+ let o = !1;
574
+ const v = () => {
575
+ var p;
576
+ o = !0;
577
+ const P = ue(u.value, (y) => y.status === "success");
578
+ a("update:modelValue", h(P, (y) => {
579
+ var F;
580
+ return ((F = e.convertResponseData) == null ? void 0 : F.call(e, y)) || y;
581
+ })), (p = r == null ? void 0 : r.validate) == null || p.call(r, "change");
582
582
  };
583
- x(() => {
584
- l || (u.value = n(), l = !1);
583
+ K(() => {
584
+ o || (u.value = n(), o = !1);
585
585
  }, () => e.modelValue);
586
- const v = (b) => {
587
- var P, m, k, T;
586
+ const b = (P) => {
587
+ var p, y, F, x;
588
588
  if (e.beforeUpload)
589
- return e.beforeUpload(b);
590
- if (e.accept && !Ge(e.accept, b.name))
591
- return (P = e.onErrorMsg) == null || P.call(e, "FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
592
- if (s(b.size)) {
593
- if (b.size <= 0)
594
- return (m = e.onErrorMsg) == null || m.call(e, "FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
595
- if (s(e.maxSize) && b.size > e.maxSize)
596
- return (k = e.onErrorMsg) == null || k.call(e, "FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${_e(e.maxSize)}\u7684\u6587\u4EF6`), !1;
589
+ return e.beforeUpload(P);
590
+ if (e.accept && !ut(e.accept, P.name))
591
+ return (p = e.onErrorMsg) == null || p.call(e, "FileTypeError", `\u8BF7\u4E0A\u4F20\u6B63\u786E\u683C\u5F0F\uFF08${e.accept.replace(/,/g, "\uFF0C")}\uFF09\u7684\u6587\u4EF6`), !1;
592
+ if (U(P.size)) {
593
+ if (P.size <= 0)
594
+ return (y = e.onErrorMsg) == null || y.call(e, "FileSizeError-Zero", "\u4E0A\u4F20\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"), !1;
595
+ if (U(e.maxSize) && P.size > e.maxSize)
596
+ return (F = e.onErrorMsg) == null || F.call(e, "FileSizeError-MaxSize", `\u8BF7\u4E0A\u4F20\u5C0F\u4E8E${ct(e.maxSize)}\u7684\u6587\u4EF6`), !1;
597
597
  }
598
- return (T = e.onStart) == null || T.call(e, b), !0;
599
- }, C = me(() => s(e.limit) ? e.limit > B(u.value) : !0), I = F(ie());
598
+ return (x = e.onStart) == null || x.call(e, P), !0;
599
+ }, k = pe(() => U(e.limit) ? e.limit > B(u.value) : !0), R = T(ve());
600
600
  return () => {
601
- var b, P;
602
- return d("div", {
603
- class: `pro-uploader ${C.value ? "" : "pro-uploader-limit"}`
604
- }, [(b = t.start) == null ? void 0 : b.call(t), d(ee, i({
605
- ref: o,
601
+ var P, p;
602
+ return i("div", {
603
+ class: `pro-uploader ${k.value ? "" : "pro-uploader-limit"}`
604
+ }, [(P = t.start) == null ? void 0 : P.call(t), i(re, d({
605
+ ref: l,
606
606
  fileList: u.value,
607
- "onUpdate:fileList": (m) => u.value = m
608
- }, f(e, "fileList", "onSuccess", "onRemove", "beforeUpload", ...I), {
609
- beforeUpload: v,
610
- onSuccess: (m, k, T) => {
607
+ "onUpdate:fileList": (y) => u.value = y
608
+ }, f(e, "fileList", "onSuccess", "onRemove", "beforeUpload", ...R), {
609
+ beforeUpload: b,
610
+ onSuccess: (y, F, x) => {
611
611
  var E;
612
- (E = e.onSuccess) == null || E.call(e, m, k, T), y();
612
+ (E = e.onSuccess) == null || E.call(e, y, F, x), v();
613
613
  },
614
- onRemove: (m, k) => {
615
- var T;
616
- u.value = ne(u.value, (E) => !(m.uid === E.uid && m.name === E.name)), (T = e.onRemove) == null || T.call(e, m, k), y();
614
+ onRemove: (y, F) => {
615
+ var x;
616
+ u.value = ue(u.value, (E) => !(y.uid === E.uid && y.name === E.name)), (x = e.onRemove) == null || x.call(e, y, F), v();
617
617
  }
618
618
  }), {
619
619
  default: () => {
620
- var m;
621
- return [C.value && ((m = t.default) == null ? void 0 : m.call(t))];
620
+ var y;
621
+ return [k.value && ((y = t.default) == null ? void 0 : y.call(t))];
622
622
  },
623
623
  ...f(t, "default")
624
- }), (P = t.end) == null ? void 0 : P.call(t)]);
624
+ }), (p = t.end) == null ? void 0 : p.call(t)]);
625
625
  };
626
626
  }
627
- }), bt = h({
628
- InputComp: Me,
627
+ }), St = C({
628
+ InputComp: qe,
629
629
  valueType: "text",
630
630
  name: "PFromText"
631
- }), gt = h({
632
- InputComp: Be,
631
+ }), ht = C({
632
+ InputComp: $e,
633
633
  valueType: "digit",
634
634
  name: "PFormNumber"
635
- }), Pt = h({
636
- InputComp: Ve,
635
+ }), Ct = C({
636
+ InputComp: Ge,
637
637
  valueType: "date",
638
638
  name: "PFormDate"
639
- }), St = h({
640
- InputComp: se,
639
+ }), kt = C({
640
+ InputComp: _e,
641
641
  valueType: "time",
642
642
  name: "PFormTime"
643
- }), pt = h({
644
- InputComp: Ye,
643
+ }), Ft = C({
644
+ InputComp: bt,
645
645
  valueType: "select",
646
646
  name: "PFormSelect"
647
- }), ht = h({
648
- InputComp: ze,
647
+ }), Tt = C({
648
+ InputComp: We,
649
649
  valueType: "treeSelect",
650
650
  name: "PFormTreeSelect"
651
- }), Ct = h({
652
- InputComp: Qe,
651
+ }), xt = C({
652
+ InputComp: yt,
653
653
  valueType: "checkbox",
654
654
  name: "PFromCheckbox"
655
- }), kt = h({
656
- InputComp: Xe,
655
+ }), Et = C({
656
+ InputComp: vt,
657
657
  valueType: "radio",
658
658
  name: "PFromRadio"
659
- }), Ft = h({
660
- InputComp: Ue,
659
+ }), st = C({
660
+ InputComp: Ze,
661
661
  valueType: "switch",
662
662
  name: "PFromSwitch"
663
- }), Tt = h({
664
- InputComp: Ae,
663
+ }), It = C({
664
+ InputComp: He,
665
665
  valueType: "cascader",
666
666
  name: "PFormCascader"
667
- }), pe = g({
667
+ }), Ke = g({
668
668
  props: {
669
- ...f(te.props, "label", "prop"),
669
+ ...f(oe.props, "label", "prop"),
670
670
  title: {
671
671
  type: String
672
672
  },
@@ -688,50 +688,50 @@ const L = {
688
688
  column: n,
689
689
  $index: u
690
690
  }) => {
691
- var P;
692
- const l = r, y = u, v = {
691
+ var p;
692
+ const o = r, v = u, b = {
693
693
  ...n,
694
694
  title: n.label,
695
695
  dataIndex: n.property
696
- }, C = K(r, v.dataIndex), I = {
697
- value: C,
698
- text: C,
699
- record: l,
700
- column: v,
701
- index: y
702
- }, b = (P = t.bodyCell) == null ? void 0 : P.call(t, I);
703
- return b || (e.customRender ? e.customRender(I) : C);
704
- }, o = {
696
+ }, k = O(r, b.dataIndex), R = {
697
+ value: k,
698
+ text: k,
699
+ record: o,
700
+ column: b,
701
+ index: v
702
+ }, P = (p = t.bodyCell) == null ? void 0 : p.call(t, R);
703
+ return P || (e.customRender ? e.customRender(R) : k);
704
+ }, l = {
705
705
  header: ({
706
706
  column: r,
707
707
  $index: n
708
708
  }) => {
709
- var C;
710
- const u = n, l = r.label, y = {
709
+ var k;
710
+ const u = n, o = r.label, v = {
711
711
  ...r,
712
- title: l,
712
+ title: o,
713
713
  dataIndex: r.property
714
714
  };
715
- return ((C = t.headerCell) == null ? void 0 : C.call(t, {
716
- title: l,
717
- column: y,
715
+ return ((k = t.headerCell) == null ? void 0 : k.call(t, {
716
+ title: o,
717
+ column: v,
718
718
  index: u
719
- })) || l;
719
+ })) || o;
720
720
  }
721
721
  };
722
- return (!e.children || B(e.children) <= 0) && (o.default = c), () => d(te, i(f(e, "title", "dataIndex", "prop", "customRender", "children"), {
722
+ return (!e.children || B(e.children) <= 0) && (l.default = c), () => i(oe, d(f(e, "title", "dataIndex", "prop", "customRender", "children"), {
723
723
  prop: e.dataIndex,
724
724
  label: e.title
725
725
  }), {
726
- default: () => [B(e.children) > 0 && p(e.children, (r) => d(pe, i({
726
+ default: () => [B(e.children) > 0 && h(e.children, (r) => i(Ke, d({
727
727
  key: r.dataIndex
728
728
  }, r), t))],
729
- ...o
729
+ ...l
730
730
  });
731
731
  }
732
- }), nt = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], rt = g({
732
+ }), Kt = ["clearSelection", "getSelectionRows", "toggleRowSelection", "toggleAllSelection", "toggleRowExpansion", "setCurrentRow", "clearSort", "clearFilter", "doLayout", "sort", "scrollTo", "setScrollTop", "setScrollLeft"], Re = g({
733
733
  props: {
734
- ...ae.props,
734
+ ...le.props,
735
735
  columns: {
736
736
  type: Array
737
737
  },
@@ -746,93 +746,154 @@ const L = {
746
746
  slots: t,
747
747
  expose: c
748
748
  }) => {
749
- const a = S(), o = ge("table");
750
- return c(fe(nt, a)), () => d(ae, i({
749
+ const a = S(), l = Fe("table");
750
+ return c(be(Kt, a)), () => i(le, d({
751
751
  ref: a,
752
- id: o
752
+ id: l
753
753
  }, f(e, "columns", "dataSource", "loading"), {
754
754
  data: e.dataSource || e.data
755
755
  }), {
756
756
  default: () => {
757
757
  var r, n;
758
- return [(r = t.start) == null ? void 0 : r.call(t), p(e.columns, (u) => d(pe, i({
758
+ return [(r = t.start) == null ? void 0 : r.call(t), h(e.columns, (u) => i(Ke, d({
759
759
  key: u.dataIndex
760
- }, u), t)), (n = t.default) == null ? void 0 : n.call(t), e.loading && d(He, {
761
- target: o,
760
+ }, u), t)), (n = t.default) == null ? void 0 : n.call(t), e.loading && i(Te, {
761
+ target: l,
762
762
  loading: !0
763
763
  }, null)];
764
764
  },
765
- ...N(t, "append", "empty")
765
+ ...j(t, "append", "empty")
766
766
  });
767
767
  }
768
+ }), Rt = g({
769
+ props: {
770
+ ...I.props,
771
+ type: {
772
+ type: String,
773
+ default: "primary"
774
+ },
775
+ link: {
776
+ type: Boolean,
777
+ default: !0
778
+ }
779
+ },
780
+ setup: (e, {
781
+ slots: t
782
+ }) => () => i(I, e, t)
768
783
  });
769
- R.props = {
770
- ...A.props,
771
- ...R.props,
772
- formMethods: { type: Array, default: be }
784
+ s.props = {
785
+ ...N.props,
786
+ ...s.props,
787
+ formMethods: { type: Array, default: ke }
773
788
  };
774
- D.props = {
775
- ...R.props,
776
- ...D.props,
789
+ A.props = {
790
+ ...s.props,
791
+ ...A.props,
777
792
  inline: { type: Boolean, default: !0 }
778
793
  };
779
- j.props = {
780
- ...U.props,
781
- ...j.props
794
+ $.props = {
795
+ ...w.props,
796
+ ...$.props
782
797
  };
783
- O.props = {
784
- ...rt.props,
785
- ...O.props
798
+ D.props = {
799
+ ...Re.props,
800
+ ...D.props
786
801
  };
787
- z.props = {
788
- ...Ke.props,
789
- ...z.props
802
+ L.props = {
803
+ ...ge.props,
804
+ ...L.props
790
805
  };
791
- w.props = {
792
- ...z.props,
793
- ...w.props
806
+ G.props = {
807
+ ...L.props,
808
+ ...G.props
794
809
  };
795
- q.props = {
796
- ...R.props,
797
- ...q.props
810
+ _.props = {
811
+ ...s.props,
812
+ ..._.props
798
813
  };
799
- $.props = {
800
- ...Je.props,
801
- ...$.props
814
+ W.props = {
815
+ ...xe.props,
816
+ ...W.props
802
817
  };
803
- G.props = {
804
- ...at.props,
805
- ...G.props,
818
+ Z.props = {
819
+ ...Ie.props,
820
+ ...Z.props,
806
821
  modelValue: String
807
822
  };
823
+ const Dt = {
824
+ [m.LoadingKey]: Te,
825
+ [m.RowKey]: Je,
826
+ [m.ColKey]: Qe,
827
+ [m.ButtonKey]: I,
828
+ [m.DescriptionsKey]: ge,
829
+ [m.DescriptionsItemKey]: Xe,
830
+ [m.MenusKey]: gt,
831
+ [m.ModalKey]: xe,
832
+ [m.PaginationKey]: ft,
833
+ [m.PopoverKey]: mt,
834
+ [m.CheckboxKey]: Pe,
835
+ [m.FormKey]: it,
836
+ [m.FormItemKey]: Ce,
837
+ [m.TableKey]: Re,
838
+ [m.TableOperateKey]: Rt,
839
+ [m.UploaderKey]: Ie,
840
+ [m.ProFormKey]: s,
841
+ [m.ProSearchFormKey]: A,
842
+ [m.ProTableKey]: D,
843
+ [m.ProCurdKey]: Be,
844
+ [m.ProListKey]: Ve,
845
+ text: H,
846
+ digit: ze,
847
+ date: Ue,
848
+ time: H,
849
+ select: z,
850
+ radio: z,
851
+ checkbox: z,
852
+ treeSelect: J,
853
+ cascader: J
854
+ }, Lt = {
855
+ text: St,
856
+ digit: ht,
857
+ date: Ct,
858
+ time: kt,
859
+ select: Ft,
860
+ treeSelect: Tt,
861
+ checkbox: xt,
862
+ radio: Et,
863
+ switch: st,
864
+ cascader: It
865
+ };
808
866
  export {
809
- be as FormMethods,
810
- Qe as ProCheckbox,
867
+ ke as FormMethods,
868
+ yt as ProCheckbox,
811
869
  it as ProForm,
812
- Tt as ProFormCascader,
813
- Ct as ProFormCheckbox,
814
- Pt as ProFormDatePicker,
815
- We as ProFormItem,
816
- kt as ProFormRadio,
817
- pt as ProFormSelect,
818
- Ft as ProFormSwitch,
819
- bt as ProFormText,
820
- gt as ProFormTextNumber,
821
- St as ProFormTimePicker,
822
- ht as ProFormTreeSelect,
823
- He as ProLoading,
824
- vt as ProMenus,
825
- Je as ProModal,
870
+ It as ProFormCascader,
871
+ xt as ProFormCheckbox,
872
+ Ct as ProFormDatePicker,
873
+ Ce as ProFormItem,
874
+ Et as ProFormRadio,
875
+ Ft as ProFormSelect,
876
+ st as ProFormSwitch,
877
+ St as ProFormText,
878
+ ht as ProFormTextNumber,
879
+ kt as ProFormTimePicker,
880
+ Tt as ProFormTreeSelect,
881
+ Te as ProLoading,
882
+ gt as ProMenus,
883
+ xe as ProModal,
826
884
  ft as ProPagination,
827
885
  mt as ProPopover,
828
- Xe as ProRadio,
829
- Ye as ProSelect,
830
- rt as ProTable,
831
- pe as ProTableColumn,
832
- yt as ProTabs,
833
- at as ProUploader,
834
- nt as TableMethods,
835
- tt as UploadMethods,
836
- h as createFormItemComponent,
837
- ge as createLoadingId
886
+ vt as ProRadio,
887
+ bt as ProSelect,
888
+ Re as ProTable,
889
+ Ke as ProTableColumn,
890
+ Rt as ProTableOperateItem,
891
+ At as ProTabs,
892
+ Ie as ProUploader,
893
+ Kt as TableMethods,
894
+ pt as UploadMethods,
895
+ C as createFormItemComponent,
896
+ Fe as createLoadingId,
897
+ Dt as elementMap,
898
+ Lt as formElementMap
838
899
  };