@element-plus/nightly 0.0.20241203 → 0.0.20241205

Sign up to get free protection for your applications and to get access to all the features.
Files changed (474) hide show
  1. package/dist/index.full.js +13 -10
  2. package/dist/index.full.min.js +7 -7
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +9 -9
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +13 -10
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/ms.js +1 -1
  152. package/dist/locale/ms.min.js +1 -1
  153. package/dist/locale/ms.min.mjs +1 -1
  154. package/dist/locale/ms.mjs +1 -1
  155. package/dist/locale/my.js +1 -1
  156. package/dist/locale/my.min.js +1 -1
  157. package/dist/locale/my.min.mjs +1 -1
  158. package/dist/locale/my.mjs +1 -1
  159. package/dist/locale/nb-no.js +1 -1
  160. package/dist/locale/nb-no.min.js +1 -1
  161. package/dist/locale/nb-no.min.mjs +1 -1
  162. package/dist/locale/nb-no.mjs +1 -1
  163. package/dist/locale/nl.js +1 -1
  164. package/dist/locale/nl.min.js +1 -1
  165. package/dist/locale/nl.min.mjs +1 -1
  166. package/dist/locale/nl.mjs +1 -1
  167. package/dist/locale/pa.js +1 -1
  168. package/dist/locale/pa.min.js +1 -1
  169. package/dist/locale/pa.min.mjs +1 -1
  170. package/dist/locale/pa.mjs +1 -1
  171. package/dist/locale/pl.js +1 -1
  172. package/dist/locale/pl.min.js +1 -1
  173. package/dist/locale/pl.min.mjs +1 -1
  174. package/dist/locale/pl.mjs +1 -1
  175. package/dist/locale/pt-br.js +1 -1
  176. package/dist/locale/pt-br.min.js +1 -1
  177. package/dist/locale/pt-br.min.mjs +1 -1
  178. package/dist/locale/pt-br.mjs +1 -1
  179. package/dist/locale/pt.js +1 -1
  180. package/dist/locale/pt.min.js +1 -1
  181. package/dist/locale/pt.min.mjs +1 -1
  182. package/dist/locale/pt.mjs +1 -1
  183. package/dist/locale/ro.js +1 -1
  184. package/dist/locale/ro.min.js +1 -1
  185. package/dist/locale/ro.min.mjs +1 -1
  186. package/dist/locale/ro.mjs +1 -1
  187. package/dist/locale/ru.js +1 -1
  188. package/dist/locale/ru.min.js +1 -1
  189. package/dist/locale/ru.min.mjs +1 -1
  190. package/dist/locale/ru.mjs +1 -1
  191. package/dist/locale/sk.js +1 -1
  192. package/dist/locale/sk.min.js +1 -1
  193. package/dist/locale/sk.min.mjs +1 -1
  194. package/dist/locale/sk.mjs +1 -1
  195. package/dist/locale/sl.js +1 -1
  196. package/dist/locale/sl.min.js +1 -1
  197. package/dist/locale/sl.min.mjs +1 -1
  198. package/dist/locale/sl.mjs +1 -1
  199. package/dist/locale/sr.js +1 -1
  200. package/dist/locale/sr.min.js +1 -1
  201. package/dist/locale/sr.min.mjs +1 -1
  202. package/dist/locale/sr.mjs +1 -1
  203. package/dist/locale/sv.js +1 -1
  204. package/dist/locale/sv.min.js +1 -1
  205. package/dist/locale/sv.min.mjs +1 -1
  206. package/dist/locale/sv.mjs +1 -1
  207. package/dist/locale/sw.js +1 -1
  208. package/dist/locale/sw.min.js +1 -1
  209. package/dist/locale/sw.min.mjs +1 -1
  210. package/dist/locale/sw.mjs +1 -1
  211. package/dist/locale/ta.js +1 -1
  212. package/dist/locale/ta.min.js +1 -1
  213. package/dist/locale/ta.min.mjs +1 -1
  214. package/dist/locale/ta.mjs +1 -1
  215. package/dist/locale/th.js +1 -1
  216. package/dist/locale/th.min.js +1 -1
  217. package/dist/locale/th.min.mjs +1 -1
  218. package/dist/locale/th.mjs +1 -1
  219. package/dist/locale/tk.js +1 -1
  220. package/dist/locale/tk.min.js +1 -1
  221. package/dist/locale/tk.min.mjs +1 -1
  222. package/dist/locale/tk.mjs +1 -1
  223. package/dist/locale/tr.js +1 -1
  224. package/dist/locale/tr.min.js +1 -1
  225. package/dist/locale/tr.min.mjs +1 -1
  226. package/dist/locale/tr.mjs +1 -1
  227. package/dist/locale/ug-cn.js +1 -1
  228. package/dist/locale/ug-cn.min.js +1 -1
  229. package/dist/locale/ug-cn.min.mjs +1 -1
  230. package/dist/locale/ug-cn.mjs +1 -1
  231. package/dist/locale/uk.js +1 -1
  232. package/dist/locale/uk.min.js +1 -1
  233. package/dist/locale/uk.min.mjs +1 -1
  234. package/dist/locale/uk.mjs +1 -1
  235. package/dist/locale/uz-uz.js +1 -1
  236. package/dist/locale/uz-uz.min.js +1 -1
  237. package/dist/locale/uz-uz.min.mjs +1 -1
  238. package/dist/locale/uz-uz.mjs +1 -1
  239. package/dist/locale/vi.js +1 -1
  240. package/dist/locale/vi.min.js +1 -1
  241. package/dist/locale/vi.min.mjs +1 -1
  242. package/dist/locale/vi.mjs +1 -1
  243. package/dist/locale/zh-cn.js +1 -1
  244. package/dist/locale/zh-cn.min.js +1 -1
  245. package/dist/locale/zh-cn.min.mjs +1 -1
  246. package/dist/locale/zh-cn.mjs +1 -1
  247. package/dist/locale/zh-tw.js +1 -1
  248. package/dist/locale/zh-tw.min.js +1 -1
  249. package/dist/locale/zh-tw.min.mjs +1 -1
  250. package/dist/locale/zh-tw.mjs +1 -1
  251. package/es/components/autocomplete/src/autocomplete.vue.d.ts +35 -35
  252. package/es/components/backtop/index.mjs +2 -2
  253. package/es/components/backtop/src/backtop.mjs +53 -21
  254. package/es/components/backtop/src/backtop.mjs.map +1 -1
  255. package/es/components/backtop/src/backtop2.mjs +21 -53
  256. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  257. package/es/components/col/index.mjs +2 -2
  258. package/es/components/col/src/col.mjs +43 -64
  259. package/es/components/col/src/col.mjs.map +1 -1
  260. package/es/components/col/src/col2.mjs +64 -43
  261. package/es/components/col/src/col2.mjs.map +1 -1
  262. package/es/components/countdown/index.mjs +2 -2
  263. package/es/components/countdown/src/countdown.mjs +22 -79
  264. package/es/components/countdown/src/countdown.mjs.map +1 -1
  265. package/es/components/countdown/src/countdown2.mjs +79 -22
  266. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  267. package/es/components/dropdown/index.mjs +2 -2
  268. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  269. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  270. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  271. package/es/components/dropdown/src/dropdown.d.ts +1 -1
  272. package/es/components/dropdown/src/dropdown.mjs +92 -305
  273. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  274. package/es/components/dropdown/src/dropdown.vue.d.ts +38 -38
  275. package/es/components/dropdown/src/dropdown2.mjs +305 -92
  276. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  277. package/es/components/index.mjs +8 -8
  278. package/es/components/mention/src/mention.vue.d.ts +35 -35
  279. package/es/components/menu/src/menu.d.ts +5 -4
  280. package/es/components/menu/src/menu.mjs.map +1 -1
  281. package/es/components/message/index.mjs +1 -1
  282. package/es/components/message/src/message.mjs +91 -145
  283. package/es/components/message/src/message.mjs.map +1 -1
  284. package/es/components/message/src/message2.mjs +145 -91
  285. package/es/components/message/src/message2.mjs.map +1 -1
  286. package/es/components/message/src/method.mjs +2 -2
  287. package/es/components/message/src/method.mjs.map +1 -1
  288. package/es/components/message-box/src/messageBox.mjs.map +1 -1
  289. package/es/components/notification/index.mjs +1 -1
  290. package/es/components/notification/src/notification.mjs +68 -142
  291. package/es/components/notification/src/notification.mjs.map +1 -1
  292. package/es/components/notification/src/notification2.mjs +142 -68
  293. package/es/components/notification/src/notification2.mjs.map +1 -1
  294. package/es/components/notification/src/notify.mjs +3 -3
  295. package/es/components/notification/src/notify.mjs.map +1 -1
  296. package/es/components/pagination/src/components/next.mjs +35 -18
  297. package/es/components/pagination/src/components/next.mjs.map +1 -1
  298. package/es/components/pagination/src/components/next2.mjs +18 -35
  299. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  300. package/es/components/pagination/src/pagination.mjs +1 -1
  301. package/es/components/popover/index.mjs +2 -2
  302. package/es/components/popover/src/popover.d.ts +1 -1
  303. package/es/components/popover/src/popover.mjs +110 -64
  304. package/es/components/popover/src/popover.mjs.map +1 -1
  305. package/es/components/popover/src/popover.vue.d.ts +3 -3
  306. package/es/components/popover/src/popover2.mjs +64 -110
  307. package/es/components/popover/src/popover2.mjs.map +1 -1
  308. package/es/components/popper/src/content.d.ts +3 -2
  309. package/es/components/popper/src/content.mjs.map +1 -1
  310. package/es/components/popper/src/content.vue.d.ts +3 -3
  311. package/es/components/popper/src/popper.d.ts +1 -1
  312. package/es/components/popper/src/popper.mjs.map +1 -1
  313. package/es/components/radio/index.mjs +2 -2
  314. package/es/components/radio/src/radio-button.mjs +1 -1
  315. package/es/components/radio/src/radio-group.mjs +1 -1
  316. package/es/components/radio/src/radio.mjs +73 -32
  317. package/es/components/radio/src/radio.mjs.map +1 -1
  318. package/es/components/radio/src/radio2.mjs +32 -73
  319. package/es/components/radio/src/radio2.mjs.map +1 -1
  320. package/es/components/select/src/select.d.ts +2 -2
  321. package/es/components/select/src/select.mjs.map +1 -1
  322. package/es/components/select/src/select.vue.d.ts +73 -73
  323. package/es/components/select/src/useSelect.d.ts +70 -70
  324. package/es/components/select/src/useSelect.mjs +3 -3
  325. package/es/components/select/src/useSelect.mjs.map +1 -1
  326. package/es/components/select-v2/src/defaults.d.ts +2 -2
  327. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  328. package/es/components/select-v2/src/select.vue.d.ts +73 -73
  329. package/es/components/select-v2/src/useSelect.d.ts +70 -70
  330. package/es/components/slider/src/composables/use-slider-button.d.ts +35 -35
  331. package/es/components/table/src/filter-panel.vue.d.ts +35 -35
  332. package/es/components/time-select/src/time-select.d.ts +2 -1
  333. package/es/components/time-select/src/time-select.mjs.map +1 -1
  334. package/es/components/time-select/src/time-select.vue.d.ts +3 -3
  335. package/es/components/tooltip/src/content.d.ts +1 -1
  336. package/es/components/tooltip/src/content.vue.d.ts +8 -8
  337. package/es/components/tooltip/src/tooltip.d.ts +1 -1
  338. package/es/components/tooltip/src/tooltip.vue.d.ts +18 -18
  339. package/es/components/tooltip-v2/src/content.d.ts +2 -1
  340. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  341. package/es/components/tooltip-v2/src/content.vue.d.ts +3 -3
  342. package/es/components/tooltip-v2/src/tooltip.d.ts +1 -1
  343. package/es/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  344. package/es/components/tree-v2/src/composables/useCheck.d.ts +1 -1
  345. package/es/components/tree-v2/src/composables/useCheck.mjs +7 -4
  346. package/es/components/tree-v2/src/composables/useCheck.mjs.map +1 -1
  347. package/es/components/tree-v2/src/composables/useTree.d.ts +1 -1
  348. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  349. package/es/directives/click-outside/index.mjs +1 -1
  350. package/es/hooks/use-focus-controller/index.mjs +1 -1
  351. package/es/hooks/use-lockscreen/index.mjs +1 -1
  352. package/es/hooks/use-ordered-children/index.mjs.map +1 -1
  353. package/es/index.mjs +8 -8
  354. package/es/utils/index.mjs +0 -1
  355. package/es/utils/index.mjs.map +1 -1
  356. package/es/utils/types.d.ts +0 -1
  357. package/es/utils/types.mjs +0 -1
  358. package/es/utils/types.mjs.map +1 -1
  359. package/es/version.d.ts +1 -1
  360. package/es/version.mjs +1 -1
  361. package/es/version.mjs.map +1 -1
  362. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +35 -35
  363. package/lib/components/backtop/index.js +2 -2
  364. package/lib/components/backtop/src/backtop.js +53 -22
  365. package/lib/components/backtop/src/backtop.js.map +1 -1
  366. package/lib/components/backtop/src/backtop2.js +22 -53
  367. package/lib/components/backtop/src/backtop2.js.map +1 -1
  368. package/lib/components/col/index.js +2 -2
  369. package/lib/components/col/src/col.js +43 -64
  370. package/lib/components/col/src/col.js.map +1 -1
  371. package/lib/components/col/src/col2.js +64 -43
  372. package/lib/components/col/src/col2.js.map +1 -1
  373. package/lib/components/countdown/index.js +2 -2
  374. package/lib/components/countdown/src/countdown.js +23 -79
  375. package/lib/components/countdown/src/countdown.js.map +1 -1
  376. package/lib/components/countdown/src/countdown2.js +79 -23
  377. package/lib/components/countdown/src/countdown2.js.map +1 -1
  378. package/lib/components/dropdown/index.js +2 -2
  379. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  380. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  381. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  382. package/lib/components/dropdown/src/dropdown.d.ts +1 -1
  383. package/lib/components/dropdown/src/dropdown.js +101 -305
  384. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  385. package/lib/components/dropdown/src/dropdown.vue.d.ts +38 -38
  386. package/lib/components/dropdown/src/dropdown2.js +305 -101
  387. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  388. package/lib/components/index.js +8 -8
  389. package/lib/components/mention/src/mention.vue.d.ts +35 -35
  390. package/lib/components/menu/src/menu.d.ts +5 -4
  391. package/lib/components/menu/src/menu.js.map +1 -1
  392. package/lib/components/message/index.js +1 -1
  393. package/lib/components/message/src/message.js +93 -144
  394. package/lib/components/message/src/message.js.map +1 -1
  395. package/lib/components/message/src/message2.js +144 -93
  396. package/lib/components/message/src/message2.js.map +1 -1
  397. package/lib/components/message/src/method.js +2 -2
  398. package/lib/components/message/src/method.js.map +1 -1
  399. package/lib/components/message-box/src/messageBox.js.map +1 -1
  400. package/lib/components/notification/index.js +1 -1
  401. package/lib/components/notification/src/notification.js +69 -141
  402. package/lib/components/notification/src/notification.js.map +1 -1
  403. package/lib/components/notification/src/notification2.js +141 -69
  404. package/lib/components/notification/src/notification2.js.map +1 -1
  405. package/lib/components/notification/src/notify.js +3 -3
  406. package/lib/components/notification/src/notify.js.map +1 -1
  407. package/lib/components/pagination/src/components/next.js +35 -18
  408. package/lib/components/pagination/src/components/next.js.map +1 -1
  409. package/lib/components/pagination/src/components/next2.js +18 -35
  410. package/lib/components/pagination/src/components/next2.js.map +1 -1
  411. package/lib/components/pagination/src/pagination.js +1 -1
  412. package/lib/components/popover/index.js +2 -2
  413. package/lib/components/popover/src/popover.d.ts +1 -1
  414. package/lib/components/popover/src/popover.js +110 -65
  415. package/lib/components/popover/src/popover.js.map +1 -1
  416. package/lib/components/popover/src/popover.vue.d.ts +3 -3
  417. package/lib/components/popover/src/popover2.js +65 -110
  418. package/lib/components/popover/src/popover2.js.map +1 -1
  419. package/lib/components/popper/src/content.d.ts +3 -2
  420. package/lib/components/popper/src/content.js.map +1 -1
  421. package/lib/components/popper/src/content.vue.d.ts +3 -3
  422. package/lib/components/popper/src/popper.d.ts +1 -1
  423. package/lib/components/popper/src/popper.js.map +1 -1
  424. package/lib/components/radio/index.js +2 -2
  425. package/lib/components/radio/src/radio-button.js +1 -1
  426. package/lib/components/radio/src/radio-group.js +1 -1
  427. package/lib/components/radio/src/radio.js +73 -34
  428. package/lib/components/radio/src/radio.js.map +1 -1
  429. package/lib/components/radio/src/radio2.js +34 -73
  430. package/lib/components/radio/src/radio2.js.map +1 -1
  431. package/lib/components/select/src/select.d.ts +2 -2
  432. package/lib/components/select/src/select.js.map +1 -1
  433. package/lib/components/select/src/select.vue.d.ts +73 -73
  434. package/lib/components/select/src/useSelect.d.ts +70 -70
  435. package/lib/components/select/src/useSelect.js +3 -3
  436. package/lib/components/select/src/useSelect.js.map +1 -1
  437. package/lib/components/select-v2/src/defaults.d.ts +2 -2
  438. package/lib/components/select-v2/src/defaults.js.map +1 -1
  439. package/lib/components/select-v2/src/select.vue.d.ts +73 -73
  440. package/lib/components/select-v2/src/useSelect.d.ts +70 -70
  441. package/lib/components/slider/src/composables/use-slider-button.d.ts +35 -35
  442. package/lib/components/table/src/filter-panel.vue.d.ts +35 -35
  443. package/lib/components/time-select/src/time-select.d.ts +2 -1
  444. package/lib/components/time-select/src/time-select.js.map +1 -1
  445. package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
  446. package/lib/components/tooltip/src/content.d.ts +1 -1
  447. package/lib/components/tooltip/src/content.vue.d.ts +8 -8
  448. package/lib/components/tooltip/src/tooltip.d.ts +1 -1
  449. package/lib/components/tooltip/src/tooltip.vue.d.ts +18 -18
  450. package/lib/components/tooltip-v2/src/content.d.ts +2 -1
  451. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  452. package/lib/components/tooltip-v2/src/content.vue.d.ts +3 -3
  453. package/lib/components/tooltip-v2/src/tooltip.d.ts +1 -1
  454. package/lib/components/tooltip-v2/src/tooltip.vue.d.ts +3 -3
  455. package/lib/components/tree-v2/src/composables/useCheck.d.ts +1 -1
  456. package/lib/components/tree-v2/src/composables/useCheck.js +7 -4
  457. package/lib/components/tree-v2/src/composables/useCheck.js.map +1 -1
  458. package/lib/components/tree-v2/src/composables/useTree.d.ts +1 -1
  459. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  460. package/lib/directives/click-outside/index.js +1 -1
  461. package/lib/hooks/use-focus-controller/index.js +1 -1
  462. package/lib/hooks/use-lockscreen/index.js +1 -1
  463. package/lib/hooks/use-ordered-children/index.js.map +1 -1
  464. package/lib/index.js +8 -8
  465. package/lib/utils/index.js +0 -5
  466. package/lib/utils/index.js.map +1 -1
  467. package/lib/utils/types.d.ts +0 -1
  468. package/lib/utils/types.js +0 -5
  469. package/lib/utils/types.js.map +1 -1
  470. package/lib/version.d.ts +1 -1
  471. package/lib/version.js +1 -1
  472. package/lib/version.js.map +1 -1
  473. package/package.json +2 -2
  474. package/web-types.json +1 -1
@@ -521,7 +521,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
521
521
  open: boolean;
522
522
  placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
523
523
  strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
524
- effect: string;
524
+ effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
525
525
  showAfter: number;
526
526
  hideAfter: number;
527
527
  autoClose: number;
@@ -721,7 +721,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
721
721
  readonly validator: ((val: unknown) => boolean) | undefined;
722
722
  __epPropKey: true;
723
723
  };
724
- effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
724
+ effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
725
725
  enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
726
726
  pure: BooleanConstructor;
727
727
  focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1055,7 +1055,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1055
1055
  readonly validator: ((val: unknown) => boolean) | undefined;
1056
1056
  __epPropKey: true;
1057
1057
  };
1058
- effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
1058
+ effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
1059
1059
  enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
1060
1060
  pure: BooleanConstructor;
1061
1061
  focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1272,7 +1272,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1272
1272
  readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
1273
1273
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
1274
1274
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
1275
- readonly effect: string;
1275
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
1276
1276
  readonly showAfter: number;
1277
1277
  readonly hideAfter: number;
1278
1278
  readonly autoClose: number;
@@ -1413,7 +1413,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1413
1413
  readonly validator: ((val: unknown) => boolean) | undefined;
1414
1414
  __epPropKey: true;
1415
1415
  };
1416
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
1416
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
1417
1417
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
1418
1418
  readonly pure: BooleanConstructor;
1419
1419
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1687,7 +1687,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1687
1687
  readonly validator: ((val: unknown) => boolean) | undefined;
1688
1688
  __epPropKey: true;
1689
1689
  };
1690
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
1690
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
1691
1691
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
1692
1692
  readonly pure: BooleanConstructor;
1693
1693
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -1834,7 +1834,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1834
1834
  readonly visible: boolean;
1835
1835
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
1836
1836
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
1837
- readonly effect: string;
1837
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
1838
1838
  readonly virtualTriggering: boolean;
1839
1839
  readonly boundariesPadding: number;
1840
1840
  readonly fallbackPlacements: Placement[];
@@ -1956,7 +1956,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
1956
1956
  readonly validator: ((val: unknown) => boolean) | undefined;
1957
1957
  __epPropKey: true;
1958
1958
  };
1959
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
1959
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
1960
1960
  readonly visible: BooleanConstructor;
1961
1961
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
1962
1962
  readonly pure: BooleanConstructor;
@@ -2221,7 +2221,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2221
2221
  readonly validator: ((val: unknown) => boolean) | undefined;
2222
2222
  __epPropKey: true;
2223
2223
  };
2224
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
2224
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
2225
2225
  readonly visible: BooleanConstructor;
2226
2226
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
2227
2227
  readonly pure: BooleanConstructor;
@@ -2379,7 +2379,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2379
2379
  readonly visible: boolean;
2380
2380
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
2381
2381
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
2382
- readonly effect: string;
2382
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
2383
2383
  readonly virtualTriggering: boolean;
2384
2384
  readonly boundariesPadding: number;
2385
2385
  readonly fallbackPlacements: Placement[];
@@ -2521,7 +2521,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2521
2521
  readonly validator: ((val: unknown) => boolean) | undefined;
2522
2522
  __epPropKey: true;
2523
2523
  };
2524
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
2524
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
2525
2525
  readonly visible: BooleanConstructor;
2526
2526
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
2527
2527
  readonly pure: BooleanConstructor;
@@ -2680,7 +2680,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2680
2680
  readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
2681
2681
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
2682
2682
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
2683
- readonly effect: string;
2683
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
2684
2684
  readonly showAfter: number;
2685
2685
  readonly hideAfter: number;
2686
2686
  readonly autoClose: number;
@@ -2841,7 +2841,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2841
2841
  readonly validator: ((val: unknown) => boolean) | undefined;
2842
2842
  __epPropKey: true;
2843
2843
  };
2844
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
2844
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
2845
2845
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
2846
2846
  readonly pure: BooleanConstructor;
2847
2847
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -2988,7 +2988,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
2988
2988
  readonly visible: boolean;
2989
2989
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
2990
2990
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
2991
- readonly effect: string;
2991
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
2992
2992
  readonly virtualTriggering: boolean;
2993
2993
  readonly boundariesPadding: number;
2994
2994
  readonly fallbackPlacements: Placement[];
@@ -3110,7 +3110,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
3110
3110
  readonly validator: ((val: unknown) => boolean) | undefined;
3111
3111
  __epPropKey: true;
3112
3112
  };
3113
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
3113
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
3114
3114
  readonly visible: BooleanConstructor;
3115
3115
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
3116
3116
  readonly pure: BooleanConstructor;
@@ -3375,7 +3375,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
3375
3375
  readonly validator: ((val: unknown) => boolean) | undefined;
3376
3376
  __epPropKey: true;
3377
3377
  };
3378
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
3378
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
3379
3379
  readonly visible: BooleanConstructor;
3380
3380
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
3381
3381
  readonly pure: BooleanConstructor;
@@ -3533,7 +3533,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
3533
3533
  readonly visible: boolean;
3534
3534
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
3535
3535
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
3536
- readonly effect: string;
3536
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
3537
3537
  readonly virtualTriggering: boolean;
3538
3538
  readonly boundariesPadding: number;
3539
3539
  readonly fallbackPlacements: Placement[];
@@ -3675,7 +3675,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
3675
3675
  readonly validator: ((val: unknown) => boolean) | undefined;
3676
3676
  __epPropKey: true;
3677
3677
  };
3678
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
3678
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
3679
3679
  readonly visible: BooleanConstructor;
3680
3680
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
3681
3681
  readonly pure: BooleanConstructor;
@@ -3847,7 +3847,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
3847
3847
  open: boolean;
3848
3848
  placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
3849
3849
  strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
3850
- effect: string;
3850
+ effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
3851
3851
  showAfter: number;
3852
3852
  hideAfter: number;
3853
3853
  autoClose: number;
@@ -4067,7 +4067,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4067
4067
  readonly validator: ((val: unknown) => boolean) | undefined;
4068
4068
  __epPropKey: true;
4069
4069
  };
4070
- effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
4070
+ effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
4071
4071
  enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
4072
4072
  pure: BooleanConstructor;
4073
4073
  focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -4284,7 +4284,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4284
4284
  readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
4285
4285
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
4286
4286
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
4287
- readonly effect: string;
4287
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
4288
4288
  readonly showAfter: number;
4289
4289
  readonly hideAfter: number;
4290
4290
  readonly autoClose: number;
@@ -4425,7 +4425,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4425
4425
  readonly validator: ((val: unknown) => boolean) | undefined;
4426
4426
  __epPropKey: true;
4427
4427
  };
4428
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
4428
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
4429
4429
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
4430
4430
  readonly pure: BooleanConstructor;
4431
4431
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -4699,7 +4699,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4699
4699
  readonly validator: ((val: unknown) => boolean) | undefined;
4700
4700
  __epPropKey: true;
4701
4701
  };
4702
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
4702
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
4703
4703
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
4704
4704
  readonly pure: BooleanConstructor;
4705
4705
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -4846,7 +4846,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4846
4846
  readonly visible: boolean;
4847
4847
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
4848
4848
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
4849
- readonly effect: string;
4849
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
4850
4850
  readonly virtualTriggering: boolean;
4851
4851
  readonly boundariesPadding: number;
4852
4852
  readonly fallbackPlacements: Placement[];
@@ -4968,7 +4968,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
4968
4968
  readonly validator: ((val: unknown) => boolean) | undefined;
4969
4969
  __epPropKey: true;
4970
4970
  };
4971
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
4971
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
4972
4972
  readonly visible: BooleanConstructor;
4973
4973
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
4974
4974
  readonly pure: BooleanConstructor;
@@ -5233,7 +5233,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
5233
5233
  readonly validator: ((val: unknown) => boolean) | undefined;
5234
5234
  __epPropKey: true;
5235
5235
  };
5236
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
5236
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
5237
5237
  readonly visible: BooleanConstructor;
5238
5238
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
5239
5239
  readonly pure: BooleanConstructor;
@@ -5391,7 +5391,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
5391
5391
  readonly visible: boolean;
5392
5392
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
5393
5393
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
5394
- readonly effect: string;
5394
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
5395
5395
  readonly virtualTriggering: boolean;
5396
5396
  readonly boundariesPadding: number;
5397
5397
  readonly fallbackPlacements: Placement[];
@@ -5533,7 +5533,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
5533
5533
  readonly validator: ((val: unknown) => boolean) | undefined;
5534
5534
  __epPropKey: true;
5535
5535
  };
5536
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
5536
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
5537
5537
  readonly visible: BooleanConstructor;
5538
5538
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
5539
5539
  readonly pure: BooleanConstructor;
@@ -5692,7 +5692,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
5692
5692
  readonly visible: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => boolean) | (() => boolean | null) | ((new (...args: any[]) => boolean) | (() => boolean | null))[], unknown, unknown>;
5693
5693
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
5694
5694
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
5695
- readonly effect: string;
5695
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
5696
5696
  readonly showAfter: number;
5697
5697
  readonly hideAfter: number;
5698
5698
  readonly autoClose: number;
@@ -5853,7 +5853,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
5853
5853
  readonly validator: ((val: unknown) => boolean) | undefined;
5854
5854
  __epPropKey: true;
5855
5855
  };
5856
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
5856
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
5857
5857
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
5858
5858
  readonly pure: BooleanConstructor;
5859
5859
  readonly focusOnShow: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
@@ -6000,7 +6000,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
6000
6000
  readonly visible: boolean;
6001
6001
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
6002
6002
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
6003
- readonly effect: string;
6003
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
6004
6004
  readonly virtualTriggering: boolean;
6005
6005
  readonly boundariesPadding: number;
6006
6006
  readonly fallbackPlacements: Placement[];
@@ -6122,7 +6122,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
6122
6122
  readonly validator: ((val: unknown) => boolean) | undefined;
6123
6123
  __epPropKey: true;
6124
6124
  };
6125
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
6125
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
6126
6126
  readonly visible: BooleanConstructor;
6127
6127
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
6128
6128
  readonly pure: BooleanConstructor;
@@ -6387,7 +6387,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
6387
6387
  readonly validator: ((val: unknown) => boolean) | undefined;
6388
6388
  __epPropKey: true;
6389
6389
  };
6390
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
6390
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
6391
6391
  readonly visible: BooleanConstructor;
6392
6392
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
6393
6393
  readonly pure: BooleanConstructor;
@@ -6545,7 +6545,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
6545
6545
  readonly visible: boolean;
6546
6546
  readonly placement: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, Placement, unknown>;
6547
6547
  readonly strategy: import("@element-plus/nightly/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
6548
- readonly effect: string;
6548
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown>;
6549
6549
  readonly virtualTriggering: boolean;
6550
6550
  readonly boundariesPadding: number;
6551
6551
  readonly fallbackPlacements: Placement[];
@@ -6687,7 +6687,7 @@ declare const __VLS_component: import("vue").DefineComponent<{
6687
6687
  readonly validator: ((val: unknown) => boolean) | undefined;
6688
6688
  __epPropKey: true;
6689
6689
  };
6690
- readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
6690
+ readonly effect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("@element-plus/nightly/es/element-plus").PopperEffect))[], unknown, unknown, "dark", boolean>;
6691
6691
  readonly visible: BooleanConstructor;
6692
6692
  readonly enterable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
6693
6693
  readonly pure: BooleanConstructor;
@@ -1,3 +1,4 @@
1
+ import type { PopperEffect } from '@element-plus/nightly/es/components/popper';
1
2
  import type { MenuItemClicked } from './types';
2
3
  import type { NavigationFailure } from 'vue-router';
3
4
  import type { Component, ExtractPropTypes, VNode } from 'vue';
@@ -17,7 +18,7 @@ export declare const menuProps: {
17
18
  readonly ellipsis: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
18
19
  readonly popperOffset: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
19
20
  readonly ellipsisIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
20
- readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
21
+ readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown, "dark", boolean>;
21
22
  readonly popperClass: StringConstructor;
22
23
  readonly showTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
23
24
  readonly hideTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
@@ -45,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
45
46
  readonly ellipsis: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
46
47
  readonly popperOffset: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
47
48
  readonly ellipsisIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
48
- readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
49
+ readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown, "dark", boolean>;
49
50
  readonly popperClass: StringConstructor;
50
51
  readonly showTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
51
52
  readonly hideTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
@@ -71,7 +72,7 @@ declare const _default: import("vue").DefineComponent<{
71
72
  readonly ellipsis: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
72
73
  readonly popperOffset: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
73
74
  readonly ellipsisIcon: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, () => any, boolean>;
74
- readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string) | ((new (...args: any[]) => string) | (() => string))[], unknown, unknown, "dark", boolean>;
75
+ readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown, "dark", boolean>;
75
76
  readonly popperClass: StringConstructor;
76
77
  readonly showTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
77
78
  readonly hideTimeout: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 300, boolean>;
@@ -91,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
91
92
  readonly collapseTransition: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
92
93
  readonly popperOffset: number;
93
94
  readonly ellipsisIcon: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>;
94
- readonly popperEffect: string;
95
+ readonly popperEffect: import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>;
95
96
  readonly uniqueOpened: boolean;
96
97
  readonly router: boolean;
97
98
  readonly closeOnClickOutside: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","sources":["../../../../../../packages/components/menu/src/menu.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n watch,\n watchEffect,\n withDirectives,\n} from 'vue'\n\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport ElIcon from '@element-plus/components/icon'\nimport { More } from '@element-plus/icons-vue'\nimport {\n buildProps,\n definePropType,\n flattedChildren,\n iconPropType,\n isArray,\n isObject,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ClickOutside as vClickoutside } from '@element-plus/directives'\nimport Menubar from './utils/menu-bar'\nimport ElMenuCollapseTransition from './menu-collapse-transition.vue'\nimport ElSubMenu from './sub-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\nimport type { PopperEffect } from '@element-plus/components/popper'\n\nimport type { MenuItemClicked, MenuProvider, SubMenuProvider } from './types'\nimport type { NavigationFailure, Router } from 'vue-router'\nimport type {\n Component,\n DirectiveArguments,\n ExtractPropTypes,\n VNode,\n VNodeArrayChildren,\n} from 'vue'\nimport type { UseResizeObserverReturn } from '@vueuse/core'\n\nexport const menuProps = buildProps({\n /**\n * @description menu display mode\n */\n mode: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'vertical',\n },\n /**\n * @description index of active menu on page load\n */\n defaultActive: {\n type: String,\n default: '',\n },\n /**\n * @description array that contains indexes of currently active sub-menus\n */\n defaultOpeneds: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether only one sub-menu can be active\n */\n uniqueOpened: Boolean,\n /**\n * @description whether `vue-router` mode is activated. If true, index will be used as 'path' to activate the route action. Use with `default-active` to set the active item on load.\n */\n router: Boolean,\n /**\n * @description how sub-menus are triggered, only works when `mode` is 'horizontal'\n */\n menuTrigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether the menu is collapsed (available only in vertical mode)\n */\n collapse: Boolean,\n /**\n * @description background color of Menu (hex format) (deprecated, use `--bg-color` instead)\n * @deprecated use `--bg-color` instead\n */\n backgroundColor: String,\n /**\n * @description text color of Menu (hex format) (deprecated, use `--text-color` instead)\n * @deprecated use `--text-color` instead\n */\n textColor: String,\n /**\n * @description text color of currently active menu item (hex format) (deprecated, use `--active-color` instead)\n * @deprecated use `--active-color` instead\n */\n activeTextColor: String,\n /**\n * @description optional, whether menu is collapsed when clicking outside\n */\n closeOnClickOutside: Boolean,\n /**\n * @description whether to enable the collapse transition\n */\n collapseTransition: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the menu is ellipsis (available only in horizontal mode)\n */\n ellipsis: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the popper (effective for all submenus)\n */\n popperOffset: {\n type: Number,\n default: 6,\n },\n /**\n * @description custom ellipsis icon (available only in horizontal mode and ellipsis is true)\n */\n ellipsisIcon: {\n type: iconPropType,\n default: () => More,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light` when menu is collapsed\n */\n popperEffect: {\n type: definePropType<PopperEffect | string>(String),\n default: 'dark',\n },\n /**\n * @description custom class name for all popup menus\n */\n popperClass: String,\n /**\n * @description control timeout for all menus before showing\n */\n showTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description control timeout for all menus before hiding\n */\n hideTimeout: {\n type: Number,\n default: 300,\n },\n} as const)\nexport type MenuProps = ExtractPropTypes<typeof menuProps>\n\nconst checkIndexPath = (indexPath: unknown): indexPath is string[] =>\n isArray(indexPath) && indexPath.every((path) => isString(path))\n\nexport const menuEmits = {\n close: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n open: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n select: (\n index: string,\n indexPath: string[],\n item: MenuItemClicked,\n routerResult?: Promise<void | NavigationFailure>\n ) =>\n isString(index) &&\n checkIndexPath(indexPath) &&\n isObject(item) &&\n (routerResult === undefined || routerResult instanceof Promise),\n}\nexport type MenuEmits = typeof menuEmits\n\nexport default defineComponent({\n name: 'ElMenu',\n\n props: menuProps,\n emits: menuEmits,\n\n setup(props, { emit, slots, expose }) {\n const instance = getCurrentInstance()!\n const router = instance.appContext.config.globalProperties.$router as Router\n const menu = ref<HTMLUListElement>()\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n\n // data\n const sliceIndex = ref(-1)\n\n const openedMenus = ref<MenuProvider['openedMenus']>(\n props.defaultOpeneds && !props.collapse\n ? props.defaultOpeneds.slice(0)\n : []\n )\n const activeIndex = ref<MenuProvider['activeIndex']>(props.defaultActive)\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n // computed\n const isMenuPopup = computed<MenuProvider['isMenuPopup']>(() => {\n return (\n props.mode === 'horizontal' ||\n (props.mode === 'vertical' && props.collapse)\n )\n })\n\n // methods\n const initMenu = () => {\n const activeItem = activeIndex.value && items.value[activeIndex.value]\n if (!activeItem || props.mode === 'horizontal' || props.collapse) return\n\n const indexPath = activeItem.indexPath\n\n // 展开该菜单项的路径上所有子菜单\n // expand all subMenus of the menu item\n indexPath.forEach((index) => {\n const subMenu = subMenus.value[index]\n subMenu && openMenu(index, subMenu.indexPath)\n })\n }\n\n const openMenu: MenuProvider['openMenu'] = (index, indexPath) => {\n if (openedMenus.value.includes(index)) return\n // 将不在该菜单路径下的其余菜单收起\n // collapse all menu that are not under current menu item\n if (props.uniqueOpened) {\n openedMenus.value = openedMenus.value.filter((index: string) =>\n indexPath.includes(index)\n )\n }\n openedMenus.value.push(index)\n emit('open', index, indexPath)\n }\n\n const close = (index: string) => {\n const i = openedMenus.value.indexOf(index)\n if (i !== -1) {\n openedMenus.value.splice(i, 1)\n }\n }\n\n const closeMenu: MenuProvider['closeMenu'] = (index, indexPath) => {\n close(index)\n emit('close', index, indexPath)\n }\n\n const handleSubMenuClick: MenuProvider['handleSubMenuClick'] = ({\n index,\n indexPath,\n }) => {\n const isOpened = openedMenus.value.includes(index)\n\n if (isOpened) {\n closeMenu(index, indexPath)\n } else {\n openMenu(index, indexPath)\n }\n }\n\n const handleMenuItemClick: MenuProvider['handleMenuItemClick'] = (\n menuItem\n ) => {\n if (props.mode === 'horizontal' || props.collapse) {\n openedMenus.value = []\n }\n\n const { index, indexPath } = menuItem\n if (isNil(index) || isNil(indexPath)) return\n\n if (props.router && router) {\n const route = menuItem.route || index\n const routerResult = router.push(route).then((res) => {\n if (!res) activeIndex.value = index\n return res\n })\n emit(\n 'select',\n index,\n indexPath,\n { index, indexPath, route },\n routerResult\n )\n } else {\n activeIndex.value = index\n emit('select', index, indexPath, { index, indexPath })\n }\n }\n\n const updateActiveIndex = (val: string) => {\n const itemsInData = items.value\n const item =\n itemsInData[val] ||\n (activeIndex.value && itemsInData[activeIndex.value]) ||\n itemsInData[props.defaultActive]\n\n if (item) {\n activeIndex.value = item.index\n } else {\n activeIndex.value = val\n }\n }\n\n const calcMenuItemWidth = (menuItem: HTMLElement) => {\n const computedStyle = getComputedStyle(menuItem)\n const marginLeft = Number.parseInt(computedStyle.marginLeft, 10)\n const marginRight = Number.parseInt(computedStyle.marginRight, 10)\n return menuItem.offsetWidth + marginLeft + marginRight || 0\n }\n\n const calcSliceIndex = () => {\n if (!menu.value) return -1\n const items = Array.from(menu.value?.childNodes ?? []).filter(\n (item) =>\n // remove comment type node #12634\n item.nodeName !== '#comment' &&\n (item.nodeName !== '#text' || item.nodeValue)\n ) as HTMLElement[]\n const moreItemWidth = 64\n const computedMenuStyle = getComputedStyle(menu.value!)\n const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10)\n const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10)\n const menuWidth = menu.value!.clientWidth - paddingLeft - paddingRight\n let calcWidth = 0\n let sliceIndex = 0\n items.forEach((item, index) => {\n calcWidth += calcMenuItemWidth(item)\n if (calcWidth <= menuWidth - moreItemWidth) {\n sliceIndex = index + 1\n }\n })\n return sliceIndex === items.length ? -1 : sliceIndex\n }\n\n const getIndexPath = (index: string) => subMenus.value[index].indexPath\n\n // Common computer monitor FPS is 60Hz, which means 60 redraws per second. Calculation formula: 1000ms/60 ≈ 16.67ms, In order to avoid a certain chance of repeated triggering when `resize`, set wait to 16.67 * 2 = 33.34\n const debounce = (fn: () => void, wait = 33.34) => {\n let timmer: ReturnType<typeof setTimeout> | null\n return () => {\n timmer && clearTimeout(timmer)\n timmer = setTimeout(() => {\n fn()\n }, wait)\n }\n }\n\n let isFirstTimeRender = true\n const handleResize = () => {\n if (sliceIndex.value === calcSliceIndex()) return\n const callback = () => {\n sliceIndex.value = -1\n nextTick(() => {\n sliceIndex.value = calcSliceIndex()\n })\n }\n // execute callback directly when first time resize to avoid shaking\n isFirstTimeRender ? callback() : debounce(callback)()\n isFirstTimeRender = false\n }\n\n watch(\n () => props.defaultActive,\n (currentActive) => {\n if (!items.value[currentActive]) {\n activeIndex.value = ''\n }\n updateActiveIndex(currentActive)\n }\n )\n\n watch(\n () => props.collapse,\n (value) => {\n if (value) openedMenus.value = []\n }\n )\n\n watch(items.value, initMenu)\n\n let resizeStopper: UseResizeObserverReturn['stop']\n watchEffect(() => {\n if (props.mode === 'horizontal' && props.ellipsis)\n resizeStopper = useResizeObserver(menu, handleResize).stop\n else resizeStopper?.()\n })\n\n const mouseInChild = ref(false)\n\n // provide\n {\n const addSubMenu: MenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n\n const removeSubMenu: MenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n\n const addMenuItem: MenuProvider['addMenuItem'] = (item) => {\n items.value[item.index] = item\n }\n\n const removeMenuItem: MenuProvider['removeMenuItem'] = (item) => {\n delete items.value[item.index]\n }\n provide<MenuProvider>(\n 'rootMenu',\n reactive({\n props,\n openedMenus,\n items,\n subMenus,\n activeIndex,\n isMenuPopup,\n\n addMenuItem,\n removeMenuItem,\n addSubMenu,\n removeSubMenu,\n openMenu,\n closeMenu,\n handleMenuItemClick,\n handleSubMenuClick,\n })\n )\n provide<SubMenuProvider>(`subMenu:${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n mouseInChild,\n level: 0,\n })\n }\n\n // lifecycle\n onMounted(() => {\n if (props.mode === 'horizontal') {\n new Menubar(instance.vnode.el!, nsMenu.namespace.value)\n }\n })\n\n {\n const open = (index: string) => {\n const { indexPath } = subMenus.value[index]\n indexPath.forEach((i) => openMenu(i, indexPath))\n }\n\n expose({\n open,\n close,\n handleResize,\n })\n }\n\n const ulStyle = useMenuCssVar(props, 0)\n\n return () => {\n let slot: VNodeArrayChildren = slots.default?.() ?? []\n const vShowMore: VNode[] = []\n\n if (props.mode === 'horizontal' && menu.value) {\n const originalSlot = flattedChildren(slot) as VNodeArrayChildren\n const slotDefault =\n sliceIndex.value === -1\n ? originalSlot\n : originalSlot.slice(0, sliceIndex.value)\n\n const slotMore =\n sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value)\n\n if (slotMore?.length && props.ellipsis) {\n slot = slotDefault\n vShowMore.push(\n h(\n ElSubMenu,\n {\n index: 'sub-menu-more',\n class: nsSubMenu.e('hide-arrow'),\n popperOffset: props.popperOffset,\n },\n {\n title: () =>\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-more'),\n },\n {\n default: () => h(props.ellipsisIcon as Component),\n }\n ),\n default: () => slotMore,\n }\n )\n )\n }\n }\n\n const directives: DirectiveArguments = props.closeOnClickOutside\n ? [\n [\n vClickoutside,\n () => {\n if (!openedMenus.value.length) return\n\n if (!mouseInChild.value) {\n openedMenus.value.forEach((openedMenu) =>\n emit('close', openedMenu, getIndexPath(openedMenu))\n )\n\n openedMenus.value = []\n }\n },\n ],\n ]\n : []\n\n const vMenu = withDirectives(\n h(\n 'ul',\n {\n key: String(props.collapse),\n role: 'menubar',\n ref: menu,\n style: ulStyle.value,\n class: {\n [nsMenu.b()]: true,\n [nsMenu.m(props.mode)]: true,\n [nsMenu.m('collapse')]: props.collapse,\n },\n },\n [...slot, ...vShowMore]\n ),\n directives\n )\n\n if (props.collapseTransition && props.mode === 'vertical') {\n return h(ElMenuCollapseTransition, () => vMenu)\n }\n\n return vMenu\n }\n },\n})\n"],"names":["buildProps","definePropType","mutable","iconPropType","More","isArray","isString","isObject","defineComponent","getCurrentInstance","ref","useNamespace","computed","isNil","nextTick","watch","watchEffect","useResizeObserver","provide","reactive","onMounted","Menubar","useMenuCssVar","flattedChildren","h","ElSubMenu","ElIcon","vClickoutside","withDirectives","ElMenuCollapseTransition"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkCY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO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AC,YAAY,CAAC,KAAK,EAAE;AACrC,cAAc,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC7G,cAAc,WAAW,CAAC,KAAK,GAAG,EAAE,CAAC;AACrC,aAAa;AACb,WAAW;AACX,SAAS;AACT,OAAO,GAAG,EAAE,CAAC;AACb,MAAM,MAAM,KAAK,GAAGC,kBAAc,CAACJ,KAAC,CAAC,IAAI,EAAE;AAC3C,QAAQ,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AACnC,QAAQ,IAAI,EAAE,SAAS;AACvB,QAAQ,GAAG,EAAE,IAAI;AACjB,QAAQ,KAAK,EAAE,OAAO,CAAC,KAAK;AAC5B,QAAQ,KAAK,EAAE;AACf,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI;AAC5B,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI;AACtC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ;AAChD,SAAS;AACT,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC/C,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;AACjE,QAAQ,OAAOA,KAAC,CAACK,iCAAwB,EAAE,MAAM,KAAK,CAAC,CAAC;AACxD,OAAO;AACP,MAAM,OAAO,KAAK,CAAC;AACnB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;;"}
1
+ {"version":3,"file":"menu.js","sources":["../../../../../../packages/components/menu/src/menu.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n nextTick,\n onMounted,\n provide,\n reactive,\n ref,\n watch,\n watchEffect,\n withDirectives,\n} from 'vue'\n\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport ElIcon from '@element-plus/components/icon'\nimport { More } from '@element-plus/icons-vue'\nimport {\n buildProps,\n definePropType,\n flattedChildren,\n iconPropType,\n isArray,\n isObject,\n isString,\n mutable,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ClickOutside as vClickoutside } from '@element-plus/directives'\nimport Menubar from './utils/menu-bar'\nimport ElMenuCollapseTransition from './menu-collapse-transition.vue'\nimport ElSubMenu from './sub-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\nimport type { PopperEffect } from '@element-plus/components/popper'\n\nimport type { MenuItemClicked, MenuProvider, SubMenuProvider } from './types'\nimport type { NavigationFailure, Router } from 'vue-router'\nimport type {\n Component,\n DirectiveArguments,\n ExtractPropTypes,\n VNode,\n VNodeArrayChildren,\n} from 'vue'\nimport type { UseResizeObserverReturn } from '@vueuse/core'\n\nexport const menuProps = buildProps({\n /**\n * @description menu display mode\n */\n mode: {\n type: String,\n values: ['horizontal', 'vertical'],\n default: 'vertical',\n },\n /**\n * @description index of active menu on page load\n */\n defaultActive: {\n type: String,\n default: '',\n },\n /**\n * @description array that contains indexes of currently active sub-menus\n */\n defaultOpeneds: {\n type: definePropType<string[]>(Array),\n default: () => mutable([] as const),\n },\n /**\n * @description whether only one sub-menu can be active\n */\n uniqueOpened: Boolean,\n /**\n * @description whether `vue-router` mode is activated. If true, index will be used as 'path' to activate the route action. Use with `default-active` to set the active item on load.\n */\n router: Boolean,\n /**\n * @description how sub-menus are triggered, only works when `mode` is 'horizontal'\n */\n menuTrigger: {\n type: String,\n values: ['hover', 'click'],\n default: 'hover',\n },\n /**\n * @description whether the menu is collapsed (available only in vertical mode)\n */\n collapse: Boolean,\n /**\n * @description background color of Menu (hex format) (deprecated, use `--bg-color` instead)\n * @deprecated use `--bg-color` instead\n */\n backgroundColor: String,\n /**\n * @description text color of Menu (hex format) (deprecated, use `--text-color` instead)\n * @deprecated use `--text-color` instead\n */\n textColor: String,\n /**\n * @description text color of currently active menu item (hex format) (deprecated, use `--active-color` instead)\n * @deprecated use `--active-color` instead\n */\n activeTextColor: String,\n /**\n * @description optional, whether menu is collapsed when clicking outside\n */\n closeOnClickOutside: Boolean,\n /**\n * @description whether to enable the collapse transition\n */\n collapseTransition: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the menu is ellipsis (available only in horizontal mode)\n */\n ellipsis: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the popper (effective for all submenus)\n */\n popperOffset: {\n type: Number,\n default: 6,\n },\n /**\n * @description custom ellipsis icon (available only in horizontal mode and ellipsis is true)\n */\n ellipsisIcon: {\n type: iconPropType,\n default: () => More,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light` when menu is collapsed\n */\n popperEffect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n /**\n * @description custom class name for all popup menus\n */\n popperClass: String,\n /**\n * @description control timeout for all menus before showing\n */\n showTimeout: {\n type: Number,\n default: 300,\n },\n /**\n * @description control timeout for all menus before hiding\n */\n hideTimeout: {\n type: Number,\n default: 300,\n },\n} as const)\nexport type MenuProps = ExtractPropTypes<typeof menuProps>\n\nconst checkIndexPath = (indexPath: unknown): indexPath is string[] =>\n isArray(indexPath) && indexPath.every((path) => isString(path))\n\nexport const menuEmits = {\n close: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n open: (index: string, indexPath: string[]) =>\n isString(index) && checkIndexPath(indexPath),\n\n select: (\n index: string,\n indexPath: string[],\n item: MenuItemClicked,\n routerResult?: Promise<void | NavigationFailure>\n ) =>\n isString(index) &&\n checkIndexPath(indexPath) &&\n isObject(item) &&\n (routerResult === undefined || routerResult instanceof Promise),\n}\nexport type MenuEmits = typeof menuEmits\n\nexport default defineComponent({\n name: 'ElMenu',\n\n props: menuProps,\n emits: menuEmits,\n\n setup(props, { emit, slots, expose }) {\n const instance = getCurrentInstance()!\n const router = instance.appContext.config.globalProperties.$router as Router\n const menu = ref<HTMLUListElement>()\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n\n // data\n const sliceIndex = ref(-1)\n\n const openedMenus = ref<MenuProvider['openedMenus']>(\n props.defaultOpeneds && !props.collapse\n ? props.defaultOpeneds.slice(0)\n : []\n )\n const activeIndex = ref<MenuProvider['activeIndex']>(props.defaultActive)\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n // computed\n const isMenuPopup = computed<MenuProvider['isMenuPopup']>(() => {\n return (\n props.mode === 'horizontal' ||\n (props.mode === 'vertical' && props.collapse)\n )\n })\n\n // methods\n const initMenu = () => {\n const activeItem = activeIndex.value && items.value[activeIndex.value]\n if (!activeItem || props.mode === 'horizontal' || props.collapse) return\n\n const indexPath = activeItem.indexPath\n\n // 展开该菜单项的路径上所有子菜单\n // expand all subMenus of the menu item\n indexPath.forEach((index) => {\n const subMenu = subMenus.value[index]\n subMenu && openMenu(index, subMenu.indexPath)\n })\n }\n\n const openMenu: MenuProvider['openMenu'] = (index, indexPath) => {\n if (openedMenus.value.includes(index)) return\n // 将不在该菜单路径下的其余菜单收起\n // collapse all menu that are not under current menu item\n if (props.uniqueOpened) {\n openedMenus.value = openedMenus.value.filter((index: string) =>\n indexPath.includes(index)\n )\n }\n openedMenus.value.push(index)\n emit('open', index, indexPath)\n }\n\n const close = (index: string) => {\n const i = openedMenus.value.indexOf(index)\n if (i !== -1) {\n openedMenus.value.splice(i, 1)\n }\n }\n\n const closeMenu: MenuProvider['closeMenu'] = (index, indexPath) => {\n close(index)\n emit('close', index, indexPath)\n }\n\n const handleSubMenuClick: MenuProvider['handleSubMenuClick'] = ({\n index,\n indexPath,\n }) => {\n const isOpened = openedMenus.value.includes(index)\n\n if (isOpened) {\n closeMenu(index, indexPath)\n } else {\n openMenu(index, indexPath)\n }\n }\n\n const handleMenuItemClick: MenuProvider['handleMenuItemClick'] = (\n menuItem\n ) => {\n if (props.mode === 'horizontal' || props.collapse) {\n openedMenus.value = []\n }\n\n const { index, indexPath } = menuItem\n if (isNil(index) || isNil(indexPath)) return\n\n if (props.router && router) {\n const route = menuItem.route || index\n const routerResult = router.push(route).then((res) => {\n if (!res) activeIndex.value = index\n return res\n })\n emit(\n 'select',\n index,\n indexPath,\n { index, indexPath, route },\n routerResult\n )\n } else {\n activeIndex.value = index\n emit('select', index, indexPath, { index, indexPath })\n }\n }\n\n const updateActiveIndex = (val: string) => {\n const itemsInData = items.value\n const item =\n itemsInData[val] ||\n (activeIndex.value && itemsInData[activeIndex.value]) ||\n itemsInData[props.defaultActive]\n\n if (item) {\n activeIndex.value = item.index\n } else {\n activeIndex.value = val\n }\n }\n\n const calcMenuItemWidth = (menuItem: HTMLElement) => {\n const computedStyle = getComputedStyle(menuItem)\n const marginLeft = Number.parseInt(computedStyle.marginLeft, 10)\n const marginRight = Number.parseInt(computedStyle.marginRight, 10)\n return menuItem.offsetWidth + marginLeft + marginRight || 0\n }\n\n const calcSliceIndex = () => {\n if (!menu.value) return -1\n const items = Array.from(menu.value?.childNodes ?? []).filter(\n (item) =>\n // remove comment type node #12634\n item.nodeName !== '#comment' &&\n (item.nodeName !== '#text' || item.nodeValue)\n ) as HTMLElement[]\n const moreItemWidth = 64\n const computedMenuStyle = getComputedStyle(menu.value!)\n const paddingLeft = Number.parseInt(computedMenuStyle.paddingLeft, 10)\n const paddingRight = Number.parseInt(computedMenuStyle.paddingRight, 10)\n const menuWidth = menu.value!.clientWidth - paddingLeft - paddingRight\n let calcWidth = 0\n let sliceIndex = 0\n items.forEach((item, index) => {\n calcWidth += calcMenuItemWidth(item)\n if (calcWidth <= menuWidth - moreItemWidth) {\n sliceIndex = index + 1\n }\n })\n return sliceIndex === items.length ? -1 : sliceIndex\n }\n\n const getIndexPath = (index: string) => subMenus.value[index].indexPath\n\n // Common computer monitor FPS is 60Hz, which means 60 redraws per second. Calculation formula: 1000ms/60 ≈ 16.67ms, In order to avoid a certain chance of repeated triggering when `resize`, set wait to 16.67 * 2 = 33.34\n const debounce = (fn: () => void, wait = 33.34) => {\n let timmer: ReturnType<typeof setTimeout> | null\n return () => {\n timmer && clearTimeout(timmer)\n timmer = setTimeout(() => {\n fn()\n }, wait)\n }\n }\n\n let isFirstTimeRender = true\n const handleResize = () => {\n if (sliceIndex.value === calcSliceIndex()) return\n const callback = () => {\n sliceIndex.value = -1\n nextTick(() => {\n sliceIndex.value = calcSliceIndex()\n })\n }\n // execute callback directly when first time resize to avoid shaking\n isFirstTimeRender ? callback() : debounce(callback)()\n isFirstTimeRender = false\n }\n\n watch(\n () => props.defaultActive,\n (currentActive) => {\n if (!items.value[currentActive]) {\n activeIndex.value = ''\n }\n updateActiveIndex(currentActive)\n }\n )\n\n watch(\n () => props.collapse,\n (value) => {\n if (value) openedMenus.value = []\n }\n )\n\n watch(items.value, initMenu)\n\n let resizeStopper: UseResizeObserverReturn['stop']\n watchEffect(() => {\n if (props.mode === 'horizontal' && props.ellipsis)\n resizeStopper = useResizeObserver(menu, handleResize).stop\n else resizeStopper?.()\n })\n\n const mouseInChild = ref(false)\n\n // provide\n {\n const addSubMenu: MenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n\n const removeSubMenu: MenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n\n const addMenuItem: MenuProvider['addMenuItem'] = (item) => {\n items.value[item.index] = item\n }\n\n const removeMenuItem: MenuProvider['removeMenuItem'] = (item) => {\n delete items.value[item.index]\n }\n provide<MenuProvider>(\n 'rootMenu',\n reactive({\n props,\n openedMenus,\n items,\n subMenus,\n activeIndex,\n isMenuPopup,\n\n addMenuItem,\n removeMenuItem,\n addSubMenu,\n removeSubMenu,\n openMenu,\n closeMenu,\n handleMenuItemClick,\n handleSubMenuClick,\n })\n )\n provide<SubMenuProvider>(`subMenu:${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n mouseInChild,\n level: 0,\n })\n }\n\n // lifecycle\n onMounted(() => {\n if (props.mode === 'horizontal') {\n new Menubar(instance.vnode.el!, nsMenu.namespace.value)\n }\n })\n\n {\n const open = (index: string) => {\n const { indexPath } = subMenus.value[index]\n indexPath.forEach((i) => openMenu(i, indexPath))\n }\n\n expose({\n open,\n close,\n handleResize,\n })\n }\n\n const ulStyle = useMenuCssVar(props, 0)\n\n return () => {\n let slot: VNodeArrayChildren = slots.default?.() ?? []\n const vShowMore: VNode[] = []\n\n if (props.mode === 'horizontal' && menu.value) {\n const originalSlot = flattedChildren(slot) as VNodeArrayChildren\n const slotDefault =\n sliceIndex.value === -1\n ? originalSlot\n : originalSlot.slice(0, sliceIndex.value)\n\n const slotMore =\n sliceIndex.value === -1 ? [] : originalSlot.slice(sliceIndex.value)\n\n if (slotMore?.length && props.ellipsis) {\n slot = slotDefault\n vShowMore.push(\n h(\n ElSubMenu,\n {\n index: 'sub-menu-more',\n class: nsSubMenu.e('hide-arrow'),\n popperOffset: props.popperOffset,\n },\n {\n title: () =>\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-more'),\n },\n {\n default: () => h(props.ellipsisIcon as Component),\n }\n ),\n default: () => slotMore,\n }\n )\n )\n }\n }\n\n const directives: DirectiveArguments = props.closeOnClickOutside\n ? [\n [\n vClickoutside,\n () => {\n if (!openedMenus.value.length) return\n\n if (!mouseInChild.value) {\n openedMenus.value.forEach((openedMenu) =>\n emit('close', openedMenu, getIndexPath(openedMenu))\n )\n\n openedMenus.value = []\n }\n },\n ],\n ]\n : []\n\n const vMenu = withDirectives(\n h(\n 'ul',\n {\n key: String(props.collapse),\n role: 'menubar',\n ref: menu,\n style: ulStyle.value,\n class: {\n [nsMenu.b()]: true,\n [nsMenu.m(props.mode)]: true,\n [nsMenu.m('collapse')]: props.collapse,\n },\n },\n [...slot, ...vShowMore]\n ),\n directives\n )\n\n if (props.collapseTransition && props.mode === 'vertical') {\n return h(ElMenuCollapseTransition, () => vMenu)\n }\n\n return vMenu\n }\n },\n})\n"],"names":["buildProps","definePropType","mutable","iconPropType","More","isArray","isString","isObject","defineComponent","getCurrentInstance","ref","useNamespace","computed","isNil","nextTick","watch","watchEffect","useResizeObserver","provide","reactive","onMounted","Menubar","useMenuCssVar","flattedChildren","h","ElSubMenu","ElIcon","vClickoutside","withDirectives","ElMenuCollapseTransition"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkCY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,CAAC,EAAE,CAAC;AAC9B,GAAG;AACH,EAAE,YAAY,EAAE,OAAO;AACvB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAC9B,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,eAAe,EAAE,MAAM;AACzB,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,eAAe,EAAE,MAAM;AACzB,EAAE,mBAAmB,EAAE,OAAO;AAC9B,EAAE,kBAAkB,EAAE;AACtB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EA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CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ;AAChD,SAAS;AACT,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC/C,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,EAAE;AACjE,QAAQ,OAAOA,KAAC,CAACK,iCAAwB,EAAE,MAAM,KAAK,CAAC,CAAC;AACxD,OAAO;AACP,MAAM,OAAO,KAAK,CAAC;AACnB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var method = require('./src/method.js');
6
- var message = require('./src/message2.js');
6
+ var message = require('./src/message.js');
7
7
  var install = require('../../utils/vue/install.js');
8
8
 
9
9
  const ElMessage = install.withInstallFunction(method["default"], "$message");