element-pe 2.2.67 → 2.2.69

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 (488) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +64 -54
  3. package/dist/index.full.min.js +2 -2
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +2 -2
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +64 -54
  8. package/es/components/affix/index.mjs +2 -2
  9. package/es/components/affix/src/affix.mjs +119 -26
  10. package/es/components/affix/src/affix.mjs.map +1 -1
  11. package/es/components/affix/src/affix2.mjs +26 -119
  12. package/es/components/affix/src/affix2.mjs.map +1 -1
  13. package/es/components/autocomplete/index.mjs +2 -2
  14. package/es/components/autocomplete/src/autocomplete.mjs +99 -379
  15. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  16. package/es/components/autocomplete/src/autocomplete2.mjs +379 -99
  17. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  18. package/es/components/avatar/index.mjs +2 -2
  19. package/es/components/avatar/src/avatar.mjs +35 -76
  20. package/es/components/avatar/src/avatar.mjs.map +1 -1
  21. package/es/components/avatar/src/avatar2.mjs +76 -35
  22. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  23. package/es/components/backtop/index.mjs +2 -2
  24. package/es/components/backtop/src/backtop.mjs +61 -23
  25. package/es/components/backtop/src/backtop.mjs.map +1 -1
  26. package/es/components/backtop/src/backtop2.mjs +23 -61
  27. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  28. package/es/components/breadcrumb/index.mjs +2 -2
  29. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  30. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  31. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  32. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  33. package/es/components/calendar/index.mjs +2 -2
  34. package/es/components/calendar/src/calendar.mjs +131 -18
  35. package/es/components/calendar/src/calendar.mjs.map +1 -1
  36. package/es/components/calendar/src/calendar2.mjs +18 -131
  37. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  38. package/es/components/calendar/src/date-table.mjs +87 -33
  39. package/es/components/calendar/src/date-table.mjs.map +1 -1
  40. package/es/components/calendar/src/date-table2.mjs +33 -87
  41. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  42. package/es/components/calendar/src/use-date-table.mjs +1 -1
  43. package/es/components/card/index.mjs +2 -2
  44. package/es/components/card/src/card.mjs +35 -16
  45. package/es/components/card/src/card.mjs.map +1 -1
  46. package/es/components/card/src/card2.mjs +16 -35
  47. package/es/components/card/src/card2.mjs.map +1 -1
  48. package/es/components/carousel/index.mjs +4 -4
  49. package/es/components/carousel/src/carousel-item.mjs +69 -8
  50. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  51. package/es/components/carousel/src/carousel-item2.mjs +8 -69
  52. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  53. package/es/components/carousel/src/carousel.mjs +56 -169
  54. package/es/components/carousel/src/carousel.mjs.map +1 -1
  55. package/es/components/carousel/src/carousel2.mjs +169 -56
  56. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  57. package/es/components/cascader/src/cascader.mjs +0 -1
  58. package/es/components/cascader/src/cascader.mjs.map +1 -1
  59. package/es/components/cascader-panel/src/index.mjs +1 -1
  60. package/es/components/cascader-panel/src/menu.mjs +1 -1
  61. package/es/components/cascader-panel/src/node.mjs +209 -116
  62. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  63. package/es/components/cascader-panel/src/node2.mjs +116 -209
  64. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  65. package/es/components/cascader-panel/src/store.mjs +1 -1
  66. package/es/components/collection/index.mjs +1 -1
  67. package/es/components/collection/src/collection.mjs +10 -66
  68. package/es/components/collection/src/collection.mjs.map +1 -1
  69. package/es/components/collection/src/collection2.mjs +66 -10
  70. package/es/components/collection/src/collection2.mjs.map +1 -1
  71. package/es/components/countdown/index.mjs +2 -2
  72. package/es/components/countdown/src/countdown.mjs +76 -23
  73. package/es/components/countdown/src/countdown.mjs.map +1 -1
  74. package/es/components/countdown/src/countdown2.mjs +23 -76
  75. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  76. package/es/components/descriptions/index.mjs +2 -2
  77. package/es/components/descriptions/src/description.mjs +120 -27
  78. package/es/components/descriptions/src/description.mjs.map +1 -1
  79. package/es/components/descriptions/src/description2.mjs +27 -120
  80. package/es/components/descriptions/src/description2.mjs.map +1 -1
  81. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  82. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  83. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  84. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  85. package/es/components/dialog/index.mjs +2 -2
  86. package/es/components/dialog/src/dialog.mjs +73 -174
  87. package/es/components/dialog/src/dialog.mjs.map +1 -1
  88. package/es/components/dialog/src/dialog2.mjs +174 -73
  89. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  90. package/es/components/drawer/src/drawer.mjs +1 -1
  91. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  92. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  93. package/es/components/dropdown/src/dropdown.mjs +1 -1
  94. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  95. package/es/components/form/index.mjs +2 -2
  96. package/es/components/form/src/form.mjs +61 -150
  97. package/es/components/form/src/form.mjs.map +1 -1
  98. package/es/components/form/src/form2.mjs +150 -61
  99. package/es/components/form/src/form2.mjs.map +1 -1
  100. package/es/components/index.mjs +33 -33
  101. package/es/components/link/index.mjs +2 -2
  102. package/es/components/link/src/link.mjs +50 -21
  103. package/es/components/link/src/link.mjs.map +1 -1
  104. package/es/components/link/src/link2.mjs +21 -50
  105. package/es/components/link/src/link2.mjs.map +1 -1
  106. package/es/components/menu/index.mjs +2 -2
  107. package/es/components/menu/src/menu-item.mjs +14 -97
  108. package/es/components/menu/src/menu-item.mjs.map +1 -1
  109. package/es/components/menu/src/menu-item2.mjs +97 -14
  110. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  111. package/es/components/notification/index.mjs +1 -1
  112. package/es/components/notification/src/notification.mjs +67 -151
  113. package/es/components/notification/src/notification.mjs.map +1 -1
  114. package/es/components/notification/src/notification2.mjs +151 -67
  115. package/es/components/notification/src/notification2.mjs.map +1 -1
  116. package/es/components/notification/src/notify.mjs +2 -2
  117. package/es/components/pagination/src/components/jumper.mjs +9 -60
  118. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  119. package/es/components/pagination/src/components/jumper2.mjs +60 -9
  120. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  121. package/es/components/pagination/src/components/sizes.mjs +22 -70
  122. package/es/components/pagination/src/components/sizes.mjs.map +1 -1
  123. package/es/components/pagination/src/components/sizes2.mjs +70 -22
  124. package/es/components/pagination/src/components/sizes2.mjs.map +1 -1
  125. package/es/components/pagination/src/pagination.mjs +2 -2
  126. package/es/components/popover/index.mjs +2 -2
  127. package/es/components/popover/src/popover.mjs +111 -66
  128. package/es/components/popover/src/popover.mjs.map +1 -1
  129. package/es/components/popover/src/popover2.mjs +66 -111
  130. package/es/components/popover/src/popover2.mjs.map +1 -1
  131. package/es/components/popper/index.mjs +2 -2
  132. package/es/components/popper/src/arrow.mjs +39 -8
  133. package/es/components/popper/src/arrow.mjs.map +1 -1
  134. package/es/components/popper/src/arrow2.mjs +8 -39
  135. package/es/components/popper/src/arrow2.mjs.map +1 -1
  136. package/es/components/progress/index.mjs +2 -2
  137. package/es/components/progress/src/progress.mjs +204 -59
  138. package/es/components/progress/src/progress.mjs.map +1 -1
  139. package/es/components/progress/src/progress2.mjs +59 -204
  140. package/es/components/progress/src/progress2.mjs.map +1 -1
  141. package/es/components/radio/index.mjs +2 -2
  142. package/es/components/radio/src/radio-button.mjs +1 -1
  143. package/es/components/radio/src/radio-group.mjs +1 -1
  144. package/es/components/radio/src/radio.mjs +74 -35
  145. package/es/components/radio/src/radio.mjs.map +1 -1
  146. package/es/components/radio/src/radio2.mjs +35 -74
  147. package/es/components/radio/src/radio2.mjs.map +1 -1
  148. package/es/components/resizable-columns/index.d.ts +2 -2
  149. package/es/components/resizable-columns/index.mjs +4 -4
  150. package/es/components/resizable-columns/src/constants.d.ts +1 -2
  151. package/es/components/resizable-columns/src/constants.mjs.map +1 -1
  152. package/es/components/resizable-columns/src/resizable-column.mjs +7 -111
  153. package/es/components/resizable-columns/src/resizable-column.mjs.map +1 -1
  154. package/es/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  155. package/es/components/resizable-columns/src/resizable-column2.mjs +114 -7
  156. package/es/components/resizable-columns/src/resizable-column2.mjs.map +1 -1
  157. package/es/components/resizable-columns/src/resizable-columns.mjs +237 -12
  158. package/es/components/resizable-columns/src/resizable-columns.mjs.map +1 -1
  159. package/es/components/resizable-columns/src/resizable-columns2.mjs +12 -229
  160. package/es/components/resizable-columns/src/resizable-columns2.mjs.map +1 -1
  161. package/es/components/roving-focus-group/index.mjs +3 -3
  162. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  163. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  164. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  165. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  166. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  167. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  168. package/es/components/row/index.mjs +2 -2
  169. package/es/components/row/src/row.mjs +45 -30
  170. package/es/components/row/src/row.mjs.map +1 -1
  171. package/es/components/row/src/row2.mjs +30 -45
  172. package/es/components/row/src/row2.mjs.map +1 -1
  173. package/es/components/scrollbar/index.mjs +3 -3
  174. package/es/components/scrollbar/src/bar.mjs +1 -1
  175. package/es/components/scrollbar/src/scrollbar.mjs +46 -176
  176. package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
  177. package/es/components/scrollbar/src/scrollbar2.mjs +176 -46
  178. package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
  179. package/es/components/scrollbar/src/thumb.mjs +11 -134
  180. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  181. package/es/components/scrollbar/src/thumb2.mjs +134 -11
  182. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  183. package/es/components/statistic/index.mjs +2 -2
  184. package/es/components/statistic/src/statistic.mjs +70 -25
  185. package/es/components/statistic/src/statistic.mjs.map +1 -1
  186. package/es/components/statistic/src/statistic2.mjs +25 -70
  187. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  188. package/es/components/switch/index.mjs +2 -2
  189. package/es/components/switch/src/switch.mjs +245 -93
  190. package/es/components/switch/src/switch.mjs.map +1 -1
  191. package/es/components/switch/src/switch2.mjs +93 -245
  192. package/es/components/switch/src/switch2.mjs.map +1 -1
  193. package/es/components/tabs/index.mjs +1 -1
  194. package/es/components/tabs/src/tab-bar.mjs +7 -75
  195. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  196. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  197. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  198. package/es/components/tabs/src/tab-nav.mjs +1 -1
  199. package/es/components/teleport/index.mjs +2 -2
  200. package/es/components/teleport/src/teleport.mjs +44 -18
  201. package/es/components/teleport/src/teleport.mjs.map +1 -1
  202. package/es/components/teleport/src/teleport2.mjs +18 -44
  203. package/es/components/teleport/src/teleport2.mjs.map +1 -1
  204. package/es/components/text/index.mjs +2 -2
  205. package/es/components/text/src/text.mjs +22 -35
  206. package/es/components/text/src/text.mjs.map +1 -1
  207. package/es/components/text/src/text2.mjs +35 -22
  208. package/es/components/text/src/text2.mjs.map +1 -1
  209. package/es/components/timeline/index.mjs +2 -2
  210. package/es/components/timeline/src/timeline-item.mjs +72 -42
  211. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  212. package/es/components/timeline/src/timeline-item2.mjs +42 -72
  213. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  214. package/es/components/tooltip/src/tooltip.mjs +1 -1
  215. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  216. package/es/components/tooltip-v2/index.mjs +2 -2
  217. package/es/components/tooltip-v2/src/arrow.mjs +22 -37
  218. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  219. package/es/components/tooltip-v2/src/arrow2.mjs +37 -22
  220. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  221. package/es/components/tooltip-v2/src/tooltip.mjs +2 -2
  222. package/es/components/tooltip-v2/src/tooltip2.mjs +4 -4
  223. package/es/components/tooltip-v2/src/trigger.mjs +91 -12
  224. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  225. package/es/components/tooltip-v2/src/trigger2.mjs +12 -91
  226. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  227. package/es/components/upload/index.mjs +3 -3
  228. package/es/components/upload/src/upload-content.mjs +1 -1
  229. package/es/components/upload/src/upload-content2.mjs +1 -1
  230. package/es/components/upload/src/upload-list.mjs +177 -26
  231. package/es/components/upload/src/upload-list.mjs.map +1 -1
  232. package/es/components/upload/src/upload-list2.mjs +26 -177
  233. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  234. package/es/components/upload/src/upload.mjs +105 -119
  235. package/es/components/upload/src/upload.mjs.map +1 -1
  236. package/es/components/upload/src/upload2.mjs +119 -105
  237. package/es/components/upload/src/upload2.mjs.map +1 -1
  238. package/es/components/upload/src/use-handlers.mjs +1 -1
  239. package/es/index.mjs +33 -33
  240. package/lib/components/affix/index.js +2 -2
  241. package/lib/components/affix/src/affix.js +119 -27
  242. package/lib/components/affix/src/affix.js.map +1 -1
  243. package/lib/components/affix/src/affix2.js +27 -119
  244. package/lib/components/affix/src/affix2.js.map +1 -1
  245. package/lib/components/autocomplete/index.js +2 -2
  246. package/lib/components/autocomplete/src/autocomplete.js +99 -378
  247. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  248. package/lib/components/autocomplete/src/autocomplete2.js +378 -99
  249. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  250. package/lib/components/avatar/index.js +2 -2
  251. package/lib/components/avatar/src/avatar.js +35 -75
  252. package/lib/components/avatar/src/avatar.js.map +1 -1
  253. package/lib/components/avatar/src/avatar2.js +75 -35
  254. package/lib/components/avatar/src/avatar2.js.map +1 -1
  255. package/lib/components/backtop/index.js +2 -2
  256. package/lib/components/backtop/src/backtop.js +61 -24
  257. package/lib/components/backtop/src/backtop.js.map +1 -1
  258. package/lib/components/backtop/src/backtop2.js +24 -61
  259. package/lib/components/backtop/src/backtop2.js.map +1 -1
  260. package/lib/components/breadcrumb/index.js +2 -2
  261. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  262. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  263. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  264. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  265. package/lib/components/calendar/index.js +2 -2
  266. package/lib/components/calendar/src/calendar.js +131 -19
  267. package/lib/components/calendar/src/calendar.js.map +1 -1
  268. package/lib/components/calendar/src/calendar2.js +19 -131
  269. package/lib/components/calendar/src/calendar2.js.map +1 -1
  270. package/lib/components/calendar/src/date-table.js +87 -37
  271. package/lib/components/calendar/src/date-table.js.map +1 -1
  272. package/lib/components/calendar/src/date-table2.js +37 -87
  273. package/lib/components/calendar/src/date-table2.js.map +1 -1
  274. package/lib/components/calendar/src/use-date-table.js +1 -1
  275. package/lib/components/card/index.js +2 -2
  276. package/lib/components/card/src/card.js +35 -16
  277. package/lib/components/card/src/card.js.map +1 -1
  278. package/lib/components/card/src/card2.js +16 -35
  279. package/lib/components/card/src/card2.js.map +1 -1
  280. package/lib/components/carousel/index.js +4 -4
  281. package/lib/components/carousel/src/carousel-item.js +69 -8
  282. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  283. package/lib/components/carousel/src/carousel-item2.js +8 -69
  284. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  285. package/lib/components/carousel/src/carousel.js +57 -169
  286. package/lib/components/carousel/src/carousel.js.map +1 -1
  287. package/lib/components/carousel/src/carousel2.js +169 -57
  288. package/lib/components/carousel/src/carousel2.js.map +1 -1
  289. package/lib/components/cascader/src/cascader.js +0 -1
  290. package/lib/components/cascader/src/cascader.js.map +1 -1
  291. package/lib/components/cascader-panel/src/index.js +1 -1
  292. package/lib/components/cascader-panel/src/menu.js +1 -1
  293. package/lib/components/cascader-panel/src/node.js +209 -116
  294. package/lib/components/cascader-panel/src/node.js.map +1 -1
  295. package/lib/components/cascader-panel/src/node2.js +116 -209
  296. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  297. package/lib/components/cascader-panel/src/store.js +1 -1
  298. package/lib/components/collection/index.js +1 -1
  299. package/lib/components/collection/src/collection.js +9 -66
  300. package/lib/components/collection/src/collection.js.map +1 -1
  301. package/lib/components/collection/src/collection2.js +66 -9
  302. package/lib/components/collection/src/collection2.js.map +1 -1
  303. package/lib/components/countdown/index.js +2 -2
  304. package/lib/components/countdown/src/countdown.js +76 -24
  305. package/lib/components/countdown/src/countdown.js.map +1 -1
  306. package/lib/components/countdown/src/countdown2.js +24 -76
  307. package/lib/components/countdown/src/countdown2.js.map +1 -1
  308. package/lib/components/descriptions/index.js +2 -2
  309. package/lib/components/descriptions/src/description.js +120 -27
  310. package/lib/components/descriptions/src/description.js.map +1 -1
  311. package/lib/components/descriptions/src/description2.js +27 -120
  312. package/lib/components/descriptions/src/description2.js.map +1 -1
  313. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  314. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  315. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  316. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  317. package/lib/components/dialog/index.js +2 -2
  318. package/lib/components/dialog/src/dialog.js +74 -174
  319. package/lib/components/dialog/src/dialog.js.map +1 -1
  320. package/lib/components/dialog/src/dialog2.js +174 -74
  321. package/lib/components/dialog/src/dialog2.js.map +1 -1
  322. package/lib/components/drawer/src/drawer.js +1 -1
  323. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  324. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  325. package/lib/components/dropdown/src/dropdown.js +1 -1
  326. package/lib/components/dropdown/src/dropdown2.js +1 -1
  327. package/lib/components/form/index.js +2 -2
  328. package/lib/components/form/src/form.js +61 -149
  329. package/lib/components/form/src/form.js.map +1 -1
  330. package/lib/components/form/src/form2.js +149 -61
  331. package/lib/components/form/src/form2.js.map +1 -1
  332. package/lib/components/index.js +33 -33
  333. package/lib/components/link/index.js +2 -2
  334. package/lib/components/link/src/link.js +50 -22
  335. package/lib/components/link/src/link.js.map +1 -1
  336. package/lib/components/link/src/link2.js +22 -50
  337. package/lib/components/link/src/link2.js.map +1 -1
  338. package/lib/components/menu/index.js +2 -2
  339. package/lib/components/menu/src/menu-item.js +15 -97
  340. package/lib/components/menu/src/menu-item.js.map +1 -1
  341. package/lib/components/menu/src/menu-item2.js +97 -15
  342. package/lib/components/menu/src/menu-item2.js.map +1 -1
  343. package/lib/components/notification/index.js +1 -1
  344. package/lib/components/notification/src/notification.js +68 -150
  345. package/lib/components/notification/src/notification.js.map +1 -1
  346. package/lib/components/notification/src/notification2.js +150 -68
  347. package/lib/components/notification/src/notification2.js.map +1 -1
  348. package/lib/components/notification/src/notify.js +2 -2
  349. package/lib/components/pagination/src/components/jumper.js +9 -60
  350. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  351. package/lib/components/pagination/src/components/jumper2.js +60 -9
  352. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  353. package/lib/components/pagination/src/components/sizes.js +22 -70
  354. package/lib/components/pagination/src/components/sizes.js.map +1 -1
  355. package/lib/components/pagination/src/components/sizes2.js +70 -22
  356. package/lib/components/pagination/src/components/sizes2.js.map +1 -1
  357. package/lib/components/pagination/src/pagination.js +2 -2
  358. package/lib/components/popover/index.js +2 -2
  359. package/lib/components/popover/src/popover.js +111 -67
  360. package/lib/components/popover/src/popover.js.map +1 -1
  361. package/lib/components/popover/src/popover2.js +67 -111
  362. package/lib/components/popover/src/popover2.js.map +1 -1
  363. package/lib/components/popper/index.js +2 -2
  364. package/lib/components/popper/src/arrow.js +39 -9
  365. package/lib/components/popper/src/arrow.js.map +1 -1
  366. package/lib/components/popper/src/arrow2.js +9 -39
  367. package/lib/components/popper/src/arrow2.js.map +1 -1
  368. package/lib/components/progress/index.js +2 -2
  369. package/lib/components/progress/src/progress.js +204 -59
  370. package/lib/components/progress/src/progress.js.map +1 -1
  371. package/lib/components/progress/src/progress2.js +59 -204
  372. package/lib/components/progress/src/progress2.js.map +1 -1
  373. package/lib/components/radio/index.js +2 -2
  374. package/lib/components/radio/src/radio-button.js +1 -1
  375. package/lib/components/radio/src/radio-group.js +1 -1
  376. package/lib/components/radio/src/radio.js +74 -37
  377. package/lib/components/radio/src/radio.js.map +1 -1
  378. package/lib/components/radio/src/radio2.js +37 -74
  379. package/lib/components/radio/src/radio2.js.map +1 -1
  380. package/lib/components/resizable-columns/index.d.ts +2 -2
  381. package/lib/components/resizable-columns/index.js +4 -4
  382. package/lib/components/resizable-columns/src/constants.d.ts +1 -2
  383. package/lib/components/resizable-columns/src/constants.js.map +1 -1
  384. package/lib/components/resizable-columns/src/resizable-column.js +7 -111
  385. package/lib/components/resizable-columns/src/resizable-column.js.map +1 -1
  386. package/lib/components/resizable-columns/src/resizable-column.vue.d.ts +1 -1
  387. package/lib/components/resizable-columns/src/resizable-column2.js +114 -7
  388. package/lib/components/resizable-columns/src/resizable-column2.js.map +1 -1
  389. package/lib/components/resizable-columns/src/resizable-columns.js +237 -12
  390. package/lib/components/resizable-columns/src/resizable-columns.js.map +1 -1
  391. package/lib/components/resizable-columns/src/resizable-columns2.js +12 -229
  392. package/lib/components/resizable-columns/src/resizable-columns2.js.map +1 -1
  393. package/lib/components/roving-focus-group/index.js +2 -2
  394. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  395. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  396. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  397. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  398. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  399. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  400. package/lib/components/row/index.js +2 -2
  401. package/lib/components/row/src/row.js +45 -32
  402. package/lib/components/row/src/row.js.map +1 -1
  403. package/lib/components/row/src/row2.js +32 -45
  404. package/lib/components/row/src/row2.js.map +1 -1
  405. package/lib/components/scrollbar/index.js +3 -3
  406. package/lib/components/scrollbar/src/bar.js +1 -1
  407. package/lib/components/scrollbar/src/scrollbar.js +47 -176
  408. package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
  409. package/lib/components/scrollbar/src/scrollbar2.js +176 -47
  410. package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
  411. package/lib/components/scrollbar/src/thumb.js +11 -134
  412. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  413. package/lib/components/scrollbar/src/thumb2.js +134 -11
  414. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  415. package/lib/components/statistic/index.js +2 -2
  416. package/lib/components/statistic/src/statistic.js +70 -25
  417. package/lib/components/statistic/src/statistic.js.map +1 -1
  418. package/lib/components/statistic/src/statistic2.js +25 -70
  419. package/lib/components/statistic/src/statistic2.js.map +1 -1
  420. package/lib/components/switch/index.js +2 -2
  421. package/lib/components/switch/src/switch.js +244 -93
  422. package/lib/components/switch/src/switch.js.map +1 -1
  423. package/lib/components/switch/src/switch2.js +93 -244
  424. package/lib/components/switch/src/switch2.js.map +1 -1
  425. package/lib/components/tabs/index.js +1 -1
  426. package/lib/components/tabs/src/tab-bar.js +7 -75
  427. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  428. package/lib/components/tabs/src/tab-bar2.js +75 -7
  429. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  430. package/lib/components/tabs/src/tab-nav.js +1 -1
  431. package/lib/components/teleport/index.js +2 -2
  432. package/lib/components/teleport/src/teleport.js +44 -18
  433. package/lib/components/teleport/src/teleport.js.map +1 -1
  434. package/lib/components/teleport/src/teleport2.js +18 -44
  435. package/lib/components/teleport/src/teleport2.js.map +1 -1
  436. package/lib/components/text/index.js +2 -2
  437. package/lib/components/text/src/text.js +22 -35
  438. package/lib/components/text/src/text.js.map +1 -1
  439. package/lib/components/text/src/text2.js +35 -22
  440. package/lib/components/text/src/text2.js.map +1 -1
  441. package/lib/components/timeline/index.js +2 -2
  442. package/lib/components/timeline/src/timeline-item.js +72 -42
  443. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  444. package/lib/components/timeline/src/timeline-item2.js +42 -72
  445. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  446. package/lib/components/tooltip/src/tooltip.js +1 -1
  447. package/lib/components/tooltip/src/tooltip2.js +1 -1
  448. package/lib/components/tooltip-v2/index.js +2 -2
  449. package/lib/components/tooltip-v2/src/arrow.js +23 -37
  450. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  451. package/lib/components/tooltip-v2/src/arrow2.js +37 -23
  452. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  453. package/lib/components/tooltip-v2/src/tooltip.js +2 -2
  454. package/lib/components/tooltip-v2/src/tooltip2.js +4 -4
  455. package/lib/components/tooltip-v2/src/trigger.js +91 -12
  456. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  457. package/lib/components/tooltip-v2/src/trigger2.js +12 -91
  458. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  459. package/lib/components/upload/index.js +3 -3
  460. package/lib/components/upload/src/upload-content.js +1 -1
  461. package/lib/components/upload/src/upload-content2.js +1 -1
  462. package/lib/components/upload/src/upload-list.js +177 -27
  463. package/lib/components/upload/src/upload-list.js.map +1 -1
  464. package/lib/components/upload/src/upload-list2.js +27 -177
  465. package/lib/components/upload/src/upload-list2.js.map +1 -1
  466. package/lib/components/upload/src/upload.js +108 -119
  467. package/lib/components/upload/src/upload.js.map +1 -1
  468. package/lib/components/upload/src/upload2.js +119 -108
  469. package/lib/components/upload/src/upload2.js.map +1 -1
  470. package/lib/components/upload/src/use-handlers.js +1 -1
  471. package/lib/index.js +33 -33
  472. package/package.json +1 -1
  473. package/theme-chalk/el-checkbox.css +1 -1
  474. package/theme-chalk/el-color-picker.css +1 -1
  475. package/theme-chalk/el-input.css +1 -1
  476. package/theme-chalk/el-radio.css +1 -1
  477. package/theme-chalk/el-rate.css +1 -1
  478. package/theme-chalk/el-select-v2.css +1 -1
  479. package/theme-chalk/el-switch.css +1 -1
  480. package/theme-chalk/index.css +1 -1
  481. package/theme-chalk/src/checkbox.scss +5 -0
  482. package/theme-chalk/src/color-picker.scss +4 -0
  483. package/theme-chalk/src/input.scss +30 -4
  484. package/theme-chalk/src/radio.scss +11 -0
  485. package/theme-chalk/src/rate.scss +1 -0
  486. package/theme-chalk/src/select-v2.scss +1 -0
  487. package/theme-chalk/src/switch.scss +1 -0
  488. package/web-types.json +1 -1
@@ -2,84 +2,44 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
- require('../../../hooks/index.js');
8
5
  require('../../../utils/index.js');
9
- require('../../config-provider/index.js');
10
- var avatar = require('./avatar2.js');
11
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
- var index = require('../../../hooks/use-namespace/index.js');
13
- var shared = require('@vue/shared');
6
+ require('../../../constants/index.js');
7
+ var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var size = require('../../../constants/size.js');
14
9
  var types = require('../../../utils/types.js');
15
- var style = require('../../../utils/dom/style.js');
16
- var forEditor = require('../../config-provider/src/for-editor.js');
10
+ var icon = require('../../../utils/vue/icon.js');
17
11
 
18
- const _hoisted_1 = ["src", "alt", "srcset"];
19
- const __default__ = vue.defineComponent({
20
- name: "ElAvatar"
12
+ const avatarProps = runtime.buildProps({
13
+ size: {
14
+ type: [Number, String],
15
+ values: size.componentSizes,
16
+ default: "",
17
+ validator: (val) => types.isNumber(val)
18
+ },
19
+ shape: {
20
+ type: String,
21
+ values: ["circle", "square"],
22
+ default: "circle"
23
+ },
24
+ icon: {
25
+ type: icon.iconPropType
26
+ },
27
+ src: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ alt: String,
32
+ srcSet: String,
33
+ fit: {
34
+ type: runtime.definePropType(String),
35
+ default: "cover"
36
+ },
37
+ bgColor: String
21
38
  });
22
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
- ...__default__,
24
- props: avatar.avatarProps,
25
- emits: avatar.avatarEmits,
26
- setup(__props, { emit }) {
27
- const props = __props;
28
- const ns = index.useNamespace("avatar");
29
- const hasLoadError = vue.ref(false);
30
- const avatarClass = vue.computed(() => {
31
- const { size, icon, shape } = props;
32
- const classList = [ns.b()];
33
- if (shared.isString(size))
34
- classList.push(ns.m(size));
35
- if (icon)
36
- classList.push(ns.m("icon"));
37
- if (shape)
38
- classList.push(ns.m(shape));
39
- return classList;
40
- });
41
- const sizeStyle = vue.computed(() => {
42
- const { size, bgColor } = props;
43
- const styleObj = {};
44
- if (types.isNumber(size)) {
45
- styleObj["size"] = style.addUnit(size) || "";
46
- }
47
- if (types.isColor(bgColor)) {
48
- styleObj["bg-color"] = bgColor || "";
49
- }
50
- return Object.keys(styleObj).length > 0 ? ns.cssVarBlock(styleObj) : void 0;
51
- });
52
- const fitStyle = vue.computed(() => ({
53
- objectFit: props.fit
54
- }));
55
- forEditor.watch(() => props.src, () => hasLoadError.value = false);
56
- function handleError(e) {
57
- hasLoadError.value = true;
58
- emit("error", e);
59
- }
60
- return (_ctx, _cache) => {
61
- return vue.openBlock(), vue.createElementBlock("span", {
62
- class: vue.normalizeClass(vue.unref(avatarClass)),
63
- style: vue.normalizeStyle(vue.unref(sizeStyle))
64
- }, [
65
- (_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (vue.openBlock(), vue.createElementBlock("img", {
66
- key: 0,
67
- src: _ctx.src,
68
- alt: _ctx.alt,
69
- srcset: _ctx.srcSet,
70
- style: vue.normalizeStyle(vue.unref(fitStyle)),
71
- onError: handleError
72
- }, null, 44, _hoisted_1)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
73
- default: vue.withCtx(() => [
74
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
75
- ]),
76
- _: 1
77
- })) : vue.renderSlot(_ctx.$slots, "default", { key: 2 })
78
- ], 6);
79
- };
80
- }
81
- });
82
- var Avatar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\avatar\\src\\avatar.vue"]]);
39
+ const avatarEmits = {
40
+ error: (evt) => evt instanceof Event
41
+ };
83
42
 
84
- exports["default"] = Avatar;
43
+ exports.avatarEmits = avatarEmits;
44
+ exports.avatarProps = avatarProps;
85
45
  //# sourceMappingURL=avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.js","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isColor, isNumber, isString } from '@element-plus/utils'\nimport { watch } from '../../config-provider'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size, bgColor } = props\n\n const styleObj: any = {}\n if (isNumber(size)) {\n styleObj['size'] = addUnit(size) || ''\n }\n if (isColor(bgColor)) {\n styleObj['bg-color'] = bgColor || ''\n }\n\n return Object.keys(styleObj).length > 0\n ? (ns.cssVarBlock(styleObj) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":["useNamespace","ref","computed","isString","isNumber","addUnit","isColor","watch"],"mappings":";;;;;;;;;;;;;;;;;;uCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAeC,QAAI,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,WAAA,GAAcC,aAAS,MAAM;AACjC,MAAM,MAAA,EAAE,IAAM,EAAA,IAAA,EAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AAC9B,MAAA,MAAM,SAAY,GAAA,CAAC,EAAG,CAAA,CAAA,EAAG,CAAA,CAAA;AACzB,MAAA,IAAIC,gBAAS,IAAI,CAAA;AAAG,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA;AAC7C,MAAI,IAAA,IAAA;AAAM,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AACrC,MAAI,IAAA,KAAA;AAAO,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,KAAK,CAAC,CAAA,CAAA;AACrC,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAC/B,MAAM,MAAA,EAAE,MAAM,OAAY,EAAA,GAAA,KAAA,CAAA;AAE1B,MAAA,MAAM,WAAgB,EAAC,CAAA;AACvB,MAAI,IAAAE,cAAA,CAAS,IAAI,CAAG,EAAA;AAClB,QAAS,QAAA,CAAA,MAAA,CAAA,GAAUC,aAAQ,CAAA,IAAI,CAAK,IAAA,EAAA,CAAA;AAAA,OACtC;AACA,MAAI,IAAAC,aAAA,CAAQ,OAAO,CAAG,EAAA;AACpB,QAAA,QAAA,CAAS,cAAc,OAAW,IAAA,EAAA,CAAA;AAAA,OACpC;AAEA,MAAO,OAAA,MAAA,CAAO,KAAK,QAAQ,CAAA,CAAE,SAAS,CACjC,GAAA,EAAA,CAAG,WAAY,CAAA,QAAQ,CACxB,GAAA,KAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAWJ,aAAwB,OAAO;AAAA,MAC9C,WAAW,KAAM,CAAA,GAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAGF,IAAAK,eAAA,CACE,MAAM,KAAM,CAAA,GAAA,EACZ,MAAO,YAAA,CAAa,QAAQ,KAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,WAAA,CAAqB,CAAU,EAAA;AAC7B,MAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AACrB,MAAA,IAAA,CAAK,SAAS,CAAC,CAAA,CAAA;AAAA,KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"avatar.js","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n /**\n * @description background color\n */\n bgColor: String,\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":["buildProps","componentSizes","isNumber","iconPropType","definePropType"],"mappings":";;;;;;;;;;;AAOY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAEC,mBAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAKC,cAAQ,CAAC,GAAG,CAAC;AACrC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,OAAO,EAAE,MAAM;AACjB,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC;;;;;"}
@@ -2,44 +2,84 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ require('../../../hooks/index.js');
5
8
  require('../../../utils/index.js');
6
- require('../../../constants/index.js');
7
- var runtime = require('../../../utils/vue/props/runtime.js');
8
- var size = require('../../../constants/size.js');
9
+ require('../../config-provider/index.js');
10
+ var avatar = require('./avatar.js');
11
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
13
+ var shared = require('@vue/shared');
9
14
  var types = require('../../../utils/types.js');
10
- var icon = require('../../../utils/vue/icon.js');
15
+ var style = require('../../../utils/dom/style.js');
16
+ var forEditor = require('../../config-provider/src/for-editor.js');
11
17
 
12
- const avatarProps = runtime.buildProps({
13
- size: {
14
- type: [Number, String],
15
- values: size.componentSizes,
16
- default: "",
17
- validator: (val) => types.isNumber(val)
18
- },
19
- shape: {
20
- type: String,
21
- values: ["circle", "square"],
22
- default: "circle"
23
- },
24
- icon: {
25
- type: icon.iconPropType
26
- },
27
- src: {
28
- type: String,
29
- default: ""
30
- },
31
- alt: String,
32
- srcSet: String,
33
- fit: {
34
- type: runtime.definePropType(String),
35
- default: "cover"
36
- },
37
- bgColor: String
18
+ const _hoisted_1 = ["src", "alt", "srcset"];
19
+ const __default__ = vue.defineComponent({
20
+ name: "ElAvatar"
38
21
  });
39
- const avatarEmits = {
40
- error: (evt) => evt instanceof Event
41
- };
22
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
+ ...__default__,
24
+ props: avatar.avatarProps,
25
+ emits: avatar.avatarEmits,
26
+ setup(__props, { emit }) {
27
+ const props = __props;
28
+ const ns = index.useNamespace("avatar");
29
+ const hasLoadError = vue.ref(false);
30
+ const avatarClass = vue.computed(() => {
31
+ const { size, icon, shape } = props;
32
+ const classList = [ns.b()];
33
+ if (shared.isString(size))
34
+ classList.push(ns.m(size));
35
+ if (icon)
36
+ classList.push(ns.m("icon"));
37
+ if (shape)
38
+ classList.push(ns.m(shape));
39
+ return classList;
40
+ });
41
+ const sizeStyle = vue.computed(() => {
42
+ const { size, bgColor } = props;
43
+ const styleObj = {};
44
+ if (types.isNumber(size)) {
45
+ styleObj["size"] = style.addUnit(size) || "";
46
+ }
47
+ if (types.isColor(bgColor)) {
48
+ styleObj["bg-color"] = bgColor || "";
49
+ }
50
+ return Object.keys(styleObj).length > 0 ? ns.cssVarBlock(styleObj) : void 0;
51
+ });
52
+ const fitStyle = vue.computed(() => ({
53
+ objectFit: props.fit
54
+ }));
55
+ forEditor.watch(() => props.src, () => hasLoadError.value = false);
56
+ function handleError(e) {
57
+ hasLoadError.value = true;
58
+ emit("error", e);
59
+ }
60
+ return (_ctx, _cache) => {
61
+ return vue.openBlock(), vue.createElementBlock("span", {
62
+ class: vue.normalizeClass(vue.unref(avatarClass)),
63
+ style: vue.normalizeStyle(vue.unref(sizeStyle))
64
+ }, [
65
+ (_ctx.src || _ctx.srcSet) && !hasLoadError.value ? (vue.openBlock(), vue.createElementBlock("img", {
66
+ key: 0,
67
+ src: _ctx.src,
68
+ alt: _ctx.alt,
69
+ srcset: _ctx.srcSet,
70
+ style: vue.normalizeStyle(vue.unref(fitStyle)),
71
+ onError: handleError
72
+ }, null, 44, _hoisted_1)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
73
+ default: vue.withCtx(() => [
74
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
75
+ ]),
76
+ _: 1
77
+ })) : vue.renderSlot(_ctx.$slots, "default", { key: 2 })
78
+ ], 6);
79
+ };
80
+ }
81
+ });
82
+ var Avatar = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\avatar\\src\\avatar.vue"]]);
42
83
 
43
- exports.avatarEmits = avatarEmits;
44
- exports.avatarProps = avatarProps;
84
+ exports["default"] = Avatar;
45
85
  //# sourceMappingURL=avatar2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isNumber,\n} from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\nimport type { ObjectFitProperty } from 'csstype'\n\nexport const avatarProps = buildProps({\n /**\n * @description avatar size.\n */\n size: {\n type: [Number, String],\n values: componentSizes,\n default: '',\n validator: (val: unknown): val is number => isNumber(val),\n },\n /**\n * @description avatar shape.\n */\n shape: {\n type: String,\n values: ['circle', 'square'],\n default: 'circle',\n },\n /**\n * @description representation type to icon, more info on icon component.\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description the source of the image for an image avatar.\n */\n src: {\n type: String,\n default: '',\n },\n /**\n * @description native attribute `alt` of image avatar.\n */\n alt: String,\n /**\n * @description native attribute srcset of image avatar.\n */\n srcSet: String,\n /**\n * @description set how the image fit its container for an image avatar.\n */\n fit: {\n type: definePropType<ObjectFitProperty>(String),\n default: 'cover',\n },\n /**\n * @description background color\n */\n bgColor: String,\n} as const)\nexport type AvatarProps = ExtractPropTypes<typeof avatarProps>\n\nexport const avatarEmits = {\n error: (evt: Event) => evt instanceof Event,\n}\nexport type AvatarEmits = typeof avatarEmits\n"],"names":["buildProps","componentSizes","isNumber","iconPropType","definePropType"],"mappings":";;;;;;;;;;;AAOY,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,MAAM,EAAEC,mBAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS,EAAE,CAAC,GAAG,KAAKC,cAAQ,CAAC,GAAG,CAAC;AACrC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;AAChC,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,OAAO,EAAE,MAAM;AACjB,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,KAAK;AACtC;;;;;"}
1
+ {"version":3,"file":"avatar2.js","sources":["../../../../../../packages/components/avatar/src/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n v-if=\"(src || srcSet) && !hasLoadError\"\n :src=\"src\"\n :alt=\"alt\"\n :srcset=\"srcSet\"\n :style=\"fitStyle\"\n @error=\"handleError\"\n />\n <el-icon v-else-if=\"icon\">\n <component :is=\"icon\" />\n </el-icon>\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { addUnit, isColor, isNumber, isString } from '@element-plus/utils'\nimport { watch } from '../../config-provider'\nimport { avatarEmits, avatarProps } from './avatar'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElAvatar',\n})\n\nconst props = defineProps(avatarProps)\nconst emit = defineEmits(avatarEmits)\n\nconst ns = useNamespace('avatar')\n\nconst hasLoadError = ref(false)\n\nconst avatarClass = computed(() => {\n const { size, icon, shape } = props\n const classList = [ns.b()]\n if (isString(size)) classList.push(ns.m(size))\n if (icon) classList.push(ns.m('icon'))\n if (shape) classList.push(ns.m(shape))\n return classList\n})\n\nconst sizeStyle = computed(() => {\n const { size, bgColor } = props\n\n const styleObj: any = {}\n if (isNumber(size)) {\n styleObj['size'] = addUnit(size) || ''\n }\n if (isColor(bgColor)) {\n styleObj['bg-color'] = bgColor || ''\n }\n\n return Object.keys(styleObj).length > 0\n ? (ns.cssVarBlock(styleObj) as CSSProperties)\n : undefined\n})\n\nconst fitStyle = computed<CSSProperties>(() => ({\n objectFit: props.fit,\n}))\n\n// need reset hasLoadError to false if src changed\nwatch(\n () => props.src,\n () => (hasLoadError.value = false)\n)\n\nfunction handleError(e: Event) {\n hasLoadError.value = true\n emit('error', e)\n}\n</script>\n"],"names":["useNamespace","ref","computed","isString","isNumber","addUnit","isColor","watch"],"mappings":";;;;;;;;;;;;;;;;;;uCA2Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAA,GAAKA,mBAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,YAAA,GAAeC,QAAI,KAAK,CAAA,CAAA;AAE9B,IAAM,MAAA,WAAA,GAAcC,aAAS,MAAM;AACjC,MAAM,MAAA,EAAE,IAAM,EAAA,IAAA,EAAM,KAAU,EAAA,GAAA,KAAA,CAAA;AAC9B,MAAA,MAAM,SAAY,GAAA,CAAC,EAAG,CAAA,CAAA,EAAG,CAAA,CAAA;AACzB,MAAA,IAAIC,gBAAS,IAAI,CAAA;AAAG,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA;AAC7C,MAAI,IAAA,IAAA;AAAM,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,MAAM,CAAC,CAAA,CAAA;AACrC,MAAI,IAAA,KAAA;AAAO,QAAA,SAAA,CAAU,IAAK,CAAA,EAAA,CAAG,CAAE,CAAA,KAAK,CAAC,CAAA,CAAA;AACrC,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,SAAA,GAAYD,aAAS,MAAM;AAC/B,MAAM,MAAA,EAAE,MAAM,OAAY,EAAA,GAAA,KAAA,CAAA;AAE1B,MAAA,MAAM,WAAgB,EAAC,CAAA;AACvB,MAAI,IAAAE,cAAA,CAAS,IAAI,CAAG,EAAA;AAClB,QAAS,QAAA,CAAA,MAAA,CAAA,GAAUC,aAAQ,CAAA,IAAI,CAAK,IAAA,EAAA,CAAA;AAAA,OACtC;AACA,MAAI,IAAAC,aAAA,CAAQ,OAAO,CAAG,EAAA;AACpB,QAAA,QAAA,CAAS,cAAc,OAAW,IAAA,EAAA,CAAA;AAAA,OACpC;AAEA,MAAO,OAAA,MAAA,CAAO,KAAK,QAAQ,CAAA,CAAE,SAAS,CACjC,GAAA,EAAA,CAAG,WAAY,CAAA,QAAQ,CACxB,GAAA,KAAA,CAAA,CAAA;AAAA,KACL,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAWJ,aAAwB,OAAO;AAAA,MAC9C,WAAW,KAAM,CAAA,GAAA;AAAA,KACjB,CAAA,CAAA,CAAA;AAGF,IAAAK,eAAA,CACE,MAAM,KAAM,CAAA,GAAA,EACZ,MAAO,YAAA,CAAa,QAAQ,KAC9B,CAAA,CAAA;AAEA,IAAA,SAAA,WAAA,CAAqB,CAAU,EAAA;AAC7B,MAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AACrB,MAAA,IAAA,CAAK,SAAS,CAAC,CAAA,CAAA;AAAA,KACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var backtop$1 = require('./src/backtop2.js');
7
- var backtop = require('./src/backtop.js');
6
+ var backtop$1 = require('./src/backtop.js');
7
+ var backtop = require('./src/backtop2.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElBacktop = install.withInstall(backtop$1["default"]);
@@ -2,29 +2,66 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const backtopProps = {
6
- visibilityHeight: {
7
- type: Number,
8
- default: 200
9
- },
10
- target: {
11
- type: String,
12
- default: ""
13
- },
14
- right: {
15
- type: Number,
16
- default: 40
17
- },
18
- bottom: {
19
- type: Number,
20
- default: 40
21
- },
22
- widget: String
23
- };
24
- const backtopEmits = {
25
- click: (evt) => evt instanceof MouseEvent
26
- };
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ require('../../../hooks/index.js');
9
+ var backtop = require('./backtop2.js');
10
+ var useBacktop = require('./use-backtop.js');
11
+ require('../../config-provider/index.js');
12
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
+ var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
14
+ var index = require('../../../hooks/use-namespace/index.js');
27
15
 
28
- exports.backtopEmits = backtopEmits;
29
- exports.backtopProps = backtopProps;
16
+ const _hoisted_1 = ["widget"];
17
+ const COMPONENT_NAME = "ElBacktop";
18
+ const __default__ = vue.defineComponent({
19
+ name: COMPONENT_NAME
20
+ });
21
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
+ ...__default__,
23
+ props: backtop.backtopProps,
24
+ emits: backtop.backtopEmits,
25
+ setup(__props, { emit }) {
26
+ const props = __props;
27
+ const forEditor = useGlobalConfig.useGlobalConfig("forEditor");
28
+ const ns = index.useNamespace("backtop");
29
+ const { handleClick, visible } = useBacktop.useBackTop(props, emit, COMPONENT_NAME);
30
+ const backTopStyle = vue.computed(() => ({
31
+ right: `${props.right}px`,
32
+ bottom: `${props.bottom}px`
33
+ }));
34
+ return (_ctx, _cache) => {
35
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
36
+ duration: vue.unref(forEditor) ? -1 : 0,
37
+ name: `${vue.unref(ns).namespace.value}-fade-in`
38
+ }, {
39
+ default: vue.withCtx(() => [
40
+ vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
41
+ key: 0,
42
+ style: vue.normalizeStyle(vue.unref(backTopStyle)),
43
+ class: vue.normalizeClass(vue.unref(ns).b()),
44
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"])),
45
+ widget: _ctx.widget
46
+ }, [
47
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
48
+ vue.createVNode(vue.unref(index$1.ElIcon), {
49
+ class: vue.normalizeClass(vue.unref(ns).e("icon"))
50
+ }, {
51
+ default: vue.withCtx(() => [
52
+ vue.createVNode(vue.unref(iconsVue.CaretTop))
53
+ ]),
54
+ _: 1
55
+ }, 8, ["class"])
56
+ ])
57
+ ], 14, _hoisted_1)) : vue.createCommentVNode("v-if", true)
58
+ ]),
59
+ _: 3
60
+ }, 8, ["duration", "name"]);
61
+ };
62
+ }
63
+ });
64
+ var Backtop = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\backtop\\src\\backtop.vue"]]);
65
+
66
+ exports["default"] = Backtop;
30
67
  //# sourceMappingURL=backtop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n widget: String,\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":";;;;AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
1
+ {"version":3,"file":"backtop.js","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :duration=\"forEditor ? -1: 0\" :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n :widget=\"widget\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\nimport { useGlobalConfig } from '../../config-provider'\n\nconst forEditor = useGlobalConfig('forEditor')\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["useGlobalConfig","useNamespace","useBackTop","computed"],"mappings":";;;;;;;;;;;;;;;;;uCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AANA,IAAM,MAAA,SAAA,GAAYA,gCAAgB,WAAW,CAAA,CAAA;AAW7C,IAAM,MAAA,EAAA,GAAKC,mBAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAYC,qBAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,66 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
- var iconsVue = require('@element-plus/icons-vue');
8
- require('../../../hooks/index.js');
9
- var backtop = require('./backtop.js');
10
- var useBacktop = require('./use-backtop.js');
11
- require('../../config-provider/index.js');
12
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
13
- var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
14
- var index = require('../../../hooks/use-namespace/index.js');
5
+ const backtopProps = {
6
+ visibilityHeight: {
7
+ type: Number,
8
+ default: 200
9
+ },
10
+ target: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ right: {
15
+ type: Number,
16
+ default: 40
17
+ },
18
+ bottom: {
19
+ type: Number,
20
+ default: 40
21
+ },
22
+ widget: String
23
+ };
24
+ const backtopEmits = {
25
+ click: (evt) => evt instanceof MouseEvent
26
+ };
15
27
 
16
- const _hoisted_1 = ["widget"];
17
- const COMPONENT_NAME = "ElBacktop";
18
- const __default__ = vue.defineComponent({
19
- name: COMPONENT_NAME
20
- });
21
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
22
- ...__default__,
23
- props: backtop.backtopProps,
24
- emits: backtop.backtopEmits,
25
- setup(__props, { emit }) {
26
- const props = __props;
27
- const forEditor = useGlobalConfig.useGlobalConfig("forEditor");
28
- const ns = index.useNamespace("backtop");
29
- const { handleClick, visible } = useBacktop.useBackTop(props, emit, COMPONENT_NAME);
30
- const backTopStyle = vue.computed(() => ({
31
- right: `${props.right}px`,
32
- bottom: `${props.bottom}px`
33
- }));
34
- return (_ctx, _cache) => {
35
- return vue.openBlock(), vue.createBlock(vue.Transition, {
36
- duration: vue.unref(forEditor) ? -1 : 0,
37
- name: `${vue.unref(ns).namespace.value}-fade-in`
38
- }, {
39
- default: vue.withCtx(() => [
40
- vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
41
- key: 0,
42
- style: vue.normalizeStyle(vue.unref(backTopStyle)),
43
- class: vue.normalizeClass(vue.unref(ns).b()),
44
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"])),
45
- widget: _ctx.widget
46
- }, [
47
- vue.renderSlot(_ctx.$slots, "default", {}, () => [
48
- vue.createVNode(vue.unref(index$1.ElIcon), {
49
- class: vue.normalizeClass(vue.unref(ns).e("icon"))
50
- }, {
51
- default: vue.withCtx(() => [
52
- vue.createVNode(vue.unref(iconsVue.CaretTop))
53
- ]),
54
- _: 1
55
- }, 8, ["class"])
56
- ])
57
- ], 14, _hoisted_1)) : vue.createCommentVNode("v-if", true)
58
- ]),
59
- _: 3
60
- }, 8, ["duration", "name"]);
61
- };
62
- }
63
- });
64
- var Backtop = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\backtop\\src\\backtop.vue"]]);
65
-
66
- exports["default"] = Backtop;
28
+ exports.backtopEmits = backtopEmits;
29
+ exports.backtopProps = backtopProps;
67
30
  //# sourceMappingURL=backtop2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backtop2.js","sources":["../../../../../../packages/components/backtop/src/backtop.vue"],"sourcesContent":["<template>\n <transition :duration=\"forEditor ? -1: 0\" :name=\"`${ns.namespace.value}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n :widget=\"widget\"\n >\n <slot>\n <el-icon :class=\"ns.e('icon')\"><caret-top /></el-icon>\n </slot>\n </div>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { CaretTop } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { backtopEmits, backtopProps } from './backtop'\nimport { useBackTop } from './use-backtop'\nimport { useGlobalConfig } from '../../config-provider'\n\nconst forEditor = useGlobalConfig('forEditor')\n\nconst COMPONENT_NAME = 'ElBacktop'\n\ndefineOptions({\n name: COMPONENT_NAME,\n})\n\nconst props = defineProps(backtopProps)\nconst emit = defineEmits(backtopEmits)\n\nconst ns = useNamespace('backtop')\n\nconst { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME)\n\nconst backTopStyle = computed(() => ({\n right: `${props.right}px`,\n bottom: `${props.bottom}px`,\n}))\n</script>\n"],"names":["useGlobalConfig","useNamespace","useBackTop","computed"],"mappings":";;;;;;;;;;;;;;;;;uCA6Bc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR;;;;;;;AANA,IAAM,MAAA,SAAA,GAAYA,gCAAgB,WAAW,CAAA,CAAA;AAW7C,IAAM,MAAA,EAAA,GAAKC,mBAAa,SAAS,CAAA,CAAA;AAEjC,IAAA,MAAM,EAAE,WAAa,EAAA,OAAA,EAAA,GAAYC,qBAAW,CAAA,KAAA,EAAO,MAAM,cAAc,CAAA,CAAA;AAEvE,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,KAAA,EAAO,GAAG,KAAM,CAAA,KAAA,CAAA,EAAA,CAAA;AAAA,MAChB,MAAA,EAAQ,GAAG,KAAM,CAAA,MAAA,CAAA,EAAA,CAAA;AAAA,KACjB,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"backtop2.js","sources":["../../../../../../packages/components/backtop/src/backtop.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const backtopProps = {\n /**\n * @description the button will not show until the scroll height reaches this value.\n */\n visibilityHeight: {\n type: Number,\n default: 200,\n },\n /**\n * @description the target to trigger scroll.\n */\n target: {\n type: String,\n default: '',\n },\n /**\n * @description right distance.\n */\n right: {\n type: Number,\n default: 40,\n },\n /**\n * @description bottom distance.\n */\n bottom: {\n type: Number,\n default: 40,\n },\n widget: String,\n} as const\nexport type BacktopProps = ExtractPropTypes<typeof backtopProps>\n\nexport const backtopEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type BacktopEmits = typeof backtopEmits\n"],"names":[],"mappings":";;;;AAAY,MAAC,YAAY,GAAG;AAC5B,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE;AACU,MAAC,YAAY,GAAG;AAC5B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;"}
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var breadcrumb$1 = require('./src/breadcrumb.js');
6
+ var breadcrumb$1 = require('./src/breadcrumb2.js');
7
7
  var breadcrumbItem$1 = require('./src/breadcrumb-item2.js');
8
- var breadcrumb = require('./src/breadcrumb2.js');
8
+ var breadcrumb = require('./src/breadcrumb.js');
9
9
  var breadcrumbItem = require('./src/breadcrumb-item.js');
10
10
  var constants = require('./src/constants.js');
11
11
  var install = require('../../utils/vue/install.js');
@@ -2,44 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- require('../../../hooks/index.js');
7
- var constants = require('./constants.js');
8
- var breadcrumb = require('./breadcrumb2.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../hooks/use-namespace/index.js');
5
+ require('../../../utils/index.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
7
+ var icon = require('../../../utils/vue/icon.js');
11
8
 
12
- const __default__ = vue.defineComponent({
13
- name: "ElBreadcrumb"
14
- });
15
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
- ...__default__,
17
- props: breadcrumb.breadcrumbProps,
18
- setup(__props) {
19
- const props = __props;
20
- const ns = index.useNamespace("breadcrumb");
21
- const breadcrumb = vue.ref();
22
- vue.provide(constants.breadcrumbKey, props);
23
- vue.onMounted(() => {
24
- const items = breadcrumb.value.querySelectorAll(`.${ns.e("item")}`);
25
- if (items.length) {
26
- items[items.length - 1].setAttribute("aria-current", "page");
27
- }
28
- });
29
- return (_ctx, _cache) => {
30
- return vue.openBlock(), vue.createElementBlock("div", {
31
- ref_key: "breadcrumb",
32
- ref: breadcrumb,
33
- class: vue.normalizeClass(vue.unref(ns).b()),
34
- "aria-label": "Breadcrumb",
35
- role: "navigation"
36
- }, [
37
- vue.renderSlot(_ctx.$slots, "default")
38
- ], 2);
39
- };
9
+ const breadcrumbProps = runtime.buildProps({
10
+ separator: {
11
+ type: String,
12
+ default: "/"
13
+ },
14
+ separatorIcon: {
15
+ type: icon.iconPropType
40
16
  }
41
17
  });
42
- var Breadcrumb = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\breadcrumb\\src\\breadcrumb.vue"]]);
43
18
 
44
- exports["default"] = Breadcrumb;
19
+ exports.breadcrumbProps = breadcrumbProps;
45
20
  //# sourceMappingURL=breadcrumb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.vue"],"sourcesContent":["<template>\n <div\n ref=\"breadcrumb\"\n :class=\"ns.b()\"\n aria-label=\"Breadcrumb\"\n role=\"navigation\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { onMounted, provide, ref } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { breadcrumbKey } from './constants'\nimport { breadcrumbProps } from './breadcrumb'\n\ndefineOptions({\n name: 'ElBreadcrumb',\n})\n\nconst props = defineProps(breadcrumbProps)\n\nconst ns = useNamespace('breadcrumb')\nconst breadcrumb = ref<HTMLDivElement>()\n\nprovide(breadcrumbKey, props)\n\nonMounted(() => {\n const items = breadcrumb.value!.querySelectorAll(`.${ns.e('item')}`)\n if (items.length) {\n items[items.length - 1].setAttribute('aria-current', 'page')\n }\n})\n</script>\n"],"names":["useNamespace","ref","provide","breadcrumbKey","onMounted"],"mappings":";;;;;;;;;;;uCAiBc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAKA,mBAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAaC,OAAoB,EAAA,CAAA;AAEvC,IAAAC,WAAA,CAAQC,yBAAe,KAAK,CAAA,CAAA;AAE5B,IAAAC,aAAA,CAAU,MAAM;AACd,MAAM,MAAA,KAAA,GAAQ,WAAW,KAAO,CAAA,gBAAA,CAAiB,IAAI,EAAG,CAAA,CAAA,CAAE,MAAM,CAAG,CAAA,CAAA,CAAA,CAAA;AACnE,MAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,QAAA,KAAA,CAAM,KAAM,CAAA,MAAA,GAAS,CAAG,CAAA,CAAA,YAAA,CAAa,gBAAgB,MAAM,CAAA,CAAA;AAAA,OAC7D;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"breadcrumb.js","sources":["../../../../../../packages/components/breadcrumb/src/breadcrumb.ts"],"sourcesContent":["import { buildProps, iconPropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const breadcrumbProps = buildProps({\n /**\n * @description separator character\n */\n separator: {\n type: String,\n default: '/',\n },\n /**\n * @description icon component of icon separator\n */\n separatorIcon: {\n type: iconPropType,\n },\n} as const)\nexport type BreadcrumbProps = ExtractPropTypes<typeof breadcrumbProps>\n"],"names":["buildProps","iconPropType"],"mappings":";;;;;;;;AACY,MAAC,eAAe,GAAGA,kBAAU,CAAC;AAC1C,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,CAAC;;;;"}