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.
- package/README.md +38 -35
- package/README.zh-CN.md +38 -35
- package/dist/index.iife.js +159 -145
- package/dist/index.js +5929 -5695
- package/dist/index.umd.cjs +157 -143
- package/dist/style.css +1 -1
- package/es/alert/Alert.css +1 -1
- package/es/alert/Alert.vue.js +1 -1
- package/es/alert/Alert.vue2.js +65 -65
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +2 -2
- package/es/backtop/BackTop.vue2.js +63 -63
- package/es/badge/Badge.css +1 -1
- package/es/badge/Badge.vue.js +3 -3
- package/es/badge/Badge.vue2.js +1 -1
- package/es/button/Button.css +1 -1
- package/es/button/Button.vue.js +2 -2
- package/es/button/Button.vue2.js +53 -53
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.vue.js +3 -3
- package/es/calendar/Calendar.vue2.js +137 -137
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +2 -2
- package/es/carousel/Carousel.vue2.js +130 -130
- package/es/checkbox/Checkbox.css +1 -1
- package/es/checkbox/Checkbox.vue.js +2 -2
- package/es/checkbox/Checkbox.vue2.js +55 -55
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +190 -190
- package/es/components.d.ts +2 -0
- package/es/components.js +118 -116
- package/es/configprovider/ConfigProvider.d.ts +125 -0
- package/es/configprovider/ConfigProvider.vue.js +198 -0
- package/es/configprovider/ConfigProvider.vue2.js +4 -0
- package/es/configprovider/index.d.ts +32 -0
- package/es/configprovider/index.js +6 -0
- package/es/datepicker/DatePicker.css +1 -1
- package/es/datepicker/DatePicker.d.ts +2 -2
- package/es/datepicker/DatePicker.vue.js +1 -1
- package/es/datepicker/DatePicker.vue2.js +25 -24
- package/es/datepicker/index.d.ts +3 -3
- package/es/floatbutton/FloatButton.css +1 -1
- package/es/floatbutton/FloatButton.vue.js +2 -2
- package/es/floatbutton/FloatButton.vue2.js +48 -48
- package/es/gradienttext/GradientText.css +1 -1
- package/es/gradienttext/GradientText.vue.js +2 -2
- package/es/gradienttext/GradientText.vue2.js +4 -4
- package/es/image/Image.css +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/Image.vue.js +1 -1
- package/es/image/Image.vue2.js +105 -105
- package/es/image/index.d.ts +3 -3
- package/es/index.d.ts +1 -1
- package/es/index.js +144 -141
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input/Input.vue2.js +72 -72
- package/es/inputnumber/InputNumber.css +1 -1
- package/es/inputnumber/InputNumber.vue.js +1 -1
- package/es/inputnumber/InputNumber.vue2.js +62 -62
- package/es/inputsearch/InputSearch.css +1 -1
- package/es/inputsearch/InputSearch.vue.js +2 -2
- package/es/inputsearch/InputSearch.vue2.js +62 -62
- package/es/loadingbar/LoadingBar.css +1 -1
- package/es/loadingbar/LoadingBar.vue.js +2 -2
- package/es/loadingbar/LoadingBar.vue2.js +52 -44
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +58 -58
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.vue.js +2 -2
- package/es/modal/Modal.vue2.js +129 -128
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.vue.js +2 -2
- package/es/notification/Notification.vue2.js +43 -43
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/Pagination.vue2.js +56 -55
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.vue.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +38 -38
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +75 -75
- package/es/radio/Radio.css +1 -1
- package/es/radio/Radio.vue.js +2 -2
- package/es/radio/Radio.vue2.js +42 -39
- package/es/select/Select.css +1 -1
- package/es/select/Select.vue.js +1 -1
- package/es/select/Select.vue2.js +77 -76
- package/es/slider/Slider.css +1 -1
- package/es/slider/Slider.vue.js +2 -2
- package/es/slider/Slider.vue2.js +147 -147
- package/es/spin/Spin.css +1 -1
- package/es/spin/Spin.vue.js +2 -2
- package/es/spin/Spin.vue2.js +61 -55
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/steps/Steps.vue2.js +37 -36
- package/es/swiper/Swiper.css +1 -1
- package/es/swiper/Swiper.vue.js +1 -1
- package/es/swiper/Swiper.vue2.js +64 -63
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.vue.js +1 -1
- package/es/switch/Switch.vue2.js +34 -33
- package/es/tabs/Tabs.css +1 -1
- package/es/tabs/Tabs.vue.js +2 -2
- package/es/tabs/Tabs.vue2.js +67 -67
- package/es/textarea/Textarea.css +1 -1
- package/es/textarea/Textarea.vue.js +3 -3
- package/es/textarea/Textarea.vue2.js +46 -45
- package/es/textscroll/TextScroll.css +1 -1
- package/es/textscroll/TextScroll.vue.js +1 -1
- package/es/textscroll/TextScroll.vue2.js +42 -42
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.d.ts +6 -6
- package/es/upload/Upload.vue.js +2 -2
- package/es/upload/Upload.vue2.js +72 -71
- package/es/upload/index.d.ts +3 -3
- package/es/utils/index.d.ts +4 -0
- package/es/utils/index.js +178 -154
- package/es/utils/resolver.js +11 -10
- package/lib/alert/Alert.css +1 -1
- package/lib/alert/Alert.vue.cjs +1 -1
- package/lib/alert/Alert.vue2.cjs +5 -5
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +5 -5
- package/lib/badge/Badge.css +1 -1
- package/lib/badge/Badge.vue.cjs +1 -1
- package/lib/badge/Badge.vue2.cjs +1 -1
- package/lib/button/Button.css +1 -1
- package/lib/button/Button.vue.cjs +1 -1
- package/lib/button/Button.vue2.cjs +6 -6
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -5
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/Carousel.vue2.cjs +4 -4
- package/lib/checkbox/Checkbox.css +1 -1
- package/lib/checkbox/Checkbox.vue.cjs +1 -1
- package/lib/checkbox/Checkbox.vue2.cjs +1 -1
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/configprovider/ConfigProvider.d.ts +125 -0
- package/lib/configprovider/ConfigProvider.vue.cjs +1 -0
- package/lib/configprovider/ConfigProvider.vue2.cjs +1 -0
- package/lib/configprovider/index.cjs +1 -0
- package/lib/configprovider/index.d.ts +32 -0
- package/lib/datepicker/DatePicker.css +1 -1
- package/lib/datepicker/DatePicker.d.ts +2 -2
- package/lib/datepicker/DatePicker.vue.cjs +1 -1
- package/lib/datepicker/DatePicker.vue2.cjs +7 -7
- package/lib/datepicker/index.d.ts +3 -3
- package/lib/floatbutton/FloatButton.css +1 -1
- package/lib/floatbutton/FloatButton.vue.cjs +1 -1
- package/lib/floatbutton/FloatButton.vue2.cjs +10 -10
- package/lib/gradienttext/GradientText.css +1 -1
- package/lib/gradienttext/GradientText.vue.cjs +1 -1
- package/lib/gradienttext/GradientText.vue2.cjs +1 -1
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/image/index.d.ts +3 -3
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input/Input.vue2.cjs +6 -6
- package/lib/inputnumber/InputNumber.css +1 -1
- package/lib/inputnumber/InputNumber.vue.cjs +1 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +7 -7
- package/lib/inputsearch/InputSearch.css +1 -1
- package/lib/inputsearch/InputSearch.vue.cjs +1 -1
- package/lib/inputsearch/InputSearch.vue2.cjs +6 -6
- package/lib/loadingbar/LoadingBar.css +1 -1
- package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
- package/lib/loadingbar/LoadingBar.vue2.cjs +6 -1
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +3 -3
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/modal/Modal.vue2.cjs +3 -3
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +3 -3
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +3 -3
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +10 -10
- package/lib/radio/Radio.css +1 -1
- package/lib/radio/Radio.vue.cjs +1 -1
- package/lib/radio/Radio.vue2.cjs +4 -1
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +8 -8
- package/lib/slider/Slider.css +1 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +7 -7
- package/lib/spin/Spin.css +1 -1
- package/lib/spin/Spin.vue.cjs +1 -1
- package/lib/spin/Spin.vue2.cjs +8 -2
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +6 -6
- package/lib/swiper/Swiper.css +1 -1
- package/lib/swiper/Swiper.vue.cjs +1 -1
- package/lib/swiper/Swiper.vue2.cjs +13 -13
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +5 -5
- package/lib/tabs/Tabs.css +1 -1
- package/lib/tabs/Tabs.vue.cjs +1 -1
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/textarea/Textarea.css +1 -1
- package/lib/textarea/Textarea.vue.cjs +1 -1
- package/lib/textarea/Textarea.vue2.cjs +6 -6
- package/lib/textscroll/TextScroll.css +1 -1
- package/lib/textscroll/TextScroll.vue.cjs +1 -1
- package/lib/textscroll/TextScroll.vue2.cjs +6 -6
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.d.ts +6 -6
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/lib/upload/index.d.ts +3 -3
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +4 -0
- package/lib/utils/resolver.cjs +1 -1
- package/package.json +8 -7
- package/dist/amazing-icon.svg +0 -24
- package/dist/favicon.ico +0 -0
- package/es/amazing-icon.svg +0 -24
- package/es/favicon.ico +0 -0
- package/lib/amazing-icon.svg +0 -24
- 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">
|
|
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.
|
|
20
|
-
- Currently, it includes `
|
|
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`
|
|
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 | 颜色选择器 |
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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 | Ref[] | HTMLElement | 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 | string[] = 'default') => Reactive | 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"
|
|
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.
|
|
20
|
-
- 目前共包含 `
|
|
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
|
|
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 | 颜色选择器 |
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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 | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options = {}) => object
|
|
286
288
|
useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | (slotsName: string | string[] = 'default') => Reactive | Ref\<boolean>
|
|
289
|
+
useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref<string[]>; shadowColor: Ref<string> }
|