@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
@@ -1 +1 @@
1
- {"version":3,"file":"jumper.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAGA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgB,aAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAY,GAAqB,EAAA,CAAA;AACvC,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM;AAElC,MAAA,IAAA,EAAA,CAAS;AACP,MAAU,OAAA,CAAA,EAAA,GAAA,SAAc,CAAA,KAAO,KAAA,IAAA,GAAA,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KACjC,CAAA,CAAA;AAEA,IAAA,SAAS,eAAmC,EAAA;AAC1C,MAAM,SAAA,CAAA,KAAW,GAAC,GAAG,GAAA,CAAA,GAAA,GAAA,EAAA,CAAA;AACrB,KAAA;AACA,IAAA,SAAA,YAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"jumper.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper>\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
@@ -1,12 +1,63 @@
1
- import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
2
- import { componentSizes } from '../../../../constants/size.mjs';
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode } from 'vue';
2
+ import { ElInput } from '../../../input/index.mjs';
3
+ import { usePagination } from '../usePagination.mjs';
4
+ import { paginationJumperProps } from './jumper.mjs';
5
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useLocale } from '../../../../hooks/use-locale/index.mjs';
7
+ import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
3
8
 
4
- const paginationJumperProps = buildProps({
5
- size: {
6
- type: String,
7
- values: componentSizes
9
+ const __default__ = defineComponent({
10
+ name: "ElPaginationJumper"
11
+ });
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...__default__,
14
+ props: paginationJumperProps,
15
+ setup(__props) {
16
+ const { t } = useLocale();
17
+ const ns = useNamespace("pagination");
18
+ const { pageCount, disabled, currentPage, changeEvent } = usePagination();
19
+ const userInput = ref();
20
+ const innerValue = computed(() => {
21
+ var _a;
22
+ return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
23
+ });
24
+ function handleInput(val) {
25
+ userInput.value = val ? +val : "";
26
+ }
27
+ function handleChange(val) {
28
+ val = Math.trunc(+val);
29
+ changeEvent == null ? void 0 : changeEvent(val);
30
+ userInput.value = void 0;
31
+ }
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("span", {
34
+ class: normalizeClass(unref(ns).e("jump")),
35
+ disabled: unref(disabled)
36
+ }, [
37
+ createElementVNode("span", {
38
+ class: normalizeClass([unref(ns).e("goto")])
39
+ }, toDisplayString(unref(t)("el.pagination.goto")), 3),
40
+ createVNode(unref(ElInput), {
41
+ size: _ctx.size,
42
+ class: normalizeClass([unref(ns).e("editor"), unref(ns).is("in-pagination")]),
43
+ min: 1,
44
+ max: unref(pageCount),
45
+ disabled: unref(disabled),
46
+ "model-value": unref(innerValue),
47
+ "validate-event": false,
48
+ "aria-label": unref(t)("el.pagination.page"),
49
+ type: "number",
50
+ "onUpdate:modelValue": handleInput,
51
+ onChange: handleChange
52
+ }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
53
+ createElementVNode("span", {
54
+ class: normalizeClass([unref(ns).e("classifier")])
55
+ }, toDisplayString(unref(t)("el.pagination.pageClassifier")), 3)
56
+ ], 10, ["disabled"]);
57
+ };
8
58
  }
9
59
  });
60
+ var Jumper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "jumper.vue"]]);
10
61
 
11
- export { paginationJumperProps };
62
+ export { Jumper as default };
12
63
  //# sourceMappingURL=jumper2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumper2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper>\n"],"names":[],"mappings":";;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"jumper2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/jumper.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('jump')\" :disabled=\"disabled\">\n <span :class=\"[ns.e('goto')]\">{{ t('el.pagination.goto') }}</span>\n <el-input\n :size=\"size\"\n :class=\"[ns.e('editor'), ns.is('in-pagination')]\"\n :min=\"1\"\n :max=\"pageCount\"\n :disabled=\"disabled\"\n :model-value=\"innerValue\"\n :validate-event=\"false\"\n :aria-label=\"t('el.pagination.page')\"\n type=\"number\"\n @update:model-value=\"handleInput\"\n @change=\"handleChange\"\n />\n <span :class=\"[ns.e('classifier')]\">{{\n t('el.pagination.pageClassifier')\n }}</span>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport ElInput from '@element-plus/components/input'\nimport { usePagination } from '../usePagination'\nimport { paginationJumperProps } from './jumper'\n\ndefineOptions({\n name: 'ElPaginationJumper',\n})\n\ndefineProps(paginationJumperProps)\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst { pageCount, disabled, currentPage, changeEvent } = usePagination()\nconst userInput = ref<number | string>()\nconst innerValue = computed(() => userInput.value ?? currentPage?.value)\n\nfunction handleInput(val: number | string) {\n userInput.value = val ? +val : ''\n}\n\nfunction handleChange(val: number | string) {\n val = Math.trunc(+val)\n changeEvent?.(val)\n userInput.value = undefined\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;mCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAGA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgB,aAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAY,GAAqB,EAAA,CAAA;AACvC,IAAA,MAAM,aAAa,QAAS,CAAA,MAAM;AAElC,MAAA,IAAA,EAAA,CAAS;AACP,MAAU,OAAA,CAAA,EAAA,GAAA,SAAc,CAAA,KAAO,KAAA,IAAA,GAAA,EAAA,GAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KACjC,CAAA,CAAA;AAEA,IAAA,SAAS,eAAmC,EAAA;AAC1C,MAAM,SAAA,CAAA,KAAW,GAAC,GAAG,GAAA,CAAA,GAAA,GAAA,EAAA,CAAA;AACrB,KAAA;AACA,IAAA,SAAA,YAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,GAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,40 +1,23 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, unref, toDisplayString, createBlock, withCtx, resolveDynamicComponent } from 'vue';
2
- import { ElIcon } from '../../../icon/index.mjs';
3
- import { paginationNextProps } from './next2.mjs';
4
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useLocale } from '../../../../hooks/use-locale/index.mjs';
1
+ import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
2
+ import { iconPropType } from '../../../../utils/vue/icon.mjs';
6
3
 
7
- const __default__ = defineComponent({
8
- name: "ElPaginationNext"
9
- });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: paginationNextProps,
13
- emits: ["click"],
14
- setup(__props) {
15
- const props = __props;
16
- const { t } = useLocale();
17
- const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
18
- return (_ctx, _cache) => {
19
- return openBlock(), createElementBlock("button", {
20
- type: "button",
21
- class: "btn-next",
22
- disabled: unref(internalDisabled),
23
- "aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
24
- "aria-disabled": unref(internalDisabled),
25
- onClick: ($event) => _ctx.$emit("click", $event)
26
- }, [
27
- _ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
28
- default: withCtx(() => [
29
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
30
- ]),
31
- _: 1
32
- }))
33
- ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
34
- };
4
+ const paginationNextProps = buildProps({
5
+ disabled: Boolean,
6
+ currentPage: {
7
+ type: Number,
8
+ default: 1
9
+ },
10
+ pageCount: {
11
+ type: Number,
12
+ default: 50
13
+ },
14
+ nextText: {
15
+ type: String
16
+ },
17
+ nextIcon: {
18
+ type: iconPropType
35
19
  }
36
20
  });
37
- var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
38
21
 
39
- export { Next as default };
22
+ export { paginationNextProps };
40
23
  //# sourceMappingURL=next.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.mjs","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":["_openBlock","_createElementBlock"],"mappings":";;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAA,QAAA,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,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"next.mjs","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>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,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,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
@@ -1,23 +1,40 @@
1
- import { buildProps } from '../../../../utils/vue/props/runtime.mjs';
2
- import { iconPropType } from '../../../../utils/vue/icon.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, unref, toDisplayString, createBlock, withCtx, resolveDynamicComponent } from 'vue';
2
+ import { ElIcon } from '../../../icon/index.mjs';
3
+ import { paginationNextProps } from './next.mjs';
4
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useLocale } from '../../../../hooks/use-locale/index.mjs';
3
6
 
4
- const paginationNextProps = buildProps({
5
- disabled: Boolean,
6
- currentPage: {
7
- type: Number,
8
- default: 1
9
- },
10
- pageCount: {
11
- type: Number,
12
- default: 50
13
- },
14
- nextText: {
15
- type: String
16
- },
17
- nextIcon: {
18
- type: iconPropType
7
+ const __default__ = defineComponent({
8
+ name: "ElPaginationNext"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: paginationNextProps,
13
+ emits: ["click"],
14
+ setup(__props) {
15
+ const props = __props;
16
+ const { t } = useLocale();
17
+ const internalDisabled = computed(() => props.disabled || props.currentPage === props.pageCount || props.pageCount === 0);
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("button", {
20
+ type: "button",
21
+ class: "btn-next",
22
+ disabled: unref(internalDisabled),
23
+ "aria-label": _ctx.nextText || unref(t)("el.pagination.next"),
24
+ "aria-disabled": unref(internalDisabled),
25
+ onClick: ($event) => _ctx.$emit("click", $event)
26
+ }, [
27
+ _ctx.nextText ? (openBlock(), createElementBlock("span", { key: 0 }, toDisplayString(_ctx.nextText), 1)) : (openBlock(), createBlock(unref(ElIcon), { key: 1 }, {
28
+ default: withCtx(() => [
29
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.nextIcon)))
30
+ ]),
31
+ _: 1
32
+ }))
33
+ ], 8, ["disabled", "aria-label", "aria-disabled", "onClick"]);
34
+ };
19
35
  }
20
36
  });
37
+ var Next = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "next.vue"]]);
21
38
 
22
- export { paginationNextProps };
39
+ export { Next as default };
23
40
  //# sourceMappingURL=next2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"next2.mjs","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>\n"],"names":[],"mappings":";;;AACY,MAAC,mBAAmB,GAAG,UAAU,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,EAAE,YAAY;AACtB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"next2.mjs","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":["_openBlock","_createElementBlock"],"mappings":";;;;;;mCAsBc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAExB,IAAA,MAAM,gBAAmB,GAAA,QAAA,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,OAAAA,SAAA,EAAA,EAAAC,kBAAA,CAAA,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,75 +1,27 @@
1
- import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock } from 'vue';
2
- import { isEqual } from 'lodash-unified';
3
- import { ElSelect, ElOption } from '../../../select/index.mjs';
4
- import { usePagination } from '../usePagination.mjs';
5
- import { paginationSizesProps } from './sizes2.mjs';
6
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
7
- import { useLocale } from '../../../../hooks/use-locale/index.mjs';
8
- import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
9
- import { isArray } from '@vue/shared';
1
+ import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
2
+ import { mutable } from '../../../../utils/typescript.mjs';
3
+ import { componentSizes } from '../../../../constants/size.mjs';
10
4
 
11
- const __default__ = defineComponent({
12
- name: "ElPaginationSizes"
5
+ const paginationSizesProps = buildProps({
6
+ pageSize: {
7
+ type: Number,
8
+ required: true
9
+ },
10
+ pageSizes: {
11
+ type: definePropType(Array),
12
+ default: () => mutable([10, 20, 30, 40, 50, 100])
13
+ },
14
+ popperClass: {
15
+ type: String
16
+ },
17
+ disabled: Boolean,
18
+ teleported: Boolean,
19
+ size: {
20
+ type: String,
21
+ values: componentSizes
22
+ },
23
+ appendSizeTo: String
13
24
  });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: paginationSizesProps,
17
- emits: ["page-size-change"],
18
- setup(__props, { emit }) {
19
- const props = __props;
20
- const { t } = useLocale();
21
- const ns = useNamespace("pagination");
22
- const pagination = usePagination();
23
- const innerPageSize = ref(props.pageSize);
24
- watch(() => props.pageSizes, (newVal, oldVal) => {
25
- if (isEqual(newVal, oldVal))
26
- return;
27
- if (isArray(newVal)) {
28
- const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
29
- emit("page-size-change", pageSize);
30
- }
31
- });
32
- watch(() => props.pageSize, (newVal) => {
33
- innerPageSize.value = newVal;
34
- });
35
- const innerPageSizes = computed(() => props.pageSizes);
36
- function handleChange(val) {
37
- var _a;
38
- if (val !== innerPageSize.value) {
39
- innerPageSize.value = val;
40
- (_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
41
- }
42
- }
43
- return (_ctx, _cache) => {
44
- return openBlock(), createElementBlock("span", {
45
- class: normalizeClass(unref(ns).e("sizes"))
46
- }, [
47
- createVNode(unref(ElSelect), {
48
- "model-value": innerPageSize.value,
49
- disabled: _ctx.disabled,
50
- "popper-class": _ctx.popperClass,
51
- size: _ctx.size,
52
- teleported: _ctx.teleported,
53
- "validate-event": false,
54
- "append-to": _ctx.appendSizeTo,
55
- onChange: handleChange
56
- }, {
57
- default: withCtx(() => [
58
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
59
- return openBlock(), createBlock(unref(ElOption), {
60
- key: item,
61
- value: item,
62
- label: item + unref(t)("el.pagination.pagesize")
63
- }, null, 8, ["value", "label"]);
64
- }), 128))
65
- ]),
66
- _: 1
67
- }, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
68
- ], 2);
69
- };
70
- }
71
- });
72
- var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "sizes.vue"]]);
73
25
 
74
- export { Sizes as default };
26
+ export { paginationSizesProps };
75
27
  //# sourceMappingURL=sizes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('sizes')\">\n <el-select\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :teleported=\"teleported\"\n :validate-event=\"false\"\n :append-to=\"appendSizeTo\"\n @change=\"handleChange\"\n >\n <el-option\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :value=\"item\"\n :label=\"item + t('el.pagination.pagesize')\"\n />\n </el-select>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { ElOption, ElSelect } from '@element-plus/components/select'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { isArray } from '@element-plus/utils'\nimport { usePagination } from '../usePagination'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal)) return\n if (isArray(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n emit('page-size-change', pageSize)\n }\n }\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n }\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgB,GAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAA,KAAA,CAAA,MAAA,KAAA,CAAA,SAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,WAAY,CAAA,MAAA,EAAA,MAAA,CAAA;AAAA,eACH;AACP,MAAI,IAAA,OAAA,CAAA,MAAgB,CAAA,EAAA;AACpB,QAAI,MAAA,iBAAiB,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,CAAA,GAAA,KAAA,CAAA,QAAA,GAAA,KAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AACnB,QAAM,IAAA,CAAA,kBAAkB,EAAA,QAAA,CAAA,CAAS;AAGjC,OAAA;AAAiC,KACnC,CAAA,CAAA;AAAA,IACF,KAAA,CAAA,MAAA,KAAA,CAAA,QAAA,EAAA,CAAA,MAAA,KAAA;AAAA,MACF,aAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AAEA,KAAA,CAAA,CAAA;AAAA,IAAA,oBACc,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,IAAA,SACA,YAAA,CAAA,GAAA,EAAA;AACV,MAAA,IAAA,EAAA,CAAA;AAAsB,MACxB,IAAA,GAAA,KAAA,aAAA,CAAA,KAAA,EAAA;AAAA,QACF,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAEA,QAAA,CAAA,EAAuB,GAAA,UAAA,CAAA,gBAAe,KAAA,IAAe,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACrD,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAA,EAAA,MAAsB,KAAA;AACtB,MAAW,OAAAA,SAAA,EAAA,EAAAC,kBAA0B,CAAA,MAAI,EAAA;AAAA,QAC3C,KAAA,EAAAC,cAAA,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AAAA,OACF,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"sizes.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Sizes from './sizes.vue'\n\nexport const paginationSizesProps = buildProps({\n pageSize: {\n type: Number,\n required: true,\n },\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n popperClass: {\n type: String,\n },\n disabled: Boolean,\n teleported: Boolean,\n size: {\n type: String,\n values: componentSizes,\n },\n appendSizeTo: String,\n} as const)\n\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\n\nexport type SizesInstance = InstanceType<typeof Sizes>\n"],"names":[],"mappings":";;;;AAEY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AACrD,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,CAAC;;;;"}
@@ -1,27 +1,75 @@
1
- import { buildProps, definePropType } from '../../../../utils/vue/props/runtime.mjs';
2
- import { mutable } from '../../../../utils/typescript.mjs';
3
- import { componentSizes } from '../../../../constants/size.mjs';
1
+ import { defineComponent, ref, watch, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock } from 'vue';
2
+ import { isEqual } from 'lodash-unified';
3
+ import { ElSelect, ElOption } from '../../../select/index.mjs';
4
+ import { usePagination } from '../usePagination.mjs';
5
+ import { paginationSizesProps } from './sizes.mjs';
6
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
7
+ import { useLocale } from '../../../../hooks/use-locale/index.mjs';
8
+ import { useNamespace } from '../../../../hooks/use-namespace/index.mjs';
9
+ import { isArray } from '@vue/shared';
4
10
 
5
- const paginationSizesProps = buildProps({
6
- pageSize: {
7
- type: Number,
8
- required: true
9
- },
10
- pageSizes: {
11
- type: definePropType(Array),
12
- default: () => mutable([10, 20, 30, 40, 50, 100])
13
- },
14
- popperClass: {
15
- type: String
16
- },
17
- disabled: Boolean,
18
- teleported: Boolean,
19
- size: {
20
- type: String,
21
- values: componentSizes
22
- },
23
- appendSizeTo: String
11
+ const __default__ = defineComponent({
12
+ name: "ElPaginationSizes"
24
13
  });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: paginationSizesProps,
17
+ emits: ["page-size-change"],
18
+ setup(__props, { emit }) {
19
+ const props = __props;
20
+ const { t } = useLocale();
21
+ const ns = useNamespace("pagination");
22
+ const pagination = usePagination();
23
+ const innerPageSize = ref(props.pageSize);
24
+ watch(() => props.pageSizes, (newVal, oldVal) => {
25
+ if (isEqual(newVal, oldVal))
26
+ return;
27
+ if (isArray(newVal)) {
28
+ const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
29
+ emit("page-size-change", pageSize);
30
+ }
31
+ });
32
+ watch(() => props.pageSize, (newVal) => {
33
+ innerPageSize.value = newVal;
34
+ });
35
+ const innerPageSizes = computed(() => props.pageSizes);
36
+ function handleChange(val) {
37
+ var _a;
38
+ if (val !== innerPageSize.value) {
39
+ innerPageSize.value = val;
40
+ (_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
41
+ }
42
+ }
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createElementBlock("span", {
45
+ class: normalizeClass(unref(ns).e("sizes"))
46
+ }, [
47
+ createVNode(unref(ElSelect), {
48
+ "model-value": innerPageSize.value,
49
+ disabled: _ctx.disabled,
50
+ "popper-class": _ctx.popperClass,
51
+ size: _ctx.size,
52
+ teleported: _ctx.teleported,
53
+ "validate-event": false,
54
+ "append-to": _ctx.appendSizeTo,
55
+ onChange: handleChange
56
+ }, {
57
+ default: withCtx(() => [
58
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(innerPageSizes), (item) => {
59
+ return openBlock(), createBlock(unref(ElOption), {
60
+ key: item,
61
+ value: item,
62
+ label: item + unref(t)("el.pagination.pagesize")
63
+ }, null, 8, ["value", "label"]);
64
+ }), 128))
65
+ ]),
66
+ _: 1
67
+ }, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
68
+ ], 2);
69
+ };
70
+ }
71
+ });
72
+ var Sizes = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "sizes.vue"]]);
25
73
 
26
- export { paginationSizesProps };
74
+ export { Sizes as default };
27
75
  //# sourceMappingURL=sizes2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type Sizes from './sizes.vue'\n\nexport const paginationSizesProps = buildProps({\n pageSize: {\n type: Number,\n required: true,\n },\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n popperClass: {\n type: String,\n },\n disabled: Boolean,\n teleported: Boolean,\n size: {\n type: String,\n values: componentSizes,\n },\n appendSizeTo: String,\n} as const)\n\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\n\nexport type SizesInstance = InstanceType<typeof Sizes>\n"],"names":[],"mappings":";;;;AAEY,MAAC,oBAAoB,GAAG,UAAU,CAAC;AAC/C,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AACrD,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,UAAU,EAAE,OAAO;AACrB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,CAAC;;;;"}
1
+ {"version":3,"file":"sizes2.mjs","sources":["../../../../../../../packages/components/pagination/src/components/sizes.vue"],"sourcesContent":["<template>\n <span :class=\"ns.e('sizes')\">\n <el-select\n :model-value=\"innerPageSize\"\n :disabled=\"disabled\"\n :popper-class=\"popperClass\"\n :size=\"size\"\n :teleported=\"teleported\"\n :validate-event=\"false\"\n :append-to=\"appendSizeTo\"\n @change=\"handleChange\"\n >\n <el-option\n v-for=\"item in innerPageSizes\"\n :key=\"item\"\n :value=\"item\"\n :label=\"item + t('el.pagination.pagesize')\"\n />\n </el-select>\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { ElOption, ElSelect } from '@element-plus/components/select'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { isArray } from '@element-plus/utils'\nimport { usePagination } from '../usePagination'\nimport { paginationSizesProps } from './sizes'\n\ndefineOptions({\n name: 'ElPaginationSizes',\n})\n\nconst props = defineProps(paginationSizesProps)\nconst emit = defineEmits(['page-size-change'])\nconst { t } = useLocale()\nconst ns = useNamespace('pagination')\nconst pagination = usePagination()\nconst innerPageSize = ref<number>(props.pageSize!)\n\nwatch(\n () => props.pageSizes,\n (newVal, oldVal) => {\n if (isEqual(newVal, oldVal)) return\n if (isArray(newVal)) {\n const pageSize = newVal.includes(props.pageSize!)\n ? props.pageSize\n : props.pageSizes[0]\n emit('page-size-change', pageSize)\n }\n }\n)\n\nwatch(\n () => props.pageSize,\n (newVal) => {\n innerPageSize.value = newVal!\n }\n)\n\nconst innerPageSizes = computed(() => props.pageSizes)\nfunction handleChange(val: number) {\n if (val !== innerPageSize.value) {\n innerPageSize.value = val\n pagination.handleSizeChange?.(Number(val))\n }\n}\n</script>\n"],"names":["_openBlock","_createElementBlock","_normalizeClass","_unref"],"mappings":";;;;;;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgB,GAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAA,KAAA,CAAA,MAAA,KAAA,CAAA,SAAA,EAAA,CAAA,MAAA,EAAA,MAAA,KAAA;AAAA,MACE,WAAY,CAAA,MAAA,EAAA,MAAA,CAAA;AAAA,eACH;AACP,MAAI,IAAA,OAAA,CAAA,MAAgB,CAAA,EAAA;AACpB,QAAI,MAAA,iBAAiB,CAAA,QAAA,CAAA,KAAA,CAAA,QAAA,CAAA,GAAA,KAAA,CAAA,QAAA,GAAA,KAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAA;AACnB,QAAM,IAAA,CAAA,kBAAkB,EAAA,QAAA,CAAA,CAAS;AAGjC,OAAA;AAAiC,KACnC,CAAA,CAAA;AAAA,IACF,KAAA,CAAA,MAAA,KAAA,CAAA,QAAA,EAAA,CAAA,MAAA,KAAA;AAAA,MACF,aAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AAEA,KAAA,CAAA,CAAA;AAAA,IAAA,oBACc,GAAA,QAAA,CAAA,MAAA,KAAA,CAAA,SAAA,CAAA,CAAA;AAAA,IAAA,SACA,YAAA,CAAA,GAAA,EAAA;AACV,MAAA,IAAA,EAAA,CAAA;AAAsB,MACxB,IAAA,GAAA,KAAA,aAAA,CAAA,KAAA,EAAA;AAAA,QACF,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAEA,QAAA,CAAA,EAAuB,GAAA,UAAA,CAAA,gBAAe,KAAA,IAAe,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACrD,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAA,EAAA,MAAsB,KAAA;AACtB,MAAW,OAAAA,SAAA,EAAA,EAAAC,kBAA0B,CAAA,MAAI,EAAA;AAAA,QAC3C,KAAA,EAAAC,cAAA,CAAAC,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,OAAA,CAAA,CAAA;AAAA,OACF,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,9 +2,9 @@ import { defineComponent, getCurrentInstance, computed, ref, watch, provide, h }
2
2
  import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue';
3
3
  import { elPaginationKey } from './constants.mjs';
4
4
  import Prev from './components/prev2.mjs';
5
- import Next from './components/next.mjs';
6
- import Sizes from './components/sizes.mjs';
7
- import Jumper from './components/jumper.mjs';
5
+ import Next from './components/next2.mjs';
6
+ import Sizes from './components/sizes2.mjs';
7
+ import Jumper from './components/jumper2.mjs';
8
8
  import Total from './components/total2.mjs';
9
9
  import Pager from './components/pager2.mjs';
10
10
  import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
@@ -1,5 +1,5 @@
1
- import Popconfirm from './src/popconfirm2.mjs';
2
- export { popconfirmEmits, popconfirmProps } from './src/popconfirm.mjs';
1
+ import Popconfirm from './src/popconfirm.mjs';
2
+ export { popconfirmEmits, popconfirmProps } from './src/popconfirm2.mjs';
3
3
  import { withInstall } from '../../utils/vue/install.mjs';
4
4
 
5
5
  const ElPopconfirm = withInstall(Popconfirm);