@element-plus/nightly 0.0.20241230 → 0.0.20250101

Sign up to get free protection for your applications and to get access to all the features.
Files changed (574) hide show
  1. package/dist/index.full.js +11 -15
  2. package/dist/index.full.min.js +4 -4
  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 +11 -15
  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/anchor/index.mjs +1 -1
  252. package/es/components/anchor/src/anchor-link.mjs +81 -5
  253. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  254. package/es/components/anchor/src/anchor-link2.mjs +5 -81
  255. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  256. package/es/components/button/index.mjs +1 -1
  257. package/es/components/button/src/button-group.mjs +29 -6
  258. package/es/components/button/src/button-group.mjs.map +1 -1
  259. package/es/components/button/src/button-group2.mjs +6 -29
  260. package/es/components/button/src/button-group2.mjs.map +1 -1
  261. package/es/components/card/index.mjs +2 -2
  262. package/es/components/card/src/card.mjs +20 -42
  263. package/es/components/card/src/card.mjs.map +1 -1
  264. package/es/components/card/src/card2.mjs +42 -20
  265. package/es/components/card/src/card2.mjs.map +1 -1
  266. package/es/components/carousel/index.mjs +4 -4
  267. package/es/components/carousel/src/carousel-item.mjs +7 -69
  268. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  269. package/es/components/carousel/src/carousel-item2.mjs +69 -7
  270. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  271. package/es/components/carousel/src/carousel.mjs +204 -61
  272. package/es/components/carousel/src/carousel.mjs.map +1 -1
  273. package/es/components/carousel/src/carousel2.mjs +61 -204
  274. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  275. package/es/components/checkbox/index.mjs +4 -4
  276. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  277. package/es/components/checkbox/src/checkbox-group.mjs +29 -71
  278. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  279. package/es/components/checkbox/src/checkbox-group2.mjs +71 -29
  280. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  281. package/es/components/checkbox/src/checkbox.mjs +119 -59
  282. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  283. package/es/components/checkbox/src/checkbox2.mjs +59 -119
  284. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  285. package/es/components/index.mjs +21 -21
  286. package/es/components/link/index.mjs +2 -2
  287. package/es/components/link/src/link.mjs +49 -24
  288. package/es/components/link/src/link.mjs.map +1 -1
  289. package/es/components/link/src/link2.mjs +24 -49
  290. package/es/components/link/src/link2.mjs.map +1 -1
  291. package/es/components/menu/index.mjs +2 -2
  292. package/es/components/menu/src/menu-item.mjs +96 -14
  293. package/es/components/menu/src/menu-item.mjs.map +1 -1
  294. package/es/components/menu/src/menu-item2.mjs +14 -96
  295. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  296. package/es/components/page-header/src/page-header2.mjs +9 -13
  297. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  298. package/es/components/pagination/src/components/jumper.mjs +7 -58
  299. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  300. package/es/components/pagination/src/components/jumper2.mjs +58 -7
  301. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  302. package/es/components/pagination/src/components/next.mjs +18 -35
  303. package/es/components/pagination/src/components/next.mjs.map +1 -1
  304. package/es/components/pagination/src/components/next2.mjs +35 -18
  305. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  306. package/es/components/pagination/src/components/sizes.mjs +23 -71
  307. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  308. package/es/components/pagination/src/components/sizes2.mjs +71 -23
  309. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  310. package/es/components/pagination/src/pagination.mjs +3 -3
  311. package/es/components/popconfirm/index.mjs +2 -2
  312. package/es/components/popconfirm/src/popconfirm.mjs +114 -45
  313. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  314. package/es/components/popconfirm/src/popconfirm2.mjs +45 -114
  315. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  316. package/es/components/popover/index.mjs +2 -2
  317. package/es/components/popover/src/popover.mjs +64 -110
  318. package/es/components/popover/src/popover.mjs.map +1 -1
  319. package/es/components/popover/src/popover2.mjs +110 -64
  320. package/es/components/popover/src/popover2.mjs.map +1 -1
  321. package/es/components/progress/index.mjs +2 -2
  322. package/es/components/progress/src/progress.mjs +207 -53
  323. package/es/components/progress/src/progress.mjs.map +1 -1
  324. package/es/components/progress/src/progress2.mjs +53 -207
  325. package/es/components/progress/src/progress2.mjs.map +1 -1
  326. package/es/components/rate/index.mjs +2 -2
  327. package/es/components/rate/src/rate.mjs +258 -83
  328. package/es/components/rate/src/rate.mjs.map +1 -1
  329. package/es/components/rate/src/rate2.mjs +83 -258
  330. package/es/components/rate/src/rate2.mjs.map +1 -1
  331. package/es/components/row/index.mjs +2 -2
  332. package/es/components/row/src/row.mjs +44 -28
  333. package/es/components/row/src/row.mjs.map +1 -1
  334. package/es/components/row/src/row2.mjs +28 -44
  335. package/es/components/row/src/row2.mjs.map +1 -1
  336. package/es/components/scrollbar/src/bar.mjs +10 -64
  337. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  338. package/es/components/scrollbar/src/bar2.mjs +64 -10
  339. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  340. package/es/components/scrollbar/src/scrollbar2.mjs +1 -1
  341. package/es/components/segmented/index.mjs +2 -2
  342. package/es/components/segmented/src/segmented.mjs +33 -167
  343. package/es/components/segmented/src/segmented.mjs.map +1 -1
  344. package/es/components/segmented/src/segmented2.mjs +167 -33
  345. package/es/components/segmented/src/segmented2.mjs.map +1 -1
  346. package/es/components/skeleton/index.mjs +2 -2
  347. package/es/components/skeleton/src/skeleton.mjs +48 -21
  348. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  349. package/es/components/skeleton/src/skeleton2.mjs +21 -48
  350. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  351. package/es/components/slider/index.mjs +2 -2
  352. package/es/components/slider/src/slider.mjs +88 -238
  353. package/es/components/slider/src/slider.mjs.map +1 -1
  354. package/es/components/slider/src/slider2.mjs +238 -88
  355. package/es/components/slider/src/slider2.mjs.map +1 -1
  356. package/es/components/steps/index.mjs +4 -4
  357. package/es/components/steps/src/item.mjs +190 -19
  358. package/es/components/steps/src/item.mjs.map +1 -1
  359. package/es/components/steps/src/item2.mjs +19 -190
  360. package/es/components/steps/src/item2.mjs.map +1 -1
  361. package/es/components/steps/src/steps.mjs +38 -35
  362. package/es/components/steps/src/steps.mjs.map +1 -1
  363. package/es/components/steps/src/steps2.mjs +35 -38
  364. package/es/components/steps/src/steps2.mjs.map +1 -1
  365. package/es/components/text/index.mjs +2 -2
  366. package/es/components/text/src/text.mjs +21 -36
  367. package/es/components/text/src/text.mjs.map +1 -1
  368. package/es/components/text/src/text2.mjs +36 -21
  369. package/es/components/text/src/text2.mjs.map +1 -1
  370. package/es/components/time-select/index.mjs +2 -2
  371. package/es/components/time-select/src/time-select.mjs +50 -123
  372. package/es/components/time-select/src/time-select.mjs.map +1 -1
  373. package/es/components/time-select/src/time-select2.mjs +123 -50
  374. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  375. package/es/components/tooltip-v2/index.mjs +5 -5
  376. package/es/components/tooltip-v2/src/content.mjs +110 -48
  377. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  378. package/es/components/tooltip-v2/src/content2.mjs +48 -110
  379. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  380. package/es/components/tooltip-v2/src/root.mjs +17 -79
  381. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  382. package/es/components/tooltip-v2/src/root2.mjs +79 -17
  383. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  384. package/es/components/tooltip-v2/src/tooltip.mjs +20 -78
  385. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  386. package/es/components/tooltip-v2/src/tooltip2.mjs +78 -20
  387. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  388. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  389. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  390. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  391. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  392. package/es/components/tour/index.mjs +1 -1
  393. package/es/components/tour/src/content.mjs +43 -67
  394. package/es/components/tour/src/content.mjs.map +1 -1
  395. package/es/components/tour/src/content2.mjs +67 -43
  396. package/es/components/tour/src/content2.mjs.map +1 -1
  397. package/es/components/tour/src/step.mjs +1 -1
  398. package/es/components/tour/src/tour.mjs +1 -1
  399. package/es/components/tour/src/tour2.mjs +1 -1
  400. package/es/components/upload/index.mjs +1 -1
  401. package/es/components/upload/src/upload-content2.mjs +1 -1
  402. package/es/components/upload/src/upload-dragger.mjs +47 -10
  403. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  404. package/es/components/upload/src/upload-dragger2.mjs +10 -47
  405. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  406. package/es/components/upload/src/use-handlers.mjs +1 -1
  407. package/es/components/upload/src/use-handlers.mjs.map +1 -1
  408. package/es/index.mjs +21 -21
  409. package/es/version.d.ts +1 -1
  410. package/es/version.mjs +1 -1
  411. package/es/version.mjs.map +1 -1
  412. package/lib/components/anchor/index.js +1 -1
  413. package/lib/components/anchor/src/anchor-link.js +81 -5
  414. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  415. package/lib/components/anchor/src/anchor-link2.js +5 -81
  416. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  417. package/lib/components/button/index.js +1 -1
  418. package/lib/components/button/src/button-group.js +29 -6
  419. package/lib/components/button/src/button-group.js.map +1 -1
  420. package/lib/components/button/src/button-group2.js +6 -29
  421. package/lib/components/button/src/button-group2.js.map +1 -1
  422. package/lib/components/card/index.js +2 -2
  423. package/lib/components/card/src/card.js +20 -42
  424. package/lib/components/card/src/card.js.map +1 -1
  425. package/lib/components/card/src/card2.js +42 -20
  426. package/lib/components/card/src/card2.js.map +1 -1
  427. package/lib/components/carousel/index.js +4 -4
  428. package/lib/components/carousel/src/carousel-item.js +7 -69
  429. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  430. package/lib/components/carousel/src/carousel-item2.js +69 -7
  431. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  432. package/lib/components/carousel/src/carousel.js +204 -62
  433. package/lib/components/carousel/src/carousel.js.map +1 -1
  434. package/lib/components/carousel/src/carousel2.js +62 -204
  435. package/lib/components/carousel/src/carousel2.js.map +1 -1
  436. package/lib/components/checkbox/index.js +4 -4
  437. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  438. package/lib/components/checkbox/src/checkbox-group.js +30 -71
  439. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  440. package/lib/components/checkbox/src/checkbox-group2.js +71 -30
  441. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  442. package/lib/components/checkbox/src/checkbox.js +119 -60
  443. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  444. package/lib/components/checkbox/src/checkbox2.js +60 -119
  445. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  446. package/lib/components/index.js +21 -21
  447. package/lib/components/link/index.js +2 -2
  448. package/lib/components/link/src/link.js +49 -25
  449. package/lib/components/link/src/link.js.map +1 -1
  450. package/lib/components/link/src/link2.js +25 -49
  451. package/lib/components/link/src/link2.js.map +1 -1
  452. package/lib/components/menu/index.js +2 -2
  453. package/lib/components/menu/src/menu-item.js +96 -15
  454. package/lib/components/menu/src/menu-item.js.map +1 -1
  455. package/lib/components/menu/src/menu-item2.js +15 -96
  456. package/lib/components/menu/src/menu-item2.js.map +1 -1
  457. package/lib/components/page-header/src/page-header2.js +8 -12
  458. package/lib/components/page-header/src/page-header2.js.map +1 -1
  459. package/lib/components/pagination/src/components/jumper.js +7 -58
  460. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  461. package/lib/components/pagination/src/components/jumper2.js +58 -7
  462. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  463. package/lib/components/pagination/src/components/next.js +18 -35
  464. package/lib/components/pagination/src/components/next.js.map +1 -1
  465. package/lib/components/pagination/src/components/next2.js +35 -18
  466. package/lib/components/pagination/src/components/next2.js.map +1 -1
  467. package/lib/components/pagination/src/components/sizes.js +23 -71
  468. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  469. package/lib/components/pagination/src/components/sizes2.js +71 -23
  470. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  471. package/lib/components/pagination/src/pagination.js +3 -3
  472. package/lib/components/popconfirm/index.js +2 -2
  473. package/lib/components/popconfirm/src/popconfirm.js +114 -46
  474. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  475. package/lib/components/popconfirm/src/popconfirm2.js +46 -114
  476. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  477. package/lib/components/popover/index.js +2 -2
  478. package/lib/components/popover/src/popover.js +65 -110
  479. package/lib/components/popover/src/popover.js.map +1 -1
  480. package/lib/components/popover/src/popover2.js +110 -65
  481. package/lib/components/popover/src/popover2.js.map +1 -1
  482. package/lib/components/progress/index.js +2 -2
  483. package/lib/components/progress/src/progress.js +207 -53
  484. package/lib/components/progress/src/progress.js.map +1 -1
  485. package/lib/components/progress/src/progress2.js +53 -207
  486. package/lib/components/progress/src/progress2.js.map +1 -1
  487. package/lib/components/rate/index.js +2 -2
  488. package/lib/components/rate/src/rate.js +257 -83
  489. package/lib/components/rate/src/rate.js.map +1 -1
  490. package/lib/components/rate/src/rate2.js +83 -257
  491. package/lib/components/rate/src/rate2.js.map +1 -1
  492. package/lib/components/row/index.js +2 -2
  493. package/lib/components/row/src/row.js +44 -30
  494. package/lib/components/row/src/row.js.map +1 -1
  495. package/lib/components/row/src/row2.js +30 -44
  496. package/lib/components/row/src/row2.js.map +1 -1
  497. package/lib/components/scrollbar/src/bar.js +10 -64
  498. package/lib/components/scrollbar/src/bar.js.map +1 -1
  499. package/lib/components/scrollbar/src/bar2.js +64 -10
  500. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  501. package/lib/components/scrollbar/src/scrollbar2.js +1 -1
  502. package/lib/components/segmented/index.js +2 -2
  503. package/lib/components/segmented/src/segmented.js +34 -167
  504. package/lib/components/segmented/src/segmented.js.map +1 -1
  505. package/lib/components/segmented/src/segmented2.js +167 -34
  506. package/lib/components/segmented/src/segmented2.js.map +1 -1
  507. package/lib/components/skeleton/index.js +2 -2
  508. package/lib/components/skeleton/src/skeleton.js +48 -21
  509. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  510. package/lib/components/skeleton/src/skeleton2.js +21 -48
  511. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  512. package/lib/components/slider/index.js +2 -2
  513. package/lib/components/slider/src/slider.js +89 -238
  514. package/lib/components/slider/src/slider.js.map +1 -1
  515. package/lib/components/slider/src/slider2.js +238 -89
  516. package/lib/components/slider/src/slider2.js.map +1 -1
  517. package/lib/components/steps/index.js +4 -4
  518. package/lib/components/steps/src/item.js +190 -19
  519. package/lib/components/steps/src/item.js.map +1 -1
  520. package/lib/components/steps/src/item2.js +19 -190
  521. package/lib/components/steps/src/item2.js.map +1 -1
  522. package/lib/components/steps/src/steps.js +38 -36
  523. package/lib/components/steps/src/steps.js.map +1 -1
  524. package/lib/components/steps/src/steps2.js +36 -38
  525. package/lib/components/steps/src/steps2.js.map +1 -1
  526. package/lib/components/text/index.js +2 -2
  527. package/lib/components/text/src/text.js +21 -36
  528. package/lib/components/text/src/text.js.map +1 -1
  529. package/lib/components/text/src/text2.js +36 -21
  530. package/lib/components/text/src/text2.js.map +1 -1
  531. package/lib/components/time-select/index.js +2 -2
  532. package/lib/components/time-select/src/time-select.js +50 -128
  533. package/lib/components/time-select/src/time-select.js.map +1 -1
  534. package/lib/components/time-select/src/time-select2.js +128 -50
  535. package/lib/components/time-select/src/time-select2.js.map +1 -1
  536. package/lib/components/tooltip-v2/index.js +5 -5
  537. package/lib/components/tooltip-v2/src/content.js +110 -48
  538. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  539. package/lib/components/tooltip-v2/src/content2.js +48 -110
  540. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  541. package/lib/components/tooltip-v2/src/root.js +17 -79
  542. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  543. package/lib/components/tooltip-v2/src/root2.js +79 -17
  544. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  545. package/lib/components/tooltip-v2/src/tooltip.js +20 -78
  546. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  547. package/lib/components/tooltip-v2/src/tooltip2.js +78 -20
  548. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  549. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  550. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  551. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  552. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  553. package/lib/components/tour/index.js +1 -1
  554. package/lib/components/tour/src/content.js +46 -67
  555. package/lib/components/tour/src/content.js.map +1 -1
  556. package/lib/components/tour/src/content2.js +67 -46
  557. package/lib/components/tour/src/content2.js.map +1 -1
  558. package/lib/components/tour/src/step.js +1 -1
  559. package/lib/components/tour/src/tour.js +1 -1
  560. package/lib/components/tour/src/tour2.js +1 -1
  561. package/lib/components/upload/index.js +1 -1
  562. package/lib/components/upload/src/upload-content2.js +1 -1
  563. package/lib/components/upload/src/upload-dragger.js +47 -11
  564. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  565. package/lib/components/upload/src/upload-dragger2.js +11 -47
  566. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  567. package/lib/components/upload/src/use-handlers.js +1 -1
  568. package/lib/components/upload/src/use-handlers.js.map +1 -1
  569. package/lib/index.js +21 -21
  570. package/lib/version.d.ts +1 -1
  571. package/lib/version.js +1 -1
  572. package/lib/version.js.map +1 -1
  573. package/package.json +2 -2
  574. package/web-types.json +1 -1
@@ -2,33 +2,57 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
6
- var icon = require('../../../utils/vue/icon.js');
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ var link = require('./link2.js');
8
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../hooks/use-namespace/index.js');
7
10
 
8
- const linkProps = runtime.buildProps({
9
- type: {
10
- type: String,
11
- values: ["primary", "success", "warning", "info", "danger", "default"],
12
- default: "default"
13
- },
14
- underline: {
15
- type: Boolean,
16
- default: true
17
- },
18
- disabled: Boolean,
19
- href: { type: String, default: "" },
20
- target: {
21
- type: String,
22
- default: "_self"
23
- },
24
- icon: {
25
- type: icon.iconPropType
11
+ const __default__ = vue.defineComponent({
12
+ name: "ElLink"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: link.linkProps,
17
+ emits: link.linkEmits,
18
+ setup(__props, { emit }) {
19
+ const props = __props;
20
+ const ns = index.useNamespace("link");
21
+ const linkKls = vue.computed(() => [
22
+ ns.b(),
23
+ ns.m(props.type),
24
+ ns.is("disabled", props.disabled),
25
+ ns.is("underline", props.underline && !props.disabled)
26
+ ]);
27
+ function handleClick(event) {
28
+ if (!props.disabled)
29
+ emit("click", event);
30
+ }
31
+ return (_ctx, _cache) => {
32
+ return vue.openBlock(), vue.createElementBlock("a", {
33
+ class: vue.normalizeClass(vue.unref(linkKls)),
34
+ href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
35
+ target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
36
+ onClick: handleClick
37
+ }, [
38
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 0 }, {
39
+ default: vue.withCtx(() => [
40
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
41
+ ]),
42
+ _: 1
43
+ })) : vue.createCommentVNode("v-if", true),
44
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
45
+ key: 1,
46
+ class: vue.normalizeClass(vue.unref(ns).e("inner"))
47
+ }, [
48
+ vue.renderSlot(_ctx.$slots, "default")
49
+ ], 2)) : vue.createCommentVNode("v-if", true),
50
+ _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 2 }) : vue.createCommentVNode("v-if", true)
51
+ ], 10, ["href", "target"]);
52
+ };
26
53
  }
27
54
  });
28
- const linkEmits = {
29
- click: (evt) => evt instanceof MouseEvent
30
- };
55
+ var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "link.vue"]]);
31
56
 
32
- exports.linkEmits = linkEmits;
33
- exports.linkProps = linkProps;
57
+ exports["default"] = Link;
34
58
  //# sourceMappingURL=link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: 'default',\n },\n /**\n * @description whether the component has underline\n */\n underline: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
1
+ {"version":3,"file":"link.js","sources":["../../../../../../packages/components/link/src/link.vue"],"sourcesContent":["<template>\n <a\n :class=\"linkKls\"\n :href=\"disabled || !href ? undefined : href\"\n :target=\"disabled || !href ? undefined : target\"\n @click=\"handleClick\"\n >\n <el-icon v-if=\"icon\"><component :is=\"icon\" /></el-icon>\n <span v-if=\"$slots.default\" :class=\"ns.e('inner')\">\n <slot />\n </span>\n\n <slot v-if=\"$slots.icon\" name=\"icon\" />\n </a>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { linkEmits, linkProps } from './link'\n\ndefineOptions({\n name: 'ElLink',\n})\nconst props = defineProps(linkProps)\nconst emit = defineEmits(linkEmits)\n\nconst ns = useNamespace('link')\n\nconst linkKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.is('disabled', props.disabled),\n ns.is('underline', props.underline && !props.disabled),\n])\n\nfunction handleClick(event: MouseEvent) {\n if (!props.disabled) emit('click', event)\n}\n</script>\n"],"names":["useNamespace","computed"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACf,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MAChC,GAAG,EAAG,CAAA,WAAA,EAAa,MAAM,SAAa,IAAA,CAAC,MAAM,QAAQ,CAAA;AAAA,KACtD,CAAA,CAAA;AAED,IAAA,SAAS,YAAY,KAAmB,EAAA;AACtC,MAAA,IAAI,CAAC,KAAA,CAAM,QAAU;AAAmB,QAC1C,IAAA,CAAA,OAAA,EAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,57 +2,33 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
- var link = require('./link.js');
8
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../hooks/use-namespace/index.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
6
+ var icon = require('../../../utils/vue/icon.js');
10
7
 
11
- const __default__ = vue.defineComponent({
12
- name: "ElLink"
13
- });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: link.linkProps,
17
- emits: link.linkEmits,
18
- setup(__props, { emit }) {
19
- const props = __props;
20
- const ns = index.useNamespace("link");
21
- const linkKls = vue.computed(() => [
22
- ns.b(),
23
- ns.m(props.type),
24
- ns.is("disabled", props.disabled),
25
- ns.is("underline", props.underline && !props.disabled)
26
- ]);
27
- function handleClick(event) {
28
- if (!props.disabled)
29
- emit("click", event);
30
- }
31
- return (_ctx, _cache) => {
32
- return vue.openBlock(), vue.createElementBlock("a", {
33
- class: vue.normalizeClass(vue.unref(linkKls)),
34
- href: _ctx.disabled || !_ctx.href ? void 0 : _ctx.href,
35
- target: _ctx.disabled || !_ctx.href ? void 0 : _ctx.target,
36
- onClick: handleClick
37
- }, [
38
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 0 }, {
39
- default: vue.withCtx(() => [
40
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
41
- ]),
42
- _: 1
43
- })) : vue.createCommentVNode("v-if", true),
44
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
45
- key: 1,
46
- class: vue.normalizeClass(vue.unref(ns).e("inner"))
47
- }, [
48
- vue.renderSlot(_ctx.$slots, "default")
49
- ], 2)) : vue.createCommentVNode("v-if", true),
50
- _ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 2 }) : vue.createCommentVNode("v-if", true)
51
- ], 10, ["href", "target"]);
52
- };
8
+ const linkProps = runtime.buildProps({
9
+ type: {
10
+ type: String,
11
+ values: ["primary", "success", "warning", "info", "danger", "default"],
12
+ default: "default"
13
+ },
14
+ underline: {
15
+ type: Boolean,
16
+ default: true
17
+ },
18
+ disabled: Boolean,
19
+ href: { type: String, default: "" },
20
+ target: {
21
+ type: String,
22
+ default: "_self"
23
+ },
24
+ icon: {
25
+ type: icon.iconPropType
53
26
  }
54
27
  });
55
- var Link = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "link.vue"]]);
28
+ const linkEmits = {
29
+ click: (evt) => evt instanceof MouseEvent
30
+ };
56
31
 
57
- exports["default"] = Link;
32
+ exports.linkEmits = linkEmits;
33
+ exports.linkProps = linkProps;
58
34
  //# sourceMappingURL=link2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link2.js","sources":["../../../../../../packages/components/link/src/link.vue"],"sourcesContent":["<template>\n <a\n :class=\"linkKls\"\n :href=\"disabled || !href ? undefined : href\"\n :target=\"disabled || !href ? undefined : target\"\n @click=\"handleClick\"\n >\n <el-icon v-if=\"icon\"><component :is=\"icon\" /></el-icon>\n <span v-if=\"$slots.default\" :class=\"ns.e('inner')\">\n <slot />\n </span>\n\n <slot v-if=\"$slots.icon\" name=\"icon\" />\n </a>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { linkEmits, linkProps } from './link'\n\ndefineOptions({\n name: 'ElLink',\n})\nconst props = defineProps(linkProps)\nconst emit = defineEmits(linkEmits)\n\nconst ns = useNamespace('link')\n\nconst linkKls = computed(() => [\n ns.b(),\n ns.m(props.type),\n ns.is('disabled', props.disabled),\n ns.is('underline', props.underline && !props.disabled),\n])\n\nfunction handleClick(event: MouseEvent) {\n if (!props.disabled) emit('click', event)\n}\n</script>\n"],"names":["useNamespace","computed"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,QAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,MAAM,CAAA,CAAA;AAE9B,IAAM,MAAA,OAAA,GAAUC,aAAS,MAAM;AAAA,MAC7B,GAAG,CAAE,EAAA;AAAA,MACL,EAAA,CAAG,CAAE,CAAA,KAAA,CAAM,IAAI,CAAA;AAAA,MACf,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,KAAA,CAAM,QAAQ,CAAA;AAAA,MAChC,GAAG,EAAG,CAAA,WAAA,EAAa,MAAM,SAAa,IAAA,CAAC,MAAM,QAAQ,CAAA;AAAA,KACtD,CAAA,CAAA;AAED,IAAA,SAAS,YAAY,KAAmB,EAAA;AACtC,MAAA,IAAI,CAAC,KAAA,CAAM,QAAU;AAAmB,QAC1C,IAAA,CAAA,OAAA,EAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"link2.js","sources":["../../../../../../packages/components/link/src/link.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Link from './link.vue'\n\nexport const linkProps = buildProps({\n /**\n * @description type\n */\n type: {\n type: String,\n values: ['primary', 'success', 'warning', 'info', 'danger', 'default'],\n default: 'default',\n },\n /**\n * @description whether the component has underline\n */\n underline: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether the component is disabled\n */\n disabled: Boolean,\n /**\n * @description same as native hyperlink's `href`\n */\n href: { type: String, default: '' },\n /**\n * @description same as native hyperlink's `target`\n */\n target: {\n type: String as PropType<'_blank' | '_parent' | '_self' | '_top' | string>,\n default: '_self',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n} as const)\nexport type LinkProps = ExtractPropTypes<typeof linkProps>\n\nexport const linkEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type LinkEmits = typeof linkEmits\n\nexport type LinkInstance = InstanceType<typeof Link>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;AAC1E,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var menu = require('./src/menu.js');
6
- var menuItem$1 = require('./src/menu-item2.js');
6
+ var menuItem$1 = require('./src/menu-item.js');
7
7
  var menuItemGroup$1 = require('./src/menu-item-group2.js');
8
8
  var subMenu = require('./src/sub-menu.js');
9
- var menuItem = require('./src/menu-item.js');
9
+ var menuItem = require('./src/menu-item2.js');
10
10
  var menuItemGroup = require('./src/menu-item-group.js');
11
11
  var install = require('../../utils/vue/install.js');
12
12
 
@@ -2,23 +2,104 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../utils/vue/props/runtime.js');
6
- var shared = require('@vue/shared');
5
+ var vue = require('vue');
6
+ var index = require('../../tooltip/index.js');
7
+ var useMenu = require('./use-menu.js');
8
+ var menuItem = require('./menu-item2.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index$1 = require('../../../hooks/use-namespace/index.js');
11
+ var error = require('../../../utils/error.js');
7
12
 
8
- const menuItemProps = runtime.buildProps({
9
- index: {
10
- type: runtime.definePropType([String, null]),
11
- default: null
13
+ const COMPONENT_NAME = "ElMenuItem";
14
+ const _sfc_main = vue.defineComponent({
15
+ name: COMPONENT_NAME,
16
+ components: {
17
+ ElTooltip: index.ElTooltip
12
18
  },
13
- route: {
14
- type: runtime.definePropType([String, Object])
15
- },
16
- disabled: Boolean
19
+ props: menuItem.menuItemProps,
20
+ emits: menuItem.menuItemEmits,
21
+ setup(props, { emit }) {
22
+ const instance = vue.getCurrentInstance();
23
+ const rootMenu = vue.inject("rootMenu");
24
+ const nsMenu = index$1.useNamespace("menu");
25
+ const nsMenuItem = index$1.useNamespace("menu-item");
26
+ if (!rootMenu)
27
+ error.throwError(COMPONENT_NAME, "can not inject root menu");
28
+ const { parentMenu, indexPath } = useMenu["default"](instance, vue.toRef(props, "index"));
29
+ const subMenu = vue.inject(`subMenu:${parentMenu.value.uid}`);
30
+ if (!subMenu)
31
+ error.throwError(COMPONENT_NAME, "can not inject sub menu");
32
+ const active = vue.computed(() => props.index === rootMenu.activeIndex);
33
+ const item = vue.reactive({
34
+ index: props.index,
35
+ indexPath,
36
+ active
37
+ });
38
+ const handleClick = () => {
39
+ if (!props.disabled) {
40
+ rootMenu.handleMenuItemClick({
41
+ index: props.index,
42
+ indexPath: indexPath.value,
43
+ route: props.route
44
+ });
45
+ emit("click", item);
46
+ }
47
+ };
48
+ vue.onMounted(() => {
49
+ subMenu.addSubMenu(item);
50
+ rootMenu.addMenuItem(item);
51
+ });
52
+ vue.onBeforeUnmount(() => {
53
+ subMenu.removeSubMenu(item);
54
+ rootMenu.removeMenuItem(item);
55
+ });
56
+ return {
57
+ parentMenu,
58
+ rootMenu,
59
+ active,
60
+ nsMenu,
61
+ nsMenuItem,
62
+ handleClick
63
+ };
64
+ }
17
65
  });
18
- const menuItemEmits = {
19
- click: (item) => shared.isString(item.index) && shared.isArray(item.indexPath)
20
- };
66
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
67
+ const _component_el_tooltip = vue.resolveComponent("el-tooltip");
68
+ return vue.openBlock(), vue.createElementBlock("li", {
69
+ class: vue.normalizeClass([
70
+ _ctx.nsMenuItem.b(),
71
+ _ctx.nsMenuItem.is("active", _ctx.active),
72
+ _ctx.nsMenuItem.is("disabled", _ctx.disabled)
73
+ ]),
74
+ role: "menuitem",
75
+ tabindex: "-1",
76
+ onClick: _ctx.handleClick
77
+ }, [
78
+ _ctx.parentMenu.type.name === "ElMenu" && _ctx.rootMenu.props.collapse && _ctx.$slots.title ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
79
+ key: 0,
80
+ effect: _ctx.rootMenu.props.popperEffect,
81
+ placement: "right",
82
+ "fallback-placements": ["left"],
83
+ persistent: ""
84
+ }, {
85
+ content: vue.withCtx(() => [
86
+ vue.renderSlot(_ctx.$slots, "title")
87
+ ]),
88
+ default: vue.withCtx(() => [
89
+ vue.createElementVNode("div", {
90
+ class: vue.normalizeClass(_ctx.nsMenu.be("tooltip", "trigger"))
91
+ }, [
92
+ vue.renderSlot(_ctx.$slots, "default")
93
+ ], 2)
94
+ ]),
95
+ _: 3
96
+ }, 8, ["effect"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
97
+ vue.renderSlot(_ctx.$slots, "default"),
98
+ vue.renderSlot(_ctx.$slots, "title")
99
+ ], 64))
100
+ ], 10, ["onClick"]);
101
+ }
102
+ var MenuItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "menu-item.vue"]]);
21
103
 
22
- exports.menuItemEmits = menuItemEmits;
23
- exports.menuItemProps = menuItemProps;
104
+ exports["default"] = MenuItem;
24
105
  //# sourceMappingURL=menu-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.js","sources":["../../../../../../packages/components/menu/src/menu-item.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type { MenuItemRegistered } from './types'\n\nexport const menuItemProps = buildProps({\n /**\n * @description unique identification\n */\n index: {\n type: definePropType<string | null>([String, null]),\n default: null,\n },\n /**\n * @description Vue Router object\n */\n route: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n },\n /**\n * @description whether disabled\n */\n disabled: Boolean,\n} as const)\nexport type MenuItemProps = ExtractPropTypes<typeof menuItemProps>\n\nexport const menuItemEmits = {\n click: (item: MenuItemRegistered) =>\n isString(item.index) && isArray(item.indexPath),\n}\nexport type MenuItemEmits = typeof menuItemEmits\n"],"names":["buildProps","definePropType","isString","isArray"],"mappings":";;;;;;;AAMY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACxC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,CAAC,IAAI,KAAKC,eAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAIC,cAAO,CAAC,IAAI,CAAC,SAAS,CAAC;AAClE;;;;;"}
1
+ {"version":3,"file":"menu-item.js","sources":["../../../../../../packages/components/menu/src/menu-item.vue"],"sourcesContent":["<template>\n <li\n :class=\"[\n nsMenuItem.b(),\n nsMenuItem.is('active', active),\n nsMenuItem.is('disabled', disabled),\n ]\"\n role=\"menuitem\"\n tabindex=\"-1\"\n @click=\"handleClick\"\n >\n <el-tooltip\n v-if=\"\n parentMenu.type.name === 'ElMenu' &&\n rootMenu.props.collapse &&\n $slots.title\n \"\n :effect=\"rootMenu.props.popperEffect\"\n placement=\"right\"\n :fallback-placements=\"['left']\"\n persistent\n >\n <template #content>\n <slot name=\"title\" />\n </template>\n <div :class=\"nsMenu.be('tooltip', 'trigger')\">\n <slot />\n </div>\n </el-tooltip>\n <template v-else>\n <slot />\n <slot name=\"title\" />\n </template>\n </li>\n</template>\n\n<script lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n defineComponent,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n toRef,\n} from 'vue'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport useMenu from './use-menu'\nimport { menuItemEmits, menuItemProps } from './menu-item'\n\nimport type { MenuItemRegistered, MenuProvider, SubMenuProvider } from './types'\n\nconst COMPONENT_NAME = 'ElMenuItem'\nexport default defineComponent({\n name: COMPONENT_NAME,\n components: {\n ElTooltip,\n },\n\n props: menuItemProps,\n emits: menuItemEmits,\n\n setup(props, { emit }) {\n const instance = getCurrentInstance()!\n const rootMenu = inject<MenuProvider>('rootMenu')\n const nsMenu = useNamespace('menu')\n const nsMenuItem = useNamespace('menu-item')\n if (!rootMenu) throwError(COMPONENT_NAME, 'can not inject root menu')\n\n const { parentMenu, indexPath } = useMenu(instance, toRef(props, 'index'))\n\n const subMenu = inject<SubMenuProvider>(`subMenu:${parentMenu.value.uid}`)\n if (!subMenu) throwError(COMPONENT_NAME, 'can not inject sub menu')\n\n const active = computed(() => props.index === rootMenu.activeIndex)\n const item: MenuItemRegistered = reactive({\n index: props.index,\n indexPath,\n active,\n })\n\n const handleClick = () => {\n if (!props.disabled) {\n rootMenu.handleMenuItemClick({\n index: props.index,\n indexPath: indexPath.value,\n route: props.route,\n })\n emit('click', item)\n }\n }\n\n onMounted(() => {\n subMenu.addSubMenu(item)\n rootMenu.addMenuItem(item)\n })\n\n onBeforeUnmount(() => {\n subMenu.removeSubMenu(item)\n rootMenu.removeMenuItem(item)\n })\n\n return {\n parentMenu,\n rootMenu,\n active,\n nsMenu,\n nsMenuItem,\n handleClick,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElTooltip","menuItemProps","menuItemEmits","getCurrentInstance","inject","useNamespace","throwError","useMenu","computed","reactive","onMounted","onBeforeUnmount","_resolveComponent","_createElementBlock","_normalizeClass","_openBlock","_createBlock","_withCtx","_createElementVNode","_export_sfc"],"mappings":"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"}
@@ -2,104 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index = require('../../tooltip/index.js');
7
- var useMenu = require('./use-menu.js');
8
- var menuItem = require('./menu-item.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index$1 = require('../../../hooks/use-namespace/index.js');
11
- var error = require('../../../utils/error.js');
5
+ var runtime = require('../../../utils/vue/props/runtime.js');
6
+ var shared = require('@vue/shared');
12
7
 
13
- const COMPONENT_NAME = "ElMenuItem";
14
- const _sfc_main = vue.defineComponent({
15
- name: COMPONENT_NAME,
16
- components: {
17
- ElTooltip: index.ElTooltip
8
+ const menuItemProps = runtime.buildProps({
9
+ index: {
10
+ type: runtime.definePropType([String, null]),
11
+ default: null
18
12
  },
19
- props: menuItem.menuItemProps,
20
- emits: menuItem.menuItemEmits,
21
- setup(props, { emit }) {
22
- const instance = vue.getCurrentInstance();
23
- const rootMenu = vue.inject("rootMenu");
24
- const nsMenu = index$1.useNamespace("menu");
25
- const nsMenuItem = index$1.useNamespace("menu-item");
26
- if (!rootMenu)
27
- error.throwError(COMPONENT_NAME, "can not inject root menu");
28
- const { parentMenu, indexPath } = useMenu["default"](instance, vue.toRef(props, "index"));
29
- const subMenu = vue.inject(`subMenu:${parentMenu.value.uid}`);
30
- if (!subMenu)
31
- error.throwError(COMPONENT_NAME, "can not inject sub menu");
32
- const active = vue.computed(() => props.index === rootMenu.activeIndex);
33
- const item = vue.reactive({
34
- index: props.index,
35
- indexPath,
36
- active
37
- });
38
- const handleClick = () => {
39
- if (!props.disabled) {
40
- rootMenu.handleMenuItemClick({
41
- index: props.index,
42
- indexPath: indexPath.value,
43
- route: props.route
44
- });
45
- emit("click", item);
46
- }
47
- };
48
- vue.onMounted(() => {
49
- subMenu.addSubMenu(item);
50
- rootMenu.addMenuItem(item);
51
- });
52
- vue.onBeforeUnmount(() => {
53
- subMenu.removeSubMenu(item);
54
- rootMenu.removeMenuItem(item);
55
- });
56
- return {
57
- parentMenu,
58
- rootMenu,
59
- active,
60
- nsMenu,
61
- nsMenuItem,
62
- handleClick
63
- };
64
- }
13
+ route: {
14
+ type: runtime.definePropType([String, Object])
15
+ },
16
+ disabled: Boolean
65
17
  });
66
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
67
- const _component_el_tooltip = vue.resolveComponent("el-tooltip");
68
- return vue.openBlock(), vue.createElementBlock("li", {
69
- class: vue.normalizeClass([
70
- _ctx.nsMenuItem.b(),
71
- _ctx.nsMenuItem.is("active", _ctx.active),
72
- _ctx.nsMenuItem.is("disabled", _ctx.disabled)
73
- ]),
74
- role: "menuitem",
75
- tabindex: "-1",
76
- onClick: _ctx.handleClick
77
- }, [
78
- _ctx.parentMenu.type.name === "ElMenu" && _ctx.rootMenu.props.collapse && _ctx.$slots.title ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
79
- key: 0,
80
- effect: _ctx.rootMenu.props.popperEffect,
81
- placement: "right",
82
- "fallback-placements": ["left"],
83
- persistent: ""
84
- }, {
85
- content: vue.withCtx(() => [
86
- vue.renderSlot(_ctx.$slots, "title")
87
- ]),
88
- default: vue.withCtx(() => [
89
- vue.createElementVNode("div", {
90
- class: vue.normalizeClass(_ctx.nsMenu.be("tooltip", "trigger"))
91
- }, [
92
- vue.renderSlot(_ctx.$slots, "default")
93
- ], 2)
94
- ]),
95
- _: 3
96
- }, 8, ["effect"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
97
- vue.renderSlot(_ctx.$slots, "default"),
98
- vue.renderSlot(_ctx.$slots, "title")
99
- ], 64))
100
- ], 10, ["onClick"]);
101
- }
102
- var MenuItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "menu-item.vue"]]);
18
+ const menuItemEmits = {
19
+ click: (item) => shared.isString(item.index) && shared.isArray(item.indexPath)
20
+ };
103
21
 
104
- exports["default"] = MenuItem;
22
+ exports.menuItemEmits = menuItemEmits;
23
+ exports.menuItemProps = menuItemProps;
105
24
  //# sourceMappingURL=menu-item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item2.js","sources":["../../../../../../packages/components/menu/src/menu-item.vue"],"sourcesContent":["<template>\n <li\n :class=\"[\n nsMenuItem.b(),\n nsMenuItem.is('active', active),\n nsMenuItem.is('disabled', disabled),\n ]\"\n role=\"menuitem\"\n tabindex=\"-1\"\n @click=\"handleClick\"\n >\n <el-tooltip\n v-if=\"\n parentMenu.type.name === 'ElMenu' &&\n rootMenu.props.collapse &&\n $slots.title\n \"\n :effect=\"rootMenu.props.popperEffect\"\n placement=\"right\"\n :fallback-placements=\"['left']\"\n persistent\n >\n <template #content>\n <slot name=\"title\" />\n </template>\n <div :class=\"nsMenu.be('tooltip', 'trigger')\">\n <slot />\n </div>\n </el-tooltip>\n <template v-else>\n <slot />\n <slot name=\"title\" />\n </template>\n </li>\n</template>\n\n<script lang=\"ts\">\n// @ts-nocheck\nimport {\n computed,\n defineComponent,\n getCurrentInstance,\n inject,\n onBeforeUnmount,\n onMounted,\n reactive,\n toRef,\n} from 'vue'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport { throwError } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport useMenu from './use-menu'\nimport { menuItemEmits, menuItemProps } from './menu-item'\n\nimport type { MenuItemRegistered, MenuProvider, SubMenuProvider } from './types'\n\nconst COMPONENT_NAME = 'ElMenuItem'\nexport default defineComponent({\n name: COMPONENT_NAME,\n components: {\n ElTooltip,\n },\n\n props: menuItemProps,\n emits: menuItemEmits,\n\n setup(props, { emit }) {\n const instance = getCurrentInstance()!\n const rootMenu = inject<MenuProvider>('rootMenu')\n const nsMenu = useNamespace('menu')\n const nsMenuItem = useNamespace('menu-item')\n if (!rootMenu) throwError(COMPONENT_NAME, 'can not inject root menu')\n\n const { parentMenu, indexPath } = useMenu(instance, toRef(props, 'index'))\n\n const subMenu = inject<SubMenuProvider>(`subMenu:${parentMenu.value.uid}`)\n if (!subMenu) throwError(COMPONENT_NAME, 'can not inject sub menu')\n\n const active = computed(() => props.index === rootMenu.activeIndex)\n const item: MenuItemRegistered = reactive({\n index: props.index,\n indexPath,\n active,\n })\n\n const handleClick = () => {\n if (!props.disabled) {\n rootMenu.handleMenuItemClick({\n index: props.index,\n indexPath: indexPath.value,\n route: props.route,\n })\n emit('click', item)\n }\n }\n\n onMounted(() => {\n subMenu.addSubMenu(item)\n rootMenu.addMenuItem(item)\n })\n\n onBeforeUnmount(() => {\n subMenu.removeSubMenu(item)\n rootMenu.removeMenuItem(item)\n })\n\n return {\n parentMenu,\n rootMenu,\n active,\n nsMenu,\n nsMenuItem,\n handleClick,\n }\n },\n})\n</script>\n"],"names":["defineComponent","ElTooltip","menuItemProps","menuItemEmits","getCurrentInstance","inject","useNamespace","throwError","useMenu","computed","reactive","onMounted","onBeforeUnmount","_resolveComponent","_createElementBlock","_normalizeClass","_openBlock","_createBlock","_withCtx","_createElementVNode","_export_sfc"],"mappings":";;;;;;;;;;;;AAwDA,MAAM,cAAiB,GAAA,YAAA,CAAA;AACvB,MAAK,YAAaA,mBAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,cAAA;AAAA,EACN,UAAY,EAAA;AAAA,eACVC,eAAA;AAAA,GACF;AAAA,EAEA,KAAO,EAAAC,sBAAA;AAAA,EACP,KAAO,EAAAC,sBAAA;AAAA,EAEP,KAAM,CAAA,KAAA,EAAO,EAAE,IAAA,EAAQ,EAAA;AACrB,IAAA,MAAM,WAAWC,sBAAmB,EAAA,CAAA;AACpC,IAAM,MAAA,QAAA,GAAWC,WAAqB,UAAU,CAAA,CAAA;AAChD,IAAM,MAAA,MAAA,GAASC,qBAAa,MAAM,CAAA,CAAA;AAClC,IAAM,MAAA,UAAA,GAAaA,qBAAa,WAAW,CAAA,CAAA;AAC3C,IAAA,IAAI,CAAC,QAAA;AAEL,MAAMC,+BAAwB,EAAA,0BAAsB,CAAA,CAAA;AAEpD,IAAA,MAAM,YAAkC,EAAA,SAAA,EAAA,GAAWC,kBAAW,CAAA,QAAA,WAAW,CAAA,KAAA,EAAA,OAAA,CAAA,CAAA,CAAA;AACzE,IAAA,MAAK,OAAS,GAAWH,UAAA,CAAA,CAAA,QAAA,EAAA,UAAyC,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA;AAElE,IAAA,IAAA,CAAA;AACA,MAAAE,iBAAiC,cAAS,EAAA,yBAAA,CAAA,CAAA;AAAA,IAAA,YAC3B,GAAAE,YAAA,CAAA,MAAA,KAAA,CAAA,KAAA,KAAA,QAAA,CAAA,WAAA,CAAA,CAAA;AAAA,IACb,MAAA,IAAA,GAAAC,YAAA,CAAA;AAAA,MACA,KAAA,EAAA,KAAA,CAAA,KAAA;AAAA,MACD,SAAA;AAED,MAAA;AACE,KAAI,CAAA,CAAA;AACF,IAAA,MAAA,WAA6B,GAAA,MAAA;AAAA,MAAA,IAC3B,OAAO,QAAM,EAAA;AAAA,QAAA,4BACQ,CAAA;AAAA,UACrB,OAAO,KAAM,CAAA,KAAA;AAAA,UACd,SAAA,EAAA,SAAA,CAAA,KAAA;AACD,UAAA,YAAc,CAAI,KAAA;AAAA,SACpB,CAAA,CAAA;AAAA,QACF,IAAA,CAAA,OAAA,EAAA,IAAA,CAAA,CAAA;AAEA,OAAA;AACE,KAAA,CAAA;AACA,IAAAC,aAAA,CAAA;AAAyB,MAC1B,OAAA,CAAA,UAAA,CAAA,IAAA,CAAA,CAAA;AAED,MAAA,QAAA,CAAA,WAAsB,CAAA,IAAA,CAAA,CAAA;AACpB,KAAA,CAAA,CAAA;AACA,IAAAC;AAA4B,MAC7B,OAAA,CAAA,aAAA,CAAA,IAAA,CAAA,CAAA;AAED,MAAO,QAAA,CAAA,cAAA,CAAA,IAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAAA,IACA,OAAA;AAAA,MACA,UAAA;AAAA,MACA,QAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACF,UAAA;AAAA,MACF,WAAA;AACF,KAAC,CAAA;;;yBAlFM,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA;AAAA,EAAA,MA/BG,qBAAA,GAAAC,oBAAA,CAAA,YAAA,CAAA,CAAA;AAAA,EAAA,wBAAsBC,sBAAA,CAAA,IAAA,EAAA;AAAA,IAAU,KAAA,EAAAC,kBAAa,CAAA;AAAiB,MAAS,IAAA,CAAA,UAAA,CAAW,CAAE,EAAA;AAAqB,MAAA,IAAA,CAAA,UAAA,CAAA,EAAA,CAAA,QAAA,EAAA,IAAA,CAAA,MAAA,CAAA;MAK1G,IAAA,CAAA,UAAA,CAAA,EAAA,CAAA,UAAA,EAAA,IAAA,CAAA,QAAA,CAAA;AAAA,KACI,CAAA;AAAA,IACR,IAAO,EAAA,UAAA;AAAA,IAAA,QAAA,EAAA,IAAA;IAGS,OAAW,EAAA,IAAA,CAAA;AAgBf,GAAA,EAAA;AAXV,IAAA,IAAA,CAAA,oBAAuB,KAAA,QAAA,IAAA,IAAA,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,IAAA,IAAA,CAAA,MAAA,CAAA,KAAA,IAAAC,aAAA,EAAA,EAAAC,eAAA,CAAA,qBAAA,EAAA;AAAA,MACxB,GAAU,EAAA,CAAA;AAAA,MACT,MAAqB,EAAA,IAAA,CAAA,QAAA,CAAA,KAAA,CAAA,YAAA;AAAA,MACtB,SAAA,EAAA,OAAA;AAAA,MAAA,qBAAA,EAAA,CAAA,MAAA,CAAA;AAEW,MAAA;AACY,KAAA,EAAA;AAAA,MAAA,OAAA,EAAAC,WAAA,CAAA,MAAA;2BAEvB,CAEM,MAAA,EAAA,OAAA,CAAA;AAAA,OAFN,CAAA;AAAA,MAEM,OAAA,EAAAA,WAAA,CAAA,MAAA;AAAA,QAAAC,sBAAA,CAAA,KAAA,EAAA;AAAA,UAFA,KAAA,EAAAJ,kBAAO,CAAA,IAAA,CAAA,MAAA,CAAA,EAAO,CAAE,SAAA,EAAA,SAAA,CAAA,CAAA;AAAA,SAAA,EAAA;;YACpB,CAAQ;AAAA,OAAA,CAAA;;;;;;;AAGZ,CAAA;AAGW,eAAA,gBAAAK,iCAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,QAAA,EAAA,eAAA,CAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"menu-item2.js","sources":["../../../../../../packages/components/menu/src/menu-item.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n isArray,\n isString,\n} from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type { MenuItemRegistered } from './types'\n\nexport const menuItemProps = buildProps({\n /**\n * @description unique identification\n */\n index: {\n type: definePropType<string | null>([String, null]),\n default: null,\n },\n /**\n * @description Vue Router object\n */\n route: {\n type: definePropType<RouteLocationRaw>([String, Object]),\n },\n /**\n * @description whether disabled\n */\n disabled: Boolean,\n} as const)\nexport type MenuItemProps = ExtractPropTypes<typeof menuItemProps>\n\nexport const menuItemEmits = {\n click: (item: MenuItemRegistered) =>\n isString(item.index) && isArray(item.indexPath),\n}\nexport type MenuItemEmits = typeof menuItemEmits\n"],"names":["buildProps","definePropType","isString","isArray"],"mappings":";;;;;;;AAMY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACxC,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,CAAC,EAAE;AACS,MAAC,aAAa,GAAG;AAC7B,EAAE,KAAK,EAAE,CAAC,IAAI,KAAKC,eAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAIC,cAAO,CAAC,IAAI,CAAC,SAAS,CAAC;AAClE;;;;;"}
@@ -18,25 +18,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
18
  props: pageHeader.pageHeaderProps,
19
19
  emits: pageHeader.pageHeaderEmits,
20
20
  setup(__props, { emit }) {
21
- const slots = vue.useSlots();
22
21
  const { t } = index.useLocale();
23
22
  const ns = index$1.useNamespace("page-header");
24
- const kls = vue.computed(() => {
25
- return [
26
- ns.b(),
27
- {
28
- [ns.m("has-breadcrumb")]: !!slots.breadcrumb,
29
- [ns.m("has-extra")]: !!slots.extra,
30
- [ns.is("contentful")]: !!slots.default
31
- }
32
- ];
33
- });
34
23
  function handleClick() {
35
24
  emit("back");
36
25
  }
37
26
  return (_ctx, _cache) => {
38
27
  return vue.openBlock(), vue.createElementBlock("div", {
39
- class: vue.normalizeClass(vue.unref(kls))
28
+ class: vue.normalizeClass([
29
+ vue.unref(ns).b(),
30
+ {
31
+ [vue.unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
32
+ [vue.unref(ns).m("has-extra")]: !!_ctx.$slots.extra,
33
+ [vue.unref(ns).is("contentful")]: !!_ctx.$slots.default
34
+ }
35
+ ])
40
36
  }, [
41
37
  _ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div", {
42
38
  key: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div :class=\"kls\">\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\n\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { pageHeaderEmits, pageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\ndefineProps(pageHeaderProps)\nconst emit = defineEmits(pageHeaderEmits)\nconst slots = useSlots()\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\nconst kls = computed(() => {\n return [\n ns.b(),\n {\n [ns.m('has-breadcrumb')]: !!slots.breadcrumb,\n [ns.m('has-extra')]: !!slots.extra,\n [ns.is('contentful')]: !!slots.default,\n },\n ]\n})\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useSlots","useLocale","useNamespace","computed"],"mappings":";;;;;;;;;;;;uCAoDc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIC,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,aAAa,CAAA,CAAA;AACrC,IAAM,MAAA,GAAA,GAAMC,aAAS,MAAM;AACzB,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL;AAAA,UACE,CAAC,GAAG,CAAE,CAAA,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAM,CAAA,UAAA;AAAA,UAClC,CAAC,GAAG,CAAE,CAAA,WAAW,CAAC,GAAG,CAAC,CAAC,KAAM,CAAA,KAAA;AAAA,UAC7B,CAAC,GAAG,EAAG,CAAA,YAAY,CAAC,GAAG,CAAC,CAAC,KAAM,CAAA,OAAA;AAAA,SACjC;AAAA,OACF,CAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA,CAAA;AAAA,KACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.vue"],"sourcesContent":["<template>\n <div\n :class=\"[\n ns.b(),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\n [ns.is('contentful')]: !!$slots.default,\n },\n ]\"\n >\n <div v-if=\"$slots.breadcrumb\" :class=\"ns.e('breadcrumb')\">\n <slot name=\"breadcrumb\" />\n </div>\n <div :class=\"ns.e('header')\">\n <div :class=\"ns.e('left')\">\n <div\n :class=\"ns.e('back')\"\n role=\"button\"\n tabindex=\"0\"\n @click=\"handleClick\"\n >\n <div\n v-if=\"icon || $slots.icon\"\n :aria-label=\"title || t('el.pageHeader.title')\"\n :class=\"ns.e('icon')\"\n >\n <slot name=\"icon\">\n <el-icon v-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n </slot>\n </div>\n <div :class=\"ns.e('title')\">\n <slot name=\"title\">{{ title || t('el.pageHeader.title') }}</slot>\n </div>\n </div>\n <el-divider direction=\"vertical\" />\n <div :class=\"ns.e('content')\">\n <slot name=\"content\">{{ content }}</slot>\n </div>\n </div>\n\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n\n <div v-if=\"$slots.default\" :class=\"ns.e('main')\">\n <slot />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { ElDivider } from '@element-plus/components/divider'\n\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { pageHeaderEmits, pageHeaderProps } from './page-header'\n\ndefineOptions({\n name: 'ElPageHeader',\n})\n\ndefineProps(pageHeaderProps)\nconst emit = defineEmits(pageHeaderEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('page-header')\n\nfunction handleClick() {\n emit('back')\n}\n</script>\n"],"names":["useLocale","useNamespace"],"mappings":";;;;;;;;;;;;uCA4Dc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAKA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,aAAa,CAAA,CAAA;AAErC,IAAA,SAAS,WAAc,GAAA;AACrB,MAAA,IAAA,CAAK,MAAM,CAAA,CAAA;AAAA,KACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}