@element-plus/nightly 0.0.20260106 → 0.0.20260107

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 (610) hide show
  1. package/dist/index.full.js +41 -7
  2. package/dist/index.full.min.js +16 -16
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +41 -7
  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/affix/src/affix.mjs +1 -1
  276. package/es/components/alert/src/alert2.mjs +11 -1
  277. package/es/components/alert/src/alert2.mjs.map +1 -1
  278. package/es/components/autocomplete/src/autocomplete.mjs +1 -1
  279. package/es/components/autocomplete/src/autocomplete2.mjs +1 -1
  280. package/es/components/badge/index.mjs +2 -2
  281. package/es/components/badge/src/badge.mjs +31 -83
  282. package/es/components/badge/src/badge.mjs.map +1 -1
  283. package/es/components/badge/src/badge2.mjs +83 -31
  284. package/es/components/badge/src/badge2.mjs.map +1 -1
  285. package/es/components/calendar/index.mjs +2 -2
  286. package/es/components/calendar/src/calendar.mjs +23 -196
  287. package/es/components/calendar/src/calendar.mjs.map +1 -1
  288. package/es/components/calendar/src/calendar2.mjs +196 -23
  289. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  290. package/es/components/checkbox/index.mjs +2 -2
  291. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  292. package/es/components/checkbox/src/checkbox-group2.mjs +1 -1
  293. package/es/components/checkbox/src/checkbox.mjs +134 -62
  294. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  295. package/es/components/checkbox/src/checkbox2.mjs +62 -134
  296. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  297. package/es/components/countdown/index.mjs +2 -2
  298. package/es/components/countdown/src/countdown.mjs +83 -20
  299. package/es/components/countdown/src/countdown.mjs.map +1 -1
  300. package/es/components/countdown/src/countdown2.mjs +20 -83
  301. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  302. package/es/components/dialog/src/dialog.mjs +1 -1
  303. package/es/components/divider/index.mjs +2 -2
  304. package/es/components/divider/src/divider.mjs +15 -43
  305. package/es/components/divider/src/divider.mjs.map +1 -1
  306. package/es/components/divider/src/divider2.mjs +43 -15
  307. package/es/components/divider/src/divider2.mjs.map +1 -1
  308. package/es/components/empty/index.mjs +2 -2
  309. package/es/components/empty/src/empty.mjs +80 -10
  310. package/es/components/empty/src/empty.mjs.map +1 -1
  311. package/es/components/empty/src/empty2.mjs +10 -80
  312. package/es/components/empty/src/empty2.mjs.map +1 -1
  313. package/es/components/form/src/form-item.vue.d.ts +4 -0
  314. package/es/components/form/src/form-item2.mjs +8 -3
  315. package/es/components/form/src/form-item2.mjs.map +1 -1
  316. package/es/components/form/src/form.vue.d.ts +4 -0
  317. package/es/components/form/src/form2.mjs +26 -1
  318. package/es/components/form/src/form2.mjs.map +1 -1
  319. package/es/components/form/src/types.d.ts +2 -0
  320. package/es/components/icon/index.mjs +2 -2
  321. package/es/components/icon/src/icon.mjs +39 -7
  322. package/es/components/icon/src/icon.mjs.map +1 -1
  323. package/es/components/icon/src/icon2.mjs +7 -39
  324. package/es/components/icon/src/icon2.mjs.map +1 -1
  325. package/es/components/image/index.mjs +2 -2
  326. package/es/components/image/src/image.mjs +279 -68
  327. package/es/components/image/src/image.mjs.map +1 -1
  328. package/es/components/image/src/image2.mjs +68 -279
  329. package/es/components/image/src/image2.mjs.map +1 -1
  330. package/es/components/index.mjs +23 -23
  331. package/es/components/input/index.mjs +2 -2
  332. package/es/components/input/src/input.mjs +124 -586
  333. package/es/components/input/src/input.mjs.map +1 -1
  334. package/es/components/input/src/input2.mjs +586 -124
  335. package/es/components/input/src/input2.mjs.map +1 -1
  336. package/es/components/input-number/index.mjs +2 -2
  337. package/es/components/input-number/src/input-number.mjs +414 -73
  338. package/es/components/input-number/src/input-number.mjs.map +1 -1
  339. package/es/components/input-number/src/input-number2.mjs +73 -414
  340. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  341. package/es/components/input-tag/index.mjs +2 -2
  342. package/es/components/input-tag/src/input-tag.mjs +344 -82
  343. package/es/components/input-tag/src/input-tag.mjs.map +1 -1
  344. package/es/components/input-tag/src/input-tag2.mjs +82 -344
  345. package/es/components/input-tag/src/input-tag2.mjs.map +1 -1
  346. package/es/components/link/index.mjs +2 -2
  347. package/es/components/link/src/link.mjs +80 -24
  348. package/es/components/link/src/link.mjs.map +1 -1
  349. package/es/components/link/src/link2.mjs +24 -80
  350. package/es/components/link/src/link2.mjs.map +1 -1
  351. package/es/components/mention/src/mention-dropdown.mjs +205 -14
  352. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  353. package/es/components/mention/src/mention-dropdown2.mjs +14 -205
  354. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  355. package/es/components/mention/src/mention.mjs +1 -1
  356. package/es/components/mention/src/mention2.mjs +2 -2
  357. package/es/components/notification/index.mjs +1 -1
  358. package/es/components/notification/src/notification.mjs +174 -72
  359. package/es/components/notification/src/notification.mjs.map +1 -1
  360. package/es/components/notification/src/notification2.mjs +72 -174
  361. package/es/components/notification/src/notification2.mjs.map +1 -1
  362. package/es/components/notification/src/notify.mjs +2 -2
  363. package/es/components/page-header/index.mjs +2 -2
  364. package/es/components/page-header/src/page-header.mjs +149 -15
  365. package/es/components/page-header/src/page-header.mjs.map +1 -1
  366. package/es/components/page-header/src/page-header2.mjs +15 -149
  367. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  368. package/es/components/pagination/src/components/jumper.mjs +7 -69
  369. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  370. package/es/components/pagination/src/components/jumper2.mjs +69 -7
  371. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  372. package/es/components/pagination/src/components/pager.mjs +15 -229
  373. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  374. package/es/components/pagination/src/components/pager2.mjs +229 -15
  375. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  376. package/es/components/pagination/src/pagination.mjs +2 -2
  377. package/es/components/popconfirm/index.mjs +2 -2
  378. package/es/components/popconfirm/src/popconfirm.mjs +163 -49
  379. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  380. package/es/components/popconfirm/src/popconfirm2.mjs +49 -163
  381. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  382. package/es/components/popover/index.mjs +2 -2
  383. package/es/components/popover/src/popover.mjs +65 -120
  384. package/es/components/popover/src/popover.mjs.map +1 -1
  385. package/es/components/popover/src/popover2.mjs +120 -65
  386. package/es/components/popover/src/popover2.mjs.map +1 -1
  387. package/es/components/progress/index.mjs +2 -2
  388. package/es/components/progress/src/progress.mjs +52 -256
  389. package/es/components/progress/src/progress.mjs.map +1 -1
  390. package/es/components/progress/src/progress2.mjs +256 -52
  391. package/es/components/progress/src/progress2.mjs.map +1 -1
  392. package/es/components/result/index.mjs +2 -2
  393. package/es/components/result/src/result.mjs +29 -96
  394. package/es/components/result/src/result.mjs.map +1 -1
  395. package/es/components/result/src/result2.mjs +96 -29
  396. package/es/components/result/src/result2.mjs.map +1 -1
  397. package/es/components/select/index.mjs +2 -2
  398. package/es/components/select/src/select.mjs +728 -152
  399. package/es/components/select/src/select.mjs.map +1 -1
  400. package/es/components/select/src/select2.mjs +152 -728
  401. package/es/components/select/src/select2.mjs.map +1 -1
  402. package/es/components/table-v2/src/components/expand-icon.d.ts +11 -8
  403. package/es/components/table-v2/src/components/expand-icon.mjs +1 -0
  404. package/es/components/table-v2/src/components/expand-icon.mjs.map +1 -1
  405. package/es/components/teleport/index.mjs +2 -2
  406. package/es/components/teleport/src/teleport.mjs +8 -18
  407. package/es/components/teleport/src/teleport.mjs.map +1 -1
  408. package/es/components/teleport/src/teleport2.mjs +18 -8
  409. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  410. package/es/components/text/index.mjs +2 -2
  411. package/es/components/text/src/text.mjs +20 -66
  412. package/es/components/text/src/text.mjs.map +1 -1
  413. package/es/components/text/src/text2.mjs +66 -20
  414. package/es/components/text/src/text2.mjs.map +1 -1
  415. package/es/components/time-select/index.mjs +2 -2
  416. package/es/components/time-select/src/time-select.mjs +66 -138
  417. package/es/components/time-select/src/time-select.mjs.map +1 -1
  418. package/es/components/time-select/src/time-select2.mjs +138 -66
  419. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  420. package/es/components/tooltip/src/content.mjs +1 -1
  421. package/es/components/tour/index.mjs +2 -2
  422. package/es/components/tour/src/step.mjs +43 -255
  423. package/es/components/tour/src/step.mjs.map +1 -1
  424. package/es/components/tour/src/step2.mjs +255 -43
  425. package/es/components/tour/src/step2.mjs.map +1 -1
  426. package/es/components/tour/src/tour.mjs +1 -1
  427. package/es/components/tour/src/tour2.mjs +2 -1
  428. package/es/components/tour/src/tour2.mjs.map +1 -1
  429. package/es/components/transfer/index.mjs +2 -2
  430. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  431. package/es/components/transfer/src/transfer-panel2.mjs +1 -1
  432. package/es/components/transfer/src/transfer.mjs +203 -69
  433. package/es/components/transfer/src/transfer.mjs.map +1 -1
  434. package/es/components/transfer/src/transfer2.mjs +69 -203
  435. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  436. package/es/components/tree-select/src/tree-select.mjs +1 -1
  437. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  438. package/es/index.mjs +23 -23
  439. package/es/version.d.ts +1 -1
  440. package/es/version.mjs +1 -1
  441. package/es/version.mjs.map +1 -1
  442. package/lib/components/affix/src/affix.js +1 -1
  443. package/lib/components/alert/src/alert2.js +11 -1
  444. package/lib/components/alert/src/alert2.js.map +1 -1
  445. package/lib/components/autocomplete/src/autocomplete.js +1 -1
  446. package/lib/components/autocomplete/src/autocomplete2.js +1 -1
  447. package/lib/components/badge/index.js +2 -2
  448. package/lib/components/badge/src/badge.js +31 -83
  449. package/lib/components/badge/src/badge.js.map +1 -1
  450. package/lib/components/badge/src/badge2.js +83 -31
  451. package/lib/components/badge/src/badge2.js.map +1 -1
  452. package/lib/components/calendar/index.js +2 -2
  453. package/lib/components/calendar/src/calendar.js +24 -196
  454. package/lib/components/calendar/src/calendar.js.map +1 -1
  455. package/lib/components/calendar/src/calendar2.js +196 -24
  456. package/lib/components/calendar/src/calendar2.js.map +1 -1
  457. package/lib/components/checkbox/index.js +2 -2
  458. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  459. package/lib/components/checkbox/src/checkbox-group2.js +1 -1
  460. package/lib/components/checkbox/src/checkbox.js +134 -63
  461. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  462. package/lib/components/checkbox/src/checkbox2.js +63 -134
  463. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  464. package/lib/components/countdown/index.js +2 -2
  465. package/lib/components/countdown/src/countdown.js +83 -21
  466. package/lib/components/countdown/src/countdown.js.map +1 -1
  467. package/lib/components/countdown/src/countdown2.js +21 -83
  468. package/lib/components/countdown/src/countdown2.js.map +1 -1
  469. package/lib/components/dialog/src/dialog.js +1 -1
  470. package/lib/components/divider/index.js +2 -2
  471. package/lib/components/divider/src/divider.js +15 -43
  472. package/lib/components/divider/src/divider.js.map +1 -1
  473. package/lib/components/divider/src/divider2.js +43 -15
  474. package/lib/components/divider/src/divider2.js.map +1 -1
  475. package/lib/components/empty/index.js +2 -2
  476. package/lib/components/empty/src/empty.js +80 -10
  477. package/lib/components/empty/src/empty.js.map +1 -1
  478. package/lib/components/empty/src/empty2.js +10 -80
  479. package/lib/components/empty/src/empty2.js.map +1 -1
  480. package/lib/components/form/src/form-item.vue.d.ts +4 -0
  481. package/lib/components/form/src/form-item2.js +8 -3
  482. package/lib/components/form/src/form-item2.js.map +1 -1
  483. package/lib/components/form/src/form.vue.d.ts +4 -0
  484. package/lib/components/form/src/form2.js +26 -1
  485. package/lib/components/form/src/form2.js.map +1 -1
  486. package/lib/components/form/src/types.d.ts +2 -0
  487. package/lib/components/icon/index.js +2 -2
  488. package/lib/components/icon/src/icon.js +39 -7
  489. package/lib/components/icon/src/icon.js.map +1 -1
  490. package/lib/components/icon/src/icon2.js +7 -39
  491. package/lib/components/icon/src/icon2.js.map +1 -1
  492. package/lib/components/image/index.js +2 -2
  493. package/lib/components/image/src/image.js +278 -68
  494. package/lib/components/image/src/image.js.map +1 -1
  495. package/lib/components/image/src/image2.js +68 -278
  496. package/lib/components/image/src/image2.js.map +1 -1
  497. package/lib/components/index.js +23 -23
  498. package/lib/components/input/index.js +2 -2
  499. package/lib/components/input/src/input.js +121 -582
  500. package/lib/components/input/src/input.js.map +1 -1
  501. package/lib/components/input/src/input2.js +582 -121
  502. package/lib/components/input/src/input2.js.map +1 -1
  503. package/lib/components/input-number/index.js +2 -2
  504. package/lib/components/input-number/src/input-number.js +412 -72
  505. package/lib/components/input-number/src/input-number.js.map +1 -1
  506. package/lib/components/input-number/src/input-number2.js +72 -412
  507. package/lib/components/input-number/src/input-number2.js.map +1 -1
  508. package/lib/components/input-tag/index.js +2 -2
  509. package/lib/components/input-tag/src/input-tag.js +342 -81
  510. package/lib/components/input-tag/src/input-tag.js.map +1 -1
  511. package/lib/components/input-tag/src/input-tag2.js +81 -342
  512. package/lib/components/input-tag/src/input-tag2.js.map +1 -1
  513. package/lib/components/link/index.js +2 -2
  514. package/lib/components/link/src/link.js +80 -25
  515. package/lib/components/link/src/link.js.map +1 -1
  516. package/lib/components/link/src/link2.js +25 -80
  517. package/lib/components/link/src/link2.js.map +1 -1
  518. package/lib/components/mention/src/mention-dropdown.js +205 -15
  519. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  520. package/lib/components/mention/src/mention-dropdown2.js +15 -205
  521. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  522. package/lib/components/mention/src/mention.js +1 -1
  523. package/lib/components/mention/src/mention2.js +2 -2
  524. package/lib/components/notification/index.js +1 -1
  525. package/lib/components/notification/src/notification.js +173 -73
  526. package/lib/components/notification/src/notification.js.map +1 -1
  527. package/lib/components/notification/src/notification2.js +73 -173
  528. package/lib/components/notification/src/notification2.js.map +1 -1
  529. package/lib/components/notification/src/notify.js +2 -2
  530. package/lib/components/page-header/index.js +2 -2
  531. package/lib/components/page-header/src/page-header.js +149 -16
  532. package/lib/components/page-header/src/page-header.js.map +1 -1
  533. package/lib/components/page-header/src/page-header2.js +16 -149
  534. package/lib/components/page-header/src/page-header2.js.map +1 -1
  535. package/lib/components/pagination/src/components/jumper.js +7 -69
  536. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  537. package/lib/components/pagination/src/components/jumper2.js +69 -7
  538. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  539. package/lib/components/pagination/src/components/pager.js +15 -229
  540. package/lib/components/pagination/src/components/pager.js.map +1 -1
  541. package/lib/components/pagination/src/components/pager2.js +229 -15
  542. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  543. package/lib/components/pagination/src/pagination.js +2 -2
  544. package/lib/components/popconfirm/index.js +2 -2
  545. package/lib/components/popconfirm/src/popconfirm.js +163 -50
  546. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  547. package/lib/components/popconfirm/src/popconfirm2.js +50 -163
  548. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  549. package/lib/components/popover/index.js +2 -2
  550. package/lib/components/popover/src/popover.js +66 -120
  551. package/lib/components/popover/src/popover.js.map +1 -1
  552. package/lib/components/popover/src/popover2.js +120 -66
  553. package/lib/components/popover/src/popover2.js.map +1 -1
  554. package/lib/components/progress/index.js +2 -2
  555. package/lib/components/progress/src/progress.js +52 -256
  556. package/lib/components/progress/src/progress.js.map +1 -1
  557. package/lib/components/progress/src/progress2.js +256 -52
  558. package/lib/components/progress/src/progress2.js.map +1 -1
  559. package/lib/components/result/index.js +2 -2
  560. package/lib/components/result/src/result.js +31 -96
  561. package/lib/components/result/src/result.js.map +1 -1
  562. package/lib/components/result/src/result2.js +96 -31
  563. package/lib/components/result/src/result2.js.map +1 -1
  564. package/lib/components/select/index.js +2 -2
  565. package/lib/components/select/src/select.js +727 -152
  566. package/lib/components/select/src/select.js.map +1 -1
  567. package/lib/components/select/src/select2.js +152 -727
  568. package/lib/components/select/src/select2.js.map +1 -1
  569. package/lib/components/table-v2/src/components/expand-icon.d.ts +11 -8
  570. package/lib/components/table-v2/src/components/expand-icon.js +1 -0
  571. package/lib/components/table-v2/src/components/expand-icon.js.map +1 -1
  572. package/lib/components/teleport/index.js +2 -2
  573. package/lib/components/teleport/src/teleport.js +8 -18
  574. package/lib/components/teleport/src/teleport.js.map +1 -1
  575. package/lib/components/teleport/src/teleport2.js +18 -8
  576. package/lib/components/teleport/src/teleport2.js.map +1 -1
  577. package/lib/components/text/index.js +2 -2
  578. package/lib/components/text/src/text.js +20 -66
  579. package/lib/components/text/src/text.js.map +1 -1
  580. package/lib/components/text/src/text2.js +66 -20
  581. package/lib/components/text/src/text2.js.map +1 -1
  582. package/lib/components/time-select/index.js +2 -2
  583. package/lib/components/time-select/src/time-select.js +66 -143
  584. package/lib/components/time-select/src/time-select.js.map +1 -1
  585. package/lib/components/time-select/src/time-select2.js +143 -66
  586. package/lib/components/time-select/src/time-select2.js.map +1 -1
  587. package/lib/components/tooltip/src/content.js +1 -1
  588. package/lib/components/tour/index.js +2 -2
  589. package/lib/components/tour/src/step.js +43 -254
  590. package/lib/components/tour/src/step.js.map +1 -1
  591. package/lib/components/tour/src/step2.js +254 -43
  592. package/lib/components/tour/src/step2.js.map +1 -1
  593. package/lib/components/tour/src/tour.js +1 -1
  594. package/lib/components/tour/src/tour2.js +2 -1
  595. package/lib/components/tour/src/tour2.js.map +1 -1
  596. package/lib/components/transfer/index.js +2 -2
  597. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  598. package/lib/components/transfer/src/transfer-panel2.js +1 -1
  599. package/lib/components/transfer/src/transfer.js +203 -73
  600. package/lib/components/transfer/src/transfer.js.map +1 -1
  601. package/lib/components/transfer/src/transfer2.js +73 -203
  602. package/lib/components/transfer/src/transfer2.js.map +1 -1
  603. package/lib/components/tree-select/src/tree-select.js +1 -1
  604. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  605. package/lib/index.js +23 -23
  606. package/lib/version.d.ts +1 -1
  607. package/lib/version.js +1 -1
  608. package/lib/version.js.map +1 -1
  609. package/package.json +2 -2
  610. package/web-types.json +1 -1
@@ -2,158 +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 _hoisted_1 = ["aria-label"];
14
- const _sfc_main = vue.defineComponent({
15
- ...{
16
- name: "ElPageHeader"
9
+ const pageHeaderProps = runtime.buildProps({
10
+ icon: {
11
+ type: icon.iconPropType,
12
+ default: () => iconsVue.Back
17
13
  },
18
- __name: "page-header",
19
- props: pageHeader.pageHeaderProps,
20
- emits: pageHeader.pageHeaderEmits,
21
- setup(__props, { emit: __emit }) {
22
- const emit = __emit;
23
- const { t } = index.useLocale();
24
- const ns = index$1.useNamespace("page-header");
25
- function handleClick() {
26
- emit("back");
27
- }
28
- return (_ctx, _cache) => {
29
- return vue.openBlock(), vue.createElementBlock(
30
- "div",
31
- {
32
- class: vue.normalizeClass([
33
- vue.unref(ns).b(),
34
- vue.unref(ns).is("contentful", !!_ctx.$slots.default),
35
- {
36
- [vue.unref(ns).m("has-breadcrumb")]: !!_ctx.$slots.breadcrumb,
37
- [vue.unref(ns).m("has-extra")]: !!_ctx.$slots.extra
38
- }
39
- ])
40
- },
41
- [
42
- _ctx.$slots.breadcrumb ? (vue.openBlock(), vue.createElementBlock(
43
- "div",
44
- {
45
- key: 0,
46
- class: vue.normalizeClass(vue.unref(ns).e("breadcrumb"))
47
- },
48
- [
49
- vue.renderSlot(_ctx.$slots, "breadcrumb")
50
- ],
51
- 2
52
- )) : vue.createCommentVNode("v-if", true),
53
- vue.createElementVNode(
54
- "div",
55
- {
56
- class: vue.normalizeClass(vue.unref(ns).e("header"))
57
- },
58
- [
59
- vue.createElementVNode(
60
- "div",
61
- {
62
- class: vue.normalizeClass(vue.unref(ns).e("left"))
63
- },
64
- [
65
- vue.createElementVNode(
66
- "div",
67
- {
68
- class: vue.normalizeClass(vue.unref(ns).e("back")),
69
- role: "button",
70
- tabindex: "0",
71
- onClick: handleClick
72
- },
73
- [
74
- _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("div", {
75
- key: 0,
76
- "aria-label": _ctx.title || vue.unref(t)("el.pageHeader.title"),
77
- class: vue.normalizeClass(vue.unref(ns).e("icon"))
78
- }, [
79
- vue.renderSlot(_ctx.$slots, "icon", {}, () => [
80
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.ElIcon), { key: 0 }, {
81
- default: vue.withCtx(() => [
82
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
83
- ]),
84
- _: 1
85
- })) : vue.createCommentVNode("v-if", true)
86
- ])
87
- ], 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
88
- vue.createElementVNode(
89
- "div",
90
- {
91
- class: vue.normalizeClass(vue.unref(ns).e("title"))
92
- },
93
- [
94
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
95
- vue.createTextVNode(
96
- vue.toDisplayString(_ctx.title || vue.unref(t)("el.pageHeader.title")),
97
- 1
98
- )
99
- ])
100
- ],
101
- 2
102
- )
103
- ],
104
- 2
105
- ),
106
- vue.createVNode(vue.unref(index$3.ElDivider), { direction: "vertical" }),
107
- vue.createElementVNode(
108
- "div",
109
- {
110
- class: vue.normalizeClass(vue.unref(ns).e("content"))
111
- },
112
- [
113
- vue.renderSlot(_ctx.$slots, "content", {}, () => [
114
- vue.createTextVNode(
115
- vue.toDisplayString(_ctx.content),
116
- 1
117
- )
118
- ])
119
- ],
120
- 2
121
- )
122
- ],
123
- 2
124
- ),
125
- _ctx.$slots.extra ? (vue.openBlock(), vue.createElementBlock(
126
- "div",
127
- {
128
- key: 0,
129
- class: vue.normalizeClass(vue.unref(ns).e("extra"))
130
- },
131
- [
132
- vue.renderSlot(_ctx.$slots, "extra")
133
- ],
134
- 2
135
- )) : vue.createCommentVNode("v-if", true)
136
- ],
137
- 2
138
- ),
139
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(
140
- "div",
141
- {
142
- key: 1,
143
- class: vue.normalizeClass(vue.unref(ns).e("main"))
144
- },
145
- [
146
- vue.renderSlot(_ctx.$slots, "default")
147
- ],
148
- 2
149
- )) : vue.createCommentVNode("v-if", true)
150
- ],
151
- 2
152
- );
153
- };
14
+ title: String,
15
+ content: {
16
+ type: String,
17
+ default: ""
154
18
  }
155
19
  });
156
- var PageHeader = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);
20
+ const pageHeaderEmits = {
21
+ back: () => true
22
+ };
157
23
 
158
- exports["default"] = PageHeader;
24
+ exports.pageHeaderEmits = pageHeaderEmits;
25
+ exports.pageHeaderProps = pageHeaderProps;
159
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 ns.is('contentful', !!$slots.default),\n {\n [ns.m('has-breadcrumb')]: !!$slots.breadcrumb,\n [ns.m('has-extra')]: !!$slots.extra,\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'\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","_openBlock","_createElementBlock","_normalizeClass","_unref","$slots","_renderSlot","_createElementVNode","icon","title","_createBlock","ElIcon","_withCtx","_resolveDynamicComponent","_createTextVNode","_createVNode","ElDivider","content"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiEA,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEP,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAClB,IAAA,MAAA,EAAA,GAAKC,qBAAa,aAAa,CAAA,CAAA;AAErC,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;;;;kBAGpCW,gBAAmCX,SAAA,CAAAY,iBAAA,GAAA,EAAvB,SAAA,EAAU,YAAU,CAAA;AAAA,kBAChCT,sBAAA;AAAA,oBAEM,KAAA;AAAA,oBAAA;AAAA,sBAFA,OAAKJ,kBAAE,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,SAAA,CAAA,CAAA;AAAA,qBAAA;AAAA;sBACfE,eAAyC,4BAAzC,MAAyC;AAAA,wBAAAQ,mBAAA;AAAA,8CAAjBG,KAAO,OAAA,CAAA;AAAA,0BAAA,CAAA;AAAA,yBAAA;AAAA,uBAAA,CAAA;AAAA;;;;;;cAIxBZ,IAAAA,CAAAA,MAAAA,CAAO,KAAlB,IAAAJ,aAAA,EAAA,EAAAC,sBAAA;AAAA,gBAEM,KAAA;AAAA,gBAAA;AAAA,kBAAA,GAAA,EAAA,CAAA;AAAA,kBAFoB,OAAKC,kBAAE,CAAAC,SAAA,IAAG,CAAA,CAAA,CAAC,OAAA,CAAA,CAAA;AAAA,iBAAA;AAAA;kBACnCE,cAAA,CAAqB,IAAA,CAAA,MAAA,EAAA,OAAA,CAAA;AAAA,iBAAA;AAAA;;;;;UAIdD,IAAAA,CAAAA,MAAAA,CAAO,OAAlB,IAAAJ,aAAA,EAAA,EAAAC,sBAAA;AAAA,YAEM,KAAA;AAAA,YAAA;AAAA,cAAA,GAAA,EAAA,CAAA;AAAA,cAFsB,OAAKC,kBAAE,CAAAC,SAAA,IAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CAAA;AAAA,aAAA;AAAA;cACrCE,cAAA,CAAQ,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,aAAA;AAAA;;;;;;;;;;;;"}
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'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } 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>\nexport type PageHeaderPropsPublic = ExtractPublicPropTypes<\n typeof pageHeaderProps\n>\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":";;;;;;;;AAMO,MAAM,kBAAkBA,kBAAW,CAAA;AAAA,EAIxC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAAC,iBAAA;AAAA,IACN,SAAS,MAAMC,aAAA;AAAA,GACjB;AAAA,EAIA,KAAO,EAAA,MAAA;AAAA,EAIP,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAU,EAAA;AAMH,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAM,MAAM,IAAA;AACd;;;;;"}
@@ -2,77 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$2 = require('../../../input/index.js');
7
- var usePagination = require('../usePagination.js');
8
- var jumper = require('./jumper2.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 runtime = require('../../../../utils/vue/props/runtime.js');
6
+ var size = require('../../../../constants/size.js');
12
7
 
13
- const _hoisted_1 = ["disabled"];
14
- const _sfc_main = vue.defineComponent({
15
- ...{
16
- name: "ElPaginationJumper"
17
- },
18
- __name: "jumper",
19
- props: jumper.paginationJumperProps,
20
- setup(__props) {
21
- const { t } = index.useLocale();
22
- const ns = index$1.useNamespace("pagination");
23
- const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
24
- const userInput = vue.ref();
25
- const innerValue = vue.computed(() => {
26
- var _a;
27
- return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
28
- });
29
- function handleInput(val) {
30
- userInput.value = val ? +val : "";
31
- }
32
- function handleChange(val) {
33
- val = Math.trunc(+val);
34
- changeEvent == null ? void 0 : changeEvent(val);
35
- userInput.value = void 0;
36
- }
37
- return (_ctx, _cache) => {
38
- return vue.openBlock(), vue.createElementBlock("span", {
39
- class: vue.normalizeClass(vue.unref(ns).e("jump")),
40
- disabled: vue.unref(disabled)
41
- }, [
42
- vue.createElementVNode(
43
- "span",
44
- {
45
- class: vue.normalizeClass([vue.unref(ns).e("goto")])
46
- },
47
- vue.toDisplayString(vue.unref(t)("el.pagination.goto")),
48
- 3
49
- ),
50
- vue.createVNode(vue.unref(index$2.ElInput), {
51
- size: _ctx.size,
52
- class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
53
- min: 1,
54
- max: vue.unref(pageCount),
55
- disabled: vue.unref(disabled),
56
- "model-value": innerValue.value,
57
- "validate-event": false,
58
- "aria-label": vue.unref(t)("el.pagination.page"),
59
- type: "number",
60
- "onUpdate:modelValue": handleInput,
61
- onChange: handleChange
62
- }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
63
- vue.createElementVNode(
64
- "span",
65
- {
66
- class: vue.normalizeClass([vue.unref(ns).e("classifier")])
67
- },
68
- vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")),
69
- 3
70
- )
71
- ], 10, _hoisted_1);
72
- };
8
+ const paginationJumperProps = runtime.buildProps({
9
+ size: {
10
+ type: String,
11
+ values: size.componentSizes
73
12
  }
74
13
  });
75
- var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);
76
14
 
77
- exports["default"] = Jumper;
15
+ exports.paginationJumperProps = paginationJumperProps;
78
16
  //# sourceMappingURL=jumper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumper.js","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":["useLocale","useNamespace","usePagination","ref","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_createVNode","ElInput","size"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCM,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AA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UAAA,CAAA;AAAA,SAAA;AAAA,QAClCE,eAAA,CAYEF,SAAA,CAAAG,eAAA,CAAA,EAAA;AAAA,UAXC,MAAMC,IAAAA,CAAAA,IAAAA;AAAAA,UACN,KAAK,EAAAL,kBAAA,CAAG,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,QAAA,CAAA,EAAYA,cAAG,EAAE,CAAA,eAAA,CAAA,CAAA,CAAA;AAAA,UAC7B,GAAK,EAAA,CAAA;AAAA,UACL,GAAA,EAAKA,UAAA,SAAA,CAAA;AAAA,UACL,QAAA,EAAUA,UAAA,QAAA,CAAA;AAAA,UACV,eAAa,UAAA,CAAA,KAAA;AAAA,UACb,gBAAgB,EAAA,KAAA;AAAA,UAChB,YAAY,EAAAA,SAAA,CAAC,CAAA,CAAA,CAAA,oBAAA,CAAA;AAAA,UACd,IAAK,EAAA,QAAA;AAAA,UACJ,qBAAoB,EAAA,WAAA;AAAA,UACpB,QAAQ,EAAA,YAAA;AAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,MAAA,EAAA,SAAA,KAAA,EAAA,UAAA,EAAA,aAAA,EAAA,YAAA,CAAA,CAAA;AAAA,QAEXC,sBAAA;AAAA,UAES,MAAA;AAAA,UAAA;AAAA,YAFF,KAAA,EAAKF,mBAAG,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,YAAA,CAAA,CAAA,CAAA;AAAA,WAAA;AAAA,6BACjB,CAAAA,SAAA,CAAC,CAAA,CAAA,CAAA,8BAAA,CAAA,CAAA;AAAA,UAAA,CAAA;AAAA,SAAA;AAAA,OAAA,EAAA,IAAA,UAAA,CAAA,CAAA;AAAA;;;;;;;"}
1
+ {"version":3,"file":"jumper.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } 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>\nexport type PaginationJumperPropsPublic = ExtractPublicPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAMO,MAAM,wBAAwBA,kBAAW,CAAA;AAAA,EAC9C,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,mBAAA;AAAA,GACV;AACF,CAAU;;;;"}
@@ -2,15 +2,77 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var runtime = require('../../../../utils/vue/props/runtime.js');
6
- var size = require('../../../../constants/size.js');
5
+ var vue = require('vue');
6
+ var index$2 = require('../../../input/index.js');
7
+ var usePagination = require('../usePagination.js');
8
+ var jumper = require('./jumper.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');
7
12
 
8
- const paginationJumperProps = runtime.buildProps({
9
- size: {
10
- type: String,
11
- values: size.componentSizes
13
+ const _hoisted_1 = ["disabled"];
14
+ const _sfc_main = vue.defineComponent({
15
+ ...{
16
+ name: "ElPaginationJumper"
17
+ },
18
+ __name: "jumper",
19
+ props: jumper.paginationJumperProps,
20
+ setup(__props) {
21
+ const { t } = index.useLocale();
22
+ const ns = index$1.useNamespace("pagination");
23
+ const { pageCount, disabled, currentPage, changeEvent } = usePagination.usePagination();
24
+ const userInput = vue.ref();
25
+ const innerValue = vue.computed(() => {
26
+ var _a;
27
+ return (_a = userInput.value) != null ? _a : currentPage == null ? void 0 : currentPage.value;
28
+ });
29
+ function handleInput(val) {
30
+ userInput.value = val ? +val : "";
31
+ }
32
+ function handleChange(val) {
33
+ val = Math.trunc(+val);
34
+ changeEvent == null ? void 0 : changeEvent(val);
35
+ userInput.value = void 0;
36
+ }
37
+ return (_ctx, _cache) => {
38
+ return vue.openBlock(), vue.createElementBlock("span", {
39
+ class: vue.normalizeClass(vue.unref(ns).e("jump")),
40
+ disabled: vue.unref(disabled)
41
+ }, [
42
+ vue.createElementVNode(
43
+ "span",
44
+ {
45
+ class: vue.normalizeClass([vue.unref(ns).e("goto")])
46
+ },
47
+ vue.toDisplayString(vue.unref(t)("el.pagination.goto")),
48
+ 3
49
+ ),
50
+ vue.createVNode(vue.unref(index$2.ElInput), {
51
+ size: _ctx.size,
52
+ class: vue.normalizeClass([vue.unref(ns).e("editor"), vue.unref(ns).is("in-pagination")]),
53
+ min: 1,
54
+ max: vue.unref(pageCount),
55
+ disabled: vue.unref(disabled),
56
+ "model-value": innerValue.value,
57
+ "validate-event": false,
58
+ "aria-label": vue.unref(t)("el.pagination.page"),
59
+ type: "number",
60
+ "onUpdate:modelValue": handleInput,
61
+ onChange: handleChange
62
+ }, null, 8, ["size", "class", "max", "disabled", "model-value", "aria-label"]),
63
+ vue.createElementVNode(
64
+ "span",
65
+ {
66
+ class: vue.normalizeClass([vue.unref(ns).e("classifier")])
67
+ },
68
+ vue.toDisplayString(vue.unref(t)("el.pagination.pageClassifier")),
69
+ 3
70
+ )
71
+ ], 10, _hoisted_1);
72
+ };
12
73
  }
13
74
  });
75
+ var Jumper = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);
14
76
 
15
- exports.paginationJumperProps = paginationJumperProps;
77
+ exports["default"] = Jumper;
16
78
  //# sourceMappingURL=jumper2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jumper2.js","sources":["../../../../../../../packages/components/pagination/src/components/jumper.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } 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>\nexport type PaginationJumperPropsPublic = ExtractPublicPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["buildProps","componentSizes"],"mappings":";;;;;;;AAMO,MAAM,wBAAwBA,kBAAW,CAAA;AAAA,EAC9C,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,mBAAA;AAAA,GACV;AACF,CAAU;;;;"}
1
+ {"version":3,"file":"jumper2.js","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":["useLocale","useNamespace","usePagination","ref","computed","_createElementBlock","_normalizeClass","_unref","_createElementVNode","_createVNode","ElInput","size"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkCM,IAAA,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAClB,IAAA,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,WAAa,EAAA,WAAA,KAAgBC,2BAAc,EAAA,CAAA;AACxE,IAAA,MAAM,YAAYC,OAAqB,EAAA,CAAA;AACvC,IAAM,MAAA,UAAA,GAAaC,aAAS,MAAA;;AAAM,MAAU,OAAA,CAAA,EAAA,GAAA,SAAA,CAAA,KAAA,KAAV,YAAmB,WAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,KAAA,CAAA;AAAA,KAAK,CAAA,CAAA;AAEvE,IAAA,SAAS,YAAY,GAAsB,EAAA;AAC/B,MAAA,SAAA,CAAA,KAAA,GAAQ,GAAM,GAAA,CAAC,GAAM,GAAA,EAAA,CAAA;AAAA,KACjC;AAEA,IAAA,SAAS,aAAa,GAAsB,EAAA;AACpC,MAAA,GAAA,GAAA,IAAA,CAAK,KAAM,CAAA,CAAC,GAAG,CAAA,CAAA;AACrB,MAAc,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,CAAA,GAAA,CAAA,CAAA;AACd,MAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA,CAAA;AAAA,KACpB;;4BA/CE,EAAAC,sBAAA,CAkBO,MAAA,EAAA;AAAA,QAlBA,OAAKC,kBAAE,CAAAC,SAAA,CAAA,EAAA,CAAG,CAAA,CAAA,CAAC,MAAA,CAAA,CA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A,SAAA,CAAC,CAAA,CAAA,CAAA,8BAAA,CAAA,CAAA;AAAA,UAAA,CAAA;AAAA,SAAA;AAAA,OAAA,EAAA,IAAA,UAAA,CAAA,CAAA;AAAA;;;;;;;"}
@@ -2,237 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var iconsVue = require('@element-plus/icons-vue');
7
- var pager = require('./pager2.js');
8
- var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
9
- var event = require('../../../../constants/event.js');
10
- var index = require('../../../../hooks/use-namespace/index.js');
11
- var index$1 = require('../../../../hooks/use-locale/index.js');
5
+ var runtime = require('../../../../utils/vue/props/runtime.js');
12
6
 
13
- const _hoisted_1 = ["aria-current", "aria-label", "tabindex"];
14
- const _hoisted_2 = ["tabindex", "aria-label"];
15
- const _hoisted_3 = ["aria-current", "aria-label", "tabindex"];
16
- const _hoisted_4 = ["tabindex", "aria-label"];
17
- const _hoisted_5 = ["aria-current", "aria-label", "tabindex"];
18
- const _sfc_main = vue.defineComponent({
19
- ...{
20
- name: "ElPaginationPager"
7
+ const paginationPagerProps = runtime.buildProps({
8
+ currentPage: {
9
+ type: Number,
10
+ default: 1
21
11
  },
22
- __name: "pager",
23
- props: pager.paginationPagerProps,
24
- emits: [event.CHANGE_EVENT],
25
- setup(__props, { emit: __emit }) {
26
- const props = __props;
27
- const emit = __emit;
28
- const nsPager = index.useNamespace("pager");
29
- const nsIcon = index.useNamespace("icon");
30
- const { t } = index$1.useLocale();
31
- const showPrevMore = vue.ref(false);
32
- const showNextMore = vue.ref(false);
33
- const quickPrevHover = vue.ref(false);
34
- const quickNextHover = vue.ref(false);
35
- const quickPrevFocus = vue.ref(false);
36
- const quickNextFocus = vue.ref(false);
37
- const pagers = vue.computed(() => {
38
- const pagerCount = props.pagerCount;
39
- const halfPagerCount = (pagerCount - 1) / 2;
40
- const currentPage = Number(props.currentPage);
41
- const pageCount = Number(props.pageCount);
42
- let showPrevMore2 = false;
43
- let showNextMore2 = false;
44
- if (pageCount > pagerCount) {
45
- if (currentPage > pagerCount - halfPagerCount) {
46
- showPrevMore2 = true;
47
- }
48
- if (currentPage < pageCount - halfPagerCount) {
49
- showNextMore2 = true;
50
- }
51
- }
52
- const array = [];
53
- if (showPrevMore2 && !showNextMore2) {
54
- const startPage = pageCount - (pagerCount - 2);
55
- for (let i = startPage; i < pageCount; i++) {
56
- array.push(i);
57
- }
58
- } else if (!showPrevMore2 && showNextMore2) {
59
- for (let i = 2; i < pagerCount; i++) {
60
- array.push(i);
61
- }
62
- } else if (showPrevMore2 && showNextMore2) {
63
- const offset = Math.floor(pagerCount / 2) - 1;
64
- for (let i = currentPage - offset; i <= currentPage + offset; i++) {
65
- array.push(i);
66
- }
67
- } else {
68
- for (let i = 2; i < pageCount; i++) {
69
- array.push(i);
70
- }
71
- }
72
- return array;
73
- });
74
- const prevMoreKls = vue.computed(() => [
75
- "more",
76
- "btn-quickprev",
77
- nsIcon.b(),
78
- nsPager.is("disabled", props.disabled)
79
- ]);
80
- const nextMoreKls = vue.computed(() => [
81
- "more",
82
- "btn-quicknext",
83
- nsIcon.b(),
84
- nsPager.is("disabled", props.disabled)
85
- ]);
86
- const tabindex = vue.computed(() => props.disabled ? -1 : 0);
87
- vue.watch(
88
- () => [props.pageCount, props.pagerCount, props.currentPage],
89
- ([pageCount, pagerCount, currentPage]) => {
90
- const halfPagerCount = (pagerCount - 1) / 2;
91
- let showPrev = false;
92
- let showNext = false;
93
- if (pageCount > pagerCount) {
94
- showPrev = currentPage > pagerCount - halfPagerCount;
95
- showNext = currentPage < pageCount - halfPagerCount;
96
- }
97
- quickPrevHover.value && (quickPrevHover.value = showPrev);
98
- quickNextHover.value && (quickNextHover.value = showNext);
99
- showPrevMore.value = showPrev;
100
- showNextMore.value = showNext;
101
- },
102
- { immediate: true }
103
- );
104
- function onMouseEnter(forward = false) {
105
- if (props.disabled)
106
- return;
107
- if (forward) {
108
- quickPrevHover.value = true;
109
- } else {
110
- quickNextHover.value = true;
111
- }
112
- }
113
- function onFocus(forward = false) {
114
- if (forward) {
115
- quickPrevFocus.value = true;
116
- } else {
117
- quickNextFocus.value = true;
118
- }
119
- }
120
- function onEnter(e) {
121
- const target = e.target;
122
- if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("number")) {
123
- const newPage = Number(target.textContent);
124
- if (newPage !== props.currentPage) {
125
- emit(event.CHANGE_EVENT, newPage);
126
- }
127
- } else if (target.tagName.toLowerCase() === "li" && Array.from(target.classList).includes("more")) {
128
- onPagerClick(e);
129
- }
130
- }
131
- function onPagerClick(event$1) {
132
- const target = event$1.target;
133
- if (target.tagName.toLowerCase() === "ul" || props.disabled) {
134
- return;
135
- }
136
- let newPage = Number(target.textContent);
137
- const pageCount = props.pageCount;
138
- const currentPage = props.currentPage;
139
- const pagerCountOffset = props.pagerCount - 2;
140
- if (target.className.includes("more")) {
141
- if (target.className.includes("quickprev")) {
142
- newPage = currentPage - pagerCountOffset;
143
- } else if (target.className.includes("quicknext")) {
144
- newPage = currentPage + pagerCountOffset;
145
- }
146
- }
147
- if (!Number.isNaN(+newPage)) {
148
- if (newPage < 1) {
149
- newPage = 1;
150
- }
151
- if (newPage > pageCount) {
152
- newPage = pageCount;
153
- }
154
- }
155
- if (newPage !== currentPage) {
156
- emit(event.CHANGE_EVENT, newPage);
157
- }
158
- }
159
- return (_ctx, _cache) => {
160
- return vue.openBlock(), vue.createElementBlock(
161
- "ul",
162
- {
163
- class: vue.normalizeClass(vue.unref(nsPager).b()),
164
- onClick: onPagerClick,
165
- onKeyup: vue.withKeys(onEnter, ["enter"])
166
- },
167
- [
168
- _ctx.pageCount > 0 ? (vue.openBlock(), vue.createElementBlock("li", {
169
- key: 0,
170
- class: vue.normalizeClass([[
171
- vue.unref(nsPager).is("active", _ctx.currentPage === 1),
172
- vue.unref(nsPager).is("disabled", _ctx.disabled)
173
- ], "number"]),
174
- "aria-current": _ctx.currentPage === 1,
175
- "aria-label": vue.unref(t)("el.pagination.currentPage", { pager: 1 }),
176
- tabindex: tabindex.value
177
- }, " 1 ", 10, _hoisted_1)) : vue.createCommentVNode("v-if", true),
178
- showPrevMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
179
- key: 1,
180
- class: vue.normalizeClass(prevMoreKls.value),
181
- tabindex: tabindex.value,
182
- "aria-label": vue.unref(t)("el.pagination.prevPages", { pager: _ctx.pagerCount - 2 }),
183
- onMouseenter: _cache[0] || (_cache[0] = ($event) => onMouseEnter(true)),
184
- onMouseleave: _cache[1] || (_cache[1] = ($event) => quickPrevHover.value = false),
185
- onFocus: _cache[2] || (_cache[2] = ($event) => onFocus(true)),
186
- onBlur: _cache[3] || (_cache[3] = ($event) => quickPrevFocus.value = false)
187
- }, [
188
- (quickPrevHover.value || quickPrevFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowLeft), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
189
- ], 42, _hoisted_2)) : vue.createCommentVNode("v-if", true),
190
- (vue.openBlock(true), vue.createElementBlock(
191
- vue.Fragment,
192
- null,
193
- vue.renderList(pagers.value, (pager) => {
194
- return vue.openBlock(), vue.createElementBlock("li", {
195
- key: pager,
196
- class: vue.normalizeClass([[
197
- vue.unref(nsPager).is("active", _ctx.currentPage === pager),
198
- vue.unref(nsPager).is("disabled", _ctx.disabled)
199
- ], "number"]),
200
- "aria-current": _ctx.currentPage === pager,
201
- "aria-label": vue.unref(t)("el.pagination.currentPage", { pager }),
202
- tabindex: tabindex.value
203
- }, vue.toDisplayString(pager), 11, _hoisted_3);
204
- }),
205
- 128
206
- )),
207
- showNextMore.value ? (vue.openBlock(), vue.createElementBlock("li", {
208
- key: 2,
209
- class: vue.normalizeClass(nextMoreKls.value),
210
- tabindex: tabindex.value,
211
- "aria-label": vue.unref(t)("el.pagination.nextPages", { pager: _ctx.pagerCount - 2 }),
212
- onMouseenter: _cache[4] || (_cache[4] = ($event) => onMouseEnter()),
213
- onMouseleave: _cache[5] || (_cache[5] = ($event) => quickNextHover.value = false),
214
- onFocus: _cache[6] || (_cache[6] = ($event) => onFocus()),
215
- onBlur: _cache[7] || (_cache[7] = ($event) => quickNextFocus.value = false)
216
- }, [
217
- (quickNextHover.value || quickNextFocus.value) && !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.DArrowRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.MoreFilled), { key: 1 }))
218
- ], 42, _hoisted_4)) : vue.createCommentVNode("v-if", true),
219
- _ctx.pageCount > 1 ? (vue.openBlock(), vue.createElementBlock("li", {
220
- key: 3,
221
- class: vue.normalizeClass([[
222
- vue.unref(nsPager).is("active", _ctx.currentPage === _ctx.pageCount),
223
- vue.unref(nsPager).is("disabled", _ctx.disabled)
224
- ], "number"]),
225
- "aria-current": _ctx.currentPage === _ctx.pageCount,
226
- "aria-label": vue.unref(t)("el.pagination.currentPage", { pager: _ctx.pageCount }),
227
- tabindex: tabindex.value
228
- }, vue.toDisplayString(_ctx.pageCount), 11, _hoisted_5)) : vue.createCommentVNode("v-if", true)
229
- ],
230
- 34
231
- );
232
- };
233
- }
12
+ pageCount: {
13
+ type: Number,
14
+ required: true
15
+ },
16
+ pagerCount: {
17
+ type: Number,
18
+ default: 7
19
+ },
20
+ disabled: Boolean
234
21
  });
235
- var Pager = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);
236
22
 
237
- exports["default"] = Pager;
23
+ exports.paginationPagerProps = paginationPagerProps;
238
24
  //# sourceMappingURL=pager.js.map