st-comp 0.0.149 → 0.0.150

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 (124) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +5 -4
  3. package/es/Dialog.cjs +1 -1
  4. package/es/Dialog.js +24 -22
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +52 -50
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +18 -16
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +26 -24
  11. package/es/KlineNew.cjs +1 -1
  12. package/es/KlineNew.js +16 -14
  13. package/es/Pagination.cjs +1 -1
  14. package/es/Pagination.js +58 -56
  15. package/es/PasswordPrompt.cjs +1 -0
  16. package/es/PasswordPrompt.js +13 -0
  17. package/es/Table.cjs +1 -1
  18. package/es/Table.js +105 -103
  19. package/es/User.cjs +1 -1
  20. package/es/User.js +400 -378
  21. package/es/VarietySearch.cjs +1 -1
  22. package/es/VarietySearch.js +230 -228
  23. package/es/VirtualTable.cjs +3 -3
  24. package/es/VirtualTable.js +196 -194
  25. package/es/_initCloneObject-47814efa.cjs +1 -0
  26. package/es/{_initCloneObject-14b53c6f.js → _initCloneObject-e3d8a9ab.js} +21 -21
  27. package/es/base-0ca7c43a.cjs +5 -0
  28. package/es/base-19787dfb.js +303 -0
  29. package/es/{castArray-4251bbe4.js → castArray-8405000b.js} +1 -1
  30. package/es/castArray-a78ae889.cjs +1 -0
  31. package/es/{config-provider-55482a43.js → config-provider-0f6672af.js} +3 -3
  32. package/es/{config-provider-7cdfca4d.cjs → config-provider-cfbb9cd8.cjs} +1 -1
  33. package/es/{debounce-ac30be50.js → debounce-6cb0781f.js} +19 -19
  34. package/es/debounce-cf26af24.cjs +1 -0
  35. package/es/{dropdown-634b5e27.js → dropdown-17b3ef6a.js} +4 -4
  36. package/es/{dropdown-d7c59a21.cjs → dropdown-790d31ea.cjs} +1 -1
  37. package/es/{el-button-e1665717.js → el-button-0bf1d532.js} +17 -16
  38. package/es/el-button-62966947.cjs +1 -0
  39. package/es/{el-checkbox-group-492b95cc.cjs → el-checkbox-group-45247bbf.cjs} +1 -1
  40. package/es/{el-checkbox-group-e8fece80.js → el-checkbox-group-d53bc316.js} +5 -5
  41. package/es/el-empty-2ece1134.cjs +1 -0
  42. package/es/{el-empty-bacc6613.js → el-empty-bd5343a7.js} +10 -9
  43. package/es/{el-form-item-af1855f0.js → el-form-item-05c0e335.js} +52 -51
  44. package/es/el-form-item-47e255d4.cjs +12 -0
  45. package/es/{el-input-4961b99f.js → el-input-1e309239.js} +79 -78
  46. package/es/el-input-6a3805c5.cjs +1 -0
  47. package/es/{el-input-number-610fc8ba.js → el-input-number-60ebc58f.js} +57 -55
  48. package/es/el-input-number-96ff2e47.cjs +1 -0
  49. package/es/el-menu-item-4c9eb7ad.cjs +1 -0
  50. package/es/{el-menu-item-7d04c11a.js → el-menu-item-6c6236a1.js} +84 -83
  51. package/es/{el-message-c3b3ac96.js → el-message-7d927756.js} +55 -54
  52. package/es/el-message-d5ed7a4f.cjs +1 -0
  53. package/es/{el-overlay-12dd9b35.js → el-overlay-26bf0945.js} +73 -71
  54. package/es/el-overlay-41994f67.cjs +1 -0
  55. package/es/{el-popover-0aa071f2.js → el-popover-17e2e66c.js} +26 -24
  56. package/es/el-popover-7bd8a7c3.cjs +1 -0
  57. package/es/el-popper-7adbf1c6.cjs +1 -0
  58. package/es/{el-popper-50100766.js → el-popper-b6527ae2.js} +194 -193
  59. package/es/{el-scrollbar-562d0595.js → el-scrollbar-29bcab5f.js} +28 -28
  60. package/es/{el-scrollbar-d1c3e7f7.cjs → el-scrollbar-ac525239.cjs} +1 -1
  61. package/es/el-select-31f8ac8a.cjs +1 -0
  62. package/es/{el-select-9381b156.js → el-select-7395562b.js} +42 -40
  63. package/es/{el-table-column-55bffba5.js → el-table-column-47d80736.js} +329 -327
  64. package/es/el-table-column-bdc46568.cjs +14 -0
  65. package/es/{el-tag-985d9aff.js → el-tag-7414e0c7.js} +78 -77
  66. package/es/el-tag-9732314f.cjs +1 -0
  67. package/es/{index-deb8de52.cjs → index-1d85ba4b.cjs} +1 -1
  68. package/es/{index-39ec9741.js → index-273822d1.js} +21 -20
  69. package/es/index-2f958e56.cjs +3 -0
  70. package/es/index-375e8de4.cjs +5 -0
  71. package/es/{index-0cb48e01.js → index-621b092b.js} +1 -1
  72. package/es/{index-3bf8d597.cjs → index-65b4113e.cjs} +1 -1
  73. package/es/index-70372cdb.js +519 -0
  74. package/es/{use-form-common-props-f377e500.js → index-72151b24.js} +150 -312
  75. package/es/index-9e6e8d03.cjs +1 -0
  76. package/es/index-ab96bbf4.js +156 -0
  77. package/es/index-afc88a4b.cjs +1 -0
  78. package/es/{index-09e01b1d.js → index-c066fe0d.js} +32 -31
  79. package/es/index-ce3223db.cjs +1 -0
  80. package/es/{index-a902a0d9.js → index-dc22ffe4.js} +2 -2
  81. package/es/{raf-b128c7b7.js → raf-a532c514.js} +1 -1
  82. package/es/{raf-8fc301fd.cjs → raf-f46caea0.cjs} +1 -1
  83. package/es/{scroll-41224831.cjs → scroll-339681d4.cjs} +1 -1
  84. package/es/{scroll-387fcfdb.js → scroll-d787d648.js} +1 -1
  85. package/es/style.css +1 -1
  86. package/es/use-form-common-props-5ff2f51b.js +171 -0
  87. package/es/use-form-common-props-74a96df2.cjs +2 -0
  88. package/es/{vnode-7dfd4ed5.js → vnode-6a0c7411.js} +1 -1
  89. package/es/{vnode-7fbc61e1.cjs → vnode-b15eb11b.cjs} +1 -1
  90. package/es/{zh-cn-ab9a583d.cjs → zh-cn-36f34912.cjs} +1 -1
  91. package/es/{zh-cn-eb9c2820.js → zh-cn-f37255ae.js} +2 -2
  92. package/lib/bundle.js +1 -1
  93. package/lib/bundle.umd.cjs +136 -136
  94. package/lib/{index-d2de454d.js → index-d0cb2fa2.js} +14674 -14502
  95. package/lib/{python-22975586.js → python-050ba5a4.js} +1 -1
  96. package/lib/style.css +1 -1
  97. package/package.json +1 -1
  98. package/packages/PasswordPrompt/index.ts +8 -0
  99. package/packages/PasswordPrompt/index.vue +266 -0
  100. package/packages/User/index.vue +97 -58
  101. package/packages/index.ts +2 -0
  102. package/src/pages/PasswordPrompt/index.vue +12 -0
  103. package/src/router/routes.ts +5 -0
  104. package/es/_initCloneObject-441db749.cjs +0 -1
  105. package/es/base-437d17f3.js +0 -816
  106. package/es/base-ec05f348.cjs +0 -9
  107. package/es/castArray-a45823fe.cjs +0 -1
  108. package/es/debounce-b2ff12bd.cjs +0 -1
  109. package/es/el-button-196807af.cjs +0 -1
  110. package/es/el-empty-19ea04f4.cjs +0 -1
  111. package/es/el-form-item-5bdffd07.cjs +0 -12
  112. package/es/el-input-23e2bac3.cjs +0 -1
  113. package/es/el-input-number-40a81eb5.cjs +0 -1
  114. package/es/el-menu-item-78b858f2.cjs +0 -1
  115. package/es/el-message-d4df8136.cjs +0 -1
  116. package/es/el-overlay-bc0790a2.cjs +0 -1
  117. package/es/el-popover-8a77e015.cjs +0 -1
  118. package/es/el-popper-746070ba.cjs +0 -1
  119. package/es/el-select-b162dffc.cjs +0 -1
  120. package/es/el-table-column-6d761fce.cjs +0 -14
  121. package/es/el-tag-c51a6490.cjs +0 -1
  122. package/es/index-8a0b1c53.cjs +0 -3
  123. package/es/index-a387515d.cjs +0 -1
  124. package/es/use-form-common-props-1b84d8f4.cjs +0 -2
@@ -1,13 +1,14 @@
1
- import { defineComponent as z, openBlock as B, createBlock as ve, Transition as Ee, mergeProps as Te, unref as He, toHandlers as Le, withCtx as Q, renderSlot as $, computed as h, getCurrentInstance as fe, inject as X, ref as E, reactive as he, watch as J, provide as me, onMounted as be, onBeforeUnmount as Se, h as b, Fragment as ge, withDirectives as we, vShow as We, watchEffect as Re, nextTick as je, toRef as De, resolveComponent as qe, createElementBlock as Y, normalizeClass as ee, createElementVNode as pe, createTextVNode as Fe, toDisplayString as Ve } from "vue";
2
- import { a as Ge } from "./el-scrollbar-562d0595.js";
3
- import { g as Ue, h as Ze, E as ke, j as F, m as Je } from "./use-form-common-props-f377e500.js";
4
- import { E as T, t as K } from "./index-0cb48e01.js";
5
- import { u as w, _ as oe, w as $e, n as Z, r as ie, o as Ke, b as Me, t as te, i as R, p as Ce, d as ne, g as Qe, q as xe, s as Oe, v as ye } from "./base-437d17f3.js";
6
- import { E as _e } from "./el-popper-50100766.js";
1
+ import { defineComponent as z, openBlock as B, createBlock as ve, Transition as Ee, mergeProps as Te, unref as He, toHandlers as Le, withCtx as Q, renderSlot as $, computed as h, getCurrentInstance as fe, inject as X, ref as E, reactive as he, watch as J, provide as me, onMounted as be, onBeforeUnmount as Se, h as b, Fragment as ge, withDirectives as we, vShow as We, watchEffect as Re, nextTick as De, toRef as je, resolveComponent as qe, createElementBlock as Y, normalizeClass as ee, createElementVNode as pe, createTextVNode as Fe, toDisplayString as Ve } from "vue";
2
+ import { a as Ge } from "./el-scrollbar-29bcab5f.js";
3
+ import { a as Ue, b as Ze, E as ke, m as Je } from "./index-72151b24.js";
4
+ import { E as T, t as K } from "./index-621b092b.js";
5
+ import { u as w, _ as oe, w as $e, m as Z, r as ie, n as Ke, b as Me, t as te, i as R, o as Ce, d as ne, f as Qe, p as xe, q as Oe, s as ye } from "./base-19787dfb.js";
6
+ import { E as _e } from "./el-popper-b6527ae2.js";
7
7
  import { T as Xe } from "./index-657047bb.js";
8
- import { C as Ye } from "./el-tag-985d9aff.js";
8
+ import { i as F } from "./use-form-common-props-5ff2f51b.js";
9
+ import { C as Ye } from "./el-tag-7414e0c7.js";
9
10
  import { m as et } from "./typescript-7ae59c4c.js";
10
- import { f as tt } from "./vnode-7dfd4ed5.js";
11
+ import { f as tt } from "./vnode-6a0c7411.js";
11
12
  const nt = z({
12
13
  name: "ElCollapseTransition"
13
14
  }), ot = /* @__PURE__ */ z({
@@ -53,8 +54,8 @@ const nt = z({
53
54
  }, 16, ["name"]));
54
55
  }
55
56
  });
56
- var st = /* @__PURE__ */ oe(ot, [["__file", "collapse-transition.vue"]]);
57
- const at = $e(st);
57
+ var at = /* @__PURE__ */ oe(ot, [["__file", "collapse-transition.vue"]]);
58
+ const st = $e(at);
58
59
  let lt = class {
59
60
  constructor(o, n) {
60
61
  this.parent = o, this.domNode = n, this.subIndex = 0, this.subIndex = 0, this.init();
@@ -243,10 +244,10 @@ var Ie = z({
243
244
  d || te(re, "can not inject sub menu");
244
245
  const p = E({}), g = E({});
245
246
  let C;
246
- const k = E(!1), se = E(), V = E(null), O = h(() => P.value === "horizontal" && _.value ? "bottom-start" : "right-start"), A = h(() => P.value === "horizontal" && _.value || P.value === "vertical" && !u.props.collapse ? e.expandCloseIcon && e.expandOpenIcon ? S.value ? e.expandOpenIcon : e.expandCloseIcon : Ue : e.collapseCloseIcon && e.collapseOpenIcon ? S.value ? e.collapseOpenIcon : e.collapseCloseIcon : Ze), _ = h(() => d.level === 0), j = h(() => {
247
+ const k = E(!1), ae = E(), V = E(null), O = h(() => P.value === "horizontal" && _.value ? "bottom-start" : "right-start"), A = h(() => P.value === "horizontal" && _.value || P.value === "vertical" && !u.props.collapse ? e.expandCloseIcon && e.expandOpenIcon ? S.value ? e.expandOpenIcon : e.expandCloseIcon : Ue : e.collapseCloseIcon && e.collapseOpenIcon ? S.value ? e.collapseOpenIcon : e.collapseCloseIcon : Ze), _ = h(() => d.level === 0), D = h(() => {
247
248
  const l = e.teleported;
248
249
  return l === void 0 ? _.value : l;
249
- }), ae = h(() => u.props.collapse ? `${m.namespace.value}-zoom-in-left` : `${m.namespace.value}-zoom-in-top`), le = h(() => P.value === "horizontal" && _.value ? [
250
+ }), se = h(() => u.props.collapse ? `${m.namespace.value}-zoom-in-left` : `${m.namespace.value}-zoom-in-top`), le = h(() => P.value === "horizontal" && _.value ? [
250
251
  "bottom-start",
251
252
  "bottom-end",
252
253
  "top-start",
@@ -273,7 +274,7 @@ var Ie = z({
273
274
  index: e.index,
274
275
  indexPath: t,
275
276
  active: H
276
- }), D = Ne(u.props, d.level + 1), G = h(() => {
277
+ }), j = Ne(u.props, d.level + 1), G = h(() => {
277
278
  var l;
278
279
  return (l = e.popperOffset) != null ? l : u.props.popperOffset;
279
280
  }), W = h(() => {
@@ -285,11 +286,11 @@ var Ie = z({
285
286
  }), ue = h(() => {
286
287
  var l;
287
288
  return (l = e.hideTimeout) != null ? l : u.props.hideTimeout;
288
- }), s = () => {
289
+ }), a = () => {
289
290
  var l, c, M;
290
291
  return (M = (c = (l = V.value) == null ? void 0 : l.popperRef) == null ? void 0 : c.popperInstanceRef) == null ? void 0 : M.destroy();
291
- }, a = (l) => {
292
- l || s();
292
+ }, s = (l) => {
293
+ l || a();
293
294
  }, i = () => {
294
295
  u.props.menuTrigger === "hover" && u.props.mode === "horizontal" || u.props.collapse && u.props.mode === "vertical" || e.disabled || u.handleSubMenuClick({
295
296
  index: e.index,
@@ -305,7 +306,7 @@ var Ie = z({
305
306
  }
306
307
  d.mouseInChild.value = !0, C == null || C(), { stop: C } = Ce(() => {
307
308
  u.openMenu(e.index, t.value);
308
- }, c), j.value && ((M = I.value.vnode.el) == null || M.dispatchEvent(new MouseEvent("mouseenter")));
309
+ }, c), D.value && ((M = I.value.vnode.el) == null || M.dispatchEvent(new MouseEvent("mouseenter")));
309
310
  }
310
311
  }, f = (l = !1) => {
311
312
  var c;
@@ -313,9 +314,9 @@ var Ie = z({
313
314
  d.mouseInChild.value = !1;
314
315
  return;
315
316
  }
316
- C == null || C(), d.mouseInChild.value = !1, { stop: C } = Ce(() => !k.value && u.closeMenu(e.index, t.value), ue.value), j.value && l && ((c = d.handleMouseleave) == null || c.call(d, !0));
317
+ C == null || C(), d.mouseInChild.value = !1, { stop: C } = Ce(() => !k.value && u.closeMenu(e.index, t.value), ue.value), D.value && l && ((c = d.handleMouseleave) == null || c.call(d, !0));
317
318
  };
318
- J(() => u.props.collapse, (l) => a(!!l));
319
+ J(() => u.props.collapse, (l) => s(!!l));
319
320
  {
320
321
  const l = (M) => {
321
322
  g.value[M.index] = M;
@@ -358,9 +359,9 @@ var Ie = z({
358
359
  persistent: !0,
359
360
  popperClass: W.value,
360
361
  placement: O.value,
361
- teleported: j.value,
362
+ teleported: D.value,
362
363
  fallbackPlacements: le.value,
363
- transition: ae.value,
364
+ transition: se.value,
364
365
  gpuAcceleration: !1
365
366
  }, {
366
367
  content: () => {
@@ -381,7 +382,7 @@ var Ie = z({
381
382
  m.m("popup"),
382
383
  m.m(`popup-${O.value}`)
383
384
  ],
384
- style: D.value
385
+ style: j.value
385
386
  }, [(x = o.default) == null ? void 0 : x.call(o)])
386
387
  ]);
387
388
  },
@@ -392,16 +393,16 @@ var Ie = z({
392
393
  }) : b(ge, {}, [
393
394
  b("div", {
394
395
  class: y.e("title"),
395
- ref: se,
396
+ ref: ae,
396
397
  onClick: i
397
398
  }, c),
398
- b(at, {}, {
399
+ b(st, {}, {
399
400
  default: () => {
400
401
  var x;
401
402
  return we(b("ul", {
402
403
  role: "menu",
403
404
  class: [m.b(), m.m("inline")],
404
- style: D.value
405
+ style: j.value
405
406
  }, [(x = o.default) == null ? void 0 : x.call(o)]), [[We, S.value]]);
406
407
  }
407
408
  })
@@ -488,73 +489,73 @@ var ht = z({
488
489
  props: vt,
489
490
  emits: ft,
490
491
  setup(e, { emit: o, slots: n, expose: r }) {
491
- const t = fe(), I = t.appContext.config.globalProperties.$router, m = E(), y = w("menu"), u = w("sub-menu"), d = E(-1), p = E(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), g = E(e.defaultActive), C = E({}), k = E({}), se = h(() => e.mode === "horizontal" || e.mode === "vertical" && e.collapse), V = () => {
492
- const s = g.value && C.value[g.value];
493
- if (!s || e.mode === "horizontal" || e.collapse)
492
+ const t = fe(), I = t.appContext.config.globalProperties.$router, m = E(), y = w("menu"), u = w("sub-menu"), d = E(-1), p = E(e.defaultOpeneds && !e.collapse ? e.defaultOpeneds.slice(0) : []), g = E(e.defaultActive), C = E({}), k = E({}), ae = h(() => e.mode === "horizontal" || e.mode === "vertical" && e.collapse), V = () => {
493
+ const a = g.value && C.value[g.value];
494
+ if (!a || e.mode === "horizontal" || e.collapse)
494
495
  return;
495
- s.indexPath.forEach((i) => {
496
+ a.indexPath.forEach((i) => {
496
497
  const v = k.value[i];
497
498
  v && O(i, v.indexPath);
498
499
  });
499
- }, O = (s, a) => {
500
- p.value.includes(s) || (e.uniqueOpened && (p.value = p.value.filter((i) => a.includes(i))), p.value.push(s), o("open", s, a));
501
- }, A = (s) => {
502
- const a = p.value.indexOf(s);
503
- a !== -1 && p.value.splice(a, 1);
504
- }, _ = (s, a) => {
505
- A(s), o("close", s, a);
506
- }, j = ({
507
- index: s,
508
- indexPath: a
500
+ }, O = (a, s) => {
501
+ p.value.includes(a) || (e.uniqueOpened && (p.value = p.value.filter((i) => s.includes(i))), p.value.push(a), o("open", a, s));
502
+ }, A = (a) => {
503
+ const s = p.value.indexOf(a);
504
+ s !== -1 && p.value.splice(s, 1);
505
+ }, _ = (a, s) => {
506
+ A(a), o("close", a, s);
507
+ }, D = ({
508
+ index: a,
509
+ indexPath: s
509
510
  }) => {
510
- p.value.includes(s) ? _(s, a) : O(s, a);
511
- }, ae = (s) => {
511
+ p.value.includes(a) ? _(a, s) : O(a, s);
512
+ }, se = (a) => {
512
513
  (e.mode === "horizontal" || e.collapse) && (p.value = []);
513
- const { index: a, indexPath: i } = s;
514
- if (!(xe(a) || xe(i)))
514
+ const { index: s, indexPath: i } = a;
515
+ if (!(xe(s) || xe(i)))
515
516
  if (e.router && I) {
516
- const v = s.route || a, f = I.push(v).then((l) => (l || (g.value = a), l));
517
- o("select", a, i, { index: a, indexPath: i, route: v }, f);
517
+ const v = a.route || s, f = I.push(v).then((l) => (l || (g.value = s), l));
518
+ o("select", s, i, { index: s, indexPath: i, route: v }, f);
518
519
  } else
519
- g.value = a, o("select", a, i, { index: a, indexPath: i });
520
- }, le = (s) => {
521
- const a = C.value, i = a[s] || g.value && a[g.value] || a[e.defaultActive];
522
- i ? g.value = i.index : g.value = s;
523
- }, S = (s) => {
524
- const a = getComputedStyle(s), i = Number.parseInt(a.marginLeft, 10), v = Number.parseInt(a.marginRight, 10);
525
- return s.offsetWidth + i + v || 0;
520
+ g.value = s, o("select", s, i, { index: s, indexPath: i });
521
+ }, le = (a) => {
522
+ const s = C.value, i = s[a] || g.value && s[g.value] || s[e.defaultActive];
523
+ i ? g.value = i.index : g.value = a;
524
+ }, S = (a) => {
525
+ const s = getComputedStyle(a), i = Number.parseInt(s.marginLeft, 10), v = Number.parseInt(s.marginRight, 10);
526
+ return a.offsetWidth + i + v || 0;
526
527
  }, H = () => {
527
- var s, a;
528
+ var a, s;
528
529
  if (!m.value)
529
530
  return -1;
530
- const i = Array.from((a = (s = m.value) == null ? void 0 : s.childNodes) != null ? a : []).filter((q) => q.nodeName !== "#text" || q.nodeValue), v = 64, f = getComputedStyle(m.value), l = Number.parseInt(f.paddingLeft, 10), c = Number.parseInt(f.paddingRight, 10), M = m.value.clientWidth - l - c;
531
+ const i = Array.from((s = (a = m.value) == null ? void 0 : a.childNodes) != null ? s : []).filter((q) => q.nodeName !== "#text" || q.nodeValue), v = 64, f = getComputedStyle(m.value), l = Number.parseInt(f.paddingLeft, 10), c = Number.parseInt(f.paddingRight, 10), M = m.value.clientWidth - l - c;
531
532
  let x = 0, N = 0;
532
533
  return i.forEach((q, Ae) => {
533
534
  q.nodeName !== "#comment" && (x += S(q), x <= M - v && (N = Ae + 1));
534
535
  }), N === i.length ? -1 : N;
535
- }, P = (s) => k.value[s].indexPath, L = (s, a = 33.34) => {
536
+ }, P = (a) => k.value[a].indexPath, L = (a, s = 33.34) => {
536
537
  let i;
537
538
  return () => {
538
539
  i && clearTimeout(i), i = setTimeout(() => {
539
- s();
540
- }, a);
540
+ a();
541
+ }, s);
541
542
  };
542
543
  };
543
- let D = !0;
544
+ let j = !0;
544
545
  const G = () => {
545
546
  if (d.value === H())
546
547
  return;
547
- const s = () => {
548
- d.value = -1, je(() => {
548
+ const a = () => {
549
+ d.value = -1, De(() => {
549
550
  d.value = H();
550
551
  });
551
552
  };
552
- D ? s() : L(s)(), D = !1;
553
+ j ? a() : L(a)(), j = !1;
553
554
  };
554
- J(() => e.defaultActive, (s) => {
555
- C.value[s] || (g.value = ""), le(s);
556
- }), J(() => e.collapse, (s) => {
557
- s && (p.value = []);
555
+ J(() => e.defaultActive, (a) => {
556
+ C.value[a] || (g.value = ""), le(a);
557
+ }), J(() => e.collapse, (a) => {
558
+ a && (p.value = []);
558
559
  }), J(C.value, V);
559
560
  let W;
560
561
  Re(() => {
@@ -562,9 +563,9 @@ var ht = z({
562
563
  });
563
564
  const U = E(!1);
564
565
  {
565
- const s = (f) => {
566
+ const a = (f) => {
566
567
  k.value[f.index] = f;
567
- }, a = (f) => {
568
+ }, s = (f) => {
568
569
  delete k.value[f.index];
569
570
  };
570
571
  me("rootMenu", he({
@@ -573,22 +574,22 @@ var ht = z({
573
574
  items: C,
574
575
  subMenus: k,
575
576
  activeIndex: g,
576
- isMenuPopup: se,
577
+ isMenuPopup: ae,
577
578
  addMenuItem: (f) => {
578
579
  C.value[f.index] = f;
579
580
  },
580
581
  removeMenuItem: (f) => {
581
582
  delete C.value[f.index];
582
583
  },
583
- addSubMenu: s,
584
- removeSubMenu: a,
584
+ addSubMenu: a,
585
+ removeSubMenu: s,
585
586
  openMenu: O,
586
587
  closeMenu: _,
587
- handleMenuItemClick: ae,
588
- handleSubMenuClick: j
588
+ handleMenuItemClick: se,
589
+ handleSubMenuClick: D
589
590
  })), me(`subMenu:${t.uid}`, {
590
- addSubMenu: s,
591
- removeSubMenu: a,
591
+ addSubMenu: a,
592
+ removeSubMenu: s,
592
593
  mouseInChild: U,
593
594
  level: 0
594
595
  });
@@ -596,8 +597,8 @@ var ht = z({
596
597
  be(() => {
597
598
  e.mode === "horizontal" && new it(t.vnode.el, y.namespace.value);
598
599
  }), r({
599
- open: (a) => {
600
- const { indexPath: i } = k.value[a];
600
+ open: (s) => {
601
+ const { indexPath: i } = k.value[s];
601
602
  i.forEach((v) => O(v, i));
602
603
  },
603
604
  close: A,
@@ -605,8 +606,8 @@ var ht = z({
605
606
  });
606
607
  const ue = Ne(e, 0);
607
608
  return () => {
608
- var s, a;
609
- let i = (a = (s = n.default) == null ? void 0 : s.call(n)) != null ? a : [];
609
+ var a, s;
610
+ let i = (s = (a = n.default) == null ? void 0 : a.call(n)) != null ? s : [];
610
611
  const v = [];
611
612
  if (e.mode === "horizontal" && m.value) {
612
613
  const c = tt(i), M = d.value === -1 ? c : c.slice(0, d.value), x = d.value === -1 ? [] : c.slice(d.value);
@@ -666,7 +667,7 @@ const bt = Me({
666
667
  setup(e, { emit: o }) {
667
668
  const n = fe(), r = X("rootMenu"), t = w("menu"), I = w("menu-item");
668
669
  r || te(de, "can not inject root menu");
669
- const { parentMenu: m, indexPath: y } = Pe(n, De(e, "index")), u = X(`subMenu:${m.value.uid}`);
670
+ const { parentMenu: m, indexPath: y } = Pe(n, je(e, "index")), u = X(`subMenu:${m.value.uid}`);
670
671
  u || te(de, "can not inject sub menu");
671
672
  const d = h(() => e.index === r.activeIndex), p = he({
672
673
  index: e.index,
@@ -758,14 +759,14 @@ function Et(e, o, n, r, t, I) {
758
759
  ], 2);
759
760
  }
760
761
  var ze = /* @__PURE__ */ oe(xt, [["render", Et], ["__file", "menu-item-group.vue"]]);
761
- const Lt = $e(ht, {
762
+ const Wt = $e(ht, {
762
763
  MenuItem: Be,
763
764
  MenuItemGroup: ze,
764
765
  SubMenu: Ie
765
- }), Wt = ye(Be);
766
+ }), Rt = ye(Be);
766
767
  ye(ze);
767
768
  ye(Ie);
768
769
  export {
769
- Wt as E,
770
- Lt as a
770
+ Rt as E,
771
+ Wt as a
771
772
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as I, createVNode as O, Transition as j, withCtx as E, withDirectives as Z, createElementVNode as L, normalizeStyle as q, createTextVNode as re, toDisplayString as G, vShow as W, shallowReactive as ie, ref as k, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as J, render as H } from "vue";
2
- import { b as me, a as ge } from "./el-scrollbar-562d0595.js";
3
- import { b as K, d as N, u as ye, a as T, y as A, _ as Q, w as ve, j as X, p as Ce, i as R, h as _, m as he, f as be, c as V, T as Te } from "./base-437d17f3.js";
4
- import { j as we, f as P, E as U, T as Se } from "./use-form-common-props-f377e500.js";
1
+ import { defineComponent as B, computed as m, openBlock as v, createElementBlock as z, normalizeClass as C, unref as s, renderSlot as I, createVNode as O, Transition as Z, withCtx as E, withDirectives as j, createElementVNode as L, normalizeStyle as q, createTextVNode as le, toDisplayString as G, vShow as W, shallowReactive as ie, ref as k, onMounted as ue, watch as de, createBlock as b, createCommentVNode as S, resolveDynamicComponent as ce, Fragment as pe, withModifiers as fe, isVNode as J, render as H } from "vue";
2
+ import { b as me, a as ge } from "./el-scrollbar-29bcab5f.js";
3
+ import { b as K, d as N, u as ye, a as T, v as A, _ as Q, w as ve, h as X, o as Ce, i as R, g as _, l as he, e as be, c as V, E as Te } from "./base-19787dfb.js";
4
+ import { E as P } from "./index-72151b24.js";
5
+ import { i as we, f as U, T as Se } from "./use-form-common-props-5ff2f51b.js";
5
6
  import { m as Ee } from "./typescript-7ae59c4c.js";
6
- import { u as Ne } from "./index-09e01b1d.js";
7
- import { E as Be } from "./index-0cb48e01.js";
8
- import { m as c } from "./config-provider-55482a43.js";
7
+ import { u as Ne } from "./index-c066fe0d.js";
8
+ import { E as Be } from "./index-621b092b.js";
9
+ import { m as c } from "./config-provider-0f6672af.js";
9
10
  const Me = K({
10
11
  value: {
11
12
  type: [String, Number],
@@ -44,11 +45,11 @@ const Me = K({
44
45
  props: Me,
45
46
  setup(o, { expose: t }) {
46
47
  const e = o, a = ye("badge"), n = m(() => e.isDot ? "" : T(e.value) && T(e.max) ? e.max < e.value ? `${e.max}+` : `${e.value}` : `${e.value}`), p = m(() => {
47
- var l, u, f, g, y;
48
+ var r, u, f, g, y;
48
49
  return [
49
50
  {
50
51
  backgroundColor: e.color,
51
- marginRight: A(-((u = (l = e.offset) == null ? void 0 : l[0]) != null ? u : 0)),
52
+ marginRight: A(-((u = (r = e.offset) == null ? void 0 : r[0]) != null ? u : 0)),
52
53
  marginTop: A((g = (f = e.offset) == null ? void 0 : f[1]) != null ? g : 0)
53
54
  },
54
55
  (y = e.badgeStyle) != null ? y : {}
@@ -56,31 +57,31 @@ const Me = K({
56
57
  });
57
58
  return t({
58
59
  content: n
59
- }), (l, u) => (v(), z("div", {
60
+ }), (r, u) => (v(), z("div", {
60
61
  class: C(s(a).b())
61
62
  }, [
62
- I(l.$slots, "default"),
63
- O(j, {
63
+ I(r.$slots, "default"),
64
+ O(Z, {
64
65
  name: `${s(a).namespace.value}-zoom-in-center`,
65
66
  persisted: ""
66
67
  }, {
67
68
  default: E(() => [
68
- Z(L("sup", {
69
+ j(L("sup", {
69
70
  class: C([
70
71
  s(a).e("content"),
71
- s(a).em("content", l.type),
72
- s(a).is("fixed", !!l.$slots.default),
73
- s(a).is("dot", l.isDot),
74
- s(a).is("hide-zero", !l.showZero && e.value === 0),
75
- l.badgeClass
72
+ s(a).em("content", r.type),
73
+ s(a).is("fixed", !!r.$slots.default),
74
+ s(a).is("dot", r.isDot),
75
+ s(a).is("hide-zero", !r.showZero && e.value === 0),
76
+ r.badgeClass
76
77
  ]),
77
78
  style: q(s(p))
78
79
  }, [
79
- I(l.$slots, "content", { value: s(n) }, () => [
80
- re(G(s(n)), 1)
80
+ I(r.$slots, "content", { value: s(n) }, () => [
81
+ le(G(s(n)), 1)
81
82
  ])
82
83
  ], 6), [
83
- [W, !l.hidden && (s(n) || l.isDot || l.$slots.content)]
84
+ [W, !r.hidden && (s(n) || r.isDot || r.$slots.content)]
84
85
  ])
85
86
  ]),
86
87
  _: 3
@@ -188,14 +189,14 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
188
189
  props: Le,
189
190
  emits: _e,
190
191
  setup(o, { expose: t }) {
191
- const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: l, nextZIndex: u } = p, f = k(), g = k(!1), y = k(0);
192
+ const e = o, { Close: a } = Se, { ns: n, zIndex: p } = Ne("message"), { currentZIndex: r, nextZIndex: u } = p, f = k(), g = k(!1), y = k(0);
192
193
  let M;
193
194
  const se = m(() => e.type ? e.type === "error" ? "danger" : e.type : "info"), oe = m(() => {
194
- const r = e.type;
195
- return { [n.bm("icon", r)]: r && P[r] };
196
- }), D = m(() => e.icon || P[e.type] || ""), te = m(() => De(e.id)), x = m(() => xe(e.id, e.offset) + te.value), ne = m(() => y.value + x.value), ae = m(() => ({
195
+ const l = e.type;
196
+ return { [n.bm("icon", l)]: l && U[l] };
197
+ }), D = m(() => e.icon || U[e.type] || ""), te = m(() => De(e.id)), x = m(() => xe(e.id, e.offset) + te.value), ne = m(() => y.value + x.value), ae = m(() => ({
197
198
  top: `${x.value}px`,
198
- zIndex: l.value
199
+ zIndex: r.value
199
200
  }));
200
201
  function $() {
201
202
  e.duration !== 0 && ({ stop: M } = Ce(() => {
@@ -208,50 +209,50 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
208
209
  function w() {
209
210
  g.value = !1;
210
211
  }
211
- function le({ code: r }) {
212
- r === Be.esc && w();
212
+ function re({ code: l }) {
213
+ l === Be.esc && w();
213
214
  }
214
215
  return ue(() => {
215
216
  $(), u(), g.value = !0;
216
217
  }), de(() => e.repeatNum, () => {
217
218
  F(), $();
218
- }), me(document, "keydown", le), ge(f, () => {
219
+ }), me(document, "keydown", re), ge(f, () => {
219
220
  y.value = f.value.getBoundingClientRect().height;
220
221
  }), t({
221
222
  visible: g,
222
223
  bottom: ne,
223
224
  close: w
224
- }), (r, je) => (v(), b(j, {
225
+ }), (l, Ze) => (v(), b(Z, {
225
226
  name: s(n).b("fade"),
226
- onBeforeLeave: r.onClose,
227
- onAfterLeave: (Ze) => r.$emit("destroy"),
227
+ onBeforeLeave: l.onClose,
228
+ onAfterLeave: (je) => l.$emit("destroy"),
228
229
  persisted: ""
229
230
  }, {
230
231
  default: E(() => [
231
- Z(L("div", {
232
- id: r.id,
232
+ j(L("div", {
233
+ id: l.id,
233
234
  ref_key: "messageRef",
234
235
  ref: f,
235
236
  class: C([
236
237
  s(n).b(),
237
- { [s(n).m(r.type)]: r.type },
238
- s(n).is("center", r.center),
239
- s(n).is("closable", r.showClose),
240
- s(n).is("plain", r.plain),
241
- r.customClass
238
+ { [s(n).m(l.type)]: l.type },
239
+ s(n).is("center", l.center),
240
+ s(n).is("closable", l.showClose),
241
+ s(n).is("plain", l.plain),
242
+ l.customClass
242
243
  ]),
243
244
  style: q(s(ae)),
244
245
  role: "alert",
245
246
  onMouseenter: F,
246
247
  onMouseleave: $
247
248
  }, [
248
- r.repeatNum > 1 ? (v(), b(s(Ie), {
249
+ l.repeatNum > 1 ? (v(), b(s(Ie), {
249
250
  key: 0,
250
- value: r.repeatNum,
251
+ value: l.repeatNum,
251
252
  type: s(se),
252
253
  class: C(s(n).e("badge"))
253
254
  }, null, 8, ["value", "type", "class"])) : S("v-if", !0),
254
- s(D) ? (v(), b(s(U), {
255
+ s(D) ? (v(), b(s(P), {
255
256
  key: 1,
256
257
  class: C([s(n).e("icon"), s(oe)])
257
258
  }, {
@@ -260,19 +261,19 @@ const Ie = ve(ze), Y = ["success", "info", "warning", "error"], i = Ee({
260
261
  ]),
261
262
  _: 1
262
263
  }, 8, ["class"])) : S("v-if", !0),
263
- I(r.$slots, "default", {}, () => [
264
- r.dangerouslyUseHTMLString ? (v(), z(pe, { key: 1 }, [
264
+ I(l.$slots, "default", {}, () => [
265
+ l.dangerouslyUseHTMLString ? (v(), z(pe, { key: 1 }, [
265
266
  S(" Caution here, message could've been compromised, never use user's input as message "),
266
267
  L("p", {
267
268
  class: C(s(n).e("content")),
268
- innerHTML: r.message
269
+ innerHTML: l.message
269
270
  }, null, 10, ["innerHTML"])
270
271
  ], 2112)) : (v(), z("p", {
271
272
  key: 0,
272
273
  class: C(s(n).e("content"))
273
- }, G(r.message), 3))
274
+ }, G(l.message), 3))
274
275
  ]),
275
- r.showClose ? (v(), b(s(U), {
276
+ l.showClose ? (v(), b(s(P), {
276
277
  key: 2,
277
278
  class: C(s(n).e("closeBtn")),
278
279
  onClick: fe(w, ["stop"])
@@ -312,7 +313,7 @@ const ee = (o) => {
312
313
  const { handler: e } = o;
313
314
  e.close();
314
315
  }, Pe = ({ appendTo: o, ...t }, e) => {
315
- const a = `message_${Re++}`, n = t.onClose, p = document.createElement("div"), l = {
316
+ const a = `message_${Re++}`, n = t.onClose, p = document.createElement("div"), r = {
316
317
  ...t,
317
318
  id: a,
318
319
  onClose: () => {
@@ -321,8 +322,8 @@ const ee = (o) => {
321
322
  onDestroy: () => {
322
323
  H(null, p);
323
324
  }
324
- }, u = O(Ae, l, _(l.message) || J(l.message) ? {
325
- default: _(l.message) ? l.message : () => l.message
325
+ }, u = O(Ae, r, _(r.message) || J(r.message) ? {
326
+ default: _(r.message) ? r.message : () => r.message
326
327
  } : null);
327
328
  u.appContext = e || h._context, H(u, p), o.appendChild(p.firstElementChild);
328
329
  const f = u.component, y = {
@@ -344,8 +345,8 @@ const ee = (o) => {
344
345
  const e = ee(o);
345
346
  if (e.grouping && d.length) {
346
347
  const n = d.find(({ vnode: p }) => {
347
- var l;
348
- return ((l = p.props) == null ? void 0 : l.message) === e.message;
348
+ var r;
349
+ return ((r = p.props) == null ? void 0 : r.message) === e.message;
349
350
  });
350
351
  if (n)
351
352
  return n.props.repeatNum += 1, n.props.type = e.type, n.handler;
@@ -368,7 +369,7 @@ function Ue(o) {
368
369
  }
369
370
  h.closeAll = Ue;
370
371
  h._context = null;
371
- const es = Te(h, "$message");
372
+ const ss = Te(h, "$message");
372
373
  export {
373
- es as E
374
+ ss as E
374
375
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),k=require("./el-scrollbar-ac525239.cjs"),o=require("./base-0ca7c43a.cjs"),w=require("./index-afc88a4b.cjs"),h=require("./use-form-common-props-74a96df2.cjs"),_=require("./typescript-b63f8e83.cjs"),D=require("./index-2f958e56.cjs"),O=require("./index-65b4113e.cjs"),p=require("./config-provider-cfbb9cd8.cjs"),P=o.buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:o.definePropType([String,Object,Array])},offset:{type:o.definePropType(Array),default:[0,0]},badgeClass:{type:String}}),q=e.defineComponent({name:"ElBadge"}),F=e.defineComponent({...q,props:P,setup(s,{expose:t}){const n=s,a=o.useNamespace("badge"),r=e.computed(()=>n.isDot?"":o.isNumber(n.value)&&o.isNumber(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),f=e.computed(()=>{var l,c,m,g,y;return[{backgroundColor:n.color,marginRight:o.addUnit(-((c=(l=n.offset)==null?void 0:l[0])!=null?c:0)),marginTop:o.addUnit((g=(m=n.offset)==null?void 0:m[1])!=null?g:0)},(y=n.badgeStyle)!=null?y:{}]});return t({content:r}),(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.renderSlot(l.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(a).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(a).e("content"),e.unref(a).em("content",l.type),e.unref(a).is("fixed",!!l.$slots.default),e.unref(a).is("dot",l.isDot),e.unref(a).is("hide-zero",!l.showZero&&n.value===0),l.badgeClass]),style:e.normalizeStyle(e.unref(f))},[e.renderSlot(l.$slots,"content",{value:e.unref(r)},()=>[e.createTextVNode(e.toDisplayString(e.unref(r)),1)])],6),[[e.vShow,!l.hidden&&(e.unref(r)||l.isDot||l.$slots.content)]])]),_:3},8,["name"])],2))}});var H=o._export_sfc(F,[["__file","badge.vue"]]);const A=o.withInstall(H),E=["success","info","warning","error"],u=_.mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:o.isClient?document.body:void 0}),R=o.buildProps({customClass:{type:String,default:u.customClass},center:{type:Boolean,default:u.center},dangerouslyUseHTMLString:{type:Boolean,default:u.dangerouslyUseHTMLString},duration:{type:Number,default:u.duration},icon:{type:h.iconPropType,default:u.icon},id:{type:String,default:u.id},message:{type:o.definePropType([String,Object,Function]),default:u.message},onClose:{type:o.definePropType(Function),default:u.onClose},showClose:{type:Boolean,default:u.showClose},type:{type:String,values:E,default:u.type},plain:{type:Boolean,default:u.plain},offset:{type:Number,default:u.offset},zIndex:{type:Number,default:u.zIndex},grouping:{type:Boolean,default:u.grouping},repeatNum:{type:Number,default:u.repeatNum}}),U={destroy:()=>!0},d=e.shallowReactive([]),Z=s=>{const t=d.findIndex(r=>r.id===s),n=d[t];let a;return t>0&&(a=d[t-1]),{current:n,prev:a}},j=s=>{const{prev:t}=Z(s);return t?t.vm.exposed.bottom.value:0},G=(s,t)=>d.findIndex(a=>a.id===s)>0?16:t,W=e.defineComponent({name:"ElMessage"}),J=e.defineComponent({...W,props:R,emits:U,setup(s,{expose:t}){const n=s,{Close:a}=h.TypeComponents,{ns:r,zIndex:f}=D.useGlobalComponentSettings("message"),{currentZIndex:l,nextZIndex:c}=f,m=e.ref(),g=e.ref(!1),y=e.ref(0);let b;const M=e.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),$=e.computed(()=>{const i=n.type;return{[r.bm("icon",i)]:i&&h.TypeComponentsMap[i]}}),T=e.computed(()=>n.icon||h.TypeComponentsMap[n.type]||""),x=e.computed(()=>j(n.id)),N=e.computed(()=>G(n.id,n.offset)+x.value),I=e.computed(()=>y.value+N.value),V=e.computed(()=>({top:`${N.value}px`,zIndex:l.value}));function B(){n.duration!==0&&({stop:b}=o.useTimeoutFn(()=>{C()},n.duration))}function S(){b==null||b()}function C(){g.value=!1}function L({code:i}){i===O.EVENT_CODE.esc&&C()}return e.onMounted(()=>{B(),c(),g.value=!0}),e.watch(()=>n.repeatNum,()=>{S(),B()}),k.useEventListener(document,"keydown",L),k.useResizeObserver(m,()=>{y.value=m.value.getBoundingClientRect().height}),t({visible:g,bottom:I,close:C}),(i,oe)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(r).b("fade"),onBeforeLeave:i.onClose,onAfterLeave:se=>i.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:i.id,ref_key:"messageRef",ref:m,class:e.normalizeClass([e.unref(r).b(),{[e.unref(r).m(i.type)]:i.type},e.unref(r).is("center",i.center),e.unref(r).is("closable",i.showClose),e.unref(r).is("plain",i.plain),i.customClass]),style:e.normalizeStyle(e.unref(V)),role:"alert",onMouseenter:S,onMouseleave:B},[i.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(A),{key:0,value:i.repeatNum,type:e.unref(M),class:e.normalizeClass(e.unref(r).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(T)?(e.openBlock(),e.createBlock(e.unref(w.ElIcon),{key:1,class:e.normalizeClass([e.unref(r).e("icon"),e.unref($)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(T))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(i.$slots,"default",{},()=>[i.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(r).e("content")),innerHTML:i.message},null,10,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(r).e("content"))},e.toDisplayString(i.message),3))]),i.showClose?(e.openBlock(),e.createBlock(e.unref(w.ElIcon),{key:2,class:e.normalizeClass(e.unref(r).e("closeBtn")),onClick:e.withModifiers(C,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,["id"]),[[e.vShow,g.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var K=o._export_sfc(J,[["__file","message.vue"]]);let Q=1;const z=s=>{const t=!s||o.isString(s)||e.isVNode(s)||o.isFunction(s)?{message:s}:s,n={...u,...t};if(!n.appendTo)n.appendTo=document.body;else if(o.isString(n.appendTo)){let a=document.querySelector(n.appendTo);o.isElement(a)||(o.debugWarn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),a=document.body),n.appendTo=a}return o.isBoolean(p.messageConfig.grouping)&&!n.grouping&&(n.grouping=p.messageConfig.grouping),o.isNumber(p.messageConfig.duration)&&n.duration===3e3&&(n.duration=p.messageConfig.duration),o.isNumber(p.messageConfig.offset)&&n.offset===16&&(n.offset=p.messageConfig.offset),o.isBoolean(p.messageConfig.showClose)&&!n.showClose&&(n.showClose=p.messageConfig.showClose),n},X=s=>{const t=d.indexOf(s);if(t===-1)return;d.splice(t,1);const{handler:n}=s;n.close()},Y=({appendTo:s,...t},n)=>{const a=`message_${Q++}`,r=t.onClose,f=document.createElement("div"),l={...t,id:a,onClose:()=>{r==null||r(),X(y)},onDestroy:()=>{e.render(null,f)}},c=e.createVNode(K,l,o.isFunction(l.message)||e.isVNode(l.message)?{default:o.isFunction(l.message)?l.message:()=>l.message}:null);c.appContext=n||v._context,e.render(c,f),s.appendChild(f.firstElementChild);const m=c.component,y={id:a,vnode:c,vm:m,handler:{close:()=>{m.exposed.visible.value=!1}},props:c.component.props};return y},v=(s={},t)=>{if(!o.isClient)return{close:()=>{}};const n=z(s);if(n.grouping&&d.length){const r=d.find(({vnode:f})=>{var l;return((l=f.props)==null?void 0:l.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(o.isNumber(p.messageConfig.max)&&d.length>=p.messageConfig.max)return{close:()=>{}};const a=Y(n,t);return d.push(a),a.handler};E.forEach(s=>{v[s]=(t={},n)=>{const a=z(t);return v({...a,type:s},n)}});function ee(s){for(const t of d)(!s||s===t.props.type)&&t.handler.close()}v.closeAll=ee;v._context=null;const ne=o.withInstallFunction(v,"$message");exports.ElMessage=ne;