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/es/image/Image.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Me, ref as
|
|
1
|
+
import { defineComponent as Me, ref as o, computed as te, watchEffect as Se, createElementBlock as f, openBlock as h, normalizeStyle as b, unref as H, createVNode as k, mergeProps as T, withCtx as C, Fragment as K, renderList as oe, withDirectives as M, normalizeClass as w, createCommentVNode as ie, createElementVNode as e, renderSlot as Le, createTextVNode as Be, toDisplayString as V, vShow as S, Transition as ne, withKeys as He, withModifiers as O, nextTick as Ve } from "vue";
|
|
2
2
|
import Re from "../space/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { useInject as
|
|
5
|
-
const
|
|
3
|
+
import ce from "../spin/index.js";
|
|
4
|
+
import { useInject as xe, downloadFile as Ze, add as j } from "../utils/index.js";
|
|
5
|
+
const $e = ["onLoad", "src", "alt"], Ae = ["onClick"], Ie = { class: "image-mask-info" }, De = { class: "mask-pre" }, Pe = { class: "preview-mask" }, Ee = { class: "preview-body" }, We = { class: "preview-operations" }, Ye = ["href", "title"], Xe = {
|
|
6
6
|
class: "icon-svg",
|
|
7
7
|
style: { transform: "rotate(90deg)" },
|
|
8
8
|
focusable: "false",
|
|
@@ -12,7 +12,7 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
12
12
|
fill: "currentColor",
|
|
13
13
|
"aria-hidden": "true",
|
|
14
14
|
viewBox: "64 64 896 896"
|
|
15
|
-
},
|
|
15
|
+
}, Ne = ["onLoad", "src", "alt"], Fe = /* @__PURE__ */ Me({
|
|
16
16
|
__name: "Image",
|
|
17
17
|
props: {
|
|
18
18
|
src: { default: void 0 },
|
|
@@ -35,68 +35,68 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
35
35
|
loop: { type: Boolean, default: !1 },
|
|
36
36
|
album: { type: Boolean, default: !1 }
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
38
|
+
setup(n, { expose: re }) {
|
|
39
|
+
const t = n, d = o([]), F = o(null), c = o(0), y = o(!1), R = o([]), x = o([]), U = o([]), q = o([]), z = o(0), i = o(1), Z = o(1), $ = o(1), G = o(0), J = o(0), s = o(0), u = o(0), g = o(0), p = o(0), A = o(0), I = o(0), D = o(0), P = o(0), E = o(0), W = o(0), { colorPalettes: se } = xe("Image"), m = te(() => d.value.length), ue = te(() => t.draggable ? "100ms" : "200ms");
|
|
40
40
|
Se(() => {
|
|
41
|
-
|
|
41
|
+
d.value = ve();
|
|
42
42
|
});
|
|
43
43
|
function ve() {
|
|
44
|
-
return Array.isArray(
|
|
44
|
+
return Array.isArray(t.src) ? t.src : [
|
|
45
45
|
{
|
|
46
|
-
src:
|
|
47
|
-
name:
|
|
46
|
+
src: t.src || "",
|
|
47
|
+
name: t.name
|
|
48
48
|
}
|
|
49
49
|
];
|
|
50
50
|
}
|
|
51
|
-
function de(
|
|
52
|
-
|
|
51
|
+
function de(l) {
|
|
52
|
+
x.value[l] = !0;
|
|
53
53
|
}
|
|
54
|
-
function me(
|
|
55
|
-
q.value[
|
|
54
|
+
function me(l) {
|
|
55
|
+
q.value[l] = !0;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
if (
|
|
60
|
-
return
|
|
57
|
+
function L(l) {
|
|
58
|
+
if (l) {
|
|
59
|
+
if (l.name)
|
|
60
|
+
return l.name;
|
|
61
61
|
{
|
|
62
|
-
const
|
|
63
|
-
return
|
|
62
|
+
const a = l.src.split("?")[0].split("/");
|
|
63
|
+
return a[a.length - 1];
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return Array.isArray(
|
|
67
|
+
function Q(l, a) {
|
|
68
|
+
return Array.isArray(l) ? typeof l[a] == "number" ? `${l[a]}px` : l[a] : typeof l == "number" ? `${l}px` : l;
|
|
69
69
|
}
|
|
70
|
-
function fe(
|
|
71
|
-
|
|
70
|
+
function fe(l) {
|
|
71
|
+
y.value && m.value > 1 && ((l.key === "ArrowLeft" || l.key === "ArrowUp") && ae(), (l.key === "ArrowRight" || l.key === "ArrowDown") && le());
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
74
|
-
i.value = 1,
|
|
73
|
+
async function _(l) {
|
|
74
|
+
i.value = 1, z.value = 0, s.value = 0, u.value = 0, y.value = !0, c.value = l, await Ve(), F.value?.focus();
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
preview:
|
|
76
|
+
re({
|
|
77
|
+
preview: _
|
|
78
78
|
});
|
|
79
79
|
function Y() {
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
function pe() {
|
|
83
|
-
const e = v.value[r.value];
|
|
84
|
-
$e(e.src, e.name);
|
|
80
|
+
y.value = !1;
|
|
85
81
|
}
|
|
86
82
|
function he() {
|
|
87
|
-
|
|
83
|
+
const l = d.value[c.value];
|
|
84
|
+
Ze(l.src, l.name);
|
|
88
85
|
}
|
|
89
86
|
function ge() {
|
|
90
|
-
i.value
|
|
87
|
+
i.value + t.zoomRatio > t.maxZoomScale ? i.value = t.maxZoomScale : i.value = j(i.value, t.zoomRatio);
|
|
88
|
+
}
|
|
89
|
+
function pe() {
|
|
90
|
+
i.value - t.zoomRatio < t.minZoomScale ? i.value = t.minZoomScale : i.value = j(i.value, -t.zoomRatio);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
i.value = 1, Z.value = 1, $.value = 1,
|
|
92
|
+
function B() {
|
|
93
|
+
i.value = 1, Z.value = 1, $.value = 1, z.value = 0, s.value = 0, u.value = 0;
|
|
94
94
|
}
|
|
95
95
|
function we() {
|
|
96
|
-
|
|
96
|
+
z.value += 90;
|
|
97
97
|
}
|
|
98
98
|
function ye() {
|
|
99
|
-
|
|
99
|
+
z.value -= 90;
|
|
100
100
|
}
|
|
101
101
|
function ze() {
|
|
102
102
|
Z.value *= -1;
|
|
@@ -104,68 +104,68 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
104
104
|
function be() {
|
|
105
105
|
$.value *= -1;
|
|
106
106
|
}
|
|
107
|
-
function ke(
|
|
108
|
-
const
|
|
109
|
-
i.value ===
|
|
107
|
+
function ke(l) {
|
|
108
|
+
const a = l.deltaY * t.zoomRatio * 0.1;
|
|
109
|
+
i.value === t.minZoomScale && a > 0 || i.value === t.maxZoomScale && a < 0 || (i.value - a < t.minZoomScale ? i.value = t.minZoomScale : i.value - a > t.maxZoomScale ? i.value = t.maxZoomScale : i.value = j(i.value, -a));
|
|
110
110
|
}
|
|
111
|
-
function Ce(
|
|
112
|
-
if (!
|
|
113
|
-
const
|
|
114
|
-
A.value =
|
|
111
|
+
function Ce(l) {
|
|
112
|
+
if (!l.target) return;
|
|
113
|
+
const v = l.target.getBoundingClientRect();
|
|
114
|
+
A.value = v.top, I.value = v.bottom, D.value = v.right, P.value = v.left, E.value = window.innerWidth, W.value = window.innerHeight, G.value = l.clientX, J.value = l.clientY, g.value = s.value, p.value = u.value, document.addEventListener("mousemove", X), document.addEventListener("mouseup", ee), X(l);
|
|
115
115
|
}
|
|
116
|
-
function X(
|
|
117
|
-
s.value =
|
|
118
|
-
}
|
|
119
|
-
function _() {
|
|
120
|
-
o.draggable ? (s.value > p.value + E.value - D.value && (s.value = p.value + E.value - D.value), s.value < p.value - P.value && (s.value = p.value - P.value), c.value > h.value + W.value - I.value && (c.value = h.value + W.value - I.value), c.value < h.value - A.value && (c.value = h.value - A.value)) : (s.value = 0, c.value = 0), document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", _);
|
|
116
|
+
function X(l) {
|
|
117
|
+
s.value = g.value + l.clientX - G.value, u.value = p.value + l.clientY - J.value;
|
|
121
118
|
}
|
|
122
119
|
function ee() {
|
|
123
|
-
|
|
120
|
+
t.draggable ? (s.value > g.value + E.value - D.value && (s.value = g.value + E.value - D.value), s.value < g.value - P.value && (s.value = g.value - P.value), u.value > p.value + W.value - I.value && (u.value = p.value + W.value - I.value), u.value < p.value - A.value && (u.value = p.value - A.value)) : (s.value = 0, u.value = 0), document.removeEventListener("mousemove", X), document.removeEventListener("mouseup", ee);
|
|
124
121
|
}
|
|
125
122
|
function ae() {
|
|
126
|
-
|
|
123
|
+
t.loop ? c.value = (c.value - 1 + m.value) % m.value : c.value > 0 && c.value--, B();
|
|
124
|
+
}
|
|
125
|
+
function le() {
|
|
126
|
+
t.loop ? c.value = (c.value + 1) % m.value : c.value < m.value - 1 && c.value++, B();
|
|
127
127
|
}
|
|
128
|
-
return (
|
|
128
|
+
return (l, a) => (h(), f("div", {
|
|
129
129
|
class: "image-wrap",
|
|
130
|
-
style:
|
|
130
|
+
style: b(`--image-primary-color: ${H(se)[5]};`)
|
|
131
131
|
}, [
|
|
132
|
-
|
|
133
|
-
default:
|
|
134
|
-
(
|
|
135
|
-
key:
|
|
136
|
-
class:
|
|
137
|
-
"image-bordered":
|
|
138
|
-
"image-hover-mask": !
|
|
132
|
+
k(H(Re), T({ gap: "small" }, n.spaceProps), {
|
|
133
|
+
default: C(() => [
|
|
134
|
+
(h(!0), f(K, null, oe(d.value, (v, r) => M((h(), f("div", {
|
|
135
|
+
key: r,
|
|
136
|
+
class: w(["image-container", {
|
|
137
|
+
"image-bordered": n.bordered,
|
|
138
|
+
"image-hover-mask": !n.disabled && (x.value[r] || R.value[r]?.naturalWidth)
|
|
139
139
|
}]),
|
|
140
|
-
style:
|
|
140
|
+
style: b(`width: ${Q(t.width, r)}; height: ${Q(t.height, r)};`)
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
spinning: !(
|
|
142
|
+
k(H(ce), T({
|
|
143
|
+
spinning: !(x.value[r] || R.value[r]?.naturalWidth),
|
|
144
144
|
color: "var(--image-primary-color)",
|
|
145
145
|
indicator: "dynamic-circle",
|
|
146
146
|
size: "small"
|
|
147
|
-
}, { ref_for: !0 },
|
|
148
|
-
default:
|
|
149
|
-
|
|
147
|
+
}, { ref_for: !0 }, n.spinProps), {
|
|
148
|
+
default: C(() => [
|
|
149
|
+
e("img", {
|
|
150
150
|
ref_for: !0,
|
|
151
151
|
ref_key: "imagesRef",
|
|
152
|
-
ref:
|
|
152
|
+
ref: R,
|
|
153
153
|
class: "image-item",
|
|
154
|
-
style:
|
|
155
|
-
onLoad: (N) => de(
|
|
156
|
-
src:
|
|
157
|
-
alt:
|
|
158
|
-
}, null, 44,
|
|
154
|
+
style: b(`object-fit: ${n.fit};`),
|
|
155
|
+
onLoad: (N) => de(r),
|
|
156
|
+
src: v.src,
|
|
157
|
+
alt: L(v)
|
|
158
|
+
}, null, 44, $e)
|
|
159
159
|
]),
|
|
160
160
|
_: 2
|
|
161
161
|
}, 1040, ["spinning"]),
|
|
162
|
-
|
|
162
|
+
n.disabled ? ie("", !0) : (h(), f("div", {
|
|
163
163
|
key: 0,
|
|
164
164
|
class: "image-mask",
|
|
165
|
-
onClick: (N) =>
|
|
165
|
+
onClick: (N) => _(r)
|
|
166
166
|
}, [
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
e("div", Ie, [
|
|
168
|
+
a[1] || (a[1] = e("svg", {
|
|
169
169
|
class: "eye-svg",
|
|
170
170
|
focusable: "false",
|
|
171
171
|
"data-icon": "eye",
|
|
@@ -175,30 +175,30 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
175
175
|
"aria-hidden": "true",
|
|
176
176
|
viewBox: "64 64 896 896"
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
e("path", { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" })
|
|
179
179
|
], -1)),
|
|
180
|
-
|
|
181
|
-
Le(
|
|
182
|
-
Be(
|
|
180
|
+
e("p", De, [
|
|
181
|
+
Le(l.$slots, "preview", {}, () => [
|
|
182
|
+
Be(V(n.preview), 1)
|
|
183
183
|
], !0)
|
|
184
184
|
])
|
|
185
185
|
])
|
|
186
|
-
], 8,
|
|
186
|
+
], 8, Ae))
|
|
187
187
|
], 6)), [
|
|
188
|
-
[
|
|
188
|
+
[S, !n.album || n.album && r === 0]
|
|
189
189
|
])), 128))
|
|
190
190
|
]),
|
|
191
191
|
_: 3
|
|
192
192
|
}, 16),
|
|
193
|
-
|
|
194
|
-
default:
|
|
195
|
-
|
|
196
|
-
[
|
|
193
|
+
k(ne, { name: "fade" }, {
|
|
194
|
+
default: C(() => [
|
|
195
|
+
M(e("div", Pe, null, 512), [
|
|
196
|
+
[S, y.value]
|
|
197
197
|
])
|
|
198
198
|
]),
|
|
199
199
|
_: 1
|
|
200
200
|
}),
|
|
201
|
-
|
|
201
|
+
k(ne, {
|
|
202
202
|
name: "zoom",
|
|
203
203
|
"enter-from-class": "zoom-enter",
|
|
204
204
|
"enter-active-class": "zoom-enter",
|
|
@@ -207,8 +207,8 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
207
207
|
"leave-active-class": "zoom-leave zoom-leave-active",
|
|
208
208
|
"leave-to-class": "zoom-leave zoom-leave-active"
|
|
209
209
|
}, {
|
|
210
|
-
default:
|
|
211
|
-
|
|
210
|
+
default: C(() => [
|
|
211
|
+
M(e("div", {
|
|
212
212
|
ref_key: "previewRef",
|
|
213
213
|
ref: F,
|
|
214
214
|
class: "preview-container",
|
|
@@ -220,23 +220,23 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
220
220
|
He(Y, ["esc"])
|
|
221
221
|
]
|
|
222
222
|
}, [
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
e("div", Ee, [
|
|
224
|
+
e("div", We, [
|
|
225
|
+
e("a", {
|
|
226
226
|
class: "preview-name",
|
|
227
|
-
href:
|
|
227
|
+
href: d.value[c.value].src,
|
|
228
228
|
target: "_blank",
|
|
229
|
-
title:
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
[
|
|
229
|
+
title: L(d.value[c.value])
|
|
230
|
+
}, V(L(d.value[c.value])), 9, Ye),
|
|
231
|
+
M(e("p", { class: "preview-progress" }, V(c.value + 1) + " / " + V(m.value), 513), [
|
|
232
|
+
[S, Array.isArray(n.src)]
|
|
233
233
|
]),
|
|
234
|
-
|
|
234
|
+
e("div", {
|
|
235
235
|
class: "preview-operation",
|
|
236
236
|
title: "关闭",
|
|
237
237
|
onClick: Y
|
|
238
|
-
}, [...
|
|
239
|
-
|
|
238
|
+
}, [...a[2] || (a[2] = [
|
|
239
|
+
e("svg", {
|
|
240
240
|
class: "icon-svg",
|
|
241
241
|
focusable: "false",
|
|
242
242
|
"data-icon": "close",
|
|
@@ -246,15 +246,15 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
246
246
|
"aria-hidden": "true",
|
|
247
247
|
viewBox: "64 64 896 896"
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
e("path", { d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" })
|
|
250
250
|
], -1)
|
|
251
251
|
])]),
|
|
252
|
-
|
|
253
|
-
class:
|
|
252
|
+
e("div", {
|
|
253
|
+
class: w(["preview-operation", { "operation-disabled": i.value === n.maxZoomScale }]),
|
|
254
254
|
title: "下载",
|
|
255
|
-
onClick:
|
|
256
|
-
}, [...
|
|
257
|
-
|
|
255
|
+
onClick: he
|
|
256
|
+
}, [...a[3] || (a[3] = [
|
|
257
|
+
e("svg", {
|
|
258
258
|
class: "icon-svg",
|
|
259
259
|
focusable: "false",
|
|
260
260
|
"data-icon": "download",
|
|
@@ -264,15 +264,15 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
264
264
|
"aria-hidden": "true",
|
|
265
265
|
viewBox: "64 64 896 896"
|
|
266
266
|
}, [
|
|
267
|
-
|
|
267
|
+
e("path", { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" })
|
|
268
268
|
], -1)
|
|
269
269
|
])], 2),
|
|
270
|
-
|
|
271
|
-
class:
|
|
270
|
+
e("div", {
|
|
271
|
+
class: w(["preview-operation", { "operation-disabled": i.value === n.maxZoomScale }]),
|
|
272
272
|
title: "放大",
|
|
273
|
-
onClick:
|
|
274
|
-
}, [...
|
|
275
|
-
|
|
273
|
+
onClick: ge
|
|
274
|
+
}, [...a[4] || (a[4] = [
|
|
275
|
+
e("svg", {
|
|
276
276
|
class: "icon-svg",
|
|
277
277
|
focusable: "false",
|
|
278
278
|
"data-icon": "zoom-in",
|
|
@@ -282,15 +282,15 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
282
282
|
"aria-hidden": "true",
|
|
283
283
|
viewBox: "64 64 896 896"
|
|
284
284
|
}, [
|
|
285
|
-
|
|
285
|
+
e("path", { d: "M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" })
|
|
286
286
|
], -1)
|
|
287
287
|
])], 2),
|
|
288
|
-
|
|
289
|
-
class:
|
|
288
|
+
e("div", {
|
|
289
|
+
class: w(["preview-operation", { "operation-disabled": i.value === n.minZoomScale }]),
|
|
290
290
|
title: "缩小",
|
|
291
|
-
onClick:
|
|
292
|
-
}, [...
|
|
293
|
-
|
|
291
|
+
onClick: pe
|
|
292
|
+
}, [...a[5] || (a[5] = [
|
|
293
|
+
e("svg", {
|
|
294
294
|
class: "icon-svg",
|
|
295
295
|
focusable: "false",
|
|
296
296
|
"data-icon": "zoom-out",
|
|
@@ -300,15 +300,15 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
300
300
|
"aria-hidden": "true",
|
|
301
301
|
viewBox: "64 64 896 896"
|
|
302
302
|
}, [
|
|
303
|
-
|
|
303
|
+
e("path", { d: "M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z" })
|
|
304
304
|
], -1)
|
|
305
305
|
])], 2),
|
|
306
|
-
|
|
306
|
+
e("div", {
|
|
307
307
|
class: "preview-operation",
|
|
308
308
|
title: "还原",
|
|
309
|
-
onClick:
|
|
310
|
-
}, [...
|
|
311
|
-
|
|
309
|
+
onClick: B
|
|
310
|
+
}, [...a[6] || (a[6] = [
|
|
311
|
+
e("svg", {
|
|
312
312
|
class: "icon-svg",
|
|
313
313
|
focusable: "false",
|
|
314
314
|
"data-icon": "expand",
|
|
@@ -318,15 +318,15 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
318
318
|
"aria-hidden": "true",
|
|
319
319
|
viewBox: "64 64 896 896"
|
|
320
320
|
}, [
|
|
321
|
-
|
|
321
|
+
e("path", { d: "M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z" })
|
|
322
322
|
], -1)
|
|
323
323
|
])]),
|
|
324
|
-
|
|
324
|
+
e("div", {
|
|
325
325
|
class: "preview-operation",
|
|
326
326
|
title: "向右旋转",
|
|
327
327
|
onClick: we
|
|
328
|
-
}, [...
|
|
329
|
-
|
|
328
|
+
}, [...a[7] || (a[7] = [
|
|
329
|
+
e("svg", {
|
|
330
330
|
class: "icon-svg",
|
|
331
331
|
focusable: "false",
|
|
332
332
|
"data-icon": "rotate-right",
|
|
@@ -336,16 +336,16 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
336
336
|
"aria-hidden": "true",
|
|
337
337
|
viewBox: "64 64 896 896"
|
|
338
338
|
}, [
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
e("path", { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" }),
|
|
340
|
+
e("path", { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" })
|
|
341
341
|
], -1)
|
|
342
342
|
])]),
|
|
343
|
-
|
|
343
|
+
e("div", {
|
|
344
344
|
class: "preview-operation",
|
|
345
345
|
title: "向左旋转",
|
|
346
346
|
onClick: ye
|
|
347
|
-
}, [...
|
|
348
|
-
|
|
347
|
+
}, [...a[8] || (a[8] = [
|
|
348
|
+
e("svg", {
|
|
349
349
|
class: "icon-svg",
|
|
350
350
|
focusable: "false",
|
|
351
351
|
"data-icon": "rotate-left",
|
|
@@ -355,16 +355,16 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
355
355
|
"aria-hidden": "true",
|
|
356
356
|
viewBox: "64 64 896 896"
|
|
357
357
|
}, [
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
e("path", { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" }),
|
|
359
|
+
e("path", { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" })
|
|
360
360
|
], -1)
|
|
361
361
|
])]),
|
|
362
|
-
|
|
362
|
+
e("div", {
|
|
363
363
|
class: "preview-operation",
|
|
364
364
|
title: "水平镜像",
|
|
365
365
|
onClick: ze
|
|
366
|
-
}, [...
|
|
367
|
-
|
|
366
|
+
}, [...a[9] || (a[9] = [
|
|
367
|
+
e("svg", {
|
|
368
368
|
class: "icon-svg",
|
|
369
369
|
focusable: "false",
|
|
370
370
|
"data-icon": "swap",
|
|
@@ -374,57 +374,57 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
374
374
|
"aria-hidden": "true",
|
|
375
375
|
viewBox: "64 64 896 896"
|
|
376
376
|
}, [
|
|
377
|
-
|
|
377
|
+
e("path", { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" })
|
|
378
378
|
], -1)
|
|
379
379
|
])]),
|
|
380
|
-
|
|
380
|
+
e("div", {
|
|
381
381
|
class: "preview-operation",
|
|
382
382
|
title: "垂直镜像",
|
|
383
383
|
onClick: be
|
|
384
384
|
}, [
|
|
385
|
-
(
|
|
386
|
-
|
|
385
|
+
(h(), f("svg", Xe, [...a[10] || (a[10] = [
|
|
386
|
+
e("path", { d: "M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" }, null, -1)
|
|
387
387
|
])]))
|
|
388
388
|
])
|
|
389
389
|
]),
|
|
390
|
-
(
|
|
391
|
-
key:
|
|
390
|
+
(h(!0), f(K, null, oe(d.value, (v, r) => M((h(), f("div", {
|
|
391
|
+
key: r,
|
|
392
392
|
class: "preview-image-container",
|
|
393
|
-
style:
|
|
393
|
+
style: b(`--drag-transition-duration: ${ue.value}; transform: translate3d(${s.value}px, ${u.value}px, 0px);`)
|
|
394
394
|
}, [
|
|
395
|
-
|
|
396
|
-
spinning: !(q.value[
|
|
395
|
+
k(H(ce), T({
|
|
396
|
+
spinning: !(q.value[r] || U.value[r]?.naturalWidth),
|
|
397
397
|
color: "var(--image-primary-color)",
|
|
398
398
|
indicator: "dynamic-circle"
|
|
399
|
-
}, { ref_for: !0 },
|
|
400
|
-
default:
|
|
401
|
-
|
|
399
|
+
}, { ref_for: !0 }, n.previewSpinProps), {
|
|
400
|
+
default: C(() => [
|
|
401
|
+
e("img", {
|
|
402
402
|
ref_for: !0,
|
|
403
403
|
ref_key: "previewImagesRef",
|
|
404
404
|
ref: U,
|
|
405
405
|
class: "preview-image",
|
|
406
|
-
style:
|
|
407
|
-
|
|
408
|
-
`transform: scale3d(${Z.value * i.value}, ${$.value * i.value}, 1) rotate(${
|
|
406
|
+
style: b([
|
|
407
|
+
n.previewImageStyle,
|
|
408
|
+
`transform: scale3d(${Z.value * i.value}, ${$.value * i.value}, 1) rotate(${z.value}deg);`
|
|
409
409
|
]),
|
|
410
|
-
onLoad: (N) => me(
|
|
411
|
-
src:
|
|
412
|
-
alt:
|
|
410
|
+
onLoad: (N) => me(r),
|
|
411
|
+
src: v.src,
|
|
412
|
+
alt: L(v),
|
|
413
413
|
onMousedown: O(Ce, ["prevent"]),
|
|
414
|
-
onDblclick:
|
|
415
|
-
}, null, 44,
|
|
414
|
+
onDblclick: a[0] || (a[0] = (N) => n.resetOnDbclick ? B() : () => !1)
|
|
415
|
+
}, null, 44, Ne)
|
|
416
416
|
]),
|
|
417
417
|
_: 2
|
|
418
418
|
}, 1040, ["spinning"])
|
|
419
419
|
], 4)), [
|
|
420
|
-
[
|
|
420
|
+
[S, c.value === r]
|
|
421
421
|
])), 128)),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
class:
|
|
425
|
-
onClick:
|
|
426
|
-
}, [...
|
|
427
|
-
|
|
422
|
+
m.value > 1 ? (h(), f(K, { key: 0 }, [
|
|
423
|
+
e("div", {
|
|
424
|
+
class: w(["switch-left", { "switch-disabled": c.value === 0 && !n.loop }]),
|
|
425
|
+
onClick: ae
|
|
426
|
+
}, [...a[11] || (a[11] = [
|
|
427
|
+
e("svg", {
|
|
428
428
|
class: "switch-svg",
|
|
429
429
|
focusable: "false",
|
|
430
430
|
"data-icon": "left",
|
|
@@ -434,14 +434,14 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
434
434
|
"aria-hidden": "true",
|
|
435
435
|
viewBox: "64 64 896 896"
|
|
436
436
|
}, [
|
|
437
|
-
|
|
437
|
+
e("path", { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" })
|
|
438
438
|
], -1)
|
|
439
439
|
])], 2),
|
|
440
|
-
|
|
441
|
-
class:
|
|
442
|
-
onClick:
|
|
443
|
-
}, [...
|
|
444
|
-
|
|
440
|
+
e("div", {
|
|
441
|
+
class: w(["switch-right", { "switch-disabled": c.value === m.value - 1 && !n.loop }]),
|
|
442
|
+
onClick: le
|
|
443
|
+
}, [...a[12] || (a[12] = [
|
|
444
|
+
e("svg", {
|
|
445
445
|
class: "switch-svg",
|
|
446
446
|
focusable: "false",
|
|
447
447
|
"data-icon": "right",
|
|
@@ -451,13 +451,13 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
451
451
|
"aria-hidden": "true",
|
|
452
452
|
viewBox: "64 64 896 896"
|
|
453
453
|
}, [
|
|
454
|
-
|
|
454
|
+
e("path", { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" })
|
|
455
455
|
], -1)
|
|
456
456
|
])], 2)
|
|
457
|
-
], 64)) :
|
|
457
|
+
], 64)) : ie("", !0)
|
|
458
458
|
])
|
|
459
459
|
], 544), [
|
|
460
|
-
[
|
|
460
|
+
[S, y.value]
|
|
461
461
|
])
|
|
462
462
|
]),
|
|
463
463
|
_: 1
|
|
@@ -466,5 +466,5 @@ const Ae = ["onLoad", "src", "alt"], Ie = ["onClick"], De = { class: "image-mask
|
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
export {
|
|
469
|
-
|
|
469
|
+
Fe as default
|
|
470
470
|
};
|