vue-amazing-ui 2.5.2 → 2.6.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 +14 -4
- package/README.zh-CN.md +14 -4
- package/dist/css.d.ts +2 -0
- package/dist/index.iife.js +81 -80
- package/dist/index.js +5420 -5479
- package/dist/index.umd.cjs +79 -78
- package/dist/style.css +1 -1
- package/es/alert/Alert.vue2.js +1 -1
- package/es/auto-complete/AutoComplete.css +1 -0
- package/es/{autocomplete → auto-complete}/AutoComplete.d.ts +12 -10
- package/es/{autocomplete → auto-complete}/AutoComplete.vue.js +2 -2
- package/es/auto-complete/AutoComplete.vue2.js +469 -0
- package/es/{autocomplete → auto-complete}/index.d.ts +18 -15
- package/es/avatar/Avatar.d.ts +2 -2
- package/es/avatar/Avatar.vue2.js +1 -1
- package/es/avatar/index.d.ts +6 -6
- package/es/back-top/BackTop.css +1 -0
- package/es/back-top/BackTop.vue.js +7 -0
- package/es/{backtop → back-top}/BackTop.vue2.js +81 -90
- package/es/badge/Badge.vue2.js +1 -1
- package/es/button/Button.d.ts +1 -1
- package/es/button/Button.vue2.js +1 -1
- package/es/button/index.d.ts +3 -3
- package/es/calendar/Calendar.d.ts +2 -2
- package/es/calendar/Calendar.vue2.js +1 -1
- package/es/calendar/index.d.ts +5 -5
- package/es/card/Card.d.ts +1 -1
- package/es/card/Card.vue2.js +1 -1
- package/es/card/index.d.ts +3 -3
- package/es/carousel/Carousel.vue2.js +14 -12
- package/es/cascader/Cascader.d.ts +2 -2
- package/es/cascader/index.d.ts +6 -6
- package/es/checkbox/Checkbox.vue2.js +1 -1
- package/es/collapse/Collapse.vue2.js +1 -1
- package/es/{colorpicker → color-picker}/ColorPicker.css +1 -1
- package/es/{colorpicker → color-picker}/ColorPicker.vue.js +2 -2
- package/es/{colorpicker → color-picker}/ColorPicker.vue2.js +1 -1
- package/es/components.d.ts +26 -26
- package/es/components.js +15 -15
- package/{lib/configprovider → es/config-provider}/ConfigProvider.d.ts +3 -0
- package/es/{configprovider → config-provider}/ConfigProvider.vue.js +25 -40
- package/es/countdown/Countdown.vue2.js +1 -1
- package/{lib/datepicker → es/date-picker}/DatePicker.css +1 -1
- package/es/{datepicker → date-picker}/DatePicker.vue.js +2 -2
- package/es/{datepicker → date-picker}/DatePicker.vue2.js +1 -1
- package/es/descriptions/descriptions/Descriptions.d.ts +1 -1
- package/es/descriptions/descriptions/Descriptions.vue2.js +4 -3
- package/es/descriptions/descriptions/index.d.ts +3 -3
- package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.css +1 -1
- package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue.js +2 -2
- package/es/descriptions/index.d.ts +2 -2
- package/es/dialog/Dialog.vue2.js +1 -1
- package/es/divider/Divider.vue2.js +1 -1
- package/es/drawer/Drawer.vue2.js +1 -1
- package/es/ellipsis/Ellipsis.vue2.js +1 -1
- package/es/empty/Empty.vue2.js +1 -1
- package/es/float-button/FloatButton.css +1 -0
- package/es/{floatbutton → float-button}/FloatButton.vue.js +2 -2
- package/es/{floatbutton → float-button}/FloatButton.vue2.js +1 -1
- package/es/{gradienttext → gradient-text}/GradientText.css +1 -1
- package/es/{gradienttext → gradient-text}/GradientText.vue.js +2 -2
- package/es/grid/col/Col.vue2.js +1 -1
- package/es/grid/row/Row.vue2.js +1 -1
- package/es/image/Image.css +1 -1
- package/es/image/Image.d.ts +5 -0
- package/es/image/Image.vue.js +2 -2
- package/es/image/Image.vue2.js +79 -71
- package/es/index.d.ts +2 -1
- package/es/index.js +178 -166
- package/es/input/Input.vue2.js +1 -1
- package/es/input-number/InputNumber.css +1 -0
- package/es/{inputnumber → input-number}/InputNumber.vue.js +2 -2
- package/es/{inputnumber → input-number}/InputNumber.vue2.js +4 -3
- package/es/input-search/InputSearch.css +1 -0
- package/es/{inputsearch → input-search}/InputSearch.vue.js +2 -2
- package/es/{inputsearch → input-search}/InputSearch.vue2.js +1 -1
- package/es/list/index.d.ts +2 -2
- package/es/list/list/List.d.ts +1 -1
- package/es/list/list/List.vue2.js +1 -1
- package/es/list/list/index.d.ts +3 -3
- package/es/list/list-item/ListItem.css +1 -0
- package/es/list/{listitem → list-item}/ListItem.vue.js +2 -2
- package/es/list/{listitem → list-item}/ListItem.vue2.js +1 -1
- package/es/loading-bar/LoadingBar.css +1 -0
- package/es/{loadingbar → loading-bar}/LoadingBar.vue.js +1 -1
- package/es/{loadingbar → loading-bar}/LoadingBar.vue2.js +1 -1
- package/es/message/Message.vue2.js +12 -11
- package/es/modal/Modal.vue2.js +1 -1
- package/es/notification/Notification.vue2.js +20 -19
- package/es/{numberanimation → number-animation}/NumberAnimation.vue.js +5 -5
- package/es/pagination/Pagination.vue2.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +1 -1
- package/es/popover/Popover.vue2.js +1 -1
- package/es/progress/Progress.vue2.js +1 -1
- package/es/qr-code/QRCode.css +1 -0
- package/es/qr-code/QRCode.vue.js +7 -0
- package/es/radio/Radio.vue2.js +1 -1
- package/es/result/Result.vue2.js +1 -1
- package/es/scrollbar/Scrollbar.vue2.js +4 -3
- package/es/segmented/Segmented.vue2.js +1 -1
- package/es/select/Select.css +1 -1
- package/es/select/Select.d.ts +2 -2
- package/es/select/Select.vue.js +1 -1
- package/es/select/Select.vue2.js +174 -221
- package/es/select/index.d.ts +6 -6
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +3 -3
- package/es/slider/Slider.vue2.js +81 -80
- package/es/spin/Spin.vue2.js +1 -1
- package/es/statistic/Statistic.vue2.js +13 -12
- package/es/steps/Steps.vue2.js +1 -1
- package/es/swiper/Swiper.vue2.js +9 -9
- package/es/switch/Switch.vue2.js +1 -1
- package/es/table/Table.d.ts +2 -2
- package/es/table/Table.vue2.js +31 -30
- package/es/table/index.d.ts +6 -6
- package/es/tabs/Tabs.vue2.js +4 -3
- package/es/tag/Tag.vue2.js +1 -1
- package/es/{textscroll → text-scroll}/TextScroll.css +1 -1
- package/es/{textscroll → text-scroll}/TextScroll.vue.js +2 -2
- package/es/{textscroll → text-scroll}/TextScroll.vue2.js +28 -26
- package/es/textarea/Textarea.vue2.js +1 -1
- package/es/timeline/Timeline.d.ts +1 -1
- package/es/timeline/index.d.ts +3 -3
- package/es/tooltip/Tooltip.css +1 -1
- package/es/tooltip/Tooltip.d.ts +1 -2
- package/es/tooltip/Tooltip.vue.js +1 -1
- package/es/tooltip/Tooltip.vue2.js +184 -223
- package/es/upload/Upload.d.ts +10 -0
- package/es/upload/Upload.vue2.js +1 -1
- package/es/upload/index.d.ts +5 -0
- package/es/utils/color.d.ts +2 -0
- package/es/utils/color.js +23 -0
- package/es/utils/dom.d.ts +9 -0
- package/es/utils/dom.js +69 -0
- package/es/utils/format.d.ts +2 -0
- package/es/utils/format.js +63 -0
- package/es/utils/function.d.ts +7 -0
- package/es/utils/function.js +44 -0
- package/es/utils/hooks.d.ts +20 -0
- package/es/utils/hooks.js +88 -0
- package/es/utils/index.d.ts +8 -54
- package/es/utils/math.d.ts +1 -0
- package/es/utils/math.js +12 -0
- package/es/utils/observers.d.ts +31 -0
- package/es/utils/observers.js +127 -0
- package/es/utils/position.d.ts +6 -0
- package/es/utils/position.js +26 -0
- package/es/utils/resolver.js +31 -40
- package/es/utils/vendor-styles.d.ts +7 -0
- package/es/utils/vendor-styles.js +30 -0
- package/es/vendor-styles/swiper/modules/effect-cards.css +10 -0
- package/es/vendor-styles/swiper/modules/effect-creative.css +7 -0
- package/es/vendor-styles/swiper/modules/effect-cube.css +70 -0
- package/es/vendor-styles/swiper/modules/effect-fade.css +20 -0
- package/es/vendor-styles/swiper/modules/effect-flip.css +30 -0
- package/es/vendor-styles/swiper/modules/navigation.css +129 -0
- package/es/vendor-styles/swiper/modules/pagination.css +185 -0
- package/es/vendor-styles/swiper/swiper.css +251 -0
- package/es/vendor-styles/vue-datepicker/main.css +1 -0
- package/es/waterfall/Waterfall.vue2.js +1 -1
- package/es/watermark/Watermark.vue.js +1 -1
- package/lib/alert/Alert.vue2.cjs +1 -1
- package/lib/auto-complete/AutoComplete.css +1 -0
- package/lib/{autocomplete → auto-complete}/AutoComplete.d.ts +12 -10
- package/lib/{autocomplete → auto-complete}/AutoComplete.vue.cjs +1 -1
- package/lib/auto-complete/AutoComplete.vue2.cjs +7 -0
- package/lib/{autocomplete → auto-complete}/index.d.ts +18 -15
- package/lib/avatar/Avatar.d.ts +2 -2
- package/lib/avatar/Avatar.vue2.cjs +1 -1
- package/lib/avatar/index.d.ts +6 -6
- package/lib/back-top/BackTop.css +1 -0
- package/lib/{backtop → back-top}/BackTop.vue.cjs +1 -1
- package/lib/back-top/BackTop.vue2.cjs +22 -0
- package/lib/badge/Badge.vue2.cjs +1 -1
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/Button.vue2.cjs +2 -2
- package/lib/button/index.d.ts +3 -3
- package/lib/calendar/Calendar.d.ts +2 -2
- package/lib/calendar/Calendar.vue2.cjs +1 -1
- package/lib/calendar/index.d.ts +5 -5
- package/lib/card/Card.d.ts +1 -1
- package/lib/card/Card.vue2.cjs +1 -1
- package/lib/card/index.d.ts +3 -3
- package/lib/carousel/Carousel.vue2.cjs +4 -4
- package/lib/cascader/Cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +6 -6
- package/lib/checkbox/Checkbox.vue2.cjs +1 -1
- package/lib/collapse/Collapse.vue2.cjs +1 -1
- package/lib/{colorpicker → color-picker}/ColorPicker.css +1 -1
- package/lib/{colorpicker → color-picker}/ColorPicker.vue.cjs +1 -1
- package/lib/{colorpicker → color-picker}/ColorPicker.vue2.cjs +3 -3
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +26 -26
- package/{es/configprovider → lib/config-provider}/ConfigProvider.d.ts +3 -0
- package/lib/config-provider/ConfigProvider.vue.cjs +1 -0
- package/lib/countdown/Countdown.vue2.cjs +1 -1
- package/{es/datepicker → lib/date-picker}/DatePicker.css +1 -1
- package/lib/{datepicker → date-picker}/DatePicker.vue.cjs +1 -1
- package/lib/{datepicker → date-picker}/DatePicker.vue2.cjs +4 -4
- package/lib/descriptions/descriptions/Descriptions.d.ts +1 -1
- package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
- package/lib/descriptions/descriptions/index.d.ts +3 -3
- package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.css +1 -1
- package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue.cjs +1 -1
- package/lib/descriptions/index.d.ts +2 -2
- package/lib/dialog/Dialog.vue2.cjs +1 -1
- package/lib/divider/Divider.vue2.cjs +1 -1
- package/lib/drawer/Drawer.vue2.cjs +1 -1
- package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
- package/lib/empty/Empty.vue2.cjs +1 -1
- package/lib/float-button/FloatButton.css +1 -0
- package/lib/{floatbutton → float-button}/FloatButton.vue.cjs +1 -1
- package/lib/{floatbutton → float-button}/FloatButton.vue2.cjs +2 -2
- package/lib/{gradienttext → gradient-text}/GradientText.css +1 -1
- package/lib/{gradienttext → gradient-text}/GradientText.vue.cjs +1 -1
- package/lib/grid/col/Col.vue2.cjs +1 -1
- package/lib/grid/row/Row.vue2.cjs +1 -1
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.d.ts +5 -0
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/input/Input.vue2.cjs +3 -3
- package/lib/input-number/InputNumber.css +1 -0
- package/lib/{inputnumber → input-number}/InputNumber.vue.cjs +1 -1
- package/lib/input-number/InputNumber.vue2.cjs +7 -0
- package/lib/input-search/InputSearch.css +1 -0
- package/lib/{inputsearch → input-search}/InputSearch.vue.cjs +1 -1
- package/lib/{inputsearch → input-search}/InputSearch.vue2.cjs +1 -1
- package/lib/list/index.d.ts +2 -2
- package/lib/list/list/List.d.ts +1 -1
- package/lib/list/list/List.vue2.cjs +1 -1
- package/lib/list/list/index.d.ts +3 -3
- package/lib/list/list-item/ListItem.css +1 -0
- package/lib/list/{listitem → list-item}/ListItem.vue.cjs +1 -1
- package/lib/list/{listitem → list-item}/ListItem.vue2.cjs +1 -1
- package/lib/loading-bar/LoadingBar.css +1 -0
- package/lib/{loadingbar → loading-bar}/LoadingBar.vue.cjs +1 -1
- package/lib/{loadingbar → loading-bar}/LoadingBar.vue2.cjs +1 -1
- package/lib/message/Message.vue2.cjs +2 -2
- package/lib/modal/Modal.vue2.cjs +2 -2
- package/lib/notification/Notification.vue2.cjs +2 -2
- package/lib/number-animation/NumberAnimation.vue.cjs +1 -0
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
- package/lib/popover/Popover.vue2.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +1 -1
- package/lib/qr-code/QRCode.css +1 -0
- package/lib/{qrcode → qr-code}/QRCode.vue.cjs +1 -1
- package/lib/radio/Radio.vue2.cjs +3 -3
- package/lib/result/Result.vue2.cjs +1 -1
- package/lib/scrollbar/Scrollbar.vue2.cjs +2 -2
- package/lib/segmented/Segmented.vue2.cjs +1 -1
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.d.ts +2 -2
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +7 -7
- package/lib/select/index.d.ts +6 -6
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/slider/Slider.vue2.cjs +2 -2
- package/lib/spin/Spin.vue2.cjs +3 -3
- package/lib/statistic/Statistic.vue2.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +1 -1
- package/lib/swiper/Swiper.vue2.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +1 -1
- package/lib/table/Table.d.ts +2 -2
- package/lib/table/Table.vue2.cjs +1 -1
- package/lib/table/index.d.ts +6 -6
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/tag/Tag.vue2.cjs +1 -1
- package/lib/{textscroll → text-scroll}/TextScroll.css +1 -1
- package/lib/{textscroll → text-scroll}/TextScroll.vue.cjs +1 -1
- package/lib/{textscroll → text-scroll}/TextScroll.vue2.cjs +3 -3
- package/lib/textarea/Textarea.vue2.cjs +2 -2
- package/lib/timeline/Timeline.d.ts +1 -1
- package/lib/timeline/index.d.ts +3 -3
- package/lib/tooltip/Tooltip.css +1 -1
- package/lib/tooltip/Tooltip.d.ts +1 -2
- package/lib/tooltip/Tooltip.vue.cjs +1 -1
- package/lib/tooltip/Tooltip.vue2.cjs +1 -1
- package/lib/upload/Upload.d.ts +10 -0
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/lib/upload/index.d.ts +5 -0
- package/lib/utils/color.cjs +1 -0
- package/lib/utils/color.d.ts +2 -0
- package/lib/utils/dom.cjs +1 -0
- package/lib/utils/dom.d.ts +9 -0
- package/lib/utils/format.cjs +1 -0
- package/lib/utils/format.d.ts +2 -0
- package/lib/utils/function.cjs +1 -0
- package/lib/utils/function.d.ts +7 -0
- package/lib/utils/hooks.cjs +1 -0
- package/lib/utils/hooks.d.ts +20 -0
- package/lib/utils/index.d.ts +8 -54
- package/lib/utils/math.cjs +1 -0
- package/lib/utils/math.d.ts +1 -0
- package/lib/utils/observers.cjs +1 -0
- package/lib/utils/observers.d.ts +31 -0
- package/lib/utils/position.cjs +1 -0
- package/lib/utils/position.d.ts +6 -0
- package/lib/utils/resolver.cjs +1 -1
- package/lib/utils/vendor-styles.cjs +1 -0
- package/lib/utils/vendor-styles.d.ts +7 -0
- package/lib/vendor-styles/swiper/modules/effect-cards.css +10 -0
- package/lib/vendor-styles/swiper/modules/effect-creative.css +7 -0
- package/lib/vendor-styles/swiper/modules/effect-cube.css +70 -0
- package/lib/vendor-styles/swiper/modules/effect-fade.css +20 -0
- package/lib/vendor-styles/swiper/modules/effect-flip.css +30 -0
- package/lib/vendor-styles/swiper/modules/navigation.css +129 -0
- package/lib/vendor-styles/swiper/modules/pagination.css +185 -0
- package/lib/vendor-styles/swiper/swiper.css +251 -0
- package/lib/vendor-styles/vue-datepicker/main.css +1 -0
- package/lib/waterfall/Waterfall.vue2.cjs +3 -3
- package/lib/watermark/Watermark.vue.cjs +1 -1
- package/package.json +7 -4
- package/es/autocomplete/AutoComplete.css +0 -1
- package/es/autocomplete/AutoComplete.vue2.js +0 -519
- package/es/backtop/BackTop.css +0 -1
- package/es/backtop/BackTop.vue.js +0 -7
- package/es/floatbutton/FloatButton.css +0 -1
- package/es/inputnumber/InputNumber.css +0 -1
- package/es/inputsearch/InputSearch.css +0 -1
- package/es/list/listitem/ListItem.css +0 -1
- package/es/loadingbar/LoadingBar.css +0 -1
- package/es/node_modules/.pnpm/@vuepic_vue-datepicker@12.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cards.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-creative.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cube.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-fade.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-flip.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/navigation.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.css +0 -1
- package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper.css +0 -1
- package/es/qrcode/QRCode.css +0 -1
- package/es/qrcode/QRCode.vue.js +0 -7
- package/es/utils/index.js +0 -345
- package/lib/autocomplete/AutoComplete.css +0 -1
- package/lib/autocomplete/AutoComplete.vue2.cjs +0 -6
- package/lib/backtop/BackTop.css +0 -1
- package/lib/backtop/BackTop.vue2.cjs +0 -22
- package/lib/configprovider/ConfigProvider.vue.cjs +0 -1
- package/lib/floatbutton/FloatButton.css +0 -1
- package/lib/inputnumber/InputNumber.css +0 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +0 -7
- package/lib/inputsearch/InputSearch.css +0 -1
- package/lib/list/listitem/ListItem.css +0 -1
- package/lib/loadingbar/LoadingBar.css +0 -1
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@12.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cards.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-creative.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cube.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-fade.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-flip.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/navigation.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.css +0 -1
- package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper.css +0 -1
- package/lib/numberanimation/NumberAnimation.vue.cjs +0 -1
- package/lib/qrcode/QRCode.css +0 -1
- package/lib/utils/index.cjs +0 -1
- package/es/{autocomplete → auto-complete}/index.js +0 -0
- package/es/{backtop → back-top}/BackTop.d.ts +0 -0
- package/es/{backtop → back-top}/index.d.ts +0 -0
- package/es/{backtop → back-top}/index.js +0 -0
- package/es/{colorpicker → color-picker}/ColorPicker.d.ts +1 -1
- package/es/{colorpicker → color-picker}/index.d.ts +3 -3
- package/es/{colorpicker → color-picker}/index.js +0 -0
- package/es/{configprovider → config-provider}/ConfigProvider.vue2.js +0 -0
- package/es/{configprovider → config-provider}/index.d.ts +0 -0
- package/es/{configprovider → config-provider}/index.js +0 -0
- package/es/{datepicker → date-picker}/DatePicker.d.ts +0 -0
- package/es/{datepicker → date-picker}/index.d.ts +0 -0
- package/es/{datepicker → date-picker}/index.js +0 -0
- package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.d.ts +0 -0
- package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue2.js +0 -0
- package/es/descriptions/{descriptionsitem → descriptions-item}/index.d.ts +0 -0
- package/es/descriptions/{descriptionsitem → descriptions-item}/index.js +0 -0
- package/es/{floatbutton → float-button}/FloatButton.d.ts +1 -1
- package/{lib/floatbutton → es/float-button}/index.d.ts +3 -3
- package/es/{floatbutton → float-button}/index.js +0 -0
- package/es/{gradienttext → gradient-text}/GradientText.d.ts +0 -0
- package/es/{gradienttext → gradient-text}/GradientText.vue2.js +0 -0
- package/es/{gradienttext → gradient-text}/index.d.ts +0 -0
- package/es/{gradienttext → gradient-text}/index.js +0 -0
- package/es/{inputnumber → input-number}/InputNumber.d.ts +0 -0
- package/es/{inputnumber → input-number}/index.d.ts +0 -0
- package/es/{inputnumber → input-number}/index.js +0 -0
- package/es/{inputsearch → input-search}/InputSearch.d.ts +3 -3
- package/{lib/inputsearch → es/input-search}/index.d.ts +8 -8
- package/es/{inputsearch → input-search}/index.js +0 -0
- package/es/list/{listitem → list-item}/ListItem.d.ts +0 -0
- package/es/list/{listitem → list-item}/index.d.ts +0 -0
- package/es/list/{listitem → list-item}/index.js +0 -0
- package/es/{loadingbar → loading-bar}/LoadingBar.d.ts +0 -0
- package/es/{loadingbar → loading-bar}/index.d.ts +0 -0
- package/es/{loadingbar → loading-bar}/index.js +0 -0
- package/es/{numberanimation → number-animation}/NumberAnimation.d.ts +0 -0
- package/es/{numberanimation → number-animation}/NumberAnimation.vue2.js +0 -0
- package/es/{numberanimation → number-animation}/index.d.ts +0 -0
- package/es/{numberanimation → number-animation}/index.js +0 -0
- package/es/{qrcode → qr-code}/QRCode.d.ts +0 -0
- package/es/{qrcode → qr-code}/QRCode.vue2.js +0 -0
- package/es/{qrcode → qr-code}/index.d.ts +0 -0
- package/es/{qrcode → qr-code}/index.js +0 -0
- package/es/{textscroll → text-scroll}/TextScroll.d.ts +0 -0
- package/es/{textscroll → text-scroll}/index.d.ts +0 -0
- package/es/{textscroll → text-scroll}/index.js +0 -0
- package/lib/{autocomplete → auto-complete}/index.cjs +0 -0
- package/lib/{backtop → back-top}/BackTop.d.ts +0 -0
- package/lib/{backtop → back-top}/index.cjs +0 -0
- package/lib/{backtop → back-top}/index.d.ts +0 -0
- package/lib/{colorpicker → color-picker}/ColorPicker.d.ts +1 -1
- package/lib/{colorpicker → color-picker}/index.cjs +0 -0
- package/lib/{colorpicker → color-picker}/index.d.ts +3 -3
- package/lib/{configprovider → config-provider}/ConfigProvider.vue2.cjs +0 -0
- package/lib/{configprovider → config-provider}/index.cjs +0 -0
- package/lib/{configprovider → config-provider}/index.d.ts +0 -0
- package/lib/{datepicker → date-picker}/DatePicker.d.ts +0 -0
- package/lib/{datepicker → date-picker}/index.cjs +0 -0
- package/lib/{datepicker → date-picker}/index.d.ts +0 -0
- package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.d.ts +0 -0
- package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue2.cjs +0 -0
- package/lib/descriptions/{descriptionsitem → descriptions-item}/index.cjs +0 -0
- package/lib/descriptions/{descriptionsitem → descriptions-item}/index.d.ts +0 -0
- package/lib/{floatbutton → float-button}/FloatButton.d.ts +1 -1
- package/lib/{floatbutton → float-button}/index.cjs +0 -0
- package/{es/floatbutton → lib/float-button}/index.d.ts +3 -3
- package/lib/{gradienttext → gradient-text}/GradientText.d.ts +0 -0
- package/lib/{gradienttext → gradient-text}/GradientText.vue2.cjs +0 -0
- package/lib/{gradienttext → gradient-text}/index.cjs +0 -0
- package/lib/{gradienttext → gradient-text}/index.d.ts +0 -0
- package/lib/{inputnumber → input-number}/InputNumber.d.ts +0 -0
- package/lib/{inputnumber → input-number}/index.cjs +0 -0
- package/lib/{inputnumber → input-number}/index.d.ts +0 -0
- package/lib/{inputsearch → input-search}/InputSearch.d.ts +3 -3
- package/lib/{inputsearch → input-search}/index.cjs +0 -0
- package/{es/inputsearch → lib/input-search}/index.d.ts +8 -8
- /package/lib/list/{listitem → list-item}/ListItem.d.ts +0 -0
- /package/lib/list/{listitem → list-item}/index.cjs +0 -0
- /package/lib/list/{listitem → list-item}/index.d.ts +0 -0
- /package/lib/{loadingbar → loading-bar}/LoadingBar.d.ts +0 -0
- /package/lib/{loadingbar → loading-bar}/index.cjs +0 -0
- /package/lib/{loadingbar → loading-bar}/index.d.ts +0 -0
- /package/lib/{numberanimation → number-animation}/NumberAnimation.d.ts +0 -0
- /package/lib/{numberanimation → number-animation}/NumberAnimation.vue2.cjs +0 -0
- /package/lib/{numberanimation → number-animation}/index.cjs +0 -0
- /package/lib/{numberanimation → number-animation}/index.d.ts +0 -0
- /package/lib/{qrcode → qr-code}/QRCode.d.ts +0 -0
- /package/lib/{qrcode → qr-code}/QRCode.vue2.cjs +0 -0
- /package/lib/{qrcode → qr-code}/index.cjs +0 -0
- /package/lib/{qrcode → qr-code}/index.d.ts +0 -0
- /package/lib/{textscroll → text-scroll}/TextScroll.d.ts +0 -0
- /package/lib/{textscroll → text-scroll}/index.cjs +0 -0
- /package/lib/{textscroll → text-scroll}/index.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.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 `23` 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.
|
|
@@ -85,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
|
|
|
85
85
|
</template>
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
**Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/
|
|
88
|
+
**Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/import-on-demand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) is recommended).**
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
91
|
import { createApp } from 'vue'
|
|
@@ -180,7 +180,12 @@ import {
|
|
|
180
180
|
useResizeObserver,
|
|
181
181
|
useSlotsExist,
|
|
182
182
|
useInject,
|
|
183
|
-
useOptionsSupported
|
|
183
|
+
useOptionsSupported,
|
|
184
|
+
getColorPalettes,
|
|
185
|
+
getAlphaColor,
|
|
186
|
+
getScrollParent,
|
|
187
|
+
useScrollParent,
|
|
188
|
+
useFloatingPosition
|
|
184
189
|
} from 'vue-amazing-ui'
|
|
185
190
|
</script>
|
|
186
191
|
```
|
|
@@ -279,7 +284,7 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
279
284
|
| throttle | Throttle function | (fn: Function, delay: number = 300) => Function |
|
|
280
285
|
| debounce | Debounce function | (fn: Function, delay: number = 300) => Function |
|
|
281
286
|
| add | Addition function that eliminates precision issues in JavaScript arithmetic | (num1: number, num2: number) => number |
|
|
282
|
-
| downloadFile | Function to download a file with a custom filename
|
|
287
|
+
| downloadFile | Function to download a file with a custom filename, with built-in dual download strategies for same-origin `anchor` and cross-origin `iframe`; if no filename is provided, it extracts the filename from the URL | (url: string, fileName?: string, options?: { target?: '_self' | '_blank'; strategy?: 'auto' | 'anchor' | 'iframe' }) => Promise<void> |
|
|
283
288
|
| toggleDark | Function to toggle dark mode | () => void |
|
|
284
289
|
| useEventListener | Function to add and remove event listeners using Vue lifecycle hooks | (target: HTMLElement | Window | Document, event: string, callback: Function) => void |
|
|
285
290
|
| useMutationObserver | Function to observe changes in DOM elements using `MutationObserver` | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
@@ -290,3 +295,8 @@ All sponsors will be listed here, thank you very much for your support and spons
|
|
|
290
295
|
| 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>>> |
|
|
291
296
|
| useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
292
297
|
| useOptionsSupported | Checks if the browser supports the given event listener options | (prop: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|
|
298
|
+
| getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
|
|
299
|
+
| getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
300
|
+
| getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement | null) => HTMLElement | null |
|
|
301
|
+
| 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
|
+
| 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` 组件以及 `23` 个工具函数,并且持续探索更新中...
|
|
21
21
|
- 主题可调,你只需提供一个主题色,剩下的都交给我
|
|
22
22
|
- 顺便一提,它们全都可以 `treeshaking`
|
|
23
23
|
- `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
|
|
@@ -85,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
|
|
|
85
85
|
</template>
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
**全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/
|
|
88
|
+
**全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/import-on-demand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90))**
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
91
|
import { createApp } from 'vue'
|
|
@@ -180,7 +180,12 @@ import {
|
|
|
180
180
|
useResizeObserver,
|
|
181
181
|
useSlotsExist,
|
|
182
182
|
useInject,
|
|
183
|
-
useOptionsSupported
|
|
183
|
+
useOptionsSupported,
|
|
184
|
+
getColorPalettes,
|
|
185
|
+
getAlphaColor,
|
|
186
|
+
getScrollParent,
|
|
187
|
+
useScrollParent,
|
|
188
|
+
useFloatingPosition
|
|
184
189
|
} from 'vue-amazing-ui'
|
|
185
190
|
</script>
|
|
186
191
|
```
|
|
@@ -279,7 +284,7 @@ pnpm docs:dev
|
|
|
279
284
|
| throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
|
|
280
285
|
| debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
|
|
281
286
|
| add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
|
|
282
|
-
| downloadFile |
|
|
287
|
+
| downloadFile | 下载文件并自定义文件名,内置同源 `anchor` 与跨域 `iframe` 双下载策略,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string, options?: { target?: '_self' | '_blank'; strategy?: 'auto' | 'anchor' | 'iframe' }) => Promise<void> |
|
|
283
288
|
| toggleDark | 一键切换暗黑模式函数 | () => void |
|
|
284
289
|
| useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement | Window | Document, event: string, callback: Function) => void |
|
|
285
290
|
| useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
@@ -290,3 +295,8 @@ pnpm docs:dev
|
|
|
290
295
|
| useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string | string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
|
|
291
296
|
| useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
292
297
|
| useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|
|
298
|
+
| getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
|
|
299
|
+
| getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
|
|
300
|
+
| getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement | null) => HTMLElement | null |
|
|
301
|
+
| 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
|
+
| useFloatingPosition | 为弹出类组件提供统一测量骨架的组合式函数 | (contentRef: Ref\<HTMLElement | null>, panelRef: Ref\<HTMLElement | null>) => { positionedContainerRect: Ref\<DOMRect | undefined>, contentRect: Ref\<DOMRect | undefined>, measure: \() => Promise\<void> } |
|
package/dist/css.d.ts
ADDED