element-pe 2.2.94 → 2.2.95

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 (458) hide show
  1. package/dist/index.full.js +1 -1
  2. package/dist/index.full.min.js +9 -9
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +10 -10
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +1 -1
  7. package/es/components/affix/index.mjs +2 -2
  8. package/es/components/affix/src/affix.mjs +26 -119
  9. package/es/components/affix/src/affix.mjs.map +1 -1
  10. package/es/components/affix/src/affix2.mjs +119 -26
  11. package/es/components/affix/src/affix2.mjs.map +1 -1
  12. package/es/components/alert/index.mjs +2 -2
  13. package/es/components/alert/src/alert.mjs +103 -38
  14. package/es/components/alert/src/alert.mjs.map +1 -1
  15. package/es/components/alert/src/alert2.mjs +38 -103
  16. package/es/components/alert/src/alert2.mjs.map +1 -1
  17. package/es/components/autocomplete/index.mjs +2 -2
  18. package/es/components/autocomplete/src/autocomplete.mjs +379 -99
  19. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  20. package/es/components/autocomplete/src/autocomplete2.mjs +99 -379
  21. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  22. package/es/components/backtop/index.mjs +2 -2
  23. package/es/components/backtop/src/backtop.mjs +61 -23
  24. package/es/components/backtop/src/backtop.mjs.map +1 -1
  25. package/es/components/backtop/src/backtop2.mjs +23 -61
  26. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  27. package/es/components/calendar/src/calendar2.mjs +1 -1
  28. package/es/components/calendar/src/date-table.mjs +87 -33
  29. package/es/components/calendar/src/date-table.mjs.map +1 -1
  30. package/es/components/calendar/src/date-table2.mjs +33 -87
  31. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  32. package/es/components/calendar/src/use-date-table.mjs +1 -1
  33. package/es/components/carousel/index.mjs +4 -4
  34. package/es/components/carousel/src/carousel-item.mjs +69 -8
  35. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  36. package/es/components/carousel/src/carousel-item2.mjs +8 -69
  37. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  38. package/es/components/carousel/src/carousel.mjs +169 -56
  39. package/es/components/carousel/src/carousel.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel2.mjs +56 -169
  41. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  42. package/es/components/cascader/index.mjs +2 -2
  43. package/es/components/cascader/src/cascader.mjs +86 -647
  44. package/es/components/cascader/src/cascader.mjs.map +1 -1
  45. package/es/components/cascader/src/cascader2.mjs +647 -86
  46. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  47. package/es/components/check-tag/index.mjs +2 -2
  48. package/es/components/check-tag/src/check-tag.mjs +12 -31
  49. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  50. package/es/components/check-tag/src/check-tag2.mjs +31 -12
  51. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  52. package/es/components/checkbox/index.mjs +2 -2
  53. package/es/components/checkbox/src/checkbox-group.mjs +72 -33
  54. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  55. package/es/components/checkbox/src/checkbox-group2.mjs +33 -72
  56. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  57. package/es/components/collapse/index.mjs +4 -4
  58. package/es/components/collapse/src/collapse-item.mjs +14 -93
  59. package/es/components/collapse/src/collapse-item.mjs.map +1 -1
  60. package/es/components/collapse/src/collapse-item2.mjs +93 -14
  61. package/es/components/collapse/src/collapse-item2.mjs.map +1 -1
  62. package/es/components/collapse/src/collapse.mjs +17 -28
  63. package/es/components/collapse/src/collapse.mjs.map +1 -1
  64. package/es/components/collapse/src/collapse2.mjs +28 -17
  65. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  66. package/es/components/collection/index.mjs +1 -1
  67. package/es/components/collection/src/collection.mjs +66 -10
  68. package/es/components/collection/src/collection.mjs.map +1 -1
  69. package/es/components/collection/src/collection2.mjs +10 -66
  70. package/es/components/collection/src/collection2.mjs.map +1 -1
  71. package/es/components/descriptions/index.mjs +2 -2
  72. package/es/components/descriptions/src/description.mjs +120 -27
  73. package/es/components/descriptions/src/description.mjs.map +1 -1
  74. package/es/components/descriptions/src/description2.mjs +27 -120
  75. package/es/components/descriptions/src/description2.mjs.map +1 -1
  76. package/es/components/dialog/src/dialog-content.mjs +96 -30
  77. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  78. package/es/components/dialog/src/dialog-content2.mjs +30 -96
  79. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  80. package/es/components/dialog/src/dialog.mjs +1 -1
  81. package/es/components/dialog/src/dialog2.mjs +1 -1
  82. package/es/components/divider/index.mjs +2 -2
  83. package/es/components/divider/src/divider.mjs +35 -17
  84. package/es/components/divider/src/divider.mjs.map +1 -1
  85. package/es/components/divider/src/divider2.mjs +17 -35
  86. package/es/components/divider/src/divider2.mjs.map +1 -1
  87. package/es/components/drawer/index.mjs +2 -2
  88. package/es/components/drawer/src/drawer.mjs +187 -29
  89. package/es/components/drawer/src/drawer.mjs.map +1 -1
  90. package/es/components/drawer/src/drawer2.mjs +29 -187
  91. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  92. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  93. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  94. package/es/components/dropdown/src/dropdown.mjs +2 -2
  95. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  96. package/es/components/form/index.mjs +2 -2
  97. package/es/components/form/src/form-item.mjs +46 -328
  98. package/es/components/form/src/form-item.mjs.map +1 -1
  99. package/es/components/form/src/form-item2.mjs +328 -46
  100. package/es/components/form/src/form-item2.mjs.map +1 -1
  101. package/es/components/image/index.mjs +2 -2
  102. package/es/components/image/src/image.mjs +227 -56
  103. package/es/components/image/src/image.mjs.map +1 -1
  104. package/es/components/image/src/image2.mjs +56 -227
  105. package/es/components/image/src/image2.mjs.map +1 -1
  106. package/es/components/index.mjs +35 -35
  107. package/es/components/input-number/index.mjs +2 -2
  108. package/es/components/input-number/src/input-number.mjs +69 -335
  109. package/es/components/input-number/src/input-number.mjs.map +1 -1
  110. package/es/components/input-number/src/input-number2.mjs +335 -69
  111. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  112. package/es/components/link/index.mjs +2 -2
  113. package/es/components/link/src/link.mjs +50 -21
  114. package/es/components/link/src/link.mjs.map +1 -1
  115. package/es/components/link/src/link2.mjs +21 -50
  116. package/es/components/link/src/link2.mjs.map +1 -1
  117. package/es/components/notification/index.mjs +1 -1
  118. package/es/components/notification/src/notification.mjs +67 -151
  119. package/es/components/notification/src/notification.mjs.map +1 -1
  120. package/es/components/notification/src/notification2.mjs +151 -67
  121. package/es/components/notification/src/notification2.mjs.map +1 -1
  122. package/es/components/notification/src/notify.mjs +2 -2
  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/pager.mjs +218 -17
  128. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  129. package/es/components/pagination/src/components/pager2.mjs +17 -218
  130. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  131. package/es/components/pagination/src/pagination.mjs +2 -2
  132. package/es/components/popover/src/popover.mjs +1 -1
  133. package/es/components/popper/index.mjs +4 -4
  134. package/es/components/popper/src/arrow.mjs +39 -8
  135. package/es/components/popper/src/arrow.mjs.map +1 -1
  136. package/es/components/popper/src/arrow2.mjs +8 -39
  137. package/es/components/popper/src/arrow2.mjs.map +1 -1
  138. package/es/components/popper/src/trigger.mjs +31 -121
  139. package/es/components/popper/src/trigger.mjs.map +1 -1
  140. package/es/components/popper/src/trigger2.mjs +121 -31
  141. package/es/components/popper/src/trigger2.mjs.map +1 -1
  142. package/es/components/radio/index.mjs +2 -2
  143. package/es/components/radio/src/radio-button.mjs +9 -67
  144. package/es/components/radio/src/radio-button.mjs.map +1 -1
  145. package/es/components/radio/src/radio-button2.mjs +67 -9
  146. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  147. package/es/components/rate/index.mjs +2 -2
  148. package/es/components/rate/src/rate.mjs +92 -259
  149. package/es/components/rate/src/rate.mjs.map +1 -1
  150. package/es/components/rate/src/rate2.mjs +259 -92
  151. package/es/components/rate/src/rate2.mjs.map +1 -1
  152. package/es/components/result/index.mjs +2 -2
  153. package/es/components/result/src/result.mjs +29 -63
  154. package/es/components/result/src/result.mjs.map +1 -1
  155. package/es/components/result/src/result2.mjs +63 -29
  156. package/es/components/result/src/result2.mjs.map +1 -1
  157. package/es/components/roving-focus-group/index.mjs +3 -3
  158. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  159. package/es/components/roving-focus-group/src/roving-focus-group.mjs +27 -29
  160. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  161. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +29 -27
  162. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  163. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  164. package/es/components/row/index.mjs +2 -2
  165. package/es/components/row/src/row.mjs +29 -45
  166. package/es/components/row/src/row.mjs.map +1 -1
  167. package/es/components/row/src/row2.mjs +45 -29
  168. package/es/components/row/src/row2.mjs.map +1 -1
  169. package/es/components/skeleton/index.mjs +4 -4
  170. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  171. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  172. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  173. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  174. package/es/components/skeleton/src/skeleton.mjs +49 -22
  175. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  176. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  177. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  178. package/es/components/space/src/use-space.mjs +1 -3
  179. package/es/components/space/src/use-space.mjs.map +1 -1
  180. package/es/components/statistic/index.mjs +2 -2
  181. package/es/components/statistic/src/statistic.mjs +25 -70
  182. package/es/components/statistic/src/statistic.mjs.map +1 -1
  183. package/es/components/statistic/src/statistic2.mjs +70 -25
  184. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  185. package/es/components/tabs/index.mjs +3 -3
  186. package/es/components/tabs/src/tab-bar.mjs +7 -75
  187. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  188. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  189. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  190. package/es/components/tabs/src/tab-nav.mjs +1 -1
  191. package/es/components/tabs/src/tab-pane.mjs +76 -14
  192. package/es/components/tabs/src/tab-pane.mjs.map +1 -1
  193. package/es/components/tabs/src/tab-pane2.mjs +14 -76
  194. package/es/components/tabs/src/tab-pane2.mjs.map +1 -1
  195. package/es/components/timeline/index.mjs +2 -2
  196. package/es/components/timeline/src/timeline-item.mjs +42 -72
  197. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  198. package/es/components/timeline/src/timeline-item2.mjs +72 -42
  199. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  200. package/es/components/tooltip/index.mjs +1 -1
  201. package/es/components/tooltip/src/tooltip.mjs +2 -2
  202. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  203. package/es/components/tooltip/src/trigger.mjs +16 -73
  204. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  205. package/es/components/tooltip/src/trigger2.mjs +73 -16
  206. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  207. package/es/components/tooltip-v2/index.mjs +4 -4
  208. package/es/components/tooltip-v2/src/content.mjs +114 -50
  209. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  210. package/es/components/tooltip-v2/src/content2.mjs +50 -114
  211. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  212. package/es/components/tooltip-v2/src/root.mjs +17 -82
  213. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  214. package/es/components/tooltip-v2/src/root2.mjs +82 -17
  215. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  216. package/es/components/tooltip-v2/src/tooltip.mjs +78 -21
  217. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  218. package/es/components/tooltip-v2/src/tooltip2.mjs +21 -78
  219. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  220. package/es/components/upload/index.mjs +1 -1
  221. package/es/components/upload/src/upload-list.mjs +179 -26
  222. package/es/components/upload/src/upload-list.mjs.map +1 -1
  223. package/es/components/upload/src/upload-list2.mjs +26 -179
  224. package/es/components/upload/src/upload-list2.mjs.map +1 -1
  225. package/es/components/upload/src/upload.mjs +1 -1
  226. package/es/components/visual-hidden/index.mjs +3 -3
  227. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  228. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  229. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  230. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  231. package/es/index.mjs +35 -35
  232. package/lib/components/affix/index.js +2 -2
  233. package/lib/components/affix/src/affix.js +27 -119
  234. package/lib/components/affix/src/affix.js.map +1 -1
  235. package/lib/components/affix/src/affix2.js +119 -27
  236. package/lib/components/affix/src/affix2.js.map +1 -1
  237. package/lib/components/alert/index.js +2 -2
  238. package/lib/components/alert/src/alert.js +102 -39
  239. package/lib/components/alert/src/alert.js.map +1 -1
  240. package/lib/components/alert/src/alert2.js +39 -102
  241. package/lib/components/alert/src/alert2.js.map +1 -1
  242. package/lib/components/autocomplete/index.js +2 -2
  243. package/lib/components/autocomplete/src/autocomplete.js +378 -99
  244. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  245. package/lib/components/autocomplete/src/autocomplete2.js +99 -378
  246. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  247. package/lib/components/backtop/index.js +2 -2
  248. package/lib/components/backtop/src/backtop.js +61 -24
  249. package/lib/components/backtop/src/backtop.js.map +1 -1
  250. package/lib/components/backtop/src/backtop2.js +24 -61
  251. package/lib/components/backtop/src/backtop2.js.map +1 -1
  252. package/lib/components/calendar/src/calendar2.js +1 -1
  253. package/lib/components/calendar/src/date-table.js +87 -37
  254. package/lib/components/calendar/src/date-table.js.map +1 -1
  255. package/lib/components/calendar/src/date-table2.js +37 -87
  256. package/lib/components/calendar/src/date-table2.js.map +1 -1
  257. package/lib/components/calendar/src/use-date-table.js +1 -1
  258. package/lib/components/carousel/index.js +4 -4
  259. package/lib/components/carousel/src/carousel-item.js +69 -8
  260. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  261. package/lib/components/carousel/src/carousel-item2.js +8 -69
  262. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  263. package/lib/components/carousel/src/carousel.js +169 -57
  264. package/lib/components/carousel/src/carousel.js.map +1 -1
  265. package/lib/components/carousel/src/carousel2.js +57 -169
  266. package/lib/components/carousel/src/carousel2.js.map +1 -1
  267. package/lib/components/cascader/index.js +2 -2
  268. package/lib/components/cascader/src/cascader.js +87 -647
  269. package/lib/components/cascader/src/cascader.js.map +1 -1
  270. package/lib/components/cascader/src/cascader2.js +647 -87
  271. package/lib/components/cascader/src/cascader2.js.map +1 -1
  272. package/lib/components/check-tag/index.js +2 -2
  273. package/lib/components/check-tag/src/check-tag.js +13 -31
  274. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  275. package/lib/components/check-tag/src/check-tag2.js +31 -13
  276. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  277. package/lib/components/checkbox/index.js +2 -2
  278. package/lib/components/checkbox/src/checkbox-group.js +72 -34
  279. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  280. package/lib/components/checkbox/src/checkbox-group2.js +34 -72
  281. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  282. package/lib/components/collapse/index.js +4 -4
  283. package/lib/components/collapse/src/collapse-item.js +14 -93
  284. package/lib/components/collapse/src/collapse-item.js.map +1 -1
  285. package/lib/components/collapse/src/collapse-item2.js +93 -14
  286. package/lib/components/collapse/src/collapse-item2.js.map +1 -1
  287. package/lib/components/collapse/src/collapse.js +19 -28
  288. package/lib/components/collapse/src/collapse.js.map +1 -1
  289. package/lib/components/collapse/src/collapse2.js +28 -19
  290. package/lib/components/collapse/src/collapse2.js.map +1 -1
  291. package/lib/components/collection/index.js +1 -1
  292. package/lib/components/collection/src/collection.js +66 -9
  293. package/lib/components/collection/src/collection.js.map +1 -1
  294. package/lib/components/collection/src/collection2.js +9 -66
  295. package/lib/components/collection/src/collection2.js.map +1 -1
  296. package/lib/components/descriptions/index.js +2 -2
  297. package/lib/components/descriptions/src/description.js +120 -27
  298. package/lib/components/descriptions/src/description.js.map +1 -1
  299. package/lib/components/descriptions/src/description2.js +27 -120
  300. package/lib/components/descriptions/src/description2.js.map +1 -1
  301. package/lib/components/dialog/src/dialog-content.js +95 -30
  302. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  303. package/lib/components/dialog/src/dialog-content2.js +30 -95
  304. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  305. package/lib/components/dialog/src/dialog.js +1 -1
  306. package/lib/components/dialog/src/dialog2.js +1 -1
  307. package/lib/components/divider/index.js +2 -2
  308. package/lib/components/divider/src/divider.js +35 -17
  309. package/lib/components/divider/src/divider.js.map +1 -1
  310. package/lib/components/divider/src/divider2.js +17 -35
  311. package/lib/components/divider/src/divider2.js.map +1 -1
  312. package/lib/components/drawer/index.js +2 -2
  313. package/lib/components/drawer/src/drawer.js +187 -30
  314. package/lib/components/drawer/src/drawer.js.map +1 -1
  315. package/lib/components/drawer/src/drawer2.js +30 -187
  316. package/lib/components/drawer/src/drawer2.js.map +1 -1
  317. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  318. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  319. package/lib/components/dropdown/src/dropdown.js +2 -2
  320. package/lib/components/dropdown/src/dropdown2.js +1 -1
  321. package/lib/components/form/index.js +2 -2
  322. package/lib/components/form/src/form-item.js +47 -332
  323. package/lib/components/form/src/form-item.js.map +1 -1
  324. package/lib/components/form/src/form-item2.js +332 -47
  325. package/lib/components/form/src/form-item2.js.map +1 -1
  326. package/lib/components/image/index.js +2 -2
  327. package/lib/components/image/src/image.js +226 -56
  328. package/lib/components/image/src/image.js.map +1 -1
  329. package/lib/components/image/src/image2.js +56 -226
  330. package/lib/components/image/src/image2.js.map +1 -1
  331. package/lib/components/index.js +35 -35
  332. package/lib/components/input-number/index.js +2 -2
  333. package/lib/components/input-number/src/input-number.js +68 -333
  334. package/lib/components/input-number/src/input-number.js.map +1 -1
  335. package/lib/components/input-number/src/input-number2.js +333 -68
  336. package/lib/components/input-number/src/input-number2.js.map +1 -1
  337. package/lib/components/link/index.js +2 -2
  338. package/lib/components/link/src/link.js +50 -22
  339. package/lib/components/link/src/link.js.map +1 -1
  340. package/lib/components/link/src/link2.js +22 -50
  341. package/lib/components/link/src/link2.js.map +1 -1
  342. package/lib/components/notification/index.js +1 -1
  343. package/lib/components/notification/src/notification.js +68 -150
  344. package/lib/components/notification/src/notification.js.map +1 -1
  345. package/lib/components/notification/src/notification2.js +150 -68
  346. package/lib/components/notification/src/notification2.js.map +1 -1
  347. package/lib/components/notification/src/notify.js +2 -2
  348. package/lib/components/pagination/src/components/next.js +38 -19
  349. package/lib/components/pagination/src/components/next.js.map +1 -1
  350. package/lib/components/pagination/src/components/next2.js +19 -38
  351. package/lib/components/pagination/src/components/next2.js.map +1 -1
  352. package/lib/components/pagination/src/components/pager.js +218 -17
  353. package/lib/components/pagination/src/components/pager.js.map +1 -1
  354. package/lib/components/pagination/src/components/pager2.js +17 -218
  355. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  356. package/lib/components/pagination/src/pagination.js +2 -2
  357. package/lib/components/popover/src/popover.js +1 -1
  358. package/lib/components/popper/index.js +4 -4
  359. package/lib/components/popper/src/arrow.js +39 -9
  360. package/lib/components/popper/src/arrow.js.map +1 -1
  361. package/lib/components/popper/src/arrow2.js +9 -39
  362. package/lib/components/popper/src/arrow2.js.map +1 -1
  363. package/lib/components/popper/src/trigger.js +32 -121
  364. package/lib/components/popper/src/trigger.js.map +1 -1
  365. package/lib/components/popper/src/trigger2.js +121 -32
  366. package/lib/components/popper/src/trigger2.js.map +1 -1
  367. package/lib/components/radio/index.js +2 -2
  368. package/lib/components/radio/src/radio-button.js +9 -67
  369. package/lib/components/radio/src/radio-button.js.map +1 -1
  370. package/lib/components/radio/src/radio-button2.js +67 -9
  371. package/lib/components/radio/src/radio-button2.js.map +1 -1
  372. package/lib/components/rate/index.js +2 -2
  373. package/lib/components/rate/src/rate.js +92 -258
  374. package/lib/components/rate/src/rate.js.map +1 -1
  375. package/lib/components/rate/src/rate2.js +258 -92
  376. package/lib/components/rate/src/rate2.js.map +1 -1
  377. package/lib/components/result/index.js +2 -2
  378. package/lib/components/result/src/result.js +31 -63
  379. package/lib/components/result/src/result.js.map +1 -1
  380. package/lib/components/result/src/result2.js +63 -31
  381. package/lib/components/result/src/result2.js.map +1 -1
  382. package/lib/components/roving-focus-group/index.js +2 -2
  383. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  384. package/lib/components/roving-focus-group/src/roving-focus-group.js +27 -33
  385. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  386. package/lib/components/roving-focus-group/src/roving-focus-group2.js +33 -27
  387. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  388. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  389. package/lib/components/row/index.js +2 -2
  390. package/lib/components/row/src/row.js +31 -45
  391. package/lib/components/row/src/row.js.map +1 -1
  392. package/lib/components/row/src/row2.js +45 -31
  393. package/lib/components/row/src/row2.js.map +1 -1
  394. package/lib/components/skeleton/index.js +4 -4
  395. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  396. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  397. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  398. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  399. package/lib/components/skeleton/src/skeleton.js +49 -22
  400. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  401. package/lib/components/skeleton/src/skeleton2.js +22 -49
  402. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  403. package/lib/components/space/src/use-space.js +1 -3
  404. package/lib/components/space/src/use-space.js.map +1 -1
  405. package/lib/components/statistic/index.js +2 -2
  406. package/lib/components/statistic/src/statistic.js +25 -70
  407. package/lib/components/statistic/src/statistic.js.map +1 -1
  408. package/lib/components/statistic/src/statistic2.js +70 -25
  409. package/lib/components/statistic/src/statistic2.js.map +1 -1
  410. package/lib/components/tabs/index.js +3 -3
  411. package/lib/components/tabs/src/tab-bar.js +7 -75
  412. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  413. package/lib/components/tabs/src/tab-bar2.js +75 -7
  414. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  415. package/lib/components/tabs/src/tab-nav.js +1 -1
  416. package/lib/components/tabs/src/tab-pane.js +76 -14
  417. package/lib/components/tabs/src/tab-pane.js.map +1 -1
  418. package/lib/components/tabs/src/tab-pane2.js +14 -76
  419. package/lib/components/tabs/src/tab-pane2.js.map +1 -1
  420. package/lib/components/timeline/index.js +2 -2
  421. package/lib/components/timeline/src/timeline-item.js +42 -72
  422. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  423. package/lib/components/timeline/src/timeline-item2.js +72 -42
  424. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  425. package/lib/components/tooltip/index.js +1 -1
  426. package/lib/components/tooltip/src/tooltip.js +2 -2
  427. package/lib/components/tooltip/src/tooltip2.js +2 -2
  428. package/lib/components/tooltip/src/trigger.js +16 -73
  429. package/lib/components/tooltip/src/trigger.js.map +1 -1
  430. package/lib/components/tooltip/src/trigger2.js +73 -16
  431. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  432. package/lib/components/tooltip-v2/index.js +4 -4
  433. package/lib/components/tooltip-v2/src/content.js +114 -50
  434. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  435. package/lib/components/tooltip-v2/src/content2.js +50 -114
  436. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  437. package/lib/components/tooltip-v2/src/root.js +17 -82
  438. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  439. package/lib/components/tooltip-v2/src/root2.js +82 -17
  440. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  441. package/lib/components/tooltip-v2/src/tooltip.js +78 -21
  442. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  443. package/lib/components/tooltip-v2/src/tooltip2.js +21 -78
  444. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  445. package/lib/components/upload/index.js +1 -1
  446. package/lib/components/upload/src/upload-list.js +179 -27
  447. package/lib/components/upload/src/upload-list.js.map +1 -1
  448. package/lib/components/upload/src/upload-list2.js +27 -179
  449. package/lib/components/upload/src/upload-list2.js.map +1 -1
  450. package/lib/components/upload/src/upload.js +1 -1
  451. package/lib/components/visual-hidden/index.js +2 -2
  452. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  453. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  454. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  455. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  456. package/lib/index.js +35 -35
  457. package/package.json +1 -1
  458. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.e('item'), ns.e(variant)]\">\n <picture-filled v-if=\"variant === 'image'\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { PictureFilled } from '@element-plus/icons-vue'\nimport { skeletonItemProps } from './skeleton-item'\n\ndefineOptions({\n name: 'ElSkeletonItem',\n})\ndefineProps(skeletonItemProps)\nconst ns = useNamespace('skeleton')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;uCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAEA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skeleton-item.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\nexport type SkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE;AACZ,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,MAAM;AACZ,MAAM,SAAS;AACf,MAAM,GAAG;AACT,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,KAAK;AACL,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
@@ -2,26 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ require('../../../hooks/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ var skeletonItem = require('./skeleton-item.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
7
11
 
8
- const skeletonItemProps = runtime.buildProps({
9
- variant: {
10
- type: String,
11
- values: [
12
- "circle",
13
- "rect",
14
- "h1",
15
- "h3",
16
- "text",
17
- "caption",
18
- "p",
19
- "image",
20
- "button"
21
- ],
22
- default: "text"
12
+ const __default__ = vue.defineComponent({
13
+ name: "ElSkeletonItem"
14
+ });
15
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
+ ...__default__,
17
+ props: skeletonItem.skeletonItemProps,
18
+ setup(__props) {
19
+ const ns = index.useNamespace("skeleton");
20
+ return (_ctx, _cache) => {
21
+ return vue.openBlock(), vue.createElementBlock("div", {
22
+ class: vue.normalizeClass([vue.unref(ns).e("item"), vue.unref(ns).e(_ctx.variant)])
23
+ }, [
24
+ _ctx.variant === "image" ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.PictureFilled), { key: 0 })) : vue.createCommentVNode("v-if", true)
25
+ ], 2);
26
+ };
23
27
  }
24
28
  });
29
+ var SkeletonItem = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\skeleton\\src\\skeleton-item.vue"]]);
25
30
 
26
- exports.skeletonItemProps = skeletonItemProps;
31
+ exports["default"] = SkeletonItem;
27
32
  //# sourceMappingURL=skeleton-item2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton-item2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type SkeletonItem from './skeleton-item.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonItemProps = buildProps({\n /**\n * @description the current rendering skeleton type\n */\n variant: {\n type: String,\n values: [\n 'circle',\n 'rect',\n 'h1',\n 'h3',\n 'text',\n 'caption',\n 'p',\n 'image',\n 'button',\n ],\n default: 'text',\n },\n} as const)\nexport type SkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>\n\nexport type SkeletonItemInstance = InstanceType<typeof SkeletonItem>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE;AACZ,MAAM,QAAQ;AACd,MAAM,MAAM;AACZ,MAAM,IAAI;AACV,MAAM,IAAI;AACV,MAAM,MAAM;AACZ,MAAM,SAAS;AACf,MAAM,GAAG;AACT,MAAM,OAAO;AACb,MAAM,QAAQ;AACd,KAAK;AACL,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"skeleton-item2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton-item.vue"],"sourcesContent":["<template>\n <div :class=\"[ns.e('item'), ns.e(variant)]\">\n <picture-filled v-if=\"variant === 'image'\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { PictureFilled } from '@element-plus/icons-vue'\nimport { skeletonItemProps } from './skeleton-item'\n\ndefineOptions({\n name: 'ElSkeletonItem',\n})\ndefineProps(skeletonItemProps)\nconst ns = useNamespace('skeleton')\n</script>\n"],"names":["useNamespace"],"mappings":";;;;;;;;;;;uCAWc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;AAEA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -2,30 +2,57 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
5
+ var vue = require('vue');
6
+ require('../../../hooks/index.js');
7
+ var skeleton = require('./skeleton2.js');
8
+ var skeletonItem = require('./skeleton-item2.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
11
+ var index$1 = require('../../../hooks/use-throttle-render/index.js');
7
12
 
8
- const skeletonProps = runtime.buildProps({
9
- animated: {
10
- type: Boolean,
11
- default: false
12
- },
13
- count: {
14
- type: Number,
15
- default: 1
16
- },
17
- rows: {
18
- type: Number,
19
- default: 3
20
- },
21
- loading: {
22
- type: Boolean,
23
- default: true
24
- },
25
- throttle: {
26
- type: Number
13
+ const __default__ = vue.defineComponent({
14
+ name: "ElSkeleton"
15
+ });
16
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
+ ...__default__,
18
+ props: skeleton.skeletonProps,
19
+ setup(__props, { expose }) {
20
+ const props = __props;
21
+ const ns = index.useNamespace("skeleton");
22
+ const uiLoading = index$1.useThrottleRender(vue.toRef(props, "loading"), props.throttle);
23
+ expose({
24
+ uiLoading
25
+ });
26
+ return (_ctx, _cache) => {
27
+ return vue.unref(uiLoading) ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
28
+ key: 0,
29
+ class: [vue.unref(ns).b(), vue.unref(ns).is("animated", _ctx.animated)]
30
+ }, _ctx.$attrs), [
31
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.count, (i) => {
32
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
33
+ _ctx.loading ? vue.renderSlot(_ctx.$slots, "template", { key: i }, () => [
34
+ vue.createVNode(skeletonItem["default"], {
35
+ class: vue.normalizeClass(vue.unref(ns).is("first")),
36
+ variant: "p"
37
+ }, null, 8, ["class"]),
38
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.rows, (item) => {
39
+ return vue.openBlock(), vue.createBlock(skeletonItem["default"], {
40
+ key: item,
41
+ class: vue.normalizeClass([
42
+ vue.unref(ns).e("paragraph"),
43
+ vue.unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
44
+ ]),
45
+ variant: "p"
46
+ }, null, 8, ["class"]);
47
+ }), 128))
48
+ ]) : vue.createCommentVNode("v-if", true)
49
+ ], 64);
50
+ }), 128))
51
+ ], 16)) : vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.mergeProps({ key: 1 }, _ctx.$attrs)));
52
+ };
27
53
  }
28
54
  });
55
+ var Skeleton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\skeleton\\src\\skeleton.vue"]]);
29
56
 
30
- exports.skeletonProps = skeletonProps;
57
+ exports["default"] = Skeleton;
31
58
  //# sourceMappingURL=skeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: {\n type: Boolean,\n default: false,\n },\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: Number,\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"skeleton.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"loading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":["useNamespace","useThrottleRender","toRef"],"mappings":";;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAYC,yBAAkB,CAAAC,SAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAEX,SAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,57 +2,30 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- require('../../../hooks/index.js');
7
- var skeleton = require('./skeleton.js');
8
- var skeletonItem = require('./skeleton-item.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../hooks/use-namespace/index.js');
11
- var index$1 = require('../../../hooks/use-throttle-render/index.js');
5
+ require('../../../utils/index.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
12
7
 
13
- const __default__ = vue.defineComponent({
14
- name: "ElSkeleton"
15
- });
16
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
- ...__default__,
18
- props: skeleton.skeletonProps,
19
- setup(__props, { expose }) {
20
- const props = __props;
21
- const ns = index.useNamespace("skeleton");
22
- const uiLoading = index$1.useThrottleRender(vue.toRef(props, "loading"), props.throttle);
23
- expose({
24
- uiLoading
25
- });
26
- return (_ctx, _cache) => {
27
- return vue.unref(uiLoading) ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
28
- key: 0,
29
- class: [vue.unref(ns).b(), vue.unref(ns).is("animated", _ctx.animated)]
30
- }, _ctx.$attrs), [
31
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.count, (i) => {
32
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
33
- _ctx.loading ? vue.renderSlot(_ctx.$slots, "template", { key: i }, () => [
34
- vue.createVNode(skeletonItem["default"], {
35
- class: vue.normalizeClass(vue.unref(ns).is("first")),
36
- variant: "p"
37
- }, null, 8, ["class"]),
38
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.rows, (item) => {
39
- return vue.openBlock(), vue.createBlock(skeletonItem["default"], {
40
- key: item,
41
- class: vue.normalizeClass([
42
- vue.unref(ns).e("paragraph"),
43
- vue.unref(ns).is("last", item === _ctx.rows && _ctx.rows > 1)
44
- ]),
45
- variant: "p"
46
- }, null, 8, ["class"]);
47
- }), 128))
48
- ]) : vue.createCommentVNode("v-if", true)
49
- ], 64);
50
- }), 128))
51
- ], 16)) : vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.mergeProps({ key: 1 }, _ctx.$attrs)));
52
- };
8
+ const skeletonProps = runtime.buildProps({
9
+ animated: {
10
+ type: Boolean,
11
+ default: false
12
+ },
13
+ count: {
14
+ type: Number,
15
+ default: 1
16
+ },
17
+ rows: {
18
+ type: Number,
19
+ default: 3
20
+ },
21
+ loading: {
22
+ type: Boolean,
23
+ default: true
24
+ },
25
+ throttle: {
26
+ type: Number
53
27
  }
54
28
  });
55
- var Skeleton = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\skeleton\\src\\skeleton.vue"]]);
56
29
 
57
- exports["default"] = Skeleton;
30
+ exports.skeletonProps = skeletonProps;
58
31
  //# sourceMappingURL=skeleton2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.vue"],"sourcesContent":["<template>\n <template v-if=\"uiLoading\">\n <div :class=\"[ns.b(), ns.is('animated', animated)]\" v-bind=\"$attrs\">\n <template v-for=\"i in count\" :key=\"i\">\n <slot v-if=\"loading\" :key=\"i\" name=\"template\">\n <el-skeleton-item :class=\"ns.is('first')\" variant=\"p\" />\n <el-skeleton-item\n v-for=\"item in rows\"\n :key=\"item\"\n :class=\"[\n ns.e('paragraph'),\n ns.is('last', item === rows && rows > 1),\n ]\"\n variant=\"p\"\n />\n </slot>\n </template>\n </div>\n </template>\n <template v-else>\n <slot v-bind=\"$attrs\" />\n </template>\n</template>\n\n<script lang=\"ts\" setup>\nimport { toRef } from 'vue'\nimport { useNamespace, useThrottleRender } from '@element-plus/hooks'\nimport { skeletonProps } from './skeleton'\nimport ElSkeletonItem from './skeleton-item.vue'\n\ndefineOptions({\n name: 'ElSkeleton',\n})\nconst props = defineProps(skeletonProps)\n\nconst ns = useNamespace('skeleton')\nconst uiLoading = useThrottleRender(toRef(props, 'loading'), props.throttle)\n\ndefineExpose({\n /** @description loading state */\n uiLoading,\n})\n</script>\n"],"names":["useNamespace","useThrottleRender","toRef"],"mappings":";;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,UAAU,CAAA,CAAA;AAClC,IAAA,MAAM,YAAYC,yBAAkB,CAAAC,SAAA,CAAM,OAAO,SAAS,CAAA,EAAG,MAAM,QAAQ,CAAA,CAAA;AAE3E,IAAa,MAAA,CAAA;AAAA,MAEX,SAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"skeleton2.js","sources":["../../../../../../packages/components/skeleton/src/skeleton.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport type Skeleton from './skeleton.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const skeletonProps = buildProps({\n /**\n * @description whether showing the animation\n */\n animated: {\n type: Boolean,\n default: false,\n },\n /**\n * @description how many fake items to render to the DOM\n */\n count: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether showing the real DOM\n */\n rows: {\n type: Number,\n default: 3,\n },\n /**\n * @description numbers of the row, only useful when no template slot were given\n */\n loading: {\n type: Boolean,\n default: true,\n },\n /**\n * @description rendering delay in milliseconds\n */\n throttle: {\n type: Number,\n },\n} as const)\nexport type SkeletonProps = ExtractPropTypes<typeof skeletonProps>\n\nexport type SkeletonInstance = InstanceType<typeof Skeleton>\n"],"names":["buildProps"],"mappings":";;;;;;;AACY,MAAC,aAAa,GAAGA,kBAAU,CAAC;AACxC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,GAAG;AACH,CAAC;;;;"}
@@ -3,11 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- require('../../config-provider/index.js');
7
6
  require('../../../utils/index.js');
8
7
  require('../../../hooks/index.js');
9
8
  var index = require('../../../hooks/use-namespace/index.js');
10
- var forEditor = require('../../config-provider/src/for-editor.js');
11
9
  var shared = require('@vue/shared');
12
10
  var types = require('../../../utils/types.js');
13
11
 
@@ -36,7 +34,7 @@ function useSpace(props) {
36
34
  const fillStyle = props.fill ? { flexGrow: 1, minWidth: `${props.fillRatio}%` } : {};
37
35
  return [itemBaseStyle, fillStyle];
38
36
  });
39
- forEditor.watchEffect(() => {
37
+ vue.watchEffect(() => {
40
38
  const { size = "small", wrap, direction: dir, fill } = props;
41
39
  if (shared.isArray(size)) {
42
40
  const [h = 0, v = 0] = size;
@@ -1 +1 @@
1
- {"version":3,"file":"use-space.js","sources":["../../../../../../packages/components/space/src/use-space.ts"],"sourcesContent":["import { computed, ref } from 'vue'\nimport { watchEffect } from '../../config-provider'\nimport { isArray, isNumber } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { SpaceProps } from './space'\nimport type { CSSProperties, StyleValue } from 'vue'\n\nconst SIZE_MAP = {\n small: 8,\n default: 12,\n large: 16,\n} as const\n\nexport function useSpace(props: SpaceProps) {\n const ns = useNamespace('space')\n\n const classes = computed(() => [ns.b(), ns.m(props.direction), props.class])\n\n const horizontalSize = ref(0)\n const verticalSize = ref(0)\n\n const containerStyle = computed<StyleValue>(() => {\n const wrapKls: CSSProperties =\n props.wrap || props.fill\n ? { flexWrap: 'wrap', marginBottom: `-${verticalSize.value}px` }\n : {}\n const alignment: CSSProperties = {\n alignItems: props.alignment,\n }\n return [wrapKls, alignment, props.style]\n })\n\n const itemStyle = computed<StyleValue>(() => {\n const itemBaseStyle: CSSProperties = {\n paddingBottom: `${verticalSize.value}px`,\n marginRight: `${horizontalSize.value}px`,\n }\n\n const fillStyle: CSSProperties = props.fill\n ? { flexGrow: 1, minWidth: `${props.fillRatio}%` }\n : {}\n\n return [itemBaseStyle, fillStyle]\n })\n\n watchEffect(() => {\n const { size = 'small', wrap, direction: dir, fill } = props\n\n // when the specified size have been given\n if (isArray(size)) {\n const [h = 0, v = 0] = size\n horizontalSize.value = h\n verticalSize.value = v\n } else {\n let val: number\n if (isNumber(size)) {\n val = size\n } else {\n val = SIZE_MAP[size || 'small'] || SIZE_MAP.small\n }\n\n if ((wrap || fill) && dir === 'horizontal') {\n horizontalSize.value = verticalSize.value = val\n } else {\n if (dir === 'horizontal') {\n horizontalSize.value = val\n verticalSize.value = 0\n } else {\n verticalSize.value = val\n horizontalSize.value = 0\n }\n }\n }\n })\n\n return {\n classes,\n containerStyle,\n itemStyle,\n }\n}\n"],"names":["useNamespace","computed","ref","watchEffect","isArray","isNumber"],"mappings":";;;;;;;;;;;;;AAIA,MAAM,QAAQ,GAAG;AACjB,EAAE,KAAK,EAAE,CAAC;AACV,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,KAAK,EAAE,EAAE;AACX,CAAC,CAAC;AACK,SAAS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AI,OAAO;AACX,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,GAAG,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"use-space.js","sources":["../../../../../../packages/components/space/src/use-space.ts"],"sourcesContent":["import { computed, ref, watchEffect } from 'vue'\nimport { isArray, isNumber } from '@element-plus/utils'\nimport { useNamespace } from '@element-plus/hooks'\n\nimport type { SpaceProps } from './space'\nimport type { CSSProperties, StyleValue } from 'vue'\n\nconst SIZE_MAP = {\n small: 8,\n default: 12,\n large: 16,\n} as const\n\nexport function useSpace(props: SpaceProps) {\n const ns = useNamespace('space')\n\n const classes = computed(() => [ns.b(), ns.m(props.direction), props.class])\n\n const horizontalSize = ref(0)\n const verticalSize = ref(0)\n\n const containerStyle = computed<StyleValue>(() => {\n const wrapKls: CSSProperties =\n props.wrap || props.fill\n ? { flexWrap: 'wrap', marginBottom: `-${verticalSize.value}px` }\n : {}\n const alignment: CSSProperties = {\n alignItems: props.alignment,\n }\n return [wrapKls, alignment, props.style]\n })\n\n const itemStyle = computed<StyleValue>(() => {\n const itemBaseStyle: CSSProperties = {\n paddingBottom: `${verticalSize.value}px`,\n marginRight: `${horizontalSize.value}px`,\n }\n\n const fillStyle: CSSProperties = props.fill\n ? { flexGrow: 1, minWidth: `${props.fillRatio}%` }\n : {}\n\n return [itemBaseStyle, fillStyle]\n })\n\n watchEffect(() => {\n const { size = 'small', wrap, direction: dir, fill } = props\n\n // when the specified size have been given\n if (isArray(size)) {\n const [h = 0, v = 0] = size\n horizontalSize.value = h\n verticalSize.value = v\n } else {\n let val: number\n if (isNumber(size)) {\n val = size\n } else {\n val = SIZE_MAP[size || 'small'] || SIZE_MAP.small\n }\n\n if ((wrap || fill) && dir === 'horizontal') {\n horizontalSize.value = verticalSize.value = val\n } else {\n if (dir === 'horizontal') {\n horizontalSize.value = val\n verticalSize.value = 0\n } else {\n verticalSize.value = val\n horizontalSize.value = 0\n }\n }\n }\n })\n\n return {\n classes,\n containerStyle,\n itemStyle,\n }\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AC,CAAC;AACjC,SAAS,MAAM;AACf,UAAU,YAAY,CAAC,KAAK,GAAG,GAAG,CAAC;AACnC,UAAU,cAAc,CAAC,KAAK,GAAG,CAAC,CAAC;AACnC,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,OAAO;AACX,IAAI,cAAc;AAClB,IAAI,SAAS;AACb,GAAG,CAAC;AACJ;;;;"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var statistic$1 = require('./src/statistic.js');
7
- var statistic = require('./src/statistic2.js');
6
+ var statistic$1 = require('./src/statistic2.js');
7
+ var statistic = require('./src/statistic.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const ElStatistic = install.withInstall(statistic$1["default"]);
@@ -2,79 +2,34 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- require('../../../hooks/index.js');
7
5
  require('../../../utils/index.js');
8
- var statistic = require('./statistic2.js');
9
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
- var index = require('../../../hooks/use-namespace/index.js');
11
- var shared = require('@vue/shared');
12
- var types = require('../../../utils/types.js');
6
+ var runtime = require('../../../utils/vue/props/runtime.js');
13
7
 
14
- const __default__ = vue.defineComponent({
15
- name: "ElStatistic"
16
- });
17
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
- ...__default__,
19
- props: statistic.statisticProps,
20
- setup(__props, { expose }) {
21
- const props = __props;
22
- const ns = index.useNamespace("statistic");
23
- const displayValue = vue.computed(() => {
24
- const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
25
- if (shared.isFunction(formatter))
26
- return formatter(value);
27
- if (!types.isNumber(value))
28
- return value;
29
- let [integer, decimal = ""] = String(value).split(".");
30
- decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
31
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
32
- return [integer, decimal].join(decimal ? decimalSeparator : "");
33
- });
34
- expose({
35
- displayValue
36
- });
37
- return (_ctx, _cache) => {
38
- return vue.openBlock(), vue.createElementBlock("div", {
39
- class: vue.normalizeClass(vue.unref(ns).b())
40
- }, [
41
- _ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", {
42
- key: 0,
43
- class: vue.normalizeClass(vue.unref(ns).e("head"))
44
- }, [
45
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
46
- vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
47
- ])
48
- ], 2)) : vue.createCommentVNode("v-if", true),
49
- vue.createElementVNode("div", {
50
- class: vue.normalizeClass(vue.unref(ns).e("content"))
51
- }, [
52
- _ctx.$slots.prefix || _ctx.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
53
- key: 0,
54
- class: vue.normalizeClass(vue.unref(ns).e("prefix"))
55
- }, [
56
- vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
57
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.prefix), 1)
58
- ])
59
- ], 2)) : vue.createCommentVNode("v-if", true),
60
- vue.createElementVNode("span", {
61
- class: vue.normalizeClass(vue.unref(ns).e("number")),
62
- style: vue.normalizeStyle(_ctx.valueStyle)
63
- }, vue.toDisplayString(vue.unref(displayValue)), 7),
64
- _ctx.$slots.suffix || _ctx.suffix ? (vue.openBlock(), vue.createElementBlock("div", {
65
- key: 1,
66
- class: vue.normalizeClass(vue.unref(ns).e("suffix"))
67
- }, [
68
- vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
69
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.suffix), 1)
70
- ])
71
- ], 2)) : vue.createCommentVNode("v-if", true)
72
- ], 2)
73
- ], 2);
74
- };
8
+ const statisticProps = runtime.buildProps({
9
+ decimalSeparator: {
10
+ type: String,
11
+ default: "."
12
+ },
13
+ groupSeparator: {
14
+ type: String,
15
+ default: ","
16
+ },
17
+ precision: {
18
+ type: Number,
19
+ default: 0
20
+ },
21
+ formatter: Function,
22
+ value: {
23
+ type: runtime.definePropType([Number, Object]),
24
+ default: 0
25
+ },
26
+ prefix: String,
27
+ suffix: String,
28
+ title: String,
29
+ valueStyle: {
30
+ type: runtime.definePropType([String, Object, Array])
75
31
  }
76
32
  });
77
- var Statistic = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\statistic\\src\\statistic.vue"]]);
78
33
 
79
- exports["default"] = Statistic;
34
+ exports.statisticProps = statisticProps;
80
35
  //# sourceMappingURL=statistic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["useNamespace","computed","isFunction","isNumber"],"mappings":";;;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAIC,kBAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAACC,eAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"statistic.js","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
@@ -2,34 +2,79 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ require('../../../hooks/index.js');
5
7
  require('../../../utils/index.js');
6
- var runtime = require('../../../utils/vue/props/runtime.js');
8
+ var statistic = require('./statistic.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
11
+ var shared = require('@vue/shared');
12
+ var types = require('../../../utils/types.js');
7
13
 
8
- const statisticProps = runtime.buildProps({
9
- decimalSeparator: {
10
- type: String,
11
- default: "."
12
- },
13
- groupSeparator: {
14
- type: String,
15
- default: ","
16
- },
17
- precision: {
18
- type: Number,
19
- default: 0
20
- },
21
- formatter: Function,
22
- value: {
23
- type: runtime.definePropType([Number, Object]),
24
- default: 0
25
- },
26
- prefix: String,
27
- suffix: String,
28
- title: String,
29
- valueStyle: {
30
- type: runtime.definePropType([String, Object, Array])
14
+ const __default__ = vue.defineComponent({
15
+ name: "ElStatistic"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: statistic.statisticProps,
20
+ setup(__props, { expose }) {
21
+ const props = __props;
22
+ const ns = index.useNamespace("statistic");
23
+ const displayValue = vue.computed(() => {
24
+ const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
25
+ if (shared.isFunction(formatter))
26
+ return formatter(value);
27
+ if (!types.isNumber(value))
28
+ return value;
29
+ let [integer, decimal = ""] = String(value).split(".");
30
+ decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
31
+ integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
32
+ return [integer, decimal].join(decimal ? decimalSeparator : "");
33
+ });
34
+ expose({
35
+ displayValue
36
+ });
37
+ return (_ctx, _cache) => {
38
+ return vue.openBlock(), vue.createElementBlock("div", {
39
+ class: vue.normalizeClass(vue.unref(ns).b())
40
+ }, [
41
+ _ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock("div", {
42
+ key: 0,
43
+ class: vue.normalizeClass(vue.unref(ns).e("head"))
44
+ }, [
45
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
46
+ vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
47
+ ])
48
+ ], 2)) : vue.createCommentVNode("v-if", true),
49
+ vue.createElementVNode("div", {
50
+ class: vue.normalizeClass(vue.unref(ns).e("content"))
51
+ }, [
52
+ _ctx.$slots.prefix || _ctx.prefix ? (vue.openBlock(), vue.createElementBlock("div", {
53
+ key: 0,
54
+ class: vue.normalizeClass(vue.unref(ns).e("prefix"))
55
+ }, [
56
+ vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
57
+ vue.createElementVNode("span", null, vue.toDisplayString(_ctx.prefix), 1)
58
+ ])
59
+ ], 2)) : vue.createCommentVNode("v-if", true),
60
+ vue.createElementVNode("span", {
61
+ class: vue.normalizeClass(vue.unref(ns).e("number")),
62
+ style: vue.normalizeStyle(_ctx.valueStyle)
63
+ }, vue.toDisplayString(vue.unref(displayValue)), 7),
64
+ _ctx.$slots.suffix || _ctx.suffix ? (vue.openBlock(), vue.createElementBlock("div", {
65
+ key: 1,
66
+ class: vue.normalizeClass(vue.unref(ns).e("suffix"))
67
+ }, [
68
+ vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
69
+ vue.createElementVNode("span", null, vue.toDisplayString(_ctx.suffix), 1)
70
+ ])
71
+ ], 2)) : vue.createCommentVNode("v-if", true)
72
+ ], 2)
73
+ ], 2);
74
+ };
31
75
  }
32
76
  });
77
+ var Statistic = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\workspace\\element-pe\\packages\\components\\statistic\\src\\statistic.vue"]]);
33
78
 
34
- exports.statisticProps = statisticProps;
79
+ exports["default"] = Statistic;
35
80
  //# sourceMappingURL=statistic2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic2.js","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,cAAc,GAAGA,kBAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"statistic2.js","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":["useNamespace","computed","isFunction","isNumber"],"mappings":";;;;;;;;;;;;;uCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAKA,mBAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAIC,kBAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAACC,eAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
6
  var tabs = require('./src/tabs.js');
7
- var tabPane$1 = require('./src/tab-pane2.js');
8
- var tabBar = require('./src/tab-bar2.js');
7
+ var tabPane$1 = require('./src/tab-pane.js');
8
+ var tabBar = require('./src/tab-bar.js');
9
9
  var tabNav = require('./src/tab-nav.js');
10
- var tabPane = require('./src/tab-pane.js');
10
+ var tabPane = require('./src/tab-pane2.js');
11
11
  var constants = require('./src/constants.js');
12
12
  var install = require('../../utils/vue/install.js');
13
13