vue-amazing-ui 2.4.21 → 2.4.22
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 +292 -292
- package/README.zh-CN.md +292 -292
- package/dist/index.iife.js +141 -141
- package/dist/index.js +6726 -6711
- package/dist/index.umd.cjs +151 -151
- package/dist/style.css +1 -1
- package/es/alert/Alert.css +1 -1
- package/es/alert/Alert.vue.js +2 -2
- package/es/alert/Alert.vue2.js +56 -56
- package/es/avatar/Avatar.css +1 -1
- package/es/avatar/Avatar.vue.js +1 -1
- package/es/avatar/Avatar.vue2.js +29 -29
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +2 -2
- package/es/backtop/BackTop.vue2.js +77 -77
- package/es/badge/Badge.css +1 -1
- package/es/badge/Badge.vue.js +2 -2
- package/es/badge/Badge.vue2.js +39 -39
- package/es/breadcrumb/Breadcrumb.css +1 -1
- package/es/breadcrumb/Breadcrumb.vue.js +2 -2
- package/es/breadcrumb/Breadcrumb.vue2.js +35 -35
- package/es/button/Button.css +1 -1
- package/es/button/Button.vue.js +2 -2
- package/es/button/Button.vue2.js +43 -43
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +111 -111
- package/es/card/Card.css +1 -1
- package/es/card/Card.vue.js +2 -2
- package/es/card/Card.vue2.js +21 -21
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +2 -2
- package/es/carousel/Carousel.vue2.js +131 -131
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +8 -0
- package/es/cascader/Cascader.vue.js +2 -2
- package/es/cascader/Cascader.vue2.js +71 -55
- package/es/cascader/index.d.ts +12 -0
- package/es/checkbox/Checkbox.css +1 -1
- package/es/checkbox/Checkbox.vue.js +2 -2
- package/es/checkbox/Checkbox.vue2.js +52 -52
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.vue.js +2 -2
- package/es/collapse/Collapse.vue2.js +86 -86
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +232 -232
- package/es/configprovider/ConfigProvider.vue.js +29 -29
- package/es/countdown/Countdown.css +1 -1
- package/es/countdown/Countdown.vue.js +2 -2
- package/es/countdown/Countdown.vue2.js +67 -67
- package/es/datepicker/DatePicker.css +1 -1
- package/es/datepicker/DatePicker.vue.js +4 -4
- package/es/datepicker/DatePicker.vue2.js +21 -21
- package/es/descriptions/descriptions/Descriptions.css +1 -1
- package/es/descriptions/descriptions/Descriptions.vue.js +2 -2
- package/es/descriptions/descriptions/Descriptions.vue2.js +61 -61
- package/es/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
- package/es/descriptions/descriptionsitem/DescriptionsItem.vue.js +2 -2
- package/es/descriptions/descriptionsitem/DescriptionsItem.vue2.js +17 -17
- package/es/dialog/Dialog.css +1 -1
- package/es/dialog/Dialog.vue.js +1 -1
- package/es/dialog/Dialog.vue2.js +112 -112
- package/es/divider/Divider.css +1 -1
- package/es/divider/Divider.vue.js +1 -1
- package/es/divider/Divider.vue2.js +11 -11
- package/es/drawer/Drawer.css +1 -1
- package/es/drawer/Drawer.vue.js +2 -2
- package/es/drawer/Drawer.vue2.js +84 -84
- package/es/ellipsis/Ellipsis.css +1 -1
- package/es/ellipsis/Ellipsis.vue.js +2 -2
- package/es/ellipsis/Ellipsis.vue2.js +32 -32
- package/es/empty/Empty.css +1 -1
- package/es/empty/Empty.vue.js +2 -2
- package/es/empty/Empty.vue2.js +22 -22
- package/es/flex/Flex.css +1 -1
- package/es/flex/Flex.vue.js +2 -2
- package/es/flex/Flex.vue2.js +10 -10
- package/es/floatbutton/FloatButton.css +1 -1
- package/es/floatbutton/FloatButton.vue.js +1 -1
- package/es/floatbutton/FloatButton.vue2.js +57 -57
- package/es/gradienttext/GradientText.css +1 -1
- package/es/gradienttext/GradientText.vue.js +1 -1
- package/es/gradienttext/GradientText.vue2.js +7 -7
- package/es/grid/col/Col.css +1 -1
- package/es/grid/col/Col.vue.js +2 -2
- package/es/grid/col/Col.vue2.js +7 -7
- package/es/grid/row/Row.css +1 -1
- package/es/grid/row/Row.vue.js +1 -1
- package/es/grid/row/Row.vue2.js +14 -14
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +2 -2
- package/es/image/Image.vue2.js +177 -177
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input/Input.vue2.js +72 -72
- package/es/inputnumber/InputNumber.css +1 -1
- package/es/inputnumber/InputNumber.vue.js +1 -1
- package/es/inputnumber/InputNumber.vue2.js +76 -76
- package/es/inputsearch/InputSearch.css +1 -1
- package/es/inputsearch/InputSearch.vue.js +2 -2
- package/es/inputsearch/InputSearch.vue2.js +61 -61
- package/es/list/list/List.css +1 -1
- package/es/list/list/List.vue.js +2 -2
- package/es/list/list/List.vue2.js +14 -14
- package/es/list/listitem/ListItem.css +1 -1
- package/es/list/listitem/ListItem.vue.js +2 -2
- package/es/list/listitem/ListItem.vue2.js +41 -41
- package/es/loadingbar/LoadingBar.css +1 -1
- package/es/loadingbar/LoadingBar.vue.js +2 -2
- package/es/loadingbar/LoadingBar.vue2.js +25 -25
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +37 -37
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.vue.js +1 -1
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.vue.js +2 -2
- package/es/notification/Notification.vue2.js +45 -45
- package/es/numberanimation/NumberAnimation.vue.js +17 -17
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/Pagination.vue2.js +124 -124
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.vue.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +58 -58
- package/es/popover/Popover.css +1 -1
- package/es/popover/Popover.vue.js +2 -2
- package/es/popover/Popover.vue2.js +20 -20
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +81 -81
- package/es/qrcode/QRCode.css +1 -1
- package/es/qrcode/QRCode.vue.js +3 -3
- package/es/qrcode/QRCode.vue2.js +18 -18
- package/es/radio/Radio.css +1 -1
- package/es/radio/Radio.vue.js +2 -2
- package/es/radio/Radio.vue2.js +88 -88
- package/es/rate/Rate.css +1 -1
- package/es/rate/Rate.vue.js +1 -1
- package/es/rate/Rate.vue2.js +90 -90
- package/es/result/Result.css +1 -1
- package/es/result/Result.vue.js +2 -2
- package/es/result/Result.vue2.js +51 -51
- package/es/scrollbar/Scrollbar.css +1 -1
- package/es/scrollbar/Scrollbar.vue.js +1 -1
- package/es/scrollbar/Scrollbar.vue2.js +106 -106
- package/es/segmented/Segmented.css +1 -1
- package/es/segmented/Segmented.vue.js +2 -2
- package/es/segmented/Segmented.vue2.js +51 -51
- package/es/select/Select.css +1 -1
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +157 -157
- package/es/skeleton/Skeleton.css +1 -1
- package/es/skeleton/Skeleton.vue.js +2 -2
- package/es/skeleton/Skeleton.vue2.js +61 -61
- package/es/slider/Slider.css +1 -1
- package/es/slider/Slider.vue.js +2 -2
- package/es/slider/Slider.vue2.js +195 -195
- package/es/space/Space.css +1 -1
- package/es/space/Space.vue.js +2 -2
- package/es/space/Space.vue2.js +7 -7
- package/es/spin/Spin.css +1 -1
- package/es/spin/Spin.vue.js +2 -2
- package/es/spin/Spin.vue2.js +67 -67
- package/es/statistic/Statistic.css +1 -1
- package/es/statistic/Statistic.vue.js +2 -2
- package/es/statistic/Statistic.vue2.js +21 -21
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/steps/Steps.vue2.js +35 -35
- package/es/swiper/Swiper.css +1 -1
- package/es/swiper/Swiper.vue.js +1 -1
- package/es/swiper/Swiper.vue2.js +89 -89
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.vue.js +1 -1
- package/es/switch/Switch.vue2.js +32 -32
- package/es/table/Table.css +1 -1
- package/es/table/Table.vue.js +2 -2
- package/es/table/Table.vue2.js +686 -687
- package/es/tabs/Tabs.css +1 -1
- package/es/tabs/Tabs.vue.js +2 -2
- package/es/tabs/Tabs.vue2.js +91 -91
- package/es/tag/Tag.css +1 -1
- package/es/tag/Tag.vue.js +1 -1
- package/es/tag/Tag.vue2.js +91 -91
- package/es/textarea/Textarea.css +1 -1
- package/es/textarea/Textarea.vue.js +1 -1
- package/es/textarea/Textarea.vue2.js +37 -37
- package/es/textscroll/TextScroll.css +1 -1
- package/es/textscroll/TextScroll.vue.js +2 -2
- package/es/textscroll/TextScroll.vue2.js +100 -100
- package/es/timeline/Timeline.css +1 -1
- package/es/timeline/Timeline.vue.js +2 -2
- package/es/timeline/Timeline.vue2.js +24 -24
- package/es/tooltip/Tooltip.css +1 -1
- package/es/tooltip/Tooltip.vue.js +2 -2
- package/es/tooltip/Tooltip.vue2.js +129 -129
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.vue.js +2 -2
- package/es/upload/Upload.vue2.js +137 -137
- package/es/utils/resolver.js +3 -3
- package/es/video/Video.css +1 -1
- package/es/video/Video.vue.js +2 -2
- package/es/video/Video.vue2.js +44 -44
- package/es/waterfall/Waterfall.css +1 -1
- package/es/waterfall/Waterfall.vue.js +2 -2
- package/es/waterfall/Waterfall.vue2.js +54 -54
- package/lib/alert/Alert.css +1 -1
- package/lib/alert/Alert.vue.cjs +1 -1
- package/lib/alert/Alert.vue2.cjs +2 -2
- package/lib/avatar/Avatar.css +1 -1
- package/lib/avatar/Avatar.vue.cjs +1 -1
- package/lib/avatar/Avatar.vue2.cjs +1 -1
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +6 -6
- package/lib/badge/Badge.css +1 -1
- package/lib/badge/Badge.vue.cjs +1 -1
- package/lib/badge/Badge.vue2.cjs +1 -1
- package/lib/breadcrumb/Breadcrumb.css +1 -1
- package/lib/breadcrumb/Breadcrumb.vue.cjs +1 -1
- package/lib/breadcrumb/Breadcrumb.vue2.cjs +2 -2
- package/lib/button/Button.css +1 -1
- package/lib/button/Button.vue.cjs +1 -1
- package/lib/button/Button.vue2.cjs +3 -3
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -5
- package/lib/card/Card.css +1 -1
- package/lib/card/Card.vue.cjs +1 -1
- package/lib/card/Card.vue2.cjs +1 -1
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/Carousel.vue2.cjs +7 -7
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +8 -0
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/Cascader.vue2.cjs +1 -1
- package/lib/cascader/index.d.ts +12 -0
- package/lib/checkbox/Checkbox.css +1 -1
- package/lib/checkbox/Checkbox.vue.cjs +1 -1
- package/lib/checkbox/Checkbox.vue2.cjs +1 -1
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/collapse/Collapse.vue2.cjs +1 -1
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
- package/lib/configprovider/ConfigProvider.vue.cjs +1 -1
- package/lib/countdown/Countdown.css +1 -1
- package/lib/countdown/Countdown.vue.cjs +1 -1
- package/lib/countdown/Countdown.vue2.cjs +1 -1
- package/lib/datepicker/DatePicker.css +1 -1
- package/lib/datepicker/DatePicker.vue.cjs +1 -1
- package/lib/datepicker/DatePicker.vue2.cjs +5 -5
- package/lib/descriptions/descriptions/Descriptions.css +1 -1
- package/lib/descriptions/descriptions/Descriptions.vue.cjs +1 -1
- package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.vue.cjs +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.vue2.cjs +1 -1
- package/lib/dialog/Dialog.css +1 -1
- package/lib/dialog/Dialog.vue.cjs +1 -1
- package/lib/dialog/Dialog.vue2.cjs +1 -1
- package/lib/divider/Divider.css +1 -1
- package/lib/divider/Divider.vue.cjs +1 -1
- package/lib/divider/Divider.vue2.cjs +1 -1
- package/lib/drawer/Drawer.css +1 -1
- package/lib/drawer/Drawer.vue.cjs +1 -1
- package/lib/drawer/Drawer.vue2.cjs +1 -1
- package/lib/ellipsis/Ellipsis.css +1 -1
- package/lib/ellipsis/Ellipsis.vue.cjs +1 -1
- package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
- package/lib/empty/Empty.css +1 -1
- package/lib/empty/Empty.vue.cjs +1 -1
- package/lib/empty/Empty.vue2.cjs +1 -1
- package/lib/flex/Flex.css +1 -1
- package/lib/flex/Flex.vue.cjs +1 -1
- package/lib/flex/Flex.vue2.cjs +8 -8
- package/lib/floatbutton/FloatButton.css +1 -1
- package/lib/floatbutton/FloatButton.vue.cjs +1 -1
- package/lib/floatbutton/FloatButton.vue2.cjs +5 -5
- package/lib/gradienttext/GradientText.css +1 -1
- package/lib/gradienttext/GradientText.vue.cjs +1 -1
- package/lib/gradienttext/GradientText.vue2.cjs +1 -1
- package/lib/grid/col/Col.css +1 -1
- package/lib/grid/col/Col.vue.cjs +1 -1
- package/lib/grid/col/Col.vue2.cjs +1 -1
- package/lib/grid/row/Row.css +1 -1
- package/lib/grid/row/Row.vue.cjs +1 -1
- package/lib/grid/row/Row.vue2.cjs +1 -1
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input/Input.vue2.cjs +5 -5
- package/lib/inputnumber/InputNumber.css +1 -1
- package/lib/inputnumber/InputNumber.vue.cjs +1 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +6 -6
- package/lib/inputsearch/InputSearch.css +1 -1
- package/lib/inputsearch/InputSearch.vue.cjs +1 -1
- package/lib/inputsearch/InputSearch.vue2.cjs +2 -2
- package/lib/list/list/List.css +1 -1
- package/lib/list/list/List.vue.cjs +1 -1
- package/lib/list/list/List.vue2.cjs +1 -1
- package/lib/list/listitem/ListItem.css +1 -1
- package/lib/list/listitem/ListItem.vue.cjs +1 -1
- package/lib/list/listitem/ListItem.vue2.cjs +1 -1
- package/lib/loadingbar/LoadingBar.css +1 -1
- package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
- package/lib/loadingbar/LoadingBar.vue2.cjs +3 -3
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +2 -2
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +2 -2
- package/lib/numberanimation/NumberAnimation.vue.cjs +1 -1
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
- package/lib/popover/Popover.css +1 -1
- package/lib/popover/Popover.vue.cjs +1 -1
- package/lib/popover/Popover.vue2.cjs +1 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +9 -9
- package/lib/qrcode/QRCode.css +1 -1
- package/lib/qrcode/QRCode.vue.cjs +1 -1
- package/lib/qrcode/QRCode.vue2.cjs +1 -1
- package/lib/radio/Radio.css +1 -1
- package/lib/radio/Radio.vue.cjs +1 -1
- package/lib/radio/Radio.vue2.cjs +4 -4
- package/lib/rate/Rate.css +1 -1
- package/lib/rate/Rate.vue.cjs +1 -1
- package/lib/rate/Rate.vue2.cjs +1 -1
- package/lib/result/Result.css +1 -1
- package/lib/result/Result.vue.cjs +1 -1
- package/lib/result/Result.vue2.cjs +1 -1
- package/lib/scrollbar/Scrollbar.css +1 -1
- package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
- package/lib/scrollbar/Scrollbar.vue2.cjs +5 -5
- package/lib/segmented/Segmented.css +1 -1
- package/lib/segmented/Segmented.vue.cjs +1 -1
- package/lib/segmented/Segmented.vue2.cjs +1 -1
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +4 -4
- package/lib/skeleton/Skeleton.css +1 -1
- package/lib/skeleton/Skeleton.vue.cjs +1 -1
- package/lib/skeleton/Skeleton.vue2.cjs +1 -1
- package/lib/slider/Slider.css +1 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +7 -7
- package/lib/space/Space.css +1 -1
- package/lib/space/Space.vue.cjs +1 -1
- package/lib/space/Space.vue2.cjs +1 -1
- package/lib/spin/Spin.css +1 -1
- package/lib/spin/Spin.vue.cjs +1 -1
- package/lib/spin/Spin.vue2.cjs +5 -5
- package/lib/statistic/Statistic.css +1 -1
- package/lib/statistic/Statistic.vue.cjs +1 -1
- package/lib/statistic/Statistic.vue2.cjs +1 -1
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +3 -3
- package/lib/swiper/Swiper.css +1 -1
- package/lib/swiper/Swiper.vue.cjs +1 -1
- package/lib/swiper/Swiper.vue2.cjs +13 -13
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +5 -5
- package/lib/table/Table.css +1 -1
- package/lib/table/Table.vue.cjs +1 -1
- package/lib/table/Table.vue2.cjs +1 -1
- package/lib/tabs/Tabs.css +1 -1
- package/lib/tabs/Tabs.vue.cjs +1 -1
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/tag/Tag.css +1 -1
- package/lib/tag/Tag.vue.cjs +1 -1
- package/lib/tag/Tag.vue2.cjs +1 -1
- package/lib/textarea/Textarea.css +1 -1
- package/lib/textarea/Textarea.vue.cjs +1 -1
- package/lib/textarea/Textarea.vue2.cjs +4 -4
- package/lib/textscroll/TextScroll.css +1 -1
- package/lib/textscroll/TextScroll.vue.cjs +1 -1
- package/lib/textscroll/TextScroll.vue2.cjs +9 -9
- package/lib/timeline/Timeline.css +1 -1
- package/lib/timeline/Timeline.vue.cjs +1 -1
- package/lib/timeline/Timeline.vue2.cjs +1 -1
- package/lib/tooltip/Tooltip.css +1 -1
- package/lib/tooltip/Tooltip.vue.cjs +1 -1
- package/lib/tooltip/Tooltip.vue2.cjs +1 -1
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/lib/utils/resolver.cjs +1 -1
- package/lib/video/Video.css +1 -1
- package/lib/video/Video.vue.cjs +1 -1
- package/lib/video/Video.vue2.cjs +2 -2
- package/lib/waterfall/Waterfall.css +1 -1
- package/lib/waterfall/Waterfall.vue.cjs +1 -1
- package/lib/waterfall/Waterfall.vue2.cjs +4 -4
- package/package.json +21 -21
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
- /package/es/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
package/README.zh-CN.md
CHANGED
|
@@ -1,292 +1,292 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://themusecatcher.github.io/vue-amazing-ui/">
|
|
3
|
-
<img width="200" src="https://themusecatcher.github.io/vue-amazing-ui/amazing-logo.svg">
|
|
4
|
-
</a>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
<h1 align="center">Vue Amazing UI</h1>
|
|
8
|
-
<p align="center">一个 Vue 3 组件库</p>
|
|
9
|
-
<p align="center">主题可调,全量使用 TypeScript 和 SFC,支持 tree shaking</p>
|
|
10
|
-
<p align="center">有点意思</p>
|
|
11
|
-
<p align="center"><a href="README.md">English</a> | 中文</p>
|
|
12
|
-
|
|
13
|
-
## 文档
|
|
14
|
-
|
|
15
|
-
[Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
|
|
16
|
-
|
|
17
|
-
## 特性
|
|
18
|
-
|
|
19
|
-
- 组件库采用 `Vue@3.5.
|
|
20
|
-
- 目前共包含 `67` 个基础 `UI` 组件以及 `18` 个工具函数,并且持续探索更新中...
|
|
21
|
-
- 主题可调,你只需提供一个主题色,剩下的都交给我
|
|
22
|
-
- 顺便一提,它们全都可以 `treeshaking`
|
|
23
|
-
- `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
|
|
24
|
-
- 全部组件均采用单文件组件 `SFC`,可独立使用
|
|
25
|
-
- 开箱即用,不墨迹
|
|
26
|
-
|
|
27
|
-
## 安装
|
|
28
|
-
|
|
29
|
-
```sh
|
|
30
|
-
pnpm add vue-amazing-ui
|
|
31
|
-
# or
|
|
32
|
-
npm install vue-amazing-ui
|
|
33
|
-
# or
|
|
34
|
-
yarn add vue-amazing-ui
|
|
35
|
-
# or
|
|
36
|
-
bun add vue-amazing-ui
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## 使用组件
|
|
40
|
-
|
|
41
|
-
**全局完整注册(不推荐)**
|
|
42
|
-
|
|
43
|
-
_失去 `tree-shaking` 的能力,打包后有冗余代码_
|
|
44
|
-
|
|
45
|
-
```ts
|
|
46
|
-
import { createApp } from 'vue'
|
|
47
|
-
import App from './App.vue'
|
|
48
|
-
import VueAmazingUI from 'vue-amazing-ui'
|
|
49
|
-
import 'vue-amazing-ui/css'
|
|
50
|
-
|
|
51
|
-
const app = createApp(App)
|
|
52
|
-
app.use(VueAmazingUI)
|
|
53
|
-
app.mount('#app')
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**全局部分注册**
|
|
57
|
-
|
|
58
|
-
_这种情况下,只有导入的组件才会被打包_
|
|
59
|
-
|
|
60
|
-
```ts
|
|
61
|
-
import { createApp } from 'vue'
|
|
62
|
-
import App from './App.vue'
|
|
63
|
-
import { Button, Tag } from 'vue-amazing-ui'
|
|
64
|
-
import 'vue-amazing-ui/es/button/Button.css'
|
|
65
|
-
import 'vue-amazing-ui/es/tag/Tag.css'
|
|
66
|
-
|
|
67
|
-
const app = createApp(App)
|
|
68
|
-
app.use(Button).use(Tag)
|
|
69
|
-
app.mount('#app')
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**局部注册组件**
|
|
73
|
-
|
|
74
|
-
_这种情况下,也只有导入的组件才会被打包_
|
|
75
|
-
|
|
76
|
-
```vue
|
|
77
|
-
<script setup lang="ts">
|
|
78
|
-
import { Button, Tag } from 'vue-amazing-ui'
|
|
79
|
-
import 'vue-amazing-ui/es/button/Button.css'
|
|
80
|
-
import 'vue-amazing-ui/es/tag/Tag.css'
|
|
81
|
-
</script>
|
|
82
|
-
<template>
|
|
83
|
-
<Button>button</Button>
|
|
84
|
-
<Tag>tag</Tag>
|
|
85
|
-
</template>
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.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
|
-
|
|
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
|
-
```
|
|
98
|
-
|
|
99
|
-
**自动按需引入(强烈推荐)**
|
|
100
|
-
|
|
101
|
-
使用 [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) 插件来按需自动加载组件,插件会自动解析模板中的使用到的组件,并导入组件和样式
|
|
102
|
-
|
|
103
|
-
```sh
|
|
104
|
-
pnpm add unplugin-vue-components -D
|
|
105
|
-
# or
|
|
106
|
-
npm install unplugin-vue-components -D
|
|
107
|
-
# or
|
|
108
|
-
yarn add unplugin-vue-components -D
|
|
109
|
-
# or
|
|
110
|
-
bun add unplugin-vue-components -D
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
```ts
|
|
114
|
-
// vite.config.ts
|
|
115
|
-
import { defineConfig } from 'vite'
|
|
116
|
-
import vue from '@vitejs/plugin-vue'
|
|
117
|
-
import Components from 'unplugin-vue-components/vite'
|
|
118
|
-
// vue-amazing-ui 按需引入
|
|
119
|
-
import { VueAmazingUIResolver } from 'vue-amazing-ui'
|
|
120
|
-
|
|
121
|
-
// https://vitejs.dev/config/
|
|
122
|
-
export default defineConfig({
|
|
123
|
-
plugins: [
|
|
124
|
-
vue(),
|
|
125
|
-
Components({
|
|
126
|
-
resolvers: [
|
|
127
|
-
// auto import components from VueAmazingUI
|
|
128
|
-
VueAmazingUIResolver({
|
|
129
|
-
cjs: false // whether use commonjs build, default false
|
|
130
|
-
})
|
|
131
|
-
]
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
})
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
然后,你可以在代码中直接使用 `vue-amazing-ui` 的所有组件
|
|
138
|
-
|
|
139
|
-
```vue
|
|
140
|
-
<template>
|
|
141
|
-
<Button>button</Button>
|
|
142
|
-
<Tag>tag</Tag>
|
|
143
|
-
</template>
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## 使用类型
|
|
147
|
-
|
|
148
|
-
_所有类型均可直接从 `vue-amazing-ui` 中引入使用,无需任何额外安装_
|
|
149
|
-
|
|
150
|
-
```vue
|
|
151
|
-
<script setup lang="ts">
|
|
152
|
-
import { ref } from 'vue'
|
|
153
|
-
import type { ButtonProps } from 'vue-amazing-ui'
|
|
154
|
-
const shape = ref<ButtonProps['shape']>('default')
|
|
155
|
-
</script>
|
|
156
|
-
<template>
|
|
157
|
-
<Button :shape="shape">button</Button>
|
|
158
|
-
</template>
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
## 使用工具函数
|
|
162
|
-
|
|
163
|
-
```vue
|
|
164
|
-
<script setup lang="ts">
|
|
165
|
-
import {
|
|
166
|
-
dateFormat,
|
|
167
|
-
formatNumber,
|
|
168
|
-
rafTimeout,
|
|
169
|
-
cancelRaf,
|
|
170
|
-
throttle,
|
|
171
|
-
debounce,
|
|
172
|
-
add,
|
|
173
|
-
downloadFile,
|
|
174
|
-
toggleDark,
|
|
175
|
-
useEventListener,
|
|
176
|
-
useMutationObserver,
|
|
177
|
-
useScroll,
|
|
178
|
-
useFps,
|
|
179
|
-
useMediaQuery,
|
|
180
|
-
useResizeObserver,
|
|
181
|
-
useSlotsExist,
|
|
182
|
-
useInject,
|
|
183
|
-
useOptionsSupported
|
|
184
|
-
} from 'vue-amazing-ui'
|
|
185
|
-
</script>
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
## 项目
|
|
189
|
-
|
|
190
|
-
- 获取项目代码
|
|
191
|
-
|
|
192
|
-
```sh
|
|
193
|
-
git clone https://github.com/themusecatcher/vue-amazing-ui.git
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
- 安装依赖
|
|
197
|
-
|
|
198
|
-
```sh
|
|
199
|
-
cd vue-amazing-ui
|
|
200
|
-
|
|
201
|
-
pnpm i
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
- 启动项目
|
|
205
|
-
|
|
206
|
-
```sh
|
|
207
|
-
pnpm dev
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
- 启动文档
|
|
211
|
-
|
|
212
|
-
```sh
|
|
213
|
-
pnpm docs:dev
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
## 博客
|
|
217
|
-
|
|
218
|
-
[My CSDN Blogs](https://themusecatcher.blog.csdn.net)
|
|
219
|
-
|
|
220
|
-
## 赞助
|
|
221
|
-
|
|
222
|
-
`Vue Amazing UI` 是采用 `MIT` 许可的开源项目,使用完全免费。组件库及文档所有工作均由作者一人完成,开发迭代过程实属不易...为了组件库的健康可持续发展,非常期望能获得您的支持与赞助。
|
|
223
|
-
|
|
224
|
-
#### [成为赞助者](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
|
|
225
|
-
|
|
226
|
-
## 赞助者 🫡
|
|
227
|
-
|
|
228
|
-
所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️
|
|
229
|
-
|
|
230
|
-
<a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher" title="GitHub@themusecatcher"></a> <img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="WeChat@Ant" title="WeChat@Ant" /> <a href="https://github.com/nizhensh-i" target="_blank"><img width="64" height="64" src="./docs/public/avatar_2.jpg" alt="GitHub@nizhensh-i" title="GitHub@nizhensh-i"></a> <a href="https://github.com/beijin1949" target="_blank"><img width="64" height="64" src="./docs/public/avatar_3.png" alt="GitHub@beijin1949" title="GitHub@beijin1949"></a> <a href="https://github.com/JinZemin" target="_blank"><img width="64" height="64" src="./docs/public/avatar_4.png" alt="GitHub@JinZemin" title="GitHub@JinZemin"></a> <a href="hhttps://github.com/ye5840" target="_blank"><img width="64" height="64" src="./docs/public/avatar_5.png" alt="GitHub@ye5840" title="GitHub@ye5840"></a>
|
|
231
|
-
|
|
232
|
-
## 组件
|
|
233
|
-
|
|
234
|
-
| 名称 | 说明 | 名称 | 说明 |
|
|
235
|
-
| :-------------- | :--------- | :------------- | :--------- |
|
|
236
|
-
| Alert | 警告提示 | Avatar | 头像 |
|
|
237
|
-
| BackTop | 回到顶部 | Badge | 徽标 |
|
|
238
|
-
| Breadcrumb | 面包屑 | Button | 按钮 |
|
|
239
|
-
| Calendar | 日历 | Card | 卡片 |
|
|
240
|
-
| Carousel | 轮播图 | Cascader | 级联选择 |
|
|
241
|
-
| Checkbox | 复选框 | Collapse | 折叠面板 |
|
|
242
|
-
| ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置 |
|
|
243
|
-
| Countdown | 倒计时 | DatePicker | 日期选择器 |
|
|
244
|
-
| Descriptions | 描述列表 | Dialog | 对话框 |
|
|
245
|
-
| Divider | 分割线 | Drawer | 抽屉 |
|
|
246
|
-
| Ellipsis | 文本省略 | Empty | 空状态 |
|
|
247
|
-
| Flex | 弹性布局 | FloatButton | 浮动按钮 |
|
|
248
|
-
| GradientText | 渐变文字 | Grid | 栅格 |
|
|
249
|
-
| Highlight | 高亮文本 | Image | 图片 |
|
|
250
|
-
| Input | 输入框 | InputNumber | 数字输入框 |
|
|
251
|
-
| InputSearch | 搜索框 | List | 列表 |
|
|
252
|
-
| LoadingBar | 加载条 | Message | 全局提示 |
|
|
253
|
-
| Modal | 模态框 | Notification | 通知提醒 |
|
|
254
|
-
| NumberAnimation | 数值动画 | Pagination | 分页 |
|
|
255
|
-
| Popconfirm | 弹出确认 | Popover | 气泡卡片 |
|
|
256
|
-
| Progress | 进度条 | QRCode | 二维码 |
|
|
257
|
-
| Radio | 单选框 | Rate | 评分 |
|
|
258
|
-
| Result | 结果 | Scrollbar | 滚动条 |
|
|
259
|
-
| Segmented | 分段控制器 | Select | 选择器 |
|
|
260
|
-
| Skeleton | 骨架屏 | Slider | 滑动输入条 |
|
|
261
|
-
| Space | 间距 | Spin | 加载中 |
|
|
262
|
-
| Statistic | 统计数值 | Steps | 步骤条 |
|
|
263
|
-
| Swiper | 触摸滑动 | Switch | 开关 |
|
|
264
|
-
| Table | 表格 | Tabs | 标签页 |
|
|
265
|
-
| Tag | 标签 | Textarea | 文本域 |
|
|
266
|
-
| TextScroll | 文字滚动 | Timeline | 时间轴 |
|
|
267
|
-
| Tooltip | 文字提示 | Upload | 上传 |
|
|
268
|
-
| Video | 播放器 | Waterfall | 瀑布流 |
|
|
269
|
-
| Watermark | 水印 |
|
|
270
|
-
|
|
271
|
-
## 工具函数
|
|
272
|
-
|
|
273
|
-
| 名称 | 说明 | 类型 |
|
|
274
|
-
| :-- | :-- | :-- |
|
|
275
|
-
| dateFormat | 格式化日期时间字符串函数 | (value: number | string | Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
|
|
276
|
-
| formatNumber | 数字格式化函数 | (value: number | string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
|
|
277
|
-
| rafTimeout | 使用 `requestAnimationFrame` 实现的延迟 `setTimeout` 或间隔 `setInterval` 调用函数 | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
|
|
278
|
-
| cancelRaf | 用于取消 `rafTimeout` 函数 | (raf: { id: number }) => void |
|
|
279
|
-
| throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
|
|
280
|
-
| debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
|
|
281
|
-
| add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
|
|
282
|
-
| downloadFile | 下载文件并自定义文件名,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string) => void |
|
|
283
|
-
| toggleDark | 一键切换暗黑模式函数 | () => void |
|
|
284
|
-
| useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement | Window | Document, event: string, callback: Function) => void |
|
|
285
|
-
| useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
286
|
-
| useScroll | 实时监测目标元素滚动位置及状态 | (target: Ref | HTMLElement | Window | Document = window, throttleDelay: number = 0, onScroll?: (e: Event) => void, onStop?: (e: Event) => void) => { x: Ref\<number>, xScrollMax: Ref\<number>, y: Ref\<number>, yScrollMax: Ref\<number>, isScrolling: Ref\<boolean>, left: Ref\<boolean>, right: Ref\<boolean>, top: Ref\<boolean>, bottom: Ref\<boolean> } |
|
|
287
|
-
| useFps | 实时监测浏览器刷新率FPS | () => { fps: Ref\<number> } |
|
|
288
|
-
| useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => { match: Ref\<boolean> } |
|
|
289
|
-
| useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
290
|
-
| useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string | string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
|
|
291
|
-
| useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
292
|
-
| useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://themusecatcher.github.io/vue-amazing-ui/">
|
|
3
|
+
<img width="200" src="https://themusecatcher.github.io/vue-amazing-ui/amazing-logo.svg">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<h1 align="center">Vue Amazing UI</h1>
|
|
8
|
+
<p align="center">一个 Vue 3 组件库</p>
|
|
9
|
+
<p align="center">主题可调,全量使用 TypeScript 和 SFC,支持 tree shaking</p>
|
|
10
|
+
<p align="center">有点意思</p>
|
|
11
|
+
<p align="center"><a href="README.md">English</a> | 中文</p>
|
|
12
|
+
|
|
13
|
+
## 文档
|
|
14
|
+
|
|
15
|
+
[Vue Amazing UI](https://themusecatcher.github.io/vue-amazing-ui/)
|
|
16
|
+
|
|
17
|
+
## 特性
|
|
18
|
+
|
|
19
|
+
- 组件库采用 `Vue@3.5.22`+ `TypeScript@5.9.3` + `Vite@7.1.10` + `Less@4.4.2` 实现
|
|
20
|
+
- 目前共包含 `67` 个基础 `UI` 组件以及 `18` 个工具函数,并且持续探索更新中...
|
|
21
|
+
- 主题可调,你只需提供一个主题色,剩下的都交给我
|
|
22
|
+
- 顺便一提,它们全都可以 `treeshaking`
|
|
23
|
+
- `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
|
|
24
|
+
- 全部组件均采用单文件组件 `SFC`,可独立使用
|
|
25
|
+
- 开箱即用,不墨迹
|
|
26
|
+
|
|
27
|
+
## 安装
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pnpm add vue-amazing-ui
|
|
31
|
+
# or
|
|
32
|
+
npm install vue-amazing-ui
|
|
33
|
+
# or
|
|
34
|
+
yarn add vue-amazing-ui
|
|
35
|
+
# or
|
|
36
|
+
bun add vue-amazing-ui
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 使用组件
|
|
40
|
+
|
|
41
|
+
**全局完整注册(不推荐)**
|
|
42
|
+
|
|
43
|
+
_失去 `tree-shaking` 的能力,打包后有冗余代码_
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
import { createApp } from 'vue'
|
|
47
|
+
import App from './App.vue'
|
|
48
|
+
import VueAmazingUI from 'vue-amazing-ui'
|
|
49
|
+
import 'vue-amazing-ui/css'
|
|
50
|
+
|
|
51
|
+
const app = createApp(App)
|
|
52
|
+
app.use(VueAmazingUI)
|
|
53
|
+
app.mount('#app')
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**全局部分注册**
|
|
57
|
+
|
|
58
|
+
_这种情况下,只有导入的组件才会被打包_
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
import { createApp } from 'vue'
|
|
62
|
+
import App from './App.vue'
|
|
63
|
+
import { Button, Tag } from 'vue-amazing-ui'
|
|
64
|
+
import 'vue-amazing-ui/es/button/Button.css'
|
|
65
|
+
import 'vue-amazing-ui/es/tag/Tag.css'
|
|
66
|
+
|
|
67
|
+
const app = createApp(App)
|
|
68
|
+
app.use(Button).use(Tag)
|
|
69
|
+
app.mount('#app')
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**局部注册组件**
|
|
73
|
+
|
|
74
|
+
_这种情况下,也只有导入的组件才会被打包_
|
|
75
|
+
|
|
76
|
+
```vue
|
|
77
|
+
<script setup lang="ts">
|
|
78
|
+
import { Button, Tag } from 'vue-amazing-ui'
|
|
79
|
+
import 'vue-amazing-ui/es/button/Button.css'
|
|
80
|
+
import 'vue-amazing-ui/es/tag/Tag.css'
|
|
81
|
+
</script>
|
|
82
|
+
<template>
|
|
83
|
+
<Button>button</Button>
|
|
84
|
+
<Tag>tag</Tag>
|
|
85
|
+
</template>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.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
|
+
|
|
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
|
+
```
|
|
98
|
+
|
|
99
|
+
**自动按需引入(强烈推荐)**
|
|
100
|
+
|
|
101
|
+
使用 [`unplugin-vue-components`](https://github.com/unplugin/unplugin-vue-components) 插件来按需自动加载组件,插件会自动解析模板中的使用到的组件,并导入组件和样式
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
pnpm add unplugin-vue-components -D
|
|
105
|
+
# or
|
|
106
|
+
npm install unplugin-vue-components -D
|
|
107
|
+
# or
|
|
108
|
+
yarn add unplugin-vue-components -D
|
|
109
|
+
# or
|
|
110
|
+
bun add unplugin-vue-components -D
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
// vite.config.ts
|
|
115
|
+
import { defineConfig } from 'vite'
|
|
116
|
+
import vue from '@vitejs/plugin-vue'
|
|
117
|
+
import Components from 'unplugin-vue-components/vite'
|
|
118
|
+
// vue-amazing-ui 按需引入
|
|
119
|
+
import { VueAmazingUIResolver } from 'vue-amazing-ui'
|
|
120
|
+
|
|
121
|
+
// https://vitejs.dev/config/
|
|
122
|
+
export default defineConfig({
|
|
123
|
+
plugins: [
|
|
124
|
+
vue(),
|
|
125
|
+
Components({
|
|
126
|
+
resolvers: [
|
|
127
|
+
// auto import components from VueAmazingUI
|
|
128
|
+
VueAmazingUIResolver({
|
|
129
|
+
cjs: false // whether use commonjs build, default false
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
})
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
然后,你可以在代码中直接使用 `vue-amazing-ui` 的所有组件
|
|
138
|
+
|
|
139
|
+
```vue
|
|
140
|
+
<template>
|
|
141
|
+
<Button>button</Button>
|
|
142
|
+
<Tag>tag</Tag>
|
|
143
|
+
</template>
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## 使用类型
|
|
147
|
+
|
|
148
|
+
_所有类型均可直接从 `vue-amazing-ui` 中引入使用,无需任何额外安装_
|
|
149
|
+
|
|
150
|
+
```vue
|
|
151
|
+
<script setup lang="ts">
|
|
152
|
+
import { ref } from 'vue'
|
|
153
|
+
import type { ButtonProps } from 'vue-amazing-ui'
|
|
154
|
+
const shape = ref<ButtonProps['shape']>('default')
|
|
155
|
+
</script>
|
|
156
|
+
<template>
|
|
157
|
+
<Button :shape="shape">button</Button>
|
|
158
|
+
</template>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## 使用工具函数
|
|
162
|
+
|
|
163
|
+
```vue
|
|
164
|
+
<script setup lang="ts">
|
|
165
|
+
import {
|
|
166
|
+
dateFormat,
|
|
167
|
+
formatNumber,
|
|
168
|
+
rafTimeout,
|
|
169
|
+
cancelRaf,
|
|
170
|
+
throttle,
|
|
171
|
+
debounce,
|
|
172
|
+
add,
|
|
173
|
+
downloadFile,
|
|
174
|
+
toggleDark,
|
|
175
|
+
useEventListener,
|
|
176
|
+
useMutationObserver,
|
|
177
|
+
useScroll,
|
|
178
|
+
useFps,
|
|
179
|
+
useMediaQuery,
|
|
180
|
+
useResizeObserver,
|
|
181
|
+
useSlotsExist,
|
|
182
|
+
useInject,
|
|
183
|
+
useOptionsSupported
|
|
184
|
+
} from 'vue-amazing-ui'
|
|
185
|
+
</script>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## 项目
|
|
189
|
+
|
|
190
|
+
- 获取项目代码
|
|
191
|
+
|
|
192
|
+
```sh
|
|
193
|
+
git clone https://github.com/themusecatcher/vue-amazing-ui.git
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
- 安装依赖
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
cd vue-amazing-ui
|
|
200
|
+
|
|
201
|
+
pnpm i
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
- 启动项目
|
|
205
|
+
|
|
206
|
+
```sh
|
|
207
|
+
pnpm dev
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
- 启动文档
|
|
211
|
+
|
|
212
|
+
```sh
|
|
213
|
+
pnpm docs:dev
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## 博客
|
|
217
|
+
|
|
218
|
+
[My CSDN Blogs](https://themusecatcher.blog.csdn.net)
|
|
219
|
+
|
|
220
|
+
## 赞助
|
|
221
|
+
|
|
222
|
+
`Vue Amazing UI` 是采用 `MIT` 许可的开源项目,使用完全免费。组件库及文档所有工作均由作者一人完成,开发迭代过程实属不易...为了组件库的健康可持续发展,非常期望能获得您的支持与赞助。
|
|
223
|
+
|
|
224
|
+
#### [成为赞助者](https://themusecatcher.github.io/vue-amazing-ui/sponsor/charge.html)
|
|
225
|
+
|
|
226
|
+
## 赞助者 🫡
|
|
227
|
+
|
|
228
|
+
所有的赞助者都将出现在此处,非常感谢你们的支持与赞助 ❤️
|
|
229
|
+
|
|
230
|
+
<a href="https://github.com/themusecatcher" target="_blank"><img width="64" height="64" src="./docs/public/avatar.png" alt="GitHub@themusecatcher" title="GitHub@themusecatcher"></a> <img width="64" height="64" src="./docs/public/avatar_1.jpeg" alt="WeChat@Ant" title="WeChat@Ant" /> <a href="https://github.com/nizhensh-i" target="_blank"><img width="64" height="64" src="./docs/public/avatar_2.jpg" alt="GitHub@nizhensh-i" title="GitHub@nizhensh-i"></a> <a href="https://github.com/beijin1949" target="_blank"><img width="64" height="64" src="./docs/public/avatar_3.png" alt="GitHub@beijin1949" title="GitHub@beijin1949"></a> <a href="https://github.com/JinZemin" target="_blank"><img width="64" height="64" src="./docs/public/avatar_4.png" alt="GitHub@JinZemin" title="GitHub@JinZemin"></a> <a href="hhttps://github.com/ye5840" target="_blank"><img width="64" height="64" src="./docs/public/avatar_5.png" alt="GitHub@ye5840" title="GitHub@ye5840"></a>
|
|
231
|
+
|
|
232
|
+
## 组件
|
|
233
|
+
|
|
234
|
+
| 名称 | 说明 | 名称 | 说明 |
|
|
235
|
+
| :-------------- | :--------- | :------------- | :--------- |
|
|
236
|
+
| Alert | 警告提示 | Avatar | 头像 |
|
|
237
|
+
| BackTop | 回到顶部 | Badge | 徽标 |
|
|
238
|
+
| Breadcrumb | 面包屑 | Button | 按钮 |
|
|
239
|
+
| Calendar | 日历 | Card | 卡片 |
|
|
240
|
+
| Carousel | 轮播图 | Cascader | 级联选择 |
|
|
241
|
+
| Checkbox | 复选框 | Collapse | 折叠面板 |
|
|
242
|
+
| ColorPicker | 颜色选择器 | ConfigProvider | 全局化配置 |
|
|
243
|
+
| Countdown | 倒计时 | DatePicker | 日期选择器 |
|
|
244
|
+
| Descriptions | 描述列表 | Dialog | 对话框 |
|
|
245
|
+
| Divider | 分割线 | Drawer | 抽屉 |
|
|
246
|
+
| Ellipsis | 文本省略 | Empty | 空状态 |
|
|
247
|
+
| Flex | 弹性布局 | FloatButton | 浮动按钮 |
|
|
248
|
+
| GradientText | 渐变文字 | Grid | 栅格 |
|
|
249
|
+
| Highlight | 高亮文本 | Image | 图片 |
|
|
250
|
+
| Input | 输入框 | InputNumber | 数字输入框 |
|
|
251
|
+
| InputSearch | 搜索框 | List | 列表 |
|
|
252
|
+
| LoadingBar | 加载条 | Message | 全局提示 |
|
|
253
|
+
| Modal | 模态框 | Notification | 通知提醒 |
|
|
254
|
+
| NumberAnimation | 数值动画 | Pagination | 分页 |
|
|
255
|
+
| Popconfirm | 弹出确认 | Popover | 气泡卡片 |
|
|
256
|
+
| Progress | 进度条 | QRCode | 二维码 |
|
|
257
|
+
| Radio | 单选框 | Rate | 评分 |
|
|
258
|
+
| Result | 结果 | Scrollbar | 滚动条 |
|
|
259
|
+
| Segmented | 分段控制器 | Select | 选择器 |
|
|
260
|
+
| Skeleton | 骨架屏 | Slider | 滑动输入条 |
|
|
261
|
+
| Space | 间距 | Spin | 加载中 |
|
|
262
|
+
| Statistic | 统计数值 | Steps | 步骤条 |
|
|
263
|
+
| Swiper | 触摸滑动 | Switch | 开关 |
|
|
264
|
+
| Table | 表格 | Tabs | 标签页 |
|
|
265
|
+
| Tag | 标签 | Textarea | 文本域 |
|
|
266
|
+
| TextScroll | 文字滚动 | Timeline | 时间轴 |
|
|
267
|
+
| Tooltip | 文字提示 | Upload | 上传 |
|
|
268
|
+
| Video | 播放器 | Waterfall | 瀑布流 |
|
|
269
|
+
| Watermark | 水印 |
|
|
270
|
+
|
|
271
|
+
## 工具函数
|
|
272
|
+
|
|
273
|
+
| 名称 | 说明 | 类型 |
|
|
274
|
+
| :-- | :-- | :-- |
|
|
275
|
+
| dateFormat | 格式化日期时间字符串函数 | (value: number | string | Date = Date.now(), format: string = 'YYYY-MM-DD HH:mm:ss') => string |
|
|
276
|
+
| formatNumber | 数字格式化函数 | (value: number | string, precision: number = 2, separator: string = ',', decimal: string = '.', prefix?: string, suffix?: string) => string |
|
|
277
|
+
| rafTimeout | 使用 `requestAnimationFrame` 实现的延迟 `setTimeout` 或间隔 `setInterval` 调用函数 | (fn: Function, delay: number = 0, interval: boolean = false) => \{ id: number } |
|
|
278
|
+
| cancelRaf | 用于取消 `rafTimeout` 函数 | (raf: { id: number }) => void |
|
|
279
|
+
| throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
|
|
280
|
+
| debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
|
|
281
|
+
| add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
|
|
282
|
+
| downloadFile | 下载文件并自定义文件名,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string) => void |
|
|
283
|
+
| toggleDark | 一键切换暗黑模式函数 | () => void |
|
|
284
|
+
| useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement | Window | Document, event: string, callback: Function) => void |
|
|
285
|
+
| useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
286
|
+
| useScroll | 实时监测目标元素滚动位置及状态 | (target: Ref | HTMLElement | Window | Document = window, throttleDelay: number = 0, onScroll?: (e: Event) => void, onStop?: (e: Event) => void) => { x: Ref\<number>, xScrollMax: Ref\<number>, y: Ref\<number>, yScrollMax: Ref\<number>, isScrolling: Ref\<boolean>, left: Ref\<boolean>, right: Ref\<boolean>, top: Ref\<boolean>, bottom: Ref\<boolean> } |
|
|
287
|
+
| useFps | 实时监测浏览器刷新率FPS | () => { fps: Ref\<number> } |
|
|
288
|
+
| useMediaQuery | 使用媒体查询来判断当前环境是否符合指定的媒体查询条件 | (mediaQuery: string) => { match: Ref\<boolean> } |
|
|
289
|
+
| useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
|
|
290
|
+
| useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string | string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
|
|
291
|
+
| useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
|
|
292
|
+
| useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' | 'once' | 'passive' | 'signal') => { isSupported: Ref\<boolean> } |
|