vue-amazing-ui 2.4.21 → 2.4.23

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 (461) hide show
  1. package/README.md +292 -292
  2. package/README.zh-CN.md +292 -292
  3. package/dist/index.iife.js +147 -147
  4. package/dist/index.js +6726 -6712
  5. package/dist/index.umd.cjs +151 -151
  6. package/dist/style.css +1 -1
  7. package/es/alert/Alert.css +1 -1
  8. package/es/alert/Alert.vue.js +2 -2
  9. package/es/alert/Alert.vue2.js +56 -56
  10. package/es/avatar/Avatar.css +1 -1
  11. package/es/avatar/Avatar.vue.js +1 -1
  12. package/es/avatar/Avatar.vue2.js +29 -29
  13. package/es/backtop/BackTop.css +1 -1
  14. package/es/backtop/BackTop.vue.js +2 -2
  15. package/es/backtop/BackTop.vue2.js +77 -77
  16. package/es/badge/Badge.css +1 -1
  17. package/es/badge/Badge.vue.js +2 -2
  18. package/es/badge/Badge.vue2.js +39 -39
  19. package/es/breadcrumb/Breadcrumb.css +1 -1
  20. package/es/breadcrumb/Breadcrumb.vue.js +2 -2
  21. package/es/breadcrumb/Breadcrumb.vue2.js +35 -35
  22. package/es/button/Button.css +1 -1
  23. package/es/button/Button.vue.js +2 -2
  24. package/es/button/Button.vue2.js +43 -43
  25. package/es/calendar/Calendar.css +1 -1
  26. package/es/calendar/Calendar.vue.js +2 -2
  27. package/es/calendar/Calendar.vue2.js +111 -111
  28. package/es/card/Card.css +1 -1
  29. package/es/card/Card.vue.js +2 -2
  30. package/es/card/Card.vue2.js +21 -21
  31. package/es/carousel/Carousel.css +1 -1
  32. package/es/carousel/Carousel.vue.js +2 -2
  33. package/es/carousel/Carousel.vue2.js +131 -131
  34. package/es/cascader/Cascader.css +1 -1
  35. package/es/cascader/Cascader.d.ts +8 -0
  36. package/es/cascader/Cascader.vue.js +2 -2
  37. package/es/cascader/Cascader.vue2.js +71 -55
  38. package/es/cascader/index.d.ts +12 -0
  39. package/es/checkbox/Checkbox.css +1 -1
  40. package/es/checkbox/Checkbox.vue.js +2 -2
  41. package/es/checkbox/Checkbox.vue2.js +52 -52
  42. package/es/collapse/Collapse.css +1 -1
  43. package/es/collapse/Collapse.vue.js +2 -2
  44. package/es/collapse/Collapse.vue2.js +86 -86
  45. package/es/colorpicker/ColorPicker.css +1 -1
  46. package/es/colorpicker/ColorPicker.vue.js +2 -2
  47. package/es/colorpicker/ColorPicker.vue2.js +232 -232
  48. package/es/configprovider/ConfigProvider.vue.js +29 -29
  49. package/es/countdown/Countdown.css +1 -1
  50. package/es/countdown/Countdown.vue.js +2 -2
  51. package/es/countdown/Countdown.vue2.js +67 -67
  52. package/es/datepicker/DatePicker.css +1 -1
  53. package/es/datepicker/DatePicker.vue.js +4 -4
  54. package/es/datepicker/DatePicker.vue2.js +20 -21
  55. package/es/descriptions/descriptions/Descriptions.css +1 -1
  56. package/es/descriptions/descriptions/Descriptions.vue.js +2 -2
  57. package/es/descriptions/descriptions/Descriptions.vue2.js +61 -61
  58. package/es/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
  59. package/es/descriptions/descriptionsitem/DescriptionsItem.vue.js +2 -2
  60. package/es/descriptions/descriptionsitem/DescriptionsItem.vue2.js +17 -17
  61. package/es/dialog/Dialog.css +1 -1
  62. package/es/dialog/Dialog.d.ts +2 -2
  63. package/es/dialog/Dialog.vue.js +1 -1
  64. package/es/dialog/Dialog.vue2.js +112 -112
  65. package/es/dialog/index.d.ts +6 -6
  66. package/es/divider/Divider.css +1 -1
  67. package/es/divider/Divider.vue.js +1 -1
  68. package/es/divider/Divider.vue2.js +11 -11
  69. package/es/drawer/Drawer.css +1 -1
  70. package/es/drawer/Drawer.vue.js +2 -2
  71. package/es/drawer/Drawer.vue2.js +84 -84
  72. package/es/ellipsis/Ellipsis.css +1 -1
  73. package/es/ellipsis/Ellipsis.vue.js +2 -2
  74. package/es/ellipsis/Ellipsis.vue2.js +32 -32
  75. package/es/empty/Empty.css +1 -1
  76. package/es/empty/Empty.vue.js +2 -2
  77. package/es/empty/Empty.vue2.js +22 -22
  78. package/es/flex/Flex.css +1 -1
  79. package/es/flex/Flex.vue.js +2 -2
  80. package/es/flex/Flex.vue2.js +10 -10
  81. package/es/floatbutton/FloatButton.css +1 -1
  82. package/es/floatbutton/FloatButton.vue.js +1 -1
  83. package/es/floatbutton/FloatButton.vue2.js +57 -57
  84. package/es/gradienttext/GradientText.css +1 -1
  85. package/es/gradienttext/GradientText.vue.js +1 -1
  86. package/es/gradienttext/GradientText.vue2.js +7 -7
  87. package/es/grid/col/Col.css +1 -1
  88. package/es/grid/col/Col.vue.js +2 -2
  89. package/es/grid/col/Col.vue2.js +7 -7
  90. package/es/grid/row/Row.css +1 -1
  91. package/es/grid/row/Row.vue.js +1 -1
  92. package/es/grid/row/Row.vue2.js +14 -14
  93. package/es/image/Image.css +1 -1
  94. package/es/image/Image.vue.js +2 -2
  95. package/es/image/Image.vue2.js +177 -177
  96. package/es/input/Input.css +1 -1
  97. package/es/input/Input.vue.js +2 -2
  98. package/es/input/Input.vue2.js +72 -72
  99. package/es/inputnumber/InputNumber.css +1 -1
  100. package/es/inputnumber/InputNumber.vue.js +2 -2
  101. package/es/inputnumber/InputNumber.vue2.js +77 -77
  102. package/es/inputsearch/InputSearch.css +1 -1
  103. package/es/inputsearch/InputSearch.vue.js +2 -2
  104. package/es/inputsearch/InputSearch.vue2.js +61 -61
  105. package/es/list/list/List.css +1 -1
  106. package/es/list/list/List.vue.js +2 -2
  107. package/es/list/list/List.vue2.js +14 -14
  108. package/es/list/listitem/ListItem.css +1 -1
  109. package/es/list/listitem/ListItem.vue.js +2 -2
  110. package/es/list/listitem/ListItem.vue2.js +41 -41
  111. package/es/loadingbar/LoadingBar.css +1 -1
  112. package/es/loadingbar/LoadingBar.vue.js +2 -2
  113. package/es/loadingbar/LoadingBar.vue2.js +25 -25
  114. package/es/message/Message.css +1 -1
  115. package/es/message/Message.vue.js +2 -2
  116. package/es/message/Message.vue2.js +37 -37
  117. package/es/modal/Modal.css +1 -1
  118. package/es/modal/Modal.d.ts +2 -2
  119. package/es/modal/Modal.vue.js +1 -1
  120. package/es/modal/index.d.ts +6 -6
  121. package/es/node_modules/.pnpm/@vuepic_vue-datepicker@12.0.4_vue@3.5.24_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
  122. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-cards.css +1 -0
  123. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-creative.css +1 -0
  124. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-cube.css +1 -0
  125. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-flip.css +1 -0
  126. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css +1 -0
  127. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css +1 -0
  128. package/es/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper.css +1 -0
  129. package/es/notification/Notification.css +1 -1
  130. package/es/notification/Notification.vue.js +2 -2
  131. package/es/notification/Notification.vue2.js +45 -45
  132. package/es/numberanimation/NumberAnimation.vue.js +17 -17
  133. package/es/pagination/Pagination.css +1 -1
  134. package/es/pagination/Pagination.vue.js +1 -1
  135. package/es/pagination/Pagination.vue2.js +124 -124
  136. package/es/popconfirm/Popconfirm.css +1 -1
  137. package/es/popconfirm/Popconfirm.vue.js +1 -1
  138. package/es/popconfirm/Popconfirm.vue2.js +58 -58
  139. package/es/popover/Popover.css +1 -1
  140. package/es/popover/Popover.vue.js +2 -2
  141. package/es/popover/Popover.vue2.js +20 -20
  142. package/es/progress/Progress.css +1 -1
  143. package/es/progress/Progress.vue.js +2 -2
  144. package/es/progress/Progress.vue2.js +81 -81
  145. package/es/qrcode/QRCode.css +1 -1
  146. package/es/qrcode/QRCode.vue.js +3 -3
  147. package/es/qrcode/QRCode.vue2.js +18 -18
  148. package/es/radio/Radio.css +1 -1
  149. package/es/radio/Radio.vue.js +2 -2
  150. package/es/radio/Radio.vue2.js +88 -88
  151. package/es/rate/Rate.css +1 -1
  152. package/es/rate/Rate.d.ts +1 -1
  153. package/es/rate/Rate.vue.js +1 -1
  154. package/es/rate/Rate.vue2.js +90 -90
  155. package/es/rate/index.d.ts +3 -3
  156. package/es/result/Result.css +1 -1
  157. package/es/result/Result.vue.js +2 -2
  158. package/es/result/Result.vue2.js +51 -51
  159. package/es/scrollbar/Scrollbar.css +1 -1
  160. package/es/scrollbar/Scrollbar.vue.js +1 -1
  161. package/es/scrollbar/Scrollbar.vue2.js +106 -106
  162. package/es/segmented/Segmented.css +1 -1
  163. package/es/segmented/Segmented.vue.js +2 -2
  164. package/es/segmented/Segmented.vue2.js +51 -51
  165. package/es/select/Select.css +1 -1
  166. package/es/select/Select.vue.js +2 -2
  167. package/es/select/Select.vue2.js +157 -157
  168. package/es/skeleton/Skeleton.css +1 -1
  169. package/es/skeleton/Skeleton.vue.js +2 -2
  170. package/es/skeleton/Skeleton.vue2.js +61 -61
  171. package/es/slider/Slider.css +1 -1
  172. package/es/slider/Slider.vue.js +2 -2
  173. package/es/slider/Slider.vue2.js +195 -195
  174. package/es/space/Space.css +1 -1
  175. package/es/space/Space.vue.js +2 -2
  176. package/es/space/Space.vue2.js +7 -7
  177. package/es/spin/Spin.css +1 -1
  178. package/es/spin/Spin.vue.js +2 -2
  179. package/es/spin/Spin.vue2.js +67 -67
  180. package/es/statistic/Statistic.css +1 -1
  181. package/es/statistic/Statistic.vue.js +2 -2
  182. package/es/statistic/Statistic.vue2.js +21 -21
  183. package/es/steps/Steps.css +1 -1
  184. package/es/steps/Steps.vue.js +2 -2
  185. package/es/steps/Steps.vue2.js +35 -35
  186. package/es/swiper/Swiper.css +1 -1
  187. package/es/swiper/Swiper.vue.js +1 -1
  188. package/es/swiper/Swiper.vue2.js +89 -89
  189. package/es/switch/Switch.css +1 -1
  190. package/es/switch/Switch.vue.js +1 -1
  191. package/es/switch/Switch.vue2.js +32 -32
  192. package/es/table/Table.css +1 -1
  193. package/es/table/Table.vue.js +2 -2
  194. package/es/table/Table.vue2.js +686 -687
  195. package/es/tabs/Tabs.css +1 -1
  196. package/es/tabs/Tabs.vue.js +2 -2
  197. package/es/tabs/Tabs.vue2.js +91 -91
  198. package/es/tag/Tag.css +1 -1
  199. package/es/tag/Tag.vue.js +1 -1
  200. package/es/tag/Tag.vue2.js +91 -91
  201. package/es/textarea/Textarea.css +1 -1
  202. package/es/textarea/Textarea.vue.js +1 -1
  203. package/es/textarea/Textarea.vue2.js +37 -37
  204. package/es/textscroll/TextScroll.css +1 -1
  205. package/es/textscroll/TextScroll.d.ts +1 -1
  206. package/es/textscroll/TextScroll.vue.js +2 -2
  207. package/es/textscroll/TextScroll.vue2.js +100 -100
  208. package/es/textscroll/index.d.ts +3 -3
  209. package/es/timeline/Timeline.css +1 -1
  210. package/es/timeline/Timeline.vue.js +2 -2
  211. package/es/timeline/Timeline.vue2.js +24 -24
  212. package/es/tooltip/Tooltip.css +1 -1
  213. package/es/tooltip/Tooltip.vue.js +2 -2
  214. package/es/tooltip/Tooltip.vue2.js +129 -129
  215. package/es/upload/Upload.css +1 -1
  216. package/es/upload/Upload.vue.js +2 -2
  217. package/es/upload/Upload.vue2.js +137 -137
  218. package/es/utils/resolver.js +3 -3
  219. package/es/video/Video.css +1 -1
  220. package/es/video/Video.vue.js +2 -2
  221. package/es/video/Video.vue2.js +44 -44
  222. package/es/waterfall/Waterfall.css +1 -1
  223. package/es/waterfall/Waterfall.vue.js +2 -2
  224. package/es/waterfall/Waterfall.vue2.js +54 -54
  225. package/lib/alert/Alert.css +1 -1
  226. package/lib/alert/Alert.vue.cjs +1 -1
  227. package/lib/alert/Alert.vue2.cjs +2 -2
  228. package/lib/avatar/Avatar.css +1 -1
  229. package/lib/avatar/Avatar.vue.cjs +1 -1
  230. package/lib/avatar/Avatar.vue2.cjs +1 -1
  231. package/lib/backtop/BackTop.css +1 -1
  232. package/lib/backtop/BackTop.vue.cjs +1 -1
  233. package/lib/backtop/BackTop.vue2.cjs +6 -6
  234. package/lib/badge/Badge.css +1 -1
  235. package/lib/badge/Badge.vue.cjs +1 -1
  236. package/lib/badge/Badge.vue2.cjs +1 -1
  237. package/lib/breadcrumb/Breadcrumb.css +1 -1
  238. package/lib/breadcrumb/Breadcrumb.vue.cjs +1 -1
  239. package/lib/breadcrumb/Breadcrumb.vue2.cjs +2 -2
  240. package/lib/button/Button.css +1 -1
  241. package/lib/button/Button.vue.cjs +1 -1
  242. package/lib/button/Button.vue2.cjs +3 -3
  243. package/lib/calendar/Calendar.css +1 -1
  244. package/lib/calendar/Calendar.vue.cjs +1 -1
  245. package/lib/calendar/Calendar.vue2.cjs +5 -5
  246. package/lib/card/Card.css +1 -1
  247. package/lib/card/Card.vue.cjs +1 -1
  248. package/lib/card/Card.vue2.cjs +1 -1
  249. package/lib/carousel/Carousel.css +1 -1
  250. package/lib/carousel/Carousel.vue.cjs +1 -1
  251. package/lib/carousel/Carousel.vue2.cjs +7 -7
  252. package/lib/cascader/Cascader.css +1 -1
  253. package/lib/cascader/Cascader.d.ts +8 -0
  254. package/lib/cascader/Cascader.vue.cjs +1 -1
  255. package/lib/cascader/Cascader.vue2.cjs +1 -1
  256. package/lib/cascader/index.d.ts +12 -0
  257. package/lib/checkbox/Checkbox.css +1 -1
  258. package/lib/checkbox/Checkbox.vue.cjs +1 -1
  259. package/lib/checkbox/Checkbox.vue2.cjs +1 -1
  260. package/lib/collapse/Collapse.css +1 -1
  261. package/lib/collapse/Collapse.vue.cjs +1 -1
  262. package/lib/collapse/Collapse.vue2.cjs +1 -1
  263. package/lib/colorpicker/ColorPicker.css +1 -1
  264. package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
  265. package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
  266. package/lib/configprovider/ConfigProvider.vue.cjs +1 -1
  267. package/lib/countdown/Countdown.css +1 -1
  268. package/lib/countdown/Countdown.vue.cjs +1 -1
  269. package/lib/countdown/Countdown.vue2.cjs +1 -1
  270. package/lib/datepicker/DatePicker.css +1 -1
  271. package/lib/datepicker/DatePicker.vue.cjs +1 -1
  272. package/lib/datepicker/DatePicker.vue2.cjs +2 -2
  273. package/lib/descriptions/descriptions/Descriptions.css +1 -1
  274. package/lib/descriptions/descriptions/Descriptions.vue.cjs +1 -1
  275. package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
  276. package/lib/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
  277. package/lib/descriptions/descriptionsitem/DescriptionsItem.vue.cjs +1 -1
  278. package/lib/descriptions/descriptionsitem/DescriptionsItem.vue2.cjs +1 -1
  279. package/lib/dialog/Dialog.css +1 -1
  280. package/lib/dialog/Dialog.d.ts +2 -2
  281. package/lib/dialog/Dialog.vue.cjs +1 -1
  282. package/lib/dialog/Dialog.vue2.cjs +1 -1
  283. package/lib/dialog/index.d.ts +6 -6
  284. package/lib/divider/Divider.css +1 -1
  285. package/lib/divider/Divider.vue.cjs +1 -1
  286. package/lib/divider/Divider.vue2.cjs +1 -1
  287. package/lib/drawer/Drawer.css +1 -1
  288. package/lib/drawer/Drawer.vue.cjs +1 -1
  289. package/lib/drawer/Drawer.vue2.cjs +1 -1
  290. package/lib/ellipsis/Ellipsis.css +1 -1
  291. package/lib/ellipsis/Ellipsis.vue.cjs +1 -1
  292. package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
  293. package/lib/empty/Empty.css +1 -1
  294. package/lib/empty/Empty.vue.cjs +1 -1
  295. package/lib/empty/Empty.vue2.cjs +1 -1
  296. package/lib/flex/Flex.css +1 -1
  297. package/lib/flex/Flex.vue.cjs +1 -1
  298. package/lib/flex/Flex.vue2.cjs +8 -8
  299. package/lib/floatbutton/FloatButton.css +1 -1
  300. package/lib/floatbutton/FloatButton.vue.cjs +1 -1
  301. package/lib/floatbutton/FloatButton.vue2.cjs +5 -5
  302. package/lib/gradienttext/GradientText.css +1 -1
  303. package/lib/gradienttext/GradientText.vue.cjs +1 -1
  304. package/lib/gradienttext/GradientText.vue2.cjs +1 -1
  305. package/lib/grid/col/Col.css +1 -1
  306. package/lib/grid/col/Col.vue.cjs +1 -1
  307. package/lib/grid/col/Col.vue2.cjs +1 -1
  308. package/lib/grid/row/Row.css +1 -1
  309. package/lib/grid/row/Row.vue.cjs +1 -1
  310. package/lib/grid/row/Row.vue2.cjs +1 -1
  311. package/lib/image/Image.css +1 -1
  312. package/lib/image/Image.vue.cjs +1 -1
  313. package/lib/image/Image.vue2.cjs +1 -1
  314. package/lib/input/Input.css +1 -1
  315. package/lib/input/Input.vue.cjs +1 -1
  316. package/lib/input/Input.vue2.cjs +5 -5
  317. package/lib/inputnumber/InputNumber.css +1 -1
  318. package/lib/inputnumber/InputNumber.vue.cjs +1 -1
  319. package/lib/inputnumber/InputNumber.vue2.cjs +6 -6
  320. package/lib/inputsearch/InputSearch.css +1 -1
  321. package/lib/inputsearch/InputSearch.vue.cjs +1 -1
  322. package/lib/inputsearch/InputSearch.vue2.cjs +2 -2
  323. package/lib/list/list/List.css +1 -1
  324. package/lib/list/list/List.vue.cjs +1 -1
  325. package/lib/list/list/List.vue2.cjs +1 -1
  326. package/lib/list/listitem/ListItem.css +1 -1
  327. package/lib/list/listitem/ListItem.vue.cjs +1 -1
  328. package/lib/list/listitem/ListItem.vue2.cjs +1 -1
  329. package/lib/loadingbar/LoadingBar.css +1 -1
  330. package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
  331. package/lib/loadingbar/LoadingBar.vue2.cjs +3 -3
  332. package/lib/message/Message.css +1 -1
  333. package/lib/message/Message.vue.cjs +1 -1
  334. package/lib/message/Message.vue2.cjs +2 -2
  335. package/lib/modal/Modal.css +1 -1
  336. package/lib/modal/Modal.d.ts +2 -2
  337. package/lib/modal/Modal.vue.cjs +1 -1
  338. package/lib/modal/index.d.ts +6 -6
  339. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@12.0.4_vue@3.5.24_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
  340. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-cards.css +1 -0
  341. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-creative.css +1 -0
  342. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-cube.css +1 -0
  343. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/effect-flip.css +1 -0
  344. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/navigation.css +1 -0
  345. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.css +1 -0
  346. package/lib/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper.css +1 -0
  347. package/lib/notification/Notification.css +1 -1
  348. package/lib/notification/Notification.vue.cjs +1 -1
  349. package/lib/notification/Notification.vue2.cjs +2 -2
  350. package/lib/numberanimation/NumberAnimation.vue.cjs +1 -1
  351. package/lib/pagination/Pagination.css +1 -1
  352. package/lib/pagination/Pagination.vue.cjs +1 -1
  353. package/lib/pagination/Pagination.vue2.cjs +1 -1
  354. package/lib/popconfirm/Popconfirm.css +1 -1
  355. package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
  356. package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
  357. package/lib/popover/Popover.css +1 -1
  358. package/lib/popover/Popover.vue.cjs +1 -1
  359. package/lib/popover/Popover.vue2.cjs +1 -1
  360. package/lib/progress/Progress.css +1 -1
  361. package/lib/progress/Progress.vue.cjs +1 -1
  362. package/lib/progress/Progress.vue2.cjs +9 -9
  363. package/lib/qrcode/QRCode.css +1 -1
  364. package/lib/qrcode/QRCode.vue.cjs +1 -1
  365. package/lib/qrcode/QRCode.vue2.cjs +1 -1
  366. package/lib/radio/Radio.css +1 -1
  367. package/lib/radio/Radio.vue.cjs +1 -1
  368. package/lib/radio/Radio.vue2.cjs +4 -4
  369. package/lib/rate/Rate.css +1 -1
  370. package/lib/rate/Rate.d.ts +1 -1
  371. package/lib/rate/Rate.vue.cjs +1 -1
  372. package/lib/rate/Rate.vue2.cjs +1 -1
  373. package/lib/rate/index.d.ts +3 -3
  374. package/lib/result/Result.css +1 -1
  375. package/lib/result/Result.vue.cjs +1 -1
  376. package/lib/result/Result.vue2.cjs +1 -1
  377. package/lib/scrollbar/Scrollbar.css +1 -1
  378. package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
  379. package/lib/scrollbar/Scrollbar.vue2.cjs +5 -5
  380. package/lib/segmented/Segmented.css +1 -1
  381. package/lib/segmented/Segmented.vue.cjs +1 -1
  382. package/lib/segmented/Segmented.vue2.cjs +1 -1
  383. package/lib/select/Select.css +1 -1
  384. package/lib/select/Select.vue.cjs +1 -1
  385. package/lib/select/Select.vue2.cjs +4 -4
  386. package/lib/skeleton/Skeleton.css +1 -1
  387. package/lib/skeleton/Skeleton.vue.cjs +1 -1
  388. package/lib/skeleton/Skeleton.vue2.cjs +1 -1
  389. package/lib/slider/Slider.css +1 -1
  390. package/lib/slider/Slider.vue.cjs +1 -1
  391. package/lib/slider/Slider.vue2.cjs +7 -7
  392. package/lib/space/Space.css +1 -1
  393. package/lib/space/Space.vue.cjs +1 -1
  394. package/lib/space/Space.vue2.cjs +1 -1
  395. package/lib/spin/Spin.css +1 -1
  396. package/lib/spin/Spin.vue.cjs +1 -1
  397. package/lib/spin/Spin.vue2.cjs +5 -5
  398. package/lib/statistic/Statistic.css +1 -1
  399. package/lib/statistic/Statistic.vue.cjs +1 -1
  400. package/lib/statistic/Statistic.vue2.cjs +1 -1
  401. package/lib/steps/Steps.css +1 -1
  402. package/lib/steps/Steps.vue.cjs +1 -1
  403. package/lib/steps/Steps.vue2.cjs +3 -3
  404. package/lib/swiper/Swiper.css +1 -1
  405. package/lib/swiper/Swiper.vue.cjs +1 -1
  406. package/lib/swiper/Swiper.vue2.cjs +13 -13
  407. package/lib/switch/Switch.css +1 -1
  408. package/lib/switch/Switch.vue.cjs +1 -1
  409. package/lib/switch/Switch.vue2.cjs +5 -5
  410. package/lib/table/Table.css +1 -1
  411. package/lib/table/Table.vue.cjs +1 -1
  412. package/lib/table/Table.vue2.cjs +1 -1
  413. package/lib/tabs/Tabs.css +1 -1
  414. package/lib/tabs/Tabs.vue.cjs +1 -1
  415. package/lib/tabs/Tabs.vue2.cjs +1 -1
  416. package/lib/tag/Tag.css +1 -1
  417. package/lib/tag/Tag.vue.cjs +1 -1
  418. package/lib/tag/Tag.vue2.cjs +1 -1
  419. package/lib/textarea/Textarea.css +1 -1
  420. package/lib/textarea/Textarea.vue.cjs +1 -1
  421. package/lib/textarea/Textarea.vue2.cjs +4 -4
  422. package/lib/textscroll/TextScroll.css +1 -1
  423. package/lib/textscroll/TextScroll.d.ts +1 -1
  424. package/lib/textscroll/TextScroll.vue.cjs +1 -1
  425. package/lib/textscroll/TextScroll.vue2.cjs +9 -9
  426. package/lib/textscroll/index.d.ts +3 -3
  427. package/lib/timeline/Timeline.css +1 -1
  428. package/lib/timeline/Timeline.vue.cjs +1 -1
  429. package/lib/timeline/Timeline.vue2.cjs +1 -1
  430. package/lib/tooltip/Tooltip.css +1 -1
  431. package/lib/tooltip/Tooltip.vue.cjs +1 -1
  432. package/lib/tooltip/Tooltip.vue2.cjs +1 -1
  433. package/lib/upload/Upload.css +1 -1
  434. package/lib/upload/Upload.vue.cjs +1 -1
  435. package/lib/upload/Upload.vue2.cjs +1 -1
  436. package/lib/utils/resolver.cjs +1 -1
  437. package/lib/video/Video.css +1 -1
  438. package/lib/video/Video.vue.cjs +1 -1
  439. package/lib/video/Video.vue2.cjs +2 -2
  440. package/lib/waterfall/Waterfall.css +1 -1
  441. package/lib/waterfall/Waterfall.vue.cjs +1 -1
  442. package/lib/waterfall/Waterfall.vue2.cjs +4 -4
  443. package/package.json +30 -27
  444. package/es/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
  445. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
  446. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
  447. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
  448. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
  449. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
  450. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
  451. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
  452. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
  453. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
  454. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
  455. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
  456. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
  457. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
  458. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
  459. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
  460. /package/es/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.3}/node_modules/swiper/modules/effect-fade.css +0 -0
  461. /package/lib/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.3}/node_modules/swiper/modules/effect-fade.css +0 -0
package/README.md CHANGED
@@ -1,292 +1,292 @@
1
- <p align="center">
2
- <a href="https://themusecatcher.github.io/vue-amazing-ui/">
3
- <img width="200" src="https://themusecatcher.github.io/vue-amazing-ui/amazing-logo.svg">
4
- </a>
5
- </p>
6
-
7
- <h1 align="center">Vue Amazing UI</h1>
8
- <p align="center">A Vue 3 Component Library</p>
9
- <p align="center">Theme Customizable, Fully using TypeScript and SFC, Supports tree shaking.</p>
10
- <p align="center">Kinda Interesting</p>
11
- <p align="center">English | <a href="README.zh-CN.md">中文</a></p>
12
-
13
- ## Documentation
14
-
15
- [Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
16
-
17
- ## Features
18
-
19
- - The component library is implemented with `Vue@3.5.21`+ `TypeScript@5.9.2` + `Vite@7.1.4` + `Less@4.4.1`.
20
- - Currently, it includes `67` basic UI components and `18` utility functions, with continuous exploration and updates ongoing...
21
- - Theme Customizable, all you need is to provide a theme color, then all the stuffs will be done by me.
22
- - By the way, they are all treeshakable.
23
- - All the stuff in Vue Amazing UI is written in TypeScript. It can work with your typescript project seamlessly.
24
- - All components are built in single file component `SFC` and can be used independently.
25
- - Ready to use out of the box, no fuss.
26
-
27
- ## Installation
28
-
29
- ```sh
30
- pnpm add vue-amazing-ui
31
- # or
32
- npm install vue-amazing-ui
33
- # or
34
- yarn add vue-amazing-ui
35
- # or
36
- bun add vue-amazing-ui
37
- ```
38
-
39
- ## Use Components
40
-
41
- **Global Registration All Components (Not Recommended)**
42
-
43
- _No tree-shaking. Bundle will have redundant codes._
44
-
45
- ```ts
46
- import { createApp } from 'vue'
47
- import App from './App.vue'
48
- import VueAmazingUI from 'vue-amazing-ui'
49
- import 'vue-amazing-ui/css'
50
-
51
- const app = createApp(App)
52
- app.use(VueAmazingUI)
53
- app.mount('#app')
54
- ```
55
-
56
- **Global Partial Registration**
57
-
58
- _In this form, only the imported components will be bundled._
59
-
60
- ```ts
61
- import { createApp } from 'vue'
62
- import App from './App.vue'
63
- import { Button, Tag } from 'vue-amazing-ui'
64
- import 'vue-amazing-ui/es/button/Button.css'
65
- import 'vue-amazing-ui/es/tag/Tag.css'
66
-
67
- const app = createApp(App)
68
- app.use(Button).use(Tag)
69
- app.mount('#app')
70
- ```
71
-
72
- **Local Registration**
73
-
74
- _In this form, only the imported components will be bundled as well._
75
-
76
- ```vue
77
- <script setup lang="ts">
78
- import { Button, Tag } from 'vue-amazing-ui'
79
- import 'vue-amazing-ui/es/button/Button.css'
80
- import 'vue-amazing-ui/es/tag/Tag.css'
81
- </script>
82
- <template>
83
- <Button>button</Button>
84
- <Tag>tag</Tag>
85
- </template>
86
- ```
87
-
88
- **Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) is recommended).**
89
-
90
- ```ts
91
- import { createApp } from 'vue'
92
- import App from './App.vue'
93
- import 'vue-amazing-ui/es/style/global.css' // 引入全局默认样式
94
-
95
- const app = createApp(App)
96
- app.mount('#app')
97
- ```
98
-
99
- **Automatic On-Demand Import (Strongly Recommended)**
100
-
101
- Use the [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) plugin to automatically import components on demand. The plugin will automatically parse the components used in the template and import the components and styles.
102
-
103
- ```sh
104
- pnpm add unplugin-vue-components -D
105
- # or
106
- npm install unplugin-vue-components -D
107
- # or
108
- yarn add unplugin-vue-components -D
109
- # or
110
- bun add unplugin-vue-components -D
111
- ```
112
-
113
- ```ts
114
- // vite.config.ts
115
- import { defineConfig } from 'vite'
116
- import vue from '@vitejs/plugin-vue'
117
- import Components from 'unplugin-vue-components/vite'
118
- // vue-amazing-ui on-demand import
119
- import { VueAmazingUIResolver } from 'vue-amazing-ui'
120
-
121
- // https://vitejs.dev/config/
122
- export default defineConfig({
123
- plugins: [
124
- vue(),
125
- Components({
126
- resolvers: [
127
- // auto import components from VueAmazingUI
128
- VueAmazingUIResolver({
129
- cjs: false // whether use commonjs build, default false
130
- })
131
- ]
132
- })
133
- ]
134
- })
135
- ```
136
-
137
- Then, you can directly use all components from `vue-amazing-ui` in your code.
138
-
139
- ```vue
140
- <template>
141
- <Button>button</Button>
142
- <Tag>tag</Tag>
143
- </template>
144
- ```
145
-
146
- ## Use Types
147
-
148
- _All types can be directly imported and used from `vue-amazing-ui` without any additional installation._
149
-
150
- ```vue
151
- <script setup lang="ts">
152
- import { ref } from 'vue'
153
- import type { ButtonProps } from 'vue-amazing-ui'
154
- const shape = ref<ButtonProps['shape']>('default')
155
- </script>
156
- <template>
157
- <Button :shape="shape">button</Button>
158
- </template>
159
- ```
160
-
161
- ## Use Functions
162
-
163
- ```vue
164
- <script setup lang="ts">
165
- import {
166
- dateFormat,
167
- formatNumber,
168
- rafTimeout,
169
- cancelRaf,
170
- throttle,
171
- debounce,
172
- add,
173
- downloadFile,
174
- toggleDark,
175
- useEventListener,
176
- useMutationObserver,
177
- useScroll,
178
- useFps,
179
- useMediaQuery,
180
- useResizeObserver,
181
- useSlotsExist,
182
- useInject,
183
- useOptionsSupported
184
- } from 'vue-amazing-ui'
185
- </script>
186
- ```
187
-
188
- ## Project
189
-
190
- - Get the project code
191
-
192
- ```sh
193
- git clone https://github.com/themusecatcher/vue-amazing-ui.git
194
- ```
195
-
196
- - Install dependencies
197
-
198
- ```sh
199
- cd vue-amazing-ui
200
-
201
- pnpm i
202
- ```
203
-
204
- - Run project
205
-
206
- ```sh
207
- pnpm dev
208
- ```
209
-
210
- - Run docs
211
-
212
- ```sh
213
- pnpm docs:dev
214
- ```
215
-
216
- ## Blogs
217
-
218
- [My CSDN Blogs](https://themusecatcher.blog.csdn.net)
219
-
220
- ## Sponsorship
221
-
222
- `Vue Amazing UI` is an open-source project licensed under the `MIT` license, and it is completely free to use. All work on the component library and documentation is completed by the author alone, and the development and iteration process has been challenging. For the healthy and sustainable development of the component library, your support and sponsorship are greatly appreciated.
223
-
224
- #### [Become a Sponsor](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
225
-
226
- ## Sponsors 🫡
227
-
228
- All sponsors will be listed here, thank you very much for your support and sponsorship ❤️
229
-
230
- <a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher" title="GitHub@themusecatcher"></a> <img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="WeChat@Ant" title="WeChat@Ant" /> <a href="https://github.com/nizhensh-i" target="_blank"><img width="64" height="64" src="./docs/public/avatar_2.jpg" alt="GitHub@nizhensh-i" title="GitHub@nizhensh-i"></a> <a href="https://github.com/beijin1949" target="_blank"><img width="64" height="64" src="./docs/public/avatar_3.png" alt="GitHub@beijin1949" title="GitHub@beijin1949"></a> <a href="https://github.com/JinZemin" target="_blank"><img width="64" height="64" src="./docs/public/avatar_4.png" alt="GitHub@JinZemin" title="GitHub@JinZemin"></a> <a href="hhttps://github.com/ye5840" target="_blank"><img width="64" height="64" src="./docs/public/avatar_5.png" alt="GitHub@ye5840" title="GitHub@ye5840"></a>
231
-
232
- ## Components
233
-
234
- | Name | Description | Name | Description |
235
- | :-------------- | :---------- | :------------- | :---------- |
236
- | Alert | 警告提示 | Avatar | 头像 |
237
- | BackTop | 回到顶部 | Badge | 徽标 |
238
- | Breadcrumb | 面包屑 | Button | 按钮 |
239
- | Calendar | 日历 | Card | 卡片 |
240
- | Carousel | 轮播图 | Cascader | 级联选择 |
241
- | Checkbox | 复选框 | Collapse | 折叠面板 |
242
- | ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置 |
243
- | Countdown | 倒计时 | DatePicker | 日期选择器 |
244
- | Descriptions | 描述列表 | Dialog | 对话框 |
245
- | Divider | 分割线 | Drawer | 抽屉 |
246
- | Ellipsis | 文本省略 | Empty | 空状态 |
247
- | Flex | 弹性布局 | FloatButton | 浮动按钮 |
248
- | GradientText | 渐变文字 | Grid | 栅格 |
249
- | Highlight | 高亮文本 | Image | 图片 |
250
- | Input | 输入框 | InputNumber | 数字输入框 |
251
- | InputSearch | 搜索框 | List | 列表 |
252
- | LoadingBar | 加载条 | Message | 全局提示 |
253
- | Modal | 模态框 | Notification | 通知提醒 |
254
- | NumberAnimation | 数值动画 | Pagination | 分页 |
255
- | Popconfirm | 弹出确认 | Popover | 气泡卡片 |
256
- | Progress | 进度条 | QRCode | 二维码 |
257
- | Radio | 单选框 | Rate | 评分 |
258
- | Result | 结果 | Scrollbar | 滚动条 |
259
- | Segmented | 分段控制器 | Select | 选择器 |
260
- | Skeleton | 骨架屏 | Slider | 滑动输入条 |
261
- | Space | 间距 | Spin | 加载中 |
262
- | Statistic | 统计数值 | Steps | 步骤条 |
263
- | Swiper | 触摸滑动 | Switch | 开关 |
264
- | Table | 表格 | Tabs | 标签页 |
265
- | Tag | 标签 | Textarea | 文本域 |
266
- | TextScroll | 文字滚动 | Timeline | 时间轴 |
267
- | Tooltip | 文字提示 | Upload | 上传 |
268
- | Video | 播放器 | Waterfall | 瀑布流 |
269
- | Watermark | 水印 |
270
-
271
- ## Functions
272
-
273
- | Name | Description | Type |
274
- | :-- | :-- | :-- |
275
- | dateFormat | Format date-time string function | (value: number &#124; string &#124; Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
276
- | formatNumber | Number formatting function | (value: number &#124; string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
277
- | rafTimeout | Function to implement `setTimeout` or `setInterval` using `requestAnimationFrame` | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
278
- | cancelRaf | Function to cancel the `rafTimeout` function | (raf: { id: number }) => void |
279
- | throttle | Throttle function | (fn: Function, delay: number = 300) => Function |
280
- | debounce | Debounce function | (fn: Function, delay: number = 300) => Function |
281
- | add | Addition function that eliminates precision issues in JavaScript arithmetic | (num1: number, num2: number) => number |
282
- | downloadFile | Function to download a file with a custom filename; if no filename is provided, it extracts the filename from the URL | (url: string, fileName?: string) => void |
283
- | toggleDark | Function to toggle dark mode | () => void |
284
- | useEventListener | Function to add and remove event listeners using Vue lifecycle hooks | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
- | useMutationObserver | Function to observe changes in DOM elements using `MutationObserver` | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
286
- | useScroll | Function to monitor the scroll position and state of a target element in real time | (target: Ref &#124; HTMLElement &#124; Window &#124; Document = window, throttleDelay: number = 0, onScroll?: (e: Event) => void, onStop?: (e: Event) => void) => { x: Ref\<number>, xScrollMax: Ref\<number>, y: Ref\<number>, yScrollMax: Ref\<number>, isScrolling: Ref\<boolean>, left: Ref\<boolean>, right: Ref\<boolean>, top: Ref\<boolean>, bottom: Ref\<boolean> } |
287
- | useFps | Function to monitor the browser's refresh rate (FPS) in real time | () => { fps: Ref\<number> } |
288
- | useMediaQuery | Function to determine if the current environment matches a specified media query condition | (mediaQuery: string) => { match: Ref\<boolean> } |
289
- | useResizeObserver | Function to observe changes in the dimensions of DOM elements using `ResizeObserver` | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
290
- | useSlotsExist | Function to watch for the existence of slots with given names, supporting single slots or an array of slots | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
291
- | useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
- | useOptionsSupported | Checks if the browser supports the given event listener options | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
1
+ <p align="center">
2
+ <a href="https://themusecatcher.github.io/vue-amazing-ui/">
3
+ <img width="200" src="https://themusecatcher.github.io/vue-amazing-ui/amazing-logo.svg">
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center">Vue Amazing UI</h1>
8
+ <p align="center">A Vue 3 Component Library</p>
9
+ <p align="center">Theme Customizable, Fully using TypeScript and SFC, Supports tree shaking.</p>
10
+ <p align="center">Kinda Interesting</p>
11
+ <p align="center">English | <a href="README.zh-CN.md">中文</a></p>
12
+
13
+ ## Documentation
14
+
15
+ [Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
16
+
17
+ ## Features
18
+
19
+ - The component library is implemented with `Vue@3.5.24`+ `TypeScript@5.9.3` + `Vite@7.2.2` + `Less@4.4.2`.
20
+ - Currently, it includes `67` basic UI components and `18` utility functions, with continuous exploration and updates ongoing...
21
+ - Theme Customizable, all you need is to provide a theme color, then all the stuffs will be done by me.
22
+ - By the way, they are all treeshakable.
23
+ - All the stuff in Vue Amazing UI is written in TypeScript. It can work with your typescript project seamlessly.
24
+ - All components are built in single file component `SFC` and can be used independently.
25
+ - Ready to use out of the box, no fuss.
26
+
27
+ ## Installation
28
+
29
+ ```sh
30
+ pnpm add vue-amazing-ui
31
+ # or
32
+ npm install vue-amazing-ui
33
+ # or
34
+ yarn add vue-amazing-ui
35
+ # or
36
+ bun add vue-amazing-ui
37
+ ```
38
+
39
+ ## Use Components
40
+
41
+ **Global Registration All Components (Not Recommended)**
42
+
43
+ _No tree-shaking. Bundle will have redundant codes._
44
+
45
+ ```ts
46
+ import { createApp } from 'vue'
47
+ import App from './App.vue'
48
+ import VueAmazingUI from 'vue-amazing-ui'
49
+ import 'vue-amazing-ui/css'
50
+
51
+ const app = createApp(App)
52
+ app.use(VueAmazingUI)
53
+ app.mount('#app')
54
+ ```
55
+
56
+ **Global Partial Registration**
57
+
58
+ _In this form, only the imported components will be bundled._
59
+
60
+ ```ts
61
+ import { createApp } from 'vue'
62
+ import App from './App.vue'
63
+ import { Button, Tag } from 'vue-amazing-ui'
64
+ import 'vue-amazing-ui/es/button/Button.css'
65
+ import 'vue-amazing-ui/es/tag/Tag.css'
66
+
67
+ const app = createApp(App)
68
+ app.use(Button).use(Tag)
69
+ app.mount('#app')
70
+ ```
71
+
72
+ **Local Registration**
73
+
74
+ _In this form, only the imported components will be bundled as well._
75
+
76
+ ```vue
77
+ <script setup lang="ts">
78
+ import { Button, Tag } from 'vue-amazing-ui'
79
+ import 'vue-amazing-ui/es/button/Button.css'
80
+ import 'vue-amazing-ui/es/tag/Tag.css'
81
+ </script>
82
+ <template>
83
+ <Button>button</Button>
84
+ <Tag>tag</Tag>
85
+ </template>
86
+ ```
87
+
88
+ **Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) is recommended).**
89
+
90
+ ```ts
91
+ import { createApp } from 'vue'
92
+ import App from './App.vue'
93
+ import 'vue-amazing-ui/es/style/global.css' // 引入全局默认样式
94
+
95
+ const app = createApp(App)
96
+ app.mount('#app')
97
+ ```
98
+
99
+ **Automatic On-Demand Import (Strongly Recommended)**
100
+
101
+ Use the [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) plugin to automatically import components on demand. The plugin will automatically parse the components used in the template and import the components and styles.
102
+
103
+ ```sh
104
+ pnpm add unplugin-vue-components -D
105
+ # or
106
+ npm install unplugin-vue-components -D
107
+ # or
108
+ yarn add unplugin-vue-components -D
109
+ # or
110
+ bun add unplugin-vue-components -D
111
+ ```
112
+
113
+ ```ts
114
+ // vite.config.ts
115
+ import { defineConfig } from 'vite'
116
+ import vue from '@vitejs/plugin-vue'
117
+ import Components from 'unplugin-vue-components/vite'
118
+ // vue-amazing-ui on-demand import
119
+ import { VueAmazingUIResolver } from 'vue-amazing-ui'
120
+
121
+ // https://vitejs.dev/config/
122
+ export default defineConfig({
123
+ plugins: [
124
+ vue(),
125
+ Components({
126
+ resolvers: [
127
+ // auto import components from VueAmazingUI
128
+ VueAmazingUIResolver({
129
+ cjs: false // whether use commonjs build, default false
130
+ })
131
+ ]
132
+ })
133
+ ]
134
+ })
135
+ ```
136
+
137
+ Then, you can directly use all components from `vue-amazing-ui` in your code.
138
+
139
+ ```vue
140
+ <template>
141
+ <Button>button</Button>
142
+ <Tag>tag</Tag>
143
+ </template>
144
+ ```
145
+
146
+ ## Use Types
147
+
148
+ _All types can be directly imported and used from `vue-amazing-ui` without any additional installation._
149
+
150
+ ```vue
151
+ <script setup lang="ts">
152
+ import { ref } from 'vue'
153
+ import type { ButtonProps } from 'vue-amazing-ui'
154
+ const shape = ref<ButtonProps['shape']>('default')
155
+ </script>
156
+ <template>
157
+ <Button :shape="shape">button</Button>
158
+ </template>
159
+ ```
160
+
161
+ ## Use Functions
162
+
163
+ ```vue
164
+ <script setup lang="ts">
165
+ import {
166
+ dateFormat,
167
+ formatNumber,
168
+ rafTimeout,
169
+ cancelRaf,
170
+ throttle,
171
+ debounce,
172
+ add,
173
+ downloadFile,
174
+ toggleDark,
175
+ useEventListener,
176
+ useMutationObserver,
177
+ useScroll,
178
+ useFps,
179
+ useMediaQuery,
180
+ useResizeObserver,
181
+ useSlotsExist,
182
+ useInject,
183
+ useOptionsSupported
184
+ } from 'vue-amazing-ui'
185
+ </script>
186
+ ```
187
+
188
+ ## Project
189
+
190
+ - Get the project code
191
+
192
+ ```sh
193
+ git clone https://github.com/themusecatcher/vue-amazing-ui.git
194
+ ```
195
+
196
+ - Install dependencies
197
+
198
+ ```sh
199
+ cd vue-amazing-ui
200
+
201
+ pnpm i
202
+ ```
203
+
204
+ - Run project
205
+
206
+ ```sh
207
+ pnpm dev
208
+ ```
209
+
210
+ - Run docs
211
+
212
+ ```sh
213
+ pnpm docs:dev
214
+ ```
215
+
216
+ ## Blogs
217
+
218
+ [My CSDN Blogs](https://themusecatcher.blog.csdn.net)
219
+
220
+ ## Sponsorship
221
+
222
+ `Vue Amazing UI` is an open-source project licensed under the `MIT` license, and it is completely free to use. All work on the component library and documentation is completed by the author alone, and the development and iteration process has been challenging. For the healthy and sustainable development of the component library, your support and sponsorship are greatly appreciated.
223
+
224
+ #### [Become a Sponsor](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
225
+
226
+ ## Sponsors 🫡
227
+
228
+ All sponsors will be listed here, thank you very much for your support and sponsorship ❤️
229
+
230
+ <a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher" title="GitHub@themusecatcher"></a> <img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="WeChat@Ant" title="WeChat@Ant" /> <a href="https://github.com/nizhensh-i" target="_blank"><img width="64" height="64" src="./docs/public/avatar_2.jpg" alt="GitHub@nizhensh-i" title="GitHub@nizhensh-i"></a> <a href="https://github.com/beijin1949" target="_blank"><img width="64" height="64" src="./docs/public/avatar_3.png" alt="GitHub@beijin1949" title="GitHub@beijin1949"></a> <a href="https://github.com/JinZemin" target="_blank"><img width="64" height="64" src="./docs/public/avatar_4.png" alt="GitHub@JinZemin" title="GitHub@JinZemin"></a> <a href="hhttps://github.com/ye5840" target="_blank"><img width="64" height="64" src="./docs/public/avatar_5.png" alt="GitHub@ye5840" title="GitHub@ye5840"></a>
231
+
232
+ ## Components
233
+
234
+ | Name | Description | Name | Description |
235
+ | :-------------- | :---------- | :------------- | :---------- |
236
+ | Alert | 警告提示 | Avatar | 头像 |
237
+ | BackTop | 回到顶部 | Badge | 徽标 |
238
+ | Breadcrumb | 面包屑 | Button | 按钮 |
239
+ | Calendar | 日历 | Card | 卡片 |
240
+ | Carousel | 轮播图 | Cascader | 级联选择 |
241
+ | Checkbox | 复选框 | Collapse | 折叠面板 |
242
+ | ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置 |
243
+ | Countdown | 倒计时 | DatePicker | 日期选择器 |
244
+ | Descriptions | 描述列表 | Dialog | 对话框 |
245
+ | Divider | 分割线 | Drawer | 抽屉 |
246
+ | Ellipsis | 文本省略 | Empty | 空状态 |
247
+ | Flex | 弹性布局 | FloatButton | 浮动按钮 |
248
+ | GradientText | 渐变文字 | Grid | 栅格 |
249
+ | Highlight | 高亮文本 | Image | 图片 |
250
+ | Input | 输入框 | InputNumber | 数字输入框 |
251
+ | InputSearch | 搜索框 | List | 列表 |
252
+ | LoadingBar | 加载条 | Message | 全局提示 |
253
+ | Modal | 模态框 | Notification | 通知提醒 |
254
+ | NumberAnimation | 数值动画 | Pagination | 分页 |
255
+ | Popconfirm | 弹出确认 | Popover | 气泡卡片 |
256
+ | Progress | 进度条 | QRCode | 二维码 |
257
+ | Radio | 单选框 | Rate | 评分 |
258
+ | Result | 结果 | Scrollbar | 滚动条 |
259
+ | Segmented | 分段控制器 | Select | 选择器 |
260
+ | Skeleton | 骨架屏 | Slider | 滑动输入条 |
261
+ | Space | 间距 | Spin | 加载中 |
262
+ | Statistic | 统计数值 | Steps | 步骤条 |
263
+ | Swiper | 触摸滑动 | Switch | 开关 |
264
+ | Table | 表格 | Tabs | 标签页 |
265
+ | Tag | 标签 | Textarea | 文本域 |
266
+ | TextScroll | 文字滚动 | Timeline | 时间轴 |
267
+ | Tooltip | 文字提示 | Upload | 上传 |
268
+ | Video | 播放器 | Waterfall | 瀑布流 |
269
+ | Watermark | 水印 |
270
+
271
+ ## Functions
272
+
273
+ | Name | Description | Type |
274
+ | :-- | :-- | :-- |
275
+ | dateFormat | Format date-time string function | (value: number &#124; string &#124; Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
276
+ | formatNumber | Number formatting function | (value: number &#124; string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
277
+ | rafTimeout | Function to implement `setTimeout` or `setInterval` using `requestAnimationFrame` | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
278
+ | cancelRaf | Function to cancel the `rafTimeout` function | (raf: { id: number }) => void |
279
+ | throttle | Throttle function | (fn: Function, delay: number = 300) => Function |
280
+ | debounce | Debounce function | (fn: Function, delay: number = 300) => Function |
281
+ | add | Addition function that eliminates precision issues in JavaScript arithmetic | (num1: number, num2: number) => number |
282
+ | downloadFile | Function to download a file with a custom filename; if no filename is provided, it extracts the filename from the URL | (url: string, fileName?: string) => void |
283
+ | toggleDark | Function to toggle dark mode | () => void |
284
+ | useEventListener | Function to add and remove event listeners using Vue lifecycle hooks | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
+ | useMutationObserver | Function to observe changes in DOM elements using `MutationObserver` | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
286
+ | useScroll | Function to monitor the scroll position and state of a target element in real time | (target: Ref &#124; HTMLElement &#124; Window &#124; Document = window, throttleDelay: number = 0, onScroll?: (e: Event) => void, onStop?: (e: Event) => void) => { x: Ref\<number>, xScrollMax: Ref\<number>, y: Ref\<number>, yScrollMax: Ref\<number>, isScrolling: Ref\<boolean>, left: Ref\<boolean>, right: Ref\<boolean>, top: Ref\<boolean>, bottom: Ref\<boolean> } |
287
+ | useFps | Function to monitor the browser's refresh rate (FPS) in real time | () => { fps: Ref\<number> } |
288
+ | useMediaQuery | Function to determine if the current environment matches a specified media query condition | (mediaQuery: string) => { match: Ref\<boolean> } |
289
+ | useResizeObserver | Function to observe changes in the dimensions of DOM elements using `ResizeObserver` | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
290
+ | useSlotsExist | Function to watch for the existence of slots with given names, supporting single slots or an array of slots | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
291
+ | useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
+ | useOptionsSupported | Checks if the browser supports the given event listener options | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |