vue-amazing-ui 2.9.0 → 2.10.0
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 +37 -43
- package/README.zh-CN.md +37 -43
- package/dist/index.iife.js +49 -49
- package/dist/index.js +4165 -4166
- package/dist/index.umd.cjs +70 -70
- package/dist/style.css +1 -1
- package/es/alert/style/index.d.ts +1 -0
- package/es/alert/style/index.js +2 -0
- package/es/auto-complete/style/index.d.ts +1 -0
- package/es/auto-complete/style/index.js +3 -0
- package/es/avatar/style/index.d.ts +1 -0
- package/es/avatar/style/index.js +2 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.js +4 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/style/index.js +2 -0
- package/es/breadcrumb/style/index.d.ts +1 -0
- package/es/breadcrumb/style/index.js +2 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/style/index.js +2 -0
- package/es/calendar/style/index.d.ts +1 -0
- package/es/calendar/style/index.js +6 -0
- package/es/card/style/index.d.ts +1 -0
- package/es/card/style/index.js +3 -0
- package/es/carousel/style/index.d.ts +1 -0
- package/es/carousel/style/index.js +3 -0
- package/es/cascader/style/index.d.ts +1 -0
- package/es/cascader/style/index.js +5 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/style/index.js +2 -0
- package/es/collapse/style/index.d.ts +1 -0
- package/es/collapse/style/index.js +3 -0
- package/es/color-picker/style/index.d.ts +1 -0
- package/es/color-picker/style/index.js +6 -0
- package/es/comment/Comment.css +1 -0
- package/es/comment/Comment.d.ts +37 -0
- package/es/comment/Comment.vue.js +7 -0
- package/es/comment/Comment.vue2.js +79 -0
- package/es/comment/index.d.ts +35 -0
- package/es/comment/index.js +6 -0
- package/es/comment/style/index.d.ts +1 -0
- package/es/comment/style/index.js +2 -0
- package/es/components.d.ts +2 -0
- package/es/components.js +132 -130
- package/es/countdown/style/index.d.ts +1 -0
- package/es/countdown/style/index.js +2 -0
- package/es/date-picker/style/index.d.ts +1 -0
- package/es/date-picker/style/index.js +3 -0
- package/es/descriptions/descriptions/style/index.d.ts +1 -0
- package/es/descriptions/descriptions/style/index.js +2 -0
- package/es/dialog/style/index.d.ts +1 -0
- package/es/dialog/style/index.js +4 -0
- package/es/divider/style/index.d.ts +1 -0
- package/es/divider/style/index.js +2 -0
- package/es/drawer/style/index.d.ts +1 -0
- package/es/drawer/style/index.js +3 -0
- package/es/ellipsis/style/index.d.ts +1 -0
- package/es/ellipsis/style/index.js +4 -0
- package/es/empty/style/index.d.ts +1 -0
- package/es/empty/style/index.js +2 -0
- package/es/flex/style/index.d.ts +1 -0
- package/es/flex/style/index.js +2 -0
- package/es/float-button/style/index.d.ts +1 -0
- package/es/float-button/style/index.js +5 -0
- package/es/gradient-text/style/index.d.ts +1 -0
- package/es/gradient-text/style/index.js +2 -0
- package/es/grid/col/style/index.d.ts +1 -0
- package/es/grid/col/style/index.js +2 -0
- package/es/grid/row/style/index.d.ts +1 -0
- package/es/grid/row/style/index.js +2 -0
- package/es/image/style/index.d.ts +1 -0
- package/es/image/style/index.js +4 -0
- package/es/index.js +130 -128
- package/es/input/style/index.d.ts +1 -0
- package/es/input/style/index.js +2 -0
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-search/style/index.d.ts +1 -0
- package/es/input-search/style/index.js +3 -0
- package/es/list/list/style/index.d.ts +1 -0
- package/es/list/list/style/index.js +8 -0
- package/es/list/list-item/style/index.d.ts +1 -0
- package/es/list/list-item/style/index.js +3 -0
- package/es/loading-bar/style/index.d.ts +1 -0
- package/es/loading-bar/style/index.js +2 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/message/style/index.js +2 -0
- package/es/modal/style/index.d.ts +1 -0
- package/es/modal/style/index.js +4 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/style/index.js +3 -0
- package/es/pagination/style/index.d.ts +1 -0
- package/es/pagination/style/index.js +6 -0
- package/es/popconfirm/style/index.d.ts +1 -0
- package/es/popconfirm/style/index.js +5 -0
- package/es/popover/style/index.d.ts +1 -0
- package/es/popover/style/index.js +4 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/style/index.js +2 -0
- package/es/progress/style/index.d.ts +1 -0
- package/es/progress/style/index.js +2 -0
- package/es/qr-code/style/index.d.ts +1 -0
- package/es/qr-code/style/index.js +2 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.js +2 -0
- package/es/rate/style/index.d.ts +1 -0
- package/es/rate/style/index.js +4 -0
- package/es/result/style/index.d.ts +1 -0
- package/es/result/style/index.js +2 -0
- package/es/scrollbar/style/index.d.ts +1 -0
- package/es/scrollbar/style/index.js +2 -0
- package/es/segmented/style/index.d.ts +1 -0
- package/es/segmented/style/index.js +2 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/select/style/index.js +4 -0
- package/es/skeleton/style/index.d.ts +1 -0
- package/es/skeleton/style/index.js +2 -0
- package/es/slider/style/index.d.ts +1 -0
- package/es/slider/style/index.js +2 -0
- package/es/space/style/index.d.ts +1 -0
- package/es/space/style/index.js +2 -0
- package/es/spin/style/index.d.ts +1 -0
- package/es/spin/style/index.js +2 -0
- package/es/statistic/style/index.d.ts +1 -0
- package/es/statistic/style/index.js +2 -0
- package/es/steps/style/index.d.ts +1 -0
- package/es/steps/style/index.js +2 -0
- package/es/swiper/style/index.d.ts +1 -0
- package/es/swiper/style/index.js +10 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/style/index.js +2 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.js +13 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/tabs/style/index.js +2 -0
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/style/index.js +3 -0
- package/es/text-scroll/style/index.d.ts +1 -0
- package/es/text-scroll/style/index.js +5 -0
- package/es/textarea/style/index.d.ts +1 -0
- package/es/textarea/style/index.js +2 -0
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.js +2 -0
- package/es/tooltip/style/index.d.ts +1 -0
- package/es/tooltip/style/index.js +3 -0
- package/es/upload/style/index.d.ts +1 -0
- package/es/upload/style/index.js +5 -0
- package/es/utils/resolver.d.ts +1 -1
- package/es/utils/resolver.js +10 -152
- package/es/utils/style-deps.d.ts +86 -0
- package/es/utils/style-deps.js +96 -0
- package/es/video/style/index.d.ts +1 -0
- package/es/video/style/index.js +2 -0
- package/es/waterfall/style/index.d.ts +1 -0
- package/es/waterfall/style/index.js +3 -0
- package/lib/alert/style/index.cjs +2 -0
- package/lib/alert/style/index.d.ts +1 -0
- package/lib/auto-complete/style/index.cjs +3 -0
- package/lib/auto-complete/style/index.d.ts +1 -0
- package/lib/avatar/style/index.cjs +2 -0
- package/lib/avatar/style/index.d.ts +1 -0
- package/lib/back-top/style/index.cjs +4 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/badge/style/index.cjs +2 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/breadcrumb/style/index.cjs +2 -0
- package/lib/breadcrumb/style/index.d.ts +1 -0
- package/lib/button/style/index.cjs +2 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/calendar/style/index.cjs +6 -0
- package/lib/calendar/style/index.d.ts +1 -0
- package/lib/card/style/index.cjs +3 -0
- package/lib/card/style/index.d.ts +1 -0
- package/lib/carousel/style/index.cjs +3 -0
- package/lib/carousel/style/index.d.ts +1 -0
- package/lib/cascader/style/index.cjs +5 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.cjs +2 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/collapse/style/index.cjs +3 -0
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/color-picker/style/index.cjs +6 -0
- package/lib/color-picker/style/index.d.ts +1 -0
- package/lib/comment/Comment.css +1 -0
- package/lib/comment/Comment.d.ts +37 -0
- package/lib/comment/Comment.vue.cjs +1 -0
- package/lib/comment/Comment.vue2.cjs +1 -0
- package/lib/comment/index.cjs +1 -0
- package/lib/comment/index.d.ts +35 -0
- package/lib/comment/style/index.cjs +2 -0
- package/lib/comment/style/index.d.ts +1 -0
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/countdown/style/index.cjs +2 -0
- package/lib/countdown/style/index.d.ts +1 -0
- package/lib/date-picker/style/index.cjs +3 -0
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/descriptions/descriptions/style/index.cjs +2 -0
- package/lib/descriptions/descriptions/style/index.d.ts +1 -0
- package/lib/dialog/style/index.cjs +4 -0
- package/lib/dialog/style/index.d.ts +1 -0
- package/lib/divider/style/index.cjs +2 -0
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/drawer/style/index.cjs +3 -0
- package/lib/drawer/style/index.d.ts +1 -0
- package/lib/ellipsis/style/index.cjs +4 -0
- package/lib/ellipsis/style/index.d.ts +1 -0
- package/lib/empty/style/index.cjs +2 -0
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/flex/style/index.cjs +2 -0
- package/lib/flex/style/index.d.ts +1 -0
- package/lib/float-button/style/index.cjs +5 -0
- package/lib/float-button/style/index.d.ts +1 -0
- package/lib/gradient-text/style/index.cjs +2 -0
- package/lib/gradient-text/style/index.d.ts +1 -0
- package/lib/grid/col/style/index.cjs +2 -0
- package/lib/grid/col/style/index.d.ts +1 -0
- package/lib/grid/row/style/index.cjs +2 -0
- package/lib/grid/row/style/index.d.ts +1 -0
- package/lib/image/style/index.cjs +4 -0
- package/lib/image/style/index.d.ts +1 -0
- package/lib/index.cjs +1 -1
- package/lib/input/style/index.cjs +2 -0
- package/lib/input/style/index.d.ts +1 -0
- package/lib/input-number/style/index.cjs +2 -0
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-search/style/index.cjs +3 -0
- package/lib/input-search/style/index.d.ts +1 -0
- package/lib/list/list/style/index.cjs +8 -0
- package/lib/list/list/style/index.d.ts +1 -0
- package/lib/list/list-item/style/index.cjs +3 -0
- package/lib/list/list-item/style/index.d.ts +1 -0
- package/lib/loading-bar/style/index.cjs +2 -0
- package/lib/loading-bar/style/index.d.ts +1 -0
- package/lib/message/style/index.cjs +2 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/modal/style/index.cjs +4 -0
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/notification/style/index.cjs +3 -0
- package/lib/notification/style/index.d.ts +1 -0
- package/lib/pagination/style/index.cjs +6 -0
- package/lib/pagination/style/index.d.ts +1 -0
- package/lib/popconfirm/style/index.cjs +5 -0
- package/lib/popconfirm/style/index.d.ts +1 -0
- package/lib/popover/style/index.cjs +4 -0
- package/lib/popover/style/index.d.ts +1 -0
- package/lib/popup/style/index.cjs +2 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/progress/style/index.cjs +2 -0
- package/lib/progress/style/index.d.ts +1 -0
- package/lib/qr-code/style/index.cjs +2 -0
- package/lib/qr-code/style/index.d.ts +1 -0
- package/lib/radio/style/index.cjs +2 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/rate/style/index.cjs +4 -0
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/result/style/index.cjs +2 -0
- package/lib/result/style/index.d.ts +1 -0
- package/lib/scrollbar/style/index.cjs +2 -0
- package/lib/scrollbar/style/index.d.ts +1 -0
- package/lib/segmented/style/index.cjs +2 -0
- package/lib/segmented/style/index.d.ts +1 -0
- package/lib/select/style/index.cjs +4 -0
- package/lib/select/style/index.d.ts +1 -0
- package/lib/skeleton/style/index.cjs +2 -0
- package/lib/skeleton/style/index.d.ts +1 -0
- package/lib/slider/style/index.cjs +2 -0
- package/lib/slider/style/index.d.ts +1 -0
- package/lib/space/style/index.cjs +2 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/spin/style/index.cjs +2 -0
- package/lib/spin/style/index.d.ts +1 -0
- package/lib/statistic/style/index.cjs +2 -0
- package/lib/statistic/style/index.d.ts +1 -0
- package/lib/steps/style/index.cjs +2 -0
- package/lib/steps/style/index.d.ts +1 -0
- package/lib/swiper/style/index.cjs +10 -0
- package/lib/swiper/style/index.d.ts +1 -0
- package/lib/switch/style/index.cjs +2 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/table/style/index.cjs +13 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/tabs/style/index.cjs +2 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tag/style/index.cjs +3 -0
- package/lib/tag/style/index.d.ts +1 -0
- package/lib/text-scroll/style/index.cjs +5 -0
- package/lib/text-scroll/style/index.d.ts +1 -0
- package/lib/textarea/style/index.cjs +2 -0
- package/lib/textarea/style/index.d.ts +1 -0
- package/lib/timeline/style/index.cjs +2 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/tooltip/style/index.cjs +3 -0
- package/lib/tooltip/style/index.d.ts +1 -0
- package/lib/upload/style/index.cjs +5 -0
- package/lib/upload/style/index.d.ts +1 -0
- package/lib/utils/resolver.cjs +1 -1
- package/lib/utils/resolver.d.ts +1 -1
- package/lib/utils/style-deps.cjs +1 -0
- package/lib/utils/style-deps.d.ts +86 -0
- package/lib/video/style/index.cjs +2 -0
- package/lib/video/style/index.d.ts +1 -0
- package/lib/waterfall/style/index.cjs +3 -0
- package/lib/waterfall/style/index.d.ts +1 -0
- package/package.json +17 -4
- package/es/utils/vendor-styles.js +0 -30
- 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.
|
|
20
|
-
- Currently, it includes `
|
|
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
|
-
|
|
65
|
-
import 'vue-amazing-ui/es/
|
|
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
|
-
|
|
80
|
-
import 'vue-amazing-ui/es/
|
|
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
|
-
|
|
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
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
|
|
|
263
|
-
|
|
|
264
|
-
|
|
|
265
|
-
|
|
|
266
|
-
|
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
|
|
|
279
|
-
|
|
|
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.
|
|
20
|
-
- 目前共包含 `
|
|
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
|
-
|
|
65
|
-
import 'vue-amazing-ui/es/
|
|
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
|
-
|
|
80
|
-
import 'vue-amazing-ui/es/
|
|
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
|
-
|
|
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
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
|
|
|
263
|
-
|
|
|
264
|
-
|
|
|
265
|
-
|
|
|
266
|
-
|
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
|
|
|
279
|
-
|
|
|
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
|
|