vue-amazing-ui 2.6.2 → 2.7.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 +3 -1
- package/README.zh-CN.md +3 -1
- package/dist/index.iife.js +88 -95
- package/dist/index.js +8880 -7965
- package/dist/index.umd.cjs +114 -121
- package/dist/style.css +1 -1
- package/es/alert/index.d.ts +1 -1
- package/es/auto-complete/index.d.ts +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/back-top/BackTop.css +1 -1
- package/es/back-top/BackTop.d.ts +3 -2
- package/es/back-top/BackTop.vue.js +2 -2
- package/es/back-top/index.d.ts +4 -4
- package/es/badge/index.d.ts +1 -1
- package/es/breadcrumb/index.d.ts +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.d.ts +8 -6
- package/es/calendar/Calendar.vue.js +4 -4
- package/es/calendar/index.d.ts +10 -10
- package/es/card/Card.css +1 -1
- package/es/card/Card.d.ts +3 -2
- package/es/card/Card.vue.js +2 -2
- package/es/card/index.d.ts +4 -4
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.d.ts +3 -2
- package/es/carousel/Carousel.vue.js +1 -1
- package/es/carousel/index.d.ts +4 -4
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +5 -4
- package/es/cascader/Cascader.vue.js +4 -4
- package/es/cascader/index.d.ts +7 -7
- package/es/checkbox/index.d.ts +1 -1
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.d.ts +8 -7
- package/es/collapse/Collapse.vue.js +2 -2
- package/es/collapse/index.d.ts +8 -8
- package/es/color-picker/ColorPicker.css +1 -1
- package/es/color-picker/ColorPicker.d.ts +7 -6
- package/es/color-picker/ColorPicker.vue.js +1 -1
- package/es/color-picker/index.d.ts +4 -4
- package/es/components.d.ts +73 -71
- package/es/components.js +139 -125
- package/es/config-provider/index.d.ts +1 -1
- package/es/config-provider/index.js +4 -4
- package/es/countdown/index.d.ts +1 -1
- package/es/date-picker/index.d.ts +1 -1
- package/es/descriptions/index.d.ts +1 -1
- package/es/dialog/Dialog.css +1 -1
- package/es/dialog/Dialog.d.ts +138 -31
- package/es/dialog/Dialog.vue.js +1 -1
- package/es/dialog/Dialog.vue2.js +596 -291
- package/es/dialog/DialogProvider.d.ts +17 -0
- package/es/dialog/DialogProvider.vue.js +27 -0
- package/es/dialog/DialogProvider.vue2.js +4 -0
- package/es/dialog/index.d.ts +126 -44
- package/es/dialog/index.js +6 -4
- package/es/dialog/useDialog.d.ts +8 -0
- package/es/dialog/useDialog.js +12 -0
- package/es/discrete/createDiscreteApi.d.ts +25 -0
- package/es/discrete/createDiscreteApi.js +74 -0
- package/es/discrete/index.d.ts +2 -0
- package/es/divider/index.d.ts +1 -1
- package/es/drawer/Drawer.css +1 -1
- package/es/drawer/Drawer.d.ts +3 -2
- package/es/drawer/Drawer.vue.js +1 -1
- package/es/drawer/Drawer.vue2.js +61 -56
- package/es/drawer/index.d.ts +4 -4
- package/es/ellipsis/Ellipsis.d.ts +4 -4
- package/es/ellipsis/index.d.ts +1 -1
- package/es/empty/index.d.ts +1 -1
- package/es/flex/index.d.ts +1 -1
- package/es/float-button/FloatButton.css +1 -1
- package/es/float-button/FloatButton.d.ts +6 -4
- package/es/float-button/FloatButton.vue.js +2 -2
- package/es/float-button/index.d.ts +7 -7
- package/es/gradient-text/index.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/highlight/index.d.ts +1 -1
- package/es/image/Image.css +1 -1
- package/es/image/Image.d.ts +9 -7
- package/es/image/Image.vue.js +2 -2
- package/es/image/index.d.ts +13 -13
- package/es/index.d.ts +1 -1
- package/es/index.js +187 -171
- package/es/input/index.d.ts +1 -1
- package/es/input-number/index.d.ts +1 -1
- package/es/input-search/InputSearch.css +1 -1
- package/es/input-search/InputSearch.d.ts +3 -2
- package/es/input-search/InputSearch.vue.js +2 -2
- package/es/input-search/index.d.ts +4 -4
- package/es/list/list/List.css +1 -1
- package/es/list/list/List.d.ts +9 -6
- package/es/list/list/List.vue.js +1 -1
- package/es/list/list/index.d.ts +9 -9
- package/es/list/list-item/ListItem.css +1 -1
- package/es/list/list-item/ListItem.d.ts +3 -2
- package/es/list/list-item/ListItem.vue.js +2 -2
- package/es/list/list-item/index.d.ts +3 -3
- package/es/loading-bar/index.d.ts +1 -1
- package/es/message/Message.css +1 -1
- package/es/message/Message.d.ts +32 -30
- package/es/message/Message.vue.js +3 -3
- package/es/message/Message.vue2.js +144 -141
- package/es/message/MessageProvider.d.ts +17 -0
- package/es/message/MessageProvider.vue.js +32 -0
- package/es/message/MessageProvider.vue2.js +4 -0
- package/es/message/index.d.ts +51 -42
- package/es/message/index.js +5 -3
- package/es/message/useMessage.d.ts +13 -0
- package/es/message/useMessage.js +12 -0
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.d.ts +134 -49
- package/es/modal/Modal.vue.js +2 -2
- package/es/modal/Modal.vue2.js +581 -346
- package/es/modal/ModalProvider.d.ts +17 -0
- package/es/modal/ModalProvider.vue.js +33 -0
- package/es/modal/ModalProvider.vue2.js +4 -0
- package/es/modal/ModalRenderHost.d.ts +11 -0
- package/es/modal/ModalRenderHost.js +16 -0
- package/es/modal/index.d.ts +136 -57
- package/es/modal/index.js +6 -4
- package/es/modal/useModal.d.ts +14 -0
- package/es/modal/useModal.js +12 -0
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.d.ts +41 -27
- package/es/notification/Notification.vue.js +2 -2
- package/es/notification/Notification.vue2.js +294 -154
- package/es/notification/NotificationProvider.d.ts +17 -0
- package/es/notification/NotificationProvider.vue.js +32 -0
- package/es/notification/NotificationProvider.vue2.js +4 -0
- package/es/notification/index.d.ts +51 -36
- package/es/notification/index.js +4 -2
- package/es/notification/useNotification.d.ts +13 -0
- package/es/notification/useNotification.js +14 -0
- package/es/number-animation/index.d.ts +1 -1
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.d.ts +6 -4
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/index.d.ts +7 -7
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.d.ts +10 -9
- package/es/popconfirm/Popconfirm.vue.js +3 -3
- package/es/popconfirm/index.d.ts +10 -10
- package/es/popover/index.d.ts +1 -1
- package/es/progress/index.d.ts +1 -1
- package/es/qr-code/index.d.ts +1 -1
- package/es/radio/index.d.ts +1 -1
- package/es/rate/Rate.css +1 -1
- package/es/rate/Rate.d.ts +3 -2
- package/es/rate/Rate.vue.js +2 -2
- package/es/rate/index.d.ts +4 -4
- package/es/result/index.d.ts +1 -1
- package/es/scrollbar/index.d.ts +1 -1
- package/es/segmented/index.d.ts +1 -1
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +5 -4
- package/es/select/Select.vue.js +1 -1
- package/es/select/index.d.ts +7 -7
- package/es/skeleton/index.d.ts +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/spin/index.d.ts +1 -1
- package/es/statistic/Statistic.css +1 -1
- package/es/statistic/Statistic.d.ts +2 -2
- package/es/statistic/Statistic.vue.js +2 -2
- package/es/statistic/index.d.ts +4 -4
- package/es/steps/index.d.ts +1 -1
- package/es/swiper/index.d.ts +1 -1
- package/es/switch/index.d.ts +1 -1
- package/es/table/Table.css +1 -1
- package/es/table/Table.d.ts +51 -125
- package/es/table/Table.vue.js +3 -3
- package/es/table/Table.vue2.js +378 -367
- package/es/table/index.d.ts +4 -768
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.css +1 -1
- package/es/tag/Tag.d.ts +3 -2
- package/es/tag/Tag.vue.js +1 -1
- package/es/tag/index.d.ts +4 -4
- package/es/text-scroll/TextScroll.css +1 -1
- package/es/text-scroll/TextScroll.d.ts +3 -2
- package/es/text-scroll/TextScroll.vue.js +2 -2
- package/es/text-scroll/index.d.ts +4 -4
- package/es/textarea/index.d.ts +1 -1
- package/es/timeline/index.d.ts +1 -1
- package/es/tooltip/index.d.ts +1 -1
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.d.ts +51 -141
- package/es/upload/Upload.vue.js +3 -3
- package/es/upload/Upload.vue2.js +110 -139
- package/es/upload/index.d.ts +44 -97
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.js +59 -44
- package/es/utils/resolver.d.ts +1 -1
- package/es/utils/resolver.js +39 -23
- package/es/video/index.d.ts +1 -1
- package/es/waterfall/Waterfall.css +1 -1
- package/es/waterfall/Waterfall.d.ts +3 -2
- package/es/waterfall/Waterfall.vue.js +2 -2
- package/es/waterfall/index.d.ts +4 -4
- package/es/watermark/index.d.ts +1 -1
- package/lib/alert/index.d.ts +1 -1
- package/lib/auto-complete/index.d.ts +1 -1
- package/lib/avatar/index.d.ts +1 -1
- package/lib/back-top/BackTop.css +1 -1
- package/lib/back-top/BackTop.d.ts +3 -2
- package/lib/back-top/BackTop.vue.cjs +1 -1
- package/lib/back-top/index.d.ts +4 -4
- package/lib/badge/index.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.d.ts +8 -6
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/index.d.ts +10 -10
- package/lib/card/Card.css +1 -1
- package/lib/card/Card.d.ts +3 -2
- package/lib/card/Card.vue.cjs +1 -1
- package/lib/card/index.d.ts +4 -4
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.d.ts +3 -2
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/index.d.ts +4 -4
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +5 -4
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/index.d.ts +7 -7
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.d.ts +8 -7
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/collapse/index.d.ts +8 -8
- package/lib/color-picker/ColorPicker.css +1 -1
- package/lib/color-picker/ColorPicker.d.ts +7 -6
- package/lib/color-picker/ColorPicker.vue.cjs +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +73 -71
- package/lib/config-provider/index.cjs +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/countdown/index.d.ts +1 -1
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/descriptions/index.d.ts +1 -1
- package/lib/dialog/Dialog.css +1 -1
- package/lib/dialog/Dialog.d.ts +138 -31
- package/lib/dialog/Dialog.vue.cjs +1 -1
- package/lib/dialog/Dialog.vue2.cjs +1 -1
- package/lib/dialog/DialogProvider.d.ts +17 -0
- package/lib/dialog/DialogProvider.vue.cjs +1 -0
- package/lib/dialog/DialogProvider.vue2.cjs +1 -0
- package/lib/dialog/index.cjs +1 -1
- package/lib/dialog/index.d.ts +126 -44
- package/lib/dialog/useDialog.cjs +1 -0
- package/lib/dialog/useDialog.d.ts +8 -0
- package/lib/discrete/createDiscreteApi.cjs +1 -0
- package/lib/discrete/createDiscreteApi.d.ts +25 -0
- package/lib/discrete/index.d.ts +2 -0
- package/lib/divider/index.d.ts +1 -1
- package/lib/drawer/Drawer.css +1 -1
- package/lib/drawer/Drawer.d.ts +3 -2
- package/lib/drawer/Drawer.vue.cjs +1 -1
- package/lib/drawer/Drawer.vue2.cjs +1 -1
- package/lib/drawer/index.d.ts +4 -4
- package/lib/ellipsis/Ellipsis.d.ts +4 -4
- package/lib/ellipsis/index.d.ts +1 -1
- package/lib/empty/index.d.ts +1 -1
- package/lib/flex/index.d.ts +1 -1
- package/lib/float-button/FloatButton.css +1 -1
- package/lib/float-button/FloatButton.d.ts +6 -4
- package/lib/float-button/FloatButton.vue.cjs +1 -1
- package/lib/float-button/index.d.ts +7 -7
- package/lib/gradient-text/index.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/highlight/index.d.ts +1 -1
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.d.ts +9 -7
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/index.d.ts +13 -13
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/input/index.d.ts +1 -1
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-search/InputSearch.css +1 -1
- package/lib/input-search/InputSearch.d.ts +3 -2
- package/lib/input-search/InputSearch.vue.cjs +1 -1
- package/lib/input-search/index.d.ts +4 -4
- package/lib/list/list/List.css +1 -1
- package/lib/list/list/List.d.ts +9 -6
- package/lib/list/list/List.vue.cjs +1 -1
- package/lib/list/list/index.d.ts +9 -9
- package/lib/list/list-item/ListItem.css +1 -1
- package/lib/list/list-item/ListItem.d.ts +3 -2
- package/lib/list/list-item/ListItem.vue.cjs +1 -1
- package/lib/list/list-item/index.d.ts +3 -3
- package/lib/loading-bar/index.d.ts +1 -1
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.d.ts +32 -30
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +4 -4
- package/lib/message/MessageProvider.d.ts +17 -0
- package/lib/message/MessageProvider.vue.cjs +1 -0
- package/lib/message/MessageProvider.vue2.cjs +1 -0
- package/lib/message/index.cjs +1 -1
- package/lib/message/index.d.ts +51 -42
- package/lib/message/useMessage.cjs +1 -0
- package/lib/message/useMessage.d.ts +13 -0
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.d.ts +134 -49
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/modal/Modal.vue2.cjs +1 -8
- package/lib/modal/ModalProvider.d.ts +17 -0
- package/lib/modal/ModalProvider.vue.cjs +1 -0
- package/lib/modal/ModalProvider.vue2.cjs +1 -0
- package/lib/modal/ModalRenderHost.cjs +1 -0
- package/lib/modal/ModalRenderHost.d.ts +11 -0
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.d.ts +136 -57
- package/lib/modal/useModal.cjs +1 -0
- package/lib/modal/useModal.d.ts +14 -0
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.d.ts +41 -27
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +3 -3
- package/lib/notification/NotificationProvider.d.ts +17 -0
- package/lib/notification/NotificationProvider.vue.cjs +1 -0
- package/lib/notification/NotificationProvider.vue2.cjs +1 -0
- package/lib/notification/index.cjs +1 -1
- package/lib/notification/index.d.ts +51 -36
- package/lib/notification/useNotification.cjs +1 -0
- package/lib/notification/useNotification.d.ts +13 -0
- package/lib/number-animation/index.d.ts +1 -1
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.d.ts +6 -4
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/index.d.ts +7 -7
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.d.ts +10 -9
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/index.d.ts +10 -10
- package/lib/popover/index.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/qr-code/index.d.ts +1 -1
- package/lib/radio/index.d.ts +1 -1
- package/lib/rate/Rate.css +1 -1
- package/lib/rate/Rate.d.ts +3 -2
- package/lib/rate/Rate.vue.cjs +1 -1
- package/lib/rate/index.d.ts +4 -4
- package/lib/result/index.d.ts +1 -1
- package/lib/scrollbar/index.d.ts +1 -1
- package/lib/segmented/index.d.ts +1 -1
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +5 -4
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/index.d.ts +7 -7
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/spin/index.d.ts +1 -1
- package/lib/statistic/Statistic.css +1 -1
- package/lib/statistic/Statistic.d.ts +2 -2
- package/lib/statistic/Statistic.vue.cjs +1 -1
- package/lib/statistic/index.d.ts +4 -4
- package/lib/steps/index.d.ts +1 -1
- package/lib/swiper/index.d.ts +1 -1
- package/lib/switch/index.d.ts +1 -1
- package/lib/table/Table.css +1 -1
- package/lib/table/Table.d.ts +51 -125
- package/lib/table/Table.vue.cjs +1 -1
- package/lib/table/Table.vue2.cjs +1 -1
- package/lib/table/index.d.ts +4 -768
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.css +1 -1
- package/lib/tag/Tag.d.ts +3 -2
- package/lib/tag/Tag.vue.cjs +1 -1
- package/lib/tag/index.d.ts +4 -4
- package/lib/text-scroll/TextScroll.css +1 -1
- package/lib/text-scroll/TextScroll.d.ts +3 -2
- package/lib/text-scroll/TextScroll.vue.cjs +1 -1
- package/lib/text-scroll/index.d.ts +4 -4
- package/lib/textarea/index.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.d.ts +51 -141
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/lib/upload/index.d.ts +44 -97
- package/lib/utils/dom.cjs +1 -1
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/resolver.cjs +1 -1
- package/lib/utils/resolver.d.ts +1 -1
- package/lib/video/index.d.ts +1 -1
- package/lib/waterfall/Waterfall.css +1 -1
- package/lib/waterfall/Waterfall.d.ts +3 -2
- package/lib/waterfall/Waterfall.vue.cjs +1 -1
- package/lib/waterfall/index.d.ts +4 -4
- package/lib/watermark/index.d.ts +1 -1
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## Features
|
|
18
18
|
|
|
19
19
|
- The component library is implemented with `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1`.
|
|
20
|
-
- Currently, it includes `68` basic UI components and `
|
|
20
|
+
- Currently, it includes `68` basic UI components and `24` 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.
|
|
@@ -184,6 +184,7 @@ import {
|
|
|
184
184
|
getColorPalettes,
|
|
185
185
|
getAlphaColor,
|
|
186
186
|
getScrollParent,
|
|
187
|
+
lockScroll,
|
|
187
188
|
useScrollParent,
|
|
188
189
|
useFloatingPosition
|
|
189
190
|
} from 'vue-amazing-ui'
|
|
@@ -298,5 +299,6 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
298
299
|
| getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
|
|
299
300
|
| getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
300
301
|
| getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement | null) => HTMLElement | null |
|
|
302
|
+
| lockScroll | Function to lock page scrolling and compensate the scrollbar width to prevent horizontal jitter | () => () => void |
|
|
301
303
|
| useScrollParent | Composable to query and watch the nearest scrollable parent element and respond to viewport `resize` | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options: object = {}) => { scrollTarget: Ref\<HTMLElement | null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
|
|
302
304
|
| useFloatingPosition | Composable that provides a unified measurement skeleton for floating components | (contentRef: Ref\<HTMLElement | null>, panelRef: Ref\<HTMLElement | null>) => { positionedContainerRect: Ref\<DOMRect | undefined>, contentRect: Ref\<DOMRect | undefined>, measure: \() => Promise\<void> } |
|
package/README.zh-CN.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## 特性
|
|
18
18
|
|
|
19
19
|
- 组件库采用 `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1` 实现
|
|
20
|
-
- 目前共包含 `68` 个基础 `UI` 组件以及 `
|
|
20
|
+
- 目前共包含 `68` 个基础 `UI` 组件以及 `24` 个工具函数,并且持续探索更新中...
|
|
21
21
|
- 主题可调,你只需提供一个主题色,剩下的都交给我
|
|
22
22
|
- 顺便一提,它们全都可以 `treeshaking`
|
|
23
23
|
- `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
|
|
@@ -184,6 +184,7 @@ import {
|
|
|
184
184
|
getColorPalettes,
|
|
185
185
|
getAlphaColor,
|
|
186
186
|
getScrollParent,
|
|
187
|
+
lockScroll,
|
|
187
188
|
useScrollParent,
|
|
188
189
|
useFloatingPosition
|
|
189
190
|
} from 'vue-amazing-ui'
|
|
@@ -298,5 +299,6 @@ pnpm docs:dev
|
|
|
298
299
|
| getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
|
|
299
300
|
| getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
300
301
|
| getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement | null) => HTMLElement | null |
|
|
302
|
+
| lockScroll | 锁定页面滚动并补偿滚动条宽度,防止页面横向抖动函数 | () => () => void |
|
|
301
303
|
| useScrollParent | 查询并监听最近可滚动父元素,响应视口 `resize` 的组合式函数 | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options: object = {}) => { scrollTarget: Ref\<HTMLElement | null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
|
|
302
304
|
| useFloatingPosition | 为弹出类组件提供统一测量骨架的组合式函数 | (contentRef: Ref\<HTMLElement | null>, panelRef: Ref\<HTMLElement | null>) => { positionedContainerRect: Ref\<DOMRect | undefined>, contentRect: Ref\<DOMRect | undefined>, measure: \() => Promise\<void> } |
|