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/lib/tabs/Tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tabs-wrap[data-v-53f22562]{display:flex;font-size:14px;color:#000000e0;line-height:1.57142857;list-style:none}.tabs-wrap .tabs-nav-container[data-v-53f22562]{position:relative;display:flex;flex:none;align-items:center}.tabs-wrap .tabs-nav-container[data-v-53f22562]:before{position:absolute;content:""}.tabs-wrap .tabs-nav-container .tabs-prefix[data-v-53f22562],.tabs-wrap .tabs-nav-container .tabs-suffix[data-v-53f22562]{flex:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]{position:relative;display:flex;flex:auto;align-self:stretch;overflow:hidden;white-space:nowrap;transform:translate(0)}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .shadow[data-v-53f22562]{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:before{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:after{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-53f22562]{position:relative;display:flex}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{position:relative;display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;outline:none;cursor:pointer;transition:all .3s}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:hover{color:var(--tabs-primary-color)}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562] svg{fill:currentColor}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-line-active[data-v-53f22562]{color:var(--tabs-primary-color);text-shadow:0 0 .25px currentcolor}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-53f22562]{color:#00000040;cursor:not-allowed}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-53f22562]:hover{color:#00000040}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-53f22562]{position:absolute;background-color:var(--tabs-primary-color);pointer-events:none;border-radius:2px;transition:width .3s,left .3s,height .3s,top .3s,background-color}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar-disabled[data-v-53f22562]{background-color:#00000040}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .card-hidden[data-v-53f22562]{visibility:hidden}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .nav-transition[data-v-53f22562]{transition:all .15s}.tabs-wrap .tabs-nav-container .tabs-center[data-v-53f22562]{justify-content:center}.tabs-wrap .tabs-nav-container .before-shadow-active[data-v-53f22562]:before{opacity:1}.tabs-wrap .tabs-nav-container .after-shadow-active[data-v-53f22562]:after{opacity:1}.tabs-wrap .tabs-page-container[data-v-53f22562]{flex:auto;min-width:0;min-height:0;overflow:hidden}.tabs-wrap .tabs-page-container .tabs-content-wrap[data-v-53f22562]{position:relative;display:flex;width:100%}.tabs-wrap .tabs-page-container .tabs-content-wrap .tabs-content[data-v-53f22562]{outline:none;flex:none;width:100%}.tabs-wrap .tabs-page-container .tabs-content-animated[data-v-53f22562]{transition:margin .3s}.tabs-top[data-v-53f22562]{flex-direction:column}.tabs-top .tabs-nav-container[data-v-53f22562]{margin-bottom:16px}.tabs-top .tabs-nav-container .tabs-prefix[data-v-53f22562]{padding-right:12px}.tabs-top .tabs-nav-container .tabs-suffix[data-v-53f22562]{padding-left:12px}.tabs-top .tabs-nav-container[data-v-53f22562]:before{right:0;left:0;bottom:0;border-bottom:1px solid rgba(5,5,5,.06)}.tabs-top .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:before{top:0;bottom:0;width:32px;left:0;box-shadow:inset 10px 0 8px -8px #00000014}.tabs-top .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:after{top:0;bottom:0;width:32px;right:0;box-shadow:inset -10px 0 8px -8px #00000014}.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-left:32px}.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-53f22562]{height:2px;bottom:0}.tabs-top.tabs-card .tabs-nav-container[data-v-53f22562],.tabs-top.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:8px 8px 0 0}.tabs-top.tabs-card.tabs-small .tabs-nav-container[data-v-53f22562],.tabs-top.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:6px 6px 0 0}.tabs-bottom[data-v-53f22562]{flex-direction:column}.tabs-bottom .tabs-nav-container[data-v-53f22562]{order:1;margin-top:16px}.tabs-bottom .tabs-nav-container .tabs-prefix[data-v-53f22562]{padding-right:12px}.tabs-bottom .tabs-nav-container .tabs-suffix[data-v-53f22562]{padding-left:12px}.tabs-bottom .tabs-nav-container[data-v-53f22562]:before{right:0;left:0;top:0;border-bottom:1px solid rgba(5,5,5,.06)}.tabs-bottom .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:before{top:0;bottom:0;width:32px;left:0;box-shadow:inset 10px 0 8px -8px #00000014}.tabs-bottom .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:after{top:0;bottom:0;width:32px;right:0;box-shadow:inset -10px 0 8px -8px #00000014}.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-left:32px}.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-53f22562]{height:2px;top:0}.tabs-bottom .tabs-page-container[data-v-53f22562]{order:0}.tabs-bottom.tabs-card .tabs-nav-container[data-v-53f22562],.tabs-bottom.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:0 0 8px 8px}.tabs-bottom.tabs-card.tabs-small .tabs-nav-container[data-v-53f22562],.tabs-bottom.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:0 0 6px 6px}.tabs-left .tabs-nav-container[data-v-53f22562]{flex-direction:column;min-width:40px;margin-right:24px}.tabs-left .tabs-nav-container .tabs-prefix[data-v-53f22562]{padding-bottom:12px}.tabs-left .tabs-nav-container .tabs-suffix[data-v-53f22562]{padding-top:12px}.tabs-left .tabs-nav-container[data-v-53f22562]:before{top:0;bottom:0;right:0;border-left:1px solid rgba(5,5,5,.06)}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]{flex-direction:column}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:before{right:0;left:0;height:32px;top:0;box-shadow:inset 0 10px 8px -8px #00000014}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:after{right:0;left:0;height:32px;bottom:0;box-shadow:inset 0 -10px 8px -8px #00000014}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-53f22562]{flex:1 0 auto;flex-direction:column}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:8px 24px;text-align:center}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-top:16px}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-53f22562]{width:2px;right:0}.tabs-left.tabs-card .tabs-nav-container[data-v-53f22562],.tabs-left.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:8px 0 0 8px}.tabs-left.tabs-card.tabs-small .tabs-nav-container[data-v-53f22562],.tabs-left.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:6px 0 0 6px}.tabs-right .tabs-nav-container[data-v-53f22562]{order:1;flex-direction:column;min-width:40px;margin-left:24px}.tabs-right .tabs-nav-container .tabs-prefix[data-v-53f22562]{padding-bottom:12px}.tabs-right .tabs-nav-container .tabs-suffix[data-v-53f22562]{padding-top:12px}.tabs-right .tabs-nav-container[data-v-53f22562]:before{top:0;bottom:0;left:0;border-left:1px solid rgba(5,5,5,.06)}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]{flex-direction:column}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:before{right:0;left:0;height:32px;top:0;box-shadow:inset 0 10px 8px -8px #00000014}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-53f22562]:after{right:0;left:0;height:32px;bottom:0;box-shadow:inset 0 -10px 8px -8px #00000014}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-53f22562]{flex:1 0 auto;flex-direction:column}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:8px 24px;text-align:center}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-53f22562]{width:2px;left:0}.tabs-right.tabs-card .tabs-nav-container[data-v-53f22562],.tabs-right.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:0 8px 8px 0}.tabs-right.tabs-card.tabs-small .tabs-nav-container[data-v-53f22562],.tabs-right.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{border-radius:0 6px 6px 0}.tabs-small .tabs-nav-container[data-v-53f22562]{font-size:14px}.tabs-small.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562],.tabs-small.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:8px 0}.tabs-middle .tabs-nav-container[data-v-53f22562]{font-size:14px}.tabs-middle.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562],.tabs-middle.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:12px 0}.tabs-large .tabs-nav-container[data-v-53f22562]{font-size:16px}.tabs-large.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562],.tabs-large.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:16px 0}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:8px 16px;background:#00000005;border:1px solid rgba(5,5,5,.06);transition:all .3s cubic-bezier(.645,.045,.355,1)}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-53f22562]{color:var(--tabs-primary-color);background:#fff;text-shadow:0 0 .25px currentcolor}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-53f22562]{color:#00000040;cursor:not-allowed}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-53f22562]:hover{color:#00000040}.tabs-card.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-left:2px}.tabs-card.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-53f22562]{border-bottom-color:#fff}.tabs-card.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-left:2px}.tabs-card.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-53f22562]{border-top-color:#fff}.tabs-card.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-top:2px}.tabs-card.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-53f22562]{border-right-color:#fff}.tabs-card.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]:not(:first-child){margin-top:2px}.tabs-card.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-53f22562]{border-left-color:#fff}.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-53f22562]{padding:6px 16px}
|
|
1
|
+
.tabs-wrap[data-v-0e7cd905]{display:flex;font-size:14px;color:#000000e0;line-height:1.57142857;list-style:none}.tabs-wrap .tabs-nav-container[data-v-0e7cd905]{position:relative;display:flex;flex:none;align-items:center}.tabs-wrap .tabs-nav-container[data-v-0e7cd905]:before{position:absolute;content:""}.tabs-wrap .tabs-nav-container .tabs-prefix[data-v-0e7cd905],.tabs-wrap .tabs-nav-container .tabs-suffix[data-v-0e7cd905]{flex:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]{position:relative;display:flex;flex:auto;align-self:stretch;overflow:hidden;white-space:nowrap;transform:translate(0)}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .shadow[data-v-0e7cd905]{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:before{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:after{position:absolute;z-index:1;opacity:0;transition:opacity .3s;content:"";pointer-events:none}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-0e7cd905]{position:relative;display:flex}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{position:relative;display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;outline:none;cursor:pointer;transition:all .3s}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:hover{color:var(--tabs-primary-color)}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905] svg{fill:currentColor}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-line-active[data-v-0e7cd905]{color:var(--tabs-primary-color);text-shadow:0 0 .25px currentcolor}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-0e7cd905]{color:#00000040;cursor:not-allowed}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-0e7cd905]:hover{color:#00000040}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-0e7cd905]{position:absolute;background-color:var(--tabs-primary-color);pointer-events:none;border-radius:2px;transition:width .3s,left .3s,height .3s,top .3s,background-color}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar-disabled[data-v-0e7cd905]{background-color:#00000040}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .card-hidden[data-v-0e7cd905]{visibility:hidden}.tabs-wrap .tabs-nav-container .tabs-nav-wrap .nav-transition[data-v-0e7cd905]{transition:all .15s}.tabs-wrap .tabs-nav-container .tabs-center[data-v-0e7cd905]{justify-content:center}.tabs-wrap .tabs-nav-container .before-shadow-active[data-v-0e7cd905]:before{opacity:1}.tabs-wrap .tabs-nav-container .after-shadow-active[data-v-0e7cd905]:after{opacity:1}.tabs-wrap .tabs-page-container[data-v-0e7cd905]{flex:auto;min-width:0;min-height:0;overflow:hidden}.tabs-wrap .tabs-page-container .tabs-content-wrap[data-v-0e7cd905]{position:relative;display:flex;width:100%}.tabs-wrap .tabs-page-container .tabs-content-wrap .tabs-content[data-v-0e7cd905]{outline:none;flex:none;width:100%}.tabs-wrap .tabs-page-container .tabs-content-animated[data-v-0e7cd905]{transition:margin .3s}.tabs-top[data-v-0e7cd905]{flex-direction:column}.tabs-top .tabs-nav-container[data-v-0e7cd905]{margin-bottom:16px}.tabs-top .tabs-nav-container .tabs-prefix[data-v-0e7cd905]{padding-right:12px}.tabs-top .tabs-nav-container .tabs-suffix[data-v-0e7cd905]{padding-left:12px}.tabs-top .tabs-nav-container[data-v-0e7cd905]:before{right:0;left:0;bottom:0;border-bottom:1px solid rgba(5,5,5,.06)}.tabs-top .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:before{top:0;bottom:0;width:32px;left:0;box-shadow:inset 10px 0 8px -8px #00000014}.tabs-top .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:after{top:0;bottom:0;width:32px;right:0;box-shadow:inset -10px 0 8px -8px #00000014}.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-left:32px}.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-0e7cd905]{height:2px;bottom:0}.tabs-top.tabs-card .tabs-nav-container[data-v-0e7cd905],.tabs-top.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:8px 8px 0 0}.tabs-top.tabs-card.tabs-small .tabs-nav-container[data-v-0e7cd905],.tabs-top.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:6px 6px 0 0}.tabs-bottom[data-v-0e7cd905]{flex-direction:column}.tabs-bottom .tabs-nav-container[data-v-0e7cd905]{order:1;margin-top:16px}.tabs-bottom .tabs-nav-container .tabs-prefix[data-v-0e7cd905]{padding-right:12px}.tabs-bottom .tabs-nav-container .tabs-suffix[data-v-0e7cd905]{padding-left:12px}.tabs-bottom .tabs-nav-container[data-v-0e7cd905]:before{right:0;left:0;top:0;border-bottom:1px solid rgba(5,5,5,.06)}.tabs-bottom .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:before{top:0;bottom:0;width:32px;left:0;box-shadow:inset 10px 0 8px -8px #00000014}.tabs-bottom .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:after{top:0;bottom:0;width:32px;right:0;box-shadow:inset -10px 0 8px -8px #00000014}.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-left:32px}.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-0e7cd905]{height:2px;top:0}.tabs-bottom .tabs-page-container[data-v-0e7cd905]{order:0}.tabs-bottom.tabs-card .tabs-nav-container[data-v-0e7cd905],.tabs-bottom.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:0 0 8px 8px}.tabs-bottom.tabs-card.tabs-small .tabs-nav-container[data-v-0e7cd905],.tabs-bottom.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:0 0 6px 6px}.tabs-left .tabs-nav-container[data-v-0e7cd905]{flex-direction:column;min-width:40px;margin-right:24px}.tabs-left .tabs-nav-container .tabs-prefix[data-v-0e7cd905]{padding-bottom:12px}.tabs-left .tabs-nav-container .tabs-suffix[data-v-0e7cd905]{padding-top:12px}.tabs-left .tabs-nav-container[data-v-0e7cd905]:before{top:0;bottom:0;right:0;border-left:1px solid rgba(5,5,5,.06)}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]{flex-direction:column}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:before{right:0;left:0;height:32px;top:0;box-shadow:inset 0 10px 8px -8px #00000014}.tabs-left .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:after{right:0;left:0;height:32px;bottom:0;box-shadow:inset 0 -10px 8px -8px #00000014}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-0e7cd905]{flex:1 0 auto;flex-direction:column}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:8px 24px;text-align:center}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-top:16px}.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-0e7cd905]{width:2px;right:0}.tabs-left.tabs-card .tabs-nav-container[data-v-0e7cd905],.tabs-left.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:8px 0 0 8px}.tabs-left.tabs-card.tabs-small .tabs-nav-container[data-v-0e7cd905],.tabs-left.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:6px 0 0 6px}.tabs-right .tabs-nav-container[data-v-0e7cd905]{order:1;flex-direction:column;min-width:40px;margin-left:24px}.tabs-right .tabs-nav-container .tabs-prefix[data-v-0e7cd905]{padding-bottom:12px}.tabs-right .tabs-nav-container .tabs-suffix[data-v-0e7cd905]{padding-top:12px}.tabs-right .tabs-nav-container[data-v-0e7cd905]:before{top:0;bottom:0;left:0;border-left:1px solid rgba(5,5,5,.06)}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]{flex-direction:column}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:before{right:0;left:0;height:32px;top:0;box-shadow:inset 0 10px 8px -8px #00000014}.tabs-right .tabs-nav-container .tabs-nav-wrap[data-v-0e7cd905]:after{right:0;left:0;height:32px;bottom:0;box-shadow:inset 0 -10px 8px -8px #00000014}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list[data-v-0e7cd905]{flex:1 0 auto;flex-direction:column}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:8px 24px;text-align:center}.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-bar[data-v-0e7cd905]{width:2px;left:0}.tabs-right.tabs-card .tabs-nav-container[data-v-0e7cd905],.tabs-right.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:0 8px 8px 0}.tabs-right.tabs-card.tabs-small .tabs-nav-container[data-v-0e7cd905],.tabs-right.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{border-radius:0 6px 6px 0}.tabs-small .tabs-nav-container[data-v-0e7cd905]{font-size:14px}.tabs-small.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905],.tabs-small.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:8px 0}.tabs-middle .tabs-nav-container[data-v-0e7cd905]{font-size:14px}.tabs-middle.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905],.tabs-middle.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:12px 0}.tabs-large .tabs-nav-container[data-v-0e7cd905]{font-size:16px}.tabs-large.tabs-top:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905],.tabs-large.tabs-bottom:not(.tabs-card) .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:16px 0}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:8px 16px;background:#00000005;border:1px solid rgba(5,5,5,.06);transition:all .3s cubic-bezier(.645,.045,.355,1)}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-0e7cd905]{color:var(--tabs-primary-color);background:#fff;text-shadow:0 0 .25px currentcolor}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-0e7cd905]{color:#00000040;cursor:not-allowed}.tabs-card .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-disabled[data-v-0e7cd905]:hover{color:#00000040}.tabs-card.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-left:2px}.tabs-card.tabs-top .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-0e7cd905]{border-bottom-color:#fff}.tabs-card.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-left:2px}.tabs-card.tabs-bottom .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-0e7cd905]{border-top-color:#fff}.tabs-card.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-top:2px}.tabs-card.tabs-left .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-0e7cd905]{border-right-color:#fff}.tabs-card.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]:not(:first-child){margin-top:2px}.tabs-card.tabs-right .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-card-active[data-v-0e7cd905]{border-left-color:#fff}.tabs-card.tabs-small .tabs-nav-container .tabs-nav-wrap .tabs-nav-list .tab-item[data-v-0e7cd905]{padding:6px 16px}
|
package/lib/tabs/Tabs.vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tabs.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tabs.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-0e7cd905"]]);exports.default=u;
|
package/lib/tabs/Tabs.vue2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("../utils/index.cjs"),Q={key:0,class:"tabs-prefix"},U=["onClick"],Z={key:1,class:"tabs-suffix"},_=e.defineComponent({__name:"Tabs",props:{items:{default:()=>[]},prefix:{default:void 0},suffix:{default:void 0},animated:{type:Boolean,default:!0},centered:{type:Boolean,default:!1},size:{default:"middle"},type:{default:"line"},tabGutter:{default:void 0},tabStyle:{default:()=>({})},tabPosition:{default:"top"},contentStyle:{default:()=>({})},activeKey:{default:void 0}},emits:["update:activeKey","change"],setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("../utils/index.cjs"),Q={key:0,class:"tabs-prefix"},U=["onClick"],Z={key:1,class:"tabs-suffix"},_=e.defineComponent({__name:"Tabs",props:{items:{default:()=>[]},prefix:{default:void 0},suffix:{default:void 0},animated:{type:Boolean,default:!0},centered:{type:Boolean,default:!1},size:{default:"middle"},type:{default:"line"},tabGutter:{default:void 0},tabStyle:{default:()=>({})},tabPosition:{default:"top"},contentStyle:{default:()=>({})},activeKey:{default:void 0}},emits:["update:activeKey","change"],setup(l,{emit:E}){const o=l,B=e.ref(),d=e.ref(0),b=e.ref(0),y=e.ref(0),p=e.ref(0),h=e.ref(),S=e.ref(),g=e.ref(),k=e.ref(),x=e.ref(),z=e.ref(),u=e.ref(!1),c=e.ref(0),r=e.ref(0),s=e.ref(0),m=e.ref(!1),{colorPalettes:C}=P.useInject("Tabs"),$=E,N=P.useSlotsExist(["prefix","suffix"]),v=e.computed(()=>o.items.findIndex((t,n)=>f(t.key,n)===o.activeKey)),T=e.computed(()=>!!(N.prefix||o.prefix)),D=e.computed(()=>!!(N.suffix||o.suffix)),H=e.computed(()=>["top","bottom"].includes(o.tabPosition)?u.value&&r.value>0:u.value&&s.value>0),K=e.computed(()=>["top","bottom"].includes(o.tabPosition)?u.value&&r.value<c.value:u.value&&s.value<c.value),W=e.computed(()=>["top","bottom"].includes(o.tabPosition)?{transform:`translate(${-r.value}px, 0)`}:{transform:`translate(0, ${-s.value}px)`}),M=e.computed(()=>["top","bottom"].includes(o.tabPosition)?{marginLeft:`${o.tabGutter}px`}:{marginTop:`${o.tabGutter}px`}),L=e.computed(()=>["top","bottom"].includes(o.tabPosition)?{left:`${d.value}px`,width:`${y.value}px`}:{top:`${b.value}px`,height:`${p.value}px`}),R=e.computed(()=>o.animated&&["top","bottom"].includes(o.tabPosition)?{marginLeft:`-${100*(v.value!==-1?v.value:0)}%`}:{}),G=e.computed(()=>o.animated&&["top","bottom"].includes(o.tabPosition)?{visibility:"hidden",height:"0px",overflowY:"hidden"}:{display:"none"});e.watch(()=>o.activeKey,()=>{w()},{flush:"post"}),e.onMounted(()=>{V()}),P.useResizeObserver([h,k],()=>{V()});function V(){["top","bottom"].includes(o.tabPosition)?Y():I()}function Y(){S.value=h.value.offsetWidth,x.value=k.value.offsetWidth,x.value>S.value?(u.value=!0,c.value=x.value-S.value,r.value=c.value):(u.value=!1,r.value=0),w()}function I(){g.value=h.value.offsetHeight,z.value=k.value.offsetHeight,z.value>g.value?(u.value=!0,c.value=z.value-g.value,s.value=c.value):(u.value=!1,s.value=0),w()}function w(){["top","bottom"].includes(o.tabPosition)?X():j()}function X(){const t=v.value!==-1?B.value[v.value]:null;if(t){if(d.value=t.offsetLeft,y.value=t.offsetWidth,u.value){d.value<r.value&&(m.value=!0,r.value=d.value);const n=d.value+y.value-S.value;n>r.value&&(m.value=!0,r.value=n)}}else d.value=0,y.value=0}function j(){const t=v.value!==-1?B.value[v.value]:null;if(t){if(b.value=t.offsetTop,p.value=t.offsetHeight,u.value){b.value<s.value&&(m.value=!0,s.value=b.value);const n=b.value+p.value-g.value;n>s.value&&(m.value=!0,s.value=n)}}else b.value=0,p.value=0}function f(t,n){return t===void 0?n:t}function q(t){$("update:activeKey",t),$("change",t)}function F(t){t.stopPropagation(),t.preventDefault(),(t.deltaX||t.deltaY)&&(["top","bottom"].includes(o.tabPosition)?O(t.deltaX):A(t.deltaY))}function O(t){const n=t*1;r.value=Math.min(Math.max(r.value+n,0),c.value)}function A(t){const n=t*1;s.value=Math.min(Math.max(s.value+n,0),c.value)}function J(t,n){return o.activeKey!==f(t,n)?G.value:{}}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tabs-wrap",[`tabs-${l.tabPosition} tabs-${l.size}`,{"tabs-card":l.type==="card"}]]),style:e.normalizeStyle(`--tabs-primary-color: ${e.unref(C)[5]};`)},[e.createElementVNode("div",{class:"tabs-nav-container",style:e.normalizeStyle(l.tabStyle)},[T.value?(e.openBlock(),e.createElementBlock("div",Q,[e.renderSlot(t.$slots,"prefix",{},()=>[e.createTextVNode(e.toDisplayString(l.prefix),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"wrapRef",ref:h,class:e.normalizeClass(["tabs-nav-wrap",{"tabs-center":l.centered,"before-shadow-active":H.value,"after-shadow-active":K.value}])},[e.createElementVNode("div",{ref_key:"navRef",ref:k,class:e.normalizeClass(["tabs-nav-list",{"nav-transition":m.value}]),onTransitionend:n[0]||(n[0]=a=>m.value=!1),style:e.normalizeStyle(W.value),onWheel:n[1]||(n[1]=a=>u.value?F(a):()=>!1)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(a,i)=>(e.openBlock(),e.createElementBlock("div",{ref_for:!0,ref_key:"tabsRef",ref:B,class:e.normalizeClass(["tab-item",{"tab-line-active":l.type==="line"&&l.activeKey===f(a.key,i),"tab-card-active":l.type==="card"&&l.activeKey===f(a.key,i),"tab-disabled":a.disabled}]),style:e.normalizeStyle(i>0&&l.tabGutter!==void 0?M.value:{}),onClick:ee=>a.disabled?()=>!1:q(f(a.key,i)),key:i},[e.renderSlot(t.$slots,"tab",{item:a,tab:a.tab,key:f(a.key,i)},()=>[a.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(a.tab),1)],!0)],14,U))),128)),e.createElementVNode("div",{class:e.normalizeClass(["tab-bar",{"tab-bar-disabled":l.items[v.value]?.disabled,"card-hidden":l.type==="card"}]),style:e.normalizeStyle(L.value)},null,6)],38)],2),D.value?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(t.$slots,"suffix",{},()=>[e.createTextVNode(e.toDisplayString(l.suffix),1)],!0)])):e.createCommentVNode("",!0)],4),e.createElementVNode("div",{class:"tabs-page-container",style:e.normalizeStyle(l.contentStyle)},[e.createElementVNode("div",{class:e.normalizeClass(["tabs-content-wrap",{"tabs-content-animated":l.animated&&["top","bottom"].includes(l.tabPosition)}]),style:e.normalizeStyle(R.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.items,(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:"tabs-content",style:e.normalizeStyle(J(a.key,i)),key:a.key||i},[e.renderSlot(t.$slots,"content",{item:a,content:a.content,key:f(a.key,i)},()=>[e.createTextVNode(e.toDisplayString(a.content),1)],!0)],4))),128))],6)],4)],6))}});exports.default=_;
|
package/lib/tag/Tag.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tag-wrap[data-v-
|
|
1
|
+
.tag-wrap[data-v-8d9f90ea]{display:inline-flex;align-items:center;height:24px;font-size:14px;color:#000000e0;padding-inline:7px;white-space:nowrap;background:#00000005;border:1px solid #d9d9d9;border-radius:6px;transition:all .2s;text-align:start}.tag-wrap .tag-icon[data-v-8d9f90ea]{margin-right:5px;height:100%;display:inline-flex;align-items:center}.tag-wrap .tag-icon[data-v-8d9f90ea] svg{fill:currentColor}.tag-wrap .tag-label[data-v-8d9f90ea]{height:100%;display:inline-flex;align-items:center}.tag-wrap .plus-svg[data-v-8d9f90ea]{display:inline-flex;align-items:center;font-size:14px;color:#000000e0;fill:currentColor;font-style:normal;line-height:0;text-align:center;vertical-align:-.175em;transition:color .2s}.tag-wrap .tag-close[data-v-8d9f90ea]{margin-left:3px;display:inline-flex;align-items:center;height:100%;vertical-align:top;font-style:normal;line-height:0;text-align:center;cursor:pointer}.tag-wrap .tag-close .close-svg[data-v-8d9f90ea]{display:inline-block;font-size:12px;color:#00000073;fill:currentColor;transition:all .2s}.tag-wrap .tag-close .close-svg[data-v-8d9f90ea]:hover{color:#000000e0}.tag-small[data-v-8d9f90ea]{height:22px;font-size:12px;line-height:20px;border-radius:4px}.tag-small .plus-svg[data-v-8d9f90ea]{font-size:12px}.tag-small .tag-close[data-v-8d9f90ea]{font-size:10px}.tag-large[data-v-8d9f90ea]{height:28px;line-height:26px}.tag-large .tag-close[data-v-8d9f90ea]{font-size:14px;vertical-align:-.16em}.tag-plus[data-v-8d9f90ea]{background:#fff;border-style:dashed;padding-inline:10px;text-align:center;cursor:pointer}.tag-plus[data-v-8d9f90ea]:hover{border-color:#1677ff}.tag-plus:hover .plus-svg[data-v-8d9f90ea]{color:#1677ff}.tag-input[data-v-8d9f90ea]{width:86px;color:#000000e0;height:24px;font-size:14px;line-height:22px;padding:0 8px;position:relative;display:inline-block;min-width:0;background-color:#fff;border:1px solid #d9d9d9;border-radius:6px;outline:none;transition:all .2s}.tag-input[data-v-8d9f90ea]:focus{border-color:#4096ff;box-shadow:0 0 0 2px #0591ff1a;border-right-width:1px;outline:0}.input-small[data-v-8d9f90ea]{width:78px;height:22px;font-size:12px;line-height:20px;padding:0 6px;border-radius:4px}.input-large[data-v-8d9f90ea]{width:90px;height:28px;line-height:26px}.tag-success[data-v-8d9f90ea]{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.tag-success[data-v-8d9f90ea] svg{color:#52c41a;fill:currentColor}.tag-processing[data-v-8d9f90ea]{color:#1677ff;background:#e6f4ff;border-color:#91caff}.tag-processing[data-v-8d9f90ea] svg{color:#1677ff;fill:currentColor}.tag-error[data-v-8d9f90ea]{color:#ff4d4f;background:#fff2f0;border-color:#ffccc7}.tag-error[data-v-8d9f90ea] svg{color:#ff4d4f;fill:currentColor}.tag-warning[data-v-8d9f90ea]{color:#faad14;background:#fffbe6;border-color:#ffe58f}.tag-warning[data-v-8d9f90ea] svg{color:#faad14;fill:currentColor}.tag-pink[data-v-8d9f90ea]{color:#c41d7f;background:#fff0f6;border-color:#ffadd2}.tag-pink[data-v-8d9f90ea] svg{color:#c41d7f;fill:currentColor}.tag-red[data-v-8d9f90ea]{color:#cf1322;background:#fff1f0;border-color:#ffa39e}.tag-red[data-v-8d9f90ea] svg{color:#cf1322;fill:currentColor}.tag-yellow[data-v-8d9f90ea]{color:#d4b106;background:#feffe6;border-color:#fffb8f}.tag-yellow[data-v-8d9f90ea] svg{color:#d4b106;fill:currentColor}.tag-orange[data-v-8d9f90ea]{color:#d46b08;background:#fff7e6;border-color:#ffd591}.tag-orange[data-v-8d9f90ea] svg{color:#d46b08;fill:currentColor}.tag-green[data-v-8d9f90ea]{color:#389e0d;background:#f6ffed;border-color:#b7eb8f}.tag-green[data-v-8d9f90ea] svg{color:#389e0d;fill:currentColor}.tag-cyan[data-v-8d9f90ea]{color:#08979c;background:#e6fffb;border-color:#87e8de}.tag-cyan[data-v-8d9f90ea] svg{color:#08979c;fill:currentColor}.tag-blue[data-v-8d9f90ea]{color:#0958d9;background:#e6f4ff;border-color:#91caff}.tag-blue[data-v-8d9f90ea] svg{color:#0958d9;fill:currentColor}.tag-purple[data-v-8d9f90ea]{color:#531dab;background:#f9f0ff;border-color:#d3adf7}.tag-purple[data-v-8d9f90ea] svg{color:#531dab;fill:currentColor}.tag-geekblue[data-v-8d9f90ea]{color:#1d39c4;background:#f0f5ff;border-color:#adc6ff}.tag-geekblue[data-v-8d9f90ea] svg{color:#1d39c4;fill:currentColor}.tag-magenta[data-v-8d9f90ea]{color:#eb2f96;background:#fff0f6;border-color:#ffadd2}.tag-magenta[data-v-8d9f90ea] svg{color:#eb2f96;fill:currentColor}.tag-volcano[data-v-8d9f90ea]{color:#d4380d;background:#fff2e8;border-color:#ffbb96}.tag-volcano[data-v-8d9f90ea] svg{color:#d4380d;fill:currentColor}.tag-gold[data-v-8d9f90ea]{color:#d48806;background:#fffbe6;border-color:#ffe58f}.tag-gold[data-v-8d9f90ea] svg{color:#d48806;fill:currentColor}.tag-lime[data-v-8d9f90ea]{color:#7cb305;background:#fcffe6;border-color:#eaff8f}.tag-lime[data-v-8d9f90ea] svg{color:#7cb305;fill:currentColor}.tag-borderless[data-v-8d9f90ea]{border-color:transparent}.tag-has-color[data-v-8d9f90ea]{color:#fff;border-color:transparent}.tag-has-color .tag-close .close-svg[data-v-8d9f90ea]{color:#ffffffd9}.tag-has-color .tag-close .close-svg[data-v-8d9f90ea]:hover{color:#fff}.tag-hidden[data-v-8d9f90ea]{display:none}
|
package/lib/tag/Tag.vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tag.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tag.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-8d9f90ea"]]);exports.default=u;
|
package/lib/tag/Tag.vue2.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("../space/index.cjs"),$=require("../utils/index.cjs"),p={key:0,class:"tag-icon"},S={class:"tag-label"},q={class:"tag-label"},T=["onClick"],x=e.defineComponent({__name:"Tag",props:{closable:{type:Boolean,default:!1},color:{default:void 0},icon:{default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!0},dynamic:{type:Boolean,default:!1},spaceProps:{default:()=>({})},value:{default:()=>[]}},emits:["update:value","close","dynamicClose"],setup(l,{emit:k}){const n=l,i=e.ref(),s=e.ref(!1),d=e.ref(""),c=["success","processing","error","warning","default","pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],g=e.ref(!1),f=e.ref(),v=e.ref(Array(n.value.length).fill(1)),h=$.useSlotsExist(["icon"]),u=k,m=e.computed(()=>{if(n.dynamic&&n.value.length){if(typeof n.value[0]=="string")return!0;if(typeof n.value[0]=="object")return!1}return null}),b=e.computed(()=>n.dynamic&&n.value.length?m.value?n.value.map(a=>({label:a,closable:!0})):n.value.map(a=>({closable:!0,...a})):[]),B=e.computed(()=>n.dynamic?!1:h.icon||n.icon);e.watchEffect(()=>{if(n.dynamic){const a=n.value.length;v.value=Array(a).fill(1),e.nextTick(()=>{if(f.value)for(let t=0;t<a;t++)v.value[t]=f.value[t].offsetWidth})}});function C(a){g.value=!0,u("close",a)}function E(a,t){const o=n.value.filter((r,y)=>y!==t);u("update:value",o),u("dynamicClose",a,t)}async function V(){s.value=!0,await e.nextTick(),i.value.focus()}function w(){m.value?u("update:value",[...n.value,d.value]):u("update:value",[...n.value,{label:d.value}]),s.value=!1,i.value=""}function N(a){a.key==="Enter"&&i.value.blur()}return(a,t)=>l.dynamic?(e.openBlock(),e.createBlock(e.unref(z.default),e.mergeProps({key:1,gap:"small"},l.spaceProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tag-wrap",[`tag-${o.size||l.size}`,(o.color||l.color)&&c.includes(o.color||l.color)?`tag-${o.color||l.color}`:"",{"tag-borderless":o.bordered!==void 0&&!o.bordered,"tag-has-color":(o.color||l.color)&&!c.includes(o.color||l.color)}]]),style:e.normalizeStyle(`background-color: ${(o.color||l.color)&&!c.includes(o.color||l.color)?o.color||l.color:""};`),key:r},[v.value[r]?(e.openBlock(),e.createElementBlock("span",{key:0,ref_for:!0,ref_key:"tagsIconRef",ref:f,class:"tag-icon"},[e.renderSlot(a.$slots,"icon",{item:o,icon:l.icon,index:r},()=>[e.createTextVNode(e.toDisplayString(o.icon),1)],!0)],512)):e.createCommentVNode("",!0),e.createElementVNode("span",q,[e.renderSlot(a.$slots,"label",{item:o,label:o.label,index:r},()=>[e.createTextVNode(e.toDisplayString(o.label),1)],!0)]),o.closable||l.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"tag-close",onClick:y=>E(o,r)},[...t[3]||(t[3]=[e.createElementVNode("svg",{focusable:"false",class:"close-svg","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("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"})],-1)])],8,T)):e.createCommentVNode("",!0)],6))),128)),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tag-wrap",[`tag-${l.size}`,{"tag-plus":l.dynamic}]]),onClick:V},[...t[4]||(t[4]=[e.createElementVNode("svg",{focusable:"false",class:"plus-svg","data-icon":"plus",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}),e.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"})],-1)])],2)),s.value?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,ref_key:"inputRef",ref:i,class:e.normalizeClass(["tag-input",`input-${l.size}`]),type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>d.value=o),onBlur:t[1]||(t[1]=o=>s.value=!1),onChange:w,onKeydown:N},null,34)),[[e.vModelText,d.value]]):e.createCommentVNode("",!0)]),_:3},16)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tag-wrap",[`tag-${l.size}`,l.color&&c.includes(l.color)?`tag-${l.color}`:"",{"tag-borderless":!l.bordered,"tag-has-color":l.color&&!c.includes(l.color),"tag-hidden":g.value}]]),style:e.normalizeStyle(`background-color: ${l.color&&!c.includes(l.color)?l.color:""};`)},[B.value?(e.openBlock(),e.createElementBlock("span",p,[e.renderSlot(a.$slots,"icon",{},()=>[e.createTextVNode(e.toDisplayString(l.icon),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("span",S,[e.renderSlot(a.$slots,"default",{},void 0,!0)]),l.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"tag-close",onClick:C},[...t[2]||(t[2]=[e.createElementVNode("svg",{focusable:"false",class:"close-svg","data-icon":"close",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("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"})],-1)])])):e.createCommentVNode("",!0)],6))}});exports.default=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.textarea-wrap[data-v-
|
|
1
|
+
.textarea-wrap[data-v-2ce36b4f]{position:relative;display:inline-block;width:var(--textarea-width)}.textarea-wrap .textarea-item[data-v-2ce36b4f]{width:100%;min-width:0;min-height:32px;max-width:100%;height:auto;padding:4px 11px;color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;transition:all .3s,height 0s;resize:vertical;position:relative;z-index:9;display:inline-block;vertical-align:bottom;text-overflow:ellipsis;background-color:#fff;border:1px solid #d9d9d9;border-radius:6px;outline:none}.textarea-wrap .textarea-item[data-v-2ce36b4f]:hover{border-color:var(--textarea-primary-color-hover);z-index:1}.textarea-wrap .textarea-item[data-v-2ce36b4f]:focus-within{border-color:var(--textarea-primary-color-focus);box-shadow:0 0 0 2px var(--textarea-primary-shadow-color);outline:0}.textarea-wrap .clear-class[data-v-2ce36b4f]{padding-right:24px}.textarea-wrap textarea[data-v-2ce36b4f]:disabled{color:#00000040}.textarea-wrap textarea[data-v-2ce36b4f]::-webkit-input-placeholder{color:#00000040}.textarea-wrap textarea[data-v-2ce36b4f]:-moz-placeholder{color:#00000040}.textarea-wrap textarea[data-v-2ce36b4f]::-moz-placeholder{color:#00000040}.textarea-wrap textarea[data-v-2ce36b4f]:-ms-input-placeholder{color:#00000040}.textarea-wrap .clear-svg[data-v-2ce36b4f]{position:absolute;top:9px;right:8px;z-index:99;display:inline-block;font-size:12px;color:#00000040;fill:currentColor;cursor:pointer;transition:color .3s}.textarea-wrap .clear-svg[data-v-2ce36b4f]:hover{color:#00000073}.textarea-wrap .textarea-disabled[data-v-2ce36b4f]{color:#00000040;background-color:#0000000a;cursor:not-allowed}.textarea-wrap .textarea-disabled[data-v-2ce36b4f]:hover{border-color:#d9d9d9}.textarea-wrap .textarea-disabled[data-v-2ce36b4f]:focus-within{border-color:#d9d9d9;box-shadow:none}.show-count[data-v-2ce36b4f]:after{font-size:14px;color:#00000073;white-space:nowrap;content:attr(data-count);pointer-events:none;float:right}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Textarea.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Textarea.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-2ce36b4f"]]);exports.default=u;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("../utils/index.cjs"),B=["data-count"],E=["value","placeholder","maxlength","disabled"],k=e.defineComponent({__name:"Textarea",props:{width:{default:"100%"},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:void 0},maxlength:{default:void 0},showCount:{type:Boolean,default:!1},value:{default:""},valueModifiers:{default:()=>({})}},emits:["update:value","compositionstart","compositionend","change","enter"],setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),$=require("../utils/index.cjs"),B=["data-count"],E=["value","placeholder","maxlength","disabled"],k=e.defineComponent({__name:"Textarea",props:{width:{default:"100%"},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:void 0},maxlength:{default:void 0},showCount:{type:Boolean,default:!1},value:{default:""},valueModifiers:{default:()=>({})}},emits:["update:value","compositionstart","compositionend","change","enter"],setup(u,{emit:h}){const a=u,s=e.ref(null),i=e.ref(!1),o=e.ref(),r=e.ref(32),{colorPalettes:c,shadowColor:m}=$.useInject("Textarea"),n=h,p=e.computed(()=>typeof a.width=="number"?`${a.width}px`:a.width),d=e.computed(()=>{if(typeof a.autoSize=="object"){const t={height:`${r.value}px`,resize:"none"};return"minRows"in a.autoSize&&(t["min-height"]=`${a.autoSize.minRows*22+10}px`),"maxRows"in a.autoSize&&(t["max-height"]=`${a.autoSize.maxRows*22+10}px`),t}if(typeof a.autoSize=="boolean")return a.autoSize?{height:`${r.value}px`,resize:"none"}:{}}),f=e.computed(()=>!a.disabled&&a.allowClear&&o.value),g=e.computed(()=>a.maxlength?`${o.value?o.value.length:0} / ${a.maxlength}`:o.value?o.value.length:0),x=e.computed(()=>"lazy"in a.valueModifiers);e.watch(()=>a.value,async t=>{o.value!==t&&(o.value=t),JSON.stringify(d.value)!=="{}"&&(r.value=32,await e.nextTick(),v())},{immediate:!0,flush:"post"}),e.onMounted(()=>{v()});function v(){r.value=s.value.scrollHeight+2}function w(t){i.value=!0,n("compositionstart",t)}function y(t){i.value=!1,n("compositionend",t);const l=new Event("change");t.target?.dispatchEvent(l)}function C(t){if(!i.value){const l=t.target;o.value=l.value,x.value||(n("update:value",l.value),n("change",t))}}function z(t){const l=t.target;l.value!==a.value&&(n("update:value",l.value),n("change",t))}function S(t){i.value||n("enter",t)}function b(){o.value="",n("update:value",""),s.value?.focus()}return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["textarea-wrap",{"show-count":u.showCount}]),style:e.normalizeStyle(`
|
|
2
2
|
--textarea-width: ${p.value};
|
|
3
|
-
--textarea-primary-color-hover: ${e.unref(
|
|
4
|
-
--textarea-primary-color-focus: ${e.unref(
|
|
3
|
+
--textarea-primary-color-hover: ${e.unref(c)[4]};
|
|
4
|
+
--textarea-primary-color-focus: ${e.unref(c)[4]};
|
|
5
5
|
--textarea-primary-shadow-color: ${e.unref(m)};
|
|
6
|
-
`),"data-count":g.value},[e.createElementVNode("textarea",{ref_key:"textareaRef",ref:
|
|
6
|
+
`),"data-count":g.value},[e.createElementVNode("textarea",{ref_key:"textareaRef",ref:s,type:"hidden",class:e.normalizeClass(["textarea-item",{"clear-class":f.value,"textarea-disabled":u.disabled}]),style:e.normalizeStyle(d.value),value:o.value,placeholder:u.placeholder,maxlength:u.maxlength,disabled:u.disabled,onCompositionstart:w,onCompositionend:y,onInput:C,onChange:z,onKeydown:e.withKeys(S,["enter"])},null,46,E),f.value?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"clear-svg",onClick:b,focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[...l[0]||(l[0]=[e.createElementVNode("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"},null,-1)])])):e.createCommentVNode("",!0)],14,B))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.text-scroll-horizontal[data-v-
|
|
1
|
+
.text-scroll-horizontal[data-v-cdf5afc9]{overflow:hidden;display:flex;box-shadow:0 0 5px var(--text-scroll-shadow-color);border-radius:6px;background-color:var(--text-scroll-bg-color)}.text-scroll-horizontal .scroll-items-group[data-v-cdf5afc9]{z-index:1;display:flex;align-items:center;will-change:transform;animation:horizontalScroll-cdf5afc9 var(--text-scroll-duration) linear var(--text-scroll-delay) var(--text-scroll-iteration-count);animation-play-state:var(--text-scroll-play-state)}@keyframes horizontalScroll-cdf5afc9{0%{transform:translate(0)}to{transform:translate(-100%)}}.text-scroll-horizontal .scroll-items-group .scroll-item[data-v-cdf5afc9]{margin-left:var(--text-scroll-item-gap);font-size:16px;font-weight:400;color:#000000e0;line-height:1.57;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-scroll-horizontal .scroll-items-group[data-v-cdf5afc9] .href-item{cursor:pointer;transition:color .3s}.text-scroll-horizontal .scroll-items-group[data-v-cdf5afc9] .href-item:hover{color:var(--text-scroll-href-hover-color)!important}.text-scroll-horizontal .scroll-items-group[data-v-cdf5afc9] .href-item .ellipsis-container{cursor:inherit}.text-scroll-horizontal .scroll-items-reset[data-v-cdf5afc9]{animation:none}.slide-enter-active[data-v-cdf5afc9],.slide-leave-active[data-v-cdf5afc9]{transition:all var(--text-scroll-duration) var(--text-scroll-timing-function)}.slide-enter-from[data-v-cdf5afc9]{transform:translateY(100%) scale(var(--text-scroll-scale));opacity:0}.slide-leave-to[data-v-cdf5afc9]{transform:translateY(-100%) scale(var(--text-scroll-scale));opacity:0}.text-scroll-vertical[data-v-cdf5afc9]{overflow:hidden;position:relative;box-shadow:0 0 5px var(--text-scroll-shadow-color);border-radius:6px;background-color:var(--text-scroll-bg-color)}.text-scroll-vertical .scroll-item-wrap[data-v-cdf5afc9]{position:absolute;left:0;right:0;height:100%;display:flex;align-items:center;justify-content:center;padding:0 var(--text-scroll-item-padding)}.text-scroll-vertical .scroll-item-wrap .scroll-item[data-v-cdf5afc9]{font-size:16px;font-weight:400;color:#000000e0;line-height:1.57;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.text-scroll-vertical .scroll-item-wrap[data-v-cdf5afc9] .href-item{cursor:pointer;transition:color .3s}.text-scroll-vertical .scroll-item-wrap[data-v-cdf5afc9] .href-item:hover{color:var(--text-scroll-href-hover-color)!important}.text-scroll-vertical .scroll-item-wrap[data-v-cdf5afc9] .href-item .ellipsis-container{cursor:inherit}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextScroll.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./TextScroll.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-cdf5afc9"]]);exports.default=u;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../ellipsis/index.cjs"),f=require("../utils/index.cjs"),A=e.defineComponent({__name:"TextScroll",props:{items:{default:()=>[]},single:{type:Boolean,default:!1},width:{default:"100%"},height:{default:50},itemStyle:{default:()=>({})},hrefHoverColor:{default:void 0},amount:{type:[Number,Boolean],default:4},gap:{default:20},speed:{default:48},vertical:{type:Boolean,default:!1},duration:{default:1e3},interval:{default:3e3},ellipsis:{type:Boolean,default:!1},ellipsisProps:{default:()=>({})},pauseOnMouseEnter:{type:Boolean,default:!1}},emits:["click"],setup(l,{expose:R,emit:N}){const a=l,v=e.ref(),B=e.ref(0),S=e.ref(),y=e.ref(),w=e.ref(0),s=e.ref("paused"),m=e.ref(!0),d=e.ref(0),i=e.ref(),o=e.ref(!0),r=e.ref([]),{colorPalettes:C}=f.useInject("TextScroll"),V=N,k=e.computed(()=>r.value.length),$=e.computed(()=>({width:typeof a.width=="number"?`${a.width}px`:a.width,height:`${a.height}px`})),z=e.computed(()=>a.single?1:a.amount===!1?0:a.amount),h=e.computed(()=>a.amount===!1?"auto":`${parseFloat((B.value/z.value).toFixed(2))-a.gap}px`),P=e.computed(()=>w.value/a.speed);e.watch(()=>a.items,()=>{a.single?r.value=[a.items]:a.vertical&&a.items.length===1?r.value=[...a.items,...a.items]:r.value=[...a.items]},{immediate:!0,deep:!0}),e.watch(r,()=>{M()}),e.watch(()=>[a.vertical,a.duration,a.interval],()=>{E()},{deep:!0,flush:"post"}),f.useResizeObserver([v,y,S],()=>{E()});function E(){i.value&&f.cancelRaf(i.value),o.value||(o.value=!0),a.vertical||F(),u()}function F(){B.value=v.value.offsetWidth,w.value=y.value.offsetWidth}function b(){s.value="paused",e.nextTick(()=>{v.value?.offsetTop,s.value="running"})}function O(){b()}function W(){i.value=f.rafTimeout(()=>{o.value&&(o.value=!1),d.value=(d.value+1)%k.value},o.value?a.interval:a.interval+a.duration,!0)}function g(T){V("click",T)}function u(){a.vertical?k.value>=1&&W():k.value>=z.value&&(m.value=!1,s.value="running")}function x(){a.vertical?(o.value=!0,i.value&&f.cancelRaf(i.value)):s.value="paused"}function M(){a.vertical?(i.value&&f.cancelRaf(i.value),d.value!==0?(d.value=0,o.value=!1):o.value=!0,u()):(s.value="paused",m.value=!0,e.nextTick(()=>{v.value?.offsetTop,u()}))}return R({start:u,stop:x,reset:M}),(T,n)=>l.vertical?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"verticalRef",ref:S,class:"text-scroll-vertical",style:e.normalizeStyle([$.value,`
|
|
2
2
|
--text-scroll-shadow-color: #d3d3d3;
|
|
3
3
|
--text-scroll-bg-color: #fff;
|
|
4
|
-
--text-scroll-href-hover-color: ${
|
|
5
|
-
--text-scroll-duration: ${
|
|
4
|
+
--text-scroll-href-hover-color: ${l.hrefHoverColor||e.unref(C)[5]};
|
|
5
|
+
--text-scroll-duration: ${l.duration}ms;
|
|
6
6
|
--text-scroll-timing-function: ease;
|
|
7
7
|
--text-scroll-scale: 0.5;
|
|
8
|
-
--text-scroll-item-padding: ${
|
|
9
|
-
`]),onMouseenter:n[2]||(n[2]=l
|
|
8
|
+
--text-scroll-item-padding: ${l.gap}px;
|
|
9
|
+
`]),onMouseenter:n[2]||(n[2]=t=>l.pauseOnMouseEnter?x():()=>!1),onMouseleave:n[3]||(n[3]=t=>l.pauseOnMouseEnter?u():()=>!1)},[e.createVNode(e.TransitionGroup,{name:"slide"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(t,c)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"scroll-item-wrap",key:c},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":!l.ellipsis&&t.href}]),style:e.normalizeStyle(l.ellipsis?{}:l.itemStyle),title:l.ellipsis?null:t.title,href:t.href,target:t.target,onClick:D=>g(t)},{default:e.withCtx(()=>[l.ellipsis?(e.openBlock(),e.createBlock(e.unref(p.default),e.mergeProps({key:0,"content-class":`${t.href?"href-item":null}`,"content-style":{...l.itemStyle,maxWidth:"100%"}},{ref_for:!0},l.ellipsisProps),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:2},1040,["content-class","content-style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.title),1)],64))]),_:2},1032,["class","style","title","href","target","onClick"]))])),[[e.vShow,d.value===c]])),128))]),_:1})],36)):(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"horizontalRef",ref:v,class:"text-scroll-horizontal",style:e.normalizeStyle([$.value,`
|
|
10
10
|
--text-scroll-shadow-color: #d3d3d3;
|
|
11
11
|
--text-scroll-bg-color: #fff;
|
|
12
|
-
--text-scroll-href-hover-color: ${
|
|
13
|
-
--text-scroll-item-gap: ${
|
|
14
|
-
--text-scroll-play-state: ${
|
|
12
|
+
--text-scroll-href-hover-color: ${l.hrefHoverColor||e.unref(C)[5]};
|
|
13
|
+
--text-scroll-item-gap: ${l.gap}px;
|
|
14
|
+
--text-scroll-play-state: ${s.value};
|
|
15
15
|
--text-scroll-duration: ${P.value}s;
|
|
16
16
|
--text-scroll-delay: 0s;
|
|
17
17
|
--text-scroll-iteration-count: infinite;
|
|
18
|
-
`]),onMouseenter:n[0]||(n[0]=l
|
|
18
|
+
`]),onMouseenter:n[0]||(n[0]=t=>l.pauseOnMouseEnter?x():()=>!1),onMouseleave:n[1]||(n[1]=t=>l.pauseOnMouseEnter?u():()=>!1)},[e.createElementVNode("div",{ref_key:"groupRef",ref:y,class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":m.value}]),onAnimationiteration:O},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(t,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":!l.ellipsis&&t.href}]),style:e.normalizeStyle([l.ellipsis?null:l.itemStyle,`width: ${h.value};`]),key:c,title:l.ellipsis?null:t.title,href:t.href,target:t.target,onClick:D=>g(t)},{default:e.withCtx(()=>[l.ellipsis?(e.openBlock(),e.createBlock(e.unref(p.default),e.mergeProps({key:0,"max-width":h.value,"content-class":`${t.href?"href-item":null}`,"content-style":l.itemStyle},{ref_for:!0},l.ellipsisProps),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:2},1040,["max-width","content-class","content-style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.title),1)],64))]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],34),e.createElementVNode("div",{class:e.normalizeClass(["scroll-items-group",{"scroll-items-reset":m.value}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(t,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.href?"a":"div"),{class:e.normalizeClass(["scroll-item",{"href-item":!l.ellipsis&&t.href}]),style:e.normalizeStyle([l.ellipsis?null:l.itemStyle,`width: ${h.value};`]),key:c,title:l.ellipsis?null:t.title,href:t.href,target:t.target,onClick:D=>g(t)},{default:e.withCtx(()=>[l.ellipsis?(e.openBlock(),e.createBlock(e.unref(p.default),e.mergeProps({key:0,"max-width":h.value,"content-class":`${t.href?"href-item":null}`,"content-style":l.itemStyle},{ref_for:!0},l.ellipsisProps),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.title),1)]),_:2},1040,["max-width","content-class","content-style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.title),1)],64))]),_:2},1032,["class","style","title","href","target","onClick"]))),128))],2)],36))}});exports.default=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.timeline-wrap[data-v-
|
|
1
|
+
.timeline-wrap[data-v-5435ee64]{font-size:14px;color:#000000e0;line-height:1.57142857}.timeline-wrap .timeline-item[data-v-5435ee64]{position:relative;padding-bottom:30px}.timeline-wrap .timeline-item .timeline-tail[data-v-5435ee64]{position:absolute;top:12px;width:0;height:100%;border-left-width:2px;border-left-color:#e8e8e8}.timeline-wrap .timeline-item .tail-left[data-v-5435ee64]{left:5px}.timeline-wrap .timeline-item .tail-center[data-v-5435ee64]{left:0;right:0;margin:0 auto}.timeline-wrap .timeline-item .tail-right[data-v-5435ee64]{right:5px}.timeline-wrap .timeline-item .timeline-dot[data-v-5435ee64]{position:absolute;display:flex;align-items:center}.timeline-wrap .timeline-item .timeline-dot[data-v-5435ee64] svg{fill:currentColor}.timeline-wrap .timeline-item .timeline-dot .dot-item[data-v-5435ee64]{display:inline-block;width:12px;height:12px;border-width:2px;border-style:solid;border-radius:50%;background:#fff}.timeline-wrap .timeline-item .dot-left[data-v-5435ee64]{left:6px;transform:translate(-50%)}.timeline-wrap .timeline-item .dot-center[data-v-5435ee64]{left:50%;transform:translate(-50%)}.timeline-wrap .timeline-item .dot-right[data-v-5435ee64]{right:6px;transform:translate(50%)}.timeline-wrap .timeline-item .timeline-desc[data-v-5435ee64]{font-size:14px;line-height:1.57142857;word-break:break-all}.timeline-wrap .timeline-item .desc-left[data-v-5435ee64]{margin-left:25px}.timeline-wrap .timeline-item .desc-center[data-v-5435ee64]{width:calc(50% - 12px)}.timeline-wrap .timeline-item .desc-alternate-left[data-v-5435ee64]{text-align:end}.timeline-wrap .timeline-item .desc-alternate-right[data-v-5435ee64]{margin-left:calc(50% + 12px)}.timeline-wrap .timeline-item .desc-right[data-v-5435ee64]{margin-right:25px;text-align:end}.timeline-wrap .item-last .timeline-tail[data-v-5435ee64]{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Timeline.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Timeline.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-5435ee64"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=e.defineComponent({__name:"Timeline",props:{items:{default:()=>[]},width:{default:"100%"},lineStyle:{default:"solid"},mode:{default:"left"},position:{default:"left"}},setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=e.defineComponent({__name:"Timeline",props:{items:{default:()=>[]},width:{default:"100%"},lineStyle:{default:"solid"},mode:{default:"left"},position:{default:"left"}},setup(o){const s=o,r=e.ref(),n=e.ref([]),i=e.computed(()=>typeof s.width=="number"?`${s.width}px`:s.width),c=e.computed(()=>s.items.length);function d(){for(let l=0;l<c.value;l++)n.value[l]=getComputedStyle(r.value[l].firstElementChild||r.value[l],null).getPropertyValue("line-height")}return e.watchEffect(()=>{d()},{flush:"post"}),e.watchEffect(()=>{if(s.mode==="center")for(let l=0;l<c.value;l++)(l+1)%2?s.position==="left"?r.value[l].classList.add("desc-alternate-left"):r.value[l].classList.add("desc-alternate-right"):s.position==="left"?r.value[l].classList.add("desc-alternate-right"):r.value[l].classList.add("desc-alternate-left")},{flush:"post"}),(l,m)=>(e.openBlock(),e.createElementBlock("div",{class:"timeline-wrap",style:e.normalizeStyle(`width: ${i.value};`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["timeline-item",{"item-last":a===o.items.length-1}]),key:a},[e.createElementVNode("span",{class:e.normalizeClass(["timeline-tail",`tail-${o.mode}`]),style:e.normalizeStyle(`border-left-style: ${o.lineStyle};`)},null,6),e.createElementVNode("div",{class:e.normalizeClass(["timeline-dot",`dot-${o.mode}`]),style:e.normalizeStyle(`height: ${n.value[a]}`)},[e.renderSlot(l.$slots,"dot",{item:t,index:a},()=>[t.color==="red"?(e.openBlock(),e.createElementBlock("span",{key:0,class:"dot-item",style:e.normalizeStyle({borderColor:"#ff4d4f"})},null,4)):t.color==="gray"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"dot-item",style:e.normalizeStyle({borderColor:"#00000040"})},null,4)):t.color==="green"?(e.openBlock(),e.createElementBlock("span",{key:2,class:"dot-item",style:e.normalizeStyle({borderColor:"#52c41a"})},null,4)):t.color==="blue"?(e.openBlock(),e.createElementBlock("span",{key:3,class:"dot-item",style:e.normalizeStyle({borderColor:"#1677ff"})},null,4)):(e.openBlock(),e.createElementBlock("span",{key:4,class:"dot-item",style:e.normalizeStyle({borderColor:t.color||"#1677ff"})},null,4))],!0)],6),e.createElementVNode("div",{ref_for:!0,ref_key:"descRef",ref:r,class:e.normalizeClass(`timeline-desc desc-${o.mode}`)},[e.renderSlot(l.$slots,"desc",{item:t,index:a},()=>[e.createTextVNode(e.toDisplayString(t.desc||"--"),1)],!0)],2)],2))),128))],4))}});exports.default=u;
|
package/lib/tooltip/Tooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.m-tooltip-wrap[data-v-
|
|
1
|
+
.m-tooltip-wrap[data-v-703d1812]{position:relative;display:inline-block}.zoom-enter[data-v-703d1812]{transform:none;opacity:0;animation-duration:var(--tooltip-transition-duration);animation-fill-mode:both;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.zoom-enter-active[data-v-703d1812]{animation-name:zoomIn-703d1812;animation-play-state:running}@keyframes zoomIn-703d1812{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.zoom-leave[data-v-703d1812]{animation-duration:var(--tooltip-transition-duration);animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.zoom-leave-active[data-v-703d1812]{animation-name:zoomOut-703d1812;animation-play-state:running;pointer-events:none}@keyframes zoomOut-703d1812{0%{transform:scale(1);opacity:1}to{transform:scale(.8);opacity:0}}.tooltip-card-container[data-v-703d1812]{position:absolute;z-index:999;width:max-content;outline:none}.tooltip-card-container .tooltip-card[data-v-703d1812]{min-width:32px;max-width:var(--tooltip-max-width);min-height:32px;padding:6px 8px;font-size:14px;color:#fff;line-height:1.57142857;text-align:justify;text-decoration:none;word-break:break-all;background-color:var(--tooltip-background-color);border-radius:6px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.tooltip-card-container .tooltip-card[data-v-703d1812] svg{fill:currentColor}.tooltip-card-container .tooltip-arrow[data-v-703d1812]{position:absolute;z-index:9;display:block;pointer-events:none;width:16px;height:16px;overflow:hidden}.tooltip-card-container .tooltip-arrow[data-v-703d1812]:before{position:absolute;width:16px;height:8px;background-color:var(--tooltip-background-color);clip-path:path("M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z");content:""}.tooltip-card-container .tooltip-arrow[data-v-703d1812]:after{position:absolute;width:8.97056275px;height:8.97056275px;margin:auto;border-radius:0 0 2px;transform:translateY(50%) rotate(-135deg);box-shadow:3px 3px 7px #0000001a;z-index:0;background:transparent;content:""}.tooltip-card-container .arrow-top[data-v-703d1812]{left:50%;bottom:12px;transform:translate(-50%) translateY(100%) rotate(180deg)}.tooltip-card-container .arrow-top[data-v-703d1812]:before{bottom:0;left:0}.tooltip-card-container .arrow-top[data-v-703d1812]:after{bottom:0;left:0;right:0}.tooltip-card-container .arrow-bottom[data-v-703d1812]{left:50%;top:12px;transform:translate(-50%) translateY(-100%) rotate(0)}.tooltip-card-container .arrow-bottom[data-v-703d1812]:before{bottom:0;left:0}.tooltip-card-container .arrow-bottom[data-v-703d1812]:after{bottom:0;left:0;right:0}.tooltip-card-container .arrow-left[data-v-703d1812]{top:50%;right:12px;transform:translate(100%) translateY(-50%) rotate(90deg)}.tooltip-card-container .arrow-left[data-v-703d1812]:before{bottom:0;left:0}.tooltip-card-container .arrow-left[data-v-703d1812]:after{bottom:0;left:0;right:0}.tooltip-card-container .arrow-right[data-v-703d1812]{top:50%;left:12px;transform:translate(-100%) translateY(-50%) rotate(-90deg)}.tooltip-card-container .arrow-right[data-v-703d1812]:before{bottom:0;left:0}.tooltip-card-container .arrow-right[data-v-703d1812]:after{bottom:0;left:0;right:0}.tooltip-top-padding[data-v-703d1812]{padding-bottom:12px}.tooltip-bottom-padding[data-v-703d1812]{padding-top:12px}.tooltip-left-padding[data-v-703d1812]{padding-right:12px}.tooltip-right-padding[data-v-703d1812]{padding-left:12px}.tooltip-content[data-v-703d1812]{display:inline-block}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tooltip.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Tooltip.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-703d1812"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../utils/index.cjs"),me=e.defineComponent({__name:"Tooltip",props:{maxWidth:{default:240},content:{default:void 0},contentClass:{default:void 0},contentStyle:{default:()=>({})},tooltip:{default:void 0},tooltipClass:{default:void 0},tooltipStyle:{default:()=>({})},bgColor:{default:"rgba(0, 0, 0, 0.85)"},arrow:{type:Boolean,default:!0},placement:{default:"top"},flip:{type:Boolean,default:!0},trigger:{default:"hover"},keyboard:{type:Boolean,default:!1},to:{type:[String,Boolean],default:"body"},transitionDuration:{default:100},showDelay:{default:100},hideDelay:{default:100},show:{type:Boolean,default:!1},showControl:{type:Boolean,default:!1}},emits:["update:show","openChange","animationend"],setup(i,{expose:J,emit:Q}){const o=i,W=e.ref(!1),u=e.ref(!1),S=e.ref(),c=e.ref(null),j=e.ref(0),s=e.ref(0),m=e.ref(0),d=e.ref("top"),D=e.ref(null),v=e.ref(),V=e.ref(null),N=e.ref(null),K=e.ref(),H=e.ref(null),a=e.ref(),L=e.ref(document.documentElement.clientWidth),M=e.ref(document.documentElement.clientHeight),{isSupported:Z}=h.useOptionsSupported("passive"),{isSupported:U}=h.useOptionsSupported("capture"),x=Q,P=h.useSlotsExist(["tooltip"]),_=e.computed(()=>typeof o.maxWidth=="number"?`${o.maxWidth}px`:o.maxWidth),p=e.computed(()=>P.tooltip||o.tooltip),ee=e.computed(()=>{const t=v.value?.top??0,r=K.value?.top??0,f=t-r,$=v.value?.left??0,z=K.value?.left??0,g=$-z;switch(d.value){case"top":return{transformOrigin:`50% ${s.value}px`,top:`${f-s.value}px`,left:`${g-m.value}px`};case"bottom":return{transformOrigin:`50% ${o.arrow?-4:-6}px`,top:`${f+s.value}px`,left:`${g-m.value}px`};case"left":return{transformOrigin:`${m.value}px 50%`,top:`${f-s.value}px`,left:`${g-m.value}px`};case"right":return{transformOrigin:`${o.arrow?-4:-6}px 50%`,top:`${f-s.value}px`,left:`${g+m.value}px`};default:return{transformOrigin:`50% ${s.value}px`,top:`${f-s.value}px`,left:`${g-m.value}px`}}});e.watch(()=>[o.placement,o.arrow,o.flip],()=>{E()},{deep:!0}),e.watch(()=>p.value&&u.value,t=>{t&&!W.value&&(W.value=!0)},{immediate:!0}),e.watch(()=>o.show,t=>{t&&!u.value&&k(),!t&&u.value&&w()},{immediate:!0}),e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{Y()});const X=h.useMutationObserver(c,()=>{j.value!==c.value?.scrollTop&&(j.value=c.value?.scrollTop??0,E())},{subtree:!0,attributes:!0});h.useEventListener(window,"resize",oe),h.useResizeObserver([H,D],t=>{if(p.value&&u.value){if(t.length===1&&t[0].target.classList.contains("tooltip-card")){const{blockSize:r,inlineSize:f}=t[0].borderBoxSize[0];if(Math.round(r)===Math.round(a.value.height)&&Math.round(f)===Math.round(a.value.width))return}E()}});function te(){let t=V.value?.parentElement;for(;t;){if(t===document.documentElement){N.value=document.documentElement;return}const{position:r}=getComputedStyle(t);if(r!=="static"){N.value=t;return}t=t.parentElement}}function oe(){L.value=document.documentElement.clientWidth,M.value=document.documentElement.clientHeight,q(),E()}function q(){Y(),c.value=F(D.value),c.value&&c.value.addEventListener("scroll",E,Z.value?{passive:!0}:void 0),c.value===document.documentElement?X.start():X.stop()}function Y(){c.value&&c.value.removeEventListener("scroll",E),c.value=null}function ne(t){return t===document.documentElement?null:t.parentElement}function F(t){if(t===null)return null;const r=ne(t);return r===null?null:r===document.documentElement?document.documentElement:($=>{const{overflow:z,overflowX:g,overflowY:A}=getComputedStyle($);return/(auto|scroll|overlay)/.test(z+A+g)})(r)?r:F(r)}function E(){u.value&&G()}async function G(){await e.nextTick(),te(),K.value=N.value?.getBoundingClientRect(),v.value=D.value?.getBoundingClientRect(),a.value=H.value?.getBoundingClientRect(),o.flip&&(d.value=re()),d.value==="top"?(s.value=a.value.height+(o.arrow?16:6),m.value=(a.value.width-v.value.width)/2):d.value==="bottom"?(s.value=v.value.height+(o.arrow?4:6),m.value=(a.value.width-v.value.width)/2):d.value==="left"?(s.value=(a.value.height-v.value.height)/2,m.value=a.value.width+(o.arrow?16:6)):d.value==="right"&&(s.value=(a.value.height-v.value.height)/2,m.value=v.value.width+(o.arrow?4:6))}function le(){if(c.value){const t=c.value.getBoundingClientRect();return{top:t.top<0?0:t.top,left:t.left<0?0:t.left,bottom:t.bottom>M.value?M.value:t.bottom,right:t.right>L.value?L.value:t.right}}return{top:0,left:0,bottom:M.value,right:L.value}}function re(){const{top:t,bottom:r,left:f,right:$}=v.value,{top:z,bottom:g,left:A,right:se}=le(),T=t-z-(o.arrow?12:0),B=g-r-(o.arrow?12:0),R=f-A-(o.arrow?12:0),b=se-$-(o.arrow?12:0),y=(a.value.width-v.value.width)/2,C=(a.value.height-v.value.height)/2;return l(o.placement,[]);function l(O,n){if(O==="top"){if(n.includes("top"))return n.includes("bottom")?n.includes("left")?l("right",n):l("left",n):l("bottom",n);if(T<a.value.height+(o.arrow?4:6)&&n.length!==3)return l("bottom",[...n,"top"]);if(R>=y&&b>=y)return"top";if(n.length!==3){if(R>=y)return l("left",["top","bottom","right"]);if(b>=y)return l("right",["top","bottom","left"])}}else if(O==="bottom"){if(n.includes("bottom"))return n.includes("top")?n.includes("left")?l("right",n):l("left",n):l("top",n);if(B<a.value.height+(o.arrow?4:6)&&n.length!==3)return l("top",[...n,"bottom"]);if(R>=y&&b>=y)return"bottom";if(n.length!==3){if(R>=y)return l("left",["top","bottom","right"]);if(b>=y)return l("right",["top","bottom","left"])}}else if(O==="left"){if(n.includes("left"))return n.includes("right")?n.includes("top")?l("bottom",n):l("top",n):l("right",n);if(R<a.value.width+(o.arrow?4:6)&&n.length!==3)return l("right",[...n,"left"]);if(T>=C&&B>=C)return"left";if(n.length!==3){if(T>=C)return l("top",["left","right","bottom"]);if(B>=C)return l("bottom",["left","right","top"])}}else if(O==="right"){if(n.includes("right"))return n.includes("left")?n.includes("top")?l("bottom",n):l("top",n):l("left",n);if(b<a.value.width+(o.arrow?4:6)&&n.length!==3)return l("left",[...n,"right"]);if(T>=C&&B>=C)return"right";if(n.length!==3){if(T>=C)return l("top",["left","right","bottom"]);if(B>=C)return l("bottom",["left","right","top"])}}return o.placement}}function k(){S.value&&h.cancelRaf(S.value),u.value||(S.value=h.rafTimeout(()=>{u.value=!0,G(),x("update:show",!0),x("openChange",!0),p.value&&o.trigger==="click"&&document.addEventListener("click",I,U.value?{capture:!0}:!0)},o.showDelay))}function w(){S.value&&h.cancelRaf(S.value),u.value&&(S.value=h.rafTimeout(()=>{u.value=!1,x("update:show",!1),x("openChange",!1),p.value&&o.trigger==="click"&&document.removeEventListener("click",I,U.value?{capture:!0}:!0)},o.hideDelay))}function ie(){u.value?w():k()}function I(t){V.value?.contains(t.target)||w()}function ue(){p.value&&o.trigger==="hover"&&!o.showControl&&k()}function ae(){p.value&&o.trigger==="hover"&&!o.showControl&&w()}function fe(){x("animationend",u.value)}function ce(){o.trigger==="hover"&&!o.showControl&&k()}function ve(){o.trigger==="hover"&&!o.showControl&&w()}return J({show:k,hide:w,observeScroll:q}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:"tooltip-wrap",onMouseenter:ue,onMouseleave:ae},[(e.openBlock(),e.createBlock(e.Teleport,{disabled:i.to===!1,to:i.to===!1?null:i.to},[e.createVNode(e.Transition,{name:"zoom","enter-from-class":"zoom-enter","enter-active-class":"zoom-enter","enter-to-class":"zoom-enter zoom-enter-active","leave-from-class":"zoom-leave","leave-active-class":"zoom-leave zoom-leave-active","leave-to-class":"zoom-leave zoom-leave-active",onAnimationend:fe},{default:e.withCtx(()=>[W.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:V,class:e.normalizeClass(["tooltip-card-container",{[`tooltip-${d.value}-padding`]:i.arrow}]),style:e.normalizeStyle({...ee.value,"--tooltip-max-width":_.value,"--tooltip-background-color":i.bgColor,"--tooltip-transition-duration":`${i.transitionDuration}ms`}),onMouseenter:ce,onMouseleave:ve,onKeydown:r[0]||(r[0]=e.withKeys(f=>i.trigger==="click"&&i.keyboard&&u.value?w():()=>!1,["esc"]))},[e.createElementVNode("div",{ref_key:"tooltipCardRef",ref:H,class:e.normalizeClass(["tooltip-card",i.tooltipClass]),style:e.normalizeStyle(i.tooltipStyle)},[e.renderSlot(t.$slots,"tooltip",{},()=>[e.createTextVNode(e.toDisplayString(i.tooltip),1)],!0)],6),i.arrow?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-arrow",`arrow-${d.value||"top"}`])},null,2)):e.createCommentVNode("",!0)],38)),[[e.vShow,p.value&&u.value]]):e.createCommentVNode("",!0)]),_:3})],8,["disabled","to"])),e.createElementVNode("span",{ref_key:"tooltipContentRef",ref:D,class:e.normalizeClass(["tooltip-content",i.contentClass]),style:e.normalizeStyle(i.contentStyle),onClick:r[1]||(r[1]=f=>p.value&&i.trigger==="click"&&!u.value?k():()=>!1),onKeydown:[r[2]||(r[2]=e.withKeys(f=>p.value&&i.trigger==="click"&&i.keyboard?ie():()=>!1,["enter"])),r[3]||(r[3]=e.withKeys(f=>p.value&&i.trigger==="click"&&i.keyboard&&u.value?w():()=>!1,["esc"]))]},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(i.content),1)],!0)],38)],32))}});exports.default=me;
|
package/lib/upload/Upload.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.upload-wrap[data-v-
|
|
1
|
+
.upload-wrap[data-v-ccbed587]{display:inline-block;width:100%}.upload-wrap .upload-item-panel[data-v-ccbed587]{position:relative;display:inline-block;width:100px;height:100px}.upload-wrap .upload-item-panel .upload-item[data-v-ccbed587]{display:flex;align-items:center;justify-content:center;text-align:center;width:100px;height:100px;border-radius:8px;border:1px dashed #d9d9d9;background-color:#00000005;cursor:pointer;transition:border-color .3s}.upload-wrap .upload-item-panel .upload-item[data-v-ccbed587]:hover{border-color:var(--upload-primary-color)}.upload-wrap .upload-item-panel .upload-item .plus-svg[data-v-ccbed587]{display:inline-block;font-size:14px;color:#000000e0;fill:currentColor}.upload-wrap .upload-item-panel .upload-item .upload-tip[data-v-ccbed587]{margin-top:8px;font-size:14px;color:#000000e0;line-height:1.57142857}.upload-wrap .upload-item-panel .upload-disabled[data-v-ccbed587]{cursor:not-allowed}.upload-wrap .upload-item-panel .upload-disabled[data-v-ccbed587]:hover{border-color:#d9d9d9}.upload-wrap .upload-item-panel .file-uploading[data-v-ccbed587]{width:100px;height:100px;padding:8px;border-radius:8px;border:1px dashed #d9d9d9;background-color:#00000005;display:flex;align-items:center;text-align:center}.upload-wrap .upload-item-panel .file-uploading .spin-uploading[data-v-ccbed587]{display:inline-block}.upload-wrap .upload-item-panel .file-uploading .spin-uploading[data-v-ccbed587] .spin-tip{max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-wrap .upload-item-panel .file-preview[data-v-ccbed587]{position:relative;width:100px;height:100px;border-radius:8px;padding:8px;border:1px solid #d9d9d9;display:flex;align-items:center;text-align:center}.upload-wrap .upload-item-panel .file-preview .file-svg[data-v-ccbed587]{display:inline-block;width:100%;height:60px;color:var(--upload-primary-color);fill:currentColor}.upload-wrap .upload-item-panel .file-preview .file-mask[data-v-ccbed587]{position:absolute;inset:0;margin:8px;display:flex;align-items:center;justify-content:center;background:#00000080;opacity:0;pointer-events:none;transition:opacity .3s}.upload-wrap .upload-item-panel .file-preview .file-mask .file-icon[data-v-ccbed587]{display:inline-block;height:16px;margin:0 4px;cursor:pointer}.upload-wrap .upload-item-panel .file-preview .file-mask .file-icon .icon-svg[data-v-ccbed587]{display:inline-block;font-size:16px;color:#ffffffa6;fill:currentColor;cursor:pointer;transition:color .3s}.upload-wrap .upload-item-panel .file-preview .file-mask .file-icon .icon-svg[data-v-ccbed587]:hover{color:#fff}.upload-wrap .upload-item-panel .file-preview:hover .file-mask[data-v-ccbed587]{opacity:1;pointer-events:auto}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Upload.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Upload.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-ccbed587"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),H=require("../spin/index.cjs"),$=require("../message/index.cjs"),S=require("../image/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),H=require("../spin/index.cjs"),$=require("../message/index.cjs"),S=require("../image/index.cjs"),x=require("../space/index.cjs"),I=require("../utils/index.cjs"),T=["onDrop","onClick"],j=["accept","multiple","onChange"],A={class:"upload-tip"},O={class:"file-uploading"},W={key:0,class:"file-preview"},G={key:1,class:"file-svg",focusable:"false","data-icon":"file-pdf",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},J={key:2,class:"file-svg",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},K={class:"file-mask"},Q=["onClick"],X=["onClick"],Y=e.defineComponent({__name:"Upload",props:{accept:{default:"*"},multiple:{type:Boolean,default:!1},maxCount:{default:void 0},tip:{default:"Upload"},fit:{default:"contain"},draggable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},spaceProps:{default:()=>({})},spinProps:{default:()=>({})},imageProps:{default:()=>({})},messageProps:{default:()=>({})},actionMessage:{default:()=>({upload:"上传成功",remove:"删除成功"})},beforeUpload:{type:Function,default:()=>!0},uploadMode:{default:"base64"},customRequest:{type:Function,default:()=>{}},fileList:{default:()=>[]}},emits:["update:fileList","drop","change","preview","remove"],setup(r,{expose:k,emit:y}){const i=r,n=e.ref([]),f=e.ref(1),p=e.ref([]),m=e.ref(),h=e.ref(),u=e.ref(),{colorPalettes:V}=I.useInject("Upload"),c=y,d=e.computed(()=>i.maxCount===void 0?1/0:i.maxCount);e.watchEffect(()=>{b()});function b(){n.value=[...i.fileList],n.value.length>d.value&&n.value.splice(d.value),i.disabled?f.value=n.value.length:n.value.length<d.value?f.value=i.fileList.length+1:f.value=d.value}function g(o){const t=/\.(jpg|jpeg|png|gif)$/i,l=/^data:image/;return t.test(o)||l.test(o)}function M(o){const t=/\.pdf$/i,l=/^data:application\/pdf/;return t.test(o)||l.test(o)}function C(o,t){const l=o.dataTransfer?.files;if(l?.length){const a=l.length;for(let s=0;s<a&&t+s<=d.value;s++)w(l[s],t+s);m.value[t].value=""}c("drop",o)}function E(o){m.value[o].click()}function z(o,t){const l=o.target.files;if(l?.length){const a=l.length;for(let s=0;s<a&&t+s<d.value;s++)w(l[s],t+s);m.value[t].value=""}}const w=async(o,t)=>{new Promise((a,s)=>{try{const v=i.beforeUpload(o);v instanceof Promise?v.then(a,s):typeof v=="boolean"?v?a(v):s(new Error("Function returned false")):a(v)}catch(v){s(v)}}).then(()=>{d.value>f.value&&f.value++,i.uploadMode==="base64"&&(p.value[t]=!0,N(o,t)),i.uploadMode==="custom"&&(p.value[t]=!0,B(o,t))}).catch(a=>{console.log("beforeUpload error:",a)})};function N(o,t){const l=new FileReader;l.readAsDataURL(o),l.onloadstart=function(a){},l.onabort=function(a){},l.onerror=function(a){},l.onprogress=function(a){a.loaded===a.total&&(p.value[t]=!1)},l.onload=function(a){n.value.push({name:o.name,url:a.target?.result}),i.actionMessage.upload&&u.value.success(i.actionMessage.upload),c("update:fileList",n.value),c("change",n.value)},l.onloadend=function(a){}}function B(o,t){i.customRequest(o).then(l=>{n.value.push(l),i.actionMessage.upload&&u.value.success(i.actionMessage.upload),c("update:fileList",n.value),c("change",n.value)}).catch(l=>{d.value>1&&(f.value=n.value.length+1),u.value.error(l)}).finally(()=>{p.value[t]=!1})}function P(o,t){if(g(t)){const l=n.value.slice(0,o).filter(a=>!g(a.url));h.value[o-l.length].preview(0)}else window.open(t);c("preview",n.value[o])}function q(o){n.value.length<d.value&&f.value--;const t=n.value.splice(o,1);i.actionMessage.remove&&u.value.success(i.actionMessage.remove),c("remove",t[0]),c("update:fileList",n.value),c("change",n.value)}function R(o){u.value.info(o)}function L(o){u.value.success(o)}function U(o){u.value.error(o)}function F(o){u.value.warning(o)}function D(o){u.value.loading(o)}return k({info:R,success:L,error:U,warning:F,loading:D}),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:"upload-wrap",style:e.normalizeStyle(`--upload-primary-color: ${e.unref(V)[5]};`)},[e.createVNode(e.unref(x.default),e.mergeProps({gap:"small"},r.spaceProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("div",{class:"upload-item-panel",key:l},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["upload-item",{"upload-disabled":r.disabled}]),onDragenter:t[1]||(t[1]=e.withModifiers(()=>{},["stop","prevent"])),onDragover:t[2]||(t[2]=e.withModifiers(()=>{},["stop","prevent"])),onDrop:e.withModifiers(a=>r.draggable&&!r.disabled?C(a,l-1):()=>!1,["stop","prevent"]),onClick:a=>r.disabled?()=>!1:E(l-1)},[e.createElementVNode("input",{ref_for:!0,ref_key:"uploadInputRef",ref:m,type:"file",onClick:t[0]||(t[0]=e.withModifiers(()=>{},["stop"])),accept:r.accept,multiple:r.multiple,onChange:a=>z(a,l-1),style:{display:"none"}},null,40,j),e.createElementVNode("div",null,[t[3]||(t[3]=e.createElementVNode("svg",{focusable:"false",class:"plus-svg","data-icon":"plus",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("defs"),e.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}),e.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"})],-1)),e.createElementVNode("p",A,[e.renderSlot(o.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(r.tip),1)],!0)])])],42,T),[[e.vShow,!p.value[l-1]&&!n.value[l-1]]]),e.withDirectives(e.createElementVNode("div",O,[e.createVNode(e.unref(H.default),e.mergeProps({class:"spin-uploading",tip:"uploading",size:"small",indicator:"spin-line",color:"var(--upload-primary-color)"},{ref_for:!0},r.spinProps),null,16)],512),[[e.vShow,p.value[l-1]]]),n.value[l-1]?(e.openBlock(),e.createElementBlock("div",W,[g(n.value[l-1].url)?(e.openBlock(),e.createBlock(e.unref(S.default),e.mergeProps({key:0,ref_for:!0,ref_key:"imageRef",ref:h,style:{"--image-primary-color":"var(--upload-primary-color)"},bordered:!1,width:82,height:82,fit:r.fit,src:n.value[l-1].url,name:n.value[l-1].name},{ref_for:!0},r.imageProps),null,16,["fit","src","name"])):M(n.value[l-1].url)?(e.openBlock(),e.createElementBlock("svg",G,[...t[4]||(t[4]=[e.createElementVNode("path",{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",J,[...t[5]||(t[5]=[e.createElementVNode("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null,-1)])])),e.createElementVNode("div",K,[e.createElementVNode("a",{class:"file-icon",title:"预览",onClick:a=>P(l-1,n.value[l-1].url)},[...t[6]||(t[6]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"eye",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("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"})],-1)])],8,Q),e.withDirectives(e.createElementVNode("a",{class:"file-icon",title:"删除",onClick:e.withModifiers(a=>q(l-1),["prevent","stop"])},[...t[7]||(t[7]=[e.createElementVNode("svg",{class:"icon-svg",focusable:"false","data-icon":"delete",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[e.createElementVNode("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})],-1)])],8,X),[[e.vShow,!r.disabled]])])])):e.createCommentVNode("",!0)]))),128))]),_:3},16),e.createVNode(e.unref($.default),e.mergeProps({ref_key:"messageRef",ref:u},r.messageProps),null,16)],4))}});exports.default=Y;
|
package/lib/utils/resolver.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",ConfigProvider:"configprovider",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Highlight:"highlight",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"},l={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],TextScroll:["Ellipsis","Tooltip"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function p(e,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(e))return[];const r=[e];e in l&&r.push(...l[e]);const i=t?.cjs?"lib":"es",o=[`vue-amazing-ui/${i}/style/global.css`];return r.forEach(a=>{o.push(`vue-amazing-ui/${i}/${s[a]}/${a}.css`)}),e==="DatePicker"&&o.push(`vue-amazing-ui/${i}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s={Alert:"alert",Avatar:"avatar",BackTop:"backtop",Badge:"badge",Breadcrumb:"breadcrumb",Button:"button",Calendar:"calendar",Card:"card",Carousel:"carousel",Cascader:"cascader",Checkbox:"checkbox",Collapse:"collapse",ColorPicker:"colorpicker",ConfigProvider:"configprovider",Countdown:"countdown",DatePicker:"datepicker",Descriptions:"descriptions/descriptions",DescriptionsItem:"descriptions/descriptionsitem",Dialog:"dialog",Divider:"divider",Drawer:"drawer",Ellipsis:"ellipsis",Empty:"empty",Flex:"flex",FloatButton:"floatbutton",GradientText:"gradienttext",Row:"grid/row",Col:"grid/col",Highlight:"highlight",Image:"image",Input:"input",InputNumber:"inputnumber",InputSearch:"inputsearch",List:"list/list",ListItem:"list/listitem",LoadingBar:"loadingbar",Message:"message",Modal:"modal",Notification:"notification",NumberAnimation:"numberanimation",Pagination:"pagination",Popconfirm:"popconfirm",Popover:"popover",Progress:"progress",QRCode:"qrcode",Radio:"radio",Rate:"rate",Result:"result",Scrollbar:"scrollbar",Segmented:"segmented",Select:"select",Skeleton:"skeleton",Slider:"slider",Space:"space",Spin:"spin",Statistic:"statistic",Steps:"steps",Swiper:"swiper",Switch:"switch",Table:"table",Tabs:"tabs",Tag:"tag",Textarea:"textarea",TextScroll:"textscroll",Timeline:"timeline",Tooltip:"tooltip",Upload:"upload",Video:"video",Waterfall:"waterfall",Watermark:"watermark"},l={BackTop:["Tooltip"],Calendar:["Radio","Select","Empty","Scrollbar"],Card:["Skeleton"],Carousel:["Spin"],Cascader:["Select","Empty","Scrollbar"],Collapse:["Button"],ColorPicker:["Button","Input","Tooltip"],Dialog:["Button","Scrollbar"],Drawer:["Scrollbar"],Ellipsis:["Tooltip"],FloatButton:["Badge","Tooltip"],Image:["Space","Spin"],InputSearch:["Button"],List:["Empty","Pagination","Input","Select","Scrollbar","Spin"],ListItem:["Avatar"],Modal:["Button"],Pagination:["Input","Select","Empty","Scrollbar"],Popconfirm:["Button","Tooltip"],Popover:["Tooltip"],Rate:["Tooltip"],Select:["Empty","Scrollbar"],Table:["Checkbox","Ellipsis","Empty","Pagination","Input","Select","Radio","Scrollbar","Spin","Tooltip"],Tag:["Space"],TextScroll:["Ellipsis","Tooltip"],Upload:["Image","Message","Space","Spin"],Waterfall:["Spin"]};function p(e,t){if(["ConfigProvider","Highlight","NumberAnimation","Watermark"].includes(e))return[];const r=[e];e in l&&r.push(...l[e]);const i=t?.cjs?"lib":"es",o=[`vue-amazing-ui/${i}/style/global.css`];return r.forEach(a=>{o.push(`vue-amazing-ui/${i}/${s[a]}/${a}.css`)}),e==="DatePicker"&&o.push(`vue-amazing-ui/${i}/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css`),e==="Swiper"&&(o.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css`),["effect-cards","effect-creative","effect-cube","effect-fade","effect-flip","navigation","pagination"].forEach(n=>{o.push(`vue-amazing-ui/${i}/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/${n}.css`)})),o}function c(e){return{type:"component",resolve:t=>{if(t in s)return{name:t,from:"vue-amazing-ui",sideEffects:p(t,e)}}}}exports.VueAmazingUIResolver=c;
|
package/lib/video/Video.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.video-wrap[data-v-
|
|
1
|
+
.video-wrap[data-v-4b1efd1d]{width:var(--video-width);height:var(--video-height);position:relative;background:#000;cursor:pointer}.video-wrap .video-element[data-v-4b1efd1d]{display:inline-block;width:100%;height:100%;vertical-align:bottom}.video-wrap .icon-play[data-v-4b1efd1d]{display:inline-flex;align-items:center;justify-content:center;position:absolute;inset:0;margin:auto;width:80px;height:80px;transform:scale(var(--video-icon-scale));border-radius:50%;background-color:#0009;opacity:0;pointer-events:none;transition:background-color .3s}.video-wrap .icon-play .play-svg[data-v-4b1efd1d]{display:inline-block;color:#fff;fill:currentColor;width:29px;height:34px;margin-left:3px}.video-wrap .icon-show[data-v-4b1efd1d]{opacity:1}.video-hover:hover .icon-play[data-v-4b1efd1d]{background-color:#000000b3}
|