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/slider/Slider.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useInject as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as He, ref as y, computed as r, watch as ne, createElementBlock as p, openBlock as d, normalizeStyle as S, normalizeClass as R, unref as C, createElementVNode as L, createCommentVNode as I, Fragment as A, renderList as se, withModifiers as w, renderSlot as Ve, createBlock as Be, createTextVNode as q, toDisplayString as G, resolveDynamicComponent as Re, withKeys as x, isVNode as ue } from "vue";
|
|
2
|
+
import { useInject as Ce, useResizeObserver as De } from "../utils/index.js";
|
|
3
|
+
const Ee = { class: "slider-dots" }, Te = { class: "slider-marks" }, je = ["onClick"], Ne = /* @__PURE__ */ He({
|
|
4
4
|
__name: "Slider",
|
|
5
5
|
props: {
|
|
6
6
|
width: { default: "100%" },
|
|
@@ -15,23 +15,23 @@ const Te = { class: "slider-dots" }, je = { class: "slider-marks" }, Fe = ["onCl
|
|
|
15
15
|
tooltip: { type: Boolean, default: !0 },
|
|
16
16
|
tooltipOpen: { type: Boolean, default: !1 },
|
|
17
17
|
tooltipStyle: { default: () => ({}) },
|
|
18
|
-
formatTooltip: { type: Function, default: (
|
|
18
|
+
formatTooltip: { type: Function, default: (s) => s },
|
|
19
19
|
value: { default: 0 }
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:value", "change"],
|
|
22
|
-
setup(
|
|
23
|
-
const l =
|
|
22
|
+
setup(s, { emit: re }) {
|
|
23
|
+
const l = s, O = y(), Q = y(0), Z = y(0), n = y(0), o = y(0), M = y(), $ = y(), f = y(), c = y(), { colorPalettes: V } = Ce("Slider"), _ = re, v = r(() => l.vertical ? Z.value : Q.value), ve = r(() => l.vertical ? {
|
|
24
24
|
height: typeof l.height == "number" ? `${l.height}px` : l.height
|
|
25
25
|
} : {
|
|
26
26
|
width: typeof l.width == "number" ? `${l.width}px` : l.width
|
|
27
27
|
}), fe = r(() => l.vertical ? {
|
|
28
28
|
bottom: `${n.value}px`,
|
|
29
29
|
top: "auto",
|
|
30
|
-
height: `${
|
|
30
|
+
height: `${o.value - n.value}px`
|
|
31
31
|
} : {
|
|
32
32
|
left: `${n.value}px`,
|
|
33
33
|
right: "auto",
|
|
34
|
-
width: `${
|
|
34
|
+
width: `${o.value - n.value}px`
|
|
35
35
|
}), de = r(() => l.vertical ? {
|
|
36
36
|
bottom: `${n.value}px`,
|
|
37
37
|
top: "auto",
|
|
@@ -40,37 +40,37 @@ const Te = { class: "slider-dots" }, je = { class: "slider-marks" }, Fe = ["onCl
|
|
|
40
40
|
left: `${n.value}px`,
|
|
41
41
|
right: "auto",
|
|
42
42
|
transform: "translate(-50%, -50%)"
|
|
43
|
-
}),
|
|
44
|
-
bottom: `${
|
|
43
|
+
}), ce = r(() => l.vertical ? {
|
|
44
|
+
bottom: `${o.value}px`,
|
|
45
45
|
top: "auto",
|
|
46
46
|
transform: "translate(-50%, 50%)"
|
|
47
47
|
} : {
|
|
48
|
-
left: `${
|
|
48
|
+
left: `${o.value}px`,
|
|
49
49
|
right: "auto",
|
|
50
50
|
transform: "translate(-50%, -50%)"
|
|
51
|
-
}),
|
|
52
|
-
let
|
|
53
|
-
return
|
|
51
|
+
}), Y = r(() => Object.keys(l.marks).length > 0), m = r(() => {
|
|
52
|
+
let t = [];
|
|
53
|
+
return Y.value && (t = Object.keys(l.marks).map(parseFloat).sort((e, a) => e - a)), t;
|
|
54
54
|
}), B = r(() => {
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
}),
|
|
60
|
-
let
|
|
61
|
-
return
|
|
62
|
-
const
|
|
63
|
-
(
|
|
64
|
-
}),
|
|
55
|
+
const t = [];
|
|
56
|
+
return m.value.length > 0 && m.value.forEach((e) => {
|
|
57
|
+
t.push(xe(e));
|
|
58
|
+
}), t;
|
|
59
|
+
}), g = r(() => l.step === "mark" ? 1 : l.step), me = r(() => g.value.toString().split(".")[1]?.length ?? 0), ee = r(() => {
|
|
60
|
+
let t = 0;
|
|
61
|
+
return m.value.forEach((e) => {
|
|
62
|
+
const a = e.toString().split(".");
|
|
63
|
+
(a[1]?.length ?? 0 > t) && (t = a[1]?.length);
|
|
64
|
+
}), t;
|
|
65
65
|
}), P = r(() => {
|
|
66
|
-
if (
|
|
67
|
-
let
|
|
68
|
-
if (
|
|
69
|
-
let
|
|
70
|
-
return n.value === 0 ?
|
|
66
|
+
if (v.value === 0) return l.value;
|
|
67
|
+
let t;
|
|
68
|
+
if (o.value === v.value ? t = l.max : (t = le(o.value), l.step === "mark" ? t = H(t, m.value) : l.step > 1 && !m.value.includes(t) && (t = Math.round(t / l.step) * l.step)), l.range) {
|
|
69
|
+
let e;
|
|
70
|
+
return n.value === 0 ? e = l.min : (e = le(n.value), l.step === "mark" ? e = H(e, m.value) : l.step > 1 && !m.value.includes(e) && (e = Math.round(e / l.step) * l.step)), [e, t];
|
|
71
71
|
}
|
|
72
|
-
return
|
|
73
|
-
}),
|
|
72
|
+
return t;
|
|
73
|
+
}), he = r(() => l.range ? l.formatTooltip(P.value[0]) : null), pe = r(() => l.range ? l.formatTooltip(P.value[1]) : l.formatTooltip(P.value));
|
|
74
74
|
ne(
|
|
75
75
|
() => [l.min, l.max, l.step, l.vertical, l.value],
|
|
76
76
|
() => {
|
|
@@ -80,197 +80,197 @@ const Te = { class: "slider-dots" }, je = { class: "slider-marks" }, Fe = ["onCl
|
|
|
80
80
|
deep: !0,
|
|
81
81
|
flush: "post"
|
|
82
82
|
}
|
|
83
|
-
), ne(P, (
|
|
84
|
-
JSON.stringify(
|
|
85
|
-
}),
|
|
83
|
+
), ne(P, (t) => {
|
|
84
|
+
JSON.stringify(t) !== JSON.stringify(l.value) && (_("update:value", t), _("change", t));
|
|
85
|
+
}), De(O, () => {
|
|
86
86
|
ge();
|
|
87
87
|
});
|
|
88
88
|
function ge() {
|
|
89
89
|
Q.value = O.value.offsetWidth, Z.value = O.value.offsetHeight, te();
|
|
90
90
|
}
|
|
91
|
-
function be(
|
|
92
|
-
const
|
|
93
|
-
n.value =
|
|
91
|
+
function be(t) {
|
|
92
|
+
const e = h((we(t) - l.min) / g.value, "*");
|
|
93
|
+
n.value = b(e, 2);
|
|
94
94
|
}
|
|
95
|
-
function ke(
|
|
96
|
-
const
|
|
97
|
-
|
|
95
|
+
function ke(t) {
|
|
96
|
+
const e = h((Me(t) - l.min) / g.value, "*");
|
|
97
|
+
o.value = b(e, 2);
|
|
98
98
|
}
|
|
99
|
-
function ye(
|
|
100
|
-
const
|
|
101
|
-
|
|
99
|
+
function ye(t) {
|
|
100
|
+
const e = h((Se(t) - l.min) / g.value, "*");
|
|
101
|
+
o.value = b(e, 2);
|
|
102
102
|
}
|
|
103
103
|
function te() {
|
|
104
104
|
l.range ? (be(l.value[0]), ke(l.value[1])) : ye(l.value);
|
|
105
105
|
}
|
|
106
|
-
function we(
|
|
107
|
-
return
|
|
106
|
+
function we(t) {
|
|
107
|
+
return t < l.min ? l.min : t;
|
|
108
108
|
}
|
|
109
|
-
function Me(
|
|
110
|
-
return
|
|
109
|
+
function Me(t) {
|
|
110
|
+
return t > l.max ? l.max : t;
|
|
111
111
|
}
|
|
112
|
-
function Se(
|
|
113
|
-
return
|
|
112
|
+
function Se(t) {
|
|
113
|
+
return t < l.min ? l.min : t > l.max ? l.max : t;
|
|
114
114
|
}
|
|
115
|
-
function H(
|
|
116
|
-
if (!
|
|
115
|
+
function H(t, e) {
|
|
116
|
+
if (!Y.value)
|
|
117
117
|
return console.warn("Please set the marks property"), 0;
|
|
118
|
-
let
|
|
119
|
-
const
|
|
120
|
-
for (let N = 1; N <
|
|
121
|
-
const ie = Math.abs(
|
|
122
|
-
ie < i && (i = ie,
|
|
118
|
+
let a = e[0], i = Math.abs(t - a);
|
|
119
|
+
const u = e.length;
|
|
120
|
+
for (let N = 1; N < u; N++) {
|
|
121
|
+
const ie = Math.abs(t - e[N]);
|
|
122
|
+
ie < i && (i = ie, a = e[N]);
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return a;
|
|
125
125
|
}
|
|
126
|
-
function le(
|
|
127
|
-
const
|
|
128
|
-
return
|
|
126
|
+
function le(t) {
|
|
127
|
+
const e = h(t, "/") * g.value + l.min;
|
|
128
|
+
return m.value.includes(b(e, ee.value)) ? b(e, ee.value) : b(e, me.value);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const
|
|
132
|
-
return
|
|
130
|
+
function xe(t) {
|
|
131
|
+
const e = (t - l.min) / (l.max - l.min) * v.value;
|
|
132
|
+
return b(e, 2);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return parseFloat(
|
|
134
|
+
function b(t, e) {
|
|
135
|
+
return parseFloat(t.toFixed(e));
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function ae(t) {
|
|
138
|
+
t.classList.remove("show-handle-tooltip");
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function k(t, e) {
|
|
141
|
+
t.focus(), l.tooltip && !l.tooltipOpen && e.classList.add("show-handle-tooltip");
|
|
142
142
|
}
|
|
143
|
-
function D(
|
|
144
|
-
let
|
|
143
|
+
function D(t) {
|
|
144
|
+
let e, a;
|
|
145
145
|
if (l.vertical) {
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
146
|
+
e = O.value.getBoundingClientRect().bottom - t.clientY;
|
|
147
|
+
const u = Math.round(h(e, "/"));
|
|
148
|
+
a = b(h(u, "*"), 2);
|
|
149
149
|
} else {
|
|
150
150
|
const i = O.value.getBoundingClientRect().left;
|
|
151
|
-
|
|
152
|
-
const
|
|
153
|
-
|
|
151
|
+
e = t.clientX - i;
|
|
152
|
+
const u = Math.round(h(e, "/"));
|
|
153
|
+
a = b(h(u, "*"), 2);
|
|
154
154
|
}
|
|
155
155
|
return {
|
|
156
|
-
originalPosition:
|
|
157
|
-
stepPosition:
|
|
156
|
+
originalPosition: e,
|
|
157
|
+
stepPosition: a
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
162
|
-
const
|
|
163
|
-
return Math.abs(
|
|
160
|
+
function K(t, e) {
|
|
161
|
+
if (Y.value) {
|
|
162
|
+
const a = H(t, B.value);
|
|
163
|
+
return Math.abs(t - a) < Math.abs(t - e) ? a : e;
|
|
164
164
|
} else
|
|
165
|
-
return
|
|
165
|
+
return e;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function $e(t) {
|
|
168
168
|
const {
|
|
169
|
-
originalPosition:
|
|
169
|
+
originalPosition: e,
|
|
170
170
|
// 鼠标点击位置
|
|
171
|
-
stepPosition:
|
|
171
|
+
stepPosition: a
|
|
172
172
|
// 只考虑步长时将要移动的位置
|
|
173
|
-
} = D(
|
|
173
|
+
} = D(t);
|
|
174
174
|
let i;
|
|
175
175
|
if (l.step === "mark") {
|
|
176
|
-
const
|
|
177
|
-
l.range && Math.abs(
|
|
176
|
+
const u = H(e, B.value);
|
|
177
|
+
l.range && Math.abs(u - n.value) < Math.abs(u - o.value) ? (u !== n.value && (n.value = u), k(M.value, $.value)) : (u !== o.value && (o.value = u), k(f.value, c.value));
|
|
178
178
|
} else
|
|
179
|
-
i =
|
|
179
|
+
i = K(e, a), l.range && Math.abs(i - n.value) < Math.abs(i - o.value) ? (i !== n.value && (n.value = i), k(M.value, $.value)) : (i !== o.value && (o.value = i), k(f.value, c.value));
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
181
|
+
function X(t) {
|
|
182
|
+
M.value && (document.addEventListener("mousemove", J), document.addEventListener("mouseup", E), J(t));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function J(t) {
|
|
185
185
|
const {
|
|
186
|
-
originalPosition:
|
|
186
|
+
originalPosition: e,
|
|
187
187
|
// 初始位置
|
|
188
|
-
stepPosition:
|
|
188
|
+
stepPosition: a
|
|
189
189
|
// 只考虑步长时将要移动的位置
|
|
190
|
-
} = D(
|
|
190
|
+
} = D(t);
|
|
191
191
|
let i;
|
|
192
192
|
if (l.tooltip && !l.tooltipOpen && $.value.classList.add("show-handle-tooltip"), l.step === "mark") {
|
|
193
|
-
const
|
|
194
|
-
|
|
193
|
+
const u = H(e, B.value);
|
|
194
|
+
u <= o.value ? u !== n.value && (n.value = u) : (n.value = o.value, f.value.focus(), E(), U(t));
|
|
195
195
|
} else
|
|
196
|
-
i =
|
|
196
|
+
i = K(e, a), i < 0 ? n.value = 0 : 0 <= i && i <= o.value ? n.value = i : (n.value = o.value, f.value.focus(), E(), U(t));
|
|
197
197
|
}
|
|
198
198
|
function E() {
|
|
199
|
-
l.tooltip && !l.tooltipOpen && $.value.classList.remove("show-handle-tooltip"), document.removeEventListener("mousemove",
|
|
199
|
+
l.tooltip && !l.tooltipOpen && $.value.classList.remove("show-handle-tooltip"), document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", E);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
function U(t) {
|
|
202
|
+
f.value && (document.addEventListener("mousemove", W), document.addEventListener("mouseup", T), W(t));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function W(t) {
|
|
205
205
|
let {
|
|
206
|
-
originalPosition:
|
|
206
|
+
originalPosition: e,
|
|
207
207
|
// 初始位置
|
|
208
|
-
stepPosition:
|
|
208
|
+
stepPosition: a
|
|
209
209
|
// 只考虑步长时将要移动的位置
|
|
210
|
-
} = D(
|
|
211
|
-
if ({ originalPosition:
|
|
212
|
-
const
|
|
213
|
-
|
|
210
|
+
} = D(t), i;
|
|
211
|
+
if ({ originalPosition: e, stepPosition: a } = D(t), l.tooltip && !l.tooltipOpen && c.value.classList.add("show-handle-tooltip"), l.step === "mark") {
|
|
212
|
+
const u = H(e, B.value);
|
|
213
|
+
u >= n.value ? u !== o.value && (o.value = u) : (o.value = n.value, l.range && (M.value.focus(), T(), X(t)));
|
|
214
214
|
} else
|
|
215
|
-
i =
|
|
215
|
+
i = K(e, a), i > v.value ? o.value = v.value : n.value <= i && i <= v.value ? o.value = i : (o.value = n.value, l.range && (M.value.focus(), T(), X(t)));
|
|
216
216
|
}
|
|
217
217
|
function T() {
|
|
218
|
-
l.tooltip && !l.tooltipOpen &&
|
|
218
|
+
l.tooltip && !l.tooltipOpen && c.value.classList.remove("show-handle-tooltip"), document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", T);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
const
|
|
220
|
+
function Pe(t) {
|
|
221
|
+
const e = `${Math.abs(t - l.min) / (l.max - l.min) * 100}%`;
|
|
222
222
|
return l.vertical ? {
|
|
223
|
-
bottom:
|
|
223
|
+
bottom: e
|
|
224
224
|
} : {
|
|
225
|
-
left:
|
|
225
|
+
left: e
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
return l.range ? P.value[0] <=
|
|
228
|
+
function oe(t) {
|
|
229
|
+
return l.range ? P.value[0] <= t && t <= P.value[1] : t <= P.value;
|
|
230
230
|
}
|
|
231
|
-
function j(
|
|
232
|
-
const
|
|
231
|
+
function j(t) {
|
|
232
|
+
const e = l.marks[t], i = typeof e == "object" && !ue(e) ? e.label : e;
|
|
233
233
|
return i ? typeof i == "function" ? i() : i : null;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
const i = l.marks[
|
|
239
|
-
return typeof i == "object" && !
|
|
235
|
+
function Le(t) {
|
|
236
|
+
const e = `${Math.abs(t - l.min) / (l.max - l.min) * 100}%`;
|
|
237
|
+
let a = {};
|
|
238
|
+
const i = l.marks[t];
|
|
239
|
+
return typeof i == "object" && !ue(i) && "style" in i && (a = i.style), l.vertical ? {
|
|
240
240
|
transform: "translateY(50%)",
|
|
241
|
-
bottom:
|
|
242
|
-
...
|
|
241
|
+
bottom: e,
|
|
242
|
+
...a
|
|
243
243
|
} : {
|
|
244
244
|
transform: "translateX(-50%)",
|
|
245
|
-
left:
|
|
246
|
-
...
|
|
245
|
+
left: e,
|
|
246
|
+
...a
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
const
|
|
251
|
-
l.range && Math.abs(
|
|
249
|
+
function Oe(t) {
|
|
250
|
+
const e = B.value[t];
|
|
251
|
+
l.range && Math.abs(e - n.value) < Math.abs(e - o.value) ? (e !== n.value && (n.value = e), k(M.value, $.value)) : (e !== o.value && (o.value = e), k(f.value, c.value));
|
|
252
252
|
}
|
|
253
|
-
function F(
|
|
254
|
-
const
|
|
255
|
-
|
|
253
|
+
function F(t, e) {
|
|
254
|
+
const a = h(t, "-");
|
|
255
|
+
e === "low" ? a < 0 ? n.value = 0 : n.value = a : a >= n.value ? o.value = a : (o.value = n.value, n.value = a, M.value.focus());
|
|
256
256
|
}
|
|
257
|
-
function z(
|
|
258
|
-
const
|
|
259
|
-
|
|
257
|
+
function z(t, e) {
|
|
258
|
+
const a = h(t, "+");
|
|
259
|
+
e === "high" ? a > v.value ? o.value = v.value : o.value = a : a <= o.value ? n.value = a : (n.value = o.value, o.value = a, f.value.focus());
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
261
|
+
function h(t, e) {
|
|
262
|
+
return e === "+" ? t + v.value * g.value / (l.max - l.min) : e === "-" ? t - v.value * g.value / (l.max - l.min) : e === "*" ? t * v.value * g.value / (l.max - l.min) : e === "/" ? t * (l.max - l.min) / (v.value * g.value) : t;
|
|
263
263
|
}
|
|
264
|
-
return (
|
|
264
|
+
return (t, e) => (d(), p("div", {
|
|
265
265
|
ref_key: "sliderRef",
|
|
266
266
|
ref: O,
|
|
267
267
|
class: R(["slider-wrap", {
|
|
268
|
-
"slider-horizontal": !
|
|
269
|
-
"slider-vertical":
|
|
270
|
-
"slider-with-marks": Object.keys(
|
|
271
|
-
"slider-disabled":
|
|
268
|
+
"slider-horizontal": !s.vertical,
|
|
269
|
+
"slider-vertical": s.vertical,
|
|
270
|
+
"slider-with-marks": Object.keys(s.marks).length > 0,
|
|
271
|
+
"slider-disabled": s.disabled
|
|
272
272
|
}]),
|
|
273
|
-
style:
|
|
273
|
+
style: S([
|
|
274
274
|
ve.value,
|
|
275
275
|
`
|
|
276
276
|
--slider-rail-color: rgba(0, 0, 0, 0.04);
|
|
@@ -293,95 +293,95 @@ const Te = { class: "slider-dots" }, je = { class: "slider-marks" }, Fe = ["onCl
|
|
|
293
293
|
--slider-tooltip-bg-color: rgba(0, 0, 0, 0.85);
|
|
294
294
|
`
|
|
295
295
|
]),
|
|
296
|
-
onClick:
|
|
296
|
+
onClick: e[12] || (e[12] = (a) => s.disabled ? () => !1 : $e(a))
|
|
297
297
|
}, [
|
|
298
|
-
|
|
298
|
+
e[15] || (e[15] = L("div", { class: "slider-rail" }, null, -1)),
|
|
299
299
|
L("div", {
|
|
300
300
|
class: "slider-track",
|
|
301
|
-
style:
|
|
301
|
+
style: S(fe.value)
|
|
302
302
|
}, null, 4),
|
|
303
|
-
Object.keys(
|
|
304
|
-
L("div",
|
|
305
|
-
(
|
|
306
|
-
class: R(["slider-dot", { "slider-dot-active":
|
|
307
|
-
style:
|
|
303
|
+
Object.keys(s.marks).length > 0 ? (d(), p(A, { key: 0 }, [
|
|
304
|
+
L("div", Ee, [
|
|
305
|
+
(d(!0), p(A, null, se(m.value, (a, i) => (d(), p("span", {
|
|
306
|
+
class: R(["slider-dot", { "slider-dot-active": oe(a) }]),
|
|
307
|
+
style: S(Pe(a)),
|
|
308
308
|
key: i
|
|
309
309
|
}, null, 6))), 128))
|
|
310
310
|
]),
|
|
311
|
-
L("div",
|
|
312
|
-
(
|
|
313
|
-
class: R(["slider-mark", { "slider-mark-active":
|
|
314
|
-
style:
|
|
311
|
+
L("div", Te, [
|
|
312
|
+
(d(!0), p(A, null, se(m.value, (a, i) => (d(), p("span", {
|
|
313
|
+
class: R(["slider-mark", { "slider-mark-active": oe(a) }]),
|
|
314
|
+
style: S(Le(a)),
|
|
315
315
|
key: i,
|
|
316
|
-
onClick:
|
|
316
|
+
onClick: w((u) => s.disabled ? () => !1 : Oe(i), ["stop"])
|
|
317
317
|
}, [
|
|
318
|
-
|
|
319
|
-
label: j(
|
|
320
|
-
value:
|
|
318
|
+
Ve(t.$slots, "mark", {
|
|
319
|
+
label: j(a),
|
|
320
|
+
value: a
|
|
321
321
|
}, () => [
|
|
322
|
-
typeof j(
|
|
323
|
-
q(G(j(
|
|
324
|
-
], 64)) : (
|
|
322
|
+
typeof j(a) == "string" ? (d(), p(A, { key: 0 }, [
|
|
323
|
+
q(G(j(a)), 1)
|
|
324
|
+
], 64)) : (d(), Be(Re(j(a)), { key: 1 }))
|
|
325
325
|
], !0)
|
|
326
|
-
], 14,
|
|
326
|
+
], 14, je))), 128))
|
|
327
327
|
])
|
|
328
328
|
], 64)) : I("", !0),
|
|
329
|
-
|
|
329
|
+
s.range ? (d(), p("div", {
|
|
330
330
|
key: 1,
|
|
331
331
|
tabindex: "0",
|
|
332
332
|
ref_key: "lowHandleRef",
|
|
333
|
-
ref:
|
|
333
|
+
ref: M,
|
|
334
334
|
class: "slider-handle",
|
|
335
|
-
style:
|
|
335
|
+
style: S(de.value),
|
|
336
336
|
onKeydown: [
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
e[0] || (e[0] = x(w((a) => s.disabled ? () => !1 : F(n.value, "low"), ["prevent"]), ["left"])),
|
|
338
|
+
e[1] || (e[1] = x(w((a) => s.disabled ? () => !1 : z(n.value, "low"), ["prevent"]), ["right"])),
|
|
339
|
+
e[2] || (e[2] = x(w((a) => s.disabled ? () => !1 : F(n.value, "low"), ["prevent"]), ["down"])),
|
|
340
|
+
e[3] || (e[3] = x(w((a) => s.disabled ? () => !1 : z(n.value, "low"), ["prevent"]), ["up"]))
|
|
341
341
|
],
|
|
342
|
-
onMousedown:
|
|
343
|
-
onBlur:
|
|
342
|
+
onMousedown: e[4] || (e[4] = (a) => s.disabled ? () => !1 : X(a)),
|
|
343
|
+
onBlur: e[5] || (e[5] = (a) => s.tooltip && !s.disabled && !s.tooltipOpen ? ae($.value) : () => !1)
|
|
344
344
|
}, [
|
|
345
|
-
|
|
345
|
+
s.tooltip ? (d(), p("div", {
|
|
346
346
|
key: 0,
|
|
347
347
|
ref_key: "lowTooltipRef",
|
|
348
348
|
ref: $,
|
|
349
|
-
class: R(["handle-tooltip", { "show-handle-tooltip":
|
|
350
|
-
style:
|
|
349
|
+
class: R(["handle-tooltip", { "show-handle-tooltip": s.tooltipOpen }]),
|
|
350
|
+
style: S(s.tooltipStyle)
|
|
351
351
|
}, [
|
|
352
|
-
q(G(
|
|
353
|
-
|
|
352
|
+
q(G(he.value) + " ", 1),
|
|
353
|
+
e[13] || (e[13] = L("div", { class: "tooltip-arrow" }, null, -1))
|
|
354
354
|
], 6)) : I("", !0)
|
|
355
355
|
], 36)) : I("", !0),
|
|
356
356
|
L("div", {
|
|
357
357
|
tabindex: "0",
|
|
358
358
|
ref_key: "highHandleRef",
|
|
359
|
-
ref:
|
|
359
|
+
ref: f,
|
|
360
360
|
class: "slider-handle",
|
|
361
|
-
style:
|
|
361
|
+
style: S(ce.value),
|
|
362
362
|
onKeydown: [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
e[6] || (e[6] = x(w((a) => s.disabled ? () => !1 : F(o.value, "high"), ["prevent"]), ["left"])),
|
|
364
|
+
e[7] || (e[7] = x(w((a) => s.disabled ? () => !1 : z(o.value, "high"), ["prevent"]), ["right"])),
|
|
365
|
+
e[8] || (e[8] = x(w((a) => s.disabled ? () => !1 : F(o.value, "high"), ["prevent"]), ["down"])),
|
|
366
|
+
e[9] || (e[9] = x(w((a) => s.disabled ? () => !1 : z(o.value, "high"), ["prevent"]), ["up"]))
|
|
367
367
|
],
|
|
368
|
-
onMousedown:
|
|
369
|
-
onBlur:
|
|
368
|
+
onMousedown: e[10] || (e[10] = (a) => s.disabled ? () => !1 : U(a)),
|
|
369
|
+
onBlur: e[11] || (e[11] = (a) => s.tooltip && !s.disabled && !s.tooltipOpen ? ae(c.value) : () => !1)
|
|
370
370
|
}, [
|
|
371
|
-
|
|
371
|
+
s.tooltip ? (d(), p("div", {
|
|
372
372
|
key: 0,
|
|
373
373
|
ref_key: "highTooltipRef",
|
|
374
|
-
ref:
|
|
375
|
-
class: R(["handle-tooltip", { "show-handle-tooltip":
|
|
376
|
-
style:
|
|
374
|
+
ref: c,
|
|
375
|
+
class: R(["handle-tooltip", { "show-handle-tooltip": s.tooltipOpen }]),
|
|
376
|
+
style: S(s.tooltipStyle)
|
|
377
377
|
}, [
|
|
378
|
-
q(G(
|
|
379
|
-
|
|
378
|
+
q(G(pe.value) + " ", 1),
|
|
379
|
+
e[14] || (e[14] = L("div", { class: "tooltip-arrow" }, null, -1))
|
|
380
380
|
], 6)) : I("", !0)
|
|
381
381
|
], 36)
|
|
382
382
|
], 6));
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
export {
|
|
386
|
-
|
|
386
|
+
Ne as default
|
|
387
387
|
};
|
package/es/space/Space.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.space-wrap[data-v-
|
|
1
|
+
.space-wrap[data-v-68b04309]{display:inline-flex;font-size:14px;color:#000000e0;transition:all .3s;flex-direction:row}.space-vertical[data-v-68b04309]{flex-direction:column}.space-stretch[data-v-68b04309]{align-items:stretch}.space-start[data-v-68b04309]{align-items:flex-start}.space-end[data-v-68b04309]{align-items:flex-end}.space-center[data-v-68b04309]{align-items:center}.space-baseline[data-v-68b04309]{align-items:baseline}.space-flex-wrap[data-v-68b04309]{flex-wrap:wrap}
|
package/es/space/Space.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Space.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68b04309"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/es/space/Space.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as
|
|
1
|
+
import { defineComponent as n, computed as r, createElementBlock as i, openBlock as o, normalizeStyle as d, normalizeClass as s, renderSlot as u } from "vue";
|
|
2
2
|
const f = /* @__PURE__ */ n({
|
|
3
3
|
__name: "Space",
|
|
4
4
|
props: {
|
|
@@ -8,8 +8,8 @@ const f = /* @__PURE__ */ n({
|
|
|
8
8
|
gap: { default: "middle" },
|
|
9
9
|
wrap: { type: Boolean, default: !0 }
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const a =
|
|
11
|
+
setup(e) {
|
|
12
|
+
const a = e, p = r(() => typeof a.width == "number" ? `${a.width}px` : a.width), l = r(() => {
|
|
13
13
|
if (typeof a.gap == "number")
|
|
14
14
|
return `${a.gap}px`;
|
|
15
15
|
if (Array.isArray(a.gap))
|
|
@@ -21,11 +21,11 @@ const f = /* @__PURE__ */ n({
|
|
|
21
21
|
large: "24px"
|
|
22
22
|
}[a.gap];
|
|
23
23
|
});
|
|
24
|
-
return (
|
|
25
|
-
class:
|
|
26
|
-
style:
|
|
24
|
+
return (t, c) => (o(), i("div", {
|
|
25
|
+
class: s(["space-wrap", [`space-${e.align}`, { "space-vertical": e.vertical, "space-flex-wrap": e.wrap }]]),
|
|
26
|
+
style: d(`width: ${p.value}; gap: ${l.value}; margin-bottom: -${Array.isArray(a.gap) && e.wrap ? a.gap[1] : 0}px;`)
|
|
27
27
|
}, [
|
|
28
|
-
u(
|
|
28
|
+
u(t.$slots, "default", {}, void 0, !0)
|
|
29
29
|
], 6));
|
|
30
30
|
}
|
|
31
31
|
});
|