vue-amazing-ui 2.11.0 → 2.12.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 +26 -26
- package/README.zh-CN.md +26 -26
- package/dist/index.iife.js +60 -60
- package/dist/index.js +6555 -6073
- package/dist/index.umd.cjs +64 -64
- package/dist/style.css +1 -1
- package/es/back-top/BackTop.css +1 -1
- package/es/back-top/BackTop.vue.js +2 -2
- package/es/back-top/BackTop.vue2.js +1 -1
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +1 -1
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.vue.js +3 -3
- package/es/collapse/Collapse.vue2.js +1 -1
- package/es/components.d.ts +2 -0
- package/es/components.js +119 -116
- package/es/dialog/Dialog.css +1 -1
- package/es/dialog/Dialog.vue.js +2 -2
- package/es/dialog/DialogProvider.d.ts +5 -3
- package/es/dialog/index.d.ts +1 -3
- package/es/dropdown/Dropdown.css +3 -0
- package/es/dropdown/Dropdown.d.ts +339 -0
- package/es/dropdown/Dropdown.vue.js +8 -0
- package/es/dropdown/Dropdown.vue2.js +194 -0
- package/es/dropdown/DropdownMenu.d.ts +23 -0
- package/es/dropdown/DropdownMenu.js +191 -0
- package/es/dropdown/dropdown-button/DropdownButton.css +1 -0
- package/es/dropdown/dropdown-button/DropdownButton.d.ts +70 -0
- package/es/dropdown/dropdown-button/DropdownButton.vue.js +7 -0
- package/es/dropdown/dropdown-button/DropdownButton.vue2.js +116 -0
- package/es/dropdown/dropdown-button/index.d.ts +93 -0
- package/es/dropdown/dropdown-button/index.js +6 -0
- package/es/dropdown/dropdown-button/style/index.d.ts +1 -0
- package/es/dropdown/dropdown-button/style/index.js +5 -0
- package/es/dropdown/index.d.ts +305 -0
- package/es/dropdown/index.js +8 -0
- package/es/dropdown/style/index.d.ts +1 -0
- package/es/dropdown/style/index.js +3 -0
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +1 -1
- package/es/index.js +125 -122
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input-number/InputNumber.css +1 -1
- package/es/input-number/InputNumber.vue.js +2 -2
- package/es/input-search/InputSearch.css +1 -1
- package/es/input-search/InputSearch.vue.js +1 -1
- package/es/message/MessageProvider.d.ts +5 -3
- package/es/message/index.d.ts +1 -3
- package/es/modal/Modal.vue2.js +3 -3
- package/es/modal/ModalProvider.d.ts +5 -3
- package/es/modal/index.d.ts +1 -3
- package/es/notification/NotificationProvider.d.ts +5 -3
- package/es/notification/index.d.ts +1 -3
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.vue.js +2 -2
- package/es/popup/Popup.css +1 -1
- package/es/popup/Popup.vue.js +2 -2
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +1 -1
- package/es/result/Result.css +1 -1
- package/es/result/Result.vue.js +2 -2
- package/es/result/Result.vue2.js +21 -21
- package/es/select/Select.vue2.js +3 -3
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/tag/Tag.css +1 -1
- package/es/tag/Tag.vue.js +2 -2
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.vue.js +2 -2
- package/es/utils/function.js +2 -2
- package/es/utils/resolver.d.ts +1 -1
- package/es/utils/resolver.js +1 -1
- package/es/utils/style-deps.d.ts +2 -0
- package/es/utils/style-deps.js +2 -0
- package/es/utils/type.js +1 -1
- package/es/utils/z-index.js +1 -1
- package/es/watermark/Watermark.vue.js +1 -1
- package/lib/back-top/BackTop.css +1 -1
- package/lib/back-top/BackTop.vue.cjs +1 -1
- package/lib/back-top/BackTop.vue2.cjs +1 -1
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/collapse/Collapse.vue2.cjs +1 -1
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/dialog/Dialog.css +1 -1
- package/lib/dialog/Dialog.vue.cjs +1 -1
- package/lib/dialog/DialogProvider.d.ts +5 -3
- package/lib/dialog/index.d.ts +1 -3
- package/lib/dropdown/Dropdown.css +3 -0
- package/lib/dropdown/Dropdown.d.ts +339 -0
- package/lib/dropdown/Dropdown.vue.cjs +1 -0
- package/lib/dropdown/Dropdown.vue2.cjs +1 -0
- package/lib/dropdown/DropdownMenu.cjs +1 -0
- package/lib/dropdown/DropdownMenu.d.ts +23 -0
- package/lib/dropdown/dropdown-button/DropdownButton.css +1 -0
- package/lib/dropdown/dropdown-button/DropdownButton.d.ts +70 -0
- package/lib/dropdown/dropdown-button/DropdownButton.vue.cjs +1 -0
- package/lib/dropdown/dropdown-button/DropdownButton.vue2.cjs +1 -0
- package/lib/dropdown/dropdown-button/index.cjs +1 -0
- package/lib/dropdown/dropdown-button/index.d.ts +93 -0
- package/lib/dropdown/dropdown-button/style/index.cjs +5 -0
- package/lib/dropdown/dropdown-button/style/index.d.ts +1 -0
- package/lib/dropdown/index.cjs +1 -0
- package/lib/dropdown/index.d.ts +305 -0
- package/lib/dropdown/style/index.cjs +3 -0
- package/lib/dropdown/style/index.d.ts +1 -0
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input-number/InputNumber.css +1 -1
- package/lib/input-number/InputNumber.vue.cjs +1 -1
- package/lib/input-search/InputSearch.css +1 -1
- package/lib/input-search/InputSearch.vue.cjs +1 -1
- package/lib/message/MessageProvider.d.ts +5 -3
- package/lib/message/index.d.ts +1 -3
- package/lib/modal/ModalProvider.d.ts +5 -3
- package/lib/modal/index.d.ts +1 -3
- package/lib/notification/NotificationProvider.d.ts +5 -3
- package/lib/notification/index.d.ts +1 -3
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/popup/Popup.css +1 -1
- package/lib/popup/Popup.vue.cjs +1 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/result/Result.css +1 -1
- package/lib/result/Result.vue.cjs +1 -1
- package/lib/result/Result.vue2.cjs +1 -1
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/tag/Tag.css +1 -1
- package/lib/tag/Tag.vue.cjs +1 -1
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/utils/function.cjs +1 -1
- package/lib/utils/resolver.d.ts +1 -1
- package/lib/utils/style-deps.cjs +1 -1
- package/lib/utils/style-deps.d.ts +2 -0
- package/lib/utils/type.cjs +1 -1
- package/lib/watermark/Watermark.vue.cjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## Features
|
|
18
18
|
|
|
19
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 `
|
|
20
|
+
- Currently, it includes `70` 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.
|
|
@@ -247,30 +247,30 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
247
247
|
| Countdown | 倒计时 | DatePicker | 日期选择器 |
|
|
248
248
|
| Descriptions | 描述列表 | Dialog | 对话框 |
|
|
249
249
|
| Divider | 分割线 | Drawer | 抽屉 |
|
|
250
|
-
|
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
|
|
|
263
|
-
|
|
|
264
|
-
|
|
|
265
|
-
|
|
|
266
|
-
|
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
250
|
+
| Dropdown | 下拉菜单 | Ellipsis | 文本省略 |
|
|
251
|
+
| Empty | 空状态 | Flex | 弹性布局 |
|
|
252
|
+
| FloatButton | 浮动按钮 | GradientText | 渐变文字 |
|
|
253
|
+
| Grid | 栅格 | Highlight | 高亮文本 |
|
|
254
|
+
| Image | 图片 | Input | 输入框 |
|
|
255
|
+
| InputNumber | 数字输入框 | InputSearch | 搜索框 |
|
|
256
|
+
| List | 列表 | LoadingBar | 加载条 |
|
|
257
|
+
| Message | 全局提示 | Modal | 模态框 |
|
|
258
|
+
| Notification | 通知提醒 | NumberAnimation| 数值动画 |
|
|
259
|
+
| Pagination | 分页 | Popconfirm | 弹出确认 |
|
|
260
|
+
| Popover | 气泡卡片 | Progress | 进度条 |
|
|
261
|
+
| QRCode | 二维码 | Radio | 单选框 |
|
|
262
|
+
| Rate | 评分 | Result | 结果 |
|
|
263
|
+
| Scrollbar | 滚动条 | Segmented | 分段控制器 |
|
|
264
|
+
| Select | 选择器 | Skeleton | 骨架屏 |
|
|
265
|
+
| Slider | 滑动输入条 | Space | 间距 |
|
|
266
|
+
| Spin | 加载中 | Statistic | 统计数值 |
|
|
267
|
+
| Steps | 步骤条 | Swiper | 触摸滑动 |
|
|
268
|
+
| Switch | 开关 | Table | 表格 |
|
|
269
|
+
| Tabs | 标签页 | Tag | 标签 |
|
|
270
|
+
| Textarea | 文本域 | TextScroll | 文字滚动 |
|
|
271
|
+
| Timeline | 时间轴 | Tooltip | 文字提示 |
|
|
272
|
+
| Upload | 上传 | Video | 播放器 |
|
|
273
|
+
| Waterfall | 瀑布流 | Watermark | 水印 |
|
|
274
274
|
|
|
275
275
|
## Functions
|
|
276
276
|
|
|
@@ -297,4 +297,4 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
297
297
|
| getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
298
298
|
| getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement | null) => HTMLElement | null |
|
|
299
299
|
| lockScroll | Function to lock page scrolling and compensate the scrollbar width to prevent horizontal jitter | () => () => void |
|
|
300
|
-
| useScrollParent | Composable to query and watch the nearest scrollable parent element and respond to viewport `resize` | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options:
|
|
300
|
+
| useScrollParent | Composable to query and watch the nearest scrollable parent element and respond to viewport `resize` | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options: ScrollParentOptions = {}) => { scrollTarget: Ref\<HTMLElement | null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
|
package/README.zh-CN.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## 特性
|
|
18
18
|
|
|
19
19
|
- 组件库采用 `Vue@3.5.42`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1` 实现
|
|
20
|
-
- 目前共包含 `
|
|
20
|
+
- 目前共包含 `70` 个基础 `UI` 组件以及 `22` 个工具函数,并且持续探索更新中...
|
|
21
21
|
- 主题可调,你只需提供一个主题色,剩下的都交给我
|
|
22
22
|
- 顺便一提,它们全都可以 `treeshaking`
|
|
23
23
|
- `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
|
|
@@ -247,30 +247,30 @@ pnpm docs:dev
|
|
|
247
247
|
| Countdown | 倒计时 | DatePicker | 日期选择器 |
|
|
248
248
|
| Descriptions | 描述列表 | Dialog | 对话框 |
|
|
249
249
|
| Divider | 分割线 | Drawer | 抽屉 |
|
|
250
|
-
|
|
|
251
|
-
|
|
|
252
|
-
|
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
|
|
|
259
|
-
|
|
|
260
|
-
|
|
|
261
|
-
|
|
|
262
|
-
|
|
|
263
|
-
|
|
|
264
|
-
|
|
|
265
|
-
|
|
|
266
|
-
|
|
|
267
|
-
|
|
|
268
|
-
|
|
|
269
|
-
|
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
250
|
+
| Dropdown | 下拉菜单 | Ellipsis | 文本省略 |
|
|
251
|
+
| Empty | 空状态 | Flex | 弹性布局 |
|
|
252
|
+
| FloatButton | 浮动按钮 | GradientText | 渐变文字 |
|
|
253
|
+
| Grid | 栅格 | Highlight | 高亮文本 |
|
|
254
|
+
| Image | 图片 | Input | 输入框 |
|
|
255
|
+
| InputNumber | 数字输入框 | InputSearch | 搜索框 |
|
|
256
|
+
| List | 列表 | LoadingBar | 加载条 |
|
|
257
|
+
| Message | 全局提示 | Modal | 模态框 |
|
|
258
|
+
| Notification | 通知提醒 | NumberAnimation| 数值动画 |
|
|
259
|
+
| Pagination | 分页 | Popconfirm | 弹出确认 |
|
|
260
|
+
| Popover | 气泡卡片 | Progress | 进度条 |
|
|
261
|
+
| QRCode | 二维码 | Radio | 单选框 |
|
|
262
|
+
| Rate | 评分 | Result | 结果 |
|
|
263
|
+
| Scrollbar | 滚动条 | Segmented | 分段控制器 |
|
|
264
|
+
| Select | 选择器 | Skeleton | 骨架屏 |
|
|
265
|
+
| Slider | 滑动输入条 | Space | 间距 |
|
|
266
|
+
| Spin | 加载中 | Statistic | 统计数值 |
|
|
267
|
+
| Steps | 步骤条 | Swiper | 触摸滑动 |
|
|
268
|
+
| Switch | 开关 | Table | 表格 |
|
|
269
|
+
| Tabs | 标签页 | Tag | 标签 |
|
|
270
|
+
| Textarea | 文本域 | TextScroll | 文字滚动 |
|
|
271
|
+
| Timeline | 时间轴 | Tooltip | 文字提示 |
|
|
272
|
+
| Upload | 上传 | Video | 播放器 |
|
|
273
|
+
| Waterfall | 瀑布流 | Watermark | 水印 |
|
|
274
274
|
|
|
275
275
|
## 工具函数
|
|
276
276
|
|
|
@@ -297,4 +297,4 @@ pnpm docs:dev
|
|
|
297
297
|
| getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
298
298
|
| getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement | null) => HTMLElement | null |
|
|
299
299
|
| lockScroll | 锁定页面滚动并补偿滚动条宽度,防止页面横向抖动函数 | () => () => void |
|
|
300
|
-
| useScrollParent | 查询并监听最近可滚动父元素,响应视口 `resize` 的组合式函数 | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options:
|
|
300
|
+
| useScrollParent | 查询并监听最近可滚动父元素,响应视口 `resize` 的组合式函数 | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options: ScrollParentOptions = {}) => { scrollTarget: Ref\<HTMLElement | null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
|