@pungfe/element 0.4.8 → 0.5.0

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.
Files changed (36) hide show
  1. package/dist/{advance-BJKP-kp7.cjs → advance-CQIjhvNB.cjs} +1 -1
  2. package/dist/{advance-CgcoIx9D.js → advance-Zxhajef-.js} +281 -280
  3. package/dist/advance.cjs +1 -1
  4. package/dist/advance.js +1 -1
  5. package/dist/{basic-WMdw-HTg.js → basic-AcTgeyCF.js} +168 -167
  6. package/dist/basic-Cp8Amp9g.cjs +1 -0
  7. package/dist/basic.cjs +1 -1
  8. package/dist/basic.js +1 -1
  9. package/dist/components/advance/XCascaderRequest.vue.d.ts +4 -4
  10. package/dist/components/advance/XFormFlex.vue.d.ts +1 -1
  11. package/dist/components/advance/XFormRequestNext.vue.d.ts +5 -5
  12. package/dist/components/advance/XRequest.vue.d.ts +4 -4
  13. package/dist/components/advance/XSelectRequest.vue.d.ts +4 -4
  14. package/dist/components/advance/XTableFlex.vue.d.ts +1 -1
  15. package/dist/components/advance/XTableRequestConfigNext.vue.d.ts +5 -5
  16. package/dist/components/advance/XTableRequestNext.vue.d.ts +5 -5
  17. package/dist/components/advance/XUploadOssNext.vue.d.ts +1 -1
  18. package/dist/components/basic/DatePicker.vue.d.ts +5 -2
  19. package/dist/components/basic/Form.vue.d.ts +2 -2
  20. package/dist/components/basic/Table.vue.d.ts +2 -2
  21. package/dist/components/basic/Tabs.vue.d.ts +1 -1
  22. package/dist/composables/useElementConfig.d.ts +8 -0
  23. package/dist/constants/index.d.ts +2 -2
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +16 -10
  26. package/dist/install.d.ts +2 -2
  27. package/dist/{locales-NzOtKeRt.cjs → locales-CIRzA_S9.cjs} +1 -1
  28. package/dist/{locales-DWPf4a6G.js → locales-Ci_7wNxx.js} +68 -68
  29. package/dist/locales.cjs +1 -1
  30. package/dist/locales.js +1 -1
  31. package/dist/resolver.cjs +1 -1
  32. package/dist/resolver.js +7 -7
  33. package/dist/style.css +1 -1
  34. package/dist/types.d.ts +2 -1
  35. package/package.json +20 -20
  36. package/dist/basic-CUkdG8Cj.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { r as e } from "./locales-DWPf4a6G.js";
2
- import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as te, ElSelect as ne, ElTabPane as d, ElTable as f, ElTableColumn as re, ElTabs as p, ElUpload as m, useLocale as h } from "element-plus";
3
- import { Fragment as g, computed as _, createBlock as v, createElementBlock as ie, createSlots as y, createVNode as b, defineComponent as x, getCurrentInstance as S, getCurrentScope as ae, guardReactiveProps as C, inject as w, mergeModels as T, mergeProps as E, nextTick as oe, normalizeProps as D, onMounted as O, onScopeDispose as se, onUnmounted as ce, openBlock as k, provide as A, ref as j, renderList as M, renderSlot as N, shallowRef as P, toValue as F, unref as I, useAttrs as le, useId as ue, useModel as L, useTemplateRef as R, watch as z, withCtx as B } from "vue";
1
+ import { r as e } from "./locales-Ci_7wNxx.js";
2
+ import { ElButton as t, ElCascader as n, ElCheckbox as r, ElConfigProvider as i, ElDatePicker as a, ElDialog as o, ElForm as s, ElFormItem as c, ElInput as l, ElInputNumber as u, ElOption as ee, ElPagination as d, ElSelect as te, ElTabPane as f, ElTable as p, ElTableColumn as ne, ElTabs as m, ElUpload as h, useLocale as g } from "element-plus";
3
+ import { Fragment as _, computed as v, createBlock as y, createElementBlock as re, createSlots as b, createVNode as x, defineComponent as S, getCurrentInstance as C, getCurrentScope as ie, guardReactiveProps as w, inject as T, mergeModels as E, mergeProps as D, nextTick as ae, normalizeProps as O, onMounted as k, onScopeDispose as oe, onUnmounted as se, openBlock as A, provide as j, ref as ce, renderList as M, renderSlot as N, shallowRef as P, toValue as F, unref as I, useId as le, useModel as L, useTemplateRef as R, watch as z, withCtx as B } from "vue";
4
4
  //#region \0rolldown/runtime.js
5
5
  var V = Object.defineProperty, H = (e, t) => {
6
6
  let n = {};
@@ -13,9 +13,9 @@ var V = Object.defineProperty, H = (e, t) => {
13
13
  //#endregion
14
14
  //#region node_modules/@vueuse/shared/dist/index.js
15
15
  function U(e, t) {
16
- return ae() ? (se(e, t), !0) : !1;
16
+ return ie() ? (oe(e, t), !0) : !1;
17
17
  }
18
- function de() {
18
+ function ue() {
19
19
  let e = /* @__PURE__ */ new Set(), t = (t) => {
20
20
  e.delete(t);
21
21
  };
@@ -35,7 +35,7 @@ function de() {
35
35
  var W = typeof window < "u" && typeof document < "u";
36
36
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
37
37
  var G = () => {};
38
- function fe(e, t) {
38
+ function de(e, t) {
39
39
  function n(...n) {
40
40
  return new Promise((r, i) => {
41
41
  Promise.resolve(e(() => t.apply(this, n), {
@@ -47,7 +47,7 @@ function fe(e, t) {
47
47
  }
48
48
  return n;
49
49
  }
50
- function pe(e, t = {}) {
50
+ function fe(e, t = {}) {
51
51
  let n, r, i = G, a = (e) => {
52
52
  clearTimeout(e), i(), i = G;
53
53
  }, o;
@@ -62,47 +62,47 @@ function pe(e, t = {}) {
62
62
  });
63
63
  };
64
64
  }
65
- function me(e) {
65
+ function pe(e) {
66
66
  return Array.isArray(e) ? e : [e];
67
67
  }
68
- function he(e) {
69
- return e || S();
68
+ function me(e) {
69
+ return e || C();
70
70
  }
71
- function ge(e, t = 200, n = {}) {
72
- return fe(pe(t, n), e);
71
+ function he(e, t = 200, n = {}) {
72
+ return de(fe(t, n), e);
73
73
  }
74
74
  function K(e, t = !0, n) {
75
- he(n) ? O(e, n) : t ? e() : oe(e);
75
+ me(n) ? k(e, n) : t ? e() : ae(e);
76
76
  }
77
- function _e(e, t) {
78
- return _(() => F(e).map((e) => F(e)).filter(t));
77
+ function ge(e, t) {
78
+ return v(() => F(e).map((e) => F(e)).filter(t));
79
79
  }
80
80
  function q(e, t) {
81
- return _(() => F(e).map((e) => F(e)).map(t));
81
+ return v(() => F(e).map((e) => F(e)).map(t));
82
82
  }
83
83
  //#endregion
84
84
  //#region node_modules/@vueuse/core/dist/index.js
85
- var J = W ? window : void 0, ve = W ? window.document : void 0;
85
+ var J = W ? window : void 0, _e = W ? window.document : void 0;
86
86
  W && window.navigator, W && window.location;
87
87
  function Y(e) {
88
88
  let t = F(e);
89
89
  return t?.$el ?? t;
90
90
  }
91
- function ye() {
92
- let e = P(!1), t = S();
93
- return t && O(() => {
91
+ function ve() {
92
+ let e = P(!1), t = C();
93
+ return t && k(() => {
94
94
  e.value = !0;
95
95
  }, t), e;
96
96
  }
97
97
  /* @__NO_SIDE_EFFECTS__ */
98
- function be(e) {
99
- let t = ye();
100
- return _(() => (t.value, !!e()));
98
+ function ye(e) {
99
+ let t = ve();
100
+ return v(() => (t.value, !!e()));
101
101
  }
102
- function xe(e, t, n = {}) {
103
- let { window: r = J, ...i } = n, a, o = /* @__PURE__ */ be(() => r && "ResizeObserver" in r), s = () => {
102
+ function be(e, t, n = {}) {
103
+ let { window: r = J, ...i } = n, a, o = /* @__PURE__ */ ye(() => r && "ResizeObserver" in r), s = () => {
104
104
  a &&= (a.disconnect(), void 0);
105
- }, c = z(_(() => {
105
+ }, c = z(v(() => {
106
106
  let t = F(e);
107
107
  return Array.isArray(t) ? t.map((e) => Y(e)) : [Y(t)];
108
108
  }), (e) => {
@@ -121,14 +121,14 @@ function xe(e, t, n = {}) {
121
121
  stop: l
122
122
  };
123
123
  }
124
- function Se(e, t = {
124
+ function xe(e, t = {
125
125
  width: 0,
126
126
  height: 0
127
127
  }, n = {}) {
128
- let { window: r = J, box: i = "content-box" } = n, a = _(() => {
128
+ let { window: r = J, box: i = "content-box" } = n, a = v(() => {
129
129
  var t;
130
130
  return (t = Y(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
131
- }), o = P(t.width), s = P(t.height), { stop: c } = xe(e, ([t]) => {
131
+ }), o = P(t.width), s = P(t.height), { stop: c } = be(e, ([t]) => {
132
132
  let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
133
133
  if (r && a.value) {
134
134
  let t = Y(e);
@@ -137,7 +137,7 @@ function Se(e, t = {
137
137
  o.value = e.width, s.value = e.height;
138
138
  }
139
139
  } else if (n) {
140
- let e = me(n);
140
+ let e = pe(n);
141
141
  o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
142
142
  } else o.value = t.contentRect.width, s.value = t.contentRect.height;
143
143
  }, n);
@@ -159,7 +159,7 @@ function Se(e, t = {
159
159
  }
160
160
  //#endregion
161
161
  //#region src/components/basic/Button.vue
162
- var Ce = /* @__PURE__ */ x({
162
+ var Se = /* @__PURE__ */ S({
163
163
  __name: "Button",
164
164
  props: {
165
165
  disabled: {
@@ -178,7 +178,7 @@ var Ce = /* @__PURE__ */ x({
178
178
  emits: ["click"],
179
179
  setup(e, { emit: n }) {
180
180
  let r = n;
181
- return (n, i) => (k(), v(I(t), E({
181
+ return (n, i) => (A(), y(I(t), D({
182
182
  type: e.type,
183
183
  text: e.text,
184
184
  link: e.link,
@@ -190,9 +190,9 @@ var Ce = /* @__PURE__ */ x({
190
190
  _: 3
191
191
  }, 16));
192
192
  }
193
- }), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"), we = Symbol("X_ELEMENT_INSTALLED"), Te = Symbol("X_ELEMENT_IN_TABLE"), Ee = Symbol("X_ELEMENT_IN_FORM"), De = Symbol("X_ELEMENT_IN_TABS"), Oe = Symbol("X_ELEMENT_IN_TAB_PANE"), ke = Symbol("X_FORM_VALIDATIONS"), Q = Symbol("X_FORM_ITEM_VALIDATION"), Ae = Symbol("X_TAB_PANE"), je = Symbol("X_TABS_MODEL_UPDATE_HOOK"), Me = /* @__PURE__ */ x({
193
+ }), X = Symbol("X_LOCALE_CONFIG"), Z = Symbol("X_ELEMENT_CONFIG"), Ce = Symbol("X_ELEMENT_INSTALLED"), we = Symbol("X_ELEMENT_IN_TABLE"), Te = Symbol("X_ELEMENT_IN_FORM"), Ee = Symbol("X_ELEMENT_IN_TABS"), De = Symbol("X_ELEMENT_IN_TAB_PANE"), Oe = Symbol("X_FORM_VALIDATIONS"), Q = Symbol("X_FORM_ITEM_VALIDATION"), ke = Symbol("X_TAB_PANE"), Ae = Symbol("X_TABS_MODEL_UPDATE_HOOK"), je = /* @__PURE__ */ S({
194
194
  __name: "Cascader",
195
- props: /* @__PURE__ */ T({
195
+ props: /* @__PURE__ */ E({
196
196
  data: {},
197
197
  factory: { type: Function },
198
198
  clearable: { type: Boolean },
@@ -210,17 +210,17 @@ var Ce = /* @__PURE__ */ x({
210
210
  }),
211
211
  emits: ["update:modelValue"],
212
212
  setup(e) {
213
- let { t } = h(w(X)), r = L(e, "modelValue"), i = _(() => e.data ?? []), a = _({
213
+ let { t } = g(T(X)), r = L(e, "modelValue"), i = v(() => e.data ?? []), a = v({
214
214
  get: () => r.value,
215
215
  set: (e) => {
216
216
  r.value = e;
217
217
  }
218
- }), o = w(Q, void 0);
218
+ }), o = T(Q, void 0);
219
219
  if (o?.required) {
220
220
  let { label: e, validator: n } = o;
221
221
  o.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? t("el.validation.cascader", { label: e }) : n?.();
222
222
  }
223
- return (r, o) => (k(), v(I(n), E({
223
+ return (r, o) => (A(), y(I(n), D({
224
224
  modelValue: a.value,
225
225
  "onUpdate:modelValue": o[0] ||= (e) => a.value = e
226
226
  }, {
@@ -233,9 +233,9 @@ var Ce = /* @__PURE__ */ x({
233
233
  placeholder: e.placeholder ?? I(t)("el.select.placeholder")
234
234
  }), null, 16, ["modelValue"]));
235
235
  }
236
- }), Ne = /* @__PURE__ */ x({
236
+ }), Me = /* @__PURE__ */ S({
237
237
  __name: "Checkbox",
238
- props: /* @__PURE__ */ T({
238
+ props: /* @__PURE__ */ E({
239
239
  disabled: {
240
240
  type: Boolean,
241
241
  default: () => void 0
@@ -257,31 +257,31 @@ var Ce = /* @__PURE__ */ x({
257
257
  ] },
258
258
  modelModifiers: {}
259
259
  }),
260
- emits: /* @__PURE__ */ T(["blur", "focus"], ["update:modelValue"]),
260
+ emits: /* @__PURE__ */ E(["blur", "focus"], ["update:modelValue"]),
261
261
  setup(e) {
262
- let t = L(e, "modelValue"), { t: n } = h(w(X)), i = w(Q, void 0);
262
+ let t = L(e, "modelValue"), { t: n } = g(T(X)), i = T(Q, void 0);
263
263
  if (i?.required) {
264
264
  let { label: e, validator: r } = i;
265
265
  i.validator = () => e && !t.value ? n("el.validation.input", { label: e }) : r?.();
266
266
  }
267
- return (n, i) => (k(), v(I(r), E({ disabled: e.disabled }, {
267
+ return (n, i) => (A(), y(I(r), D({ disabled: e.disabled }, {
268
268
  modelValue: t.value,
269
269
  "onUpdate:modelValue": i[0] ||= (e) => t.value = e
270
270
  }), null, 16, ["modelValue"]));
271
271
  }
272
- }), Pe = /* @__PURE__ */ x({
272
+ }), Ne = /* @__PURE__ */ S({
273
273
  __name: "ConfigProvider",
274
274
  props: { locale: {} },
275
275
  setup(t) {
276
- let n = _(() => t.locale ?? e);
277
- return A(X, n), (e, t) => (k(), v(I(i), { locale: n.value }, {
276
+ let n = v(() => t.locale ?? e);
277
+ return j(X, n), (e, t) => (A(), y(I(i), { locale: n.value }, {
278
278
  default: B(() => [N(e.$slots, "default")]),
279
279
  _: 3
280
280
  }, 8, ["locale"]));
281
281
  }
282
- }), $ = /* @__PURE__ */ x({
282
+ }), Pe = /* @__PURE__ */ S({
283
283
  __name: "DatePicker",
284
- props: /* @__PURE__ */ T({
284
+ props: /* @__PURE__ */ E({
285
285
  disabled: {
286
286
  type: Boolean,
287
287
  default: () => void 0
@@ -292,6 +292,7 @@ var Ce = /* @__PURE__ */ x({
292
292
  shortcuts: {},
293
293
  startPlaceholder: {},
294
294
  type: { default: "date" },
295
+ size: {},
295
296
  valueFormat: {}
296
297
  }, {
297
298
  modelValue: {},
@@ -301,44 +302,44 @@ var Ce = /* @__PURE__ */ x({
301
302
  end: {},
302
303
  endModifiers: {}
303
304
  }),
304
- emits: /* @__PURE__ */ T(["blur", "focus"], [
305
+ emits: /* @__PURE__ */ E(["blur", "focus"], [
305
306
  "update:modelValue",
306
307
  "update:start",
307
308
  "update:end"
308
309
  ]),
309
310
  setup(e) {
310
- let t = le(), n = L(e, "modelValue"), r = L(e, "start"), i = L(e, "end"), { t: o } = h(w(X)), s = _({
311
+ let t = L(e, "modelValue"), n = L(e, "start"), r = L(e, "end"), i = T(Z), { t: o } = g(T(X)), s = v({
311
312
  get() {
312
- return e.type.includes("range") && r.value && i.value ? [r.value, i.value] : e.type.includes("range") ? null : n.value;
313
+ return e.type.includes("range") && n.value && r.value ? [n.value, r.value] : e.type.includes("range") ? null : t.value;
313
314
  },
314
- set(t) {
315
- e.type.includes("range") && Array.isArray(t) ? (r.value = t?.[0], i.value = t?.[1]) : n.value = t;
315
+ set(i) {
316
+ e.type.includes("range") && Array.isArray(i) ? (n.value = i?.[0], r.value = i?.[1]) : t.value = i;
316
317
  }
317
- }), c = w(Q, void 0);
318
+ }), c = T(Q, void 0);
318
319
  if (c?.required) {
319
- let { label: t, validator: a } = c;
320
- c.validator = () => t && e.type.includes("range") && (!r.value || !i.value) || t && !n.value ? o("el.validation.datepicker", { label: t }) : a?.();
320
+ let { label: i, validator: a } = c;
321
+ c.validator = () => i && e.type.includes("range") && (!n.value || !r.value) || i && !t.value ? o("el.validation.datepicker", { label: i }) : a?.();
321
322
  }
322
- return (n, r) => (k(), v(I(a), E({
323
+ return (t, n) => (A(), y(I(a), D({
323
324
  disabled: e.disabled,
324
325
  disabledDate: e.disabledDate,
325
326
  type: e.type,
326
- valueFormat: e.valueFormat,
327
+ valueFormat: e.valueFormat ?? I(i)?.datePicker?.valueFormat,
327
328
  placeholder: e.placeholder ?? I(o)("el.datepicker.placeholder"),
328
- startPlaceholder: e.placeholder ?? I(o)("el.datepicker.startPlaceholder"),
329
- endPlaceholder: e.placeholder ?? I(o)("el.datepicker.endPlaceholder"),
329
+ startPlaceholder: e.startPlaceholder ?? e.placeholder ?? I(o)("el.datepicker.startPlaceholder"),
330
+ endPlaceholder: e.endPlaceholder ?? e.placeholder ?? I(o)("el.datepicker.endPlaceholder"),
330
331
  shortcuts: e.shortcuts,
331
- ...I(t)
332
+ size: e.size
332
333
  }, {
333
334
  modelValue: s.value,
334
- "onUpdate:modelValue": r[0] ||= (e) => s.value = e,
335
- onBlur: r[1] ||= (e) => n.$emit("blur", e),
336
- onFocus: r[2] ||= (e) => n.$emit("focus", e)
335
+ "onUpdate:modelValue": n[0] ||= (e) => s.value = e,
336
+ onBlur: n[1] ||= (e) => t.$emit("blur", e),
337
+ onFocus: n[2] ||= (e) => t.$emit("focus", e)
337
338
  }), null, 16, ["modelValue"]));
338
339
  }
339
- }), Fe = /* @__PURE__ */ x({
340
+ }), $ = /* @__PURE__ */ S({
340
341
  __name: "Dialog",
341
- props: /* @__PURE__ */ T({
342
+ props: /* @__PURE__ */ E({
342
343
  bodyClass: {},
343
344
  width: {},
344
345
  showClose: {
@@ -364,7 +365,7 @@ var Ce = /* @__PURE__ */ x({
364
365
  emits: ["update:modelValue"],
365
366
  setup(e) {
366
367
  let t = L(e, "modelValue");
367
- return (n, r) => (k(), v(I(o), E({
368
+ return (n, r) => (A(), y(I(o), D({
368
369
  modelValue: t.value,
369
370
  "onUpdate:modelValue": r[0] ||= (e) => t.value = e
370
371
  }, {
@@ -377,7 +378,7 @@ var Ce = /* @__PURE__ */ x({
377
378
  draggable: e.draggable,
378
379
  closeOnClickModal: e.closeOnClickModal,
379
380
  closeOnPressEscape: e.closeOnPressEscape
380
- }), y({
381
+ }), b({
381
382
  default: B(() => [N(n.$slots, "default")]),
382
383
  _: 2
383
384
  }, ["header" in n.$slots ? {
@@ -390,7 +391,7 @@ var Ce = /* @__PURE__ */ x({
390
391
  key: "1"
391
392
  } : void 0]), 1040, ["modelValue"]));
392
393
  }
393
- }), Ie = /* @__PURE__ */ x({
394
+ }), Fe = /* @__PURE__ */ S({
394
395
  __name: "Form",
395
396
  props: {
396
397
  content: { type: Function },
@@ -407,18 +408,18 @@ var Ce = /* @__PURE__ */ x({
407
408
  },
408
409
  setup(e, { expose: t }) {
409
410
  let n = R("form"), r = () => e.content?.({ data: e.data ?? {} });
410
- A(Ee, !0);
411
+ j(Te, !0);
411
412
  let i = [];
412
- A(ke, i);
413
+ j(Oe, i);
413
414
  let a = () => i.every((e) => e.validate()), o = () => i.forEach((e) => e.clearValidate());
414
415
  return t({
415
416
  clearValidate: o,
416
417
  data: e.data,
417
- validate: a,
418
418
  resetFields: () => {
419
419
  o(), n.value?.resetFields();
420
- }
421
- }), (t, i) => (k(), v(I(s), E({
420
+ },
421
+ validate: a
422
+ }), (t, i) => (A(), y(I(s), D({
422
423
  ref_key: "form",
423
424
  ref: n
424
425
  }, {
@@ -430,11 +431,11 @@ var Ce = /* @__PURE__ */ x({
430
431
  labelSuffix: e.labelSuffix,
431
432
  size: e.size
432
433
  }), {
433
- default: B(() => [b(r)]),
434
+ default: B(() => [x(r)]),
434
435
  _: 1
435
436
  }, 16));
436
437
  }
437
- }), Le = /* @__PURE__ */ x({
438
+ }), Ie = /* @__PURE__ */ S({
438
439
  __name: "FormItem",
439
440
  props: {
440
441
  content: { type: Function },
@@ -443,27 +444,27 @@ var Ce = /* @__PURE__ */ x({
443
444
  validator: { type: Function }
444
445
  },
445
446
  setup(e) {
446
- let t = w(ke, void 0), n = w(De, void 0), r = w(Oe, void 0), i = w(Ae, void 0), a = w(je, void 0), o = j(), s = ue(), l = {
447
- id: s,
447
+ let t = T(Oe, void 0), n = T(Ee, void 0), r = T(De, void 0), i = T(ke, void 0), a = T(Ae, void 0), o = ce(), s = le(), l = {
448
448
  clearValidate: () => o.value = void 0,
449
+ id: s,
449
450
  label: e.label,
450
451
  required: e.required,
451
- validator: e.validator,
452
- validate: () => (o.value = l.validator?.() ?? void 0, o.value && n && r && i && a?.trigger(i), !o.value)
452
+ validate: () => (o.value = l.validator?.() ?? void 0, o.value && n && r && i && a?.trigger(i), !o.value),
453
+ validator: e.validator
453
454
  };
454
- A(Q, l), O(() => {
455
+ j(Q, l), k(() => {
455
456
  t?.some((e) => e.id === s) || t?.push(l);
456
- }), ce(() => {
457
+ }), se(() => {
457
458
  let e = t?.findIndex((e) => e.id === s);
458
459
  e && e > -1 && t?.splice(e, 1);
459
460
  });
460
461
  let u = () => e.content?.();
461
- return (t, n) => (k(), v(I(c), {
462
+ return (t, n) => (A(), y(I(c), {
462
463
  label: e.label,
463
464
  required: e.required,
464
465
  error: o.value
465
- }, y({
466
- default: B(() => [N(t.$slots, "default", {}, () => [b(u)])]),
466
+ }, b({
467
+ default: B(() => [N(t.$slots, "default", {}, () => [x(u)])]),
467
468
  _: 2
468
469
  }, ["label" in t.$slots ? {
469
470
  name: "label",
@@ -475,9 +476,9 @@ var Ce = /* @__PURE__ */ x({
475
476
  "error"
476
477
  ]));
477
478
  }
478
- }), Re = /* @__PURE__ */ x({
479
+ }), Le = /* @__PURE__ */ S({
479
480
  __name: "Input",
480
- props: /* @__PURE__ */ T({
481
+ props: /* @__PURE__ */ E({
481
482
  clearable: { type: Boolean },
482
483
  disabled: {
483
484
  type: Boolean,
@@ -495,13 +496,13 @@ var Ce = /* @__PURE__ */ x({
495
496
  modelValue: {},
496
497
  modelModifiers: {}
497
498
  }),
498
- emits: /* @__PURE__ */ T([
499
+ emits: /* @__PURE__ */ E([
499
500
  "blur",
500
501
  "focus",
501
502
  "change"
502
503
  ], ["update:modelValue"]),
503
504
  setup(e, { emit: t }) {
504
- let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = w(Q, void 0);
505
+ let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
505
506
  if (a?.required) {
506
507
  let { label: e, validator: t } = a;
507
508
  a.validator = () => e && !r.value ? i("el.validation.input", { label: e }) : t?.();
@@ -513,7 +514,7 @@ var Ce = /* @__PURE__ */ x({
513
514
  }, c = (e) => {
514
515
  n("change", e);
515
516
  };
516
- return (t, n) => (k(), v(I(l), E({
517
+ return (t, n) => (A(), y(I(l), D({
517
518
  disabled: e.disabled,
518
519
  type: e.type,
519
520
  size: e.size,
@@ -528,7 +529,7 @@ var Ce = /* @__PURE__ */ x({
528
529
  onBlur: o,
529
530
  onFocus: s,
530
531
  onChange: c
531
- }), y({ _: 2 }, [
532
+ }), b({ _: 2 }, [
532
533
  "append" in t.$slots ? {
533
534
  name: "append",
534
535
  fn: B(() => [N(t.$slots, "append")]),
@@ -551,9 +552,9 @@ var Ce = /* @__PURE__ */ x({
551
552
  } : void 0
552
553
  ]), 1040, ["modelValue"]));
553
554
  }
554
- }), ze = /* @__PURE__ */ x({
555
+ }), Re = /* @__PURE__ */ S({
555
556
  __name: "InputNumber",
556
- props: /* @__PURE__ */ T({
557
+ props: /* @__PURE__ */ E({
557
558
  align: {},
558
559
  controls: { type: Boolean },
559
560
  disabled: {
@@ -572,9 +573,9 @@ var Ce = /* @__PURE__ */ x({
572
573
  modelValue: {},
573
574
  modelModifiers: {}
574
575
  }),
575
- emits: /* @__PURE__ */ T(["blur", "focus"], ["update:modelValue"]),
576
+ emits: /* @__PURE__ */ E(["blur", "focus"], ["update:modelValue"]),
576
577
  setup(e, { emit: t }) {
577
- let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = w(Q, void 0);
578
+ let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = T(Q, void 0);
578
579
  if (a?.required) {
579
580
  let { label: e, validator: t } = a;
580
581
  a.validator = () => e && !r.value ? i("el.validation.inputNumber", { label: e }) : t?.();
@@ -584,7 +585,7 @@ var Ce = /* @__PURE__ */ x({
584
585
  }, s = (e) => {
585
586
  n("blur", e);
586
587
  };
587
- return (t, n) => (k(), v(I(u), E({
588
+ return (t, n) => (A(), y(I(u), D({
588
589
  align: e.align,
589
590
  controls: e.controls,
590
591
  disabled: e.disabled,
@@ -601,7 +602,7 @@ var Ce = /* @__PURE__ */ x({
601
602
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
602
603
  onBlur: s,
603
604
  onFocus: o
604
- }), y({ _: 2 }, ["prefix" in t.$slots ? {
605
+ }), b({ _: 2 }, ["prefix" in t.$slots ? {
605
606
  name: "prefix",
606
607
  fn: B(() => [N(t.$slots, "prefix")]),
607
608
  key: "0"
@@ -611,9 +612,9 @@ var Ce = /* @__PURE__ */ x({
611
612
  key: "1"
612
613
  } : void 0]), 1040, ["modelValue"]));
613
614
  }
614
- }), Be = /* @__PURE__ */ x({
615
+ }), ze = /* @__PURE__ */ S({
615
616
  __name: "Pagination",
616
- props: /* @__PURE__ */ T({
617
+ props: /* @__PURE__ */ E({
617
618
  pageSizes: {},
618
619
  background: { type: Boolean },
619
620
  size: {},
@@ -626,10 +627,10 @@ var Ce = /* @__PURE__ */ x({
626
627
  pageSize: {},
627
628
  pageSizeModifiers: {}
628
629
  }),
629
- emits: /* @__PURE__ */ T(["sizeChange", "currentChange"], ["update:currentPage", "update:pageSize"]),
630
+ emits: /* @__PURE__ */ E(["sizeChange", "currentChange"], ["update:currentPage", "update:pageSize"]),
630
631
  setup(e, { emit: t }) {
631
- let n = w(Z), r = t, i = L(e, "currentPage"), a = L(e, "pageSize"), o = n?.pagination;
632
- return h(w(X)), (t, n) => (k(), v(I(te), E({
632
+ let n = T(Z), r = t, i = L(e, "currentPage"), a = L(e, "pageSize"), o = n?.pagination;
633
+ return g(T(X)), (t, n) => (A(), y(I(d), D({
633
634
  size: e.size,
634
635
  total: e.total,
635
636
  pageSizes: e.pageSizes,
@@ -652,9 +653,9 @@ var Ce = /* @__PURE__ */ x({
652
653
  "default-page-size"
653
654
  ]));
654
655
  }
655
- }), Ve = /* @__PURE__ */ x({
656
+ }), Be = /* @__PURE__ */ S({
656
657
  __name: "Select",
657
- props: /* @__PURE__ */ T({
658
+ props: /* @__PURE__ */ E({
658
659
  collapseTagsTooltip: { type: Boolean },
659
660
  defaultFirstOption: { type: Boolean },
660
661
  clearable: { type: Boolean },
@@ -679,13 +680,13 @@ var Ce = /* @__PURE__ */ x({
679
680
  modelValue: {},
680
681
  modelModifiers: {}
681
682
  }),
682
- emits: /* @__PURE__ */ T([
683
+ emits: /* @__PURE__ */ E([
683
684
  "blur",
684
685
  "change",
685
686
  "focus"
686
687
  ], ["update:modelValue"]),
687
688
  setup(e, { emit: t }) {
688
- let n = t, r = L(e, "modelValue"), { t: i } = h(w(X)), a = j([]), o = q(() => e.data ?? [], e.factory), s = _(() => [...q(a, e.factory).value, ...o.value]), c = (t) => {
689
+ let n = t, r = L(e, "modelValue"), { t: i } = g(T(X)), a = ce([]), o = q(() => e.data ?? [], e.factory), s = v(() => [...q(a, e.factory).value, ...o.value]), c = (t) => {
689
690
  if (typeof t == "object") {
690
691
  if (e.identify) return e.identify(t);
691
692
  throw Error("`identify` is required when value's type extends `object` or `object[]`");
@@ -697,37 +698,37 @@ var Ce = /* @__PURE__ */ x({
697
698
  n === u && i && (a.value = i);
698
699
  } else a.value = [];
699
700
  }, { immediate: !0 });
700
- let te = _(() => s.value.map((e) => {
701
+ let d = v(() => s.value.map((e) => {
701
702
  let t = c(e.value);
702
703
  return {
703
704
  disabled: e.disabled,
704
705
  key: t,
705
706
  label: e.label,
706
- value: t,
707
- render: e.render
707
+ render: e.render,
708
+ value: t
708
709
  };
709
- })), d = _({
710
+ })), f = v({
710
711
  get: () => r.value && (Array.isArray(r.value) ? r.value.map(c) : c(r.value)),
711
712
  set: (t) => {
712
713
  Array.isArray(t) ? r.value = t.map((e) => l(e)) : r.value = t === void 0 ? void 0 : l(t) ?? (e.allowCreate ? t : void 0);
713
714
  }
714
- }), f = w(Q, void 0);
715
- if (f?.required) {
716
- let { label: e, validator: t } = f;
717
- f.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? i("el.validation.select", { label: e }) : t?.();
715
+ }), p = T(Q, void 0);
716
+ if (p?.required) {
717
+ let { label: e, validator: t } = p;
718
+ p.validator = () => e && (!r.value || Array.isArray(r.value) && r.value.length === 0) ? i("el.validation.select", { label: e }) : t?.();
718
719
  }
719
- let re = (e) => {
720
- n("blur", e), f?.validate?.();
721
- }, p = (e) => {
722
- n("focus", e);
720
+ let ne = (e) => {
721
+ n("blur", e), p?.validate?.();
723
722
  }, m = (e) => {
723
+ n("focus", e);
724
+ }, h = (e) => {
724
725
  n("change", e);
725
- }, y = (e) => b(ee, {
726
+ }, b = (e) => x(ee, {
726
727
  disabled: e.disabled,
727
728
  label: e.label,
728
729
  value: e.value
729
730
  }, { default: () => [e.render ?? e.label] });
730
- return (t, n) => (k(), v(I(ne), E({
731
+ return (t, n) => (A(), y(I(te), D({
731
732
  placeholder: e.placeholder ?? I(i)("el.select.placeholder"),
732
733
  disabled: e.disabled,
733
734
  allowCreate: e.allowCreate,
@@ -742,13 +743,13 @@ var Ce = /* @__PURE__ */ x({
742
743
  collapseTagsTooltip: e.collapseTagsTooltip,
743
744
  defaultFirstOption: e.defaultFirstOption || e.allowCreate
744
745
  }, {
745
- modelValue: d.value,
746
- "onUpdate:modelValue": n[0] ||= (e) => d.value = e,
747
- onBlur: re,
748
- onFocus: p,
749
- onChange: m
746
+ modelValue: f.value,
747
+ "onUpdate:modelValue": n[0] ||= (e) => f.value = e,
748
+ onBlur: ne,
749
+ onFocus: m,
750
+ onChange: h
750
751
  }), {
751
- default: B(() => [(k(!0), ie(g, null, M(te.value, (e) => (k(), v(y, {
752
+ default: B(() => [(A(!0), re(_, null, M(d.value, (e) => (A(), y(b, {
752
753
  label: e.label,
753
754
  value: e.value,
754
755
  disabled: e.disabled,
@@ -762,7 +763,7 @@ var Ce = /* @__PURE__ */ x({
762
763
  _: 1
763
764
  }, 16, ["modelValue"]));
764
765
  }
765
- }), He = /* @__PURE__ */ x({
766
+ }), Ve = /* @__PURE__ */ S({
766
767
  __name: "Table",
767
768
  props: {
768
769
  cellClassName: { type: [Function, String] },
@@ -800,19 +801,19 @@ var Ce = /* @__PURE__ */ x({
800
801
  "selectionChange"
801
802
  ],
802
803
  setup(e, { expose: t, emit: n }) {
803
- let r = n, i = w(Z)?.table, a = R("table");
804
+ let r = n, i = T(Z)?.table, a = R("table");
804
805
  t({
805
806
  clearSelection: () => a.value?.clearSelection(),
807
+ doLayout: () => a.value?.doLayout(),
806
808
  getSelectionRows: () => a.value?.getSelectionRows(),
807
- toggleAllSelection: () => a.value?.toggleAllSelection(),
808
809
  scrollTo: (e, t) => a.value?.scrollTo(e, t),
809
810
  setCurrentRow: (e) => a.value?.setCurrentRow(e),
810
811
  setScrollLeft: (e) => a.value?.setScrollLeft(e),
811
812
  setScrollTop: (e) => a.value?.setScrollTop(e),
812
- doLayout: () => a.value?.doLayout(),
813
+ toggleAllSelection: () => a.value?.toggleAllSelection(),
813
814
  toggleRowSelection: (e, t, n) => a.value?.toggleRowSelection(e, t, n)
814
- }), A(Te, !0);
815
- let o = /* @__PURE__ */ x((e) => () => b(re, {
815
+ }), j(we, !0);
816
+ let o = /* @__PURE__ */ S((e) => () => x(ne, {
816
817
  fixed: e.fixed,
817
818
  label: e.label,
818
819
  prop: e.prop,
@@ -824,9 +825,9 @@ var Ce = /* @__PURE__ */ x({
824
825
  headerAlign: e.headerAlign,
825
826
  align: e.align
826
827
  }, {
827
- default: ({ row: t, $index: n }) => e.content?.({
828
- row: t,
829
- index: n
828
+ default: ({ $index: t, row: n }) => e.content?.({
829
+ index: t,
830
+ row: n
830
831
  }),
831
832
  header: () => e.header?.({ column: { ...e } })
832
833
  }), { props: [
@@ -839,7 +840,7 @@ var Ce = /* @__PURE__ */ x({
839
840
  "type",
840
841
  "width"
841
842
  ] });
842
- return (t, n) => (k(), v(I(f), E({
843
+ return (t, n) => (A(), y(I(p), D({
843
844
  ref_key: "table",
844
845
  ref: a
845
846
  }, {
@@ -863,7 +864,7 @@ var Ce = /* @__PURE__ */ x({
863
864
  onSelectionChange: n[2] ||= (e) => r("selectionChange", e),
864
865
  onHeaderDragend: n[3] ||= (e, t, n) => r("headerDragend", e, t, n)
865
866
  }), {
866
- default: B(() => [(k(!0), ie(g, null, M(e.columns, (t) => (k(), v(I(o), E({ ref_for: !0 }, {
867
+ default: B(() => [(A(!0), re(_, null, M(e.columns, (t) => (A(), y(I(o), D({ ref_for: !0 }, {
867
868
  align: e.align ?? I(i)?.align,
868
869
  headerAlign: e.headerAlign ?? I(i)?.headerAlign,
869
870
  ...t
@@ -871,7 +872,7 @@ var Ce = /* @__PURE__ */ x({
871
872
  _: 1
872
873
  }, 16));
873
874
  }
874
- }), Ue = /* @__PURE__ */ x({
875
+ }), He = /* @__PURE__ */ S({
875
876
  __name: "TabPane",
876
877
  props: {
877
878
  closable: { type: Boolean },
@@ -884,7 +885,7 @@ var Ce = /* @__PURE__ */ x({
884
885
  return t({
885
886
  label: e.label,
886
887
  name: e.name
887
- }), A(Oe, !0), A(Ae, e.name), (t, n) => (k(), v(I(d), D(C({
888
+ }), j(De, !0), j(ke, e.name), (t, n) => (A(), y(I(f), O(w({
888
889
  label: e.label,
889
890
  name: e.name,
890
891
  disabled: e.disabled,
@@ -895,9 +896,9 @@ var Ce = /* @__PURE__ */ x({
895
896
  _: 3
896
897
  }, 16));
897
898
  }
898
- }), We = /* @__PURE__ */ x({
899
+ }), Ue = /* @__PURE__ */ S({
899
900
  __name: "Tabs",
900
- props: /* @__PURE__ */ T({
901
+ props: /* @__PURE__ */ E({
901
902
  addable: { type: Boolean },
902
903
  editable: { type: Boolean },
903
904
  tabPosition: {},
@@ -906,16 +907,16 @@ var Ce = /* @__PURE__ */ x({
906
907
  modelValue: {},
907
908
  modelModifiers: {}
908
909
  }),
909
- emits: /* @__PURE__ */ T([
910
+ emits: /* @__PURE__ */ E([
910
911
  "change",
911
912
  "remove",
912
913
  "edit"
913
914
  ], ["update:modelValue"]),
914
915
  setup(e) {
915
916
  let t = L(e, "modelValue");
916
- A(De, !0);
917
- let n = de();
918
- return A(je, n), n.on((e) => t.value = e), (n, r) => (k(), v(I(p), E({
917
+ j(Ee, !0);
918
+ let n = ue();
919
+ return j(Ae, n), n.on((e) => t.value = e), (n, r) => (A(), y(I(m), D({
919
920
  addable: e.addable,
920
921
  editable: e.editable,
921
922
  tabPosition: e.tabPosition,
@@ -926,7 +927,7 @@ var Ce = /* @__PURE__ */ x({
926
927
  onTabChange: r[1] ||= (e) => n.$emit("change", e),
927
928
  onTabRemove: r[2] ||= (e) => n.$emit("remove", e),
928
929
  onEdit: r[3] ||= (e, t) => n.$emit("edit", e, t)
929
- }), y({
930
+ }), b({
930
931
  default: B(() => [N(n.$slots, "default")]),
931
932
  _: 2
932
933
  }, ["addIcon" in n.$slots ? {
@@ -935,7 +936,7 @@ var Ce = /* @__PURE__ */ x({
935
936
  key: "0"
936
937
  } : void 0]), 1040, ["modelValue"]));
937
938
  }
938
- }), Ge = /* @__PURE__ */ x({
939
+ }), We = /* @__PURE__ */ S({
939
940
  __name: "Upload",
940
941
  props: {
941
942
  action: {},
@@ -955,7 +956,7 @@ var Ce = /* @__PURE__ */ x({
955
956
  onPreview: { type: Function }
956
957
  },
957
958
  setup(e) {
958
- let t = w(Q, void 0);
959
+ let t = T(Q, void 0);
959
960
  if (t?.required) {
960
961
  let { validator: e } = t;
961
962
  t.validator = () => e?.();
@@ -967,7 +968,7 @@ var Ce = /* @__PURE__ */ x({
967
968
  }, i = (t) => {
968
969
  e.onPreview?.(t);
969
970
  };
970
- return (t, a) => (k(), v(I(m), D(C({
971
+ return (t, a) => (A(), y(I(h), O(w({
971
972
  action: e.action,
972
973
  disabled: e.disabled,
973
974
  accept: e.accept,
@@ -980,7 +981,7 @@ var Ce = /* @__PURE__ */ x({
980
981
  onPreview: i,
981
982
  onSuccess: n,
982
983
  onRemove: r
983
- })), y({
984
+ })), b({
984
985
  default: B(() => [N(t.$slots, "default")]),
985
986
  _: 2
986
987
  }, [
@@ -1004,23 +1005,23 @@ var Ce = /* @__PURE__ */ x({
1004
1005
  } : void 0
1005
1006
  ]), 1040));
1006
1007
  }
1007
- }), Ke = /* @__PURE__ */ H({
1008
- XButton: () => Ce,
1009
- XCascader: () => Me,
1010
- XCheckbox: () => Ne,
1011
- XConfigProvider: () => Pe,
1012
- XDatePicker: () => $,
1013
- XDialog: () => Fe,
1014
- XForm: () => Ie,
1015
- XFormItem: () => Le,
1016
- XInput: () => Re,
1017
- XInputNumber: () => ze,
1018
- XPagination: () => Be,
1019
- XSelect: () => Ve,
1020
- XTabPane: () => Ue,
1021
- XTable: () => He,
1022
- XTabs: () => We,
1023
- XUpload: () => Ge
1008
+ }), Ge = /* @__PURE__ */ H({
1009
+ XButton: () => Se,
1010
+ XCascader: () => je,
1011
+ XCheckbox: () => Me,
1012
+ XConfigProvider: () => Ne,
1013
+ XDatePicker: () => Pe,
1014
+ XDialog: () => $,
1015
+ XForm: () => Fe,
1016
+ XFormItem: () => Ie,
1017
+ XInput: () => Le,
1018
+ XInputNumber: () => Re,
1019
+ XPagination: () => ze,
1020
+ XSelect: () => Be,
1021
+ XTabPane: () => He,
1022
+ XTable: () => Ve,
1023
+ XTabs: () => Ue,
1024
+ XUpload: () => We
1024
1025
  });
1025
1026
  //#endregion
1026
- export { H as A, Y as C, _e as D, U as E, q as O, ve as S, K as T, Z as _, He as a, X as b, ze as c, Ie as d, Fe as f, Me as g, Ne as h, Ue as i, ge as k, Re as l, Pe as m, Ge as n, Ve as o, $ as p, We as r, Be as s, Ke as t, Le as u, we as v, Se as w, Ce as x, Te as y };
1027
+ export { H as A, Y as C, ge as D, U as E, q as O, _e as S, K as T, Z as _, Ve as a, X as b, Re as c, Fe as d, $ as f, je as g, Me as h, He as i, he as k, Le as l, Ne as m, We as n, Be as o, Pe as p, Ue as r, ze as s, Ge as t, Ie as u, Ce as v, xe as w, Se as x, we as y };