vue-amazing-ui 2.10.1 → 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 +64 -64
- package/dist/index.js +8548 -7272
- package/dist/index.umd.cjs +60 -60
- package/dist/style.css +1 -1
- package/es/auto-complete/AutoComplete.css +1 -1
- package/es/auto-complete/AutoComplete.vue.js +2 -2
- 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/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +45 -45
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.d.ts +27 -26
- package/es/carousel/Carousel.vue.js +2 -2
- package/es/carousel/index.d.ts +1 -25
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +10 -9
- package/es/cascader/Cascader.vue.js +3 -3
- package/es/cascader/Cascader.vue2.js +83 -73
- package/es/cascader/index.d.ts +12 -18
- 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 +7 -5
- package/es/components.js +138 -141
- package/es/descriptions/Descriptions.css +1 -0
- package/es/descriptions/Descriptions.vue.js +7 -0
- package/es/descriptions/{descriptions/Descriptions.vue2.js → Descriptions.vue2.js} +12 -12
- package/es/descriptions/index.d.ts +92 -4
- package/es/descriptions/index.js +8 -0
- package/es/descriptions/style/index.js +2 -0
- 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 +3 -4
- package/es/dialog/index.js +4 -2
- package/es/discrete/createDiscreteApi.js +31 -36
- package/es/discrete/index.d.ts +2 -1
- package/es/discrete/index.js +5 -0
- 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.js +5 -0
- package/es/dropdown/index.d.ts +305 -0
- package/es/dropdown/index.js +8 -0
- package/es/dropdown/style/index.js +3 -0
- package/es/grid/col/index.js +2 -2
- package/es/grid/index.d.ts +135 -3
- package/es/grid/index.js +7 -0
- package/es/grid/row/index.js +2 -2
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +1 -1
- package/es/index.js +130 -133
- 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/list/List.css +1 -0
- package/es/list/{list/List.d.ts → List.d.ts} +3 -3
- package/es/list/List.vue.js +7 -0
- package/es/list/{list/List.vue2.js → List.vue2.js} +4 -4
- package/es/list/index.d.ts +107 -4
- package/es/list/index.js +8 -0
- package/es/list/list-item/index.js +2 -2
- package/es/list/style/index.js +8 -0
- package/es/loading-bar/index.d.ts +2 -1
- package/es/loading-bar/index.js +6 -4
- package/es/message/MessageProvider.d.ts +5 -3
- package/es/message/index.d.ts +3 -4
- package/es/message/index.js +8 -6
- package/es/modal/Modal.vue2.js +3 -3
- package/es/modal/ModalProvider.d.ts +5 -3
- package/es/modal/index.d.ts +3 -4
- package/es/modal/index.js +5 -3
- package/es/notification/NotificationProvider.d.ts +5 -3
- package/es/notification/index.d.ts +3 -4
- package/es/notification/index.js +7 -5
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.vue.js +2 -2
- package/es/pagination/Pagination.vue2.js +20 -20
- 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.css +1 -1
- package/es/select/Select.d.ts +166 -21
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +1014 -259
- package/es/select/index.d.ts +247 -31
- package/es/select/index.js +7 -3
- package/es/select/select-optgroup/SelectOptGroup.d.ts +23 -0
- package/es/select/select-optgroup/SelectOptGroup.vue.js +13 -0
- package/es/select/select-optgroup/SelectOptGroup.vue2.js +4 -0
- package/es/select/select-optgroup/index.d.ts +7 -0
- package/es/select/select-optgroup/index.js +7 -0
- package/es/select/select-option/SelectOption.d.ts +25 -0
- package/es/select/select-option/SelectOption.vue.js +15 -0
- package/es/select/select-option/SelectOption.vue2.js +4 -0
- package/es/select/select-option/index.d.ts +7 -0
- package/es/select/select-option/index.js +7 -0
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.d.ts +4 -4
- package/es/switch/Switch.vue.js +2 -2
- package/es/switch/Switch.vue2.js +25 -25
- package/es/switch/index.d.ts +8 -8
- 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 +4 -0
- package/es/utils/style-deps.js +18 -12
- 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/auto-complete/AutoComplete.css +1 -1
- package/lib/auto-complete/AutoComplete.vue.cjs +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/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +2 -2
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.d.ts +27 -26
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/index.d.ts +1 -25
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +10 -9
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/Cascader.vue2.cjs +1 -1
- package/lib/cascader/index.d.ts +12 -18
- 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 +7 -5
- package/lib/descriptions/Descriptions.css +1 -0
- package/lib/descriptions/{descriptions/Descriptions.vue.cjs → Descriptions.vue.cjs} +1 -1
- package/lib/descriptions/Descriptions.vue2.cjs +1 -0
- package/lib/descriptions/index.cjs +1 -0
- package/lib/descriptions/index.d.ts +92 -4
- package/lib/descriptions/style/index.cjs +2 -0
- package/lib/descriptions/style/index.d.ts +1 -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.cjs +1 -1
- package/lib/dialog/index.d.ts +3 -4
- package/lib/discrete/createDiscreteApi.cjs +1 -1
- package/lib/discrete/index.cjs +1 -0
- package/lib/discrete/index.d.ts +2 -1
- 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/{descriptions/descriptions → dropdown/dropdown-button}/index.cjs +1 -1
- 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/grid/index.cjs +1 -0
- package/lib/grid/index.d.ts +135 -3
- package/lib/grid/row/index.cjs +1 -1
- 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/list/List.css +1 -0
- package/lib/list/{list/List.d.ts → List.d.ts} +3 -3
- package/lib/list/List.vue.cjs +1 -0
- package/lib/list/List.vue2.cjs +1 -0
- package/lib/list/index.cjs +1 -0
- package/lib/list/index.d.ts +107 -4
- package/lib/list/list-item/index.cjs +1 -1
- package/lib/list/style/index.cjs +8 -0
- package/lib/list/style/index.d.ts +1 -0
- package/lib/loading-bar/index.cjs +1 -1
- package/lib/loading-bar/index.d.ts +2 -1
- package/lib/message/MessageProvider.d.ts +5 -3
- package/lib/message/index.cjs +1 -1
- package/lib/message/index.d.ts +3 -4
- package/lib/modal/ModalProvider.d.ts +5 -3
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.d.ts +3 -4
- package/lib/notification/NotificationProvider.d.ts +5 -3
- package/lib/notification/index.cjs +1 -1
- package/lib/notification/index.d.ts +3 -4
- 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/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/select/Select.css +1 -1
- package/lib/select/Select.d.ts +166 -21
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +7 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.d.ts +247 -31
- package/lib/select/select-optgroup/SelectOptGroup.d.ts +23 -0
- package/lib/select/select-optgroup/SelectOptGroup.vue.cjs +1 -0
- package/lib/select/select-optgroup/SelectOptGroup.vue2.cjs +1 -0
- package/lib/select/select-optgroup/index.cjs +1 -0
- package/lib/select/select-optgroup/index.d.ts +7 -0
- package/lib/select/select-option/SelectOption.d.ts +25 -0
- package/lib/select/select-option/SelectOption.vue.cjs +1 -0
- package/lib/select/select-option/SelectOption.vue2.cjs +1 -0
- package/lib/select/select-option/index.cjs +1 -0
- package/lib/select/select-option/index.d.ts +7 -0
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.d.ts +4 -4
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +2 -2
- package/lib/switch/index.d.ts +8 -8
- 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 +4 -0
- package/lib/utils/type.cjs +1 -1
- package/lib/watermark/Watermark.vue.cjs +1 -1
- package/package.json +2 -2
- package/es/descriptions/descriptions/Descriptions.css +0 -1
- package/es/descriptions/descriptions/Descriptions.vue.js +0 -7
- package/es/descriptions/descriptions/index.d.ts +0 -56
- package/es/descriptions/descriptions/index.js +0 -6
- package/es/descriptions/descriptions/style/index.js +0 -2
- package/es/list/list/List.css +0 -1
- package/es/list/list/List.vue.js +0 -7
- package/es/list/list/index.d.ts +0 -56
- package/es/list/list/index.js +0 -6
- package/es/list/list/style/index.js +0 -8
- package/es/utils/vendor-styles.d.ts +0 -7
- package/lib/descriptions/descriptions/Descriptions.css +0 -1
- package/lib/descriptions/descriptions/Descriptions.vue2.cjs +0 -1
- package/lib/descriptions/descriptions/index.d.ts +0 -56
- package/lib/descriptions/descriptions/style/index.cjs +0 -2
- package/lib/list/list/List.css +0 -1
- package/lib/list/list/List.vue.cjs +0 -1
- package/lib/list/list/List.vue2.cjs +0 -1
- package/lib/list/list/index.cjs +0 -1
- package/lib/list/list/index.d.ts +0 -56
- package/lib/list/list/style/index.cjs +0 -8
- package/lib/utils/vendor-styles.d.ts +0 -7
- /package/es/descriptions/{descriptions/Descriptions.d.ts → Descriptions.d.ts} +0 -0
- /package/es/descriptions/{descriptions/style → style}/index.d.ts +0 -0
- /package/es/{list/list → dropdown/dropdown-button}/style/index.d.ts +0 -0
- /package/{lib/descriptions/descriptions → es/dropdown}/style/index.d.ts +0 -0
- /package/{lib/list → es}/list/style/index.d.ts +0 -0
- /package/lib/descriptions/{descriptions/Descriptions.d.ts → Descriptions.d.ts} +0 -0
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 } |
|