@element-plus/nightly 0.0.20240923 → 0.0.20240926

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 (662) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +30 -12
  4. package/dist/index.full.min.js +10 -10
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +4 -4
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +30 -12
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar-eg.js +1 -1
  14. package/dist/locale/ar-eg.min.js +1 -1
  15. package/dist/locale/ar-eg.min.mjs +1 -1
  16. package/dist/locale/ar-eg.mjs +1 -1
  17. package/dist/locale/ar.js +1 -1
  18. package/dist/locale/ar.min.js +1 -1
  19. package/dist/locale/ar.min.mjs +1 -1
  20. package/dist/locale/ar.mjs +1 -1
  21. package/dist/locale/az.js +1 -1
  22. package/dist/locale/az.min.js +1 -1
  23. package/dist/locale/az.min.mjs +1 -1
  24. package/dist/locale/az.mjs +1 -1
  25. package/dist/locale/bg.js +1 -1
  26. package/dist/locale/bg.min.js +1 -1
  27. package/dist/locale/bg.min.mjs +1 -1
  28. package/dist/locale/bg.mjs +1 -1
  29. package/dist/locale/bn.js +1 -1
  30. package/dist/locale/bn.min.js +1 -1
  31. package/dist/locale/bn.min.mjs +1 -1
  32. package/dist/locale/bn.mjs +1 -1
  33. package/dist/locale/ca.js +1 -1
  34. package/dist/locale/ca.min.js +1 -1
  35. package/dist/locale/ca.min.mjs +1 -1
  36. package/dist/locale/ca.mjs +1 -1
  37. package/dist/locale/ckb.js +1 -1
  38. package/dist/locale/ckb.min.js +1 -1
  39. package/dist/locale/ckb.min.mjs +1 -1
  40. package/dist/locale/ckb.mjs +1 -1
  41. package/dist/locale/cs.js +1 -1
  42. package/dist/locale/cs.min.js +1 -1
  43. package/dist/locale/cs.min.mjs +1 -1
  44. package/dist/locale/cs.mjs +1 -1
  45. package/dist/locale/da.js +1 -1
  46. package/dist/locale/da.min.js +1 -1
  47. package/dist/locale/da.min.mjs +1 -1
  48. package/dist/locale/da.mjs +1 -1
  49. package/dist/locale/de.js +1 -1
  50. package/dist/locale/de.min.js +1 -1
  51. package/dist/locale/de.min.mjs +1 -1
  52. package/dist/locale/de.mjs +1 -1
  53. package/dist/locale/el.js +1 -1
  54. package/dist/locale/el.min.js +1 -1
  55. package/dist/locale/el.min.mjs +1 -1
  56. package/dist/locale/el.mjs +1 -1
  57. package/dist/locale/en.js +1 -1
  58. package/dist/locale/en.min.js +1 -1
  59. package/dist/locale/en.min.mjs +1 -1
  60. package/dist/locale/en.mjs +1 -1
  61. package/dist/locale/eo.js +1 -1
  62. package/dist/locale/eo.min.js +1 -1
  63. package/dist/locale/eo.min.mjs +1 -1
  64. package/dist/locale/eo.mjs +1 -1
  65. package/dist/locale/es.js +1 -1
  66. package/dist/locale/es.min.js +1 -1
  67. package/dist/locale/es.min.mjs +1 -1
  68. package/dist/locale/es.mjs +1 -1
  69. package/dist/locale/et.js +1 -1
  70. package/dist/locale/et.min.js +1 -1
  71. package/dist/locale/et.min.mjs +1 -1
  72. package/dist/locale/et.mjs +1 -1
  73. package/dist/locale/eu.js +1 -1
  74. package/dist/locale/eu.min.js +1 -1
  75. package/dist/locale/eu.min.mjs +1 -1
  76. package/dist/locale/eu.mjs +1 -1
  77. package/dist/locale/fa.js +1 -1
  78. package/dist/locale/fa.min.js +1 -1
  79. package/dist/locale/fa.min.mjs +1 -1
  80. package/dist/locale/fa.mjs +1 -1
  81. package/dist/locale/fi.js +1 -1
  82. package/dist/locale/fi.min.js +1 -1
  83. package/dist/locale/fi.min.mjs +1 -1
  84. package/dist/locale/fi.mjs +1 -1
  85. package/dist/locale/fr.js +1 -1
  86. package/dist/locale/fr.min.js +1 -1
  87. package/dist/locale/fr.min.mjs +1 -1
  88. package/dist/locale/fr.mjs +1 -1
  89. package/dist/locale/he.js +1 -1
  90. package/dist/locale/he.min.js +1 -1
  91. package/dist/locale/he.min.mjs +1 -1
  92. package/dist/locale/he.mjs +1 -1
  93. package/dist/locale/hr.js +1 -1
  94. package/dist/locale/hr.min.js +1 -1
  95. package/dist/locale/hr.min.mjs +1 -1
  96. package/dist/locale/hr.mjs +1 -1
  97. package/dist/locale/hu.js +1 -1
  98. package/dist/locale/hu.min.js +1 -1
  99. package/dist/locale/hu.min.mjs +1 -1
  100. package/dist/locale/hu.mjs +1 -1
  101. package/dist/locale/hy-am.js +1 -1
  102. package/dist/locale/hy-am.min.js +1 -1
  103. package/dist/locale/hy-am.min.mjs +1 -1
  104. package/dist/locale/hy-am.mjs +1 -1
  105. package/dist/locale/id.js +1 -1
  106. package/dist/locale/id.min.js +1 -1
  107. package/dist/locale/id.min.mjs +1 -1
  108. package/dist/locale/id.mjs +1 -1
  109. package/dist/locale/it.js +1 -1
  110. package/dist/locale/it.min.js +1 -1
  111. package/dist/locale/it.min.mjs +1 -1
  112. package/dist/locale/it.mjs +1 -1
  113. package/dist/locale/ja.js +1 -1
  114. package/dist/locale/ja.min.js +1 -1
  115. package/dist/locale/ja.min.mjs +1 -1
  116. package/dist/locale/ja.mjs +1 -1
  117. package/dist/locale/kk.js +1 -1
  118. package/dist/locale/kk.min.js +1 -1
  119. package/dist/locale/kk.min.mjs +1 -1
  120. package/dist/locale/kk.mjs +1 -1
  121. package/dist/locale/km.js +1 -1
  122. package/dist/locale/km.min.js +1 -1
  123. package/dist/locale/km.min.mjs +1 -1
  124. package/dist/locale/km.mjs +1 -1
  125. package/dist/locale/ko.js +1 -1
  126. package/dist/locale/ko.min.js +1 -1
  127. package/dist/locale/ko.min.mjs +1 -1
  128. package/dist/locale/ko.mjs +1 -1
  129. package/dist/locale/ku.js +1 -1
  130. package/dist/locale/ku.min.js +1 -1
  131. package/dist/locale/ku.min.mjs +1 -1
  132. package/dist/locale/ku.mjs +1 -1
  133. package/dist/locale/ky.js +1 -1
  134. package/dist/locale/ky.min.js +1 -1
  135. package/dist/locale/ky.min.mjs +1 -1
  136. package/dist/locale/ky.mjs +1 -1
  137. package/dist/locale/lt.js +1 -1
  138. package/dist/locale/lt.min.js +1 -1
  139. package/dist/locale/lt.min.mjs +1 -1
  140. package/dist/locale/lt.mjs +1 -1
  141. package/dist/locale/lv.js +1 -1
  142. package/dist/locale/lv.min.js +1 -1
  143. package/dist/locale/lv.min.mjs +1 -1
  144. package/dist/locale/lv.mjs +1 -1
  145. package/dist/locale/mg.js +1 -1
  146. package/dist/locale/mg.min.js +1 -1
  147. package/dist/locale/mg.min.mjs +1 -1
  148. package/dist/locale/mg.mjs +1 -1
  149. package/dist/locale/mn.js +1 -1
  150. package/dist/locale/mn.min.js +1 -1
  151. package/dist/locale/mn.min.mjs +1 -1
  152. package/dist/locale/mn.mjs +1 -1
  153. package/dist/locale/my.js +1 -1
  154. package/dist/locale/my.min.js +1 -1
  155. package/dist/locale/my.min.mjs +1 -1
  156. package/dist/locale/my.mjs +1 -1
  157. package/dist/locale/nb-no.js +1 -1
  158. package/dist/locale/nb-no.min.js +1 -1
  159. package/dist/locale/nb-no.min.mjs +1 -1
  160. package/dist/locale/nb-no.mjs +1 -1
  161. package/dist/locale/nl.js +1 -1
  162. package/dist/locale/nl.min.js +1 -1
  163. package/dist/locale/nl.min.mjs +1 -1
  164. package/dist/locale/nl.mjs +1 -1
  165. package/dist/locale/pa.js +1 -1
  166. package/dist/locale/pa.min.js +1 -1
  167. package/dist/locale/pa.min.mjs +1 -1
  168. package/dist/locale/pa.mjs +1 -1
  169. package/dist/locale/pl.js +1 -1
  170. package/dist/locale/pl.min.js +1 -1
  171. package/dist/locale/pl.min.mjs +1 -1
  172. package/dist/locale/pl.mjs +1 -1
  173. package/dist/locale/pt-br.js +1 -1
  174. package/dist/locale/pt-br.min.js +1 -1
  175. package/dist/locale/pt-br.min.mjs +1 -1
  176. package/dist/locale/pt-br.mjs +1 -1
  177. package/dist/locale/pt.js +1 -1
  178. package/dist/locale/pt.min.js +1 -1
  179. package/dist/locale/pt.min.mjs +1 -1
  180. package/dist/locale/pt.mjs +1 -1
  181. package/dist/locale/ro.js +1 -1
  182. package/dist/locale/ro.min.js +1 -1
  183. package/dist/locale/ro.min.mjs +1 -1
  184. package/dist/locale/ro.mjs +1 -1
  185. package/dist/locale/ru.js +1 -1
  186. package/dist/locale/ru.min.js +1 -1
  187. package/dist/locale/ru.min.mjs +1 -1
  188. package/dist/locale/ru.mjs +1 -1
  189. package/dist/locale/sk.js +1 -1
  190. package/dist/locale/sk.min.js +1 -1
  191. package/dist/locale/sk.min.mjs +1 -1
  192. package/dist/locale/sk.mjs +1 -1
  193. package/dist/locale/sl.js +1 -1
  194. package/dist/locale/sl.min.js +1 -1
  195. package/dist/locale/sl.min.mjs +1 -1
  196. package/dist/locale/sl.mjs +1 -1
  197. package/dist/locale/sr.js +1 -1
  198. package/dist/locale/sr.min.js +1 -1
  199. package/dist/locale/sr.min.mjs +1 -1
  200. package/dist/locale/sr.mjs +1 -1
  201. package/dist/locale/sv.js +1 -1
  202. package/dist/locale/sv.min.js +1 -1
  203. package/dist/locale/sv.min.mjs +1 -1
  204. package/dist/locale/sv.mjs +1 -1
  205. package/dist/locale/sw.js +1 -1
  206. package/dist/locale/sw.min.js +1 -1
  207. package/dist/locale/sw.min.mjs +1 -1
  208. package/dist/locale/sw.mjs +1 -1
  209. package/dist/locale/ta.js +1 -1
  210. package/dist/locale/ta.min.js +1 -1
  211. package/dist/locale/ta.min.mjs +1 -1
  212. package/dist/locale/ta.mjs +1 -1
  213. package/dist/locale/th.js +1 -1
  214. package/dist/locale/th.min.js +1 -1
  215. package/dist/locale/th.min.mjs +1 -1
  216. package/dist/locale/th.mjs +1 -1
  217. package/dist/locale/tk.js +1 -1
  218. package/dist/locale/tk.min.js +1 -1
  219. package/dist/locale/tk.min.mjs +1 -1
  220. package/dist/locale/tk.mjs +1 -1
  221. package/dist/locale/tr.js +1 -1
  222. package/dist/locale/tr.min.js +1 -1
  223. package/dist/locale/tr.min.mjs +1 -1
  224. package/dist/locale/tr.mjs +1 -1
  225. package/dist/locale/ug-cn.js +1 -1
  226. package/dist/locale/ug-cn.min.js +1 -1
  227. package/dist/locale/ug-cn.min.mjs +1 -1
  228. package/dist/locale/ug-cn.mjs +1 -1
  229. package/dist/locale/uk.js +1 -1
  230. package/dist/locale/uk.min.js +1 -1
  231. package/dist/locale/uk.min.mjs +1 -1
  232. package/dist/locale/uk.mjs +1 -1
  233. package/dist/locale/uz-uz.js +1 -1
  234. package/dist/locale/uz-uz.min.js +1 -1
  235. package/dist/locale/uz-uz.min.mjs +1 -1
  236. package/dist/locale/uz-uz.mjs +1 -1
  237. package/dist/locale/vi.js +1 -1
  238. package/dist/locale/vi.min.js +1 -1
  239. package/dist/locale/vi.min.mjs +1 -1
  240. package/dist/locale/vi.mjs +1 -1
  241. package/dist/locale/zh-cn.js +1 -1
  242. package/dist/locale/zh-cn.min.js +1 -1
  243. package/dist/locale/zh-cn.min.mjs +1 -1
  244. package/dist/locale/zh-cn.mjs +1 -1
  245. package/dist/locale/zh-tw.js +1 -1
  246. package/dist/locale/zh-tw.min.js +1 -1
  247. package/dist/locale/zh-tw.min.mjs +1 -1
  248. package/dist/locale/zh-tw.mjs +1 -1
  249. package/es/components/affix/index.mjs +2 -2
  250. package/es/components/affix/src/affix.mjs +26 -119
  251. package/es/components/affix/src/affix.mjs.map +1 -1
  252. package/es/components/affix/src/affix2.mjs +119 -26
  253. package/es/components/affix/src/affix2.mjs.map +1 -1
  254. package/es/components/avatar/index.mjs +2 -2
  255. package/es/components/avatar/src/avatar.mjs +32 -66
  256. package/es/components/avatar/src/avatar.mjs.map +1 -1
  257. package/es/components/avatar/src/avatar2.mjs +66 -32
  258. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  259. package/es/components/calendar/src/calendar2.mjs +1 -1
  260. package/es/components/calendar/src/date-table.mjs +85 -33
  261. package/es/components/calendar/src/date-table.mjs.map +1 -1
  262. package/es/components/calendar/src/date-table2.mjs +33 -85
  263. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  264. package/es/components/calendar/src/use-date-table.mjs +1 -1
  265. package/es/components/card/index.mjs +2 -2
  266. package/es/components/card/src/card.mjs +21 -43
  267. package/es/components/card/src/card.mjs.map +1 -1
  268. package/es/components/card/src/card2.mjs +43 -21
  269. package/es/components/card/src/card2.mjs.map +1 -1
  270. package/es/components/cascader/src/cascader.vue.d.ts +4 -0
  271. package/es/components/cascader/src/cascader2.mjs +2 -1
  272. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  273. package/es/components/cascader-panel/src/index.mjs +1 -1
  274. package/es/components/cascader-panel/src/menu.mjs +1 -1
  275. package/es/components/cascader-panel/src/node.mjs +116 -207
  276. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  277. package/es/components/cascader-panel/src/node2.mjs +207 -116
  278. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  279. package/es/components/cascader-panel/src/store.mjs +1 -1
  280. package/es/components/check-tag/index.mjs +2 -2
  281. package/es/components/check-tag/src/check-tag.mjs +15 -39
  282. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  283. package/es/components/check-tag/src/check-tag2.mjs +39 -15
  284. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  285. package/es/components/dialog/src/dialog-content.mjs +89 -26
  286. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  287. package/es/components/dialog/src/dialog-content2.mjs +26 -89
  288. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  289. package/es/components/dialog/src/dialog.mjs +1 -1
  290. package/es/components/dialog/src/dialog2.mjs +1 -1
  291. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  292. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  293. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  294. package/es/components/empty/index.mjs +2 -2
  295. package/es/components/empty/src/empty.mjs +11 -53
  296. package/es/components/empty/src/empty.mjs.map +1 -1
  297. package/es/components/empty/src/empty2.mjs +53 -11
  298. package/es/components/empty/src/empty2.mjs.map +1 -1
  299. package/es/components/icon/index.mjs +2 -2
  300. package/es/components/icon/src/icon.mjs +8 -36
  301. package/es/components/icon/src/icon.mjs.map +1 -1
  302. package/es/components/icon/src/icon2.mjs +36 -8
  303. package/es/components/icon/src/icon2.mjs.map +1 -1
  304. package/es/components/image/index.mjs +2 -2
  305. package/es/components/image/src/image.mjs +64 -233
  306. package/es/components/image/src/image.mjs.map +1 -1
  307. package/es/components/image/src/image2.mjs +233 -64
  308. package/es/components/image/src/image2.mjs.map +1 -1
  309. package/es/components/index.mjs +24 -24
  310. package/es/components/mention/src/mention-dropdown.mjs +15 -167
  311. package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
  312. package/es/components/mention/src/mention-dropdown2.mjs +167 -15
  313. package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
  314. package/es/components/mention/src/mention2.mjs +1 -1
  315. package/es/components/menu/index.mjs +4 -4
  316. package/es/components/menu/src/menu-item-group.mjs +35 -4
  317. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  318. package/es/components/menu/src/menu-item-group2.mjs +4 -35
  319. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  320. package/es/components/menu/src/menu-item.mjs +14 -97
  321. package/es/components/menu/src/menu-item.mjs.map +1 -1
  322. package/es/components/menu/src/menu-item2.mjs +97 -14
  323. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  324. package/es/components/message/index.mjs +1 -1
  325. package/es/components/message/src/message.mjs +91 -147
  326. package/es/components/message/src/message.mjs.map +1 -1
  327. package/es/components/message/src/message2.mjs +147 -91
  328. package/es/components/message/src/message2.mjs.map +1 -1
  329. package/es/components/message/src/method.mjs +2 -2
  330. package/es/components/notification/index.mjs +1 -1
  331. package/es/components/notification/src/notification.mjs +145 -64
  332. package/es/components/notification/src/notification.mjs.map +1 -1
  333. package/es/components/notification/src/notification2.mjs +64 -145
  334. package/es/components/notification/src/notification2.mjs.map +1 -1
  335. package/es/components/notification/src/notify.mjs +2 -2
  336. package/es/components/page-header/index.mjs +2 -2
  337. package/es/components/page-header/src/page-header.mjs +102 -17
  338. package/es/components/page-header/src/page-header.mjs.map +1 -1
  339. package/es/components/page-header/src/page-header2.mjs +17 -102
  340. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  341. package/es/components/pagination/src/components/sizes.d.ts +1 -0
  342. package/es/components/pagination/src/components/sizes.mjs +25 -70
  343. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  344. package/es/components/pagination/src/components/sizes.vue.d.ts +2 -0
  345. package/es/components/pagination/src/components/sizes2.mjs +70 -23
  346. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  347. package/es/components/pagination/src/pagination.d.ts +3 -0
  348. package/es/components/pagination/src/pagination.mjs +5 -3
  349. package/es/components/pagination/src/pagination.mjs.map +1 -1
  350. package/es/components/popper/index.mjs +4 -4
  351. package/es/components/popper/src/content.mjs +137 -93
  352. package/es/components/popper/src/content.mjs.map +1 -1
  353. package/es/components/popper/src/content2.mjs +93 -137
  354. package/es/components/popper/src/content2.mjs.map +1 -1
  355. package/es/components/popper/src/popper.mjs +32 -25
  356. package/es/components/popper/src/popper.mjs.map +1 -1
  357. package/es/components/popper/src/popper2.mjs +25 -32
  358. package/es/components/popper/src/popper2.mjs.map +1 -1
  359. package/es/components/radio/index.mjs +2 -2
  360. package/es/components/radio/src/radio-button.mjs +1 -1
  361. package/es/components/radio/src/radio-group.mjs +1 -1
  362. package/es/components/radio/src/radio.mjs +73 -34
  363. package/es/components/radio/src/radio.mjs.map +1 -1
  364. package/es/components/radio/src/radio2.mjs +34 -73
  365. package/es/components/radio/src/radio2.mjs.map +1 -1
  366. package/es/components/result/index.mjs +2 -2
  367. package/es/components/result/src/result.mjs +29 -63
  368. package/es/components/result/src/result.mjs.map +1 -1
  369. package/es/components/result/src/result2.mjs +63 -29
  370. package/es/components/result/src/result2.mjs.map +1 -1
  371. package/es/components/roving-focus-group/index.mjs +3 -3
  372. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  373. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  374. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  375. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  376. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  377. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  378. package/es/components/scrollbar/index.mjs +1 -1
  379. package/es/components/scrollbar/src/bar2.mjs +1 -1
  380. package/es/components/scrollbar/src/thumb.mjs +130 -11
  381. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  382. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  383. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  384. package/es/components/select/src/select.d.ts +1 -0
  385. package/es/components/select/src/select.mjs +1 -0
  386. package/es/components/select/src/select.mjs.map +1 -1
  387. package/es/components/select/src/select.vue.d.ts +2 -0
  388. package/es/components/select/src/select2.mjs +2 -1
  389. package/es/components/select/src/select2.mjs.map +1 -1
  390. package/es/components/skeleton/index.mjs +2 -2
  391. package/es/components/skeleton/src/skeleton-item.mjs +23 -18
  392. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  393. package/es/components/skeleton/src/skeleton-item2.mjs +18 -23
  394. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  395. package/es/components/skeleton/src/skeleton2.mjs +1 -1
  396. package/es/components/steps/index.mjs +4 -4
  397. package/es/components/steps/src/item.mjs +191 -19
  398. package/es/components/steps/src/item.mjs.map +1 -1
  399. package/es/components/steps/src/item2.mjs +19 -191
  400. package/es/components/steps/src/item2.mjs.map +1 -1
  401. package/es/components/steps/src/steps.mjs +39 -36
  402. package/es/components/steps/src/steps.mjs.map +1 -1
  403. package/es/components/steps/src/steps2.mjs +36 -39
  404. package/es/components/steps/src/steps2.mjs.map +1 -1
  405. package/es/components/table/src/filter-panel.mjs +6 -2
  406. package/es/components/table/src/filter-panel.mjs.map +1 -1
  407. package/es/components/table/src/filter-panel.vue.d.ts +6 -0
  408. package/es/components/table/src/table/defaults.d.ts +2 -0
  409. package/es/components/table/src/table/defaults.mjs +1 -0
  410. package/es/components/table/src/table/defaults.mjs.map +1 -1
  411. package/es/components/table/src/table-header/index.d.ts +6 -0
  412. package/es/components/table/src/table-header/index.mjs +4 -0
  413. package/es/components/table/src/table-header/index.mjs.map +1 -1
  414. package/es/components/table/src/table.mjs +4 -2
  415. package/es/components/table/src/table.mjs.map +1 -1
  416. package/es/components/table/src/table.vue.d.ts +2 -0
  417. package/es/components/tooltip/src/content.mjs +1 -1
  418. package/es/components/tooltip/src/content2.mjs +1 -1
  419. package/es/components/tooltip/src/tooltip.mjs +1 -1
  420. package/es/components/tooltip-v2/src/content2.mjs +1 -1
  421. package/es/components/tour/index.mjs +3 -3
  422. package/es/components/tour/src/content.mjs +68 -44
  423. package/es/components/tour/src/content.mjs.map +1 -1
  424. package/es/components/tour/src/content2.mjs +44 -68
  425. package/es/components/tour/src/content2.mjs.map +1 -1
  426. package/es/components/tour/src/step.mjs +169 -44
  427. package/es/components/tour/src/step.mjs.map +1 -1
  428. package/es/components/tour/src/step2.mjs +44 -169
  429. package/es/components/tour/src/step2.mjs.map +1 -1
  430. package/es/components/tour/src/tour.mjs +1 -1
  431. package/es/components/tour/src/tour2.mjs +1 -1
  432. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  433. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  434. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  435. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  436. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  437. package/es/components/transfer/src/transfer2.mjs +1 -1
  438. package/es/components/upload/index.mjs +1 -1
  439. package/es/components/upload/src/upload-list.mjs +175 -29
  440. package/es/components/upload/src/upload-list.mjs.map +1 -1
  441. package/es/components/upload/src/upload-list2.mjs +29 -175
  442. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  443. package/es/components/upload/src/upload2.mjs +1 -1
  444. package/es/components/visual-hidden/index.mjs +3 -3
  445. package/es/components/visual-hidden/src/visual-hidden.mjs +7 -35
  446. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  447. package/es/components/visual-hidden/src/visual-hidden2.mjs +35 -7
  448. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  449. package/es/index.mjs +24 -24
  450. package/es/version.d.ts +1 -1
  451. package/es/version.mjs +1 -1
  452. package/es/version.mjs.map +1 -1
  453. package/lib/components/affix/index.js +2 -2
  454. package/lib/components/affix/src/affix.js +27 -119
  455. package/lib/components/affix/src/affix.js.map +1 -1
  456. package/lib/components/affix/src/affix2.js +119 -27
  457. package/lib/components/affix/src/affix2.js.map +1 -1
  458. package/lib/components/avatar/index.js +2 -2
  459. package/lib/components/avatar/src/avatar.js +33 -66
  460. package/lib/components/avatar/src/avatar.js.map +1 -1
  461. package/lib/components/avatar/src/avatar2.js +66 -33
  462. package/lib/components/avatar/src/avatar2.js.map +1 -1
  463. package/lib/components/calendar/src/calendar2.js +1 -1
  464. package/lib/components/calendar/src/date-table.js +85 -37
  465. package/lib/components/calendar/src/date-table.js.map +1 -1
  466. package/lib/components/calendar/src/date-table2.js +37 -85
  467. package/lib/components/calendar/src/date-table2.js.map +1 -1
  468. package/lib/components/calendar/src/use-date-table.js +1 -1
  469. package/lib/components/card/index.js +2 -2
  470. package/lib/components/card/src/card.js +21 -43
  471. package/lib/components/card/src/card.js.map +1 -1
  472. package/lib/components/card/src/card2.js +43 -21
  473. package/lib/components/card/src/card2.js.map +1 -1
  474. package/lib/components/cascader/src/cascader.vue.d.ts +4 -0
  475. package/lib/components/cascader/src/cascader2.js +2 -1
  476. package/lib/components/cascader/src/cascader2.js.map +1 -1
  477. package/lib/components/cascader-panel/src/index.js +1 -1
  478. package/lib/components/cascader-panel/src/menu.js +1 -1
  479. package/lib/components/cascader-panel/src/node.js +116 -207
  480. package/lib/components/cascader-panel/src/node.js.map +1 -1
  481. package/lib/components/cascader-panel/src/node2.js +207 -116
  482. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  483. package/lib/components/cascader-panel/src/store.js +1 -1
  484. package/lib/components/check-tag/index.js +2 -2
  485. package/lib/components/check-tag/src/check-tag.js +16 -39
  486. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  487. package/lib/components/check-tag/src/check-tag2.js +39 -16
  488. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  489. package/lib/components/dialog/src/dialog-content.js +88 -26
  490. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  491. package/lib/components/dialog/src/dialog-content2.js +26 -88
  492. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  493. package/lib/components/dialog/src/dialog.js +1 -1
  494. package/lib/components/dialog/src/dialog2.js +1 -1
  495. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  496. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  497. package/lib/components/dropdown/src/dropdown2.js +1 -1
  498. package/lib/components/empty/index.js +2 -2
  499. package/lib/components/empty/src/empty.js +11 -53
  500. package/lib/components/empty/src/empty.js.map +1 -1
  501. package/lib/components/empty/src/empty2.js +53 -11
  502. package/lib/components/empty/src/empty2.js.map +1 -1
  503. package/lib/components/icon/index.js +2 -2
  504. package/lib/components/icon/src/icon.js +8 -36
  505. package/lib/components/icon/src/icon.js.map +1 -1
  506. package/lib/components/icon/src/icon2.js +36 -8
  507. package/lib/components/icon/src/icon2.js.map +1 -1
  508. package/lib/components/image/index.js +2 -2
  509. package/lib/components/image/src/image.js +64 -232
  510. package/lib/components/image/src/image.js.map +1 -1
  511. package/lib/components/image/src/image2.js +232 -64
  512. package/lib/components/image/src/image2.js.map +1 -1
  513. package/lib/components/index.js +24 -24
  514. package/lib/components/mention/src/mention-dropdown.js +16 -167
  515. package/lib/components/mention/src/mention-dropdown.js.map +1 -1
  516. package/lib/components/mention/src/mention-dropdown2.js +167 -16
  517. package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
  518. package/lib/components/mention/src/mention2.js +1 -1
  519. package/lib/components/menu/index.js +4 -4
  520. package/lib/components/menu/src/menu-item-group.js +35 -4
  521. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  522. package/lib/components/menu/src/menu-item-group2.js +4 -35
  523. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  524. package/lib/components/menu/src/menu-item.js +15 -97
  525. package/lib/components/menu/src/menu-item.js.map +1 -1
  526. package/lib/components/menu/src/menu-item2.js +97 -15
  527. package/lib/components/menu/src/menu-item2.js.map +1 -1
  528. package/lib/components/message/index.js +1 -1
  529. package/lib/components/message/src/message.js +93 -146
  530. package/lib/components/message/src/message.js.map +1 -1
  531. package/lib/components/message/src/message2.js +146 -93
  532. package/lib/components/message/src/message2.js.map +1 -1
  533. package/lib/components/message/src/method.js +2 -2
  534. package/lib/components/notification/index.js +1 -1
  535. package/lib/components/notification/src/notification.js +144 -65
  536. package/lib/components/notification/src/notification.js.map +1 -1
  537. package/lib/components/notification/src/notification2.js +65 -144
  538. package/lib/components/notification/src/notification2.js.map +1 -1
  539. package/lib/components/notification/src/notify.js +2 -2
  540. package/lib/components/page-header/index.js +2 -2
  541. package/lib/components/page-header/src/page-header.js +102 -18
  542. package/lib/components/page-header/src/page-header.js.map +1 -1
  543. package/lib/components/page-header/src/page-header2.js +18 -102
  544. package/lib/components/page-header/src/page-header2.js.map +1 -1
  545. package/lib/components/pagination/src/components/sizes.d.ts +1 -0
  546. package/lib/components/pagination/src/components/sizes.js +25 -70
  547. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  548. package/lib/components/pagination/src/components/sizes.vue.d.ts +2 -0
  549. package/lib/components/pagination/src/components/sizes2.js +70 -23
  550. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  551. package/lib/components/pagination/src/pagination.d.ts +3 -0
  552. package/lib/components/pagination/src/pagination.js +5 -3
  553. package/lib/components/pagination/src/pagination.js.map +1 -1
  554. package/lib/components/popper/index.js +4 -4
  555. package/lib/components/popper/src/content.js +137 -98
  556. package/lib/components/popper/src/content.js.map +1 -1
  557. package/lib/components/popper/src/content2.js +98 -137
  558. package/lib/components/popper/src/content2.js.map +1 -1
  559. package/lib/components/popper/src/popper.js +32 -28
  560. package/lib/components/popper/src/popper.js.map +1 -1
  561. package/lib/components/popper/src/popper2.js +28 -32
  562. package/lib/components/popper/src/popper2.js.map +1 -1
  563. package/lib/components/radio/index.js +2 -2
  564. package/lib/components/radio/src/radio-button.js +1 -1
  565. package/lib/components/radio/src/radio-group.js +1 -1
  566. package/lib/components/radio/src/radio.js +73 -36
  567. package/lib/components/radio/src/radio.js.map +1 -1
  568. package/lib/components/radio/src/radio2.js +36 -73
  569. package/lib/components/radio/src/radio2.js.map +1 -1
  570. package/lib/components/result/index.js +2 -2
  571. package/lib/components/result/src/result.js +31 -63
  572. package/lib/components/result/src/result.js.map +1 -1
  573. package/lib/components/result/src/result2.js +63 -31
  574. package/lib/components/result/src/result2.js.map +1 -1
  575. package/lib/components/roving-focus-group/index.js +2 -2
  576. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  577. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  578. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  579. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  580. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  581. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  582. package/lib/components/scrollbar/index.js +1 -1
  583. package/lib/components/scrollbar/src/bar2.js +1 -1
  584. package/lib/components/scrollbar/src/thumb.js +130 -11
  585. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  586. package/lib/components/scrollbar/src/thumb2.js +11 -130
  587. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  588. package/lib/components/select/src/select.d.ts +1 -0
  589. package/lib/components/select/src/select.js +1 -0
  590. package/lib/components/select/src/select.js.map +1 -1
  591. package/lib/components/select/src/select.vue.d.ts +2 -0
  592. package/lib/components/select/src/select2.js +2 -1
  593. package/lib/components/select/src/select2.js.map +1 -1
  594. package/lib/components/skeleton/index.js +2 -2
  595. package/lib/components/skeleton/src/skeleton-item.js +23 -18
  596. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  597. package/lib/components/skeleton/src/skeleton-item2.js +18 -23
  598. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  599. package/lib/components/skeleton/src/skeleton2.js +1 -1
  600. package/lib/components/steps/index.js +4 -4
  601. package/lib/components/steps/src/item.js +191 -19
  602. package/lib/components/steps/src/item.js.map +1 -1
  603. package/lib/components/steps/src/item2.js +19 -191
  604. package/lib/components/steps/src/item2.js.map +1 -1
  605. package/lib/components/steps/src/steps.js +39 -37
  606. package/lib/components/steps/src/steps.js.map +1 -1
  607. package/lib/components/steps/src/steps2.js +37 -39
  608. package/lib/components/steps/src/steps2.js.map +1 -1
  609. package/lib/components/table/src/filter-panel.js +6 -2
  610. package/lib/components/table/src/filter-panel.js.map +1 -1
  611. package/lib/components/table/src/filter-panel.vue.d.ts +6 -0
  612. package/lib/components/table/src/table/defaults.d.ts +2 -0
  613. package/lib/components/table/src/table/defaults.js +1 -0
  614. package/lib/components/table/src/table/defaults.js.map +1 -1
  615. package/lib/components/table/src/table-header/index.d.ts +6 -0
  616. package/lib/components/table/src/table-header/index.js +4 -0
  617. package/lib/components/table/src/table-header/index.js.map +1 -1
  618. package/lib/components/table/src/table.js +4 -2
  619. package/lib/components/table/src/table.js.map +1 -1
  620. package/lib/components/table/src/table.vue.d.ts +2 -0
  621. package/lib/components/tooltip/src/content.js +1 -1
  622. package/lib/components/tooltip/src/content2.js +1 -1
  623. package/lib/components/tooltip/src/tooltip.js +1 -1
  624. package/lib/components/tooltip-v2/src/content2.js +1 -1
  625. package/lib/components/tour/index.js +3 -3
  626. package/lib/components/tour/src/content.js +68 -47
  627. package/lib/components/tour/src/content.js.map +1 -1
  628. package/lib/components/tour/src/content2.js +47 -68
  629. package/lib/components/tour/src/content2.js.map +1 -1
  630. package/lib/components/tour/src/step.js +168 -44
  631. package/lib/components/tour/src/step.js.map +1 -1
  632. package/lib/components/tour/src/step2.js +44 -168
  633. package/lib/components/tour/src/step2.js.map +1 -1
  634. package/lib/components/tour/src/tour.js +1 -1
  635. package/lib/components/tour/src/tour2.js +1 -1
  636. package/lib/components/transfer/src/composables/use-check.js +1 -1
  637. package/lib/components/transfer/src/transfer-panel.js +128 -21
  638. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  639. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  640. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  641. package/lib/components/transfer/src/transfer2.js +1 -1
  642. package/lib/components/upload/index.js +1 -1
  643. package/lib/components/upload/src/upload-list.js +175 -30
  644. package/lib/components/upload/src/upload-list.js.map +1 -1
  645. package/lib/components/upload/src/upload-list2.js +30 -175
  646. package/lib/components/upload/src/upload-list2.js.map +1 -1
  647. package/lib/components/upload/src/upload2.js +1 -1
  648. package/lib/components/visual-hidden/index.js +2 -2
  649. package/lib/components/visual-hidden/src/visual-hidden.js +7 -35
  650. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  651. package/lib/components/visual-hidden/src/visual-hidden2.js +35 -7
  652. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  653. package/lib/index.js +24 -24
  654. package/lib/version.d.ts +1 -1
  655. package/lib/version.js +1 -1
  656. package/lib/version.js.map +1 -1
  657. package/package.json +2 -2
  658. package/tags.json +1 -1
  659. package/theme-chalk/el-transfer.css +1 -1
  660. package/theme-chalk/index.css +1 -1
  661. package/theme-chalk/src/transfer.scss +0 -1
  662. package/web-types.json +1 -1
@@ -2,77 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var lodashUnified = require('lodash-unified');
7
- var index$2 = require('../../../select/index.js');
8
- require('../../../../hooks/index.js');
9
- var usePagination = require('../usePagination.js');
10
- var sizes = require('./sizes2.js');
11
- var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
12
- var index = require('../../../../hooks/use-locale/index.js');
13
- var index$1 = require('../../../../hooks/use-namespace/index.js');
5
+ require('../../../../utils/index.js');
6
+ require('../../../../constants/index.js');
7
+ var runtime = require('../../../../utils/vue/props/runtime.js');
8
+ var typescript = require('../../../../utils/typescript.js');
9
+ var size = require('../../../../constants/size.js');
14
10
 
15
- const __default__ = vue.defineComponent({
16
- name: "ElPaginationSizes"
11
+ const paginationSizesProps = runtime.buildProps({
12
+ pageSize: {
13
+ type: Number,
14
+ required: true
15
+ },
16
+ pageSizes: {
17
+ type: runtime.definePropType(Array),
18
+ default: () => typescript.mutable([10, 20, 30, 40, 50, 100])
19
+ },
20
+ popperClass: {
21
+ type: String
22
+ },
23
+ disabled: Boolean,
24
+ teleported: Boolean,
25
+ size: {
26
+ type: String,
27
+ values: size.componentSizes
28
+ },
29
+ appendSizeTo: String
17
30
  });
18
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
- ...__default__,
20
- props: sizes.paginationSizesProps,
21
- emits: ["page-size-change"],
22
- setup(__props, { emit }) {
23
- const props = __props;
24
- const { t } = index.useLocale();
25
- const ns = index$1.useNamespace("pagination");
26
- const pagination = usePagination.usePagination();
27
- const innerPageSize = vue.ref(props.pageSize);
28
- vue.watch(() => props.pageSizes, (newVal, oldVal) => {
29
- if (lodashUnified.isEqual(newVal, oldVal))
30
- return;
31
- if (Array.isArray(newVal)) {
32
- const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
33
- emit("page-size-change", pageSize);
34
- }
35
- });
36
- vue.watch(() => props.pageSize, (newVal) => {
37
- innerPageSize.value = newVal;
38
- });
39
- const innerPageSizes = vue.computed(() => props.pageSizes);
40
- function handleChange(val) {
41
- var _a;
42
- if (val !== innerPageSize.value) {
43
- innerPageSize.value = val;
44
- (_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
45
- }
46
- }
47
- return (_ctx, _cache) => {
48
- return vue.openBlock(), vue.createElementBlock("span", {
49
- class: vue.normalizeClass(vue.unref(ns).e("sizes"))
50
- }, [
51
- vue.createVNode(vue.unref(index$2.ElSelect), {
52
- "model-value": innerPageSize.value,
53
- disabled: _ctx.disabled,
54
- "popper-class": _ctx.popperClass,
55
- size: _ctx.size,
56
- teleported: _ctx.teleported,
57
- "validate-event": false,
58
- onChange: handleChange
59
- }, {
60
- default: vue.withCtx(() => [
61
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(innerPageSizes), (item) => {
62
- return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElOption), {
63
- key: item,
64
- value: item,
65
- label: item + vue.unref(t)("el.pagination.pagesize")
66
- }, null, 8, ["value", "label"]);
67
- }), 128))
68
- ]),
69
- _: 1
70
- }, 8, ["model-value", "disabled", "popper-class", "size", "teleported"])
71
- ], 2);
72
- };
73
- }
74
- });
75
- var Sizes = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "sizes.vue"]]);
76
31
 
77
- exports["default"] = Sizes;
32
+ exports.paginationSizesProps = paginationSizesProps;
78
33
  //# sourceMappingURL=sizes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes.js","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 @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 { 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 (Array.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":["useLocale","useNamespace","usePagination","ref","watch","isEqual","computed"],"mappings":";;;;;;;;;;;;;;uCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,MAAMA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAaC,2BAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgBC,OAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAAC,SAAA,CACE,MAAM,KAAA,CAAM,SACZ,EAAA,CAAC,QAAQ,MAAW,KAAA;AAClB,MAAI,IAAAC,qBAAA,CAAQ,QAAQ,MAAM,CAAA;AAAG,QAAA,OAAA;AAC7B,MAAI,IAAA,KAAA,CAAM,OAAQ,CAAA,MAAM,CAAG,EAAA;AACzB,QAAM,MAAA,QAAA,GAAW,OAAO,QAAS,CAAA,KAAA,CAAM,QAAS,CAC5C,GAAA,KAAA,CAAM,QACN,GAAA,KAAA,CAAM,SAAU,CAAA,CAAA,CAAA,CAAA;AACpB,QAAA,IAAA,CAAK,oBAAoB,QAAQ,CAAA,CAAA;AAAA,OACnC;AAAA,KAEJ,CAAA,CAAA;AAEA,IAAAD,SAAA,CACE,MAAM,KAAA,CAAM,QACZ,EAAA,CAAC,MAAW,KAAA;AACV,MAAA,aAAA,CAAc,KAAQ,GAAA,MAAA,CAAA;AAAA,KAE1B,CAAA,CAAA;AAEA,IAAA,MAAM,cAAiB,GAAAE,YAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA,CAAA;AACrD,IAAA,SAAA,YAAA,CAAsB,GAAa,EAAA;AACjC,MAAI,IAAA,EAAA,CAAA;AACF,MAAA,IAAA,GAAA,KAAA,aAAsB,CAAA,KAAA,EAAA;AACtB,QAAW,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAA8B,QAC3C,CAAA,EAAA,GAAA,UAAA,CAAA,gBAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,OACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"sizes.js","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":["buildProps","definePropType","mutable","componentSizes"],"mappings":";;;;;;;;;;AAEY,MAAC,oBAAoB,GAAGA,kBAAU,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,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,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,EAAEC,mBAAc;AAC1B,GAAG;AACH,EAAE,YAAY,EAAE,MAAM;AACtB,CAAC;;;;"}
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  readonly validator: ((val: unknown) => boolean) | undefined;
21
21
  __epPropKey: true;
22
22
  };
23
+ readonly appendSizeTo: StringConstructor;
23
24
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
25
  "page-size-change": (...args: any[]) => void;
25
26
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -44,6 +45,7 @@ declare const _default: import("vue").DefineComponent<{
44
45
  readonly validator: ((val: unknown) => boolean) | undefined;
45
46
  __epPropKey: true;
46
47
  };
48
+ readonly appendSizeTo: StringConstructor;
47
49
  }>> & {
48
50
  "onPage-size-change"?: ((...args: any[]) => any) | undefined;
49
51
  }, {
@@ -2,31 +2,78 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../../utils/index.js');
6
- require('../../../../constants/index.js');
7
- var runtime = require('../../../../utils/vue/props/runtime.js');
8
- var typescript = require('../../../../utils/typescript.js');
9
- var size = require('../../../../constants/size.js');
5
+ var vue = require('vue');
6
+ var lodashUnified = require('lodash-unified');
7
+ var index$2 = require('../../../select/index.js');
8
+ require('../../../../hooks/index.js');
9
+ var usePagination = require('../usePagination.js');
10
+ var sizes = require('./sizes.js');
11
+ var pluginVue_exportHelper = require('../../../../_virtual/plugin-vue_export-helper.js');
12
+ var index = require('../../../../hooks/use-locale/index.js');
13
+ var index$1 = require('../../../../hooks/use-namespace/index.js');
10
14
 
11
- const paginationSizesProps = runtime.buildProps({
12
- pageSize: {
13
- type: Number,
14
- required: true
15
- },
16
- pageSizes: {
17
- type: runtime.definePropType(Array),
18
- default: () => typescript.mutable([10, 20, 30, 40, 50, 100])
19
- },
20
- popperClass: {
21
- type: String
22
- },
23
- disabled: Boolean,
24
- teleported: Boolean,
25
- size: {
26
- type: String,
27
- values: size.componentSizes
15
+ const __default__ = vue.defineComponent({
16
+ name: "ElPaginationSizes"
17
+ });
18
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
19
+ ...__default__,
20
+ props: sizes.paginationSizesProps,
21
+ emits: ["page-size-change"],
22
+ setup(__props, { emit }) {
23
+ const props = __props;
24
+ const { t } = index.useLocale();
25
+ const ns = index$1.useNamespace("pagination");
26
+ const pagination = usePagination.usePagination();
27
+ const innerPageSize = vue.ref(props.pageSize);
28
+ vue.watch(() => props.pageSizes, (newVal, oldVal) => {
29
+ if (lodashUnified.isEqual(newVal, oldVal))
30
+ return;
31
+ if (Array.isArray(newVal)) {
32
+ const pageSize = newVal.includes(props.pageSize) ? props.pageSize : props.pageSizes[0];
33
+ emit("page-size-change", pageSize);
34
+ }
35
+ });
36
+ vue.watch(() => props.pageSize, (newVal) => {
37
+ innerPageSize.value = newVal;
38
+ });
39
+ const innerPageSizes = vue.computed(() => props.pageSizes);
40
+ function handleChange(val) {
41
+ var _a;
42
+ if (val !== innerPageSize.value) {
43
+ innerPageSize.value = val;
44
+ (_a = pagination.handleSizeChange) == null ? void 0 : _a.call(pagination, Number(val));
45
+ }
46
+ }
47
+ return (_ctx, _cache) => {
48
+ return vue.openBlock(), vue.createElementBlock("span", {
49
+ class: vue.normalizeClass(vue.unref(ns).e("sizes"))
50
+ }, [
51
+ vue.createVNode(vue.unref(index$2.ElSelect), {
52
+ "model-value": innerPageSize.value,
53
+ disabled: _ctx.disabled,
54
+ "popper-class": _ctx.popperClass,
55
+ size: _ctx.size,
56
+ teleported: _ctx.teleported,
57
+ "validate-event": false,
58
+ "append-to": _ctx.appendSizeTo,
59
+ onChange: handleChange
60
+ }, {
61
+ default: vue.withCtx(() => [
62
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(innerPageSizes), (item) => {
63
+ return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElOption), {
64
+ key: item,
65
+ value: item,
66
+ label: item + vue.unref(t)("el.pagination.pagesize")
67
+ }, null, 8, ["value", "label"]);
68
+ }), 128))
69
+ ]),
70
+ _: 1
71
+ }, 8, ["model-value", "disabled", "popper-class", "size", "teleported", "append-to"])
72
+ ], 2);
73
+ };
28
74
  }
29
75
  });
76
+ var Sizes = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "sizes.vue"]]);
30
77
 
31
- exports.paginationSizesProps = paginationSizesProps;
78
+ exports["default"] = Sizes;
32
79
  //# sourceMappingURL=sizes2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes2.js","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} as const)\n\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\n\nexport type SizesInstance = InstanceType<typeof Sizes>\n"],"names":["buildProps","definePropType","mutable","componentSizes"],"mappings":";;;;;;;;;;AAEY,MAAC,oBAAoB,GAAGA,kBAAU,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,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAMC,kBAAO,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,EAAEC,mBAAc;AAC1B,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"sizes2.js","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 { 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 (Array.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":["useLocale","useNamespace","usePagination","ref","watch","isEqual","computed"],"mappings":";;;;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,mBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAM,MAAA,EAAE,MAAMA,eAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAKC,qBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAaC,2BAAc,EAAA,CAAA;AACjC,IAAM,MAAA,aAAA,GAAgBC,OAAY,CAAA,KAAA,CAAM,QAAS,CAAA,CAAA;AAEjD,IAAAC,SAAA,CACE,MAAM,KAAA,CAAM,SACZ,EAAA,CAAC,QAAQ,MAAW,KAAA;AAClB,MAAI,IAAAC,qBAAA,CAAQ,QAAQ,MAAM,CAAA;AAAG,QAAA,OAAA;AAC7B,MAAI,IAAA,KAAA,CAAM,OAAQ,CAAA,MAAM,CAAG,EAAA;AACzB,QAAM,MAAA,QAAA,GAAW,OAAO,QAAS,CAAA,KAAA,CAAM,QAAS,CAC5C,GAAA,KAAA,CAAM,QACN,GAAA,KAAA,CAAM,SAAU,CAAA,CAAA,CAAA,CAAA;AACpB,QAAA,IAAA,CAAK,oBAAoB,QAAQ,CAAA,CAAA;AAAA,OACnC;AAAA,KAEJ,CAAA,CAAA;AAEA,IAAAD,SAAA,CACE,MAAM,KAAA,CAAM,QACZ,EAAA,CAAC,MAAW,KAAA;AACV,MAAA,aAAA,CAAc,KAAQ,GAAA,MAAA,CAAA;AAAA,KAE1B,CAAA,CAAA;AAEA,IAAA,MAAM,cAAiB,GAAAE,YAAA,CAAS,MAAM,KAAA,CAAM,SAAS,CAAA,CAAA;AACrD,IAAA,SAAA,YAAA,CAAsB,GAAa,EAAA;AACjC,MAAI,IAAA,EAAA,CAAA;AACF,MAAA,IAAA,GAAA,KAAA,aAAsB,CAAA,KAAA,EAAA;AACtB,QAAW,aAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AAA8B,QAC3C,CAAA,EAAA,GAAA,UAAA,CAAA,gBAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,UAAA,EAAA,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AAAA,OACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -27,6 +27,7 @@ export declare const paginationProps: {
27
27
  readonly background: BooleanConstructor;
28
28
  readonly disabled: BooleanConstructor;
29
29
  readonly hideOnSinglePage: BooleanConstructor;
30
+ readonly appendSizeTo: StringConstructor;
30
31
  };
31
32
  export declare type PaginationProps = ExtractPropTypes<typeof paginationProps>;
32
33
  export declare const paginationEmits: {
@@ -67,6 +68,7 @@ declare const _default: import("vue").DefineComponent<{
67
68
  readonly background: BooleanConstructor;
68
69
  readonly disabled: BooleanConstructor;
69
70
  readonly hideOnSinglePage: BooleanConstructor;
71
+ readonly appendSizeTo: StringConstructor;
70
72
  }, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
71
73
  [key: string]: any;
72
74
  }> | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -105,6 +107,7 @@ declare const _default: import("vue").DefineComponent<{
105
107
  readonly background: BooleanConstructor;
106
108
  readonly disabled: BooleanConstructor;
107
109
  readonly hideOnSinglePage: BooleanConstructor;
110
+ readonly appendSizeTo: StringConstructor;
108
111
  }>> & {
109
112
  onChange?: ((currentPage: number, pageSize: number) => any) | undefined;
110
113
  "onCurrent-change"?: ((val: number) => any) | undefined;
@@ -9,7 +9,7 @@ require('../../../hooks/index.js');
9
9
  var constants = require('./constants.js');
10
10
  var prev = require('./components/prev2.js');
11
11
  var next = require('./components/next2.js');
12
- var sizes = require('./components/sizes.js');
12
+ var sizes = require('./components/sizes2.js');
13
13
  var jumper = require('./components/jumper2.js');
14
14
  var total = require('./components/total2.js');
15
15
  var pager = require('./components/pager2.js');
@@ -74,7 +74,8 @@ const paginationProps = runtime.buildProps({
74
74
  size: index.useSizeProp,
75
75
  background: Boolean,
76
76
  disabled: Boolean,
77
- hideOnSinglePage: Boolean
77
+ hideOnSinglePage: Boolean,
78
+ appendSizeTo: String
78
79
  });
79
80
  const paginationEmits = {
80
81
  "update:current-page": (val) => types.isNumber(val),
@@ -262,7 +263,8 @@ var Pagination = vue.defineComponent({
262
263
  popperClass: props.popperClass,
263
264
  disabled: props.disabled,
264
265
  teleported: props.teleported,
265
- size: _size.value
266
+ size: _size.value,
267
+ appendSizeTo: props.appendSizeTo
266
268
  }),
267
269
  slot: (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) != null ? _b : null,
268
270
  total: vue.h(total["default"], { total: isAbsent(props.total) ? 0 : props.total })
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.js","sources":["../../../../../../packages/components/pagination/src/pagination.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n provide,\n ref,\n watch,\n} from 'vue'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport {\n buildProps,\n debugWarn,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport {\n useDeprecated,\n useGlobalSize,\n useLocale,\n useNamespace,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { elPaginationKey } from './constants'\n\nimport Prev from './components/prev.vue'\nimport Next from './components/next.vue'\nimport Sizes from './components/sizes.vue'\nimport Jumper from './components/jumper.vue'\nimport Total from './components/total.vue'\nimport Pager from './components/pager.vue'\nimport type { ExtractPropTypes, VNode } from 'vue'\n/**\n * It it user's responsibility to guarantee that the value of props.total... is number\n * (same as pageSize, defaultPageSize, currentPage, defaultCurrentPage, pageCount)\n * Otherwise we can reasonable infer that the corresponding field is absent\n */\nconst isAbsent = (v: unknown): v is undefined => typeof v !== 'number'\n\ntype LayoutKey =\n | 'prev'\n | 'pager'\n | 'next'\n | 'jumper'\n | '->'\n | 'total'\n | 'sizes'\n | 'slot'\n\nexport const paginationProps = buildProps({\n /**\n * @description options of item count per page\n */\n pageSize: Number,\n /**\n * @description default initial value of page size, not setting is the same as setting 10\n */\n defaultPageSize: Number,\n /**\n * @description total item count\n */\n total: Number,\n /**\n * @description total page count. Set either `total` or `page-count` and pages will be displayed; if you need `page-sizes`, `total` is required\n */\n pageCount: Number,\n /**\n * @description number of pagers. Pagination collapses when the total page count exceeds this value\n */\n pagerCount: {\n type: Number,\n validator: (value: unknown) => {\n return (\n isNumber(value) &&\n Math.trunc(value) === value &&\n value > 4 &&\n value < 22 &&\n value % 2 === 1\n )\n },\n default: 7,\n },\n /**\n * @description current page number\n */\n currentPage: Number,\n /**\n * @description default initial value of current-page, not setting is the same as setting 1\n */\n defaultCurrentPage: Number,\n /**\n * @description layout of Pagination, elements separated with a comma\n */\n layout: {\n type: String,\n default: (\n ['prev', 'pager', 'next', 'jumper', '->', 'total'] as LayoutKey[]\n ).join(', '),\n },\n /**\n * @description item count of each page\n */\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n /**\n * @description custom class name for the page size Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description text for the prev button\n */\n prevText: {\n type: String,\n default: '',\n },\n /**\n * @description icon for the prev button, higher priority of `prev-text`\n */\n prevIcon: {\n type: iconPropType,\n default: () => ArrowLeft,\n },\n /**\n * @description text for the next button\n */\n nextText: {\n type: String,\n default: '',\n },\n /**\n * @description icon for the next button, higher priority of `next-text`\n */\n nextIcon: {\n type: iconPropType,\n default: () => ArrowRight,\n },\n /**\n * @description whether Pagination size is teleported to body\n */\n teleported: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to use small pagination\n */\n small: Boolean,\n /**\n * @description set page size\n */\n size: useSizeProp,\n /**\n * @description whether the buttons have a background color\n */\n background: Boolean,\n /**\n * @description whether Pagination is disabled\n */\n disabled: Boolean,\n /**\n * @description whether to hide when there's only one page\n */\n hideOnSinglePage: Boolean,\n} as const)\nexport type PaginationProps = ExtractPropTypes<typeof paginationProps>\n\nexport const paginationEmits = {\n 'update:current-page': (val: number) => isNumber(val),\n 'update:page-size': (val: number) => isNumber(val),\n 'size-change': (val: number) => isNumber(val),\n change: (currentPage: number, pageSize: number) =>\n isNumber(currentPage) && isNumber(pageSize),\n 'current-change': (val: number) => isNumber(val),\n 'prev-click': (val: number) => isNumber(val),\n 'next-click': (val: number) => isNumber(val),\n}\nexport type PaginationEmits = typeof paginationEmits\n\nconst componentName = 'ElPagination'\nexport default defineComponent({\n name: componentName,\n\n props: paginationProps,\n emits: paginationEmits,\n\n setup(props, { emit, slots }) {\n const { t } = useLocale()\n const ns = useNamespace('pagination')\n const vnodeProps = getCurrentInstance()!.vnode.props || {}\n const _globalSize = useGlobalSize()\n const _size = computed(() =>\n props.small ? 'small' : props.size ?? _globalSize.value\n )\n useDeprecated(\n {\n from: 'small',\n replacement: 'size',\n version: '3.0.0',\n scope: 'el-pagination',\n ref: 'https://element-plus.org/zh-CN/component/pagination.html',\n },\n computed(() => !!props.small)\n )\n // we can find @xxx=\"xxx\" props on `vnodeProps` to check if user bind corresponding events\n const hasCurrentPageListener =\n 'onUpdate:currentPage' in vnodeProps ||\n 'onUpdate:current-page' in vnodeProps ||\n 'onCurrentChange' in vnodeProps\n const hasPageSizeListener =\n 'onUpdate:pageSize' in vnodeProps ||\n 'onUpdate:page-size' in vnodeProps ||\n 'onSizeChange' in vnodeProps\n const assertValidUsage = computed(() => {\n // Users have to set either one, otherwise count of pages cannot be determined\n if (isAbsent(props.total) && isAbsent(props.pageCount)) return false\n // <el-pagination ...otherProps :current-page=\"xxx\" /> without corresponding listener is forbidden now\n // Users have to use two way binding of `currentPage`\n // If users just want to provide a default value, `defaultCurrentPage` is here for you\n if (!isAbsent(props.currentPage) && !hasCurrentPageListener) return false\n // When you want to change sizes, things get more complex, detailed below\n // Basically the most important value we need is page count\n // either directly from props.pageCount\n // or calculated from props.total\n // we will take props.pageCount precedence over props.total\n if (props.layout.includes('sizes')) {\n if (!isAbsent(props.pageCount)) {\n // if props.pageCount is assign by user, then user have to watch pageSize change\n // and recalculate pageCount\n if (!hasPageSizeListener) return false\n } else if (!isAbsent(props.total)) {\n // Otherwise, we will see if user have props.pageSize defined\n // If so, meaning user want to have pageSize controlled himself/herself from component\n // Thus page size listener is required\n // users are account for page size change\n if (!isAbsent(props.pageSize)) {\n if (!hasPageSizeListener) {\n return false\n }\n } else {\n // (else block just for explaination)\n // else page size is controlled by el-pagination internally\n }\n }\n }\n return true\n })\n\n const innerPageSize = ref(\n isAbsent(props.defaultPageSize) ? 10 : props.defaultPageSize\n )\n const innerCurrentPage = ref(\n isAbsent(props.defaultCurrentPage) ? 1 : props.defaultCurrentPage\n )\n\n const pageSizeBridge = computed({\n get() {\n return isAbsent(props.pageSize) ? innerPageSize.value : props.pageSize\n },\n set(v: number) {\n if (isAbsent(props.pageSize)) {\n innerPageSize.value = v\n }\n if (hasPageSizeListener) {\n emit('update:page-size', v)\n emit('size-change', v)\n }\n },\n })\n\n const pageCountBridge = computed<number>(() => {\n let pageCount = 0\n if (!isAbsent(props.pageCount)) {\n pageCount = props.pageCount\n } else if (!isAbsent(props.total)) {\n pageCount = Math.max(1, Math.ceil(props.total / pageSizeBridge.value))\n }\n return pageCount\n })\n\n const currentPageBridge = computed<number>({\n get() {\n return isAbsent(props.currentPage)\n ? innerCurrentPage.value\n : props.currentPage\n },\n set(v) {\n let newCurrentPage = v\n if (v < 1) {\n newCurrentPage = 1\n } else if (v > pageCountBridge.value) {\n newCurrentPage = pageCountBridge.value\n }\n if (isAbsent(props.currentPage)) {\n innerCurrentPage.value = newCurrentPage\n }\n if (hasCurrentPageListener) {\n emit('update:current-page', newCurrentPage)\n emit('current-change', newCurrentPage)\n }\n },\n })\n\n watch(pageCountBridge, (val) => {\n if (currentPageBridge.value > val) currentPageBridge.value = val\n })\n\n watch(\n [currentPageBridge, pageSizeBridge],\n (value) => {\n emit('change', ...value)\n },\n { flush: 'post' }\n )\n\n function handleCurrentChange(val: number) {\n currentPageBridge.value = val\n }\n\n function handleSizeChange(val: number) {\n pageSizeBridge.value = val\n const newPageCount = pageCountBridge.value\n if (currentPageBridge.value > newPageCount) {\n currentPageBridge.value = newPageCount\n }\n }\n\n function prev() {\n if (props.disabled) return\n currentPageBridge.value -= 1\n emit('prev-click', currentPageBridge.value)\n }\n\n function next() {\n if (props.disabled) return\n currentPageBridge.value += 1\n emit('next-click', currentPageBridge.value)\n }\n\n function addClass(element: any, cls: string) {\n if (element) {\n if (!element.props) {\n element.props = {}\n }\n element.props.class = [element.props.class, cls].join(' ')\n }\n }\n\n provide(elPaginationKey, {\n pageCount: pageCountBridge,\n disabled: computed(() => props.disabled),\n currentPage: currentPageBridge,\n changeEvent: handleCurrentChange,\n handleSizeChange,\n })\n\n return () => {\n if (!assertValidUsage.value) {\n debugWarn(componentName, t('el.pagination.deprecationWarning'))\n return null\n }\n if (!props.layout) return null\n if (props.hideOnSinglePage && pageCountBridge.value <= 1) return null\n const rootChildren: Array<VNode | VNode[] | null> = []\n const rightWrapperChildren: Array<VNode | VNode[] | null> = []\n const rightWrapperRoot = h(\n 'div',\n { class: ns.e('rightwrapper') },\n rightWrapperChildren\n )\n const TEMPLATE_MAP: Record<\n Exclude<LayoutKey, '->'>,\n VNode | VNode[] | null\n > = {\n prev: h(Prev, {\n disabled: props.disabled,\n currentPage: currentPageBridge.value,\n prevText: props.prevText,\n prevIcon: props.prevIcon,\n onClick: prev,\n }),\n jumper: h(Jumper, {\n size: _size.value,\n }),\n pager: h(Pager, {\n currentPage: currentPageBridge.value,\n pageCount: pageCountBridge.value,\n pagerCount: props.pagerCount,\n onChange: handleCurrentChange,\n disabled: props.disabled,\n }),\n next: h(Next, {\n disabled: props.disabled,\n currentPage: currentPageBridge.value,\n pageCount: pageCountBridge.value,\n nextText: props.nextText,\n nextIcon: props.nextIcon,\n onClick: next,\n }),\n sizes: h(Sizes, {\n pageSize: pageSizeBridge.value,\n pageSizes: props.pageSizes,\n popperClass: props.popperClass,\n disabled: props.disabled,\n teleported: props.teleported,\n size: _size.value,\n }),\n slot: slots?.default?.() ?? null,\n total: h(Total, { total: isAbsent(props.total) ? 0 : props.total }),\n }\n\n const components = props.layout\n .split(',')\n .map((item: string) => item.trim()) as LayoutKey[]\n\n let haveRightWrapper = false\n\n components.forEach((c) => {\n if (c === '->') {\n haveRightWrapper = true\n return\n }\n if (!haveRightWrapper) {\n rootChildren.push(TEMPLATE_MAP[c])\n } else {\n rightWrapperChildren.push(TEMPLATE_MAP[c])\n }\n })\n\n addClass(rootChildren[0], ns.is('first'))\n addClass(rootChildren[rootChildren.length - 1], ns.is('last'))\n\n if (haveRightWrapper && rightWrapperChildren.length > 0) {\n addClass(rightWrapperChildren[0], ns.is('first'))\n addClass(\n rightWrapperChildren[rightWrapperChildren.length - 1],\n ns.is('last')\n )\n rootChildren.push(rightWrapperRoot)\n }\n return h(\n 'div',\n {\n class: [\n ns.b(),\n ns.is('background', props.background),\n ns.m(_size.value),\n ],\n },\n rootChildren\n )\n }\n },\n})\n"],"names":["buildProps","isNumber","definePropType","mutable","iconPropType","ArrowLeft","ArrowRight","useSizeProp","defineComponent","useLocale","useNamespace","getCurrentInstance","useGlobalSize","computed","useDeprecated","ref","watch","prev","next","provide","elPaginationKey","debugWarn","h","Prev","Jumper","Pager","Next","Sizes","Total"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,QAAQ,CAAC;AAClC,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,QAAQ,EAAE,MAAM;AAClB,EAAE,eAAe,EAAE,MAAM;AACzB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,EAAE,CAAC,KAAK,KAAK;AAC1B,MAAM,OAAOC,cAAQ,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AAC1G,KAAK;AACL,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,kBAAkB,EAAE,MAAM;AAC5B,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,M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,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACvF,QAAQ,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAC5C,OAAO;AACP,MAAM,OAAON,KAAC,CAAC,KAAK,EAAE;AACtB,QAAQ,KAAK,EAAE;AACf,UAAU,EAAE,CAAC,CAAC,EAAE;AAChB,UAAU,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC;AAC/C,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,SAAS;AACT,OAAO,EAAE,YAAY,CAAC,CAAC;AACvB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;;"}
1
+ {"version":3,"file":"pagination.js","sources":["../../../../../../packages/components/pagination/src/pagination.ts"],"sourcesContent":["import {\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n provide,\n ref,\n watch,\n} from 'vue'\nimport { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'\nimport {\n buildProps,\n debugWarn,\n definePropType,\n iconPropType,\n isNumber,\n mutable,\n} from '@element-plus/utils'\nimport {\n useDeprecated,\n useGlobalSize,\n useLocale,\n useNamespace,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { elPaginationKey } from './constants'\n\nimport Prev from './components/prev.vue'\nimport Next from './components/next.vue'\nimport Sizes from './components/sizes.vue'\nimport Jumper from './components/jumper.vue'\nimport Total from './components/total.vue'\nimport Pager from './components/pager.vue'\nimport type { ExtractPropTypes, VNode } from 'vue'\n/**\n * It it user's responsibility to guarantee that the value of props.total... is number\n * (same as pageSize, defaultPageSize, currentPage, defaultCurrentPage, pageCount)\n * Otherwise we can reasonable infer that the corresponding field is absent\n */\nconst isAbsent = (v: unknown): v is undefined => typeof v !== 'number'\n\ntype LayoutKey =\n | 'prev'\n | 'pager'\n | 'next'\n | 'jumper'\n | '->'\n | 'total'\n | 'sizes'\n | 'slot'\n\nexport const paginationProps = buildProps({\n /**\n * @description options of item count per page\n */\n pageSize: Number,\n /**\n * @description default initial value of page size, not setting is the same as setting 10\n */\n defaultPageSize: Number,\n /**\n * @description total item count\n */\n total: Number,\n /**\n * @description total page count. Set either `total` or `page-count` and pages will be displayed; if you need `page-sizes`, `total` is required\n */\n pageCount: Number,\n /**\n * @description number of pagers. Pagination collapses when the total page count exceeds this value\n */\n pagerCount: {\n type: Number,\n validator: (value: unknown) => {\n return (\n isNumber(value) &&\n Math.trunc(value) === value &&\n value > 4 &&\n value < 22 &&\n value % 2 === 1\n )\n },\n default: 7,\n },\n /**\n * @description current page number\n */\n currentPage: Number,\n /**\n * @description default initial value of current-page, not setting is the same as setting 1\n */\n defaultCurrentPage: Number,\n /**\n * @description layout of Pagination, elements separated with a comma\n */\n layout: {\n type: String,\n default: (\n ['prev', 'pager', 'next', 'jumper', '->', 'total'] as LayoutKey[]\n ).join(', '),\n },\n /**\n * @description item count of each page\n */\n pageSizes: {\n type: definePropType<number[]>(Array),\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\n },\n /**\n * @description custom class name for the page size Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description text for the prev button\n */\n prevText: {\n type: String,\n default: '',\n },\n /**\n * @description icon for the prev button, higher priority of `prev-text`\n */\n prevIcon: {\n type: iconPropType,\n default: () => ArrowLeft,\n },\n /**\n * @description text for the next button\n */\n nextText: {\n type: String,\n default: '',\n },\n /**\n * @description icon for the next button, higher priority of `next-text`\n */\n nextIcon: {\n type: iconPropType,\n default: () => ArrowRight,\n },\n /**\n * @description whether Pagination size is teleported to body\n */\n teleported: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to use small pagination\n */\n small: Boolean,\n /**\n * @description set page size\n */\n size: useSizeProp,\n /**\n * @description whether the buttons have a background color\n */\n background: Boolean,\n /**\n * @description whether Pagination is disabled\n */\n disabled: Boolean,\n /**\n * @description whether to hide when there's only one page\n */\n hideOnSinglePage: Boolean,\n /**\n * @description which element the size dropdown appends to.\n */\n appendSizeTo: String,\n} as const)\nexport type PaginationProps = ExtractPropTypes<typeof paginationProps>\n\nexport const paginationEmits = {\n 'update:current-page': (val: number) => isNumber(val),\n 'update:page-size': (val: number) => isNumber(val),\n 'size-change': (val: number) => isNumber(val),\n change: (currentPage: number, pageSize: number) =>\n isNumber(currentPage) && isNumber(pageSize),\n 'current-change': (val: number) => isNumber(val),\n 'prev-click': (val: number) => isNumber(val),\n 'next-click': (val: number) => isNumber(val),\n}\nexport type PaginationEmits = typeof paginationEmits\n\nconst componentName = 'ElPagination'\nexport default defineComponent({\n name: componentName,\n\n props: paginationProps,\n emits: paginationEmits,\n\n setup(props, { emit, slots }) {\n const { t } = useLocale()\n const ns = useNamespace('pagination')\n const vnodeProps = getCurrentInstance()!.vnode.props || {}\n const _globalSize = useGlobalSize()\n const _size = computed(() =>\n props.small ? 'small' : props.size ?? _globalSize.value\n )\n useDeprecated(\n {\n from: 'small',\n replacement: 'size',\n version: '3.0.0',\n scope: 'el-pagination',\n ref: 'https://element-plus.org/zh-CN/component/pagination.html',\n },\n computed(() => !!props.small)\n )\n // we can find @xxx=\"xxx\" props on `vnodeProps` to check if user bind corresponding events\n const hasCurrentPageListener =\n 'onUpdate:currentPage' in vnodeProps ||\n 'onUpdate:current-page' in vnodeProps ||\n 'onCurrentChange' in vnodeProps\n const hasPageSizeListener =\n 'onUpdate:pageSize' in vnodeProps ||\n 'onUpdate:page-size' in vnodeProps ||\n 'onSizeChange' in vnodeProps\n const assertValidUsage = computed(() => {\n // Users have to set either one, otherwise count of pages cannot be determined\n if (isAbsent(props.total) && isAbsent(props.pageCount)) return false\n // <el-pagination ...otherProps :current-page=\"xxx\" /> without corresponding listener is forbidden now\n // Users have to use two way binding of `currentPage`\n // If users just want to provide a default value, `defaultCurrentPage` is here for you\n if (!isAbsent(props.currentPage) && !hasCurrentPageListener) return false\n // When you want to change sizes, things get more complex, detailed below\n // Basically the most important value we need is page count\n // either directly from props.pageCount\n // or calculated from props.total\n // we will take props.pageCount precedence over props.total\n if (props.layout.includes('sizes')) {\n if (!isAbsent(props.pageCount)) {\n // if props.pageCount is assign by user, then user have to watch pageSize change\n // and recalculate pageCount\n if (!hasPageSizeListener) return false\n } else if (!isAbsent(props.total)) {\n // Otherwise, we will see if user have props.pageSize defined\n // If so, meaning user want to have pageSize controlled himself/herself from component\n // Thus page size listener is required\n // users are account for page size change\n if (!isAbsent(props.pageSize)) {\n if (!hasPageSizeListener) {\n return false\n }\n } else {\n // (else block just for explaination)\n // else page size is controlled by el-pagination internally\n }\n }\n }\n return true\n })\n\n const innerPageSize = ref(\n isAbsent(props.defaultPageSize) ? 10 : props.defaultPageSize\n )\n const innerCurrentPage = ref(\n isAbsent(props.defaultCurrentPage) ? 1 : props.defaultCurrentPage\n )\n\n const pageSizeBridge = computed({\n get() {\n return isAbsent(props.pageSize) ? innerPageSize.value : props.pageSize\n },\n set(v: number) {\n if (isAbsent(props.pageSize)) {\n innerPageSize.value = v\n }\n if (hasPageSizeListener) {\n emit('update:page-size', v)\n emit('size-change', v)\n }\n },\n })\n\n const pageCountBridge = computed<number>(() => {\n let pageCount = 0\n if (!isAbsent(props.pageCount)) {\n pageCount = props.pageCount\n } else if (!isAbsent(props.total)) {\n pageCount = Math.max(1, Math.ceil(props.total / pageSizeBridge.value))\n }\n return pageCount\n })\n\n const currentPageBridge = computed<number>({\n get() {\n return isAbsent(props.currentPage)\n ? innerCurrentPage.value\n : props.currentPage\n },\n set(v) {\n let newCurrentPage = v\n if (v < 1) {\n newCurrentPage = 1\n } else if (v > pageCountBridge.value) {\n newCurrentPage = pageCountBridge.value\n }\n if (isAbsent(props.currentPage)) {\n innerCurrentPage.value = newCurrentPage\n }\n if (hasCurrentPageListener) {\n emit('update:current-page', newCurrentPage)\n emit('current-change', newCurrentPage)\n }\n },\n })\n\n watch(pageCountBridge, (val) => {\n if (currentPageBridge.value > val) currentPageBridge.value = val\n })\n\n watch(\n [currentPageBridge, pageSizeBridge],\n (value) => {\n emit('change', ...value)\n },\n { flush: 'post' }\n )\n\n function handleCurrentChange(val: number) {\n currentPageBridge.value = val\n }\n\n function handleSizeChange(val: number) {\n pageSizeBridge.value = val\n const newPageCount = pageCountBridge.value\n if (currentPageBridge.value > newPageCount) {\n currentPageBridge.value = newPageCount\n }\n }\n\n function prev() {\n if (props.disabled) return\n currentPageBridge.value -= 1\n emit('prev-click', currentPageBridge.value)\n }\n\n function next() {\n if (props.disabled) return\n currentPageBridge.value += 1\n emit('next-click', currentPageBridge.value)\n }\n\n function addClass(element: any, cls: string) {\n if (element) {\n if (!element.props) {\n element.props = {}\n }\n element.props.class = [element.props.class, cls].join(' ')\n }\n }\n\n provide(elPaginationKey, {\n pageCount: pageCountBridge,\n disabled: computed(() => props.disabled),\n currentPage: currentPageBridge,\n changeEvent: handleCurrentChange,\n handleSizeChange,\n })\n\n return () => {\n if (!assertValidUsage.value) {\n debugWarn(componentName, t('el.pagination.deprecationWarning'))\n return null\n }\n if (!props.layout) return null\n if (props.hideOnSinglePage && pageCountBridge.value <= 1) return null\n const rootChildren: Array<VNode | VNode[] | null> = []\n const rightWrapperChildren: Array<VNode | VNode[] | null> = []\n const rightWrapperRoot = h(\n 'div',\n { class: ns.e('rightwrapper') },\n rightWrapperChildren\n )\n const TEMPLATE_MAP: Record<\n Exclude<LayoutKey, '->'>,\n VNode | VNode[] | null\n > = {\n prev: h(Prev, {\n disabled: props.disabled,\n currentPage: currentPageBridge.value,\n prevText: props.prevText,\n prevIcon: props.prevIcon,\n onClick: prev,\n }),\n jumper: h(Jumper, {\n size: _size.value,\n }),\n pager: h(Pager, {\n currentPage: currentPageBridge.value,\n pageCount: pageCountBridge.value,\n pagerCount: props.pagerCount,\n onChange: handleCurrentChange,\n disabled: props.disabled,\n }),\n next: h(Next, {\n disabled: props.disabled,\n currentPage: currentPageBridge.value,\n pageCount: pageCountBridge.value,\n nextText: props.nextText,\n nextIcon: props.nextIcon,\n onClick: next,\n }),\n sizes: h(Sizes, {\n pageSize: pageSizeBridge.value,\n pageSizes: props.pageSizes,\n popperClass: props.popperClass,\n disabled: props.disabled,\n teleported: props.teleported,\n size: _size.value,\n appendSizeTo: props.appendSizeTo,\n }),\n slot: slots?.default?.() ?? null,\n total: h(Total, { total: isAbsent(props.total) ? 0 : props.total }),\n }\n\n const components = props.layout\n .split(',')\n .map((item: string) => item.trim()) as LayoutKey[]\n\n let haveRightWrapper = false\n\n components.forEach((c) => {\n if (c === '->') {\n haveRightWrapper = true\n return\n }\n if (!haveRightWrapper) {\n rootChildren.push(TEMPLATE_MAP[c])\n } else {\n rightWrapperChildren.push(TEMPLATE_MAP[c])\n }\n })\n\n addClass(rootChildren[0], ns.is('first'))\n addClass(rootChildren[rootChildren.length - 1], ns.is('last'))\n\n if (haveRightWrapper && rightWrapperChildren.length > 0) {\n addClass(rightWrapperChildren[0], ns.is('first'))\n addClass(\n rightWrapperChildren[rightWrapperChildren.length - 1],\n ns.is('last')\n )\n rootChildren.push(rightWrapperRoot)\n }\n return h(\n 'div',\n {\n class: [\n ns.b(),\n ns.is('background', props.background),\n ns.m(_size.value),\n ],\n },\n rootChildren\n )\n }\n },\n})\n"],"names":["buildProps","isNumber","definePropType","mutable","iconPropType","ArrowLeft","ArrowRight","useSizeProp","defineComponent","useLocale","useNamespace","getCurrentInstance","useGlobalSize","computed","useDeprecated","ref","watch","prev","next","provide","elPaginationKey","debugWarn","h","Prev","Jumper","Pager","Next","Sizes","Total"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,QAAQ,CAAC;AAClC,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,QAAQ,EAAE,MAAM;AAClB,EAAE,eAAe,EAAE,MAAM;AACzB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AACh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C,CAAC;AACrD,SAAS;AACT,OAAO,CAAC,CAAC;AACT,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChD,MAAM,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACrE,MAAM,IAAI,gBAAgB,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE;AAC/D,QAAQ,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAC1D,QAAQ,QAAQ,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACvF,QAAQ,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAC5C,OAAO;AACP,MAAM,OAAON,KAAC,CAAC,KAAK,EAAE;AACtB,QAAQ,KAAK,EAAE;AACf,UAAU,EAAE,CAAC,CAAC,EAAE;AAChB,UAAU,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC;AAC/C,UAAU,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,SAAS;AACT,OAAO,EAAE,YAAY,CAAC,CAAC;AACvB,KAAK,CAAC;AACN,GAAG;AACH,CAAC,CAAC;;;;;;"}
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var popper$1 = require('./src/popper2.js');
6
+ var popper$1 = require('./src/popper.js');
7
7
  var arrow = require('./src/arrow2.js');
8
8
  var trigger = require('./src/trigger2.js');
9
- var content = require('./src/content2.js');
10
- var popper = require('./src/popper.js');
9
+ var content = require('./src/content.js');
10
+ var popper = require('./src/popper2.js');
11
11
  var trigger$1 = require('./src/trigger.js');
12
- var content$1 = require('./src/content.js');
12
+ var content$1 = require('./src/content2.js');
13
13
  var arrow$1 = require('./src/arrow.js');
14
14
  var constants = require('./src/constants.js');
15
15
  var install = require('../../utils/vue/install.js');