element-pe 2.2.100 → 2.2.102

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 (516) hide show
  1. package/dist/index.full.js +81 -40
  2. package/dist/index.full.min.js +13 -13
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +13 -13
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +81 -40
  7. package/es/components/alert/index.mjs +2 -2
  8. package/es/components/alert/src/alert.mjs +103 -38
  9. package/es/components/alert/src/alert.mjs.map +1 -1
  10. package/es/components/alert/src/alert2.mjs +38 -103
  11. package/es/components/alert/src/alert2.mjs.map +1 -1
  12. package/es/components/avatar/index.mjs +2 -2
  13. package/es/components/avatar/src/avatar.mjs +76 -35
  14. package/es/components/avatar/src/avatar.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar2.mjs +35 -76
  16. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  17. package/es/components/backtop/index.mjs +2 -2
  18. package/es/components/backtop/src/backtop.mjs +61 -23
  19. package/es/components/backtop/src/backtop.mjs.map +1 -1
  20. package/es/components/backtop/src/backtop2.mjs +23 -61
  21. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  22. package/es/components/breadcrumb/index.mjs +2 -2
  23. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
  24. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
  26. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  27. package/es/components/calendar/index.mjs +2 -2
  28. package/es/components/calendar/src/calendar.mjs +131 -18
  29. package/es/components/calendar/src/calendar.mjs.map +1 -1
  30. package/es/components/calendar/src/calendar2.mjs +18 -131
  31. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  32. package/es/components/calendar/src/date-table.mjs +87 -33
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +33 -87
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/card/index.mjs +2 -2
  38. package/es/components/card/src/card.mjs +21 -43
  39. package/es/components/card/src/card.mjs.map +1 -1
  40. package/es/components/card/src/card2.mjs +43 -21
  41. package/es/components/card/src/card2.mjs.map +1 -1
  42. package/es/components/cascader-panel/src/index.mjs +1 -1
  43. package/es/components/cascader-panel/src/menu.mjs +1 -1
  44. package/es/components/cascader-panel/src/node.mjs +116 -209
  45. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  46. package/es/components/cascader-panel/src/node2.mjs +209 -116
  47. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  48. package/es/components/cascader-panel/src/store.mjs +1 -1
  49. package/es/components/check-tag/index.mjs +2 -2
  50. package/es/components/check-tag/src/check-tag.mjs +31 -12
  51. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  52. package/es/components/check-tag/src/check-tag2.mjs +12 -31
  53. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  54. package/es/components/col/index.mjs +2 -2
  55. package/es/components/col/src/col.mjs +66 -43
  56. package/es/components/col/src/col.mjs.map +1 -1
  57. package/es/components/col/src/col2.mjs +43 -66
  58. package/es/components/col/src/col2.mjs.map +1 -1
  59. package/es/components/collapse/index.mjs +2 -2
  60. package/es/components/collapse/src/collapse-item.mjs +14 -94
  61. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  62. package/es/components/collapse/src/collapse-item2.mjs +94 -14
  63. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  64. package/es/components/collection/index.mjs +1 -1
  65. package/es/components/collection/src/collection.mjs +10 -66
  66. package/es/components/collection/src/collection.mjs.map +1 -1
  67. package/es/components/collection/src/collection2.mjs +66 -10
  68. package/es/components/collection/src/collection2.mjs.map +1 -1
  69. package/es/components/countdown/index.mjs +2 -2
  70. package/es/components/countdown/src/countdown.mjs +23 -76
  71. package/es/components/countdown/src/countdown.mjs.map +1 -1
  72. package/es/components/countdown/src/countdown2.mjs +76 -23
  73. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  74. package/es/components/dialog/src/dialog-content.mjs +30 -96
  75. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  76. package/es/components/dialog/src/dialog-content2.mjs +96 -30
  77. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  78. package/es/components/dialog/src/dialog.mjs +1 -1
  79. package/es/components/dialog/src/dialog2.mjs +1 -1
  80. package/es/components/divider/index.mjs +2 -2
  81. package/es/components/divider/src/divider.mjs +17 -35
  82. package/es/components/divider/src/divider.mjs.map +1 -1
  83. package/es/components/divider/src/divider2.mjs +35 -17
  84. package/es/components/divider/src/divider2.mjs.map +1 -1
  85. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  86. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  87. package/es/components/dropdown/src/dropdown.mjs +1 -1
  88. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  89. package/es/components/form/index.mjs +4 -4
  90. package/es/components/form/src/form-item.mjs +328 -46
  91. package/es/components/form/src/form-item.mjs.map +1 -1
  92. package/es/components/form/src/form-item2.mjs +46 -328
  93. package/es/components/form/src/form-item2.mjs.map +1 -1
  94. package/es/components/form/src/form.mjs +150 -58
  95. package/es/components/form/src/form.mjs.map +1 -1
  96. package/es/components/form/src/form2.mjs +58 -150
  97. package/es/components/form/src/form2.mjs.map +1 -1
  98. package/es/components/icon/index.mjs +2 -2
  99. package/es/components/icon/src/icon.mjs +36 -8
  100. package/es/components/icon/src/icon.mjs.map +1 -1
  101. package/es/components/icon/src/icon2.mjs +8 -36
  102. package/es/components/icon/src/icon2.mjs.map +1 -1
  103. package/es/components/image/index.mjs +2 -2
  104. package/es/components/image/src/image.mjs +64 -229
  105. package/es/components/image/src/image.mjs.map +1 -1
  106. package/es/components/image/src/image2.mjs +229 -64
  107. package/es/components/image/src/image2.mjs.map +1 -1
  108. package/es/components/image-viewer/index.mjs +2 -2
  109. package/es/components/image-viewer/src/image-viewer.mjs +406 -41
  110. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  111. package/es/components/image-viewer/src/image-viewer2.mjs +41 -406
  112. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  113. package/es/components/index.mjs +39 -39
  114. package/es/components/menu/index.mjs +4 -4
  115. package/es/components/menu/src/menu-item-group.mjs +4 -35
  116. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  117. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  118. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  119. package/es/components/menu/src/menu-item.mjs +97 -14
  120. package/es/components/menu/src/menu-item.mjs.map +1 -1
  121. package/es/components/menu/src/menu-item2.mjs +14 -97
  122. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  123. package/es/components/pagination/src/components/next.mjs +38 -19
  124. package/es/components/pagination/src/components/next.mjs.map +1 -1
  125. package/es/components/pagination/src/components/next2.mjs +19 -38
  126. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  127. package/es/components/pagination/src/components/sizes.mjs +23 -71
  128. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  129. package/es/components/pagination/src/components/sizes2.mjs +71 -23
  130. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  131. package/es/components/pagination/src/components/total.mjs +28 -7
  132. package/es/components/pagination/src/components/total.mjs.map +1 -1
  133. package/es/components/pagination/src/components/total2.mjs +7 -28
  134. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  135. package/es/components/pagination/src/pagination.mjs +3 -3
  136. package/es/components/popconfirm/index.mjs +2 -2
  137. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  138. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  139. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  140. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  141. package/es/components/popover/index.mjs +2 -2
  142. package/es/components/popover/src/popover.mjs +111 -66
  143. package/es/components/popover/src/popover.mjs.map +1 -1
  144. package/es/components/popover/src/popover2.mjs +66 -111
  145. package/es/components/popover/src/popover2.mjs.map +1 -1
  146. package/es/components/popper/index.mjs +4 -4
  147. package/es/components/popper/src/arrow.mjs +8 -39
  148. package/es/components/popper/src/arrow.mjs.map +1 -1
  149. package/es/components/popper/src/arrow2.mjs +39 -8
  150. package/es/components/popper/src/arrow2.mjs.map +1 -1
  151. package/es/components/popper/src/trigger.mjs +31 -121
  152. package/es/components/popper/src/trigger.mjs.map +1 -1
  153. package/es/components/popper/src/trigger2.mjs +121 -31
  154. package/es/components/popper/src/trigger2.mjs.map +1 -1
  155. package/es/components/progress/index.mjs +2 -2
  156. package/es/components/progress/src/progress.mjs +59 -205
  157. package/es/components/progress/src/progress.mjs.map +1 -1
  158. package/es/components/progress/src/progress2.mjs +205 -59
  159. package/es/components/progress/src/progress2.mjs.map +1 -1
  160. package/es/components/radio/index.mjs +2 -2
  161. package/es/components/radio/src/radio-group.mjs +70 -42
  162. package/es/components/radio/src/radio-group.mjs.map +1 -1
  163. package/es/components/radio/src/radio-group2.mjs +42 -70
  164. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  165. package/es/components/rate/index.mjs +2 -2
  166. package/es/components/rate/src/rate.mjs +263 -92
  167. package/es/components/rate/src/rate.mjs.map +1 -1
  168. package/es/components/rate/src/rate2.mjs +92 -263
  169. package/es/components/rate/src/rate2.mjs.map +1 -1
  170. package/es/components/resizable-columns/index.mjs +4 -4
  171. package/es/components/resizable-columns/src/resizable-column.mjs +145 -8
  172. package/es/components/resizable-columns/src/resizable-column.mjs.map +1 -1
  173. package/es/components/resizable-columns/src/resizable-column2.mjs +8 -145
  174. package/es/components/resizable-columns/src/resizable-column2.mjs.map +1 -1
  175. package/es/components/resizable-columns/src/resizable-columns.mjs +264 -21
  176. package/es/components/resizable-columns/src/resizable-columns.mjs.map +1 -1
  177. package/es/components/resizable-columns/src/resizable-columns2.mjs +21 -264
  178. package/es/components/resizable-columns/src/resizable-columns2.mjs.map +1 -1
  179. package/es/components/roving-focus-group/index.mjs +3 -3
  180. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  181. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  182. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  183. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  184. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  185. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  186. package/es/components/scrollbar/index.mjs +3 -3
  187. package/es/components/scrollbar/src/bar.mjs +17 -42
  188. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  189. package/es/components/scrollbar/src/bar2.mjs +42 -17
  190. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  191. package/es/components/scrollbar/src/scrollbar.mjs +53 -180
  192. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  193. package/es/components/scrollbar/src/scrollbar2.mjs +180 -53
  194. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  195. package/es/components/scrollbar/src/thumb.mjs +11 -134
  196. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  197. package/es/components/scrollbar/src/thumb2.mjs +134 -11
  198. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  199. package/es/components/skeleton/index.mjs +2 -2
  200. package/es/components/skeleton/src/skeleton.mjs +22 -49
  201. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  202. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  203. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  204. package/es/components/statistic/index.mjs +2 -2
  205. package/es/components/statistic/src/statistic.mjs +70 -25
  206. package/es/components/statistic/src/statistic.mjs.map +1 -1
  207. package/es/components/statistic/src/statistic2.mjs +25 -70
  208. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  209. package/es/components/steps/index.mjs +2 -2
  210. package/es/components/steps/src/item.mjs +193 -19
  211. package/es/components/steps/src/item.mjs.map +1 -1
  212. package/es/components/steps/src/item2.mjs +19 -193
  213. package/es/components/steps/src/item2.mjs.map +1 -1
  214. package/es/components/switch/index.mjs +2 -2
  215. package/es/components/switch/src/switch.mjs +268 -103
  216. package/es/components/switch/src/switch.mjs.map +1 -1
  217. package/es/components/switch/src/switch2.mjs +103 -268
  218. package/es/components/switch/src/switch2.mjs.map +1 -1
  219. package/es/components/table/src/store/watcher.mjs +51 -12
  220. package/es/components/table/src/store/watcher.mjs.map +1 -1
  221. package/es/components/table/src/table-body/defaults.d.ts +2 -1
  222. package/es/components/table/src/table-body/defaults.mjs +2 -1
  223. package/es/components/table/src/table-body/defaults.mjs.map +1 -1
  224. package/es/components/table/src/table-body/render-helper.mjs +6 -4
  225. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  226. package/es/components/text/index.mjs +2 -2
  227. package/es/components/text/src/text.mjs +38 -24
  228. package/es/components/text/src/text.mjs.map +1 -1
  229. package/es/components/text/src/text2.mjs +24 -38
  230. package/es/components/text/src/text2.mjs.map +1 -1
  231. package/es/components/time-select/index.mjs +1 -1
  232. package/es/components/time-select/src/time-select.mjs +134 -55
  233. package/es/components/time-select/src/time-select.mjs.map +1 -1
  234. package/es/components/time-select/src/time-select2.mjs +55 -134
  235. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  236. package/es/components/tooltip/src/tooltip.mjs +1 -1
  237. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  238. package/es/components/tooltip/src/trigger.mjs +1 -1
  239. package/es/components/tooltip/src/trigger2.mjs +1 -1
  240. package/es/components/transfer/index.mjs +2 -2
  241. package/es/components/transfer/src/composables/use-checked-change.mjs +1 -1
  242. package/es/components/transfer/src/transfer-panel.mjs +1 -1
  243. package/es/components/transfer/src/transfer.mjs +69 -162
  244. package/es/components/transfer/src/transfer.mjs.map +1 -1
  245. package/es/components/transfer/src/transfer2.mjs +162 -69
  246. package/es/components/transfer/src/transfer2.mjs.map +1 -1
  247. package/es/components/upload/index.mjs +3 -3
  248. package/es/components/upload/src/upload-content.mjs +1 -1
  249. package/es/components/upload/src/upload-content2.mjs +2 -2
  250. package/es/components/upload/src/upload-dragger.mjs +72 -11
  251. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  252. package/es/components/upload/src/upload-dragger2.mjs +11 -72
  253. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  254. package/es/components/upload/src/upload-list.mjs +1 -1
  255. package/es/components/upload/src/upload.mjs +116 -102
  256. package/es/components/upload/src/upload.mjs.map +1 -1
  257. package/es/components/upload/src/upload2.mjs +102 -116
  258. package/es/components/upload/src/upload2.mjs.map +1 -1
  259. package/es/components/upload/src/use-handlers.mjs +1 -1
  260. package/es/index.mjs +39 -39
  261. package/lib/components/alert/index.js +2 -2
  262. package/lib/components/alert/src/alert.js +102 -39
  263. package/lib/components/alert/src/alert.js.map +1 -1
  264. package/lib/components/alert/src/alert2.js +39 -102
  265. package/lib/components/alert/src/alert2.js.map +1 -1
  266. package/lib/components/avatar/index.js +2 -2
  267. package/lib/components/avatar/src/avatar.js +75 -35
  268. package/lib/components/avatar/src/avatar.js.map +1 -1
  269. package/lib/components/avatar/src/avatar2.js +35 -75
  270. package/lib/components/avatar/src/avatar2.js.map +1 -1
  271. package/lib/components/backtop/index.js +2 -2
  272. package/lib/components/backtop/src/backtop.js +61 -24
  273. package/lib/components/backtop/src/backtop.js.map +1 -1
  274. package/lib/components/backtop/src/backtop2.js +24 -61
  275. package/lib/components/backtop/src/backtop2.js.map +1 -1
  276. package/lib/components/breadcrumb/index.js +2 -2
  277. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
  278. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  279. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
  280. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  281. package/lib/components/calendar/index.js +2 -2
  282. package/lib/components/calendar/src/calendar.js +131 -19
  283. package/lib/components/calendar/src/calendar.js.map +1 -1
  284. package/lib/components/calendar/src/calendar2.js +19 -131
  285. package/lib/components/calendar/src/calendar2.js.map +1 -1
  286. package/lib/components/calendar/src/date-table.js +87 -37
  287. package/lib/components/calendar/src/date-table.js.map +1 -1
  288. package/lib/components/calendar/src/date-table2.js +37 -87
  289. package/lib/components/calendar/src/date-table2.js.map +1 -1
  290. package/lib/components/calendar/src/use-date-table.js +1 -1
  291. package/lib/components/card/index.js +2 -2
  292. package/lib/components/card/src/card.js +21 -43
  293. package/lib/components/card/src/card.js.map +1 -1
  294. package/lib/components/card/src/card2.js +43 -21
  295. package/lib/components/card/src/card2.js.map +1 -1
  296. package/lib/components/cascader-panel/src/index.js +1 -1
  297. package/lib/components/cascader-panel/src/menu.js +1 -1
  298. package/lib/components/cascader-panel/src/node.js +116 -209
  299. package/lib/components/cascader-panel/src/node.js.map +1 -1
  300. package/lib/components/cascader-panel/src/node2.js +209 -116
  301. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  302. package/lib/components/cascader-panel/src/store.js +1 -1
  303. package/lib/components/check-tag/index.js +2 -2
  304. package/lib/components/check-tag/src/check-tag.js +31 -13
  305. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  306. package/lib/components/check-tag/src/check-tag2.js +13 -31
  307. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  308. package/lib/components/col/index.js +2 -2
  309. package/lib/components/col/src/col.js +66 -43
  310. package/lib/components/col/src/col.js.map +1 -1
  311. package/lib/components/col/src/col2.js +43 -66
  312. package/lib/components/col/src/col2.js.map +1 -1
  313. package/lib/components/collapse/index.js +2 -2
  314. package/lib/components/collapse/src/collapse-item.js +14 -94
  315. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  316. package/lib/components/collapse/src/collapse-item2.js +94 -14
  317. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  318. package/lib/components/collection/index.js +1 -1
  319. package/lib/components/collection/src/collection.js +9 -66
  320. package/lib/components/collection/src/collection.js.map +1 -1
  321. package/lib/components/collection/src/collection2.js +66 -9
  322. package/lib/components/collection/src/collection2.js.map +1 -1
  323. package/lib/components/countdown/index.js +2 -2
  324. package/lib/components/countdown/src/countdown.js +24 -76
  325. package/lib/components/countdown/src/countdown.js.map +1 -1
  326. package/lib/components/countdown/src/countdown2.js +76 -24
  327. package/lib/components/countdown/src/countdown2.js.map +1 -1
  328. package/lib/components/dialog/src/dialog-content.js +30 -95
  329. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  330. package/lib/components/dialog/src/dialog-content2.js +95 -30
  331. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  332. package/lib/components/dialog/src/dialog.js +1 -1
  333. package/lib/components/dialog/src/dialog2.js +1 -1
  334. package/lib/components/divider/index.js +2 -2
  335. package/lib/components/divider/src/divider.js +17 -35
  336. package/lib/components/divider/src/divider.js.map +1 -1
  337. package/lib/components/divider/src/divider2.js +35 -17
  338. package/lib/components/divider/src/divider2.js.map +1 -1
  339. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  340. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  341. package/lib/components/dropdown/src/dropdown.js +1 -1
  342. package/lib/components/dropdown/src/dropdown2.js +1 -1
  343. package/lib/components/form/index.js +4 -4
  344. package/lib/components/form/src/form-item.js +332 -47
  345. package/lib/components/form/src/form-item.js.map +1 -1
  346. package/lib/components/form/src/form-item2.js +47 -332
  347. package/lib/components/form/src/form-item2.js.map +1 -1
  348. package/lib/components/form/src/form.js +149 -58
  349. package/lib/components/form/src/form.js.map +1 -1
  350. package/lib/components/form/src/form2.js +58 -149
  351. package/lib/components/form/src/form2.js.map +1 -1
  352. package/lib/components/icon/index.js +2 -2
  353. package/lib/components/icon/src/icon.js +36 -8
  354. package/lib/components/icon/src/icon.js.map +1 -1
  355. package/lib/components/icon/src/icon2.js +8 -36
  356. package/lib/components/icon/src/icon2.js.map +1 -1
  357. package/lib/components/image/index.js +2 -2
  358. package/lib/components/image/src/image.js +64 -228
  359. package/lib/components/image/src/image.js.map +1 -1
  360. package/lib/components/image/src/image2.js +228 -64
  361. package/lib/components/image/src/image2.js.map +1 -1
  362. package/lib/components/image-viewer/index.js +2 -2
  363. package/lib/components/image-viewer/src/image-viewer.js +406 -42
  364. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  365. package/lib/components/image-viewer/src/image-viewer2.js +42 -406
  366. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  367. package/lib/components/index.js +39 -39
  368. package/lib/components/menu/index.js +4 -4
  369. package/lib/components/menu/src/menu-item-group.js +4 -35
  370. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  371. package/lib/components/menu/src/menu-item-group2.js +35 -4
  372. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  373. package/lib/components/menu/src/menu-item.js +97 -15
  374. package/lib/components/menu/src/menu-item.js.map +1 -1
  375. package/lib/components/menu/src/menu-item2.js +15 -97
  376. package/lib/components/menu/src/menu-item2.js.map +1 -1
  377. package/lib/components/pagination/src/components/next.js +38 -19
  378. package/lib/components/pagination/src/components/next.js.map +1 -1
  379. package/lib/components/pagination/src/components/next2.js +19 -38
  380. package/lib/components/pagination/src/components/next2.js.map +1 -1
  381. package/lib/components/pagination/src/components/sizes.js +23 -71
  382. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  383. package/lib/components/pagination/src/components/sizes2.js +71 -23
  384. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  385. package/lib/components/pagination/src/components/total.js +28 -7
  386. package/lib/components/pagination/src/components/total.js.map +1 -1
  387. package/lib/components/pagination/src/components/total2.js +7 -28
  388. package/lib/components/pagination/src/components/total2.js.map +1 -1
  389. package/lib/components/pagination/src/pagination.js +3 -3
  390. package/lib/components/popconfirm/index.js +2 -2
  391. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  392. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  393. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  394. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  395. package/lib/components/popover/index.js +2 -2
  396. package/lib/components/popover/src/popover.js +111 -67
  397. package/lib/components/popover/src/popover.js.map +1 -1
  398. package/lib/components/popover/src/popover2.js +67 -111
  399. package/lib/components/popover/src/popover2.js.map +1 -1
  400. package/lib/components/popper/index.js +4 -4
  401. package/lib/components/popper/src/arrow.js +9 -39
  402. package/lib/components/popper/src/arrow.js.map +1 -1
  403. package/lib/components/popper/src/arrow2.js +39 -9
  404. package/lib/components/popper/src/arrow2.js.map +1 -1
  405. package/lib/components/popper/src/trigger.js +32 -121
  406. package/lib/components/popper/src/trigger.js.map +1 -1
  407. package/lib/components/popper/src/trigger2.js +121 -32
  408. package/lib/components/popper/src/trigger2.js.map +1 -1
  409. package/lib/components/progress/index.js +2 -2
  410. package/lib/components/progress/src/progress.js +59 -205
  411. package/lib/components/progress/src/progress.js.map +1 -1
  412. package/lib/components/progress/src/progress2.js +205 -59
  413. package/lib/components/progress/src/progress2.js.map +1 -1
  414. package/lib/components/radio/index.js +2 -2
  415. package/lib/components/radio/src/radio-group.js +70 -43
  416. package/lib/components/radio/src/radio-group.js.map +1 -1
  417. package/lib/components/radio/src/radio-group2.js +43 -70
  418. package/lib/components/radio/src/radio-group2.js.map +1 -1
  419. package/lib/components/rate/index.js +2 -2
  420. package/lib/components/rate/src/rate.js +262 -92
  421. package/lib/components/rate/src/rate.js.map +1 -1
  422. package/lib/components/rate/src/rate2.js +92 -262
  423. package/lib/components/rate/src/rate2.js.map +1 -1
  424. package/lib/components/resizable-columns/index.js +4 -4
  425. package/lib/components/resizable-columns/src/resizable-column.js +145 -8
  426. package/lib/components/resizable-columns/src/resizable-column.js.map +1 -1
  427. package/lib/components/resizable-columns/src/resizable-column2.js +8 -145
  428. package/lib/components/resizable-columns/src/resizable-column2.js.map +1 -1
  429. package/lib/components/resizable-columns/src/resizable-columns.js +264 -21
  430. package/lib/components/resizable-columns/src/resizable-columns.js.map +1 -1
  431. package/lib/components/resizable-columns/src/resizable-columns2.js +21 -264
  432. package/lib/components/resizable-columns/src/resizable-columns2.js.map +1 -1
  433. package/lib/components/roving-focus-group/index.js +2 -2
  434. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  435. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  436. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  437. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  438. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  439. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  440. package/lib/components/scrollbar/index.js +3 -3
  441. package/lib/components/scrollbar/src/bar.js +17 -42
  442. package/lib/components/scrollbar/src/bar.js.map +1 -1
  443. package/lib/components/scrollbar/src/bar2.js +42 -17
  444. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  445. package/lib/components/scrollbar/src/scrollbar.js +54 -180
  446. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  447. package/lib/components/scrollbar/src/scrollbar2.js +180 -54
  448. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  449. package/lib/components/scrollbar/src/thumb.js +11 -134
  450. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  451. package/lib/components/scrollbar/src/thumb2.js +134 -11
  452. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  453. package/lib/components/skeleton/index.js +2 -2
  454. package/lib/components/skeleton/src/skeleton.js +22 -49
  455. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  456. package/lib/components/skeleton/src/skeleton2.js +49 -22
  457. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  458. package/lib/components/statistic/index.js +2 -2
  459. package/lib/components/statistic/src/statistic.js +70 -25
  460. package/lib/components/statistic/src/statistic.js.map +1 -1
  461. package/lib/components/statistic/src/statistic2.js +25 -70
  462. package/lib/components/statistic/src/statistic2.js.map +1 -1
  463. package/lib/components/steps/index.js +2 -2
  464. package/lib/components/steps/src/item.js +193 -19
  465. package/lib/components/steps/src/item.js.map +1 -1
  466. package/lib/components/steps/src/item2.js +19 -193
  467. package/lib/components/steps/src/item2.js.map +1 -1
  468. package/lib/components/switch/index.js +2 -2
  469. package/lib/components/switch/src/switch.js +267 -103
  470. package/lib/components/switch/src/switch.js.map +1 -1
  471. package/lib/components/switch/src/switch2.js +103 -267
  472. package/lib/components/switch/src/switch2.js.map +1 -1
  473. package/lib/components/table/src/store/watcher.js +51 -12
  474. package/lib/components/table/src/store/watcher.js.map +1 -1
  475. package/lib/components/table/src/table-body/defaults.d.ts +2 -1
  476. package/lib/components/table/src/table-body/defaults.js +2 -0
  477. package/lib/components/table/src/table-body/defaults.js.map +1 -1
  478. package/lib/components/table/src/table-body/render-helper.js +6 -4
  479. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  480. package/lib/components/text/index.js +2 -2
  481. package/lib/components/text/src/text.js +38 -24
  482. package/lib/components/text/src/text.js.map +1 -1
  483. package/lib/components/text/src/text2.js +24 -38
  484. package/lib/components/text/src/text2.js.map +1 -1
  485. package/lib/components/time-select/index.js +1 -1
  486. package/lib/components/time-select/src/time-select.js +139 -55
  487. package/lib/components/time-select/src/time-select.js.map +1 -1
  488. package/lib/components/time-select/src/time-select2.js +55 -139
  489. package/lib/components/time-select/src/time-select2.js.map +1 -1
  490. package/lib/components/tooltip/src/tooltip.js +1 -1
  491. package/lib/components/tooltip/src/tooltip2.js +1 -1
  492. package/lib/components/tooltip/src/trigger.js +1 -1
  493. package/lib/components/tooltip/src/trigger2.js +1 -1
  494. package/lib/components/transfer/index.js +2 -2
  495. package/lib/components/transfer/src/composables/use-checked-change.js +1 -1
  496. package/lib/components/transfer/src/transfer-panel.js +1 -1
  497. package/lib/components/transfer/src/transfer.js +73 -162
  498. package/lib/components/transfer/src/transfer.js.map +1 -1
  499. package/lib/components/transfer/src/transfer2.js +162 -73
  500. package/lib/components/transfer/src/transfer2.js.map +1 -1
  501. package/lib/components/upload/index.js +3 -3
  502. package/lib/components/upload/src/upload-content.js +1 -1
  503. package/lib/components/upload/src/upload-content2.js +2 -2
  504. package/lib/components/upload/src/upload-dragger.js +72 -12
  505. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  506. package/lib/components/upload/src/upload-dragger2.js +12 -72
  507. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  508. package/lib/components/upload/src/upload-list.js +1 -1
  509. package/lib/components/upload/src/upload.js +116 -105
  510. package/lib/components/upload/src/upload.js.map +1 -1
  511. package/lib/components/upload/src/upload2.js +105 -116
  512. package/lib/components/upload/src/upload2.js.map +1 -1
  513. package/lib/components/upload/src/use-handlers.js +1 -1
  514. package/lib/index.js +39 -39
  515. package/package.json +1 -1
  516. package/web-types.json +1 -1
@@ -1,22 +1,47 @@
1
- import '../../../utils/index.mjs';
2
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, ref, openBlock, createElementBlock, Fragment, createVNode } from 'vue';
2
+ import { GAP } from './util.mjs';
3
+ import Thumb from './thumb2.mjs';
4
+ import { barProps } from './bar.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
6
 
4
- const barProps = buildProps({
5
- always: {
6
- type: Boolean,
7
- default: true
8
- },
9
- width: String,
10
- height: String,
11
- ratioX: {
12
- type: Number,
13
- default: 1
14
- },
15
- ratioY: {
16
- type: Number,
17
- default: 1
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "bar",
9
+ props: barProps,
10
+ setup(__props, { expose }) {
11
+ const props = __props;
12
+ const moveX = ref(0);
13
+ const moveY = ref(0);
14
+ const handleScroll = (wrap) => {
15
+ if (wrap) {
16
+ const offsetHeight = wrap.offsetHeight - GAP;
17
+ const offsetWidth = wrap.offsetWidth - GAP;
18
+ moveY.value = wrap.scrollTop * 100 / offsetHeight * props.ratioY;
19
+ moveX.value = wrap.scrollLeft * 100 / offsetWidth * props.ratioX;
20
+ }
21
+ };
22
+ expose({
23
+ handleScroll
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock(Fragment, null, [
27
+ createVNode(Thumb, {
28
+ move: moveX.value,
29
+ ratio: _ctx.ratioX,
30
+ size: _ctx.width,
31
+ always: _ctx.always
32
+ }, null, 8, ["move", "ratio", "size", "always"]),
33
+ createVNode(Thumb, {
34
+ move: moveY.value,
35
+ ratio: _ctx.ratioY,
36
+ size: _ctx.height,
37
+ vertical: "",
38
+ always: _ctx.always
39
+ }, null, 8, ["move", "ratio", "size", "always"])
40
+ ], 64);
41
+ };
18
42
  }
19
43
  });
44
+ var Bar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\bar.vue"]]);
20
45
 
21
- export { barProps };
46
+ export { Bar as default };
22
47
  //# sourceMappingURL=bar2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"bar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Bar from './bar.vue'\n\nexport const barProps = buildProps({\n always: {\n type: Boolean,\n default: true,\n },\n width: String,\n height: String,\n ratioX: {\n type: Number,\n default: 1,\n },\n ratioY: {\n type: Number,\n default: 1,\n },\n} as const)\nexport type BarProps = ExtractPropTypes<typeof barProps>\n\nexport type BarInstance = InstanceType<typeof Bar>\n"],"names":[],"mappings":";;;AACY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"bar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/bar.vue"],"sourcesContent":["<template>\n <thumb :move=\"moveX\" :ratio=\"ratioX\" :size=\"width\" :always=\"always\" />\n <thumb\n :move=\"moveY\"\n :ratio=\"ratioY\"\n :size=\"height\"\n vertical\n :always=\"always\"\n />\n</template>\n<script lang=\"ts\" setup>\nimport { ref } from 'vue'\nimport { GAP } from './util'\nimport Thumb from './thumb.vue'\nimport { barProps } from './bar'\n\nconst props = defineProps(barProps)\n\nconst moveX = ref(0)\nconst moveY = ref(0)\n\nconst handleScroll = (wrap: HTMLDivElement) => {\n if (wrap) {\n const offsetHeight = wrap.offsetHeight - GAP\n const offsetWidth = wrap.offsetWidth - GAP\n\n moveY.value = ((wrap.scrollTop * 100) / offsetHeight) * props.ratioY\n moveX.value = ((wrap.scrollLeft * 100) / offsetWidth) * props.ratioX\n }\n}\n\ndefineExpose({\n handleScroll,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AACnB,IAAM,MAAA,KAAA,GAAQ,IAAI,CAAC,CAAA,CAAA;AAEnB,IAAM,MAAA,YAAA,GAAe,CAAC,IAAyB,KAAA;AAC7C,MAAA,IAAI,IAAM,EAAA;AACR,QAAM,MAAA,YAAA,GAAe,KAAK,YAAe,GAAA,GAAA,CAAA;AACzC,QAAM,MAAA,WAAA,GAAc,KAAK,WAAc,GAAA,GAAA,CAAA;AAEvC,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,SAAY,GAAA,GAAA,GAAO,eAAgB,KAAM,CAAA,MAAA,CAAA;AAC9D,QAAA,KAAA,CAAM,KAAU,GAAA,IAAA,CAAK,UAAa,GAAA,GAAA,GAAO,cAAe,KAAM,CAAA,MAAA,CAAA;AAAA,OAChE;AAAA,KACF,CAAA;AAEA,IAAa,MAAA,CAAA;AAAA,MACX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,187 +1,60 @@
1
- import { defineComponent, ref, computed, nextTick, provide, reactive, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode } from 'vue';
2
- import '../../config-provider/index.mjs';
3
- import { useResizeObserver, useEventListener } from '@vueuse/core';
4
1
  import '../../../utils/index.mjs';
5
- import '../../../hooks/index.mjs';
6
- import { GAP } from './util.mjs';
7
- import Bar from './bar.mjs';
8
- import { scrollbarContextKey } from './constants.mjs';
9
- import { scrollbarProps, scrollbarEmits } from './scrollbar2.mjs';
10
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
- import { addUnit } from '../../../utils/dom/style.mjs';
13
- import { isObject } from '@vue/shared';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
14
3
  import { isNumber } from '../../../utils/types.mjs';
15
- import { debugWarn } from '../../../utils/error.mjs';
16
- import { watch } from '../../config-provider/src/for-editor.mjs';
17
4
 
18
- const COMPONENT_NAME = "ElScrollbar";
19
- const __default__ = defineComponent({
20
- name: COMPONENT_NAME
21
- });
22
- const _sfc_main = /* @__PURE__ */ defineComponent({
23
- ...__default__,
24
- props: scrollbarProps,
25
- emits: scrollbarEmits,
26
- setup(__props, { expose, emit }) {
27
- const props = __props;
28
- const ns = useNamespace("scrollbar");
29
- let stopResizeObserver = void 0;
30
- let stopResizeListener = void 0;
31
- const scrollbarRef = ref();
32
- const wrapRef = ref();
33
- const resizeRef = ref();
34
- const sizeWidth = ref("0");
35
- const sizeHeight = ref("0");
36
- const barRef = ref();
37
- const ratioY = ref(1);
38
- const ratioX = ref(1);
39
- const wrapStyle = computed(() => {
40
- const style = {};
41
- if (props.height)
42
- style.height = addUnit(props.height);
43
- if (props.maxHeight)
44
- style.maxHeight = addUnit(props.maxHeight);
45
- return [props.wrapStyle, style];
46
- });
47
- const wrapKls = computed(() => {
48
- return [
49
- props.wrapClass,
50
- ns.e("wrap"),
51
- { [ns.em("wrap", "hidden-default")]: !props.native }
52
- ];
53
- });
54
- const resizeKls = computed(() => {
55
- return [ns.e("view"), props.viewClass];
56
- });
57
- const handleScroll = () => {
58
- var _a;
59
- if (wrapRef.value) {
60
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
61
- emit("scroll", {
62
- scrollTop: wrapRef.value.scrollTop,
63
- scrollLeft: wrapRef.value.scrollLeft
64
- });
65
- }
66
- };
67
- function scrollTo(arg1, arg2) {
68
- if (isObject(arg1)) {
69
- wrapRef.value.scrollTo(arg1);
70
- } else if (isNumber(arg1) && isNumber(arg2)) {
71
- wrapRef.value.scrollTo(arg1, arg2);
72
- }
73
- }
74
- const setScrollTop = (value) => {
75
- if (!isNumber(value)) {
76
- debugWarn(COMPONENT_NAME, "value must be a number");
77
- return;
78
- }
79
- wrapRef.value.scrollTop = value;
80
- };
81
- const setScrollLeft = (value) => {
82
- if (!isNumber(value)) {
83
- debugWarn(COMPONENT_NAME, "value must be a number");
84
- return;
85
- }
86
- wrapRef.value.scrollLeft = value;
87
- };
88
- const update = () => {
89
- if (!wrapRef.value)
90
- return;
91
- const offsetHeight = wrapRef.value.offsetHeight - GAP;
92
- const offsetWidth = wrapRef.value.offsetWidth - GAP;
93
- const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight;
94
- const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth;
95
- const height = Math.max(originalHeight, props.minSize);
96
- const width = Math.max(originalWidth, props.minSize);
97
- ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
98
- ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
99
- sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
100
- sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
101
- };
102
- watch(() => props.noresize, (noresize) => {
103
- if (noresize) {
104
- stopResizeObserver == null ? void 0 : stopResizeObserver();
105
- stopResizeListener == null ? void 0 : stopResizeListener();
106
- } else {
107
- ;
108
- ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
109
- stopResizeListener = useEventListener("resize", update);
110
- }
111
- }, { immediate: true });
112
- watch(() => [props.maxHeight, props.height], () => {
113
- if (!props.native)
114
- nextTick(() => {
115
- var _a;
116
- update();
117
- if (wrapRef.value) {
118
- (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
119
- }
120
- });
121
- });
122
- provide(scrollbarContextKey, reactive({
123
- scrollbarElement: scrollbarRef,
124
- wrapElement: wrapRef
125
- }));
126
- onMounted(() => {
127
- if (!props.native)
128
- nextTick(() => {
129
- update();
130
- });
131
- });
132
- onUpdated(() => update());
133
- expose({
134
- wrapRef,
135
- update,
136
- scrollTo,
137
- setScrollTop,
138
- setScrollLeft,
139
- handleScroll
140
- });
141
- return (_ctx, _cache) => {
142
- return openBlock(), createElementBlock("div", {
143
- ref_key: "scrollbarRef",
144
- ref: scrollbarRef,
145
- class: normalizeClass(unref(ns).b())
146
- }, [
147
- createElementVNode("div", {
148
- ref_key: "wrapRef",
149
- ref: wrapRef,
150
- class: normalizeClass(unref(wrapKls)),
151
- style: normalizeStyle(unref(wrapStyle)),
152
- onScroll: handleScroll
153
- }, [
154
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
155
- id: _ctx.id,
156
- ref_key: "resizeRef",
157
- ref: resizeRef,
158
- class: normalizeClass(unref(resizeKls)),
159
- style: normalizeStyle(_ctx.viewStyle),
160
- role: _ctx.role,
161
- "aria-label": _ctx.ariaLabel,
162
- "aria-orientation": _ctx.ariaOrientation
163
- }, {
164
- default: withCtx(() => [
165
- renderSlot(_ctx.$slots, "default")
166
- ]),
167
- _: 3
168
- }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
169
- ], 38),
170
- !_ctx.native ? (openBlock(), createBlock(Bar, {
171
- key: 0,
172
- ref_key: "barRef",
173
- ref: barRef,
174
- height: sizeHeight.value,
175
- width: sizeWidth.value,
176
- always: _ctx.always,
177
- "ratio-x": ratioX.value,
178
- "ratio-y": ratioY.value
179
- }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : createCommentVNode("v-if", true)
180
- ], 2);
181
- };
5
+ const scrollbarProps = buildProps({
6
+ height: {
7
+ type: [String, Number],
8
+ default: ""
9
+ },
10
+ maxHeight: {
11
+ type: [String, Number],
12
+ default: ""
13
+ },
14
+ native: {
15
+ type: Boolean,
16
+ default: false
17
+ },
18
+ wrapStyle: {
19
+ type: definePropType([String, Object, Array]),
20
+ default: ""
21
+ },
22
+ wrapClass: {
23
+ type: [String, Array],
24
+ default: ""
25
+ },
26
+ viewClass: {
27
+ type: [String, Array],
28
+ default: ""
29
+ },
30
+ viewStyle: {
31
+ type: [String, Array, Object],
32
+ default: ""
33
+ },
34
+ noresize: Boolean,
35
+ tag: {
36
+ type: String,
37
+ default: "div"
38
+ },
39
+ always: Boolean,
40
+ minSize: {
41
+ type: Number,
42
+ default: 20
43
+ },
44
+ id: String,
45
+ role: String,
46
+ ariaLabel: String,
47
+ ariaOrientation: {
48
+ type: String,
49
+ values: ["horizontal", "vertical"]
182
50
  }
183
51
  });
184
- var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\scrollbar.vue"]]);
52
+ const scrollbarEmits = {
53
+ scroll: ({
54
+ scrollTop,
55
+ scrollLeft
56
+ }) => [scrollTop, scrollLeft].every(isNumber)
57
+ };
185
58
 
186
- export { Scrollbar as default };
59
+ export { scrollbarEmits, scrollbarProps };
187
60
  //# sourceMappingURL=scrollbar.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrollbar.mjs","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.vue"],"sourcesContent":["<template>\n <div ref=\"scrollbarRef\" :class=\"ns.b()\">\n <div\n ref=\"wrapRef\"\n :class=\"wrapKls\"\n :style=\"wrapStyle\"\n @scroll=\"handleScroll\"\n >\n <component\n :is=\"tag\"\n :id=\"id\"\n ref=\"resizeRef\"\n :class=\"resizeKls\"\n :style=\"viewStyle\"\n :role=\"role\"\n :aria-label=\"ariaLabel\"\n :aria-orientation=\"ariaOrientation\"\n >\n <slot />\n </component>\n </div>\n <template v-if=\"!native\">\n <bar\n ref=\"barRef\"\n :height=\"sizeHeight\"\n :width=\"sizeWidth\"\n :always=\"always\"\n :ratio-x=\"ratioX\"\n :ratio-y=\"ratioY\"\n />\n </template>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n onUpdated,\n provide,\n reactive,\n ref,\n} from 'vue'\nimport { watch } from '../../config-provider'\nimport { useEventListener, useResizeObserver } from '@vueuse/core'\nimport { addUnit, debugWarn, isNumber, isObject } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { GAP } from './util'\nimport Bar from './bar.vue'\nimport { scrollbarContextKey } from './constants'\nimport { scrollbarEmits, scrollbarProps } from './scrollbar'\nimport type { BarInstance } from './bar'\nimport type { CSSProperties, StyleValue } from 'vue'\n\nconst COMPONENT_NAME = 'ElScrollbar'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(scrollbarProps)\nconst emit = defineEmits(scrollbarEmits)\n\nconst ns = useNamespace('scrollbar')\n\nlet stopResizeObserver: (() => void) | undefined = undefined\nlet stopResizeListener: (() => void) | undefined = undefined\n\nconst scrollbarRef = ref<HTMLDivElement>()\nconst wrapRef = ref<HTMLDivElement>()\nconst resizeRef = ref<HTMLElement>()\n\nconst sizeWidth = ref('0')\nconst sizeHeight = ref('0')\nconst barRef = ref<BarInstance>()\nconst ratioY = ref(1)\nconst ratioX = ref(1)\n\nconst wrapStyle = computed<StyleValue>(() => {\n const style: CSSProperties = {}\n if (props.height) style.height = addUnit(props.height)\n if (props.maxHeight) style.maxHeight = addUnit(props.maxHeight)\n return [props.wrapStyle, style]\n})\n\nconst wrapKls = computed(() => {\n return [\n props.wrapClass,\n ns.e('wrap'),\n { [ns.em('wrap', 'hidden-default')]: !props.native },\n ]\n})\n\nconst resizeKls = computed(() => {\n return [ns.e('view'), props.viewClass]\n})\n\nconst handleScroll = () => {\n if (wrapRef.value) {\n barRef.value?.handleScroll(wrapRef.value)\n\n emit('scroll', {\n scrollTop: wrapRef.value.scrollTop,\n scrollLeft: wrapRef.value.scrollLeft,\n })\n }\n}\n\n// TODO: refactor method overrides, due to script setup dts\n// @ts-nocheck\nfunction scrollTo(xCord: number, yCord?: number): void\nfunction scrollTo(options: ScrollToOptions): void\nfunction scrollTo(arg1: unknown, arg2?: number) {\n if (isObject(arg1)) {\n wrapRef.value!.scrollTo(arg1)\n } else if (isNumber(arg1) && isNumber(arg2)) {\n wrapRef.value!.scrollTo(arg1, arg2)\n }\n}\n\nconst setScrollTop = (value: number) => {\n if (!isNumber(value)) {\n debugWarn(COMPONENT_NAME, 'value must be a number')\n return\n }\n wrapRef.value!.scrollTop = value\n}\n\nconst setScrollLeft = (value: number) => {\n if (!isNumber(value)) {\n debugWarn(COMPONENT_NAME, 'value must be a number')\n return\n }\n wrapRef.value!.scrollLeft = value\n}\n\nconst update = () => {\n if (!wrapRef.value) return\n const offsetHeight = wrapRef.value.offsetHeight - GAP\n const offsetWidth = wrapRef.value.offsetWidth - GAP\n\n const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight\n const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth\n const height = Math.max(originalHeight, props.minSize)\n const width = Math.max(originalWidth, props.minSize)\n\n ratioY.value =\n originalHeight /\n (offsetHeight - originalHeight) /\n (height / (offsetHeight - height))\n ratioX.value =\n originalWidth /\n (offsetWidth - originalWidth) /\n (width / (offsetWidth - width))\n\n sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : ''\n sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : ''\n}\n\nwatch(\n () => props.noresize,\n (noresize) => {\n if (noresize) {\n stopResizeObserver?.()\n stopResizeListener?.()\n } else {\n ;({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update))\n stopResizeListener = useEventListener('resize', update)\n }\n },\n { immediate: true }\n)\n\nwatch(\n () => [props.maxHeight, props.height],\n () => {\n if (!props.native)\n nextTick(() => {\n update()\n if (wrapRef.value) {\n barRef.value?.handleScroll(wrapRef.value)\n }\n })\n }\n)\n\nprovide(\n scrollbarContextKey,\n reactive({\n scrollbarElement: scrollbarRef,\n wrapElement: wrapRef,\n })\n)\n\nonMounted(() => {\n if (!props.native)\n nextTick(() => {\n update()\n })\n})\nonUpdated(() => update())\n\ndefineExpose({\n /** @description scrollbar wrap ref */\n wrapRef,\n /** @description update scrollbar state manually */\n update,\n /** @description scrolls to a particular set of coordinates */\n scrollTo,\n /** @description set distance to scroll top */\n setScrollTop,\n /** @description set distance to scroll left */\n setScrollLeft,\n /** @description handle scroll event */\n handleScroll,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;mCAwDc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAEnC,IAAA,IAAI,kBAA+C,GAAA,KAAA,CAAA,CAAA;AACnD,IAAA,IAAI,kBAA+C,GAAA,KAAA,CAAA,CAAA;AAEnD,IAAA,MAAM,eAAe,GAAoB,EAAA,CAAA;AACzC,IAAA,MAAM,UAAU,GAAoB,EAAA,CAAA;AACpC,IAAA,MAAM,YAAY,GAAiB,EAAA,CAAA;AAEnC,IAAM,MAAA,SAAA,GAAY,IAAI,GAAG,CAAA,CAAA;AACzB,IAAM,MAAA,UAAA,GAAa,IAAI,GAAG,CAAA,CAAA;AAC1B,IAAA,MAAM,SAAS,GAAiB,EAAA,CAAA;AAChC,IAA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AA,EAAA,MAAA,CAAA,CAAA;AAAA,OAEF;AAGF,KAAA,EAAA,EAAA,SACS,EAAA;AAEL,IAAA,KAAA,CAAI,MAAO,CAAA,KAAA,CAAA,SAAA,EAAA,KAAA,CAAA,MAAA,CAAA,EAAA,MAAA;AACT,MAAA,IAAA,CAAA,KAAA,CAAS,MAAM;AACb,QAAO,QAAA,CAAA,MAAA;AACP,UAAA,IAAI;AACF,UAAO,MAAA,EAAA,CAAA;AAAiC,UAC1C,IAAA,OAAA,CAAA,KAAA,EAAA;AAAA,YACD,CAAA,EAAA,GAAA,MAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,YAAA,CAAA,OAAA,CAAA,KAAA,CAAA,CAAA;AAAA,WAEP;AAEA,SAAA,CAAA,CAAA;AAEW,KAAA,CACP,CAAkB;AAAA,IAAA,OACL,CAAA,mBAAA,EAAA,QAAA,CAAA;AAAA,MAEjB,gBAAA,EAAA,YAAA;AAEA,MAAA,WAAgB,EAAA,OAAA;AACd,KAAA,CAAA,CAAA,CAAA;AACE,IAAA,SAAA,CAAA,MAAe;AACb,MAAO,IAAA,CAAA,KAAA,CAAA,MAAA;AAAA,QACT,QAAC,CAAA,MAAA;AAAA,UACJ,MAAA,EAAA,CAAA;AACD,SAAU,CAAA,CAAA;AAEV,KAAa,CAAA,CAAA;AAAA,IAEX,SAAA,CAAA,MAAA,MAAA,EAAA,CAAA,CAAA;AAAA,IAEA,MAAA,CAAA;AAAA,MAEA,OAAA;AAAA,MAEA,MAAA;AAAA,MAEA,QAAA;AAAA,MAEA,YAAA;AAAA,MACD,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"scrollbar.mjs","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport const scrollbarProps = buildProps({\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: {\n type: Boolean,\n default: false,\n },\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: [String, Array, Object],\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n /**\n * @description aria-label of view\n */\n ariaLabel: String,\n /**\n * @description aria-orientation of view\n */\n ariaOrientation: {\n type: String,\n values: ['horizontal', 'vertical'],\n },\n} as const)\nexport type ScrollbarProps = ExtractPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar>\n"],"names":[],"mappings":";;;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAA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MAAM,EAAE,CAAC;AACX,IAAI,SAAS;AACb,IAAI,UAAU;AACd,GAAG,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AAC/C;;;;"}
@@ -1,60 +1,187 @@
1
+ import { defineComponent, ref, computed, nextTick, provide, reactive, onMounted, onUpdated, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, createBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode } from 'vue';
2
+ import '../../config-provider/index.mjs';
3
+ import { useResizeObserver, useEventListener } from '@vueuse/core';
1
4
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import { GAP } from './util.mjs';
7
+ import Bar from './bar2.mjs';
8
+ import { scrollbarContextKey } from './constants.mjs';
9
+ import { scrollbarProps, scrollbarEmits } from './scrollbar.mjs';
10
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
11
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
12
+ import { addUnit } from '../../../utils/dom/style.mjs';
13
+ import { isObject } from '@vue/shared';
3
14
  import { isNumber } from '../../../utils/types.mjs';
15
+ import { debugWarn } from '../../../utils/error.mjs';
16
+ import { watch } from '../../config-provider/src/for-editor.mjs';
4
17
 
5
- const scrollbarProps = buildProps({
6
- height: {
7
- type: [String, Number],
8
- default: ""
9
- },
10
- maxHeight: {
11
- type: [String, Number],
12
- default: ""
13
- },
14
- native: {
15
- type: Boolean,
16
- default: false
17
- },
18
- wrapStyle: {
19
- type: definePropType([String, Object, Array]),
20
- default: ""
21
- },
22
- wrapClass: {
23
- type: [String, Array],
24
- default: ""
25
- },
26
- viewClass: {
27
- type: [String, Array],
28
- default: ""
29
- },
30
- viewStyle: {
31
- type: [String, Array, Object],
32
- default: ""
33
- },
34
- noresize: Boolean,
35
- tag: {
36
- type: String,
37
- default: "div"
38
- },
39
- always: Boolean,
40
- minSize: {
41
- type: Number,
42
- default: 20
43
- },
44
- id: String,
45
- role: String,
46
- ariaLabel: String,
47
- ariaOrientation: {
48
- type: String,
49
- values: ["horizontal", "vertical"]
18
+ const COMPONENT_NAME = "ElScrollbar";
19
+ const __default__ = defineComponent({
20
+ name: COMPONENT_NAME
21
+ });
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ ...__default__,
24
+ props: scrollbarProps,
25
+ emits: scrollbarEmits,
26
+ setup(__props, { expose, emit }) {
27
+ const props = __props;
28
+ const ns = useNamespace("scrollbar");
29
+ let stopResizeObserver = void 0;
30
+ let stopResizeListener = void 0;
31
+ const scrollbarRef = ref();
32
+ const wrapRef = ref();
33
+ const resizeRef = ref();
34
+ const sizeWidth = ref("0");
35
+ const sizeHeight = ref("0");
36
+ const barRef = ref();
37
+ const ratioY = ref(1);
38
+ const ratioX = ref(1);
39
+ const wrapStyle = computed(() => {
40
+ const style = {};
41
+ if (props.height)
42
+ style.height = addUnit(props.height);
43
+ if (props.maxHeight)
44
+ style.maxHeight = addUnit(props.maxHeight);
45
+ return [props.wrapStyle, style];
46
+ });
47
+ const wrapKls = computed(() => {
48
+ return [
49
+ props.wrapClass,
50
+ ns.e("wrap"),
51
+ { [ns.em("wrap", "hidden-default")]: !props.native }
52
+ ];
53
+ });
54
+ const resizeKls = computed(() => {
55
+ return [ns.e("view"), props.viewClass];
56
+ });
57
+ const handleScroll = () => {
58
+ var _a;
59
+ if (wrapRef.value) {
60
+ (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
61
+ emit("scroll", {
62
+ scrollTop: wrapRef.value.scrollTop,
63
+ scrollLeft: wrapRef.value.scrollLeft
64
+ });
65
+ }
66
+ };
67
+ function scrollTo(arg1, arg2) {
68
+ if (isObject(arg1)) {
69
+ wrapRef.value.scrollTo(arg1);
70
+ } else if (isNumber(arg1) && isNumber(arg2)) {
71
+ wrapRef.value.scrollTo(arg1, arg2);
72
+ }
73
+ }
74
+ const setScrollTop = (value) => {
75
+ if (!isNumber(value)) {
76
+ debugWarn(COMPONENT_NAME, "value must be a number");
77
+ return;
78
+ }
79
+ wrapRef.value.scrollTop = value;
80
+ };
81
+ const setScrollLeft = (value) => {
82
+ if (!isNumber(value)) {
83
+ debugWarn(COMPONENT_NAME, "value must be a number");
84
+ return;
85
+ }
86
+ wrapRef.value.scrollLeft = value;
87
+ };
88
+ const update = () => {
89
+ if (!wrapRef.value)
90
+ return;
91
+ const offsetHeight = wrapRef.value.offsetHeight - GAP;
92
+ const offsetWidth = wrapRef.value.offsetWidth - GAP;
93
+ const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight;
94
+ const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth;
95
+ const height = Math.max(originalHeight, props.minSize);
96
+ const width = Math.max(originalWidth, props.minSize);
97
+ ratioY.value = originalHeight / (offsetHeight - originalHeight) / (height / (offsetHeight - height));
98
+ ratioX.value = originalWidth / (offsetWidth - originalWidth) / (width / (offsetWidth - width));
99
+ sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : "";
100
+ sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : "";
101
+ };
102
+ watch(() => props.noresize, (noresize) => {
103
+ if (noresize) {
104
+ stopResizeObserver == null ? void 0 : stopResizeObserver();
105
+ stopResizeListener == null ? void 0 : stopResizeListener();
106
+ } else {
107
+ ;
108
+ ({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update));
109
+ stopResizeListener = useEventListener("resize", update);
110
+ }
111
+ }, { immediate: true });
112
+ watch(() => [props.maxHeight, props.height], () => {
113
+ if (!props.native)
114
+ nextTick(() => {
115
+ var _a;
116
+ update();
117
+ if (wrapRef.value) {
118
+ (_a = barRef.value) == null ? void 0 : _a.handleScroll(wrapRef.value);
119
+ }
120
+ });
121
+ });
122
+ provide(scrollbarContextKey, reactive({
123
+ scrollbarElement: scrollbarRef,
124
+ wrapElement: wrapRef
125
+ }));
126
+ onMounted(() => {
127
+ if (!props.native)
128
+ nextTick(() => {
129
+ update();
130
+ });
131
+ });
132
+ onUpdated(() => update());
133
+ expose({
134
+ wrapRef,
135
+ update,
136
+ scrollTo,
137
+ setScrollTop,
138
+ setScrollLeft,
139
+ handleScroll
140
+ });
141
+ return (_ctx, _cache) => {
142
+ return openBlock(), createElementBlock("div", {
143
+ ref_key: "scrollbarRef",
144
+ ref: scrollbarRef,
145
+ class: normalizeClass(unref(ns).b())
146
+ }, [
147
+ createElementVNode("div", {
148
+ ref_key: "wrapRef",
149
+ ref: wrapRef,
150
+ class: normalizeClass(unref(wrapKls)),
151
+ style: normalizeStyle(unref(wrapStyle)),
152
+ onScroll: handleScroll
153
+ }, [
154
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
155
+ id: _ctx.id,
156
+ ref_key: "resizeRef",
157
+ ref: resizeRef,
158
+ class: normalizeClass(unref(resizeKls)),
159
+ style: normalizeStyle(_ctx.viewStyle),
160
+ role: _ctx.role,
161
+ "aria-label": _ctx.ariaLabel,
162
+ "aria-orientation": _ctx.ariaOrientation
163
+ }, {
164
+ default: withCtx(() => [
165
+ renderSlot(_ctx.$slots, "default")
166
+ ]),
167
+ _: 3
168
+ }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
169
+ ], 38),
170
+ !_ctx.native ? (openBlock(), createBlock(Bar, {
171
+ key: 0,
172
+ ref_key: "barRef",
173
+ ref: barRef,
174
+ height: sizeHeight.value,
175
+ width: sizeWidth.value,
176
+ always: _ctx.always,
177
+ "ratio-x": ratioX.value,
178
+ "ratio-y": ratioY.value
179
+ }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : createCommentVNode("v-if", true)
180
+ ], 2);
181
+ };
50
182
  }
51
183
  });
52
- const scrollbarEmits = {
53
- scroll: ({
54
- scrollTop,
55
- scrollLeft
56
- }) => [scrollTop, scrollLeft].every(isNumber)
57
- };
184
+ var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\scrollbar\\src\\scrollbar.vue"]]);
58
185
 
59
- export { scrollbarEmits, scrollbarProps };
186
+ export { Scrollbar as default };
60
187
  //# sourceMappingURL=scrollbar2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrollbar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.ts"],"sourcesContent":["import { buildProps, definePropType, isNumber } from '@element-plus/utils'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type Scrollbar from './scrollbar.vue'\n\nexport const scrollbarProps = buildProps({\n /**\n * @description height of scrollbar\n */\n height: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description max height of scrollbar\n */\n maxHeight: {\n type: [String, Number],\n default: '',\n },\n /**\n * @description whether to use the native scrollbar\n */\n native: {\n type: Boolean,\n default: false,\n },\n /**\n * @description style of wrap\n */\n wrapStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n default: '',\n },\n /**\n * @description class of wrap\n */\n wrapClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description class of view\n */\n viewClass: {\n type: [String, Array],\n default: '',\n },\n /**\n * @description style of view\n */\n viewStyle: {\n type: [String, Array, Object],\n default: '',\n },\n /**\n * @description do not respond to container size changes, if the container size does not change, it is better to set it to optimize performance\n */\n noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能\n /**\n * @description element tag of the view\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description always show\n */\n always: Boolean,\n /**\n * @description minimum size of scrollbar\n */\n minSize: {\n type: Number,\n default: 20,\n },\n /**\n * @description id of view\n */\n id: String,\n /**\n * @description role of view\n */\n role: String,\n /**\n * @description aria-label of view\n */\n ariaLabel: String,\n /**\n * @description aria-orientation of view\n */\n ariaOrientation: {\n type: String,\n values: ['horizontal', 'vertical'],\n },\n} as const)\nexport type ScrollbarProps = ExtractPropTypes<typeof scrollbarProps>\n\nexport const scrollbarEmits = {\n scroll: ({\n scrollTop,\n scrollLeft,\n }: {\n scrollTop: number\n scrollLeft: number\n }) => [scrollTop, scrollLeft].every(isNumber),\n}\nexport type ScrollbarEmits = typeof scrollbarEmits\n\nexport type ScrollbarInstance = InstanceType<typeof Scrollbar>\n"],"names":[],"mappings":";;;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;AACzB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;AACzB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;AACjC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACtC,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,MAAM,EAAE,CAAC;AACX,IAAI,SAAS;AACb,IAAI,UAAU;AACd,GAAG,KAAK,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AAC/C;;;;"}
1
+ {"version":3,"file":"scrollbar2.mjs","sources":["../../../../../../packages/components/scrollbar/src/scrollbar.vue"],"sourcesContent":["<template>\n <div ref=\"scrollbarRef\" :class=\"ns.b()\">\n <div\n ref=\"wrapRef\"\n :class=\"wrapKls\"\n :style=\"wrapStyle\"\n @scroll=\"handleScroll\"\n >\n <component\n :is=\"tag\"\n :id=\"id\"\n ref=\"resizeRef\"\n :class=\"resizeKls\"\n :style=\"viewStyle\"\n :role=\"role\"\n :aria-label=\"ariaLabel\"\n :aria-orientation=\"ariaOrientation\"\n >\n <slot />\n </component>\n </div>\n <template v-if=\"!native\">\n <bar\n ref=\"barRef\"\n :height=\"sizeHeight\"\n :width=\"sizeWidth\"\n :always=\"always\"\n :ratio-x=\"ratioX\"\n :ratio-y=\"ratioY\"\n />\n </template>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n onUpdated,\n provide,\n reactive,\n ref,\n} from 'vue'\nimport { watch } from '../../config-provider'\nimport { useEventListener, useResizeObserver } from '@vueuse/core'\nimport { addUnit, debugWarn, isNumber, isObject } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\nimport { GAP } from './util'\nimport Bar from './bar.vue'\nimport { scrollbarContextKey } from './constants'\nimport { scrollbarEmits, scrollbarProps } from './scrollbar'\nimport type { BarInstance } from './bar'\nimport type { CSSProperties, StyleValue } from 'vue'\n\nconst COMPONENT_NAME = 'ElScrollbar'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(scrollbarProps)\nconst emit = defineEmits(scrollbarEmits)\n\nconst ns = useNamespace('scrollbar')\n\nlet stopResizeObserver: (() => void) | undefined = undefined\nlet stopResizeListener: (() => void) | undefined = undefined\n\nconst scrollbarRef = ref<HTMLDivElement>()\nconst wrapRef = ref<HTMLDivElement>()\nconst resizeRef = ref<HTMLElement>()\n\nconst sizeWidth = ref('0')\nconst sizeHeight = ref('0')\nconst barRef = ref<BarInstance>()\nconst ratioY = ref(1)\nconst ratioX = ref(1)\n\nconst wrapStyle = computed<StyleValue>(() => {\n const style: CSSProperties = {}\n if (props.height) style.height = addUnit(props.height)\n if (props.maxHeight) style.maxHeight = addUnit(props.maxHeight)\n return [props.wrapStyle, style]\n})\n\nconst wrapKls = computed(() => {\n return [\n props.wrapClass,\n ns.e('wrap'),\n { [ns.em('wrap', 'hidden-default')]: !props.native },\n ]\n})\n\nconst resizeKls = computed(() => {\n return [ns.e('view'), props.viewClass]\n})\n\nconst handleScroll = () => {\n if (wrapRef.value) {\n barRef.value?.handleScroll(wrapRef.value)\n\n emit('scroll', {\n scrollTop: wrapRef.value.scrollTop,\n scrollLeft: wrapRef.value.scrollLeft,\n })\n }\n}\n\n// TODO: refactor method overrides, due to script setup dts\n// @ts-nocheck\nfunction scrollTo(xCord: number, yCord?: number): void\nfunction scrollTo(options: ScrollToOptions): void\nfunction scrollTo(arg1: unknown, arg2?: number) {\n if (isObject(arg1)) {\n wrapRef.value!.scrollTo(arg1)\n } else if (isNumber(arg1) && isNumber(arg2)) {\n wrapRef.value!.scrollTo(arg1, arg2)\n }\n}\n\nconst setScrollTop = (value: number) => {\n if (!isNumber(value)) {\n debugWarn(COMPONENT_NAME, 'value must be a number')\n return\n }\n wrapRef.value!.scrollTop = value\n}\n\nconst setScrollLeft = (value: number) => {\n if (!isNumber(value)) {\n debugWarn(COMPONENT_NAME, 'value must be a number')\n return\n }\n wrapRef.value!.scrollLeft = value\n}\n\nconst update = () => {\n if (!wrapRef.value) return\n const offsetHeight = wrapRef.value.offsetHeight - GAP\n const offsetWidth = wrapRef.value.offsetWidth - GAP\n\n const originalHeight = offsetHeight ** 2 / wrapRef.value.scrollHeight\n const originalWidth = offsetWidth ** 2 / wrapRef.value.scrollWidth\n const height = Math.max(originalHeight, props.minSize)\n const width = Math.max(originalWidth, props.minSize)\n\n ratioY.value =\n originalHeight /\n (offsetHeight - originalHeight) /\n (height / (offsetHeight - height))\n ratioX.value =\n originalWidth /\n (offsetWidth - originalWidth) /\n (width / (offsetWidth - width))\n\n sizeHeight.value = height + GAP < offsetHeight ? `${height}px` : ''\n sizeWidth.value = width + GAP < offsetWidth ? `${width}px` : ''\n}\n\nwatch(\n () => props.noresize,\n (noresize) => {\n if (noresize) {\n stopResizeObserver?.()\n stopResizeListener?.()\n } else {\n ;({ stop: stopResizeObserver } = useResizeObserver(resizeRef, update))\n stopResizeListener = useEventListener('resize', update)\n }\n },\n { immediate: true }\n)\n\nwatch(\n () => [props.maxHeight, props.height],\n () => {\n if (!props.native)\n nextTick(() => {\n update()\n if (wrapRef.value) {\n barRef.value?.handleScroll(wrapRef.value)\n }\n })\n }\n)\n\nprovide(\n scrollbarContextKey,\n reactive({\n scrollbarElement: scrollbarRef,\n wrapElement: wrapRef,\n })\n)\n\nonMounted(() => {\n if (!props.native)\n nextTick(() => {\n update()\n })\n})\nonUpdated(() => update())\n\ndefineExpose({\n /** @description scrollbar wrap ref */\n wrapRef,\n /** @description update scrollbar state manually */\n update,\n /** @description scrolls to a particular set of coordinates */\n scrollTo,\n /** @description set distance to scroll top */\n setScrollTop,\n /** @description set distance to scroll left */\n setScrollLeft,\n /** @description handle scroll event */\n handleScroll,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;mCAwDc,CAAA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