vue-amazing-ui 2.9.0 → 2.10.1

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 (345) hide show
  1. package/README.md +37 -43
  2. package/README.zh-CN.md +37 -43
  3. package/dist/index.iife.js +68 -68
  4. package/dist/index.js +3480 -3430
  5. package/dist/index.umd.cjs +48 -48
  6. package/dist/style.css +1 -1
  7. package/es/alert/style/index.d.ts +1 -0
  8. package/es/alert/style/index.js +2 -0
  9. package/es/auto-complete/style/index.d.ts +1 -0
  10. package/es/auto-complete/style/index.js +3 -0
  11. package/es/avatar/style/index.d.ts +1 -0
  12. package/es/avatar/style/index.js +2 -0
  13. package/es/back-top/style/index.d.ts +1 -0
  14. package/es/back-top/style/index.js +4 -0
  15. package/es/badge/style/index.d.ts +1 -0
  16. package/es/badge/style/index.js +2 -0
  17. package/es/breadcrumb/style/index.d.ts +1 -0
  18. package/es/breadcrumb/style/index.js +2 -0
  19. package/es/button/style/index.d.ts +1 -0
  20. package/es/button/style/index.js +2 -0
  21. package/es/calendar/style/index.d.ts +1 -0
  22. package/es/calendar/style/index.js +6 -0
  23. package/es/card/style/index.d.ts +1 -0
  24. package/es/card/style/index.js +3 -0
  25. package/es/carousel/style/index.d.ts +1 -0
  26. package/es/carousel/style/index.js +3 -0
  27. package/es/cascader/style/index.d.ts +1 -0
  28. package/es/cascader/style/index.js +5 -0
  29. package/es/checkbox/style/index.d.ts +1 -0
  30. package/es/checkbox/style/index.js +2 -0
  31. package/es/collapse/style/index.d.ts +1 -0
  32. package/es/collapse/style/index.js +3 -0
  33. package/es/color-picker/style/index.d.ts +1 -0
  34. package/es/color-picker/style/index.js +6 -0
  35. package/es/comment/Comment.css +1 -0
  36. package/es/comment/Comment.d.ts +37 -0
  37. package/es/comment/Comment.vue.js +7 -0
  38. package/es/comment/Comment.vue2.js +79 -0
  39. package/es/comment/index.d.ts +35 -0
  40. package/es/comment/index.js +6 -0
  41. package/es/comment/style/index.d.ts +1 -0
  42. package/es/comment/style/index.js +2 -0
  43. package/es/components.d.ts +4 -2
  44. package/es/components.js +143 -138
  45. package/es/countdown/style/index.d.ts +1 -0
  46. package/es/countdown/style/index.js +2 -0
  47. package/es/date-picker/style/index.d.ts +1 -0
  48. package/es/date-picker/style/index.js +3 -0
  49. package/es/descriptions/descriptions/style/index.d.ts +1 -0
  50. package/es/descriptions/descriptions/style/index.js +2 -0
  51. package/es/dialog/style/index.d.ts +1 -0
  52. package/es/dialog/style/index.js +4 -0
  53. package/es/dialog/useDialog.js +4 -4
  54. package/es/discrete/createDiscreteApi.d.ts +4 -1
  55. package/es/discrete/createDiscreteApi.js +38 -31
  56. package/es/divider/style/index.d.ts +1 -0
  57. package/es/divider/style/index.js +2 -0
  58. package/es/drawer/style/index.d.ts +1 -0
  59. package/es/drawer/style/index.js +3 -0
  60. package/es/ellipsis/style/index.d.ts +1 -0
  61. package/es/ellipsis/style/index.js +4 -0
  62. package/es/empty/style/index.d.ts +1 -0
  63. package/es/empty/style/index.js +2 -0
  64. package/es/flex/style/index.d.ts +1 -0
  65. package/es/flex/style/index.js +2 -0
  66. package/es/float-button/style/index.d.ts +1 -0
  67. package/es/float-button/style/index.js +5 -0
  68. package/es/gradient-text/style/index.d.ts +1 -0
  69. package/es/gradient-text/style/index.js +2 -0
  70. package/es/grid/col/style/index.d.ts +1 -0
  71. package/es/grid/col/style/index.js +2 -0
  72. package/es/grid/row/style/index.d.ts +1 -0
  73. package/es/grid/row/style/index.js +2 -0
  74. package/es/image/style/index.d.ts +1 -0
  75. package/es/image/style/index.js +4 -0
  76. package/es/index.js +144 -139
  77. package/es/input/style/index.d.ts +1 -0
  78. package/es/input/style/index.js +2 -0
  79. package/es/input-number/style/index.d.ts +1 -0
  80. package/es/input-number/style/index.js +2 -0
  81. package/es/input-search/style/index.d.ts +1 -0
  82. package/es/input-search/style/index.js +3 -0
  83. package/es/list/list/style/index.d.ts +1 -0
  84. package/es/list/list/style/index.js +8 -0
  85. package/es/list/list-item/style/index.d.ts +1 -0
  86. package/es/list/list-item/style/index.js +3 -0
  87. package/es/loading-bar/LoadingBar.css +1 -1
  88. package/es/loading-bar/LoadingBar.d.ts +16 -8
  89. package/es/loading-bar/LoadingBar.vue.js +3 -3
  90. package/es/loading-bar/LoadingBar.vue2.js +59 -58
  91. package/es/loading-bar/LoadingBarProvider.d.ts +19 -0
  92. package/es/loading-bar/LoadingBarProvider.vue.js +28 -0
  93. package/es/loading-bar/LoadingBarProvider.vue2.js +4 -0
  94. package/es/loading-bar/index.d.ts +45 -15
  95. package/es/loading-bar/index.js +6 -4
  96. package/es/loading-bar/style/index.d.ts +1 -0
  97. package/es/loading-bar/style/index.js +2 -0
  98. package/es/loading-bar/useLoadingBar.d.ts +8 -0
  99. package/es/loading-bar/useLoadingBar.js +14 -0
  100. package/es/message/style/index.d.ts +1 -0
  101. package/es/message/style/index.js +2 -0
  102. package/es/message/useMessage.js +2 -2
  103. package/es/modal/style/index.d.ts +1 -0
  104. package/es/modal/style/index.js +4 -0
  105. package/es/modal/useModal.js +4 -4
  106. package/es/notification/style/index.d.ts +1 -0
  107. package/es/notification/style/index.js +3 -0
  108. package/es/notification/useNotification.js +2 -2
  109. package/es/pagination/style/index.d.ts +1 -0
  110. package/es/pagination/style/index.js +6 -0
  111. package/es/popconfirm/style/index.d.ts +1 -0
  112. package/es/popconfirm/style/index.js +5 -0
  113. package/es/popover/style/index.d.ts +1 -0
  114. package/es/popover/style/index.js +4 -0
  115. package/es/popup/style/index.d.ts +1 -0
  116. package/es/popup/style/index.js +2 -0
  117. package/es/progress/style/index.d.ts +1 -0
  118. package/es/progress/style/index.js +2 -0
  119. package/es/qr-code/style/index.d.ts +1 -0
  120. package/es/qr-code/style/index.js +2 -0
  121. package/es/radio/style/index.d.ts +1 -0
  122. package/es/radio/style/index.js +2 -0
  123. package/es/rate/style/index.d.ts +1 -0
  124. package/es/rate/style/index.js +4 -0
  125. package/es/result/style/index.d.ts +1 -0
  126. package/es/result/style/index.js +2 -0
  127. package/es/scrollbar/style/index.d.ts +1 -0
  128. package/es/scrollbar/style/index.js +2 -0
  129. package/es/segmented/style/index.d.ts +1 -0
  130. package/es/segmented/style/index.js +2 -0
  131. package/es/select/style/index.d.ts +1 -0
  132. package/es/select/style/index.js +4 -0
  133. package/es/skeleton/style/index.d.ts +1 -0
  134. package/es/skeleton/style/index.js +2 -0
  135. package/es/slider/style/index.d.ts +1 -0
  136. package/es/slider/style/index.js +2 -0
  137. package/es/space/style/index.d.ts +1 -0
  138. package/es/space/style/index.js +2 -0
  139. package/es/spin/style/index.d.ts +1 -0
  140. package/es/spin/style/index.js +2 -0
  141. package/es/statistic/style/index.d.ts +1 -0
  142. package/es/statistic/style/index.js +2 -0
  143. package/es/steps/style/index.d.ts +1 -0
  144. package/es/steps/style/index.js +2 -0
  145. package/es/swiper/style/index.d.ts +1 -0
  146. package/es/swiper/style/index.js +10 -0
  147. package/es/switch/style/index.d.ts +1 -0
  148. package/es/switch/style/index.js +2 -0
  149. package/es/table/style/index.d.ts +1 -0
  150. package/es/table/style/index.js +13 -0
  151. package/es/tabs/style/index.d.ts +1 -0
  152. package/es/tabs/style/index.js +2 -0
  153. package/es/tag/style/index.d.ts +1 -0
  154. package/es/tag/style/index.js +3 -0
  155. package/es/text-scroll/style/index.d.ts +1 -0
  156. package/es/text-scroll/style/index.js +5 -0
  157. package/es/textarea/style/index.d.ts +1 -0
  158. package/es/textarea/style/index.js +2 -0
  159. package/es/timeline/style/index.d.ts +1 -0
  160. package/es/timeline/style/index.js +2 -0
  161. package/es/tooltip/style/index.d.ts +1 -0
  162. package/es/tooltip/style/index.js +3 -0
  163. package/es/upload/style/index.d.ts +1 -0
  164. package/es/upload/style/index.js +5 -0
  165. package/es/utils/hooks.d.ts +2 -1
  166. package/es/utils/hooks.js +38 -28
  167. package/es/utils/resolver.d.ts +1 -1
  168. package/es/utils/resolver.js +10 -152
  169. package/es/utils/style-deps.d.ts +87 -0
  170. package/es/utils/style-deps.js +98 -0
  171. package/es/video/style/index.d.ts +1 -0
  172. package/es/video/style/index.js +2 -0
  173. package/es/waterfall/style/index.d.ts +1 -0
  174. package/es/waterfall/style/index.js +3 -0
  175. package/lib/alert/style/index.cjs +2 -0
  176. package/lib/alert/style/index.d.ts +1 -0
  177. package/lib/auto-complete/style/index.cjs +3 -0
  178. package/lib/auto-complete/style/index.d.ts +1 -0
  179. package/lib/avatar/style/index.cjs +2 -0
  180. package/lib/avatar/style/index.d.ts +1 -0
  181. package/lib/back-top/style/index.cjs +4 -0
  182. package/lib/back-top/style/index.d.ts +1 -0
  183. package/lib/badge/style/index.cjs +2 -0
  184. package/lib/badge/style/index.d.ts +1 -0
  185. package/lib/breadcrumb/style/index.cjs +2 -0
  186. package/lib/breadcrumb/style/index.d.ts +1 -0
  187. package/lib/button/style/index.cjs +2 -0
  188. package/lib/button/style/index.d.ts +1 -0
  189. package/lib/calendar/style/index.cjs +6 -0
  190. package/lib/calendar/style/index.d.ts +1 -0
  191. package/lib/card/style/index.cjs +3 -0
  192. package/lib/card/style/index.d.ts +1 -0
  193. package/lib/carousel/style/index.cjs +3 -0
  194. package/lib/carousel/style/index.d.ts +1 -0
  195. package/lib/cascader/style/index.cjs +5 -0
  196. package/lib/cascader/style/index.d.ts +1 -0
  197. package/lib/checkbox/style/index.cjs +2 -0
  198. package/lib/checkbox/style/index.d.ts +1 -0
  199. package/lib/collapse/style/index.cjs +3 -0
  200. package/lib/collapse/style/index.d.ts +1 -0
  201. package/lib/color-picker/style/index.cjs +6 -0
  202. package/lib/color-picker/style/index.d.ts +1 -0
  203. package/lib/comment/Comment.css +1 -0
  204. package/lib/comment/Comment.d.ts +37 -0
  205. package/lib/comment/Comment.vue.cjs +1 -0
  206. package/lib/comment/Comment.vue2.cjs +1 -0
  207. package/lib/comment/index.cjs +1 -0
  208. package/lib/comment/index.d.ts +35 -0
  209. package/lib/comment/style/index.cjs +2 -0
  210. package/lib/comment/style/index.d.ts +1 -0
  211. package/lib/components.cjs +1 -1
  212. package/lib/components.d.ts +4 -2
  213. package/lib/countdown/style/index.cjs +2 -0
  214. package/lib/countdown/style/index.d.ts +1 -0
  215. package/lib/date-picker/style/index.cjs +3 -0
  216. package/lib/date-picker/style/index.d.ts +1 -0
  217. package/lib/descriptions/descriptions/style/index.cjs +2 -0
  218. package/lib/descriptions/descriptions/style/index.d.ts +1 -0
  219. package/lib/dialog/style/index.cjs +4 -0
  220. package/lib/dialog/style/index.d.ts +1 -0
  221. package/lib/dialog/useDialog.cjs +1 -1
  222. package/lib/discrete/createDiscreteApi.cjs +1 -1
  223. package/lib/discrete/createDiscreteApi.d.ts +4 -1
  224. package/lib/divider/style/index.cjs +2 -0
  225. package/lib/divider/style/index.d.ts +1 -0
  226. package/lib/drawer/style/index.cjs +3 -0
  227. package/lib/drawer/style/index.d.ts +1 -0
  228. package/lib/ellipsis/style/index.cjs +4 -0
  229. package/lib/ellipsis/style/index.d.ts +1 -0
  230. package/lib/empty/style/index.cjs +2 -0
  231. package/lib/empty/style/index.d.ts +1 -0
  232. package/lib/flex/style/index.cjs +2 -0
  233. package/lib/flex/style/index.d.ts +1 -0
  234. package/lib/float-button/style/index.cjs +5 -0
  235. package/lib/float-button/style/index.d.ts +1 -0
  236. package/lib/gradient-text/style/index.cjs +2 -0
  237. package/lib/gradient-text/style/index.d.ts +1 -0
  238. package/lib/grid/col/style/index.cjs +2 -0
  239. package/lib/grid/col/style/index.d.ts +1 -0
  240. package/lib/grid/row/style/index.cjs +2 -0
  241. package/lib/grid/row/style/index.d.ts +1 -0
  242. package/lib/image/style/index.cjs +4 -0
  243. package/lib/image/style/index.d.ts +1 -0
  244. package/lib/index.cjs +1 -1
  245. package/lib/input/style/index.cjs +2 -0
  246. package/lib/input/style/index.d.ts +1 -0
  247. package/lib/input-number/style/index.cjs +2 -0
  248. package/lib/input-number/style/index.d.ts +1 -0
  249. package/lib/input-search/style/index.cjs +3 -0
  250. package/lib/input-search/style/index.d.ts +1 -0
  251. package/lib/list/list/style/index.cjs +8 -0
  252. package/lib/list/list/style/index.d.ts +1 -0
  253. package/lib/list/list-item/style/index.cjs +3 -0
  254. package/lib/list/list-item/style/index.d.ts +1 -0
  255. package/lib/loading-bar/LoadingBar.css +1 -1
  256. package/lib/loading-bar/LoadingBar.d.ts +16 -8
  257. package/lib/loading-bar/LoadingBar.vue.cjs +1 -1
  258. package/lib/loading-bar/LoadingBar.vue2.cjs +7 -7
  259. package/lib/loading-bar/LoadingBarProvider.d.ts +19 -0
  260. package/lib/loading-bar/LoadingBarProvider.vue.cjs +1 -0
  261. package/lib/loading-bar/LoadingBarProvider.vue2.cjs +1 -0
  262. package/lib/loading-bar/index.cjs +1 -1
  263. package/lib/loading-bar/index.d.ts +45 -15
  264. package/lib/loading-bar/style/index.cjs +2 -0
  265. package/lib/loading-bar/style/index.d.ts +1 -0
  266. package/lib/loading-bar/useLoadingBar.cjs +1 -0
  267. package/lib/loading-bar/useLoadingBar.d.ts +8 -0
  268. package/lib/message/style/index.cjs +2 -0
  269. package/lib/message/style/index.d.ts +1 -0
  270. package/lib/message/useMessage.cjs +1 -1
  271. package/lib/modal/style/index.cjs +4 -0
  272. package/lib/modal/style/index.d.ts +1 -0
  273. package/lib/modal/useModal.cjs +1 -1
  274. package/lib/notification/style/index.cjs +3 -0
  275. package/lib/notification/style/index.d.ts +1 -0
  276. package/lib/notification/useNotification.cjs +1 -1
  277. package/lib/pagination/style/index.cjs +6 -0
  278. package/lib/pagination/style/index.d.ts +1 -0
  279. package/lib/popconfirm/style/index.cjs +5 -0
  280. package/lib/popconfirm/style/index.d.ts +1 -0
  281. package/lib/popover/style/index.cjs +4 -0
  282. package/lib/popover/style/index.d.ts +1 -0
  283. package/lib/popup/style/index.cjs +2 -0
  284. package/lib/popup/style/index.d.ts +1 -0
  285. package/lib/progress/style/index.cjs +2 -0
  286. package/lib/progress/style/index.d.ts +1 -0
  287. package/lib/qr-code/style/index.cjs +2 -0
  288. package/lib/qr-code/style/index.d.ts +1 -0
  289. package/lib/radio/style/index.cjs +2 -0
  290. package/lib/radio/style/index.d.ts +1 -0
  291. package/lib/rate/style/index.cjs +4 -0
  292. package/lib/rate/style/index.d.ts +1 -0
  293. package/lib/result/style/index.cjs +2 -0
  294. package/lib/result/style/index.d.ts +1 -0
  295. package/lib/scrollbar/style/index.cjs +2 -0
  296. package/lib/scrollbar/style/index.d.ts +1 -0
  297. package/lib/segmented/style/index.cjs +2 -0
  298. package/lib/segmented/style/index.d.ts +1 -0
  299. package/lib/select/style/index.cjs +4 -0
  300. package/lib/select/style/index.d.ts +1 -0
  301. package/lib/skeleton/style/index.cjs +2 -0
  302. package/lib/skeleton/style/index.d.ts +1 -0
  303. package/lib/slider/style/index.cjs +2 -0
  304. package/lib/slider/style/index.d.ts +1 -0
  305. package/lib/space/style/index.cjs +2 -0
  306. package/lib/space/style/index.d.ts +1 -0
  307. package/lib/spin/style/index.cjs +2 -0
  308. package/lib/spin/style/index.d.ts +1 -0
  309. package/lib/statistic/style/index.cjs +2 -0
  310. package/lib/statistic/style/index.d.ts +1 -0
  311. package/lib/steps/style/index.cjs +2 -0
  312. package/lib/steps/style/index.d.ts +1 -0
  313. package/lib/swiper/style/index.cjs +10 -0
  314. package/lib/swiper/style/index.d.ts +1 -0
  315. package/lib/switch/style/index.cjs +2 -0
  316. package/lib/switch/style/index.d.ts +1 -0
  317. package/lib/table/style/index.cjs +13 -0
  318. package/lib/table/style/index.d.ts +1 -0
  319. package/lib/tabs/style/index.cjs +2 -0
  320. package/lib/tabs/style/index.d.ts +1 -0
  321. package/lib/tag/style/index.cjs +3 -0
  322. package/lib/tag/style/index.d.ts +1 -0
  323. package/lib/text-scroll/style/index.cjs +5 -0
  324. package/lib/text-scroll/style/index.d.ts +1 -0
  325. package/lib/textarea/style/index.cjs +2 -0
  326. package/lib/textarea/style/index.d.ts +1 -0
  327. package/lib/timeline/style/index.cjs +2 -0
  328. package/lib/timeline/style/index.d.ts +1 -0
  329. package/lib/tooltip/style/index.cjs +3 -0
  330. package/lib/tooltip/style/index.d.ts +1 -0
  331. package/lib/upload/style/index.cjs +5 -0
  332. package/lib/upload/style/index.d.ts +1 -0
  333. package/lib/utils/hooks.cjs +1 -1
  334. package/lib/utils/hooks.d.ts +2 -1
  335. package/lib/utils/resolver.cjs +1 -1
  336. package/lib/utils/resolver.d.ts +1 -1
  337. package/lib/utils/style-deps.cjs +1 -0
  338. package/lib/utils/style-deps.d.ts +87 -0
  339. package/lib/video/style/index.cjs +2 -0
  340. package/lib/video/style/index.d.ts +1 -0
  341. package/lib/waterfall/style/index.cjs +3 -0
  342. package/lib/waterfall/style/index.d.ts +1 -0
  343. package/package.json +17 -4
  344. package/es/utils/vendor-styles.js +0 -30
  345. package/lib/utils/vendor-styles.cjs +0 -1
package/README.md CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  ## Features
18
18
 
19
- - The component library is implemented with `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1`.
20
- - Currently, it includes `68` basic UI components and `22` utility functions, with continuous exploration and updates ongoing...
19
+ - The component library is implemented with `Vue@3.5.42`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1`.
20
+ - Currently, it includes `69` basic UI components and `22` utility functions, with continuous exploration and updates ongoing...
21
21
  - Theme Customizable, all you need is to provide a theme color, then all the stuffs will be done by me.
22
22
  - By the way, they are all treeshakable.
23
23
  - All the stuff in Vue Amazing UI is written in TypeScript. It can work with your typescript project seamlessly.
@@ -61,8 +61,9 @@ _In this form, only the imported components will be bundled._
61
61
  import { createApp } from 'vue'
62
62
  import App from './App.vue'
63
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'
64
+ // One style entry per component (recommended form): global default styles + the component's own styles + its dependency components' styles
65
+ import 'vue-amazing-ui/es/button/style'
66
+ import 'vue-amazing-ui/es/tag/style'
66
67
 
67
68
  const app = createApp(App)
68
69
  app.use(Button).use(Tag)
@@ -76,8 +77,9 @@ _In this form, only the imported components will be bundled as well._
76
77
  ```vue
77
78
  <script setup lang="ts">
78
79
  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'
80
+ // One style entry per component (recommended form): global default styles + the component's own styles + its dependency components' styles
81
+ import 'vue-amazing-ui/es/button/style'
82
+ import 'vue-amazing-ui/es/tag/style'
81
83
  </script>
82
84
  <template>
83
85
  <Button>button</Button>
@@ -85,16 +87,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
85
87
  </template>
86
88
  ```
87
89
 
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/import-on-demand.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
- ```
90
+ > The style entry also supports the more explicit file form `import 'vue-amazing-ui/es/button/style/index.js'`.
98
91
 
99
92
  **Automatic On-Demand Import (Strongly Recommended)**
100
93
 
@@ -250,33 +243,34 @@ All sponsors will be listed here, thank you very much for your support and spons
250
243
  | Card | 卡片 | Carousel | 轮播图 |
251
244
  | Cascader | 级联选择 | Checkbox | 复选框 |
252
245
  | Collapse | 折叠面板 | ColorPicker | 颜色选择器 |
253
- | ConfigProvider | 全局化配置 | Countdown | 倒计时 |
254
- | DatePicker | 日期选择器 | Descriptions | 描述列表 |
255
- | Dialog | 对话框 | Divider | 分割线 |
256
- | Drawer | 抽屉 | Ellipsis | 文本省略 |
257
- | Empty | 空状态 | Flex | 弹性布局 |
258
- | FloatButton | 浮动按钮 | GradientText | 渐变文字 |
259
- | Grid | 栅格 | Highlight | 高亮文本 |
260
- | Image | 图片 | Input | 输入框 |
261
- | InputNumber | 数字输入框 | InputSearch | 搜索框 |
262
- | List | 列表 | LoadingBar | 加载条 |
263
- | Message | 全局提示 | Modal | 模态框 |
264
- | Notification | 通知提醒 | NumberAnimation | 数值动画 |
265
- | Pagination | 分页 | Popconfirm | 弹出确认 |
266
- | Popover | 气泡卡片 | Progress | 进度条 |
267
- | QRCode | 二维码 | Radio | 单选框 |
268
- | Rate | 评分 | Result | 结果 |
269
- | Scrollbar | 滚动条 | Segmented | 分段控制器 |
270
- | Select | 选择器 | Skeleton | 骨架屏 |
271
- | Slider | 滑动输入条 | Space | 间距 |
272
- | Spin | 加载中 | Statistic | 统计数值 |
273
- | Steps | 步骤条 | Swiper | 触摸滑动 |
274
- | Switch | 开关 | Table | 表格 |
275
- | Tabs | 标签页 | Tag | 标签 |
276
- | Textarea | 文本域 | TextScroll | 文字滚动 |
277
- | Timeline | 时间轴 | Tooltip | 文字提示 |
278
- | Upload | 上传 | Video | 播放器 |
279
- | Waterfall | 瀑布流 | Watermark | 水印 |
246
+ | Comment | 评论 | ConfigProvider | 全局化配置 |
247
+ | Countdown | 倒计时 | DatePicker | 日期选择器 |
248
+ | Descriptions | 描述列表 | Dialog | 对话框 |
249
+ | Divider | 分割线 | Drawer | 抽屉 |
250
+ | Ellipsis | 文本省略 | Empty | 空状态 |
251
+ | Flex | 弹性布局 | FloatButton | 浮动按钮 |
252
+ | GradientText | 渐变文字 | Grid | 栅格 |
253
+ | Highlight | 高亮文本 | Image | 图片 |
254
+ | Input | 输入框 | InputNumber | 数字输入框 |
255
+ | InputSearch | 搜索框 | List | 列表 |
256
+ | LoadingBar | 加载条 | Message | 全局提示 |
257
+ | Modal | 模态框 | Notification | 通知提醒 |
258
+ | NumberAnimation | 数值动画 | Pagination | 分页 |
259
+ | Popconfirm | 弹出确认 | Popover | 气泡卡片 |
260
+ | Progress | 进度条 | QRCode | 二维码 |
261
+ | Radio | 单选框 | Rate | 评分 |
262
+ | Result | 结果 | Scrollbar | 滚动条 |
263
+ | Segmented | 分段控制器 | Select | 选择器 |
264
+ | Skeleton | 骨架屏 | Slider | 滑动输入条 |
265
+ | Space | 间距 | Spin | 加载中 |
266
+ | Statistic | 统计数值 | Steps | 步骤条 |
267
+ | Swiper | 触摸滑动 | Switch | 开关 |
268
+ | Table | 表格 | Tabs | 标签页 |
269
+ | Tag | 标签 | Textarea | 文本域 |
270
+ | TextScroll | 文字滚动 | Timeline | 时间轴 |
271
+ | Tooltip | 文字提示 | Upload | 上传 |
272
+ | Video | 播放器 | Waterfall | 瀑布流 |
273
+ | Watermark | 水印 | | |
280
274
 
281
275
  ## Functions
282
276
 
package/README.zh-CN.md CHANGED
@@ -16,8 +16,8 @@
16
16
 
17
17
  ## 特性
18
18
 
19
- - 组件库采用 `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1` 实现
20
- - 目前共包含 `68` 个基础 `UI` 组件以及 `22` 个工具函数,并且持续探索更新中...
19
+ - 组件库采用 `Vue@3.5.42`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1` 实现
20
+ - 目前共包含 `69` 个基础 `UI` 组件以及 `22` 个工具函数,并且持续探索更新中...
21
21
  - 主题可调,你只需提供一个主题色,剩下的都交给我
22
22
  - 顺便一提,它们全都可以 `treeshaking`
23
23
  - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
@@ -61,8 +61,9 @@ _这种情况下,只有导入的组件才会被打包_
61
61
  import { createApp } from 'vue'
62
62
  import App from './App.vue'
63
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'
64
+ // 每个组件一个样式入口(推荐写法):内含全局默认样式 + 组件自身样式 + 其依赖组件样式
65
+ import 'vue-amazing-ui/es/button/style'
66
+ import 'vue-amazing-ui/es/tag/style'
66
67
 
67
68
  const app = createApp(App)
68
69
  app.use(Button).use(Tag)
@@ -76,8 +77,9 @@ _这种情况下,也只有导入的组件才会被打包_
76
77
  ```vue
77
78
  <script setup lang="ts">
78
79
  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'
80
+ // 每个组件一个样式入口(推荐写法):内含全局默认样式 + 组件自身样式 + 其依赖组件样式
81
+ import 'vue-amazing-ui/es/button/style'
82
+ import 'vue-amazing-ui/es/tag/style'
81
83
  </script>
82
84
  <template>
83
85
  <Button>button</Button>
@@ -85,16 +87,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
85
87
  </template>
86
88
  ```
87
89
 
88
- **全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/import-on-demand.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
- ```
90
+ > 样式入口也支持(更显式的)文件写法 `import 'vue-amazing-ui/es/button/style/index.js'`。
98
91
 
99
92
  **自动按需引入(强烈推荐)**
100
93
 
@@ -250,33 +243,34 @@ pnpm docs:dev
250
243
  | Card | 卡片 | Carousel | 轮播图 |
251
244
  | Cascader | 级联选择 | Checkbox | 复选框 |
252
245
  | Collapse | 折叠面板 | ColorPicker | 颜色选择器 |
253
- | ConfigProvider | 全局化配置 | Countdown | 倒计时 |
254
- | DatePicker | 日期选择器 | Descriptions | 描述列表 |
255
- | Dialog | 对话框 | Divider | 分割线 |
256
- | Drawer | 抽屉 | Ellipsis | 文本省略 |
257
- | Empty | 空状态 | Flex | 弹性布局 |
258
- | FloatButton | 浮动按钮 | GradientText | 渐变文字 |
259
- | Grid | 栅格 | Highlight | 高亮文本 |
260
- | Image | 图片 | Input | 输入框 |
261
- | InputNumber | 数字输入框 | InputSearch | 搜索框 |
262
- | List | 列表 | LoadingBar | 加载条 |
263
- | Message | 全局提示 | Modal | 模态框 |
264
- | Notification | 通知提醒 | NumberAnimation | 数值动画 |
265
- | Pagination | 分页 | Popconfirm | 弹出确认 |
266
- | Popover | 气泡卡片 | Progress | 进度条 |
267
- | QRCode | 二维码 | Radio | 单选框 |
268
- | Rate | 评分 | Result | 结果 |
269
- | Scrollbar | 滚动条 | Segmented | 分段控制器 |
270
- | Select | 选择器 | Skeleton | 骨架屏 |
271
- | Slider | 滑动输入条 | Space | 间距 |
272
- | Spin | 加载中 | Statistic | 统计数值 |
273
- | Steps | 步骤条 | Swiper | 触摸滑动 |
274
- | Switch | 开关 | Table | 表格 |
275
- | Tabs | 标签页 | Tag | 标签 |
276
- | Textarea | 文本域 | TextScroll | 文字滚动 |
277
- | Timeline | 时间轴 | Tooltip | 文字提示 |
278
- | Upload | 上传 | Video | 播放器 |
279
- | Waterfall | 瀑布流 | Watermark | 水印 |
246
+ | Comment | 评论 | ConfigProvider | 全局化配置 |
247
+ | Countdown | 倒计时 | DatePicker | 日期选择器 |
248
+ | Descriptions | 描述列表 | Dialog | 对话框 |
249
+ | Divider | 分割线 | Drawer | 抽屉 |
250
+ | Ellipsis | 文本省略 | Empty | 空状态 |
251
+ | Flex | 弹性布局 | FloatButton | 浮动按钮 |
252
+ | GradientText | 渐变文字 | Grid | 栅格 |
253
+ | Highlight | 高亮文本 | Image | 图片 |
254
+ | Input | 输入框 | InputNumber | 数字输入框 |
255
+ | InputSearch | 搜索框 | List | 列表 |
256
+ | LoadingBar | 加载条 | Message | 全局提示 |
257
+ | Modal | 模态框 | Notification | 通知提醒 |
258
+ | NumberAnimation | 数值动画 | Pagination | 分页 |
259
+ | Popconfirm | 弹出确认 | Popover | 气泡卡片 |
260
+ | Progress | 进度条 | QRCode | 二维码 |
261
+ | Radio | 单选框 | Rate | 评分 |
262
+ | Result | 结果 | Scrollbar | 滚动条 |
263
+ | Segmented | 分段控制器 | Select | 选择器 |
264
+ | Skeleton | 骨架屏 | Slider | 滑动输入条 |
265
+ | Space | 间距 | Spin | 加载中 |
266
+ | Statistic | 统计数值 | Steps | 步骤条 |
267
+ | Swiper | 触摸滑动 | Switch | 开关 |
268
+ | Table | 表格 | Tabs | 标签页 |
269
+ | Tag | 标签 | Textarea | 文本域 |
270
+ | TextScroll | 文字滚动 | Timeline | 时间轴 |
271
+ | Tooltip | 文字提示 | Upload | 上传 |
272
+ | Video | 播放器 | Waterfall | 瀑布流 |
273
+ | Watermark | 水印 | | |
280
274
 
281
275
  ## 工具函数
282
276