vue-amazing-ui 2.8.1 → 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 +38 -48
- package/README.zh-CN.md +38 -48
- package/dist/index.iife.js +84 -81
- package/dist/index.js +7642 -6970
- package/dist/index.umd.cjs +105 -102
- 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/AutoComplete.css +1 -1
- package/es/auto-complete/AutoComplete.d.ts +7 -3
- package/es/auto-complete/AutoComplete.vue.js +1 -1
- package/es/auto-complete/AutoComplete.vue2.js +302 -315
- package/es/auto-complete/index.d.ts +10 -6
- 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/BackTop.d.ts +1 -1
- package/es/back-top/index.d.ts +3 -3
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.js +4 -0
- package/es/badge/Badge.d.ts +3 -3
- package/es/badge/index.d.ts +9 -9
- 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/Card.d.ts +1 -1
- package/es/card/index.d.ts +3 -3
- package/es/card/style/index.d.ts +1 -0
- package/es/card/style/index.js +3 -0
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +1 -1
- package/es/carousel/style/index.d.ts +1 -0
- package/es/carousel/style/index.js +3 -0
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +4 -4
- package/es/cascader/Cascader.vue.js +3 -3
- package/es/cascader/Cascader.vue2.js +8 -8
- package/es/cascader/index.d.ts +12 -12
- package/es/cascader/style/index.d.ts +1 -0
- package/es/cascader/style/index.js +5 -0
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +3 -3
- 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/ColorPicker.d.ts +292 -22
- package/es/color-picker/index.d.ts +151 -16
- 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/config-provider/ConfigProvider.d.ts +2 -0
- package/es/config-provider/ConfigProvider.vue.js +22 -20
- package/es/config-provider/index.d.ts +3 -0
- package/es/countdown/Countdown.d.ts +1 -1
- package/es/countdown/index.d.ts +3 -3
- package/es/countdown/style/index.d.ts +1 -0
- package/es/countdown/style/index.js +2 -0
- package/es/date-picker/DatePicker.d.ts +1 -1
- package/es/date-picker/index.d.ts +3 -3
- 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/Dialog.css +1 -1
- package/es/dialog/Dialog.d.ts +3 -3
- package/es/dialog/Dialog.vue.js +2 -2
- package/es/dialog/Dialog.vue2.js +280 -266
- package/es/dialog/index.d.ts +9 -9
- 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/Drawer.css +1 -1
- package/es/drawer/Drawer.d.ts +3 -3
- package/es/drawer/Drawer.vue.js +2 -2
- package/es/drawer/Drawer.vue2.js +119 -100
- package/es/drawer/index.d.ts +9 -9
- package/es/drawer/style/index.d.ts +1 -0
- package/es/drawer/style/index.js +3 -0
- package/es/ellipsis/Ellipsis.css +1 -1
- package/es/ellipsis/Ellipsis.d.ts +291 -23
- package/es/ellipsis/Ellipsis.vue.js +2 -2
- package/es/ellipsis/Ellipsis.vue2.js +41 -43
- package/es/ellipsis/index.d.ts +148 -19
- 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/Flex.d.ts +1 -1
- package/es/flex/index.d.ts +3 -3
- package/es/flex/style/index.d.ts +1 -0
- package/es/flex/style/index.js +2 -0
- package/es/float-button/FloatButton.css +1 -1
- package/es/float-button/FloatButton.d.ts +3 -3
- package/es/float-button/FloatButton.vue.js +1 -1
- package/es/float-button/FloatButton.vue2.js +4 -1
- package/es/float-button/index.d.ts +9 -9
- 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/Col.d.ts +1 -1
- package/es/grid/col/index.d.ts +3 -3
- package/es/grid/col/style/index.d.ts +1 -0
- package/es/grid/col/style/index.js +2 -0
- package/es/grid/row/Row.d.ts +1 -1
- package/es/grid/row/index.d.ts +3 -3
- package/es/grid/row/style/index.d.ts +1 -0
- package/es/grid/row/style/index.js +2 -0
- package/es/image/Image.css +1 -1
- package/es/image/Image.d.ts +4 -2
- package/es/image/Image.vue.js +1 -1
- package/es/image/Image.vue2.js +156 -142
- package/es/image/index.d.ts +9 -6
- package/es/image/style/index.d.ts +1 -0
- package/es/image/style/index.js +4 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +154 -155
- package/es/input/Input.d.ts +2 -2
- package/es/input/index.d.ts +6 -6
- package/es/input/style/index.d.ts +1 -0
- package/es/input/style/index.js +2 -0
- package/es/input-number/InputNumber.d.ts +2 -2
- package/es/input-number/index.d.ts +6 -6
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-search/InputSearch.d.ts +2 -2
- package/es/input-search/index.d.ts +6 -6
- 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/LoadingBar.css +1 -1
- package/es/loading-bar/LoadingBar.vue.js +2 -2
- package/es/loading-bar/LoadingBar.vue2.js +53 -43
- package/es/loading-bar/style/index.d.ts +1 -0
- package/es/loading-bar/style/index.js +2 -0
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +67 -54
- package/es/message/style/index.d.ts +1 -0
- package/es/message/style/index.js +2 -0
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.d.ts +3 -3
- package/es/modal/Modal.vue.js +2 -2
- package/es/modal/Modal.vue2.js +227 -214
- package/es/modal/index.d.ts +9 -9
- package/es/modal/style/index.d.ts +1 -0
- package/es/modal/style/index.js +4 -0
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.d.ts +1 -1
- package/es/notification/Notification.vue.js +1 -1
- package/es/notification/Notification.vue2.js +133 -118
- package/es/notification/index.d.ts +3 -3
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/style/index.js +3 -0
- package/es/pagination/Pagination.d.ts +1 -1
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/style/index.d.ts +1 -0
- package/es/pagination/style/index.js +6 -0
- package/es/popconfirm/Popconfirm.d.ts +290 -20
- package/es/popconfirm/index.d.ts +145 -10
- 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/Popup.css +1 -0
- package/es/popup/Popup.d.ts +85 -0
- package/es/popup/Popup.vue.js +7 -0
- package/es/popup/Popup.vue2.js +154 -0
- package/es/popup/index.d.ts +112 -0
- package/es/popup/index.js +6 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/style/index.js +2 -0
- package/es/progress/Progress.d.ts +1 -1
- package/es/progress/index.d.ts +3 -3
- package/es/progress/style/index.d.ts +1 -0
- package/es/progress/style/index.js +2 -0
- package/es/qr-code/QRCode.d.ts +1 -1
- package/es/qr-code/index.d.ts +3 -3
- package/es/qr-code/style/index.d.ts +1 -0
- package/es/qr-code/style/index.js +2 -0
- package/es/radio/Radio.d.ts +1 -1
- package/es/radio/index.d.ts +3 -3
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.js +2 -0
- package/es/rate/Rate.d.ts +1 -1
- package/es/rate/index.d.ts +3 -3
- 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/Segmented.d.ts +1 -1
- package/es/segmented/index.d.ts +3 -3
- package/es/segmented/style/index.d.ts +1 -0
- package/es/segmented/style/index.js +2 -0
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +11 -3
- package/es/select/Select.vue.js +1 -1
- package/es/select/Select.vue2.js +256 -231
- package/es/select/index.d.ts +19 -9
- 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/Slider.css +1 -1
- package/es/slider/Slider.d.ts +6 -1
- package/es/slider/Slider.vue.js +1 -1
- package/es/slider/Slider.vue2.js +244 -187
- package/es/slider/index.d.ts +3 -3
- package/es/slider/style/index.d.ts +1 -0
- package/es/slider/style/index.js +2 -0
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +3 -3
- 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/Statistic.d.ts +1 -1
- package/es/statistic/index.d.ts +3 -3
- 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/Swiper.d.ts +1 -1
- package/es/swiper/index.d.ts +3 -3
- 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/Table.css +1 -1
- package/es/table/Table.d.ts +3 -671
- package/es/table/Table.vue.js +3 -3
- package/es/table/Table.vue2.js +386 -422
- 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/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +3 -3
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/style/index.js +3 -0
- package/es/text-scroll/TextScroll.d.ts +1 -1
- package/es/text-scroll/index.d.ts +3 -3
- package/es/text-scroll/style/index.d.ts +1 -0
- package/es/text-scroll/style/index.js +5 -0
- package/es/textarea/Textarea.d.ts +2 -2
- package/es/textarea/index.d.ts +6 -6
- package/es/textarea/style/index.d.ts +1 -0
- package/es/textarea/style/index.js +2 -0
- package/es/timeline/Timeline.d.ts +1 -1
- package/es/timeline/index.d.ts +3 -3
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.js +2 -0
- package/es/tooltip/Tooltip.css +3 -1
- package/es/tooltip/Tooltip.d.ts +264 -7
- package/es/tooltip/Tooltip.vue.js +3 -2
- package/es/tooltip/Tooltip.vue2.js +174 -249
- package/es/tooltip/index.d.ts +147 -13
- package/es/tooltip/style/index.d.ts +1 -0
- package/es/tooltip/style/index.js +3 -0
- package/es/upload/Upload.d.ts +16 -10
- package/es/upload/index.d.ts +8 -5
- package/es/upload/style/index.d.ts +1 -0
- package/es/upload/style/index.js +5 -0
- package/es/utils/floating-mount.d.ts +6 -0
- package/es/utils/floating-mount.js +22 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/position.d.ts +64 -7
- package/es/utils/position.js +441 -30
- package/es/utils/resolver.d.ts +1 -1
- package/es/utils/resolver.js +12 -140
- package/es/utils/style-deps.d.ts +86 -0
- package/es/utils/style-deps.js +96 -0
- package/es/utils/z-index.d.ts +26 -0
- package/es/utils/z-index.js +58 -0
- package/es/video/Video.d.ts +1 -1
- package/es/video/index.d.ts +3 -3
- 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/es/watermark/Watermark.d.ts +3 -3
- package/es/watermark/index.d.ts +9 -9
- package/lib/alert/style/index.cjs +2 -0
- package/lib/alert/style/index.d.ts +1 -0
- package/lib/auto-complete/AutoComplete.css +1 -1
- package/lib/auto-complete/AutoComplete.d.ts +7 -3
- package/lib/auto-complete/AutoComplete.vue.cjs +1 -1
- package/lib/auto-complete/AutoComplete.vue2.cjs +7 -7
- package/lib/auto-complete/index.d.ts +10 -6
- 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/BackTop.d.ts +1 -1
- package/lib/back-top/index.d.ts +3 -3
- package/lib/back-top/style/index.cjs +4 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/badge/Badge.d.ts +3 -3
- package/lib/badge/index.d.ts +9 -9
- 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/Card.d.ts +1 -1
- package/lib/card/index.d.ts +3 -3
- package/lib/card/style/index.cjs +3 -0
- package/lib/card/style/index.d.ts +1 -0
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/style/index.cjs +3 -0
- package/lib/carousel/style/index.d.ts +1 -0
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +4 -4
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/Cascader.vue2.cjs +1 -1
- package/lib/cascader/index.d.ts +12 -12
- package/lib/cascader/style/index.cjs +5 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +3 -3
- 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/ColorPicker.d.ts +292 -22
- package/lib/color-picker/index.d.ts +151 -16
- 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/config-provider/ConfigProvider.d.ts +2 -0
- package/lib/config-provider/ConfigProvider.vue.cjs +1 -1
- package/lib/config-provider/index.d.ts +3 -0
- package/lib/countdown/Countdown.d.ts +1 -1
- package/lib/countdown/index.d.ts +3 -3
- package/lib/countdown/style/index.cjs +2 -0
- package/lib/countdown/style/index.d.ts +1 -0
- package/lib/date-picker/DatePicker.d.ts +1 -1
- package/lib/date-picker/index.d.ts +3 -3
- 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/Dialog.css +1 -1
- package/lib/dialog/Dialog.d.ts +3 -3
- package/lib/dialog/Dialog.vue.cjs +1 -1
- package/lib/dialog/Dialog.vue2.cjs +1 -1
- package/lib/dialog/index.d.ts +9 -9
- 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/Drawer.css +1 -1
- package/lib/drawer/Drawer.d.ts +3 -3
- package/lib/drawer/Drawer.vue.cjs +1 -1
- package/lib/drawer/Drawer.vue2.cjs +1 -1
- package/lib/drawer/index.d.ts +9 -9
- package/lib/drawer/style/index.cjs +3 -0
- package/lib/drawer/style/index.d.ts +1 -0
- package/lib/ellipsis/Ellipsis.css +1 -1
- package/lib/ellipsis/Ellipsis.d.ts +291 -23
- package/lib/ellipsis/Ellipsis.vue.cjs +1 -1
- package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
- package/lib/ellipsis/index.d.ts +148 -19
- 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/Flex.d.ts +1 -1
- package/lib/flex/index.d.ts +3 -3
- package/lib/flex/style/index.cjs +2 -0
- package/lib/flex/style/index.d.ts +1 -0
- package/lib/float-button/FloatButton.css +1 -1
- package/lib/float-button/FloatButton.d.ts +3 -3
- package/lib/float-button/FloatButton.vue.cjs +1 -1
- package/lib/float-button/FloatButton.vue2.cjs +4 -4
- package/lib/float-button/index.d.ts +9 -9
- 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/Col.d.ts +1 -1
- package/lib/grid/col/index.d.ts +3 -3
- package/lib/grid/col/style/index.cjs +2 -0
- package/lib/grid/col/style/index.d.ts +1 -0
- package/lib/grid/row/Row.d.ts +1 -1
- package/lib/grid/row/index.d.ts +3 -3
- package/lib/grid/row/style/index.cjs +2 -0
- package/lib/grid/row/style/index.d.ts +1 -0
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.d.ts +4 -2
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/image/index.d.ts +9 -6
- 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/index.d.ts +1 -1
- package/lib/input/Input.d.ts +2 -2
- package/lib/input/index.d.ts +6 -6
- package/lib/input/style/index.cjs +2 -0
- package/lib/input/style/index.d.ts +1 -0
- package/lib/input-number/InputNumber.d.ts +2 -2
- package/lib/input-number/index.d.ts +6 -6
- package/lib/input-number/style/index.cjs +2 -0
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-search/InputSearch.d.ts +2 -2
- package/lib/input-search/index.d.ts +6 -6
- 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/LoadingBar.css +1 -1
- package/lib/loading-bar/LoadingBar.vue.cjs +1 -1
- package/lib/loading-bar/LoadingBar.vue2.cjs +7 -6
- package/lib/loading-bar/style/index.cjs +2 -0
- package/lib/loading-bar/style/index.d.ts +1 -0
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +5 -4
- package/lib/message/style/index.cjs +2 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.d.ts +3 -3
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/modal/Modal.vue2.cjs +1 -1
- package/lib/modal/index.d.ts +9 -9
- package/lib/modal/style/index.cjs +4 -0
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.d.ts +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +4 -3
- package/lib/notification/index.d.ts +3 -3
- package/lib/notification/style/index.cjs +3 -0
- package/lib/notification/style/index.d.ts +1 -0
- package/lib/pagination/Pagination.d.ts +1 -1
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/style/index.cjs +6 -0
- package/lib/pagination/style/index.d.ts +1 -0
- package/lib/popconfirm/Popconfirm.d.ts +290 -20
- package/lib/popconfirm/index.d.ts +145 -10
- 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/Popup.css +1 -0
- package/lib/popup/Popup.d.ts +85 -0
- package/lib/popup/Popup.vue.cjs +1 -0
- package/lib/popup/Popup.vue2.cjs +1 -0
- package/lib/popup/index.cjs +1 -0
- package/lib/popup/index.d.ts +112 -0
- package/lib/popup/style/index.cjs +2 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/progress/Progress.d.ts +1 -1
- package/lib/progress/index.d.ts +3 -3
- package/lib/progress/style/index.cjs +2 -0
- package/lib/progress/style/index.d.ts +1 -0
- package/lib/qr-code/QRCode.d.ts +1 -1
- package/lib/qr-code/index.d.ts +3 -3
- package/lib/qr-code/style/index.cjs +2 -0
- package/lib/qr-code/style/index.d.ts +1 -0
- package/lib/radio/Radio.d.ts +1 -1
- package/lib/radio/index.d.ts +3 -3
- package/lib/radio/style/index.cjs +2 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/rate/Rate.d.ts +1 -1
- package/lib/rate/index.d.ts +3 -3
- 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/Segmented.d.ts +1 -1
- package/lib/segmented/index.d.ts +3 -3
- package/lib/segmented/style/index.cjs +2 -0
- package/lib/segmented/style/index.d.ts +1 -0
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +11 -3
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +7 -7
- package/lib/select/index.d.ts +19 -9
- 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/Slider.css +1 -1
- package/lib/slider/Slider.d.ts +6 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +7 -7
- package/lib/slider/index.d.ts +3 -3
- package/lib/slider/style/index.cjs +2 -0
- package/lib/slider/style/index.d.ts +1 -0
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +3 -3
- 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/Statistic.d.ts +1 -1
- package/lib/statistic/index.d.ts +3 -3
- 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/Swiper.d.ts +1 -1
- package/lib/swiper/index.d.ts +3 -3
- 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/Table.css +1 -1
- package/lib/table/Table.d.ts +3 -671
- package/lib/table/Table.vue.cjs +1 -1
- package/lib/table/Table.vue2.cjs +1 -1
- 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/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +3 -3
- package/lib/tag/style/index.cjs +3 -0
- package/lib/tag/style/index.d.ts +1 -0
- package/lib/text-scroll/TextScroll.d.ts +1 -1
- package/lib/text-scroll/index.d.ts +3 -3
- package/lib/text-scroll/style/index.cjs +5 -0
- package/lib/text-scroll/style/index.d.ts +1 -0
- package/lib/textarea/Textarea.d.ts +2 -2
- package/lib/textarea/index.d.ts +6 -6
- package/lib/textarea/style/index.cjs +2 -0
- package/lib/textarea/style/index.d.ts +1 -0
- package/lib/timeline/Timeline.d.ts +1 -1
- package/lib/timeline/index.d.ts +3 -3
- package/lib/timeline/style/index.cjs +2 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/tooltip/Tooltip.css +3 -1
- package/lib/tooltip/Tooltip.d.ts +264 -7
- package/lib/tooltip/Tooltip.vue.cjs +1 -1
- package/lib/tooltip/Tooltip.vue2.cjs +1 -1
- package/lib/tooltip/index.d.ts +147 -13
- package/lib/tooltip/style/index.cjs +3 -0
- package/lib/tooltip/style/index.d.ts +1 -0
- package/lib/upload/Upload.d.ts +16 -10
- package/lib/upload/index.d.ts +8 -5
- package/lib/upload/style/index.cjs +5 -0
- package/lib/upload/style/index.d.ts +1 -0
- package/lib/utils/floating-mount.cjs +1 -0
- package/lib/utils/floating-mount.d.ts +6 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/position.cjs +1 -1
- package/lib/utils/position.d.ts +64 -7
- 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/utils/z-index.cjs +1 -0
- package/lib/utils/z-index.d.ts +26 -0
- package/lib/video/Video.d.ts +1 -1
- package/lib/video/index.d.ts +3 -3
- 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/lib/watermark/Watermark.d.ts +3 -3
- package/lib/watermark/index.d.ts +9 -9
- 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
|
|
|
@@ -179,14 +172,12 @@ import {
|
|
|
179
172
|
useMediaQuery,
|
|
180
173
|
useResizeObserver,
|
|
181
174
|
useSlotsExist,
|
|
182
|
-
useInject,
|
|
183
175
|
useOptionsSupported,
|
|
184
176
|
getColorPalettes,
|
|
185
177
|
getAlphaColor,
|
|
186
178
|
getScrollParent,
|
|
187
179
|
lockScroll,
|
|
188
|
-
useScrollParent
|
|
189
|
-
useFloatingPosition
|
|
180
|
+
useScrollParent
|
|
190
181
|
} from 'vue-amazing-ui'
|
|
191
182
|
</script>
|
|
192
183
|
```
|
|
@@ -252,33 +243,34 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
252
243
|
| Card | 卡片 | Carousel | 轮播图 |
|
|
253
244
|
| Cascader | 级联选择 | Checkbox | 复选框 |
|
|
254
245
|
| Collapse | 折叠面板 | ColorPicker | 颜色选择器 |
|
|
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
|
-
|
|
|
280
|
-
|
|
|
281
|
-
|
|
|
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 | 水印 | | |
|
|
282
274
|
|
|
283
275
|
## Functions
|
|
284
276
|
|
|
@@ -300,11 +292,9 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
300
292
|
| useMediaQuery | Function to determine if the current environment matches a specified media query condition | (mediaQuery: string) => { match: Ref\<boolean> } |
|
|
301
293
|
| useResizeObserver | Function to observe changes in the dimensions of DOM elements using `ResizeObserver` | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
302
294
|
| useSlotsExist | Function to watch for the existence of slots with given names, supporting single slots or an array of slots | <T extends string | string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
|
|
303
|
-
| useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
304
295
|
| useOptionsSupported | Checks if the browser supports the given event listener options | (option: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|
|
305
296
|
| getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
|
|
306
297
|
| getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
307
298
|
| getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement | null) => HTMLElement | null |
|
|
308
299
|
| lockScroll | Function to lock page scrolling and compensate the scrollbar width to prevent horizontal jitter | () => () => void |
|
|
309
300
|
| 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 } |
|
|
310
|
-
| 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
|
@@ -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
|
|
|
@@ -179,14 +172,12 @@ import {
|
|
|
179
172
|
useMediaQuery,
|
|
180
173
|
useResizeObserver,
|
|
181
174
|
useSlotsExist,
|
|
182
|
-
useInject,
|
|
183
175
|
useOptionsSupported,
|
|
184
176
|
getColorPalettes,
|
|
185
177
|
getAlphaColor,
|
|
186
178
|
getScrollParent,
|
|
187
179
|
lockScroll,
|
|
188
|
-
useScrollParent
|
|
189
|
-
useFloatingPosition
|
|
180
|
+
useScrollParent
|
|
190
181
|
} from 'vue-amazing-ui'
|
|
191
182
|
</script>
|
|
192
183
|
```
|
|
@@ -252,33 +243,34 @@ pnpm docs:dev
|
|
|
252
243
|
| Card | 卡片 | Carousel | 轮播图 |
|
|
253
244
|
| Cascader | 级联选择 | Checkbox | 复选框 |
|
|
254
245
|
| Collapse | 折叠面板 | ColorPicker | 颜色选择器 |
|
|
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
|
-
|
|
|
280
|
-
|
|
|
281
|
-
|
|
|
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 | 水印 | | |
|
|
282
274
|
|
|
283
275
|
## 工具函数
|
|
284
276
|
|
|
@@ -300,11 +292,9 @@ pnpm docs:dev
|
|
|
300
292
|
| useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => { match: Ref\<boolean> } |
|
|
301
293
|
| useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
302
294
|
| useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string | string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
|
|
303
|
-
| useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
304
295
|
| useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (option: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|
|
305
296
|
| getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
|
|
306
297
|
| getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
307
298
|
| getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement | null) => HTMLElement | null |
|
|
308
299
|
| lockScroll | 锁定页面滚动并补偿滚动条宽度,防止页面横向抖动函数 | () => () => void |
|
|
309
300
|
| useScrollParent | 查询并监听最近可滚动父元素,响应视口 `resize` 的组合式函数 | (contentRef: Ref\<HTMLElement | null>, onScroll: () => void, options: object = {}) => { scrollTarget: Ref\<HTMLElement | null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
|
|
310
|
-
| useFloatingPosition | 为弹出类组件提供统一测量骨架的组合式函数 | (contentRef: Ref\<HTMLElement | null>, panelRef: Ref\<HTMLElement | null>) => { positionedContainerRect: Ref\<DOMRect | undefined>, contentRect: Ref\<DOMRect | undefined>, measure: \() => Promise\<void> } |
|