@element-plus/nightly 0.0.20250422 → 0.0.20250424

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/dist/index.full.js +22 -14
  2. package/dist/index.full.min.js +11 -11
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +11 -11
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +22 -14
  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/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/alert/index.mjs +2 -2
  276. package/es/components/alert/src/alert.mjs +91 -36
  277. package/es/components/alert/src/alert.mjs.map +1 -1
  278. package/es/components/alert/src/alert2.mjs +36 -91
  279. package/es/components/alert/src/alert2.mjs.map +1 -1
  280. package/es/components/anchor/index.mjs +1 -1
  281. package/es/components/anchor/src/anchor-link.mjs +5 -81
  282. package/es/components/anchor/src/anchor-link.mjs.map +1 -1
  283. package/es/components/anchor/src/anchor-link2.mjs +81 -5
  284. package/es/components/anchor/src/anchor-link2.mjs.map +1 -1
  285. package/es/components/autocomplete/index.mjs +2 -2
  286. package/es/components/autocomplete/src/autocomplete.mjs +80 -370
  287. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  288. package/es/components/autocomplete/src/autocomplete2.mjs +370 -80
  289. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  290. package/es/components/cascader/index.mjs +2 -2
  291. package/es/components/cascader/src/cascader.mjs +80 -637
  292. package/es/components/cascader/src/cascader.mjs.map +1 -1
  293. package/es/components/cascader/src/cascader2.mjs +637 -80
  294. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  295. package/es/components/checkbox/index.mjs +2 -2
  296. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  297. package/es/components/checkbox/src/checkbox.mjs +119 -59
  298. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  299. package/es/components/checkbox/src/checkbox2.mjs +59 -119
  300. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  301. package/es/components/color-picker/src/color-picker.mjs +1 -1
  302. package/es/components/countdown/index.mjs +2 -2
  303. package/es/components/countdown/src/countdown.mjs +21 -79
  304. package/es/components/countdown/src/countdown.mjs.map +1 -1
  305. package/es/components/countdown/src/countdown2.mjs +79 -21
  306. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  307. package/es/components/dialog/src/dialog-content.mjs +29 -88
  308. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  309. package/es/components/dialog/src/dialog-content2.mjs +88 -29
  310. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  311. package/es/components/dialog/src/dialog.mjs +2 -2
  312. package/es/components/dialog/src/dialog2.mjs +1 -1
  313. package/es/components/dropdown/src/dropdown.mjs +2 -2
  314. package/es/components/index.mjs +18 -18
  315. package/es/components/input-number/index.mjs +2 -2
  316. package/es/components/input-number/src/input-number.mjs +349 -60
  317. package/es/components/input-number/src/input-number.mjs.map +1 -1
  318. package/es/components/input-number/src/input-number2.mjs +60 -349
  319. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  320. package/es/components/menu/src/menu.mjs +2 -1
  321. package/es/components/menu/src/menu.mjs.map +1 -1
  322. package/es/components/menu/src/sub-menu.mjs +2 -1
  323. package/es/components/menu/src/sub-menu.mjs.map +1 -1
  324. package/es/components/page-header/index.mjs +2 -2
  325. package/es/components/page-header/src/page-header.mjs +97 -16
  326. package/es/components/page-header/src/page-header.mjs.map +1 -1
  327. package/es/components/page-header/src/page-header2.mjs +16 -97
  328. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  329. package/es/components/pagination/src/components/next.mjs +18 -35
  330. package/es/components/pagination/src/components/next.mjs.map +1 -1
  331. package/es/components/pagination/src/components/next2.mjs +35 -18
  332. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  333. package/es/components/pagination/src/pagination.mjs +1 -1
  334. package/es/components/popconfirm/src/popconfirm.mjs +1 -1
  335. package/es/components/popover/src/popover.mjs +1 -1
  336. package/es/components/popper/index.mjs +2 -2
  337. package/es/components/popper/src/composables/use-content.mjs +3 -1
  338. package/es/components/popper/src/composables/use-content.mjs.map +1 -1
  339. package/es/components/popper/src/popper.mjs +32 -22
  340. package/es/components/popper/src/popper.mjs.map +1 -1
  341. package/es/components/popper/src/popper2.mjs +22 -32
  342. package/es/components/popper/src/popper2.mjs.map +1 -1
  343. package/es/components/radio/index.mjs +2 -2
  344. package/es/components/radio/src/radio-button.mjs +65 -5
  345. package/es/components/radio/src/radio-button.mjs.map +1 -1
  346. package/es/components/radio/src/radio-button2.mjs +5 -65
  347. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  348. package/es/components/select/index.mjs +2 -2
  349. package/es/components/select/src/select.mjs +130 -428
  350. package/es/components/select/src/select.mjs.map +1 -1
  351. package/es/components/select/src/select2.mjs +428 -130
  352. package/es/components/select/src/select2.mjs.map +1 -1
  353. package/es/components/select-v2/src/defaults.mjs +1 -1
  354. package/es/components/select-v2/src/useSelect.mjs +2 -2
  355. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  356. package/es/components/skeleton/index.mjs +2 -2
  357. package/es/components/skeleton/src/skeleton-item.mjs +22 -17
  358. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  359. package/es/components/skeleton/src/skeleton-item2.mjs +17 -22
  360. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  361. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  362. package/es/components/table/src/filter-panel.mjs +1 -1
  363. package/es/components/table-v2/src/use-table.mjs +6 -1
  364. package/es/components/table-v2/src/use-table.mjs.map +1 -1
  365. package/es/components/tabs/index.mjs +1 -1
  366. package/es/components/tabs/src/tab-bar.mjs +7 -95
  367. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  368. package/es/components/tabs/src/tab-bar2.mjs +95 -7
  369. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  370. package/es/components/tabs/src/tab-nav.mjs +1 -1
  371. package/es/components/teleport/index.mjs +2 -2
  372. package/es/components/teleport/src/teleport.mjs +18 -8
  373. package/es/components/teleport/src/teleport.mjs.map +1 -1
  374. package/es/components/teleport/src/teleport2.mjs +8 -18
  375. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  376. package/es/components/tooltip/index.mjs +1 -1
  377. package/es/components/tooltip/src/content.mjs +193 -29
  378. package/es/components/tooltip/src/content.mjs.map +1 -1
  379. package/es/components/tooltip/src/content2.mjs +29 -192
  380. package/es/components/tooltip/src/content2.mjs.map +1 -1
  381. package/es/components/tooltip/src/tooltip.mjs +2 -2
  382. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  383. package/es/components/tour/index.mjs +2 -2
  384. package/es/components/tour/src/tour.mjs +154 -69
  385. package/es/components/tour/src/tour.mjs.map +1 -1
  386. package/es/components/tour/src/tour2.mjs +69 -154
  387. package/es/components/tour/src/tour2.mjs.map +1 -1
  388. package/es/components/transfer/index.mjs +2 -2
  389. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  390. package/es/components/transfer/src/transfer-panel.mjs +1 -1
  391. package/es/components/transfer/src/transfer.mjs +164 -68
  392. package/es/components/transfer/src/transfer.mjs.map +1 -1
  393. package/es/components/transfer/src/transfer2.mjs +68 -164
  394. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  395. package/es/components/tree/src/model/node.mjs +2 -2
  396. package/es/components/tree/src/model/node.mjs.map +1 -1
  397. package/es/components/tree/src/model/tree-store.mjs +1 -1
  398. package/es/components/tree/src/model/tree-store.mjs.map +1 -1
  399. package/es/components/upload/index.mjs +3 -3
  400. package/es/components/upload/src/upload-content.mjs +1 -1
  401. package/es/components/upload/src/upload-content2.mjs +1 -1
  402. package/es/components/upload/src/upload-list.mjs +173 -28
  403. package/es/components/upload/src/upload-list.mjs.map +1 -1
  404. package/es/components/upload/src/upload-list2.mjs +28 -173
  405. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  406. package/es/components/upload/src/upload.mjs +125 -97
  407. package/es/components/upload/src/upload.mjs.map +1 -1
  408. package/es/components/upload/src/upload2.mjs +97 -125
  409. package/es/components/upload/src/upload2.mjs.map +1 -1
  410. package/es/components/upload/src/use-handlers.mjs +1 -1
  411. package/es/components/watermark/index.mjs +2 -2
  412. package/es/components/watermark/src/watermark.mjs +220 -27
  413. package/es/components/watermark/src/watermark.mjs.map +1 -1
  414. package/es/components/watermark/src/watermark2.mjs +27 -220
  415. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  416. package/es/directives/click-outside/index.mjs +1 -1
  417. package/es/hooks/use-focus-controller/index.mjs +1 -1
  418. package/es/hooks/use-lockscreen/index.mjs +1 -1
  419. package/es/index.mjs +18 -18
  420. package/es/version.d.ts +1 -1
  421. package/es/version.mjs +1 -1
  422. package/es/version.mjs.map +1 -1
  423. package/lib/components/alert/index.js +2 -2
  424. package/lib/components/alert/src/alert.js +90 -37
  425. package/lib/components/alert/src/alert.js.map +1 -1
  426. package/lib/components/alert/src/alert2.js +37 -90
  427. package/lib/components/alert/src/alert2.js.map +1 -1
  428. package/lib/components/anchor/index.js +1 -1
  429. package/lib/components/anchor/src/anchor-link.js +5 -81
  430. package/lib/components/anchor/src/anchor-link.js.map +1 -1
  431. package/lib/components/anchor/src/anchor-link2.js +81 -5
  432. package/lib/components/anchor/src/anchor-link2.js.map +1 -1
  433. package/lib/components/autocomplete/index.js +2 -2
  434. package/lib/components/autocomplete/src/autocomplete.js +79 -368
  435. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  436. package/lib/components/autocomplete/src/autocomplete2.js +368 -79
  437. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  438. package/lib/components/cascader/index.js +2 -2
  439. package/lib/components/cascader/src/cascader.js +81 -637
  440. package/lib/components/cascader/src/cascader.js.map +1 -1
  441. package/lib/components/cascader/src/cascader2.js +637 -81
  442. package/lib/components/cascader/src/cascader2.js.map +1 -1
  443. package/lib/components/checkbox/index.js +2 -2
  444. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  445. package/lib/components/checkbox/src/checkbox.js +119 -60
  446. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  447. package/lib/components/checkbox/src/checkbox2.js +60 -119
  448. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  449. package/lib/components/color-picker/src/color-picker.js +1 -1
  450. package/lib/components/countdown/index.js +2 -2
  451. package/lib/components/countdown/src/countdown.js +22 -79
  452. package/lib/components/countdown/src/countdown.js.map +1 -1
  453. package/lib/components/countdown/src/countdown2.js +79 -22
  454. package/lib/components/countdown/src/countdown2.js.map +1 -1
  455. package/lib/components/dialog/src/dialog-content.js +29 -87
  456. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  457. package/lib/components/dialog/src/dialog-content2.js +87 -29
  458. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  459. package/lib/components/dialog/src/dialog.js +2 -2
  460. package/lib/components/dialog/src/dialog2.js +1 -1
  461. package/lib/components/dropdown/src/dropdown.js +2 -2
  462. package/lib/components/index.js +18 -18
  463. package/lib/components/input-number/index.js +2 -2
  464. package/lib/components/input-number/src/input-number.js +347 -59
  465. package/lib/components/input-number/src/input-number.js.map +1 -1
  466. package/lib/components/input-number/src/input-number2.js +59 -347
  467. package/lib/components/input-number/src/input-number2.js.map +1 -1
  468. package/lib/components/menu/src/menu.js +2 -1
  469. package/lib/components/menu/src/menu.js.map +1 -1
  470. package/lib/components/menu/src/sub-menu.js +2 -1
  471. package/lib/components/menu/src/sub-menu.js.map +1 -1
  472. package/lib/components/page-header/index.js +2 -2
  473. package/lib/components/page-header/src/page-header.js +97 -17
  474. package/lib/components/page-header/src/page-header.js.map +1 -1
  475. package/lib/components/page-header/src/page-header2.js +17 -97
  476. package/lib/components/page-header/src/page-header2.js.map +1 -1
  477. package/lib/components/pagination/src/components/next.js +18 -35
  478. package/lib/components/pagination/src/components/next.js.map +1 -1
  479. package/lib/components/pagination/src/components/next2.js +35 -18
  480. package/lib/components/pagination/src/components/next2.js.map +1 -1
  481. package/lib/components/pagination/src/pagination.js +1 -1
  482. package/lib/components/popconfirm/src/popconfirm.js +1 -1
  483. package/lib/components/popover/src/popover.js +1 -1
  484. package/lib/components/popper/index.js +2 -2
  485. package/lib/components/popper/src/composables/use-content.js +3 -1
  486. package/lib/components/popper/src/composables/use-content.js.map +1 -1
  487. package/lib/components/popper/src/popper.js +32 -25
  488. package/lib/components/popper/src/popper.js.map +1 -1
  489. package/lib/components/popper/src/popper2.js +25 -32
  490. package/lib/components/popper/src/popper2.js.map +1 -1
  491. package/lib/components/radio/index.js +2 -2
  492. package/lib/components/radio/src/radio-button.js +65 -5
  493. package/lib/components/radio/src/radio-button.js.map +1 -1
  494. package/lib/components/radio/src/radio-button2.js +5 -65
  495. package/lib/components/radio/src/radio-button2.js.map +1 -1
  496. package/lib/components/select/index.js +2 -2
  497. package/lib/components/select/src/select.js +131 -428
  498. package/lib/components/select/src/select.js.map +1 -1
  499. package/lib/components/select/src/select2.js +428 -131
  500. package/lib/components/select/src/select2.js.map +1 -1
  501. package/lib/components/select-v2/src/defaults.js +1 -1
  502. package/lib/components/select-v2/src/useSelect.js +1 -1
  503. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  504. package/lib/components/skeleton/index.js +2 -2
  505. package/lib/components/skeleton/src/skeleton-item.js +22 -17
  506. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  507. package/lib/components/skeleton/src/skeleton-item2.js +17 -22
  508. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  509. package/lib/components/skeleton/src/skeleton2.js +1 -1
  510. package/lib/components/table/src/filter-panel.js +1 -1
  511. package/lib/components/table-v2/src/use-table.js +6 -1
  512. package/lib/components/table-v2/src/use-table.js.map +1 -1
  513. package/lib/components/tabs/index.js +1 -1
  514. package/lib/components/tabs/src/tab-bar.js +7 -95
  515. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  516. package/lib/components/tabs/src/tab-bar2.js +95 -7
  517. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  518. package/lib/components/tabs/src/tab-nav.js +1 -1
  519. package/lib/components/teleport/index.js +2 -2
  520. package/lib/components/teleport/src/teleport.js +18 -8
  521. package/lib/components/teleport/src/teleport.js.map +1 -1
  522. package/lib/components/teleport/src/teleport2.js +8 -18
  523. package/lib/components/teleport/src/teleport2.js.map +1 -1
  524. package/lib/components/tooltip/index.js +1 -1
  525. package/lib/components/tooltip/src/content.js +193 -29
  526. package/lib/components/tooltip/src/content.js.map +1 -1
  527. package/lib/components/tooltip/src/content2.js +29 -192
  528. package/lib/components/tooltip/src/content2.js.map +1 -1
  529. package/lib/components/tooltip/src/tooltip.js +2 -2
  530. package/lib/components/tooltip/src/tooltip2.js +1 -1
  531. package/lib/components/tour/index.js +2 -2
  532. package/lib/components/tour/src/tour.js +153 -69
  533. package/lib/components/tour/src/tour.js.map +1 -1
  534. package/lib/components/tour/src/tour2.js +69 -153
  535. package/lib/components/tour/src/tour2.js.map +1 -1
  536. package/lib/components/transfer/index.js +2 -2
  537. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  538. package/lib/components/transfer/src/transfer-panel.js +1 -1
  539. package/lib/components/transfer/src/transfer.js +164 -72
  540. package/lib/components/transfer/src/transfer.js.map +1 -1
  541. package/lib/components/transfer/src/transfer2.js +72 -164
  542. package/lib/components/transfer/src/transfer2.js.map +1 -1
  543. package/lib/components/tree/src/model/node.js +2 -2
  544. package/lib/components/tree/src/model/node.js.map +1 -1
  545. package/lib/components/tree/src/model/tree-store.js +1 -1
  546. package/lib/components/tree/src/model/tree-store.js.map +1 -1
  547. package/lib/components/upload/index.js +3 -3
  548. package/lib/components/upload/src/upload-content.js +1 -1
  549. package/lib/components/upload/src/upload-content2.js +1 -1
  550. package/lib/components/upload/src/upload-list.js +173 -29
  551. package/lib/components/upload/src/upload-list.js.map +1 -1
  552. package/lib/components/upload/src/upload-list2.js +29 -173
  553. package/lib/components/upload/src/upload-list2.js.map +1 -1
  554. package/lib/components/upload/src/upload.js +125 -100
  555. package/lib/components/upload/src/upload.js.map +1 -1
  556. package/lib/components/upload/src/upload2.js +100 -125
  557. package/lib/components/upload/src/upload2.js.map +1 -1
  558. package/lib/components/upload/src/use-handlers.js +1 -1
  559. package/lib/components/watermark/index.js +2 -2
  560. package/lib/components/watermark/src/watermark.js +220 -27
  561. package/lib/components/watermark/src/watermark.js.map +1 -1
  562. package/lib/components/watermark/src/watermark2.js +27 -220
  563. package/lib/components/watermark/src/watermark2.js.map +1 -1
  564. package/lib/directives/click-outside/index.js +1 -1
  565. package/lib/hooks/use-focus-controller/index.js +1 -1
  566. package/lib/hooks/use-lockscreen/index.js +1 -1
  567. package/lib/index.js +18 -18
  568. package/lib/version.d.ts +1 -1
  569. package/lib/version.js +1 -1
  570. package/lib/version.js.map +1 -1
  571. package/package.json +2 -2
  572. package/web-types.json +1 -1
@@ -14,6 +14,7 @@ var runtime = require('../../../utils/vue/props/runtime.js');
14
14
  var icon = require('../../../utils/vue/icon.js');
15
15
  var index = require('../../../hooks/use-namespace/index.js');
16
16
  var error = require('../../../utils/error.js');
17
+ var types = require('../../../utils/types.js');
17
18
  var shared = require('@vue/shared');
18
19
 
19
20
  const subMenuProps = runtime.buildProps({
@@ -71,7 +72,7 @@ var SubMenu = vue.defineComponent({
71
72
  const isFirstLevel = vue.computed(() => subMenu.level === 0);
72
73
  const appendToBody = vue.computed(() => {
73
74
  const value = props.teleported;
74
- return value === void 0 ? isFirstLevel.value : value;
75
+ return types.isUndefined(value) ? isFirstLevel.value : value;
75
76
  });
76
77
  const menuTransitionName = vue.computed(() => rootMenu.props.collapse ? `${nsMenu.namespace.value}-zoom-in-left` : `${nsMenu.namespace.value}-zoom-in-top`);
77
78
  const fallbackPlacements = vue.computed(() => mode.value === "horizontal" && isFirstLevel.value ? [
@@ -1 +1 @@
1
- {"version":3,"file":"sub-menu.js","sources":["../../../../../../packages/components/menu/src/sub-menu.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n reactive,\n ref,\n vShow,\n watch,\n withDirectives,\n} from 'vue'\nimport { useTimeoutFn } from '@vueuse/core'\nimport ElCollapseTransition from '@element-plus/components/collapse-transition'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport {\n buildProps,\n iconPropType,\n isString,\n throwError,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ArrowDown, ArrowRight } from '@element-plus/icons-vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport useMenu from './use-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\n\nimport type { Placement } from '@element-plus/components/popper'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { ExtractPropTypes, VNodeArrayChildren } from 'vue'\nimport type { MenuProvider, SubMenuProvider } from './types'\n\nexport const subMenuProps = buildProps({\n /**\n * @description unique identification\n */\n index: {\n type: String,\n required: true,\n },\n /**\n * @description timeout before showing a sub-menu(inherit `show-timeout` of the menu by default.)\n */\n showTimeout: Number,\n /**\n * @description timeout before hiding a sub-menu(inherit `hide-timeout` of the menu by default.)\n */\n hideTimeout: Number,\n /**\n * @description custom class name for the popup menu\n */\n popperClass: String,\n /**\n * @description whether the sub-menu is disabled\n */\n disabled: Boolean,\n /**\n * @description whether popup menu is teleported to the body\n */\n teleported: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description offset of the popper (overrides the `popper` of menu)\n */\n popperOffset: Number,\n /**\n * @description Icon when menu are expanded and submenu are closed, `expand-close-icon` and `expand-open-icon` need to be passed together to take effect\n */\n expandCloseIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are expanded and submenu are opened, `expand-open-icon` and `expand-close-icon` need to be passed together to take effect\n */\n expandOpenIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are collapsed and submenu are closed, `collapse-close-icon` and `collapse-open-icon` need to be passed together to take effect\n */\n collapseCloseIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are collapsed and submenu are opened, `collapse-open-icon` and `collapse-close-icon` need to be passed together to take effect\n */\n collapseOpenIcon: {\n type: iconPropType,\n },\n} as const)\nexport type SubMenuProps = ExtractPropTypes<typeof subMenuProps>\n\nconst COMPONENT_NAME = 'ElSubMenu'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: subMenuProps,\n\n setup(props, { slots, expose }) {\n const instance = getCurrentInstance()!\n const { indexPath, parentMenu } = useMenu(\n instance,\n computed(() => props.index)\n )\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n\n // inject\n const rootMenu = inject<MenuProvider>('rootMenu')\n if (!rootMenu) throwError(COMPONENT_NAME, 'can not inject root menu')\n\n const subMenu = inject<SubMenuProvider>(`subMenu:${parentMenu.value!.uid}`)\n if (!subMenu) throwError(COMPONENT_NAME, 'can not inject sub menu')\n\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n let timeout: (() => void) | undefined\n const mouseInChild = ref(false)\n const verticalTitleRef = ref<HTMLDivElement>()\n const vPopper = ref<TooltipInstance>()\n\n // computed\n const currentPlacement = computed<Placement>(() =>\n mode.value === 'horizontal' && isFirstLevel.value\n ? 'bottom-start'\n : 'right-start'\n )\n const subMenuTitleIcon = computed(() => {\n return (mode.value === 'horizontal' && isFirstLevel.value) ||\n (mode.value === 'vertical' && !rootMenu.props.collapse)\n ? props.expandCloseIcon && props.expandOpenIcon\n ? opened.value\n ? props.expandOpenIcon\n : props.expandCloseIcon\n : ArrowDown\n : props.collapseCloseIcon && props.collapseOpenIcon\n ? opened.value\n ? props.collapseOpenIcon\n : props.collapseCloseIcon\n : ArrowRight\n })\n const isFirstLevel = computed(() => subMenu.level === 0)\n const appendToBody = computed(() => {\n const value = props.teleported\n return value === undefined ? isFirstLevel.value : value\n })\n const menuTransitionName = computed(() =>\n rootMenu.props.collapse\n ? `${nsMenu.namespace.value}-zoom-in-left`\n : `${nsMenu.namespace.value}-zoom-in-top`\n )\n const fallbackPlacements = computed<Placement[]>(() =>\n mode.value === 'horizontal' && isFirstLevel.value\n ? [\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n 'right-start',\n 'left-start',\n ]\n : [\n 'right-start',\n 'right',\n 'right-end',\n 'left-start',\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n ]\n )\n const opened = computed(() => rootMenu.openedMenus.includes(props.index))\n const active = computed(() =>\n [...Object.values(items.value), ...Object.values(subMenus.value)].some(\n ({ active }) => active\n )\n )\n\n const mode = computed(() => rootMenu.props.mode)\n const persistent = computed(() => rootMenu.props.persistent)\n const item = reactive({\n index: props.index,\n indexPath,\n active,\n })\n\n const ulStyle = useMenuCssVar(rootMenu.props, subMenu.level + 1)\n\n const subMenuPopperOffset = computed(\n () => props.popperOffset ?? rootMenu.props.popperOffset\n )\n\n const subMenuPopperClass = computed(\n () => props.popperClass ?? rootMenu.props.popperClass\n )\n\n const subMenuShowTimeout = computed(\n () => props.showTimeout ?? rootMenu.props.showTimeout\n )\n\n const subMenuHideTimeout = computed(\n () => props.hideTimeout ?? rootMenu.props.hideTimeout\n )\n\n // methods\n const doDestroy = () =>\n vPopper.value?.popperRef?.popperInstanceRef?.destroy()\n\n const handleCollapseToggle = (value: boolean) => {\n if (!value) {\n doDestroy()\n }\n }\n\n const handleClick = () => {\n if (\n (rootMenu.props.menuTrigger === 'hover' &&\n rootMenu.props.mode === 'horizontal') ||\n (rootMenu.props.collapse && rootMenu.props.mode === 'vertical') ||\n props.disabled\n )\n return\n\n rootMenu.handleSubMenuClick({\n index: props.index,\n indexPath: indexPath.value,\n active: active.value,\n })\n }\n\n const handleMouseenter = (\n event: MouseEvent | FocusEvent,\n showTimeout = subMenuShowTimeout.value\n ) => {\n if (event.type === 'focus') return\n\n if (\n (rootMenu.props.menuTrigger === 'click' &&\n rootMenu.props.mode === 'horizontal') ||\n (!rootMenu.props.collapse && rootMenu.props.mode === 'vertical') ||\n props.disabled\n ) {\n subMenu.mouseInChild.value = true\n return\n }\n subMenu.mouseInChild.value = true\n\n timeout?.()\n ;({ stop: timeout } = useTimeoutFn(() => {\n rootMenu.openMenu(props.index, indexPath.value)\n }, showTimeout))\n\n if (appendToBody.value) {\n parentMenu.value.vnode.el?.dispatchEvent(new MouseEvent('mouseenter'))\n }\n }\n\n const handleMouseleave = (deepDispatch = false) => {\n if (\n (rootMenu.props.menuTrigger === 'click' &&\n rootMenu.props.mode === 'horizontal') ||\n (!rootMenu.props.collapse && rootMenu.props.mode === 'vertical')\n ) {\n subMenu.mouseInChild.value = false\n return\n }\n timeout?.()\n subMenu.mouseInChild.value = false\n ;({ stop: timeout } = useTimeoutFn(\n () =>\n !mouseInChild.value &&\n rootMenu.closeMenu(props.index, indexPath.value),\n subMenuHideTimeout.value\n ))\n\n if (appendToBody.value && deepDispatch) {\n subMenu.handleMouseleave?.(true)\n }\n }\n\n watch(\n () => rootMenu.props.collapse,\n (value) => handleCollapseToggle(Boolean(value))\n )\n\n // provide\n {\n const addSubMenu: SubMenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n const removeSubMenu: SubMenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n provide<SubMenuProvider>(`subMenu:${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n handleMouseleave,\n mouseInChild,\n level: subMenu.level + 1,\n })\n }\n\n // expose\n expose({\n opened,\n })\n\n // lifecycle\n onMounted(() => {\n rootMenu.addSubMenu(item)\n subMenu.addSubMenu(item)\n })\n\n onBeforeUnmount(() => {\n subMenu.removeSubMenu(item)\n rootMenu.removeSubMenu(item)\n })\n\n return () => {\n const titleTag: VNodeArrayChildren = [\n slots.title?.(),\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-arrow'),\n style: {\n transform: opened.value\n ? (props.expandCloseIcon && props.expandOpenIcon) ||\n (props.collapseCloseIcon &&\n props.collapseOpenIcon &&\n rootMenu.props.collapse)\n ? 'none'\n : 'rotateZ(180deg)'\n : 'none',\n },\n },\n {\n default: () =>\n isString(subMenuTitleIcon.value)\n ? h(instance.appContext.components[subMenuTitleIcon.value])\n : h(subMenuTitleIcon.value),\n }\n ),\n ]\n\n // this render function is only used for bypass `Vue`'s compiler caused patching issue.\n const child = rootMenu.isMenuPopup\n ? h(\n ElTooltip,\n {\n ref: vPopper,\n visible: opened.value,\n effect: 'light',\n pure: true,\n offset: subMenuPopperOffset.value,\n showArrow: false,\n persistent: persistent.value,\n popperClass: subMenuPopperClass.value,\n placement: currentPlacement.value,\n teleported: appendToBody.value,\n fallbackPlacements: fallbackPlacements.value,\n transition: menuTransitionName.value,\n gpuAcceleration: false,\n },\n {\n content: () =>\n h(\n 'div',\n {\n class: [\n nsMenu.m(mode.value),\n nsMenu.m('popup-container'),\n subMenuPopperClass.value,\n ],\n onMouseenter: (evt: MouseEvent) =>\n handleMouseenter(evt, 100),\n onMouseleave: () => handleMouseleave(true),\n onFocus: (evt: FocusEvent) => handleMouseenter(evt, 100),\n },\n [\n h(\n 'ul',\n {\n class: [\n nsMenu.b(),\n nsMenu.m('popup'),\n nsMenu.m(`popup-${currentPlacement.value}`),\n ],\n style: ulStyle.value,\n },\n [slots.default?.()]\n ),\n ]\n ),\n default: () =>\n h(\n 'div',\n {\n class: nsSubMenu.e('title'),\n onClick: handleClick,\n },\n titleTag\n ),\n }\n )\n : h(Fragment, {}, [\n h(\n 'div',\n {\n class: nsSubMenu.e('title'),\n ref: verticalTitleRef,\n onClick: handleClick,\n },\n titleTag\n ),\n h(\n ElCollapseTransition,\n {},\n {\n default: () =>\n withDirectives(\n h(\n 'ul',\n {\n role: 'menu',\n class: [nsMenu.b(), nsMenu.m('inline')],\n style: ulStyle.value,\n },\n [slots.default?.()]\n ),\n [[vShow, opened.value]]\n ),\n }\n ),\n ])\n\n return h(\n 'li',\n {\n class: [\n nsSubMenu.b(),\n nsSubMenu.is('active', active.value),\n nsSubMenu.is('opened', opened.value),\n nsSubMenu.is('disabled', props.disabled),\n ],\n role: 'menuitem',\n ariaHaspopup: true,\n ariaExpanded: opened.value,\n onMouseenter: handleMouseenter,\n onMouseleave: () => handleMouseleave(),\n onFocus: handleMouseenter,\n },\n [child]\n )\n }\n },\n})\n"],"names":["buildProps","iconPropType","defineComponent","getCurrentInstance","useMenu","computed","useNamespace","inject","throwError","ref","ArrowDown","ArrowRight","reactive","useMenuCssVar","useTimeoutFn","watch","provide","onMounted","onBeforeUnmount","h","ElIcon","isString","ElTooltip","Fragment","ElCollapseTransition","withDirectives","vShow"],"mappings":";;;;;;;;;;;;;;;;;;AA8BY,MAAC,YAAY,GAAGA,kBAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAEA,iBAAY;AACtB,GAAG;AACH,CAAC,EAAE;AACH,MAAM,cAAc,GAAG,WAAW,CAAC;AACnC,cAAeC,mBAAe,CAAC;AAC/B,EAAE,IAAI,EAAE,cAAc;AACtB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EA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,KAAK,CAAC,QAAQ,CAAC;AAClD,SAAS;AACT,QAAQ,IAAI,EAAE,UAAU;AACxB,QAAQ,YAAY,EAAE,IAAI;AAC1B,QAAQ,YAAY,EAAE,MAAM,CAAC,KAAK;AAClC,QAAQ,YAAY,EAAE,gBAAgB;AACtC,QAAQ,YAAY,EAAE,MAAM,gBAAgB,EAAE;AAC9C,QAAQ,OAAO,EAAE,gBAAgB;AACjC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAClB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;"}
1
+ {"version":3,"file":"sub-menu.js","sources":["../../../../../../packages/components/menu/src/sub-menu.ts"],"sourcesContent":["import {\n Fragment,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n reactive,\n ref,\n vShow,\n watch,\n withDirectives,\n} from 'vue'\nimport { useTimeoutFn } from '@vueuse/core'\nimport ElCollapseTransition from '@element-plus/components/collapse-transition'\nimport ElTooltip from '@element-plus/components/tooltip'\nimport {\n buildProps,\n iconPropType,\n isString,\n isUndefined,\n throwError,\n} from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { ArrowDown, ArrowRight } from '@element-plus/icons-vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport useMenu from './use-menu'\nimport { useMenuCssVar } from './use-menu-css-var'\n\nimport type { Placement } from '@element-plus/components/popper'\nimport type { TooltipInstance } from '@element-plus/components/tooltip'\nimport type { ExtractPropTypes, VNodeArrayChildren } from 'vue'\nimport type { MenuProvider, SubMenuProvider } from './types'\n\nexport const subMenuProps = buildProps({\n /**\n * @description unique identification\n */\n index: {\n type: String,\n required: true,\n },\n /**\n * @description timeout before showing a sub-menu(inherit `show-timeout` of the menu by default.)\n */\n showTimeout: Number,\n /**\n * @description timeout before hiding a sub-menu(inherit `hide-timeout` of the menu by default.)\n */\n hideTimeout: Number,\n /**\n * @description custom class name for the popup menu\n */\n popperClass: String,\n /**\n * @description whether the sub-menu is disabled\n */\n disabled: Boolean,\n /**\n * @description whether popup menu is teleported to the body\n */\n teleported: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description offset of the popper (overrides the `popper` of menu)\n */\n popperOffset: Number,\n /**\n * @description Icon when menu are expanded and submenu are closed, `expand-close-icon` and `expand-open-icon` need to be passed together to take effect\n */\n expandCloseIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are expanded and submenu are opened, `expand-open-icon` and `expand-close-icon` need to be passed together to take effect\n */\n expandOpenIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are collapsed and submenu are closed, `collapse-close-icon` and `collapse-open-icon` need to be passed together to take effect\n */\n collapseCloseIcon: {\n type: iconPropType,\n },\n /**\n * @description Icon when menu are collapsed and submenu are opened, `collapse-open-icon` and `collapse-close-icon` need to be passed together to take effect\n */\n collapseOpenIcon: {\n type: iconPropType,\n },\n} as const)\nexport type SubMenuProps = ExtractPropTypes<typeof subMenuProps>\n\nconst COMPONENT_NAME = 'ElSubMenu'\nexport default defineComponent({\n name: COMPONENT_NAME,\n props: subMenuProps,\n\n setup(props, { slots, expose }) {\n const instance = getCurrentInstance()!\n const { indexPath, parentMenu } = useMenu(\n instance,\n computed(() => props.index)\n )\n const nsMenu = useNamespace('menu')\n const nsSubMenu = useNamespace('sub-menu')\n\n // inject\n const rootMenu = inject<MenuProvider>('rootMenu')\n if (!rootMenu) throwError(COMPONENT_NAME, 'can not inject root menu')\n\n const subMenu = inject<SubMenuProvider>(`subMenu:${parentMenu.value!.uid}`)\n if (!subMenu) throwError(COMPONENT_NAME, 'can not inject sub menu')\n\n const items = ref<MenuProvider['items']>({})\n const subMenus = ref<MenuProvider['subMenus']>({})\n\n let timeout: (() => void) | undefined\n const mouseInChild = ref(false)\n const verticalTitleRef = ref<HTMLDivElement>()\n const vPopper = ref<TooltipInstance>()\n\n // computed\n const currentPlacement = computed<Placement>(() =>\n mode.value === 'horizontal' && isFirstLevel.value\n ? 'bottom-start'\n : 'right-start'\n )\n const subMenuTitleIcon = computed(() => {\n return (mode.value === 'horizontal' && isFirstLevel.value) ||\n (mode.value === 'vertical' && !rootMenu.props.collapse)\n ? props.expandCloseIcon && props.expandOpenIcon\n ? opened.value\n ? props.expandOpenIcon\n : props.expandCloseIcon\n : ArrowDown\n : props.collapseCloseIcon && props.collapseOpenIcon\n ? opened.value\n ? props.collapseOpenIcon\n : props.collapseCloseIcon\n : ArrowRight\n })\n const isFirstLevel = computed(() => subMenu.level === 0)\n const appendToBody = computed(() => {\n const value = props.teleported\n return isUndefined(value) ? isFirstLevel.value : value\n })\n const menuTransitionName = computed(() =>\n rootMenu.props.collapse\n ? `${nsMenu.namespace.value}-zoom-in-left`\n : `${nsMenu.namespace.value}-zoom-in-top`\n )\n const fallbackPlacements = computed<Placement[]>(() =>\n mode.value === 'horizontal' && isFirstLevel.value\n ? [\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n 'right-start',\n 'left-start',\n ]\n : [\n 'right-start',\n 'right',\n 'right-end',\n 'left-start',\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n ]\n )\n const opened = computed(() => rootMenu.openedMenus.includes(props.index))\n const active = computed(() =>\n [...Object.values(items.value), ...Object.values(subMenus.value)].some(\n ({ active }) => active\n )\n )\n\n const mode = computed(() => rootMenu.props.mode)\n const persistent = computed(() => rootMenu.props.persistent)\n const item = reactive({\n index: props.index,\n indexPath,\n active,\n })\n\n const ulStyle = useMenuCssVar(rootMenu.props, subMenu.level + 1)\n\n const subMenuPopperOffset = computed(\n () => props.popperOffset ?? rootMenu.props.popperOffset\n )\n\n const subMenuPopperClass = computed(\n () => props.popperClass ?? rootMenu.props.popperClass\n )\n\n const subMenuShowTimeout = computed(\n () => props.showTimeout ?? rootMenu.props.showTimeout\n )\n\n const subMenuHideTimeout = computed(\n () => props.hideTimeout ?? rootMenu.props.hideTimeout\n )\n\n // methods\n const doDestroy = () =>\n vPopper.value?.popperRef?.popperInstanceRef?.destroy()\n\n const handleCollapseToggle = (value: boolean) => {\n if (!value) {\n doDestroy()\n }\n }\n\n const handleClick = () => {\n if (\n (rootMenu.props.menuTrigger === 'hover' &&\n rootMenu.props.mode === 'horizontal') ||\n (rootMenu.props.collapse && rootMenu.props.mode === 'vertical') ||\n props.disabled\n )\n return\n\n rootMenu.handleSubMenuClick({\n index: props.index,\n indexPath: indexPath.value,\n active: active.value,\n })\n }\n\n const handleMouseenter = (\n event: MouseEvent | FocusEvent,\n showTimeout = subMenuShowTimeout.value\n ) => {\n if (event.type === 'focus') return\n\n if (\n (rootMenu.props.menuTrigger === 'click' &&\n rootMenu.props.mode === 'horizontal') ||\n (!rootMenu.props.collapse && rootMenu.props.mode === 'vertical') ||\n props.disabled\n ) {\n subMenu.mouseInChild.value = true\n return\n }\n subMenu.mouseInChild.value = true\n\n timeout?.()\n ;({ stop: timeout } = useTimeoutFn(() => {\n rootMenu.openMenu(props.index, indexPath.value)\n }, showTimeout))\n\n if (appendToBody.value) {\n parentMenu.value.vnode.el?.dispatchEvent(new MouseEvent('mouseenter'))\n }\n }\n\n const handleMouseleave = (deepDispatch = false) => {\n if (\n (rootMenu.props.menuTrigger === 'click' &&\n rootMenu.props.mode === 'horizontal') ||\n (!rootMenu.props.collapse && rootMenu.props.mode === 'vertical')\n ) {\n subMenu.mouseInChild.value = false\n return\n }\n timeout?.()\n subMenu.mouseInChild.value = false\n ;({ stop: timeout } = useTimeoutFn(\n () =>\n !mouseInChild.value &&\n rootMenu.closeMenu(props.index, indexPath.value),\n subMenuHideTimeout.value\n ))\n\n if (appendToBody.value && deepDispatch) {\n subMenu.handleMouseleave?.(true)\n }\n }\n\n watch(\n () => rootMenu.props.collapse,\n (value) => handleCollapseToggle(Boolean(value))\n )\n\n // provide\n {\n const addSubMenu: SubMenuProvider['addSubMenu'] = (item) => {\n subMenus.value[item.index] = item\n }\n const removeSubMenu: SubMenuProvider['removeSubMenu'] = (item) => {\n delete subMenus.value[item.index]\n }\n provide<SubMenuProvider>(`subMenu:${instance.uid}`, {\n addSubMenu,\n removeSubMenu,\n handleMouseleave,\n mouseInChild,\n level: subMenu.level + 1,\n })\n }\n\n // expose\n expose({\n opened,\n })\n\n // lifecycle\n onMounted(() => {\n rootMenu.addSubMenu(item)\n subMenu.addSubMenu(item)\n })\n\n onBeforeUnmount(() => {\n subMenu.removeSubMenu(item)\n rootMenu.removeSubMenu(item)\n })\n\n return () => {\n const titleTag: VNodeArrayChildren = [\n slots.title?.(),\n h(\n ElIcon,\n {\n class: nsSubMenu.e('icon-arrow'),\n style: {\n transform: opened.value\n ? (props.expandCloseIcon && props.expandOpenIcon) ||\n (props.collapseCloseIcon &&\n props.collapseOpenIcon &&\n rootMenu.props.collapse)\n ? 'none'\n : 'rotateZ(180deg)'\n : 'none',\n },\n },\n {\n default: () =>\n isString(subMenuTitleIcon.value)\n ? h(instance.appContext.components[subMenuTitleIcon.value])\n : h(subMenuTitleIcon.value),\n }\n ),\n ]\n\n // this render function is only used for bypass `Vue`'s compiler caused patching issue.\n const child = rootMenu.isMenuPopup\n ? h(\n ElTooltip,\n {\n ref: vPopper,\n visible: opened.value,\n effect: 'light',\n pure: true,\n offset: subMenuPopperOffset.value,\n showArrow: false,\n persistent: persistent.value,\n popperClass: subMenuPopperClass.value,\n placement: currentPlacement.value,\n teleported: appendToBody.value,\n fallbackPlacements: fallbackPlacements.value,\n transition: menuTransitionName.value,\n gpuAcceleration: false,\n },\n {\n content: () =>\n h(\n 'div',\n {\n class: [\n nsMenu.m(mode.value),\n nsMenu.m('popup-container'),\n subMenuPopperClass.value,\n ],\n onMouseenter: (evt: MouseEvent) =>\n handleMouseenter(evt, 100),\n onMouseleave: () => handleMouseleave(true),\n onFocus: (evt: FocusEvent) => handleMouseenter(evt, 100),\n },\n [\n h(\n 'ul',\n {\n class: [\n nsMenu.b(),\n nsMenu.m('popup'),\n nsMenu.m(`popup-${currentPlacement.value}`),\n ],\n style: ulStyle.value,\n },\n [slots.default?.()]\n ),\n ]\n ),\n default: () =>\n h(\n 'div',\n {\n class: nsSubMenu.e('title'),\n onClick: handleClick,\n },\n titleTag\n ),\n }\n )\n : h(Fragment, {}, [\n h(\n 'div',\n {\n class: nsSubMenu.e('title'),\n ref: verticalTitleRef,\n onClick: handleClick,\n },\n titleTag\n ),\n h(\n ElCollapseTransition,\n {},\n {\n default: () =>\n withDirectives(\n h(\n 'ul',\n {\n role: 'menu',\n class: [nsMenu.b(), nsMenu.m('inline')],\n style: ulStyle.value,\n },\n [slots.default?.()]\n ),\n [[vShow, opened.value]]\n ),\n }\n ),\n ])\n\n return h(\n 'li',\n {\n class: [\n nsSubMenu.b(),\n nsSubMenu.is('active', active.value),\n nsSubMenu.is('opened', opened.value),\n nsSubMenu.is('disabled', props.disabled),\n ],\n role: 'menuitem',\n ariaHaspopup: true,\n ariaExpanded: opened.value,\n onMouseenter: handleMouseenter,\n onMouseleave: () => handleMouseleave(),\n onFocus: handleMouseenter,\n },\n [child]\n )\n }\n },\n})\n"],"names":["buildProps","iconPropType","defineComponent","getCurrentInstance","useMenu","computed","useNamespace","inject","throwError","ref","ArrowDown","ArrowRight","isUndefined","reactive","useMenuCssVar","useTimeoutFn","watch","provide","onMounted","onBeforeUnmount","h","ElIcon","isString","ElTooltip","Fragment","ElCollapseTransition","withDirectives","vShow"],"mappings":";;;;;;;;;;;;;;;;;;;AA+BY,MAAC,YAAY,GAAGA,kBAAU,CAAC;AACvC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,YAAY,EAAE,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AAK,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAACO,SAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACrG,WAAW;AACX,SAAS,CAAC;AACV,OAAO,CAAC,CAAC;AACT,MAAM,OAAOP,KAAC,CAAC,IAAI,EAAE;AACrB,QAAQ,KAAK,EAAE;AACf,UAAU,SAAS,CAAC,CAAC,EAAE;AACvB,UAAU,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC;AAC9C,UAAU,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC;AAC9C,UAAU,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC;AAClD,SAAS;AACT,QAAQ,IAAI,EAAE,UAAU;AACxB,QAAQ,YAAY,EAAE,IAAI;AAC1B,QAAQ,YAAY,EAAE,MAAM,CAAC,KAAK;AAClC,QAAQ,YAAY,EAAE,gBAAgB;AACtC,QAAQ,YAAY,EAAE,MAAM,gBAAgB,EAAE;AAC9C,QAAQ,OAAO,EAAE,gBAAgB;AACjC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAClB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;"}
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var pageHeader$1 = require('./src/page-header2.js');
6
- var pageHeader = require('./src/page-header.js');
5
+ var pageHeader$1 = require('./src/page-header.js');
6
+ var pageHeader = require('./src/page-header2.js');
7
7
  var install = require('../../utils/vue/install.js');
8
8
 
9
9
  const ElPageHeader = install.withInstall(pageHeader$1["default"]);
@@ -2,25 +2,105 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var iconsVue = require('@element-plus/icons-vue');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
7
- var icon = require('../../../utils/vue/icon.js');
5
+ var vue = require('vue');
6
+ var index$2 = require('../../icon/index.js');
7
+ var index$3 = require('../../divider/index.js');
8
+ var pageHeader = require('./page-header2.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-locale/index.js');
11
+ var index$1 = require('../../../hooks/use-namespace/index.js');
8
12
 
9
- const pageHeaderProps = runtime.buildProps({
10
- icon: {
11
- type: icon.iconPropType,
12
- default: () => iconsVue.Back
13
- },
14
- title: String,
15
- content: {
16
- type: String,
17
- default: ""
13
+ const __default__ = vue.defineComponent({
14
+ name: "ElPageHeader"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...__default__,
18
+ props: pageHeader.pageHeaderProps,
19
+ emits: pageHeader.pageHeaderEmits,
20
+ setup(__props, { emit }) {
21
+ const { t } = index.useLocale();
22
+ const ns = index$1.useNamespace("page-header");
23
+ function handleClick() {
24
+ emit("back");
25
+ }
26
+ return (_ctx, _cache) => {
27
+ return vue.openBlock(), vue.createElementBlock("div", {
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
+ ])
36
+ }, [
37
+ _ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div", {
38
+ key: 0,
39
+ class: vue.normalizeClass(vue.unref(ns).e("breadcrumb"))
40
+ }, [
41
+ vue.renderSlot(_ctx.$slots, "breadcrumb")
42
+ ], 2)) : vue.createCommentVNode("v-if", true),
43
+ vue.createElementVNode("div", {
44
+ class: vue.normalizeClass(vue.unref(ns).e("header"))
45
+ }, [
46
+ vue.createElementVNode("div", {
47
+ class: vue.normalizeClass(vue.unref(ns).e("left"))
48
+ }, [
49
+ vue.createElementVNode("div", {
50
+ class: vue.normalizeClass(vue.unref(ns).e("back")),
51
+ role: "button",
52
+ tabindex: "0",
53
+ onClick: handleClick
54
+ }, [
55
+ _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
56
+ key: 0,
57
+ "aria-label": _ctx.title || vue.unref(t)("el.pageHeader.title"),
58
+ class: vue.normalizeClass(vue.unref(ns).e("icon"))
59
+ }, [
60
+ vue.renderSlot(_ctx.$slots, "icon", {}, () => [
61
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
62
+ default: vue.withCtx(() => [
63
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
64
+ ]),
65
+ _: 1
66
+ })) : vue.createCommentVNode("v-if", true)
67
+ ])
68
+ ], 10, ["aria-label"])) : vue.createCommentVNode("v-if", true),
69
+ vue.createElementVNode("div", {
70
+ class: vue.normalizeClass(vue.unref(ns).e("title"))
71
+ }, [
72
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
73
+ vue.createTextVNode(vue.toDisplayString(_ctx.title || vue.unref(t)("el.pageHeader.title")), 1)
74
+ ])
75
+ ], 2)
76
+ ], 2),
77
+ vue.createVNode(vue.unref(index$3.ElDivider), { direction: "vertical" }),
78
+ vue.createElementVNode("div", {
79
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
80
+ }, [
81
+ vue.renderSlot(_ctx.$slots, "content", {}, () => [
82
+ vue.createTextVNode(vue.toDisplayString(_ctx.content), 1)
83
+ ])
84
+ ], 2)
85
+ ], 2),
86
+ _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
87
+ key: 0,
88
+ class: vue.normalizeClass(vue.unref(ns).e("extra"))
89
+ }, [
90
+ vue.renderSlot(_ctx.$slots, "extra")
91
+ ], 2)) : vue.createCommentVNode("v-if", true)
92
+ ], 2),
93
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("div", {
94
+ key: 1,
95
+ class: vue.normalizeClass(vue.unref(ns).e("main"))
96
+ }, [
97
+ vue.renderSlot(_ctx.$slots, "default")
98
+ ], 2)) : vue.createCommentVNode("v-if", true)
99
+ ], 2);
100
+ };
18
101
  }
19
102
  });
20
- const pageHeaderEmits = {
21
- back: () => true
22
- };
103
+ var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "page-header.vue"]]);
23
104
 
24
- exports.pageHeaderEmits = pageHeaderEmits;
25
- exports.pageHeaderProps = pageHeaderProps;
105
+ exports["default"] = PageHeader;
26
106
  //# sourceMappingURL=page-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"page-header.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type PageHeader from './page-header.vue'\n\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\nexport type PageHeaderProps = ExtractPropTypes<typeof pageHeaderProps>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;;;AAEY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,aAAI;AACvB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;;"}
1
+ {"version":3,"file":"page-header.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\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":";;;;;;;;;;;;uCA6Dc,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,105 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../icon/index.js');
7
- var index$3 = require('../../divider/index.js');
8
- var pageHeader = require('./page-header.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../hooks/use-locale/index.js');
11
- var index$1 = require('../../../hooks/use-namespace/index.js');
5
+ var iconsVue = require('@element-plus/icons-vue');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
7
+ var icon = require('../../../utils/vue/icon.js');
12
8
 
13
- const __default__ = vue.defineComponent({
14
- name: "ElPageHeader"
15
- });
16
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
- ...__default__,
18
- props: pageHeader.pageHeaderProps,
19
- emits: pageHeader.pageHeaderEmits,
20
- setup(__props, { emit }) {
21
- const { t } = index.useLocale();
22
- const ns = index$1.useNamespace("page-header");
23
- function handleClick() {
24
- emit("back");
25
- }
26
- return (_ctx, _cache) => {
27
- return vue.openBlock(), vue.createElementBlock("div", {
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
- ])
36
- }, [
37
- _ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock("div", {
38
- key: 0,
39
- class: vue.normalizeClass(vue.unref(ns).e("breadcrumb"))
40
- }, [
41
- vue.renderSlot(_ctx.$slots, "breadcrumb")
42
- ], 2)) : vue.createCommentVNode("v-if", true),
43
- vue.createElementVNode("div", {
44
- class: vue.normalizeClass(vue.unref(ns).e("header"))
45
- }, [
46
- vue.createElementVNode("div", {
47
- class: vue.normalizeClass(vue.unref(ns).e("left"))
48
- }, [
49
- vue.createElementVNode("div", {
50
- class: vue.normalizeClass(vue.unref(ns).e("back")),
51
- role: "button",
52
- tabindex: "0",
53
- onClick: handleClick
54
- }, [
55
- _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
56
- key: 0,
57
- "aria-label": _ctx.title || vue.unref(t)("el.pageHeader.title"),
58
- class: vue.normalizeClass(vue.unref(ns).e("icon"))
59
- }, [
60
- vue.renderSlot(_ctx.$slots, "icon", {}, () => [
61
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
62
- default: vue.withCtx(() => [
63
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
64
- ]),
65
- _: 1
66
- })) : vue.createCommentVNode("v-if", true)
67
- ])
68
- ], 10, ["aria-label"])) : vue.createCommentVNode("v-if", true),
69
- vue.createElementVNode("div", {
70
- class: vue.normalizeClass(vue.unref(ns).e("title"))
71
- }, [
72
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
73
- vue.createTextVNode(vue.toDisplayString(_ctx.title || vue.unref(t)("el.pageHeader.title")), 1)
74
- ])
75
- ], 2)
76
- ], 2),
77
- vue.createVNode(vue.unref(index$3.ElDivider), { direction: "vertical" }),
78
- vue.createElementVNode("div", {
79
- class: vue.normalizeClass(vue.unref(ns).e("content"))
80
- }, [
81
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
82
- vue.createTextVNode(vue.toDisplayString(_ctx.content), 1)
83
- ])
84
- ], 2)
85
- ], 2),
86
- _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock("div", {
87
- key: 0,
88
- class: vue.normalizeClass(vue.unref(ns).e("extra"))
89
- }, [
90
- vue.renderSlot(_ctx.$slots, "extra")
91
- ], 2)) : vue.createCommentVNode("v-if", true)
92
- ], 2),
93
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("div", {
94
- key: 1,
95
- class: vue.normalizeClass(vue.unref(ns).e("main"))
96
- }, [
97
- vue.renderSlot(_ctx.$slots, "default")
98
- ], 2)) : vue.createCommentVNode("v-if", true)
99
- ], 2);
100
- };
9
+ const pageHeaderProps = runtime.buildProps({
10
+ icon: {
11
+ type: icon.iconPropType,
12
+ default: () => iconsVue.Back
13
+ },
14
+ title: String,
15
+ content: {
16
+ type: String,
17
+ default: ""
101
18
  }
102
19
  });
103
- var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "page-header.vue"]]);
20
+ const pageHeaderEmits = {
21
+ back: () => true
22
+ };
104
23
 
105
- exports["default"] = PageHeader;
24
+ exports.pageHeaderEmits = pageHeaderEmits;
25
+ exports.pageHeaderProps = pageHeaderProps;
106
26
  //# sourceMappingURL=page-header2.js.map
@@ -1 +1 @@
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\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":";;;;;;;;;;;;uCA6Dc,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"page-header2.js","sources":["../../../../../../packages/components/page-header/src/page-header.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport { Back } from '@element-plus/icons-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type PageHeader from './page-header.vue'\n\nexport const pageHeaderProps = buildProps({\n /**\n * @description icon component of page header\n */\n icon: {\n type: iconPropType,\n default: () => Back,\n },\n /**\n * @description main title of page header\n */\n title: String,\n /**\n * @description content of page header\n */\n content: {\n type: String,\n default: '',\n },\n} as const)\nexport type PageHeaderProps = ExtractPropTypes<typeof pageHeaderProps>\n\nexport const pageHeaderEmits = {\n back: () => true,\n}\nexport type PageHeaderEmits = typeof pageHeaderEmits\n\nexport type PageHeaderInstance = InstanceType<typeof PageHeader> & unknown\n"],"names":["buildProps","iconPropType","Back"],"mappings":";;;;;;;;AAEY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,aAAI;AACvB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,IAAI,EAAE,MAAM,IAAI;AAClB;;;;;"}
@@ -2,43 +2,26 @@
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 next = require('./next2.js');
8
- var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
- var index = require('../../../../hooks/use-locale/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: "ElPaginationNext"
13
- });
14
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
- ...__default__,
16
- props: next.paginationNextProps,
17
- emits: ["click"],
18
- setup(__props) {
19
- const props = __props;
20
- const { t } = index.useLocale();
21
- const internalDisabled = vue.computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
22
- return (_ctx, _cache) => {
23
- return vue.openBlock(), vue.createElementBlock("button", {
24
- type: "button",
25
- class: "btn-next",
26
- disabled: vue.unref(internalDisabled),
27
- "aria-label": _ctx.nextText || vue.unref(t)("el.pagination.next"),
28
- "aria-disabled": vue.unref(internalDisabled),
29
- onClick: ($event) => _ctx.$emit("click", $event)
30
- }, [
31
- _ctx.nextText ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.nextText), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
32
- default: vue.withCtx(() => [
33
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.nextIcon)))
34
- ]),
35
- _: 1
36
- }))
37
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
38
- };
8
+ const paginationNextProps = runtime.buildProps({
9
+ disabled: Boolean,
10
+ currentPage: {
11
+ type: Number,
12
+ default: 1
13
+ },
14
+ pageCount: {
15
+ type: Number,
16
+ default: 50
17
+ },
18
+ nextText: {
19
+ type: String
20
+ },
21
+ nextIcon: {
22
+ type: icon.iconPropType
39
23
  }
40
24
  });
41
- var Next = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "next.vue"]]);
42
25
 
43
- exports["default"] = Next;
26
+ exports.paginationNextProps = paginationNextProps;
44
27
  //# sourceMappingURL=next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sources":["../../../../../../../packages/components/pagination/src/components/next.vue"],"sourcesContent":["<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <el-icon v-else>\n <component :is=\"nextIcon\" />\n </el-icon>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled ||\n props.currentPage === props.pageCount ||\n props.pageCount === 0\n)\n</script>\n"],"names":["useLocale","computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,QAAA,IAAA,KAAA,CAAA,WAAA,KAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,SAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACvB,OAAA,CACE,MAAM,MACN,KAAA;AACoB,MACxB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"next.js","sources":["../../../../../../../packages/components/pagination/src/components/next.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC;;;;"}
@@ -2,26 +2,43 @@
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 next = require('./next.js');
8
+ var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
+ var index = require('../../../../hooks/use-locale/index.js');
7
10
 
8
- const paginationNextProps = runtime.buildProps({
9
- disabled: Boolean,
10
- currentPage: {
11
- type: Number,
12
- default: 1
13
- },
14
- pageCount: {
15
- type: Number,
16
- default: 50
17
- },
18
- nextText: {
19
- type: String
20
- },
21
- nextIcon: {
22
- type: icon.iconPropType
11
+ const __default__ = vue.defineComponent({
12
+ name: "ElPaginationNext"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...__default__,
16
+ props: next.paginationNextProps,
17
+ emits: ["click"],
18
+ setup(__props) {
19
+ const props = __props;
20
+ const { t } = index.useLocale();
21
+ const internalDisabled = vue.computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
22
+ return (_ctx, _cache) => {
23
+ return vue.openBlock(), vue.createElementBlock("button", {
24
+ type: "button",
25
+ class: "btn-next",
26
+ disabled: vue.unref(internalDisabled),
27
+ "aria-label": _ctx.nextText || vue.unref(t)("el.pagination.next"),
28
+ "aria-disabled": vue.unref(internalDisabled),
29
+ onClick: ($event) => _ctx.$emit("click", $event)
30
+ }, [
31
+ _ctx.nextText ? (vue.openBlock(), vue.createElementBlock("span", { key: 0 }, vue.toDisplayString(_ctx.nextText), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
32
+ default: vue.withCtx(() => [
33
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.nextIcon)))
34
+ ]),
35
+ _: 1
36
+ }))
37
+ ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
38
+ };
23
39
  }
24
40
  });
41
+ var Next = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "next.vue"]]);
25
42
 
26
- exports.paginationNextProps = paginationNextProps;
43
+ exports["default"] = Next;
27
44
  //# sourceMappingURL=next2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next2.js","sources":["../../../../../../../packages/components/pagination/src/components/next.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;AACY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"next2.js","sources":["../../../../../../../packages/components/pagination/src/components/next.vue"],"sourcesContent":["<template>\n <button\n type=\"button\"\n class=\"btn-next\"\n :disabled=\"internalDisabled\"\n :aria-label=\"nextText || t('el.pagination.next')\"\n :aria-disabled=\"internalDisabled\"\n @click=\"$emit('click', $event)\"\n >\n <span v-if=\"nextText\">{{ nextText }}</span>\n <el-icon v-else>\n <component :is=\"nextIcon\" />\n </el-icon>\n </button>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useLocale } from '@element-plus/hooks'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { paginationNextProps } from './next'\n\ndefineOptions({\n name: 'ElPaginationNext',\n})\n\nconst props = defineProps(paginationNextProps)\n\ndefineEmits(['click'])\n\nconst { t } = useLocale()\n\nconst internalDisabled = computed(\n () =>\n props.disabled ||\n props.currentPage === props.pageCount ||\n props.pageCount === 0\n)\n</script>\n"],"names":["useLocale","computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;uCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,QAAA,IAAA,KAAA,CAAA,WAAA,KAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,SAAA,KAAA,CAAA,CAAA,CAAA;AAAA,IACvB,OAAA,CACE,MAAM,MACN,KAAA;AACoB,MACxB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,7 +6,7 @@ var vue = require('vue');
6
6
  var iconsVue = require('@element-plus/icons-vue');
7
7
  var constants = require('./constants.js');
8
8
  var prev = require('./components/prev2.js');
9
- var next = require('./components/next.js');
9
+ var next = require('./components/next2.js');
10
10
  var sizes = require('./components/sizes2.js');
11
11
  var jumper = require('./components/jumper2.js');
12
12
  var total = require('./components/total2.js');
@@ -6,7 +6,7 @@ var iconsVue = require('@element-plus/icons-vue');
6
6
  var button = require('../../button/src/button.js');
7
7
  var runtime = require('../../../utils/vue/props/runtime.js');
8
8
  var icon = require('../../../utils/vue/icon.js');
9
- var content = require('../../tooltip/src/content.js');
9
+ var content = require('../../tooltip/src/content2.js');
10
10
 
11
11
  const popconfirmProps = runtime.buildProps({
12
12
  title: String,