vue-amazing-ui 2.2.15 → 2.3.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 (247) hide show
  1. package/README.md +38 -35
  2. package/README.zh-CN.md +38 -35
  3. package/dist/index.iife.js +159 -145
  4. package/dist/index.js +5929 -5695
  5. package/dist/index.umd.cjs +157 -143
  6. package/dist/style.css +1 -1
  7. package/es/alert/Alert.css +1 -1
  8. package/es/alert/Alert.vue.js +1 -1
  9. package/es/alert/Alert.vue2.js +65 -65
  10. package/es/backtop/BackTop.css +1 -1
  11. package/es/backtop/BackTop.vue.js +2 -2
  12. package/es/backtop/BackTop.vue2.js +63 -63
  13. package/es/badge/Badge.css +1 -1
  14. package/es/badge/Badge.vue.js +3 -3
  15. package/es/badge/Badge.vue2.js +1 -1
  16. package/es/button/Button.css +1 -1
  17. package/es/button/Button.vue.js +2 -2
  18. package/es/button/Button.vue2.js +53 -53
  19. package/es/calendar/Calendar.css +1 -1
  20. package/es/calendar/Calendar.vue.js +3 -3
  21. package/es/calendar/Calendar.vue2.js +137 -137
  22. package/es/carousel/Carousel.css +1 -1
  23. package/es/carousel/Carousel.vue.js +2 -2
  24. package/es/carousel/Carousel.vue2.js +130 -130
  25. package/es/checkbox/Checkbox.css +1 -1
  26. package/es/checkbox/Checkbox.vue.js +2 -2
  27. package/es/checkbox/Checkbox.vue2.js +55 -55
  28. package/es/colorpicker/ColorPicker.css +1 -1
  29. package/es/colorpicker/ColorPicker.vue.js +2 -2
  30. package/es/colorpicker/ColorPicker.vue2.js +190 -190
  31. package/es/components.d.ts +2 -0
  32. package/es/components.js +118 -116
  33. package/es/configprovider/ConfigProvider.d.ts +125 -0
  34. package/es/configprovider/ConfigProvider.vue.js +198 -0
  35. package/es/configprovider/ConfigProvider.vue2.js +4 -0
  36. package/es/configprovider/index.d.ts +32 -0
  37. package/es/configprovider/index.js +6 -0
  38. package/es/datepicker/DatePicker.css +1 -1
  39. package/es/datepicker/DatePicker.d.ts +2 -2
  40. package/es/datepicker/DatePicker.vue.js +1 -1
  41. package/es/datepicker/DatePicker.vue2.js +25 -24
  42. package/es/datepicker/index.d.ts +3 -3
  43. package/es/floatbutton/FloatButton.css +1 -1
  44. package/es/floatbutton/FloatButton.vue.js +2 -2
  45. package/es/floatbutton/FloatButton.vue2.js +48 -48
  46. package/es/gradienttext/GradientText.css +1 -1
  47. package/es/gradienttext/GradientText.vue.js +2 -2
  48. package/es/gradienttext/GradientText.vue2.js +4 -4
  49. package/es/image/Image.css +1 -1
  50. package/es/image/Image.d.ts +1 -1
  51. package/es/image/Image.vue.js +1 -1
  52. package/es/image/Image.vue2.js +105 -105
  53. package/es/image/index.d.ts +3 -3
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +144 -141
  56. package/es/input/Input.css +1 -1
  57. package/es/input/Input.vue.js +2 -2
  58. package/es/input/Input.vue2.js +72 -72
  59. package/es/inputnumber/InputNumber.css +1 -1
  60. package/es/inputnumber/InputNumber.vue.js +1 -1
  61. package/es/inputnumber/InputNumber.vue2.js +62 -62
  62. package/es/inputsearch/InputSearch.css +1 -1
  63. package/es/inputsearch/InputSearch.vue.js +2 -2
  64. package/es/inputsearch/InputSearch.vue2.js +62 -62
  65. package/es/loadingbar/LoadingBar.css +1 -1
  66. package/es/loadingbar/LoadingBar.vue.js +2 -2
  67. package/es/loadingbar/LoadingBar.vue2.js +52 -44
  68. package/es/message/Message.css +1 -1
  69. package/es/message/Message.vue.js +2 -2
  70. package/es/message/Message.vue2.js +58 -58
  71. package/es/modal/Modal.css +1 -1
  72. package/es/modal/Modal.vue.js +2 -2
  73. package/es/modal/Modal.vue2.js +129 -128
  74. package/es/notification/Notification.css +1 -1
  75. package/es/notification/Notification.vue.js +2 -2
  76. package/es/notification/Notification.vue2.js +43 -43
  77. package/es/pagination/Pagination.css +1 -1
  78. package/es/pagination/Pagination.vue.js +1 -1
  79. package/es/pagination/Pagination.vue2.js +56 -55
  80. package/es/popconfirm/Popconfirm.css +1 -1
  81. package/es/popconfirm/Popconfirm.vue.js +1 -1
  82. package/es/popconfirm/Popconfirm.vue2.js +38 -38
  83. package/es/progress/Progress.css +1 -1
  84. package/es/progress/Progress.vue.js +2 -2
  85. package/es/progress/Progress.vue2.js +75 -75
  86. package/es/radio/Radio.css +1 -1
  87. package/es/radio/Radio.vue.js +2 -2
  88. package/es/radio/Radio.vue2.js +42 -39
  89. package/es/select/Select.css +1 -1
  90. package/es/select/Select.vue.js +1 -1
  91. package/es/select/Select.vue2.js +77 -76
  92. package/es/slider/Slider.css +1 -1
  93. package/es/slider/Slider.vue.js +2 -2
  94. package/es/slider/Slider.vue2.js +147 -147
  95. package/es/spin/Spin.css +1 -1
  96. package/es/spin/Spin.vue.js +2 -2
  97. package/es/spin/Spin.vue2.js +61 -55
  98. package/es/steps/Steps.css +1 -1
  99. package/es/steps/Steps.vue.js +2 -2
  100. package/es/steps/Steps.vue2.js +37 -36
  101. package/es/swiper/Swiper.css +1 -1
  102. package/es/swiper/Swiper.vue.js +1 -1
  103. package/es/swiper/Swiper.vue2.js +64 -63
  104. package/es/switch/Switch.css +1 -1
  105. package/es/switch/Switch.vue.js +1 -1
  106. package/es/switch/Switch.vue2.js +34 -33
  107. package/es/tabs/Tabs.css +1 -1
  108. package/es/tabs/Tabs.vue.js +2 -2
  109. package/es/tabs/Tabs.vue2.js +67 -67
  110. package/es/textarea/Textarea.css +1 -1
  111. package/es/textarea/Textarea.vue.js +3 -3
  112. package/es/textarea/Textarea.vue2.js +46 -45
  113. package/es/textscroll/TextScroll.css +1 -1
  114. package/es/textscroll/TextScroll.vue.js +1 -1
  115. package/es/textscroll/TextScroll.vue2.js +42 -42
  116. package/es/upload/Upload.css +1 -1
  117. package/es/upload/Upload.d.ts +6 -6
  118. package/es/upload/Upload.vue.js +2 -2
  119. package/es/upload/Upload.vue2.js +72 -71
  120. package/es/upload/index.d.ts +3 -3
  121. package/es/utils/index.d.ts +4 -0
  122. package/es/utils/index.js +178 -154
  123. package/es/utils/resolver.js +11 -10
  124. package/lib/alert/Alert.css +1 -1
  125. package/lib/alert/Alert.vue.cjs +1 -1
  126. package/lib/alert/Alert.vue2.cjs +5 -5
  127. package/lib/backtop/BackTop.css +1 -1
  128. package/lib/backtop/BackTop.vue.cjs +1 -1
  129. package/lib/backtop/BackTop.vue2.cjs +5 -5
  130. package/lib/badge/Badge.css +1 -1
  131. package/lib/badge/Badge.vue.cjs +1 -1
  132. package/lib/badge/Badge.vue2.cjs +1 -1
  133. package/lib/button/Button.css +1 -1
  134. package/lib/button/Button.vue.cjs +1 -1
  135. package/lib/button/Button.vue2.cjs +6 -6
  136. package/lib/calendar/Calendar.css +1 -1
  137. package/lib/calendar/Calendar.vue.cjs +1 -1
  138. package/lib/calendar/Calendar.vue2.cjs +5 -5
  139. package/lib/carousel/Carousel.css +1 -1
  140. package/lib/carousel/Carousel.vue.cjs +1 -1
  141. package/lib/carousel/Carousel.vue2.cjs +4 -4
  142. package/lib/checkbox/Checkbox.css +1 -1
  143. package/lib/checkbox/Checkbox.vue.cjs +1 -1
  144. package/lib/checkbox/Checkbox.vue2.cjs +1 -1
  145. package/lib/colorpicker/ColorPicker.css +1 -1
  146. package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
  147. package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
  148. package/lib/components.cjs +1 -1
  149. package/lib/components.d.ts +2 -0
  150. package/lib/configprovider/ConfigProvider.d.ts +125 -0
  151. package/lib/configprovider/ConfigProvider.vue.cjs +1 -0
  152. package/lib/configprovider/ConfigProvider.vue2.cjs +1 -0
  153. package/lib/configprovider/index.cjs +1 -0
  154. package/lib/configprovider/index.d.ts +32 -0
  155. package/lib/datepicker/DatePicker.css +1 -1
  156. package/lib/datepicker/DatePicker.d.ts +2 -2
  157. package/lib/datepicker/DatePicker.vue.cjs +1 -1
  158. package/lib/datepicker/DatePicker.vue2.cjs +7 -7
  159. package/lib/datepicker/index.d.ts +3 -3
  160. package/lib/floatbutton/FloatButton.css +1 -1
  161. package/lib/floatbutton/FloatButton.vue.cjs +1 -1
  162. package/lib/floatbutton/FloatButton.vue2.cjs +10 -10
  163. package/lib/gradienttext/GradientText.css +1 -1
  164. package/lib/gradienttext/GradientText.vue.cjs +1 -1
  165. package/lib/gradienttext/GradientText.vue2.cjs +1 -1
  166. package/lib/image/Image.css +1 -1
  167. package/lib/image/Image.d.ts +1 -1
  168. package/lib/image/Image.vue.cjs +1 -1
  169. package/lib/image/Image.vue2.cjs +1 -1
  170. package/lib/image/index.d.ts +3 -3
  171. package/lib/index.cjs +1 -1
  172. package/lib/index.d.ts +1 -1
  173. package/lib/input/Input.css +1 -1
  174. package/lib/input/Input.vue.cjs +1 -1
  175. package/lib/input/Input.vue2.cjs +6 -6
  176. package/lib/inputnumber/InputNumber.css +1 -1
  177. package/lib/inputnumber/InputNumber.vue.cjs +1 -1
  178. package/lib/inputnumber/InputNumber.vue2.cjs +7 -7
  179. package/lib/inputsearch/InputSearch.css +1 -1
  180. package/lib/inputsearch/InputSearch.vue.cjs +1 -1
  181. package/lib/inputsearch/InputSearch.vue2.cjs +6 -6
  182. package/lib/loadingbar/LoadingBar.css +1 -1
  183. package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
  184. package/lib/loadingbar/LoadingBar.vue2.cjs +6 -1
  185. package/lib/message/Message.css +1 -1
  186. package/lib/message/Message.vue.cjs +1 -1
  187. package/lib/message/Message.vue2.cjs +3 -3
  188. package/lib/modal/Modal.css +1 -1
  189. package/lib/modal/Modal.vue.cjs +1 -1
  190. package/lib/modal/Modal.vue2.cjs +3 -3
  191. package/lib/notification/Notification.css +1 -1
  192. package/lib/notification/Notification.vue.cjs +1 -1
  193. package/lib/notification/Notification.vue2.cjs +3 -3
  194. package/lib/pagination/Pagination.css +1 -1
  195. package/lib/pagination/Pagination.vue.cjs +1 -1
  196. package/lib/pagination/Pagination.vue2.cjs +1 -1
  197. package/lib/popconfirm/Popconfirm.css +1 -1
  198. package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
  199. package/lib/popconfirm/Popconfirm.vue2.cjs +3 -3
  200. package/lib/progress/Progress.css +1 -1
  201. package/lib/progress/Progress.vue.cjs +1 -1
  202. package/lib/progress/Progress.vue2.cjs +10 -10
  203. package/lib/radio/Radio.css +1 -1
  204. package/lib/radio/Radio.vue.cjs +1 -1
  205. package/lib/radio/Radio.vue2.cjs +4 -1
  206. package/lib/select/Select.css +1 -1
  207. package/lib/select/Select.vue.cjs +1 -1
  208. package/lib/select/Select.vue2.cjs +8 -8
  209. package/lib/slider/Slider.css +1 -1
  210. package/lib/slider/Slider.vue.cjs +1 -1
  211. package/lib/slider/Slider.vue2.cjs +7 -7
  212. package/lib/spin/Spin.css +1 -1
  213. package/lib/spin/Spin.vue.cjs +1 -1
  214. package/lib/spin/Spin.vue2.cjs +8 -2
  215. package/lib/steps/Steps.css +1 -1
  216. package/lib/steps/Steps.vue.cjs +1 -1
  217. package/lib/steps/Steps.vue2.cjs +6 -6
  218. package/lib/swiper/Swiper.css +1 -1
  219. package/lib/swiper/Swiper.vue.cjs +1 -1
  220. package/lib/swiper/Swiper.vue2.cjs +13 -13
  221. package/lib/switch/Switch.css +1 -1
  222. package/lib/switch/Switch.vue.cjs +1 -1
  223. package/lib/switch/Switch.vue2.cjs +5 -5
  224. package/lib/tabs/Tabs.css +1 -1
  225. package/lib/tabs/Tabs.vue.cjs +1 -1
  226. package/lib/tabs/Tabs.vue2.cjs +1 -1
  227. package/lib/textarea/Textarea.css +1 -1
  228. package/lib/textarea/Textarea.vue.cjs +1 -1
  229. package/lib/textarea/Textarea.vue2.cjs +6 -6
  230. package/lib/textscroll/TextScroll.css +1 -1
  231. package/lib/textscroll/TextScroll.vue.cjs +1 -1
  232. package/lib/textscroll/TextScroll.vue2.cjs +6 -6
  233. package/lib/upload/Upload.css +1 -1
  234. package/lib/upload/Upload.d.ts +6 -6
  235. package/lib/upload/Upload.vue.cjs +1 -1
  236. package/lib/upload/Upload.vue2.cjs +1 -1
  237. package/lib/upload/index.d.ts +3 -3
  238. package/lib/utils/index.cjs +1 -1
  239. package/lib/utils/index.d.ts +4 -0
  240. package/lib/utils/resolver.cjs +1 -1
  241. package/package.json +8 -7
  242. package/dist/amazing-icon.svg +0 -24
  243. package/dist/favicon.ico +0 -0
  244. package/es/amazing-icon.svg +0 -24
  245. package/es/favicon.ico +0 -0
  246. package/lib/amazing-icon.svg +0 -24
  247. package/lib/favicon.ico +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <h1 align="center">Vue Amazing UI</h1>
8
8
  <p align="center">A Vue 3 Component Library</p>
9
- <p align="center">Uses TypeScript, All components are single-file components (SFC), Supports tree shaking.</p>
9
+ <p align="center">Theme Customizable, Fully using TypeScript and SFC, Supports tree shaking.</p>
10
10
  <p align="center">Kinda Interesting</p>
11
11
  <p align="center">English | <a href="README.zh-CN.md">中文</a></p>
12
12
 
@@ -16,11 +16,12 @@
16
16
 
17
17
  ## Features
18
18
 
19
- - The component library is implemented with `Vue@3.5.13`+ `TypeScript@5.8.2` + `Vite@6.2.0` + `Less@4.2.2`.
20
- - Currently, it includes `65` basic UI components and `16` utility functions, with continuous exploration and updates ongoing...
19
+ - The component library is implemented with `Vue@3.5.13`+ `TypeScript@5.8.2` + `Vite@6.2.1` + `Less@4.2.2`.
20
+ - Currently, it includes `66` basic UI components and `17` utility functions, with continuous exploration and updates ongoing...
21
21
  - What's more, they are all treeshakable.
22
+ - Theme Customizable, all you need is to provide a theme color, then all the stuffs will be done by me.
22
23
  - All the stuff in Vue Amazing UI is written in TypeScript. It can work with your typescript project seamlessly.
23
- - All components are built in single file component `SFC` style and can be used independently.
24
+ - All components are built in single file component `SFC` and can be used independently.
24
25
  - Ready to use out of the box, no fuss.
25
26
 
26
27
  ## Installation
@@ -84,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
84
85
  </template>
85
86
  ```
86
87
 
87
- **Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library (Automatic On-Demand Import is recommended).**
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).**
88
89
 
89
90
  ```ts
90
91
  import { createApp } from 'vue'
@@ -177,7 +178,8 @@ import {
177
178
  useFps,
178
179
  useMediaQuery,
179
180
  useResizeObserver,
180
- useSlotsExist
181
+ useSlotsExist,
182
+ useInject
181
183
  } from 'vue-amazing-ui'
182
184
  </script>
183
185
  ```
@@ -222,9 +224,9 @@ docs:dev
222
224
 
223
225
  ## Sponsors 🫡
224
226
 
225
- All sponsors will be listed here, thank you very much for your support and sponsorship ❤️❤️
227
+ All sponsors will be listed here, thank you very much for your support and sponsorship ❤️
226
228
 
227
- <a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher"></a> <img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="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"></a>
229
+ <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>
228
230
 
229
231
  ## Components
230
232
 
@@ -236,33 +238,33 @@ Breadcrumb | 面包屑 | Button | 按钮
236
238
  Calendar | 日历 | Card | 卡片
237
239
  Carousel | 轮播图 | Cascader | 级联选择
238
240
  Checkbox | 复选框 | Collapse | 折叠面板
239
- ColorPicker | 颜色选择器 | Countdown | 倒计时
240
- DatePicker | 日期选择器 | Descriptions | 描述列表
241
- Dialog | 对话框 | Divider | 分割线
242
- Drawer | 抽屉 | Ellipsis | 文本省略
243
- Empty | 空状态 | Flex | 弹性布局
244
- FloatButton | 浮动按钮 | GradientText | 渐变文字
245
- Grid | 栅格 | Image | 图片
246
- Input | 输入框 | InputNumber | 数字输入框
247
- InputSearch | 搜索框 | List | 列表
248
- LoadingBar | 加载条 | Message | 全局提示
249
- Modal | 模态框 | Notification | 通知提醒
250
- NumberAnimation | 数值动画 | Pagination | 分页
251
- Popconfirm | 弹出确认 | Popover | 气泡卡片
252
- Progress | 进度条 | QRCode | 二维码
253
- Radio | 单选框 | Rate | 评分
254
- Result | 结果 | Scrollbar | 滚动条
255
- Segmented | 分段控制器 | Select | 选择器
256
- Skeleton | 骨架屏 | Slider | 滑动输入条
257
- Space | 间距 | Spin | 加载中
258
- Statistic | 统计数值 | Steps | 步骤条
259
- Swiper | 触摸滑动插件 | Switch | 开关
260
- Table | 表格 | Tabs | 标签页
261
- Tag | 标签 | Textarea | 文本域
262
- TextScroll | 文字滚动 | Timeline | 时间轴
263
- Tooltip | 文字提示 | Upload | 上传
264
- Video | 播放器 | Waterfall | 瀑布流
265
- Watermark | 水印
241
+ ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置
242
+ Countdown | 倒计时 | DatePicker | 日期选择器
243
+ Descriptions | 描述列表 | Dialog | 对话框
244
+ Divider | 分割线 | Drawer | 抽屉
245
+ Ellipsis | 文本省略 | Empty | 空状态
246
+ Flex | 弹性布局 | FloatButton | 浮动按钮
247
+ GradientText | 渐变文字 | Grid | 栅格
248
+ Image | 图片 | Input | 输入框
249
+ InputNumber | 数字输入框 | InputSearch | 搜索框
250
+ List | 列表 | LoadingBar | 加载条
251
+ Message | 全局提示 | Modal | 模态框
252
+ Notification | 通知提醒 | NumberAnimation | 数值动画
253
+ Pagination | 分页 | Popconfirm | 弹出确认
254
+ Popover | 气泡卡片 | Progress | 进度条
255
+ QRCode | 二维码 | Radio | 单选框
256
+ Rate | 评分 | Result | 结果
257
+ Scrollbar | 滚动条 | Segmented | 分段控制器
258
+ Select | 选择器 | Skeleton | 骨架屏
259
+ Slider | 滑动输入条 | Space | 间距
260
+ Spin | 加载中 | Statistic | 统计数值
261
+ Steps | 步骤条 | Swiper | 触摸滑动插件
262
+ Switch | 开关 | Table | 表格
263
+ Tabs | 标签页 | Tag | 标签
264
+ Textarea | 文本域 | TextScroll | 文字滚动
265
+ Timeline | 时间轴 | Tooltip | 文字提示
266
+ Upload | 上传 | Video | 播放器
267
+ Waterfall | 瀑布流 | Watermark | 水印
266
268
 
267
269
  ## Functions
268
270
 
@@ -284,3 +286,4 @@ useFps | Function to monitor the browser's refresh rate (FPS) in real time | ()
284
286
  useMediaQuery | Function to determine if the current environment matches a specified media query condition | (mediaQuery: string) => object
285
287
  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
286
288
  useSlotsExist | Function to watch for the existence of slots with given names, supporting single slots or an array of slots | (slotsName: string &#124; string[] = 'default') => Reactive &#124; Ref\<boolean>
289
+ useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref<string[]>; shadowColor: Ref<string> }
package/README.zh-CN.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <h1 align="center">Vue Amazing UI</h1>
8
8
  <p align="center">一个 Vue 3 组件库</p>
9
- <p align="center">使用 TypeScript,都是单文件组件 (SFC),支持 tree shaking</p>
9
+ <p align="center">主题可调,全量使用 TypeScript SFC,支持 tree shaking</p>
10
10
  <p align="center">有点意思</p>
11
11
  <p align="center"><a href="README.md">English</a> | 中文</p>
12
12
 
@@ -16,11 +16,12 @@
16
16
 
17
17
  ## 特性
18
18
 
19
- - 组件库采用 `Vue@3.5.13`+ `TypeScript@5.8.2` + `Vite@6.2.0` + `Less@4.2.2` 实现
20
- - 目前共包含 `65` 个基础 `UI` 组件以及 `16` 个工具函数,并且持续探索更新中...
19
+ - 组件库采用 `Vue@3.5.13`+ `TypeScript@5.8.2` + `Vite@6.2.1` + `Less@4.2.2` 实现
20
+ - 目前共包含 `66` 个基础 `UI` 组件以及 `17` 个工具函数,并且持续探索更新中...
21
21
  - 顺便一提,它们全都可以 `treeshaking`
22
+ - 主题可调,你只需提供一个主题色,剩下的都交给我
22
23
  - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
23
- - 全部组件均采用单文件组件 `SFC` 风格,可独立使用
24
+ - 全部组件均采用单文件组件 `SFC`,可独立使用
24
25
  - 开箱即用,不墨迹
25
26
 
26
27
  ## 安装
@@ -84,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
84
85
  </template>
85
86
  ```
86
87
 
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))**
88
89
 
89
90
  ```ts
90
91
  import { createApp } from 'vue'
@@ -177,7 +178,8 @@ import {
177
178
  useFps,
178
179
  useMediaQuery,
179
180
  useResizeObserver,
180
- useSlotsExist
181
+ useSlotsExist,
182
+ useInject
181
183
  } from 'vue-amazing-ui'
182
184
  </script>
183
185
  ```
@@ -222,9 +224,9 @@ docs:dev
222
224
 
223
225
  ## 赞助者 🫡
224
226
 
225
- 所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️❤️
227
+ 所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️
226
228
 
227
- <a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher"></a><img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="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"></a>
229
+ <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>
228
230
 
229
231
  ## 组件
230
232
 
@@ -236,33 +238,33 @@ Breadcrumb | 面包屑 | Button | 按钮
236
238
  Calendar | 日历 | Card | 卡片
237
239
  Carousel | 轮播图 | Cascader | 级联选择
238
240
  Checkbox | 复选框 | Collapse | 折叠面板
239
- ColorPicker | 颜色选择器 | Countdown | 倒计时
240
- DatePicker | 日期选择器 | Descriptions | 描述列表
241
- Dialog | 对话框 | Divider | 分割线
242
- Drawer | 抽屉 | Ellipsis | 文本省略
243
- Empty | 空状态 | Flex | 弹性布局
244
- FloatButton | 浮动按钮 | GradientText | 渐变文字
245
- Grid | 栅格 | Image | 图片
246
- Input | 输入框 | InputNumber | 数字输入框
247
- InputSearch | 搜索框 | List | 列表
248
- LoadingBar | 加载条 | Message | 全局提示
249
- Modal | 模态框 | Notification | 通知提醒
250
- NumberAnimation | 数值动画 | Pagination | 分页
251
- Popconfirm | 弹出确认 | Popover | 气泡卡片
252
- Progress | 进度条 | QRCode | 二维码
253
- Radio | 单选框 | Rate | 评分
254
- Result | 结果 | Scrollbar | 滚动条
255
- Segmented | 分段控制器 | Select | 选择器
256
- Skeleton | 骨架屏 | Slider | 滑动输入条
257
- Space | 间距 | Spin | 加载中
258
- Statistic | 统计数值 | Steps | 步骤条
259
- Swiper | 触摸滑动插件 | Switch | 开关
260
- Table | 表格 | Tabs | 标签页
261
- Tag | 标签 | Textarea | 文本域
262
- TextScroll | 文字滚动 | Timeline | 时间轴
263
- Tooltip | 文字提示 | Upload | 上传
264
- Video | 播放器 | Waterfall | 瀑布流
265
- Watermark | 水印
241
+ ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置
242
+ Countdown | 倒计时 | DatePicker | 日期选择器
243
+ Descriptions | 描述列表 | Dialog | 对话框
244
+ Divider | 分割线 | Drawer | 抽屉
245
+ Ellipsis | 文本省略 | Empty | 空状态
246
+ Flex | 弹性布局 | FloatButton | 浮动按钮
247
+ GradientText | 渐变文字 | Grid | 栅格
248
+ Image | 图片 | Input | 输入框
249
+ InputNumber | 数字输入框 | InputSearch | 搜索框
250
+ List | 列表 | LoadingBar | 加载条
251
+ Message | 全局提示 | Modal | 模态框
252
+ Notification | 通知提醒 | NumberAnimation | 数值动画
253
+ Pagination | 分页 | Popconfirm | 弹出确认
254
+ Popover | 气泡卡片 | Progress | 进度条
255
+ QRCode | 二维码 | Radio | 单选框
256
+ Rate | 评分 | Result | 结果
257
+ Scrollbar | 滚动条 | Segmented | 分段控制器
258
+ Select | 选择器 | Skeleton | 骨架屏
259
+ Slider | 滑动输入条 | Space | 间距
260
+ Spin | 加载中 | Statistic | 统计数值
261
+ Steps | 步骤条 | Swiper | 触摸滑动插件
262
+ Switch | 开关 | Table | 表格
263
+ Tabs | 标签页 | Tag | 标签
264
+ Textarea | 文本域 | TextScroll | 文字滚动
265
+ Timeline | 时间轴 | Tooltip | 文字提示
266
+ Upload | 上传 | Video | 播放器
267
+ Waterfall | 瀑布流 | Watermark | 水印
266
268
 
267
269
  ## 工具函数
268
270
 
@@ -284,3 +286,4 @@ useFps | 实时监测浏览器刷新率FPS | () => object
284
286
  useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => object
285
287
  useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options = {}) => object
286
288
  useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | (slotsName: string &#124; string[] = 'default') => Reactive &#124; Ref\<boolean>
289
+ useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref<string[]>; shadowColor: Ref<string> }