st-comp 0.0.148 → 0.0.149

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 (130) hide show
  1. package/components.d.ts +3 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +16 -14
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +576 -632
  8. package/es/Kline.cjs +1 -0
  9. package/es/Kline.js +1901 -0
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +675 -1428
  12. package/es/KlineNew.cjs +1 -3
  13. package/es/KlineNew.js +314 -2740
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +85 -85
  16. package/es/Table.cjs +1 -1
  17. package/es/Table.js +57 -55
  18. package/es/User.cjs +1 -1
  19. package/es/User.js +89 -87
  20. package/es/VarietySearch.cjs +1 -1
  21. package/es/VarietySearch.js +2393 -1
  22. package/es/VirtualTable.cjs +5 -5
  23. package/es/VirtualTable.js +59 -58
  24. package/es/{_initCloneObject-ec5c9523.js → _initCloneObject-14b53c6f.js} +24 -24
  25. package/es/_initCloneObject-441db749.cjs +1 -0
  26. package/es/{base-950bac7e.js → base-437d17f3.js} +65 -65
  27. package/es/{base-6ccc8fc2.cjs → base-ec05f348.cjs} +1 -1
  28. package/es/{castArray-c770910d.js → castArray-4251bbe4.js} +1 -1
  29. package/es/castArray-a45823fe.cjs +1 -0
  30. package/es/{config-provider-feed0e8a.js → config-provider-55482a43.js} +3 -3
  31. package/es/{config-provider-c87e277f.cjs → config-provider-7cdfca4d.cjs} +1 -1
  32. package/es/{debounce-c64fb3b5.js → debounce-ac30be50.js} +20 -20
  33. package/es/debounce-b2ff12bd.cjs +1 -0
  34. package/es/{dropdown-c9272ca3.js → dropdown-634b5e27.js} +4 -4
  35. package/es/{dropdown-6bdb3cf4.cjs → dropdown-d7c59a21.cjs} +1 -1
  36. package/es/el-button-196807af.cjs +1 -0
  37. package/es/el-button-e1665717.js +235 -0
  38. package/es/el-checkbox-group-492b95cc.cjs +1 -0
  39. package/es/el-checkbox-group-e8fece80.js +67 -0
  40. package/es/{el-empty-12eece57.cjs → el-empty-19ea04f4.cjs} +1 -1
  41. package/es/{el-empty-89a523ed.js → el-empty-bacc6613.js} +1 -1
  42. package/es/{el-form-item-ebbf096d.cjs → el-form-item-5bdffd07.cjs} +2 -2
  43. package/es/{el-form-item-55d36086.js → el-form-item-af1855f0.js} +81 -81
  44. package/es/el-input-23e2bac3.cjs +1 -0
  45. package/es/{el-input-cb528574.js → el-input-4961b99f.js} +80 -80
  46. package/es/el-input-number-40a81eb5.cjs +1 -0
  47. package/es/{el-input-number-ce30bfa8.js → el-input-number-610fc8ba.js} +26 -26
  48. package/es/el-menu-item-78b858f2.cjs +1 -0
  49. package/es/el-menu-item-7d04c11a.js +771 -0
  50. package/es/{el-message-d51d032b.js → el-message-c3b3ac96.js} +18 -18
  51. package/es/{el-message-612c2346.cjs → el-message-d4df8136.cjs} +1 -1
  52. package/es/el-overlay-12dd9b35.js +519 -0
  53. package/es/el-overlay-bc0790a2.cjs +1 -0
  54. package/es/el-popover-0aa071f2.js +138 -0
  55. package/es/el-popover-8a77e015.cjs +1 -0
  56. package/es/{el-popper-f4b01f85.js → el-popper-50100766.js} +31 -31
  57. package/es/el-popper-746070ba.cjs +1 -0
  58. package/es/{el-scrollbar-e8e93751.js → el-scrollbar-562d0595.js} +19 -19
  59. package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
  60. package/es/{el-select-e71af2e6.js → el-select-9381b156.js} +11 -11
  61. package/es/el-select-b162dffc.cjs +1 -0
  62. package/es/el-table-column-55bffba5.js +3802 -0
  63. package/es/el-table-column-6d761fce.cjs +14 -0
  64. package/es/{el-tag-d65768f4.js → el-tag-985d9aff.js} +72 -72
  65. package/es/el-tag-c51a6490.cjs +1 -0
  66. package/es/index-09e01b1d.js +81 -0
  67. package/es/{index-121e2861.js → index-0cb48e01.js} +3 -3
  68. package/es/{index-92ba4292.js → index-39ec9741.js} +17 -17
  69. package/es/{index-18416440.cjs → index-3bf8d597.cjs} +1 -1
  70. package/es/index-657047bb.js +513 -0
  71. package/es/{index-0ed86daf.cjs → index-8a0b1c53.cjs} +1 -1
  72. package/es/{index-674d2fd7.cjs → index-a387515d.cjs} +1 -1
  73. package/es/{index-709675d5.js → index-a902a0d9.js} +18 -18
  74. package/es/{index-da646183.cjs → index-deb8de52.cjs} +1 -1
  75. package/es/index-eea0bcb3.cjs +1 -0
  76. package/es/index.esm-8d9a2abe.js +2432 -0
  77. package/es/index.esm-94a95a2a.cjs +3 -0
  78. package/es/{raf-2d77cbbe.cjs → raf-8fc301fd.cjs} +1 -1
  79. package/es/{raf-f55e0daa.js → raf-b128c7b7.js} +1 -1
  80. package/es/{scroll-ca84f80a.js → scroll-387fcfdb.js} +1 -1
  81. package/es/{scroll-c8ac196e.cjs → scroll-41224831.cjs} +1 -1
  82. package/es/style.css +1 -1
  83. package/es/{use-form-common-props-c1960844.cjs → use-form-common-props-1b84d8f4.cjs} +2 -2
  84. package/es/{use-form-common-props-4d37077d.js → use-form-common-props-f377e500.js} +64 -63
  85. package/es/vnode-7dfd4ed5.js +14 -0
  86. package/es/vnode-7fbc61e1.cjs +1 -0
  87. package/es/{zh-cn-414d7f0c.cjs → zh-cn-ab9a583d.cjs} +1 -1
  88. package/es/{zh-cn-23c8e0d1.js → zh-cn-eb9c2820.js} +2 -2
  89. package/lib/bundle.js +1 -1
  90. package/lib/bundle.umd.cjs +206 -206
  91. package/lib/{index-ffeb163e.js → index-d2de454d.js} +33249 -31372
  92. package/lib/{python-0ec8f68c.js → python-22975586.js} +1 -1
  93. package/lib/style.css +1 -1
  94. package/package.json +1 -1
  95. package/packages/Kline/components/Contextmenu/index.vue +110 -0
  96. package/packages/Kline/components/Tips/index.vue +40 -0
  97. package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
  98. package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
  99. package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
  100. package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
  101. package/packages/Kline/componentsNew/Tips/index.vue +33 -0
  102. package/packages/Kline/formatKlineData.ts +109 -0
  103. package/packages/Kline/images/buy.svg +1 -0
  104. package/packages/Kline/images/pen.png +0 -0
  105. package/packages/Kline/images/sell.svg +1 -0
  106. package/packages/Kline/images/t.svg +1 -0
  107. package/packages/Kline/index.ts +16 -0
  108. package/packages/Kline/index.vue +891 -0
  109. package/packages/Kline/option.ts +539 -0
  110. package/packages/Kline/type.d.ts +219 -0
  111. package/packages/Kline/utils.ts +682 -0
  112. package/packages/index.ts +2 -0
  113. package/src/pages/Kline/index.vue +12 -0
  114. package/src/router/routes.ts +5 -0
  115. package/es/_initCloneObject-476b02ce.cjs +0 -1
  116. package/es/castArray-374558a5.cjs +0 -1
  117. package/es/debounce-a6b4f91b.cjs +0 -1
  118. package/es/el-button-b8f71c7d.cjs +0 -1
  119. package/es/el-button-d7b6eebd.js +0 -745
  120. package/es/el-input-2c7e70a3.cjs +0 -1
  121. package/es/el-input-number-8e168e83.cjs +0 -1
  122. package/es/el-overlay-07414277.js +0 -526
  123. package/es/el-overlay-fb255b83.cjs +0 -1
  124. package/es/el-popper-8360bd91.cjs +0 -1
  125. package/es/el-scrollbar-271142ad.cjs +0 -1
  126. package/es/el-select-2e71d4af.cjs +0 -1
  127. package/es/el-table-column-9fe79f05.cjs +0 -14
  128. package/es/el-table-column-dc562f14.js +0 -3933
  129. package/es/el-tag-930e7b32.cjs +0 -1
  130. package/es/index-aece600c.js +0 -81
@@ -1,11 +1,11 @@
1
- import { computed as p, getCurrentInstance as Ke, defineComponent as ze, useAttrs as je, useSlots as We, shallowRef as Z, ref as _, watch as J, nextTick as L, onMounted as Ue, toRef as Ye, openBlock as c, createElementBlock as b, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as f, Fragment as Q, renderSlot as K, createElementVNode as k, createBlock as S, withCtx as M, resolveDynamicComponent as j, mergeProps as xe, withModifiers as Xe, createVNode as qe, toDisplayString as W } from "vue";
2
- import { a as Ge } from "./el-scrollbar-e8e93751.js";
3
- import { u as Ze, i as we, e as _e, o as Je, b as Qe, f as et, V as tt, v as ot, q as nt, E as B, r as at } from "./use-form-common-props-4d37077d.js";
4
- import { i as Pe, l as Se, b as st, d as ee, v as te, q as U, G as lt, u as Ce, m as rt, N as it, _ as ut, H as Ie, w as dt } from "./base-950bac7e.js";
1
+ import { computed as p, getCurrentInstance as je, defineComponent as ze, useAttrs as Ke, useSlots as We, shallowRef as _, ref as G, watch as J, nextTick as M, onMounted as Ue, toRef as Ye, openBlock as c, createElementBlock as b, normalizeClass as m, unref as t, normalizeStyle as be, createCommentVNode as f, Fragment as Q, renderSlot as j, createElementVNode as F, createBlock as S, withCtx as R, resolveDynamicComponent as K, mergeProps as xe, withModifiers as Xe, createVNode as qe, toDisplayString as W } from "vue";
2
+ import { a as Ze } from "./el-scrollbar-562d0595.js";
3
+ import { u as _e, j as we, d as Ge, e as Je, a as Qe, b as et, V as tt, L as ot, M as nt, E as B, A as at } from "./use-form-common-props-f377e500.js";
4
+ import { j as Pe, a as Se, b as st, d as ee, i as te, f as U, W as lt, u as Ce, q as rt, U as it, _ as ut, g as Ie, w as dt } from "./base-437d17f3.js";
5
5
  import { m as ct } from "./typescript-7ae59c4c.js";
6
- import { b as pt } from "./el-popper-f4b01f85.js";
7
- import { U as oe } from "./index-121e2861.js";
8
- import { u as ft, a as vt } from "./index-709675d5.js";
6
+ import { u as pt } from "./el-popper-50100766.js";
7
+ import { U as oe } from "./index-0cb48e01.js";
8
+ import { a as ft, u as vt } from "./index-a902a0d9.js";
9
9
  const mt = () => Pe && /firefox/i.test(window.navigator.userAgent);
10
10
  let g;
11
11
  const ht = {
@@ -44,7 +44,7 @@ function Ee(n, v = 1, i) {
44
44
  var o;
45
45
  g || (g = document.createElement("textarea"), document.body.appendChild(g));
46
46
  const { paddingSize: r, borderSize: u, boxSizing: l, contextStyle: x } = gt(n);
47
- x.forEach(([y, F]) => g == null ? void 0 : g.style.setProperty(y, F)), Object.entries(ht).forEach(([y, F]) => g == null ? void 0 : g.style.setProperty(y, F, "important")), g.value = n.value || n.placeholder || "";
47
+ x.forEach(([y, N]) => g == null ? void 0 : g.style.setProperty(y, N)), Object.entries(ht).forEach(([y, N]) => g == null ? void 0 : g.style.setProperty(y, N, "important")), g.value = n.value || n.placeholder || "";
48
48
  let d = g.scrollHeight;
49
49
  const C = {};
50
50
  l === "border-box" ? d = d + u : l === "content-box" && (d = d - r), g.value = "";
@@ -64,7 +64,7 @@ const bt = st({
64
64
  type: String,
65
65
  default: void 0
66
66
  },
67
- size: Ze,
67
+ size: _e,
68
68
  disabled: Boolean,
69
69
  modelValue: {
70
70
  type: ee([
@@ -154,7 +154,7 @@ const bt = st({
154
154
  compositionupdate: (n) => n instanceof CompositionEvent,
155
155
  compositionend: (n) => n instanceof CompositionEvent
156
156
  }, wt = ["class", "style"], St = /^on[A-Z]/, Ct = (n = {}) => {
157
- const { excludeListeners: v = !1, excludeKeys: i } = n, o = p(() => ((i == null ? void 0 : i.value) || []).concat(wt)), r = Ke();
157
+ const { excludeListeners: v = !1, excludeKeys: i } = n, o = p(() => ((i == null ? void 0 : i.value) || []).concat(wt)), r = je();
158
158
  return r ? p(() => {
159
159
  var u;
160
160
  return lt(Object.entries((u = r.proxy) == null ? void 0 : u.$attrs).filter(([l]) => !o.value.includes(l) && !(v && St.test(l))));
@@ -204,11 +204,11 @@ const Et = ze({
204
204
  props: bt,
205
205
  emits: xt,
206
206
  setup(n, { expose: v, emit: i }) {
207
- const o = n, r = je(), u = Ct(), l = We(), x = p(() => [
207
+ const o = n, r = Ke(), u = Ct(), l = We(), x = p(() => [
208
208
  o.type === "textarea" ? ne.b() : a.b(),
209
- a.m(F.value),
209
+ a.m(N.value),
210
210
  a.is("disabled", E.value),
211
- a.is("exceed", Re.value),
211
+ a.is("exceed", Le.value),
212
212
  {
213
213
  [a.b("group")]: l.prepend || l.append,
214
214
  [a.m("prefix")]: l.prefix || o.prefixIcon,
@@ -219,10 +219,10 @@ const Et = ze({
219
219
  r.class
220
220
  ]), d = p(() => [
221
221
  a.e("wrapper"),
222
- a.is("focus", A.value)
223
- ]), { form: C, formItem: h } = _e(), { inputId: y } = Je(o, {
222
+ a.is("focus", H.value)
223
+ ]), { form: C, formItem: h } = Ge(), { inputId: y } = Je(o, {
224
224
  formItemContext: h
225
- }), F = Qe(), E = et(), a = Ce("input"), ne = Ce("textarea"), H = Z(), w = Z(), Y = _(!1), O = _(!1), ae = _(), $ = Z(o.inputStyle), z = p(() => H.value || w.value), { wrapperRef: Ne, isFocused: A, handleFocus: ke, handleBlur: Fe } = ft(z, {
225
+ }), N = Qe(), E = et(), a = Ce("input"), ne = Ce("textarea"), O = _(), w = _(), Y = G(!1), $ = G(!1), ae = G(), A = _(o.inputStyle), z = p(() => O.value || w.value), { wrapperRef: ke, isFocused: H, handleFocus: Fe, handleBlur: Ne } = ft(z, {
226
226
  beforeFocus() {
227
227
  return E.value;
228
228
  },
@@ -233,56 +233,56 @@ const Et = ze({
233
233
  }), se = p(() => {
234
234
  var e;
235
235
  return (e = C == null ? void 0 : C.statusIcon) != null ? e : !1;
236
- }), V = p(() => (h == null ? void 0 : h.validateState) || ""), le = p(() => V.value && tt[V.value]), Ve = p(() => O.value ? ot : nt), Te = p(() => [
236
+ }), V = p(() => (h == null ? void 0 : h.validateState) || ""), le = p(() => V.value && tt[V.value]), Ve = p(() => $.value ? ot : nt), Te = p(() => [
237
237
  r.style
238
238
  ]), re = p(() => [
239
239
  o.inputStyle,
240
- $.value,
240
+ A.value,
241
241
  { resize: o.resize }
242
- ]), I = p(() => rt(o.modelValue) ? "" : String(o.modelValue)), D = p(() => o.clearable && !E.value && !o.readonly && !!I.value && (A.value || Y.value)), X = p(() => o.showPassword && !E.value && !!I.value && (!!I.value || A.value)), P = p(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !E.value && !o.readonly && !o.showPassword), q = p(() => I.value.length), Re = p(() => !!P.value && q.value > Number(o.maxlength)), Le = p(() => !!l.suffix || !!o.suffixIcon || D.value || o.showPassword || P.value || !!V.value && se.value), [ie, ue] = It(H);
243
- Ge(w, (e) => {
244
- if (Me(), !P.value || o.resize !== "both")
242
+ ]), I = p(() => rt(o.modelValue) ? "" : String(o.modelValue)), D = p(() => o.clearable && !E.value && !o.readonly && !!I.value && (H.value || Y.value)), X = p(() => o.showPassword && !E.value && !!I.value && (!!I.value || H.value)), P = p(() => o.showWordLimit && !!o.maxlength && (o.type === "text" || o.type === "textarea") && !E.value && !o.readonly && !o.showPassword), q = p(() => I.value.length), Le = p(() => !!P.value && q.value > Number(o.maxlength)), Me = p(() => !!l.suffix || !!o.suffixIcon || D.value || o.showPassword || P.value || !!V.value && se.value), [ie, ue] = It(O);
243
+ Ze(w, (e) => {
244
+ if (Re(), !P.value || o.resize !== "both")
245
245
  return;
246
- const s = e[0], { width: N } = s.contentRect;
246
+ const s = e[0], { width: k } = s.contentRect;
247
247
  ae.value = {
248
- right: `calc(100% - ${N + 15 + 6}px)`
248
+ right: `calc(100% - ${k + 15 + 6}px)`
249
249
  };
250
250
  });
251
251
  const T = () => {
252
252
  const { type: e, autosize: s } = o;
253
253
  if (!(!Pe || e !== "textarea" || !w.value))
254
254
  if (s) {
255
- const N = Ie(s) ? s.minRows : void 0, ye = Ie(s) ? s.maxRows : void 0, ge = Ee(w.value, N, ye);
256
- $.value = {
255
+ const k = Ie(s) ? s.minRows : void 0, ye = Ie(s) ? s.maxRows : void 0, ge = Ee(w.value, k, ye);
256
+ A.value = {
257
257
  overflowY: "hidden",
258
258
  ...ge
259
- }, L(() => {
260
- w.value.offsetHeight, $.value = ge;
259
+ }, M(() => {
260
+ w.value.offsetHeight, A.value = ge;
261
261
  });
262
262
  } else
263
- $.value = {
263
+ A.value = {
264
264
  minHeight: Ee(w.value).minHeight
265
265
  };
266
- }, Me = ((e) => {
266
+ }, Re = ((e) => {
267
267
  let s = !1;
268
268
  return () => {
269
- var N;
269
+ var k;
270
270
  if (s || !o.autosize)
271
271
  return;
272
- ((N = w.value) == null ? void 0 : N.offsetParent) === null || (e(), s = !0);
272
+ ((k = w.value) == null ? void 0 : k.offsetParent) === null || (e(), s = !0);
273
273
  };
274
- })(T), R = () => {
274
+ })(T), L = () => {
275
275
  const e = z.value, s = o.formatter ? o.formatter(I.value) : I.value;
276
276
  !e || e.value === s || (e.value = s);
277
- }, G = async (e) => {
277
+ }, Z = async (e) => {
278
278
  ie();
279
279
  let { value: s } = e.target;
280
280
  if (o.formatter && (s = o.parser ? o.parser(s) : s), !ce.value) {
281
281
  if (s === I.value) {
282
- R();
282
+ L();
283
283
  return;
284
284
  }
285
- i(oe, s), i("input", s), await L(), R(), ue();
285
+ i(oe, s), i("input", s), await M(), L(), ue();
286
286
  }
287
287
  }, de = (e) => {
288
288
  i("change", e.target.value);
@@ -291,17 +291,17 @@ const Et = ze({
291
291
  handleCompositionStart: pe,
292
292
  handleCompositionUpdate: fe,
293
293
  handleCompositionEnd: ve
294
- } = vt({ emit: i, afterComposition: G }), Be = () => {
295
- ie(), O.value = !O.value, setTimeout(ue);
296
- }, He = () => {
294
+ } = vt({ emit: i, afterComposition: Z }), Be = () => {
295
+ ie(), $.value = !$.value, setTimeout(ue);
296
+ }, Oe = () => {
297
297
  var e;
298
298
  return (e = z.value) == null ? void 0 : e.focus();
299
- }, Oe = () => {
299
+ }, $e = () => {
300
300
  var e;
301
301
  return (e = z.value) == null ? void 0 : e.blur();
302
- }, $e = (e) => {
303
- Y.value = !1, i("mouseleave", e);
304
302
  }, Ae = (e) => {
303
+ Y.value = !1, i("mouseleave", e);
304
+ }, He = (e) => {
305
305
  Y.value = !0, i("mouseenter", e);
306
306
  }, me = (e) => {
307
307
  i("keydown", e);
@@ -313,20 +313,20 @@ const Et = ze({
313
313
  };
314
314
  return J(() => o.modelValue, () => {
315
315
  var e;
316
- L(() => T()), o.validateEvent && ((e = h == null ? void 0 : h.validate) == null || e.call(h, "change").catch((s) => U(s)));
317
- }), J(I, () => R()), J(() => o.type, async () => {
318
- await L(), R(), T();
316
+ M(() => T()), o.validateEvent && ((e = h == null ? void 0 : h.validate) == null || e.call(h, "change").catch((s) => U(s)));
317
+ }), J(I, () => L()), J(() => o.type, async () => {
318
+ await M(), L(), T();
319
319
  }), Ue(() => {
320
- !o.formatter && o.parser && U("ElInput", "If you set the parser, you also need to set the formatter."), R(), L(T);
320
+ !o.formatter && o.parser && U("ElInput", "If you set the parser, you also need to set the formatter."), L(), M(T);
321
321
  }), v({
322
- input: H,
322
+ input: O,
323
323
  textarea: w,
324
324
  ref: z,
325
325
  textareaStyle: re,
326
326
  autosize: Ye(o, "autosize"),
327
327
  isComposing: ce,
328
- focus: He,
329
- blur: Oe,
328
+ focus: Oe,
329
+ blur: $e,
330
330
  select: De,
331
331
  clear: he,
332
332
  resizeTextarea: T
@@ -339,8 +339,8 @@ const Et = ze({
339
339
  }
340
340
  ]),
341
341
  style: be(t(Te)),
342
- onMouseenter: Ae,
343
- onMouseleave: $e
342
+ onMouseenter: He,
343
+ onMouseleave: Ae
344
344
  }, [
345
345
  f(" input "),
346
346
  e.type !== "textarea" ? (c(), b(Q, { key: 0 }, [
@@ -349,11 +349,11 @@ const Et = ze({
349
349
  key: 0,
350
350
  class: m(t(a).be("group", "prepend"))
351
351
  }, [
352
- K(e.$slots, "prepend")
352
+ j(e.$slots, "prepend")
353
353
  ], 2)) : f("v-if", !0),
354
- k("div", {
354
+ F("div", {
355
355
  ref_key: "wrapperRef",
356
- ref: Ne,
356
+ ref: ke,
357
357
  class: m(t(d))
358
358
  }, [
359
359
  f(" prefix slot "),
@@ -361,30 +361,30 @@ const Et = ze({
361
361
  key: 0,
362
362
  class: m(t(a).e("prefix"))
363
363
  }, [
364
- k("span", {
364
+ F("span", {
365
365
  class: m(t(a).e("prefix-inner"))
366
366
  }, [
367
- K(e.$slots, "prefix"),
367
+ j(e.$slots, "prefix"),
368
368
  e.prefixIcon ? (c(), S(t(B), {
369
369
  key: 0,
370
370
  class: m(t(a).e("icon"))
371
371
  }, {
372
- default: M(() => [
373
- (c(), S(j(e.prefixIcon)))
372
+ default: R(() => [
373
+ (c(), S(K(e.prefixIcon)))
374
374
  ]),
375
375
  _: 1
376
376
  }, 8, ["class"])) : f("v-if", !0)
377
377
  ], 2)
378
378
  ], 2)) : f("v-if", !0),
379
- k("input", xe({
379
+ F("input", xe({
380
380
  id: t(y),
381
381
  ref_key: "input",
382
- ref: H,
382
+ ref: O,
383
383
  class: t(a).e("inner")
384
384
  }, t(u), {
385
385
  minlength: e.minlength,
386
386
  maxlength: e.maxlength,
387
- type: e.showPassword ? O.value ? "text" : "password" : e.type,
387
+ type: e.showPassword ? $.value ? "text" : "password" : e.type,
388
388
  disabled: t(E),
389
389
  readonly: e.readonly,
390
390
  autocomplete: e.autocomplete,
@@ -398,26 +398,26 @@ const Et = ze({
398
398
  onCompositionstart: t(pe),
399
399
  onCompositionupdate: t(fe),
400
400
  onCompositionend: t(ve),
401
- onInput: G,
401
+ onInput: Z,
402
402
  onChange: de,
403
403
  onKeydown: me
404
404
  }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
405
405
  f(" suffix slot "),
406
- t(Le) ? (c(), b("span", {
406
+ t(Me) ? (c(), b("span", {
407
407
  key: 1,
408
408
  class: m(t(a).e("suffix"))
409
409
  }, [
410
- k("span", {
410
+ F("span", {
411
411
  class: m(t(a).e("suffix-inner"))
412
412
  }, [
413
413
  !t(D) || !t(X) || !t(P) ? (c(), b(Q, { key: 0 }, [
414
- K(e.$slots, "suffix"),
414
+ j(e.$slots, "suffix"),
415
415
  e.suffixIcon ? (c(), S(t(B), {
416
416
  key: 0,
417
417
  class: m(t(a).e("icon"))
418
418
  }, {
419
- default: M(() => [
420
- (c(), S(j(e.suffixIcon)))
419
+ default: R(() => [
420
+ (c(), S(K(e.suffixIcon)))
421
421
  ]),
422
422
  _: 1
423
423
  }, 8, ["class"])) : f("v-if", !0)
@@ -428,7 +428,7 @@ const Et = ze({
428
428
  onMousedown: Xe(t(it), ["prevent"]),
429
429
  onClick: he
430
430
  }, {
431
- default: M(() => [
431
+ default: R(() => [
432
432
  qe(t(at))
433
433
  ]),
434
434
  _: 1
@@ -438,8 +438,8 @@ const Et = ze({
438
438
  class: m([t(a).e("icon"), t(a).e("password")]),
439
439
  onClick: Be
440
440
  }, {
441
- default: M(() => [
442
- (c(), S(j(t(Ve))))
441
+ default: R(() => [
442
+ (c(), S(K(t(Ve))))
443
443
  ]),
444
444
  _: 1
445
445
  }, 8, ["class"])) : f("v-if", !0),
@@ -447,7 +447,7 @@ const Et = ze({
447
447
  key: 3,
448
448
  class: m(t(a).e("count"))
449
449
  }, [
450
- k("span", {
450
+ F("span", {
451
451
  class: m(t(a).e("count-inner"))
452
452
  }, W(t(q)) + " / " + W(e.maxlength), 3)
453
453
  ], 2)) : f("v-if", !0),
@@ -459,8 +459,8 @@ const Et = ze({
459
459
  t(a).is("loading", t(V) === "validating")
460
460
  ])
461
461
  }, {
462
- default: M(() => [
463
- (c(), S(j(t(le))))
462
+ default: R(() => [
463
+ (c(), S(K(t(le))))
464
464
  ]),
465
465
  _: 1
466
466
  }, 8, ["class"])) : f("v-if", !0)
@@ -472,15 +472,15 @@ const Et = ze({
472
472
  key: 1,
473
473
  class: m(t(a).be("group", "append"))
474
474
  }, [
475
- K(e.$slots, "append")
475
+ j(e.$slots, "append")
476
476
  ], 2)) : f("v-if", !0)
477
477
  ], 64)) : (c(), b(Q, { key: 1 }, [
478
478
  f(" textarea "),
479
- k("textarea", xe({
479
+ F("textarea", xe({
480
480
  id: t(y),
481
481
  ref_key: "textarea",
482
482
  ref: w,
483
- class: [t(ne).e("inner"), t(a).is("focus", t(A))]
483
+ class: [t(ne).e("inner"), t(a).is("focus", t(H))]
484
484
  }, t(u), {
485
485
  minlength: e.minlength,
486
486
  maxlength: e.maxlength,
@@ -498,9 +498,9 @@ const Et = ze({
498
498
  onCompositionstart: t(pe),
499
499
  onCompositionupdate: t(fe),
500
500
  onCompositionend: t(ve),
501
- onInput: G,
502
- onFocus: t(ke),
503
- onBlur: t(Fe),
501
+ onInput: Z,
502
+ onFocus: t(Fe),
503
+ onBlur: t(Ne),
504
504
  onChange: de,
505
505
  onKeydown: me
506
506
  }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
@@ -514,8 +514,8 @@ const Et = ze({
514
514
  }
515
515
  });
516
516
  var Pt = /* @__PURE__ */ ut(zt, [["__file", "input.vue"]]);
517
- const Ht = dt(Pt);
517
+ const Ot = dt(Pt);
518
518
  export {
519
- Ht as E,
519
+ Ot as E,
520
520
  mt as i
521
521
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),x=require("./el-input-23e2bac3.cjs"),N=require("./use-form-common-props-1b84d8f4.cjs"),u=require("./base-ec05f348.cjs"),G=require("./el-popper-746070ba.cjs"),p=require("./index-3bf8d597.cjs"),Y=100,H=600,U={beforeMount(o,E){const c=E.value,{interval:l=Y,delay:h=H}=u.isFunction(c)?{}:c;let d,m;const i=()=>u.isFunction(c)?c():c.handler(),v=()=>{m&&(clearTimeout(m),m=void 0),d&&(clearInterval(d),d=void 0)};o.addEventListener("mousedown",I=>{I.button===0&&(v(),i(),document.addEventListener("mouseup",()=>v(),{once:!0}),m=setTimeout(()=>{d=setInterval(()=>{i()},l)},h))})}},j=u.buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:N.useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:o=>o===null||u.isNumber(o)||["min","max"].includes(o),default:null},name:String,placeholder:String,precision:{type:Number,validator:o=>o>=0&&o===Number.parseInt(`${o}`,10)},validateEvent:{type:Boolean,default:!0},...G.useAriaProps(["ariaLabel"])}),J={[p.CHANGE_EVENT]:(o,E)=>E!==o,blur:o=>o instanceof FocusEvent,focus:o=>o instanceof FocusEvent,[p.INPUT_EVENT]:o=>u.isNumber(o)||u.isNil(o),[p.UPDATE_MODEL_EVENT]:o=>u.isNumber(o)||u.isNil(o)},Q=e.defineComponent({name:"ElInputNumber"}),X=e.defineComponent({...Q,props:j,emits:J,setup(o,{expose:E,emit:c}){const l=o,{t:h}=u.useLocale(),d=u.useNamespace("input-number"),m=e.ref(),i=e.reactive({currentValue:l.modelValue,userInput:null}),{formItem:v}=N.useFormItem(),I=e.computed(()=>u.isNumber(l.modelValue)&&l.modelValue<=l.min),D=e.computed(()=>u.isNumber(l.modelValue)&&l.modelValue>=l.max),L=e.computed(()=>{const n=C(l.step);return u.isUndefined(l.precision)?Math.max(C(l.modelValue),n):(n>l.precision&&u.debugWarn("InputNumber","precision should not be less than the decimal places of step"),l.precision)}),T=e.computed(()=>l.controls&&l.controlsPosition==="right"),B=N.useFormSize(),V=N.useFormDisabled(),g=e.computed(()=>{if(i.userInput!==null)return i.userInput;let n=i.currentValue;if(u.isNil(n))return"";if(u.isNumber(n)){if(Number.isNaN(n))return"";u.isUndefined(l.precision)||(n=n.toFixed(l.precision))}return n}),P=(n,t)=>{if(u.isUndefined(t)&&(t=L.value),t===0)return Math.round(n);let r=String(n);const a=r.indexOf(".");if(a===-1||!r.replace(".","").split("")[a+t])return n;const w=r.length;return r.charAt(w-1)==="5"&&(r=`${r.slice(0,Math.max(0,w-1))}6`),Number.parseFloat(Number(r).toFixed(t))},C=n=>{if(u.isNil(n))return 0;const t=n.toString(),r=t.indexOf(".");let a=0;return r!==-1&&(a=t.length-r-1),a},F=(n,t=1)=>u.isNumber(n)?P(n+l.step*t):i.currentValue,A=()=>{if(l.readonly||V.value||D.value)return;const n=Number(g.value)||0,t=F(n);y(t),c(p.INPUT_EVENT,i.currentValue),k()},S=()=>{if(l.readonly||V.value||I.value)return;const n=Number(g.value)||0,t=F(n,-1);y(t),c(p.INPUT_EVENT,i.currentValue),k()},M=(n,t)=>{const{max:r,min:a,step:s,precision:b,stepStrictly:w,valueOnClear:_}=l;r<a&&u.throwError("InputNumber","min should not be greater than max.");let f=Number(n);if(u.isNil(n)||Number.isNaN(f))return null;if(n===""){if(_===null)return null;f=u.isString(_)?{min:a,max:r}[_]:_}return w&&(f=P(Math.round(f/s)*s,b),f!==n&&t&&c(p.UPDATE_MODEL_EVENT,f)),u.isUndefined(b)||(f=P(f,b)),(f>r||f<a)&&(f=f>r?r:a,t&&c(p.UPDATE_MODEL_EVENT,f)),f},y=(n,t=!0)=>{var r;const a=i.currentValue,s=M(n);if(!t){c(p.UPDATE_MODEL_EVENT,s);return}a===s&&n||(i.userInput=null,c(p.UPDATE_MODEL_EVENT,s),a!==s&&c(p.CHANGE_EVENT,s,a),l.validateEvent&&((r=v==null?void 0:v.validate)==null||r.call(v,"change").catch(b=>u.debugWarn(b))),i.currentValue=s)},O=n=>{i.userInput=n;const t=n===""?null:Number(n);c(p.INPUT_EVENT,t),y(t,!1)},K=n=>{const t=n!==""?Number(n):"";(u.isNumber(t)&&!Number.isNaN(t)||n==="")&&y(t),k(),i.userInput=null},z=()=>{var n,t;(t=(n=m.value)==null?void 0:n.focus)==null||t.call(n)},$=()=>{var n,t;(t=(n=m.value)==null?void 0:n.blur)==null||t.call(n)},q=n=>{c("focus",n)},R=n=>{var t,r;i.userInput=null,x.isFirefox()&&i.currentValue===null&&((t=m.value)!=null&&t.input)&&(m.value.input.value=""),c("blur",n),l.validateEvent&&((r=v==null?void 0:v.validate)==null||r.call(v,"blur").catch(a=>u.debugWarn(a)))},k=()=>{i.currentValue!==l.modelValue&&(i.currentValue=l.modelValue)},W=n=>{document.activeElement===n.target&&n.preventDefault()};return e.watch(()=>l.modelValue,(n,t)=>{const r=M(n,!0);i.userInput===null&&r!==t&&(i.currentValue=r)},{immediate:!0}),e.onMounted(()=>{var n;const{min:t,max:r,modelValue:a}=l,s=(n=m.value)==null?void 0:n.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(r)?s.setAttribute("aria-valuemax",String(r)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),s.setAttribute("aria-disabled",String(V.value)),!u.isNumber(a)&&a!=null){let b=Number(a);Number.isNaN(b)&&(b=null),c(p.UPDATE_MODEL_EVENT,b)}s.addEventListener("wheel",W,{passive:!1})}),e.onUpdated(()=>{var n,t;const r=(n=m.value)==null?void 0:n.input;r==null||r.setAttribute("aria-valuenow",`${(t=i.currentValue)!=null?t:""}`)}),E({focus:z,blur:$}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(d).b(),e.unref(d).m(e.unref(B)),e.unref(d).is("disabled",e.unref(V)),e.unref(d).is("without-controls",!n.controls),e.unref(d).is("controls-right",e.unref(T))]),onDragstart:e.withModifiers(()=>{},["prevent"])},[n.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:0,role:"button","aria-label":e.unref(h)("el.inputNumber.decrease"),class:e.normalizeClass([e.unref(d).e("decrease"),e.unref(d).is("disabled",e.unref(I))]),onKeydown:e.withKeys(S,["enter"])},[e.renderSlot(n.$slots,"decrease-icon",{},()=>[e.createVNode(e.unref(N.ElIcon),null,{default:e.withCtx(()=>[e.unref(T)?(e.openBlock(),e.createBlock(e.unref(N.arrow_down_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.minus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[e.unref(U),S]]):e.createCommentVNode("v-if",!0),n.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,role:"button","aria-label":e.unref(h)("el.inputNumber.increase"),class:e.normalizeClass([e.unref(d).e("increase"),e.unref(d).is("disabled",e.unref(D))]),onKeydown:e.withKeys(A,["enter"])},[e.renderSlot(n.$slots,"increase-icon",{},()=>[e.createVNode(e.unref(N.ElIcon),null,{default:e.withCtx(()=>[e.unref(T)?(e.openBlock(),e.createBlock(e.unref(N.arrow_up_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.plus_default),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[e.unref(U),A]]):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(x.ElInput),{id:n.id,ref_key:"input",ref:m,type:"number",step:n.step,"model-value":e.unref(g),placeholder:n.placeholder,readonly:n.readonly,disabled:e.unref(V),size:e.unref(B),max:n.max,min:n.min,name:n.name,"aria-label":n.ariaLabel,"validate-event":!1,onKeydown:[e.withKeys(e.withModifiers(A,["prevent"]),["up"]),e.withKeys(e.withModifiers(S,["prevent"]),["down"])],onBlur:R,onFocus:q,onInput:O,onChange:K},e.createSlots({_:2},[n.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"prefix")])}:void 0,n.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var Z=u._export_sfc(X,[["__file","input-number.vue"]]);const ee=u.withInstall(Z);exports.ElInputNumber=ee;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ee, ref as ce, reactive as de, computed as I, watch as me, onMounted as pe, onUpdated as fe, openBlock as v, createElementBlock as z, normalizeClass as K, unref as r, withModifiers as O, withDirectives as j, withKeys as A, renderSlot as P, createVNode as R, withCtx as F, createBlock as T, createCommentVNode as J, createSlots as be } from "vue";
2
- import { E as ve, i as Ne } from "./el-input-cb528574.js";
3
- import { u as Ve, e as he, b as Ie, f as Ee, E as Q, g as ye, m as ge, h as we, p as _e } from "./use-form-common-props-4d37077d.js";
4
- import { e as X, b as Se, l as b, m as E, o as Ae, u as Pe, p as C, q as U, _ as Fe, s as Te, v as Ce, w as xe } from "./base-950bac7e.js";
5
- import { b as ke } from "./el-popper-f4b01f85.js";
6
- import { C as ne, I as x, U as N } from "./index-121e2861.js";
2
+ import { E as ve, i as Ne } from "./el-input-4961b99f.js";
3
+ import { u as Ve, d as he, a as Ie, b as ye, E as Q, g as Ee, x as ge, y as we, v as _e } from "./use-form-common-props-f377e500.js";
4
+ import { h as X, b as Se, a as b, q as y, x as Ae, u as Pe, l as x, f as U, _ as Fe, t as Te, i as xe, w as Ce } from "./base-437d17f3.js";
5
+ import { u as ke } from "./el-popper-50100766.js";
6
+ import { C as ne, I as C, U as N } from "./index-0cb48e01.js";
7
7
  const De = 100, Be = 600, Z = {
8
8
  beforeMount(u, V) {
9
- const i = V.value, { interval: a = De, delay: y = Be } = X(i) ? {} : i;
9
+ const i = V.value, { interval: a = De, delay: E = Be } = X(i) ? {} : i;
10
10
  let c, m;
11
11
  const l = () => X(i) ? i() : i.handler(), f = () => {
12
12
  m && (clearTimeout(m), m = void 0), c && (clearInterval(c), c = void 0);
@@ -18,7 +18,7 @@ const De = 100, Be = 600, Z = {
18
18
  c = setInterval(() => {
19
19
  l();
20
20
  }, a);
21
- }, y));
21
+ }, E));
22
22
  });
23
23
  }
24
24
  }, Le = Se({
@@ -72,8 +72,8 @@ const De = 100, Be = 600, Z = {
72
72
  [ne]: (u, V) => V !== u,
73
73
  blur: (u) => u instanceof FocusEvent,
74
74
  focus: (u) => u instanceof FocusEvent,
75
- [x]: (u) => b(u) || E(u),
76
- [N]: (u) => b(u) || E(u)
75
+ [C]: (u) => b(u) || y(u),
76
+ [N]: (u) => b(u) || y(u)
77
77
  }, $e = ee({
78
78
  name: "ElInputNumber"
79
79
  }), ze = /* @__PURE__ */ ee({
@@ -81,26 +81,26 @@ const De = 100, Be = 600, Z = {
81
81
  props: Le,
82
82
  emits: Me,
83
83
  setup(u, { expose: V, emit: i }) {
84
- const a = u, { t: y } = Ae(), c = Pe("input-number"), m = ce(), l = de({
84
+ const a = u, { t: E } = Ae(), c = Pe("input-number"), m = ce(), l = de({
85
85
  currentValue: a.modelValue,
86
86
  userInput: null
87
87
  }), { formItem: f } = he(), g = I(() => b(a.modelValue) && a.modelValue <= a.min), Y = I(() => b(a.modelValue) && a.modelValue >= a.max), te = I(() => {
88
88
  const e = W(a.step);
89
- return C(a.precision) ? Math.max(W(a.modelValue), e) : (e > a.precision && U("InputNumber", "precision should not be less than the decimal places of step"), a.precision);
90
- }), k = I(() => a.controls && a.controlsPosition === "right"), G = Ie(), h = Ee(), D = I(() => {
89
+ return x(a.precision) ? Math.max(W(a.modelValue), e) : (e > a.precision && U("InputNumber", "precision should not be less than the decimal places of step"), a.precision);
90
+ }), k = I(() => a.controls && a.controlsPosition === "right"), G = Ie(), h = ye(), D = I(() => {
91
91
  if (l.userInput !== null)
92
92
  return l.userInput;
93
93
  let e = l.currentValue;
94
- if (E(e))
94
+ if (y(e))
95
95
  return "";
96
96
  if (b(e)) {
97
97
  if (Number.isNaN(e))
98
98
  return "";
99
- C(a.precision) || (e = e.toFixed(a.precision));
99
+ x(a.precision) || (e = e.toFixed(a.precision));
100
100
  }
101
101
  return e;
102
102
  }), B = (e, n) => {
103
- if (C(n) && (n = te.value), n === 0)
103
+ if (x(n) && (n = te.value), n === 0)
104
104
  return Math.round(e);
105
105
  let t = String(e);
106
106
  const o = t.indexOf(".");
@@ -109,7 +109,7 @@ const De = 100, Be = 600, Z = {
109
109
  const _ = t.length;
110
110
  return t.charAt(_ - 1) === "5" && (t = `${t.slice(0, Math.max(0, _ - 1))}6`), Number.parseFloat(Number(t).toFixed(n));
111
111
  }, W = (e) => {
112
- if (E(e))
112
+ if (y(e))
113
113
  return 0;
114
114
  const n = e.toString(), t = n.indexOf(".");
115
115
  let o = 0;
@@ -118,24 +118,24 @@ const De = 100, Be = 600, Z = {
118
118
  if (a.readonly || h.value || Y.value)
119
119
  return;
120
120
  const e = Number(D.value) || 0, n = q(e);
121
- w(n), i(x, l.currentValue), $();
121
+ w(n), i(C, l.currentValue), $();
122
122
  }, M = () => {
123
123
  if (a.readonly || h.value || g.value)
124
124
  return;
125
125
  const e = Number(D.value) || 0, n = q(e, -1);
126
- w(n), i(x, l.currentValue), $();
126
+ w(n), i(C, l.currentValue), $();
127
127
  }, H = (e, n) => {
128
128
  const { max: t, min: o, step: s, precision: p, stepStrictly: _, valueOnClear: S } = a;
129
129
  t < o && Te("InputNumber", "min should not be greater than max.");
130
130
  let d = Number(e);
131
- if (E(e) || Number.isNaN(d))
131
+ if (y(e) || Number.isNaN(d))
132
132
  return null;
133
133
  if (e === "") {
134
134
  if (S === null)
135
135
  return null;
136
- d = Ce(S) ? { min: o, max: t }[S] : S;
136
+ d = xe(S) ? { min: o, max: t }[S] : S;
137
137
  }
138
- return _ && (d = B(Math.round(d / s) * s, p), d !== e && n && i(N, d)), C(p) || (d = B(d, p)), (d > t || d < o) && (d = d > t ? t : o, n && i(N, d)), d;
138
+ return _ && (d = B(Math.round(d / s) * s, p), d !== e && n && i(N, d)), x(p) || (d = B(d, p)), (d > t || d < o) && (d = d > t ? t : o, n && i(N, d)), d;
139
139
  }, w = (e, n = !0) => {
140
140
  var t;
141
141
  const o = l.currentValue, s = H(e);
@@ -147,7 +147,7 @@ const De = 100, Be = 600, Z = {
147
147
  }, re = (e) => {
148
148
  l.userInput = e;
149
149
  const n = e === "" ? null : Number(e);
150
- i(x, n), w(n, !1);
150
+ i(C, n), w(n, !1);
151
151
  }, ae = (e) => {
152
152
  const n = e !== "" ? Number(e) : "";
153
153
  (b(n) && !Number.isNaN(n) || e === "") && w(n), $(), l.userInput = null;
@@ -199,14 +199,14 @@ const De = 100, Be = 600, Z = {
199
199
  e.controls ? j((v(), z("span", {
200
200
  key: 0,
201
201
  role: "button",
202
- "aria-label": r(y)("el.inputNumber.decrease"),
202
+ "aria-label": r(E)("el.inputNumber.decrease"),
203
203
  class: K([r(c).e("decrease"), r(c).is("disabled", r(g))]),
204
204
  onKeydown: A(M, ["enter"])
205
205
  }, [
206
206
  P(e.$slots, "decrease-icon", {}, () => [
207
207
  R(r(Q), null, {
208
208
  default: F(() => [
209
- r(k) ? (v(), T(r(ye), { key: 0 })) : (v(), T(r(ge), { key: 1 }))
209
+ r(k) ? (v(), T(r(Ee), { key: 0 })) : (v(), T(r(ge), { key: 1 }))
210
210
  ]),
211
211
  _: 1
212
212
  })
@@ -217,7 +217,7 @@ const De = 100, Be = 600, Z = {
217
217
  e.controls ? j((v(), z("span", {
218
218
  key: 1,
219
219
  role: "button",
220
- "aria-label": r(y)("el.inputNumber.increase"),
220
+ "aria-label": r(E)("el.inputNumber.increase"),
221
221
  class: K([r(c).e("increase"), r(c).is("disabled", r(Y))]),
222
222
  onKeydown: A(L, ["enter"])
223
223
  }, [
@@ -276,7 +276,7 @@ const De = 100, Be = 600, Z = {
276
276
  }
277
277
  });
278
278
  var Ke = /* @__PURE__ */ Fe(ze, [["__file", "input-number.vue"]]);
279
- const qe = xe(Ke);
279
+ const qe = Ce(Ke);
280
280
  export {
281
281
  qe as E
282
282
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),ne=require("./el-scrollbar-d1c3e7f7.cjs"),S=require("./use-form-common-props-1b84d8f4.cjs"),y=require("./index-3bf8d597.cjs"),l=require("./base-ec05f348.cjs"),K=require("./el-popper-746070ba.cjs"),oe=require("./index-eea0bcb3.cjs"),se=require("./el-tag-c51a6490.cjs"),le=require("./typescript-b63f8e83.cjs"),ae=require("./vnode-7fbc61e1.cjs"),ue=e.defineComponent({name:"ElCollapseTransition"}),re=e.defineComponent({...ue,setup(t){const s=l.useNamespace("collapse-transition"),o=n=>{n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom},d={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.height&&(n.dataset.elExistsHeight=n.style.height),n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){requestAnimationFrame(()=>{n.dataset.oldOverflow=n.style.overflow,n.dataset.elExistsHeight?n.style.maxHeight=n.dataset.elExistsHeight:n.scrollHeight!==0?n.style.maxHeight=`${n.scrollHeight}px`:n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom,n.style.overflow="hidden"})},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},enterCancelled(n){o(n)},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){o(n)},leaveCancelled(n){o(n)}};return(n,C)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:e.unref(s).b()},e.toHandlers(d)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["name"]))}});var ie=l._export_sfc(re,[["__file","collapse-transition.vue"]]);const ce=l.withInstall(ie);let de=class{constructor(s,o){this.parent=s,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(s){s===this.subMenuItems.length?s=0:s<0&&(s=this.subMenuItems.length-1),this.subMenuItems[s].focus(),this.subIndex=s}addListeners(){const s=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",d=>{let n=!1;switch(d.code){case y.EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),n=!0;break}case y.EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),n=!0;break}case y.EVENT_CODE.tab:{y.triggerEvent(s,"mouseleave");break}case y.EVENT_CODE.enter:case y.EVENT_CODE.numpadEnter:case y.EVENT_CODE.space:{n=!0,d.currentTarget.click();break}}return n&&(d.preventDefault(),d.stopPropagation()),!1})})}},pe=class{constructor(s,o){this.domNode=s,this.submenu=null,this.submenu=null,this.init(o)}init(s){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${s}-menu`);o&&(this.submenu=new de(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",s=>{let o=!1;switch(s.code){case y.EVENT_CODE.down:{y.triggerEvent(s.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case y.EVENT_CODE.up:{y.triggerEvent(s.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case y.EVENT_CODE.tab:{y.triggerEvent(s.currentTarget,"mouseleave");break}case y.EVENT_CODE.enter:case y.EVENT_CODE.numpadEnter:case y.EVENT_CODE.space:{o=!0,s.currentTarget.click();break}}o&&s.preventDefault()})}},me=class{constructor(s,o){this.domNode=s,this.init(o)}init(s){const o=this.domNode.childNodes;Array.from(o).forEach(d=>{d.nodeType===1&&new pe(d,s)})}};const ve=e.defineComponent({name:"ElMenuCollapseTransition",setup(){const t=l.useNamespace("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,d){l.addClass(o,`${t.namespace.value}-opacity-transition`),o.style.opacity="1",d()},onAfterEnter(o){l.removeClass(o,`${t.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),l.hasClass(o,t.m("collapse"))?(l.removeClass(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),l.addClass(o,t.m("collapse"))):(l.addClass(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),l.removeClass(o,t.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){l.addClass(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function fe(t,s,o,d,n,C){return e.openBlock(),e.createBlock(e.Transition,e.mergeProps({mode:"out-in"},t.listeners),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}var he=l._export_sfc(ve,[["render",fe],["__file","menu-collapse-transition.vue"]]);function Q(t,s){const o=e.computed(()=>{let n=t.parent;const C=[s.value];for(;n.type.name!=="ElMenu";)n.props.index&&C.unshift(n.props.index),n=n.parent;return C});return{parentMenu:e.computed(()=>{let n=t.parent;for(;n&&!["ElMenu","ElSubMenu"].includes(n.type.name);)n=n.parent;return n}),indexPath:o}}function ge(t){return e.computed(()=>{const o=t.backgroundColor;return o?new oe.TinyColor(o).shade(20).toString():""})}const X=(t,s)=>{const o=l.useNamespace("menu");return e.computed(()=>o.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":ge(t).value||"","active-color":t.activeTextColor||"",level:`${s}`}))},be=l.buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:S.iconPropType},expandOpenIcon:{type:S.iconPropType},collapseCloseIcon:{type:S.iconPropType},collapseOpenIcon:{type:S.iconPropType}}),G="ElSubMenu";var J=e.defineComponent({name:G,props:be,setup(t,{slots:s,expose:o}){const d=e.getCurrentInstance(),{indexPath:n,parentMenu:C}=Q(d,e.computed(()=>t.index)),v=l.useNamespace("menu"),E=l.useNamespace("sub-menu"),i=e.inject("rootMenu");i||l.throwError(G,"can not inject root menu");const m=e.inject(`subMenu:${C.value.uid}`);m||l.throwError(G,"can not inject sub menu");const f=e.ref({}),b=e.ref({});let I;const N=e.ref(!1),j=e.ref(),H=e.ref(null),w=e.computed(()=>k.value==="horizontal"&&_.value?"bottom-start":"right-start"),P=e.computed(()=>k.value==="horizontal"&&_.value||k.value==="vertical"&&!i.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?x.value?t.expandOpenIcon:t.expandCloseIcon:S.arrow_down_default:t.collapseCloseIcon&&t.collapseOpenIcon?x.value?t.collapseOpenIcon:t.collapseCloseIcon:S.arrow_right_default),_=e.computed(()=>m.level===0),D=e.computed(()=>{const r=t.teleported;return r===void 0?_.value:r}),W=e.computed(()=>i.props.collapse?`${v.namespace.value}-zoom-in-left`:`${v.namespace.value}-zoom-in-top`),F=e.computed(()=>k.value==="horizontal"&&_.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),x=e.computed(()=>i.openedMenus.includes(t.index)),$=e.computed(()=>{let r=!1;return Object.values(f.value).forEach(p=>{p.active&&(r=!0)}),Object.values(b.value).forEach(p=>{p.active&&(r=!0)}),r}),k=e.computed(()=>i.props.mode),B=e.reactive({index:t.index,indexPath:n,active:$}),A=X(i.props,m.level+1),q=e.computed(()=>{var r;return(r=t.popperOffset)!=null?r:i.props.popperOffset}),z=e.computed(()=>{var r;return(r=t.popperClass)!=null?r:i.props.popperClass}),L=e.computed(()=>{var r;return(r=t.showTimeout)!=null?r:i.props.showTimeout}),R=e.computed(()=>{var r;return(r=t.hideTimeout)!=null?r:i.props.hideTimeout}),a=()=>{var r,p,M;return(M=(p=(r=H.value)==null?void 0:r.popperRef)==null?void 0:p.popperInstanceRef)==null?void 0:M.destroy()},u=r=>{r||a()},c=()=>{i.props.menuTrigger==="hover"&&i.props.mode==="horizontal"||i.props.collapse&&i.props.mode==="vertical"||t.disabled||i.handleSubMenuClick({index:t.index,indexPath:n.value,active:$.value})},h=(r,p=L.value)=>{var M;if(r.type!=="focus"){if(i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"||t.disabled){m.mouseInChild.value=!0;return}m.mouseInChild.value=!0,I==null||I(),{stop:I}=l.useTimeoutFn(()=>{i.openMenu(t.index,n.value)},p),D.value&&((M=C.value.vnode.el)==null||M.dispatchEvent(new MouseEvent("mouseenter")))}},g=(r=!1)=>{var p;if(i.props.menuTrigger==="click"&&i.props.mode==="horizontal"||!i.props.collapse&&i.props.mode==="vertical"){m.mouseInChild.value=!1;return}I==null||I(),m.mouseInChild.value=!1,{stop:I}=l.useTimeoutFn(()=>!N.value&&i.closeMenu(t.index,n.value),R.value),D.value&&r&&((p=m.handleMouseleave)==null||p.call(m,!0))};e.watch(()=>i.props.collapse,r=>u(!!r));{const r=M=>{b.value[M.index]=M},p=M=>{delete b.value[M.index]};e.provide(`subMenu:${d.uid}`,{addSubMenu:r,removeSubMenu:p,handleMouseleave:g,mouseInChild:N,level:m.level+1})}return o({opened:x}),e.onMounted(()=>{i.addSubMenu(B),m.addSubMenu(B)}),e.onBeforeUnmount(()=>{m.removeSubMenu(B),i.removeSubMenu(B)}),()=>{var r;const p=[(r=s.title)==null?void 0:r.call(s),e.h(S.ElIcon,{class:E.e("icon-arrow"),style:{transform:x.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&i.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>l.isString(P.value)?e.h(d.appContext.components[P.value]):e.h(P.value)})],M=i.isMenuPopup?e.h(K.ElTooltip,{ref:H,visible:x.value,effect:"light",pure:!0,offset:q.value,showArrow:!1,persistent:!0,popperClass:z.value,placement:w.value,teleported:D.value,fallbackPlacements:F.value,transition:W.value,gpuAcceleration:!1},{content:()=>{var T;return e.h("div",{class:[v.m(k.value),v.m("popup-container"),z.value],onMouseenter:O=>h(O,100),onMouseleave:()=>g(!0),onFocus:O=>h(O,100)},[e.h("ul",{class:[v.b(),v.m("popup"),v.m(`popup-${w.value}`)],style:A.value},[(T=s.default)==null?void 0:T.call(s)])])},default:()=>e.h("div",{class:E.e("title"),onClick:c},p)}):e.h(e.Fragment,{},[e.h("div",{class:E.e("title"),ref:j,onClick:c},p),e.h(ce,{},{default:()=>{var T;return e.withDirectives(e.h("ul",{role:"menu",class:[v.b(),v.m("inline")],style:A.value},[(T=s.default)==null?void 0:T.call(s)]),[[e.vShow,x.value]])}})]);return e.h("li",{class:[E.b(),E.is("active",$.value),E.is("opened",x.value),E.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:h,onMouseleave:()=>g(),onFocus:h},[M])}}});const Me=l.buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:l.definePropType(Array),default:()=>le.mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:S.iconPropType,default:()=>S.more_default},popperEffect:{type:l.definePropType(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),U=t=>l.isArray(t)&&t.every(s=>l.isString(s)),ye={close:(t,s)=>l.isString(t)&&U(s),open:(t,s)=>l.isString(t)&&U(s),select:(t,s,o,d)=>l.isString(t)&&U(s)&&l.isObject(o)&&(d===void 0||d instanceof Promise)};var Ee=e.defineComponent({name:"ElMenu",props:Me,emits:ye,setup(t,{emit:s,slots:o,expose:d}){const n=e.getCurrentInstance(),C=n.appContext.config.globalProperties.$router,v=e.ref(),E=l.useNamespace("menu"),i=l.useNamespace("sub-menu"),m=e.ref(-1),f=e.ref(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),b=e.ref(t.defaultActive),I=e.ref({}),N=e.ref({}),j=e.computed(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),H=()=>{const a=b.value&&I.value[b.value];if(!a||t.mode==="horizontal"||t.collapse)return;a.indexPath.forEach(c=>{const h=N.value[c];h&&w(c,h.indexPath)})},w=(a,u)=>{f.value.includes(a)||(t.uniqueOpened&&(f.value=f.value.filter(c=>u.includes(c))),f.value.push(a),s("open",a,u))},P=a=>{const u=f.value.indexOf(a);u!==-1&&f.value.splice(u,1)},_=(a,u)=>{P(a),s("close",a,u)},D=({index:a,indexPath:u})=>{f.value.includes(a)?_(a,u):w(a,u)},W=a=>{(t.mode==="horizontal"||t.collapse)&&(f.value=[]);const{index:u,indexPath:c}=a;if(!(l.isNil(u)||l.isNil(c)))if(t.router&&C){const h=a.route||u,g=C.push(h).then(r=>(r||(b.value=u),r));s("select",u,c,{index:u,indexPath:c,route:h},g)}else b.value=u,s("select",u,c,{index:u,indexPath:c})},F=a=>{const u=I.value,c=u[a]||b.value&&u[b.value]||u[t.defaultActive];c?b.value=c.index:b.value=a},x=a=>{const u=getComputedStyle(a),c=Number.parseInt(u.marginLeft,10),h=Number.parseInt(u.marginRight,10);return a.offsetWidth+c+h||0},$=()=>{var a,u;if(!v.value)return-1;const c=Array.from((u=(a=v.value)==null?void 0:a.childNodes)!=null?u:[]).filter(V=>V.nodeName!=="#text"||V.nodeValue),h=64,g=getComputedStyle(v.value),r=Number.parseInt(g.paddingLeft,10),p=Number.parseInt(g.paddingRight,10),M=v.value.clientWidth-r-p;let T=0,O=0;return c.forEach((V,te)=>{V.nodeName!=="#comment"&&(T+=x(V),T<=M-h&&(O=te+1))}),O===c.length?-1:O},k=a=>N.value[a].indexPath,B=(a,u=33.34)=>{let c;return()=>{c&&clearTimeout(c),c=setTimeout(()=>{a()},u)}};let A=!0;const q=()=>{if(m.value===$())return;const a=()=>{m.value=-1,e.nextTick(()=>{m.value=$()})};A?a():B(a)(),A=!1};e.watch(()=>t.defaultActive,a=>{I.value[a]||(b.value=""),F(a)}),e.watch(()=>t.collapse,a=>{a&&(f.value=[])}),e.watch(I.value,H);let z;e.watchEffect(()=>{t.mode==="horizontal"&&t.ellipsis?z=ne.useResizeObserver(v,q).stop:z==null||z()});const L=e.ref(!1);{const a=g=>{N.value[g.index]=g},u=g=>{delete N.value[g.index]},c=g=>{I.value[g.index]=g},h=g=>{delete I.value[g.index]};e.provide("rootMenu",e.reactive({props:t,openedMenus:f,items:I,subMenus:N,activeIndex:b,isMenuPopup:j,addMenuItem:c,removeMenuItem:h,addSubMenu:a,removeSubMenu:u,openMenu:w,closeMenu:_,handleMenuItemClick:W,handleSubMenuClick:D})),e.provide(`subMenu:${n.uid}`,{addSubMenu:a,removeSubMenu:u,mouseInChild:L,level:0})}e.onMounted(()=>{t.mode==="horizontal"&&new me(n.vnode.el,E.namespace.value)}),d({open:u=>{const{indexPath:c}=N.value[u];c.forEach(h=>w(h,c))},close:P,handleResize:q});const R=X(t,0);return()=>{var a,u;let c=(u=(a=o.default)==null?void 0:a.call(o))!=null?u:[];const h=[];if(t.mode==="horizontal"&&v.value){const p=ae.flattedChildren(c),M=m.value===-1?p:p.slice(0,m.value),T=m.value===-1?[]:p.slice(m.value);T!=null&&T.length&&t.ellipsis&&(c=M,h.push(e.h(J,{index:"sub-menu-more",class:i.e("hide-arrow"),popperOffset:t.popperOffset},{title:()=>e.h(S.ElIcon,{class:i.e("icon-more")},{default:()=>e.h(t.ellipsisIcon)}),default:()=>T})))}const g=t.closeOnClickOutside?[[se.ClickOutside,()=>{f.value.length&&(L.value||(f.value.forEach(p=>s("close",p,k(p))),f.value=[]))}]]:[],r=e.withDirectives(e.h("ul",{key:String(t.collapse),role:"menubar",ref:v,style:R.value,class:{[E.b()]:!0,[E.m(t.mode)]:!0,[E.m("collapse")]:t.collapse}},[...c,...h]),g);return t.collapseTransition&&t.mode==="vertical"?e.h(he,()=>r):r}}});const Ce=l.buildProps({index:{type:l.definePropType([String,null]),default:null},route:{type:l.definePropType([String,Object])},disabled:Boolean}),Ie={click:t=>l.isString(t.index)&&l.isArray(t.indexPath)},Z="ElMenuItem",Te=e.defineComponent({name:Z,components:{ElTooltip:K.ElTooltip},props:Ce,emits:Ie,setup(t,{emit:s}){const o=e.getCurrentInstance(),d=e.inject("rootMenu"),n=l.useNamespace("menu"),C=l.useNamespace("menu-item");d||l.throwError(Z,"can not inject root menu");const{parentMenu:v,indexPath:E}=Q(o,e.toRef(t,"index")),i=e.inject(`subMenu:${v.value.uid}`);i||l.throwError(Z,"can not inject sub menu");const m=e.computed(()=>t.index===d.activeIndex),f=e.reactive({index:t.index,indexPath:E,active:m}),b=()=>{t.disabled||(d.handleMenuItemClick({index:t.index,indexPath:E.value,route:t.route}),s("click",f))};return e.onMounted(()=>{i.addSubMenu(f),d.addMenuItem(f)}),e.onBeforeUnmount(()=>{i.removeSubMenu(f),d.removeMenuItem(f)}),{parentMenu:v,rootMenu:d,active:m,nsMenu:n,nsMenuItem:C,handleClick:b}}});function xe(t,s,o,d,n,C){const v=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:t.handleClick},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(e.openBlock(),e.createBlock(v,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:e.withCtx(()=>[e.renderSlot(t.$slots,"title")]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.nsMenu.be("tooltip","trigger"))},[e.renderSlot(t.$slots,"default")],2)]),_:3},8,["effect"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(t.$slots,"default"),e.renderSlot(t.$slots,"title")],64))],10,["onClick"])}var Y=l._export_sfc(Te,[["render",xe],["__file","menu-item.vue"]]);const Se={title:String},Ne="ElMenuItemGroup",we=e.defineComponent({name:Ne,props:Se,setup(){return{ns:l.useNamespace("menu-item-group")}}});function _e(t,s,o,d,n,C){return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(t.ns.b())},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.e("title"))},[t.$slots.title?e.renderSlot(t.$slots,"title",{key:1}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.title),1)],64))],2),e.createElementVNode("ul",null,[e.renderSlot(t.$slots,"default")])],2)}var ee=l._export_sfc(we,[["render",_e],["__file","menu-item-group.vue"]]);const ke=l.withInstall(Ee,{MenuItem:Y,MenuItemGroup:ee,SubMenu:J}),Oe=l.withNoopInstall(Y);l.withNoopInstall(ee);l.withNoopInstall(J);exports.ElMenu=ke;exports.ElMenuItem=Oe;