vue-amazing-ui 2.4.21 → 2.4.22

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 (443) hide show
  1. package/README.md +292 -292
  2. package/README.zh-CN.md +292 -292
  3. package/dist/index.iife.js +141 -141
  4. package/dist/index.js +6726 -6711
  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 +21 -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.vue.js +1 -1
  63. package/es/dialog/Dialog.vue2.js +112 -112
  64. package/es/divider/Divider.css +1 -1
  65. package/es/divider/Divider.vue.js +1 -1
  66. package/es/divider/Divider.vue2.js +11 -11
  67. package/es/drawer/Drawer.css +1 -1
  68. package/es/drawer/Drawer.vue.js +2 -2
  69. package/es/drawer/Drawer.vue2.js +84 -84
  70. package/es/ellipsis/Ellipsis.css +1 -1
  71. package/es/ellipsis/Ellipsis.vue.js +2 -2
  72. package/es/ellipsis/Ellipsis.vue2.js +32 -32
  73. package/es/empty/Empty.css +1 -1
  74. package/es/empty/Empty.vue.js +2 -2
  75. package/es/empty/Empty.vue2.js +22 -22
  76. package/es/flex/Flex.css +1 -1
  77. package/es/flex/Flex.vue.js +2 -2
  78. package/es/flex/Flex.vue2.js +10 -10
  79. package/es/floatbutton/FloatButton.css +1 -1
  80. package/es/floatbutton/FloatButton.vue.js +1 -1
  81. package/es/floatbutton/FloatButton.vue2.js +57 -57
  82. package/es/gradienttext/GradientText.css +1 -1
  83. package/es/gradienttext/GradientText.vue.js +1 -1
  84. package/es/gradienttext/GradientText.vue2.js +7 -7
  85. package/es/grid/col/Col.css +1 -1
  86. package/es/grid/col/Col.vue.js +2 -2
  87. package/es/grid/col/Col.vue2.js +7 -7
  88. package/es/grid/row/Row.css +1 -1
  89. package/es/grid/row/Row.vue.js +1 -1
  90. package/es/grid/row/Row.vue2.js +14 -14
  91. package/es/image/Image.css +1 -1
  92. package/es/image/Image.vue.js +2 -2
  93. package/es/image/Image.vue2.js +177 -177
  94. package/es/input/Input.css +1 -1
  95. package/es/input/Input.vue.js +2 -2
  96. package/es/input/Input.vue2.js +72 -72
  97. package/es/inputnumber/InputNumber.css +1 -1
  98. package/es/inputnumber/InputNumber.vue.js +1 -1
  99. package/es/inputnumber/InputNumber.vue2.js +76 -76
  100. package/es/inputsearch/InputSearch.css +1 -1
  101. package/es/inputsearch/InputSearch.vue.js +2 -2
  102. package/es/inputsearch/InputSearch.vue2.js +61 -61
  103. package/es/list/list/List.css +1 -1
  104. package/es/list/list/List.vue.js +2 -2
  105. package/es/list/list/List.vue2.js +14 -14
  106. package/es/list/listitem/ListItem.css +1 -1
  107. package/es/list/listitem/ListItem.vue.js +2 -2
  108. package/es/list/listitem/ListItem.vue2.js +41 -41
  109. package/es/loadingbar/LoadingBar.css +1 -1
  110. package/es/loadingbar/LoadingBar.vue.js +2 -2
  111. package/es/loadingbar/LoadingBar.vue2.js +25 -25
  112. package/es/message/Message.css +1 -1
  113. package/es/message/Message.vue.js +2 -2
  114. package/es/message/Message.vue2.js +37 -37
  115. package/es/modal/Modal.css +1 -1
  116. package/es/modal/Modal.vue.js +1 -1
  117. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
  118. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
  119. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
  120. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
  121. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
  122. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
  123. package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
  124. package/es/notification/Notification.css +1 -1
  125. package/es/notification/Notification.vue.js +2 -2
  126. package/es/notification/Notification.vue2.js +45 -45
  127. package/es/numberanimation/NumberAnimation.vue.js +17 -17
  128. package/es/pagination/Pagination.css +1 -1
  129. package/es/pagination/Pagination.vue.js +1 -1
  130. package/es/pagination/Pagination.vue2.js +124 -124
  131. package/es/popconfirm/Popconfirm.css +1 -1
  132. package/es/popconfirm/Popconfirm.vue.js +1 -1
  133. package/es/popconfirm/Popconfirm.vue2.js +58 -58
  134. package/es/popover/Popover.css +1 -1
  135. package/es/popover/Popover.vue.js +2 -2
  136. package/es/popover/Popover.vue2.js +20 -20
  137. package/es/progress/Progress.css +1 -1
  138. package/es/progress/Progress.vue.js +2 -2
  139. package/es/progress/Progress.vue2.js +81 -81
  140. package/es/qrcode/QRCode.css +1 -1
  141. package/es/qrcode/QRCode.vue.js +3 -3
  142. package/es/qrcode/QRCode.vue2.js +18 -18
  143. package/es/radio/Radio.css +1 -1
  144. package/es/radio/Radio.vue.js +2 -2
  145. package/es/radio/Radio.vue2.js +88 -88
  146. package/es/rate/Rate.css +1 -1
  147. package/es/rate/Rate.vue.js +1 -1
  148. package/es/rate/Rate.vue2.js +90 -90
  149. package/es/result/Result.css +1 -1
  150. package/es/result/Result.vue.js +2 -2
  151. package/es/result/Result.vue2.js +51 -51
  152. package/es/scrollbar/Scrollbar.css +1 -1
  153. package/es/scrollbar/Scrollbar.vue.js +1 -1
  154. package/es/scrollbar/Scrollbar.vue2.js +106 -106
  155. package/es/segmented/Segmented.css +1 -1
  156. package/es/segmented/Segmented.vue.js +2 -2
  157. package/es/segmented/Segmented.vue2.js +51 -51
  158. package/es/select/Select.css +1 -1
  159. package/es/select/Select.vue.js +2 -2
  160. package/es/select/Select.vue2.js +157 -157
  161. package/es/skeleton/Skeleton.css +1 -1
  162. package/es/skeleton/Skeleton.vue.js +2 -2
  163. package/es/skeleton/Skeleton.vue2.js +61 -61
  164. package/es/slider/Slider.css +1 -1
  165. package/es/slider/Slider.vue.js +2 -2
  166. package/es/slider/Slider.vue2.js +195 -195
  167. package/es/space/Space.css +1 -1
  168. package/es/space/Space.vue.js +2 -2
  169. package/es/space/Space.vue2.js +7 -7
  170. package/es/spin/Spin.css +1 -1
  171. package/es/spin/Spin.vue.js +2 -2
  172. package/es/spin/Spin.vue2.js +67 -67
  173. package/es/statistic/Statistic.css +1 -1
  174. package/es/statistic/Statistic.vue.js +2 -2
  175. package/es/statistic/Statistic.vue2.js +21 -21
  176. package/es/steps/Steps.css +1 -1
  177. package/es/steps/Steps.vue.js +2 -2
  178. package/es/steps/Steps.vue2.js +35 -35
  179. package/es/swiper/Swiper.css +1 -1
  180. package/es/swiper/Swiper.vue.js +1 -1
  181. package/es/swiper/Swiper.vue2.js +89 -89
  182. package/es/switch/Switch.css +1 -1
  183. package/es/switch/Switch.vue.js +1 -1
  184. package/es/switch/Switch.vue2.js +32 -32
  185. package/es/table/Table.css +1 -1
  186. package/es/table/Table.vue.js +2 -2
  187. package/es/table/Table.vue2.js +686 -687
  188. package/es/tabs/Tabs.css +1 -1
  189. package/es/tabs/Tabs.vue.js +2 -2
  190. package/es/tabs/Tabs.vue2.js +91 -91
  191. package/es/tag/Tag.css +1 -1
  192. package/es/tag/Tag.vue.js +1 -1
  193. package/es/tag/Tag.vue2.js +91 -91
  194. package/es/textarea/Textarea.css +1 -1
  195. package/es/textarea/Textarea.vue.js +1 -1
  196. package/es/textarea/Textarea.vue2.js +37 -37
  197. package/es/textscroll/TextScroll.css +1 -1
  198. package/es/textscroll/TextScroll.vue.js +2 -2
  199. package/es/textscroll/TextScroll.vue2.js +100 -100
  200. package/es/timeline/Timeline.css +1 -1
  201. package/es/timeline/Timeline.vue.js +2 -2
  202. package/es/timeline/Timeline.vue2.js +24 -24
  203. package/es/tooltip/Tooltip.css +1 -1
  204. package/es/tooltip/Tooltip.vue.js +2 -2
  205. package/es/tooltip/Tooltip.vue2.js +129 -129
  206. package/es/upload/Upload.css +1 -1
  207. package/es/upload/Upload.vue.js +2 -2
  208. package/es/upload/Upload.vue2.js +137 -137
  209. package/es/utils/resolver.js +3 -3
  210. package/es/video/Video.css +1 -1
  211. package/es/video/Video.vue.js +2 -2
  212. package/es/video/Video.vue2.js +44 -44
  213. package/es/waterfall/Waterfall.css +1 -1
  214. package/es/waterfall/Waterfall.vue.js +2 -2
  215. package/es/waterfall/Waterfall.vue2.js +54 -54
  216. package/lib/alert/Alert.css +1 -1
  217. package/lib/alert/Alert.vue.cjs +1 -1
  218. package/lib/alert/Alert.vue2.cjs +2 -2
  219. package/lib/avatar/Avatar.css +1 -1
  220. package/lib/avatar/Avatar.vue.cjs +1 -1
  221. package/lib/avatar/Avatar.vue2.cjs +1 -1
  222. package/lib/backtop/BackTop.css +1 -1
  223. package/lib/backtop/BackTop.vue.cjs +1 -1
  224. package/lib/backtop/BackTop.vue2.cjs +6 -6
  225. package/lib/badge/Badge.css +1 -1
  226. package/lib/badge/Badge.vue.cjs +1 -1
  227. package/lib/badge/Badge.vue2.cjs +1 -1
  228. package/lib/breadcrumb/Breadcrumb.css +1 -1
  229. package/lib/breadcrumb/Breadcrumb.vue.cjs +1 -1
  230. package/lib/breadcrumb/Breadcrumb.vue2.cjs +2 -2
  231. package/lib/button/Button.css +1 -1
  232. package/lib/button/Button.vue.cjs +1 -1
  233. package/lib/button/Button.vue2.cjs +3 -3
  234. package/lib/calendar/Calendar.css +1 -1
  235. package/lib/calendar/Calendar.vue.cjs +1 -1
  236. package/lib/calendar/Calendar.vue2.cjs +5 -5
  237. package/lib/card/Card.css +1 -1
  238. package/lib/card/Card.vue.cjs +1 -1
  239. package/lib/card/Card.vue2.cjs +1 -1
  240. package/lib/carousel/Carousel.css +1 -1
  241. package/lib/carousel/Carousel.vue.cjs +1 -1
  242. package/lib/carousel/Carousel.vue2.cjs +7 -7
  243. package/lib/cascader/Cascader.css +1 -1
  244. package/lib/cascader/Cascader.d.ts +8 -0
  245. package/lib/cascader/Cascader.vue.cjs +1 -1
  246. package/lib/cascader/Cascader.vue2.cjs +1 -1
  247. package/lib/cascader/index.d.ts +12 -0
  248. package/lib/checkbox/Checkbox.css +1 -1
  249. package/lib/checkbox/Checkbox.vue.cjs +1 -1
  250. package/lib/checkbox/Checkbox.vue2.cjs +1 -1
  251. package/lib/collapse/Collapse.css +1 -1
  252. package/lib/collapse/Collapse.vue.cjs +1 -1
  253. package/lib/collapse/Collapse.vue2.cjs +1 -1
  254. package/lib/colorpicker/ColorPicker.css +1 -1
  255. package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
  256. package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
  257. package/lib/configprovider/ConfigProvider.vue.cjs +1 -1
  258. package/lib/countdown/Countdown.css +1 -1
  259. package/lib/countdown/Countdown.vue.cjs +1 -1
  260. package/lib/countdown/Countdown.vue2.cjs +1 -1
  261. package/lib/datepicker/DatePicker.css +1 -1
  262. package/lib/datepicker/DatePicker.vue.cjs +1 -1
  263. package/lib/datepicker/DatePicker.vue2.cjs +5 -5
  264. package/lib/descriptions/descriptions/Descriptions.css +1 -1
  265. package/lib/descriptions/descriptions/Descriptions.vue.cjs +1 -1
  266. package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
  267. package/lib/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
  268. package/lib/descriptions/descriptionsitem/DescriptionsItem.vue.cjs +1 -1
  269. package/lib/descriptions/descriptionsitem/DescriptionsItem.vue2.cjs +1 -1
  270. package/lib/dialog/Dialog.css +1 -1
  271. package/lib/dialog/Dialog.vue.cjs +1 -1
  272. package/lib/dialog/Dialog.vue2.cjs +1 -1
  273. package/lib/divider/Divider.css +1 -1
  274. package/lib/divider/Divider.vue.cjs +1 -1
  275. package/lib/divider/Divider.vue2.cjs +1 -1
  276. package/lib/drawer/Drawer.css +1 -1
  277. package/lib/drawer/Drawer.vue.cjs +1 -1
  278. package/lib/drawer/Drawer.vue2.cjs +1 -1
  279. package/lib/ellipsis/Ellipsis.css +1 -1
  280. package/lib/ellipsis/Ellipsis.vue.cjs +1 -1
  281. package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
  282. package/lib/empty/Empty.css +1 -1
  283. package/lib/empty/Empty.vue.cjs +1 -1
  284. package/lib/empty/Empty.vue2.cjs +1 -1
  285. package/lib/flex/Flex.css +1 -1
  286. package/lib/flex/Flex.vue.cjs +1 -1
  287. package/lib/flex/Flex.vue2.cjs +8 -8
  288. package/lib/floatbutton/FloatButton.css +1 -1
  289. package/lib/floatbutton/FloatButton.vue.cjs +1 -1
  290. package/lib/floatbutton/FloatButton.vue2.cjs +5 -5
  291. package/lib/gradienttext/GradientText.css +1 -1
  292. package/lib/gradienttext/GradientText.vue.cjs +1 -1
  293. package/lib/gradienttext/GradientText.vue2.cjs +1 -1
  294. package/lib/grid/col/Col.css +1 -1
  295. package/lib/grid/col/Col.vue.cjs +1 -1
  296. package/lib/grid/col/Col.vue2.cjs +1 -1
  297. package/lib/grid/row/Row.css +1 -1
  298. package/lib/grid/row/Row.vue.cjs +1 -1
  299. package/lib/grid/row/Row.vue2.cjs +1 -1
  300. package/lib/image/Image.css +1 -1
  301. package/lib/image/Image.vue.cjs +1 -1
  302. package/lib/image/Image.vue2.cjs +1 -1
  303. package/lib/input/Input.css +1 -1
  304. package/lib/input/Input.vue.cjs +1 -1
  305. package/lib/input/Input.vue2.cjs +5 -5
  306. package/lib/inputnumber/InputNumber.css +1 -1
  307. package/lib/inputnumber/InputNumber.vue.cjs +1 -1
  308. package/lib/inputnumber/InputNumber.vue2.cjs +6 -6
  309. package/lib/inputsearch/InputSearch.css +1 -1
  310. package/lib/inputsearch/InputSearch.vue.cjs +1 -1
  311. package/lib/inputsearch/InputSearch.vue2.cjs +2 -2
  312. package/lib/list/list/List.css +1 -1
  313. package/lib/list/list/List.vue.cjs +1 -1
  314. package/lib/list/list/List.vue2.cjs +1 -1
  315. package/lib/list/listitem/ListItem.css +1 -1
  316. package/lib/list/listitem/ListItem.vue.cjs +1 -1
  317. package/lib/list/listitem/ListItem.vue2.cjs +1 -1
  318. package/lib/loadingbar/LoadingBar.css +1 -1
  319. package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
  320. package/lib/loadingbar/LoadingBar.vue2.cjs +3 -3
  321. package/lib/message/Message.css +1 -1
  322. package/lib/message/Message.vue.cjs +1 -1
  323. package/lib/message/Message.vue2.cjs +2 -2
  324. package/lib/modal/Modal.css +1 -1
  325. package/lib/modal/Modal.vue.cjs +1 -1
  326. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
  327. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
  328. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
  329. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
  330. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
  331. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
  332. package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
  333. package/lib/notification/Notification.css +1 -1
  334. package/lib/notification/Notification.vue.cjs +1 -1
  335. package/lib/notification/Notification.vue2.cjs +2 -2
  336. package/lib/numberanimation/NumberAnimation.vue.cjs +1 -1
  337. package/lib/pagination/Pagination.css +1 -1
  338. package/lib/pagination/Pagination.vue.cjs +1 -1
  339. package/lib/pagination/Pagination.vue2.cjs +1 -1
  340. package/lib/popconfirm/Popconfirm.css +1 -1
  341. package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
  342. package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
  343. package/lib/popover/Popover.css +1 -1
  344. package/lib/popover/Popover.vue.cjs +1 -1
  345. package/lib/popover/Popover.vue2.cjs +1 -1
  346. package/lib/progress/Progress.css +1 -1
  347. package/lib/progress/Progress.vue.cjs +1 -1
  348. package/lib/progress/Progress.vue2.cjs +9 -9
  349. package/lib/qrcode/QRCode.css +1 -1
  350. package/lib/qrcode/QRCode.vue.cjs +1 -1
  351. package/lib/qrcode/QRCode.vue2.cjs +1 -1
  352. package/lib/radio/Radio.css +1 -1
  353. package/lib/radio/Radio.vue.cjs +1 -1
  354. package/lib/radio/Radio.vue2.cjs +4 -4
  355. package/lib/rate/Rate.css +1 -1
  356. package/lib/rate/Rate.vue.cjs +1 -1
  357. package/lib/rate/Rate.vue2.cjs +1 -1
  358. package/lib/result/Result.css +1 -1
  359. package/lib/result/Result.vue.cjs +1 -1
  360. package/lib/result/Result.vue2.cjs +1 -1
  361. package/lib/scrollbar/Scrollbar.css +1 -1
  362. package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
  363. package/lib/scrollbar/Scrollbar.vue2.cjs +5 -5
  364. package/lib/segmented/Segmented.css +1 -1
  365. package/lib/segmented/Segmented.vue.cjs +1 -1
  366. package/lib/segmented/Segmented.vue2.cjs +1 -1
  367. package/lib/select/Select.css +1 -1
  368. package/lib/select/Select.vue.cjs +1 -1
  369. package/lib/select/Select.vue2.cjs +4 -4
  370. package/lib/skeleton/Skeleton.css +1 -1
  371. package/lib/skeleton/Skeleton.vue.cjs +1 -1
  372. package/lib/skeleton/Skeleton.vue2.cjs +1 -1
  373. package/lib/slider/Slider.css +1 -1
  374. package/lib/slider/Slider.vue.cjs +1 -1
  375. package/lib/slider/Slider.vue2.cjs +7 -7
  376. package/lib/space/Space.css +1 -1
  377. package/lib/space/Space.vue.cjs +1 -1
  378. package/lib/space/Space.vue2.cjs +1 -1
  379. package/lib/spin/Spin.css +1 -1
  380. package/lib/spin/Spin.vue.cjs +1 -1
  381. package/lib/spin/Spin.vue2.cjs +5 -5
  382. package/lib/statistic/Statistic.css +1 -1
  383. package/lib/statistic/Statistic.vue.cjs +1 -1
  384. package/lib/statistic/Statistic.vue2.cjs +1 -1
  385. package/lib/steps/Steps.css +1 -1
  386. package/lib/steps/Steps.vue.cjs +1 -1
  387. package/lib/steps/Steps.vue2.cjs +3 -3
  388. package/lib/swiper/Swiper.css +1 -1
  389. package/lib/swiper/Swiper.vue.cjs +1 -1
  390. package/lib/swiper/Swiper.vue2.cjs +13 -13
  391. package/lib/switch/Switch.css +1 -1
  392. package/lib/switch/Switch.vue.cjs +1 -1
  393. package/lib/switch/Switch.vue2.cjs +5 -5
  394. package/lib/table/Table.css +1 -1
  395. package/lib/table/Table.vue.cjs +1 -1
  396. package/lib/table/Table.vue2.cjs +1 -1
  397. package/lib/tabs/Tabs.css +1 -1
  398. package/lib/tabs/Tabs.vue.cjs +1 -1
  399. package/lib/tabs/Tabs.vue2.cjs +1 -1
  400. package/lib/tag/Tag.css +1 -1
  401. package/lib/tag/Tag.vue.cjs +1 -1
  402. package/lib/tag/Tag.vue2.cjs +1 -1
  403. package/lib/textarea/Textarea.css +1 -1
  404. package/lib/textarea/Textarea.vue.cjs +1 -1
  405. package/lib/textarea/Textarea.vue2.cjs +4 -4
  406. package/lib/textscroll/TextScroll.css +1 -1
  407. package/lib/textscroll/TextScroll.vue.cjs +1 -1
  408. package/lib/textscroll/TextScroll.vue2.cjs +9 -9
  409. package/lib/timeline/Timeline.css +1 -1
  410. package/lib/timeline/Timeline.vue.cjs +1 -1
  411. package/lib/timeline/Timeline.vue2.cjs +1 -1
  412. package/lib/tooltip/Tooltip.css +1 -1
  413. package/lib/tooltip/Tooltip.vue.cjs +1 -1
  414. package/lib/tooltip/Tooltip.vue2.cjs +1 -1
  415. package/lib/upload/Upload.css +1 -1
  416. package/lib/upload/Upload.vue.cjs +1 -1
  417. package/lib/upload/Upload.vue2.cjs +1 -1
  418. package/lib/utils/resolver.cjs +1 -1
  419. package/lib/video/Video.css +1 -1
  420. package/lib/video/Video.vue.cjs +1 -1
  421. package/lib/video/Video.vue2.cjs +2 -2
  422. package/lib/waterfall/Waterfall.css +1 -1
  423. package/lib/waterfall/Waterfall.vue.cjs +1 -1
  424. package/lib/waterfall/Waterfall.vue2.cjs +4 -4
  425. package/package.json +21 -21
  426. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
  427. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
  428. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
  429. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
  430. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
  431. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
  432. package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
  433. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
  434. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
  435. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
  436. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
  437. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
  438. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
  439. package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
  440. /package/es/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
  441. /package/es/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
  442. /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
  443. /package/lib/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
package/README.zh-CN.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">一个 Vue 3 组件库</p>
9
- <p align="center">主题可调,全量使用 TypeScript 和 SFC,支持 tree shaking</p>
10
- <p align="center">有点意思</p>
11
- <p align="center"><a href="README.md">English</a> | 中文</p>
12
-
13
- ## 文档
14
-
15
- [Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
16
-
17
- ## 特性
18
-
19
- - 组件库采用 `Vue@3.5.21`+ `TypeScript@5.9.2` + `Vite@7.1.4` + `Less@4.4.1` 实现
20
- - 目前共包含 `67` 个基础 `UI` 组件以及 `18` 个工具函数,并且持续探索更新中...
21
- - 主题可调,你只需提供一个主题色,剩下的都交给我
22
- - 顺便一提,它们全都可以 `treeshaking`
23
- - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
24
- - 全部组件均采用单文件组件 `SFC`,可独立使用
25
- - 开箱即用,不墨迹
26
-
27
- ## 安装
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
- ## 使用组件
40
-
41
- **全局完整注册(不推荐)**
42
-
43
- _失去 `tree-shaking` 的能力,打包后有冗余代码_
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
- **全局部分注册**
57
-
58
- _这种情况下,只有导入的组件才会被打包_
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
- **局部注册组件**
73
-
74
- _这种情况下,也只有导入的组件才会被打包_
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
- **全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](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))**
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
- **自动按需引入(强烈推荐)**
100
-
101
- 使用 [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) 插件来按需自动加载组件,插件会自动解析模板中的使用到的组件,并导入组件和样式
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 按需引入
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
- 然后,你可以在代码中直接使用 `vue-amazing-ui` 的所有组件
138
-
139
- ```vue
140
- <template>
141
- <Button>button</Button>
142
- <Tag>tag</Tag>
143
- </template>
144
- ```
145
-
146
- ## 使用类型
147
-
148
- _所有类型均可直接从 `vue-amazing-ui` 中引入使用,无需任何额外安装_
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
- ## 使用工具函数
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
- ## 项目
189
-
190
- - 获取项目代码
191
-
192
- ```sh
193
- git clone https://github.com/themusecatcher/vue-amazing-ui.git
194
- ```
195
-
196
- - 安装依赖
197
-
198
- ```sh
199
- cd vue-amazing-ui
200
-
201
- pnpm i
202
- ```
203
-
204
- - 启动项目
205
-
206
- ```sh
207
- pnpm dev
208
- ```
209
-
210
- - 启动文档
211
-
212
- ```sh
213
- pnpm docs:dev
214
- ```
215
-
216
- ## 博客
217
-
218
- [My CSDN Blogs](https://themusecatcher.blog.csdn.net)
219
-
220
- ## 赞助
221
-
222
- `Vue Amazing UI` 是采用 `MIT` 许可的开源项目,使用完全免费。组件库及文档所有工作均由作者一人完成,开发迭代过程实属不易...为了组件库的健康可持续发展,非常期望能获得您的支持与赞助。
223
-
224
- #### [成为赞助者](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
225
-
226
- ## 赞助者 🫡
227
-
228
- 所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️
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
- ## 组件
233
-
234
- | 名称 | 说明 | 名称 | 说明 |
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
- ## 工具函数
272
-
273
- | 名称 | 说明 | 类型 |
274
- | :-- | :-- | :-- |
275
- | dateFormat | 格式化日期时间字符串函数 | (value: number &#124; string &#124; Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
276
- | formatNumber | 数字格式化函数 | (value: number &#124; string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
277
- | rafTimeout | 使用 `requestAnimationFrame` 实现的延迟 `setTimeout` 或间隔 `setInterval` 调用函数 | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
278
- | cancelRaf | 用于取消 `rafTimeout` 函数 | (raf: { id: number }) => void |
279
- | throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
280
- | debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
281
- | add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
282
- | downloadFile | 下载文件并自定义文件名,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string) => void |
283
- | toggleDark | 一键切换暗黑模式函数 | () => void |
284
- | useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
- | useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
286
- | useScroll | 实时监测目标元素滚动位置及状态 | (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 | 实时监测浏览器刷新率FPS | () => { fps: Ref\<number> } |
288
- | useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => { match: Ref\<boolean> } |
289
- | useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
290
- | useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
291
- | useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
- | useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (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">一个 Vue 3 组件库</p>
9
+ <p align="center">主题可调,全量使用 TypeScript 和 SFC,支持 tree shaking</p>
10
+ <p align="center">有点意思</p>
11
+ <p align="center"><a href="README.md">English</a> | 中文</p>
12
+
13
+ ## 文档
14
+
15
+ [Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
16
+
17
+ ## 特性
18
+
19
+ - 组件库采用 `Vue@3.5.22`+ `TypeScript@5.9.3` + `Vite@7.1.10` + `Less@4.4.2` 实现
20
+ - 目前共包含 `67` 个基础 `UI` 组件以及 `18` 个工具函数,并且持续探索更新中...
21
+ - 主题可调,你只需提供一个主题色,剩下的都交给我
22
+ - 顺便一提,它们全都可以 `treeshaking`
23
+ - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
24
+ - 全部组件均采用单文件组件 `SFC`,可独立使用
25
+ - 开箱即用,不墨迹
26
+
27
+ ## 安装
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
+ ## 使用组件
40
+
41
+ **全局完整注册(不推荐)**
42
+
43
+ _失去 `tree-shaking` 的能力,打包后有冗余代码_
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
+ **全局部分注册**
57
+
58
+ _这种情况下,只有导入的组件才会被打包_
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
+ **局部注册组件**
73
+
74
+ _这种情况下,也只有导入的组件才会被打包_
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
+ **全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](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))**
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
+ **自动按需引入(强烈推荐)**
100
+
101
+ 使用 [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) 插件来按需自动加载组件,插件会自动解析模板中的使用到的组件,并导入组件和样式
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 按需引入
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
+ 然后,你可以在代码中直接使用 `vue-amazing-ui` 的所有组件
138
+
139
+ ```vue
140
+ <template>
141
+ <Button>button</Button>
142
+ <Tag>tag</Tag>
143
+ </template>
144
+ ```
145
+
146
+ ## 使用类型
147
+
148
+ _所有类型均可直接从 `vue-amazing-ui` 中引入使用,无需任何额外安装_
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
+ ## 使用工具函数
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
+ ## 项目
189
+
190
+ - 获取项目代码
191
+
192
+ ```sh
193
+ git clone https://github.com/themusecatcher/vue-amazing-ui.git
194
+ ```
195
+
196
+ - 安装依赖
197
+
198
+ ```sh
199
+ cd vue-amazing-ui
200
+
201
+ pnpm i
202
+ ```
203
+
204
+ - 启动项目
205
+
206
+ ```sh
207
+ pnpm dev
208
+ ```
209
+
210
+ - 启动文档
211
+
212
+ ```sh
213
+ pnpm docs:dev
214
+ ```
215
+
216
+ ## 博客
217
+
218
+ [My CSDN Blogs](https://themusecatcher.blog.csdn.net)
219
+
220
+ ## 赞助
221
+
222
+ `Vue Amazing UI` 是采用 `MIT` 许可的开源项目,使用完全免费。组件库及文档所有工作均由作者一人完成,开发迭代过程实属不易...为了组件库的健康可持续发展,非常期望能获得您的支持与赞助。
223
+
224
+ #### [成为赞助者](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
225
+
226
+ ## 赞助者 🫡
227
+
228
+ 所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️
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
+ ## 组件
233
+
234
+ | 名称 | 说明 | 名称 | 说明 |
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
+ ## 工具函数
272
+
273
+ | 名称 | 说明 | 类型 |
274
+ | :-- | :-- | :-- |
275
+ | dateFormat | 格式化日期时间字符串函数 | (value: number &#124; string &#124; Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
276
+ | formatNumber | 数字格式化函数 | (value: number &#124; string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
277
+ | rafTimeout | 使用 `requestAnimationFrame` 实现的延迟 `setTimeout` 或间隔 `setInterval` 调用函数 | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
278
+ | cancelRaf | 用于取消 `rafTimeout` 函数 | (raf: { id: number }) => void |
279
+ | throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
280
+ | debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
281
+ | add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
282
+ | downloadFile | 下载文件并自定义文件名,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string) => void |
283
+ | toggleDark | 一键切换暗黑模式函数 | () => void |
284
+ | useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
+ | useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
286
+ | useScroll | 实时监测目标元素滚动位置及状态 | (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 | 实时监测浏览器刷新率FPS | () => { fps: Ref\<number> } |
288
+ | useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => { match: Ref\<boolean> } |
289
+ | useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
290
+ | useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
291
+ | useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
+ | useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |