vue-amazing-ui 2.4.21 → 2.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +292 -292
- package/README.zh-CN.md +292 -292
- package/dist/index.iife.js +141 -141
- package/dist/index.js +6726 -6711
- package/dist/index.umd.cjs +151 -151
- package/dist/style.css +1 -1
- package/es/alert/Alert.css +1 -1
- package/es/alert/Alert.vue.js +2 -2
- package/es/alert/Alert.vue2.js +56 -56
- package/es/avatar/Avatar.css +1 -1
- package/es/avatar/Avatar.vue.js +1 -1
- package/es/avatar/Avatar.vue2.js +29 -29
- package/es/backtop/BackTop.css +1 -1
- package/es/backtop/BackTop.vue.js +2 -2
- package/es/backtop/BackTop.vue2.js +77 -77
- package/es/badge/Badge.css +1 -1
- package/es/badge/Badge.vue.js +2 -2
- package/es/badge/Badge.vue2.js +39 -39
- package/es/breadcrumb/Breadcrumb.css +1 -1
- package/es/breadcrumb/Breadcrumb.vue.js +2 -2
- package/es/breadcrumb/Breadcrumb.vue2.js +35 -35
- package/es/button/Button.css +1 -1
- package/es/button/Button.vue.js +2 -2
- package/es/button/Button.vue2.js +43 -43
- package/es/calendar/Calendar.css +1 -1
- package/es/calendar/Calendar.vue.js +2 -2
- package/es/calendar/Calendar.vue2.js +111 -111
- package/es/card/Card.css +1 -1
- package/es/card/Card.vue.js +2 -2
- package/es/card/Card.vue2.js +21 -21
- package/es/carousel/Carousel.css +1 -1
- package/es/carousel/Carousel.vue.js +2 -2
- package/es/carousel/Carousel.vue2.js +131 -131
- package/es/cascader/Cascader.css +1 -1
- package/es/cascader/Cascader.d.ts +8 -0
- package/es/cascader/Cascader.vue.js +2 -2
- package/es/cascader/Cascader.vue2.js +71 -55
- package/es/cascader/index.d.ts +12 -0
- package/es/checkbox/Checkbox.css +1 -1
- package/es/checkbox/Checkbox.vue.js +2 -2
- package/es/checkbox/Checkbox.vue2.js +52 -52
- package/es/collapse/Collapse.css +1 -1
- package/es/collapse/Collapse.vue.js +2 -2
- package/es/collapse/Collapse.vue2.js +86 -86
- package/es/colorpicker/ColorPicker.css +1 -1
- package/es/colorpicker/ColorPicker.vue.js +2 -2
- package/es/colorpicker/ColorPicker.vue2.js +232 -232
- package/es/configprovider/ConfigProvider.vue.js +29 -29
- package/es/countdown/Countdown.css +1 -1
- package/es/countdown/Countdown.vue.js +2 -2
- package/es/countdown/Countdown.vue2.js +67 -67
- package/es/datepicker/DatePicker.css +1 -1
- package/es/datepicker/DatePicker.vue.js +4 -4
- package/es/datepicker/DatePicker.vue2.js +21 -21
- package/es/descriptions/descriptions/Descriptions.css +1 -1
- package/es/descriptions/descriptions/Descriptions.vue.js +2 -2
- package/es/descriptions/descriptions/Descriptions.vue2.js +61 -61
- package/es/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
- package/es/descriptions/descriptionsitem/DescriptionsItem.vue.js +2 -2
- package/es/descriptions/descriptionsitem/DescriptionsItem.vue2.js +17 -17
- package/es/dialog/Dialog.css +1 -1
- package/es/dialog/Dialog.vue.js +1 -1
- package/es/dialog/Dialog.vue2.js +112 -112
- package/es/divider/Divider.css +1 -1
- package/es/divider/Divider.vue.js +1 -1
- package/es/divider/Divider.vue2.js +11 -11
- package/es/drawer/Drawer.css +1 -1
- package/es/drawer/Drawer.vue.js +2 -2
- package/es/drawer/Drawer.vue2.js +84 -84
- package/es/ellipsis/Ellipsis.css +1 -1
- package/es/ellipsis/Ellipsis.vue.js +2 -2
- package/es/ellipsis/Ellipsis.vue2.js +32 -32
- package/es/empty/Empty.css +1 -1
- package/es/empty/Empty.vue.js +2 -2
- package/es/empty/Empty.vue2.js +22 -22
- package/es/flex/Flex.css +1 -1
- package/es/flex/Flex.vue.js +2 -2
- package/es/flex/Flex.vue2.js +10 -10
- package/es/floatbutton/FloatButton.css +1 -1
- package/es/floatbutton/FloatButton.vue.js +1 -1
- package/es/floatbutton/FloatButton.vue2.js +57 -57
- package/es/gradienttext/GradientText.css +1 -1
- package/es/gradienttext/GradientText.vue.js +1 -1
- package/es/gradienttext/GradientText.vue2.js +7 -7
- package/es/grid/col/Col.css +1 -1
- package/es/grid/col/Col.vue.js +2 -2
- package/es/grid/col/Col.vue2.js +7 -7
- package/es/grid/row/Row.css +1 -1
- package/es/grid/row/Row.vue.js +1 -1
- package/es/grid/row/Row.vue2.js +14 -14
- package/es/image/Image.css +1 -1
- package/es/image/Image.vue.js +2 -2
- package/es/image/Image.vue2.js +177 -177
- package/es/input/Input.css +1 -1
- package/es/input/Input.vue.js +2 -2
- package/es/input/Input.vue2.js +72 -72
- package/es/inputnumber/InputNumber.css +1 -1
- package/es/inputnumber/InputNumber.vue.js +1 -1
- package/es/inputnumber/InputNumber.vue2.js +76 -76
- package/es/inputsearch/InputSearch.css +1 -1
- package/es/inputsearch/InputSearch.vue.js +2 -2
- package/es/inputsearch/InputSearch.vue2.js +61 -61
- package/es/list/list/List.css +1 -1
- package/es/list/list/List.vue.js +2 -2
- package/es/list/list/List.vue2.js +14 -14
- package/es/list/listitem/ListItem.css +1 -1
- package/es/list/listitem/ListItem.vue.js +2 -2
- package/es/list/listitem/ListItem.vue2.js +41 -41
- package/es/loadingbar/LoadingBar.css +1 -1
- package/es/loadingbar/LoadingBar.vue.js +2 -2
- package/es/loadingbar/LoadingBar.vue2.js +25 -25
- package/es/message/Message.css +1 -1
- package/es/message/Message.vue.js +2 -2
- package/es/message/Message.vue2.js +37 -37
- package/es/modal/Modal.css +1 -1
- package/es/modal/Modal.vue.js +1 -1
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
- package/es/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
- package/es/notification/Notification.css +1 -1
- package/es/notification/Notification.vue.js +2 -2
- package/es/notification/Notification.vue2.js +45 -45
- package/es/numberanimation/NumberAnimation.vue.js +17 -17
- package/es/pagination/Pagination.css +1 -1
- package/es/pagination/Pagination.vue.js +1 -1
- package/es/pagination/Pagination.vue2.js +124 -124
- package/es/popconfirm/Popconfirm.css +1 -1
- package/es/popconfirm/Popconfirm.vue.js +1 -1
- package/es/popconfirm/Popconfirm.vue2.js +58 -58
- package/es/popover/Popover.css +1 -1
- package/es/popover/Popover.vue.js +2 -2
- package/es/popover/Popover.vue2.js +20 -20
- package/es/progress/Progress.css +1 -1
- package/es/progress/Progress.vue.js +2 -2
- package/es/progress/Progress.vue2.js +81 -81
- package/es/qrcode/QRCode.css +1 -1
- package/es/qrcode/QRCode.vue.js +3 -3
- package/es/qrcode/QRCode.vue2.js +18 -18
- package/es/radio/Radio.css +1 -1
- package/es/radio/Radio.vue.js +2 -2
- package/es/radio/Radio.vue2.js +88 -88
- package/es/rate/Rate.css +1 -1
- package/es/rate/Rate.vue.js +1 -1
- package/es/rate/Rate.vue2.js +90 -90
- package/es/result/Result.css +1 -1
- package/es/result/Result.vue.js +2 -2
- package/es/result/Result.vue2.js +51 -51
- package/es/scrollbar/Scrollbar.css +1 -1
- package/es/scrollbar/Scrollbar.vue.js +1 -1
- package/es/scrollbar/Scrollbar.vue2.js +106 -106
- package/es/segmented/Segmented.css +1 -1
- package/es/segmented/Segmented.vue.js +2 -2
- package/es/segmented/Segmented.vue2.js +51 -51
- package/es/select/Select.css +1 -1
- package/es/select/Select.vue.js +2 -2
- package/es/select/Select.vue2.js +157 -157
- package/es/skeleton/Skeleton.css +1 -1
- package/es/skeleton/Skeleton.vue.js +2 -2
- package/es/skeleton/Skeleton.vue2.js +61 -61
- package/es/slider/Slider.css +1 -1
- package/es/slider/Slider.vue.js +2 -2
- package/es/slider/Slider.vue2.js +195 -195
- package/es/space/Space.css +1 -1
- package/es/space/Space.vue.js +2 -2
- package/es/space/Space.vue2.js +7 -7
- package/es/spin/Spin.css +1 -1
- package/es/spin/Spin.vue.js +2 -2
- package/es/spin/Spin.vue2.js +67 -67
- package/es/statistic/Statistic.css +1 -1
- package/es/statistic/Statistic.vue.js +2 -2
- package/es/statistic/Statistic.vue2.js +21 -21
- package/es/steps/Steps.css +1 -1
- package/es/steps/Steps.vue.js +2 -2
- package/es/steps/Steps.vue2.js +35 -35
- package/es/swiper/Swiper.css +1 -1
- package/es/swiper/Swiper.vue.js +1 -1
- package/es/swiper/Swiper.vue2.js +89 -89
- package/es/switch/Switch.css +1 -1
- package/es/switch/Switch.vue.js +1 -1
- package/es/switch/Switch.vue2.js +32 -32
- package/es/table/Table.css +1 -1
- package/es/table/Table.vue.js +2 -2
- package/es/table/Table.vue2.js +686 -687
- package/es/tabs/Tabs.css +1 -1
- package/es/tabs/Tabs.vue.js +2 -2
- package/es/tabs/Tabs.vue2.js +91 -91
- package/es/tag/Tag.css +1 -1
- package/es/tag/Tag.vue.js +1 -1
- package/es/tag/Tag.vue2.js +91 -91
- package/es/textarea/Textarea.css +1 -1
- package/es/textarea/Textarea.vue.js +1 -1
- package/es/textarea/Textarea.vue2.js +37 -37
- package/es/textscroll/TextScroll.css +1 -1
- package/es/textscroll/TextScroll.vue.js +2 -2
- package/es/textscroll/TextScroll.vue2.js +100 -100
- package/es/timeline/Timeline.css +1 -1
- package/es/timeline/Timeline.vue.js +2 -2
- package/es/timeline/Timeline.vue2.js +24 -24
- package/es/tooltip/Tooltip.css +1 -1
- package/es/tooltip/Tooltip.vue.js +2 -2
- package/es/tooltip/Tooltip.vue2.js +129 -129
- package/es/upload/Upload.css +1 -1
- package/es/upload/Upload.vue.js +2 -2
- package/es/upload/Upload.vue2.js +137 -137
- package/es/utils/resolver.js +3 -3
- package/es/video/Video.css +1 -1
- package/es/video/Video.vue.js +2 -2
- package/es/video/Video.vue2.js +44 -44
- package/es/waterfall/Waterfall.css +1 -1
- package/es/waterfall/Waterfall.vue.js +2 -2
- package/es/waterfall/Waterfall.vue2.js +54 -54
- package/lib/alert/Alert.css +1 -1
- package/lib/alert/Alert.vue.cjs +1 -1
- package/lib/alert/Alert.vue2.cjs +2 -2
- package/lib/avatar/Avatar.css +1 -1
- package/lib/avatar/Avatar.vue.cjs +1 -1
- package/lib/avatar/Avatar.vue2.cjs +1 -1
- package/lib/backtop/BackTop.css +1 -1
- package/lib/backtop/BackTop.vue.cjs +1 -1
- package/lib/backtop/BackTop.vue2.cjs +6 -6
- package/lib/badge/Badge.css +1 -1
- package/lib/badge/Badge.vue.cjs +1 -1
- package/lib/badge/Badge.vue2.cjs +1 -1
- package/lib/breadcrumb/Breadcrumb.css +1 -1
- package/lib/breadcrumb/Breadcrumb.vue.cjs +1 -1
- package/lib/breadcrumb/Breadcrumb.vue2.cjs +2 -2
- package/lib/button/Button.css +1 -1
- package/lib/button/Button.vue.cjs +1 -1
- package/lib/button/Button.vue2.cjs +3 -3
- package/lib/calendar/Calendar.css +1 -1
- package/lib/calendar/Calendar.vue.cjs +1 -1
- package/lib/calendar/Calendar.vue2.cjs +5 -5
- package/lib/card/Card.css +1 -1
- package/lib/card/Card.vue.cjs +1 -1
- package/lib/card/Card.vue2.cjs +1 -1
- package/lib/carousel/Carousel.css +1 -1
- package/lib/carousel/Carousel.vue.cjs +1 -1
- package/lib/carousel/Carousel.vue2.cjs +7 -7
- package/lib/cascader/Cascader.css +1 -1
- package/lib/cascader/Cascader.d.ts +8 -0
- package/lib/cascader/Cascader.vue.cjs +1 -1
- package/lib/cascader/Cascader.vue2.cjs +1 -1
- package/lib/cascader/index.d.ts +12 -0
- package/lib/checkbox/Checkbox.css +1 -1
- package/lib/checkbox/Checkbox.vue.cjs +1 -1
- package/lib/checkbox/Checkbox.vue2.cjs +1 -1
- package/lib/collapse/Collapse.css +1 -1
- package/lib/collapse/Collapse.vue.cjs +1 -1
- package/lib/collapse/Collapse.vue2.cjs +1 -1
- package/lib/colorpicker/ColorPicker.css +1 -1
- package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
- package/lib/colorpicker/ColorPicker.vue2.cjs +8 -8
- package/lib/configprovider/ConfigProvider.vue.cjs +1 -1
- package/lib/countdown/Countdown.css +1 -1
- package/lib/countdown/Countdown.vue.cjs +1 -1
- package/lib/countdown/Countdown.vue2.cjs +1 -1
- package/lib/datepicker/DatePicker.css +1 -1
- package/lib/datepicker/DatePicker.vue.cjs +1 -1
- package/lib/datepicker/DatePicker.vue2.cjs +5 -5
- package/lib/descriptions/descriptions/Descriptions.css +1 -1
- package/lib/descriptions/descriptions/Descriptions.vue.cjs +1 -1
- package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.css +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.vue.cjs +1 -1
- package/lib/descriptions/descriptionsitem/DescriptionsItem.vue2.cjs +1 -1
- package/lib/dialog/Dialog.css +1 -1
- package/lib/dialog/Dialog.vue.cjs +1 -1
- package/lib/dialog/Dialog.vue2.cjs +1 -1
- package/lib/divider/Divider.css +1 -1
- package/lib/divider/Divider.vue.cjs +1 -1
- package/lib/divider/Divider.vue2.cjs +1 -1
- package/lib/drawer/Drawer.css +1 -1
- package/lib/drawer/Drawer.vue.cjs +1 -1
- package/lib/drawer/Drawer.vue2.cjs +1 -1
- package/lib/ellipsis/Ellipsis.css +1 -1
- package/lib/ellipsis/Ellipsis.vue.cjs +1 -1
- package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
- package/lib/empty/Empty.css +1 -1
- package/lib/empty/Empty.vue.cjs +1 -1
- package/lib/empty/Empty.vue2.cjs +1 -1
- package/lib/flex/Flex.css +1 -1
- package/lib/flex/Flex.vue.cjs +1 -1
- package/lib/flex/Flex.vue2.cjs +8 -8
- package/lib/floatbutton/FloatButton.css +1 -1
- package/lib/floatbutton/FloatButton.vue.cjs +1 -1
- package/lib/floatbutton/FloatButton.vue2.cjs +5 -5
- package/lib/gradienttext/GradientText.css +1 -1
- package/lib/gradienttext/GradientText.vue.cjs +1 -1
- package/lib/gradienttext/GradientText.vue2.cjs +1 -1
- package/lib/grid/col/Col.css +1 -1
- package/lib/grid/col/Col.vue.cjs +1 -1
- package/lib/grid/col/Col.vue2.cjs +1 -1
- package/lib/grid/row/Row.css +1 -1
- package/lib/grid/row/Row.vue.cjs +1 -1
- package/lib/grid/row/Row.vue2.cjs +1 -1
- package/lib/image/Image.css +1 -1
- package/lib/image/Image.vue.cjs +1 -1
- package/lib/image/Image.vue2.cjs +1 -1
- package/lib/input/Input.css +1 -1
- package/lib/input/Input.vue.cjs +1 -1
- package/lib/input/Input.vue2.cjs +5 -5
- package/lib/inputnumber/InputNumber.css +1 -1
- package/lib/inputnumber/InputNumber.vue.cjs +1 -1
- package/lib/inputnumber/InputNumber.vue2.cjs +6 -6
- package/lib/inputsearch/InputSearch.css +1 -1
- package/lib/inputsearch/InputSearch.vue.cjs +1 -1
- package/lib/inputsearch/InputSearch.vue2.cjs +2 -2
- package/lib/list/list/List.css +1 -1
- package/lib/list/list/List.vue.cjs +1 -1
- package/lib/list/list/List.vue2.cjs +1 -1
- package/lib/list/listitem/ListItem.css +1 -1
- package/lib/list/listitem/ListItem.vue.cjs +1 -1
- package/lib/list/listitem/ListItem.vue2.cjs +1 -1
- package/lib/loadingbar/LoadingBar.css +1 -1
- package/lib/loadingbar/LoadingBar.vue.cjs +1 -1
- package/lib/loadingbar/LoadingBar.vue2.cjs +3 -3
- package/lib/message/Message.css +1 -1
- package/lib/message/Message.vue.cjs +1 -1
- package/lib/message/Message.vue2.cjs +2 -2
- package/lib/modal/Modal.css +1 -1
- package/lib/modal/Modal.vue.cjs +1 -1
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cards.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-creative.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-cube.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/effect-flip.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/navigation.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/modules/pagination.css +1 -0
- package/lib/node_modules/.pnpm/swiper@12.0.2/node_modules/swiper/swiper.css +1 -0
- package/lib/notification/Notification.css +1 -1
- package/lib/notification/Notification.vue.cjs +1 -1
- package/lib/notification/Notification.vue2.cjs +2 -2
- package/lib/numberanimation/NumberAnimation.vue.cjs +1 -1
- package/lib/pagination/Pagination.css +1 -1
- package/lib/pagination/Pagination.vue.cjs +1 -1
- package/lib/pagination/Pagination.vue2.cjs +1 -1
- package/lib/popconfirm/Popconfirm.css +1 -1
- package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
- package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
- package/lib/popover/Popover.css +1 -1
- package/lib/popover/Popover.vue.cjs +1 -1
- package/lib/popover/Popover.vue2.cjs +1 -1
- package/lib/progress/Progress.css +1 -1
- package/lib/progress/Progress.vue.cjs +1 -1
- package/lib/progress/Progress.vue2.cjs +9 -9
- package/lib/qrcode/QRCode.css +1 -1
- package/lib/qrcode/QRCode.vue.cjs +1 -1
- package/lib/qrcode/QRCode.vue2.cjs +1 -1
- package/lib/radio/Radio.css +1 -1
- package/lib/radio/Radio.vue.cjs +1 -1
- package/lib/radio/Radio.vue2.cjs +4 -4
- package/lib/rate/Rate.css +1 -1
- package/lib/rate/Rate.vue.cjs +1 -1
- package/lib/rate/Rate.vue2.cjs +1 -1
- package/lib/result/Result.css +1 -1
- package/lib/result/Result.vue.cjs +1 -1
- package/lib/result/Result.vue2.cjs +1 -1
- package/lib/scrollbar/Scrollbar.css +1 -1
- package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
- package/lib/scrollbar/Scrollbar.vue2.cjs +5 -5
- package/lib/segmented/Segmented.css +1 -1
- package/lib/segmented/Segmented.vue.cjs +1 -1
- package/lib/segmented/Segmented.vue2.cjs +1 -1
- package/lib/select/Select.css +1 -1
- package/lib/select/Select.vue.cjs +1 -1
- package/lib/select/Select.vue2.cjs +4 -4
- package/lib/skeleton/Skeleton.css +1 -1
- package/lib/skeleton/Skeleton.vue.cjs +1 -1
- package/lib/skeleton/Skeleton.vue2.cjs +1 -1
- package/lib/slider/Slider.css +1 -1
- package/lib/slider/Slider.vue.cjs +1 -1
- package/lib/slider/Slider.vue2.cjs +7 -7
- package/lib/space/Space.css +1 -1
- package/lib/space/Space.vue.cjs +1 -1
- package/lib/space/Space.vue2.cjs +1 -1
- package/lib/spin/Spin.css +1 -1
- package/lib/spin/Spin.vue.cjs +1 -1
- package/lib/spin/Spin.vue2.cjs +5 -5
- package/lib/statistic/Statistic.css +1 -1
- package/lib/statistic/Statistic.vue.cjs +1 -1
- package/lib/statistic/Statistic.vue2.cjs +1 -1
- package/lib/steps/Steps.css +1 -1
- package/lib/steps/Steps.vue.cjs +1 -1
- package/lib/steps/Steps.vue2.cjs +3 -3
- package/lib/swiper/Swiper.css +1 -1
- package/lib/swiper/Swiper.vue.cjs +1 -1
- package/lib/swiper/Swiper.vue2.cjs +13 -13
- package/lib/switch/Switch.css +1 -1
- package/lib/switch/Switch.vue.cjs +1 -1
- package/lib/switch/Switch.vue2.cjs +5 -5
- package/lib/table/Table.css +1 -1
- package/lib/table/Table.vue.cjs +1 -1
- package/lib/table/Table.vue2.cjs +1 -1
- package/lib/tabs/Tabs.css +1 -1
- package/lib/tabs/Tabs.vue.cjs +1 -1
- package/lib/tabs/Tabs.vue2.cjs +1 -1
- package/lib/tag/Tag.css +1 -1
- package/lib/tag/Tag.vue.cjs +1 -1
- package/lib/tag/Tag.vue2.cjs +1 -1
- package/lib/textarea/Textarea.css +1 -1
- package/lib/textarea/Textarea.vue.cjs +1 -1
- package/lib/textarea/Textarea.vue2.cjs +4 -4
- package/lib/textscroll/TextScroll.css +1 -1
- package/lib/textscroll/TextScroll.vue.cjs +1 -1
- package/lib/textscroll/TextScroll.vue2.cjs +9 -9
- package/lib/timeline/Timeline.css +1 -1
- package/lib/timeline/Timeline.vue.cjs +1 -1
- package/lib/timeline/Timeline.vue2.cjs +1 -1
- package/lib/tooltip/Tooltip.css +1 -1
- package/lib/tooltip/Tooltip.vue.cjs +1 -1
- package/lib/tooltip/Tooltip.vue2.cjs +1 -1
- package/lib/upload/Upload.css +1 -1
- package/lib/upload/Upload.vue.cjs +1 -1
- package/lib/upload/Upload.vue2.cjs +1 -1
- package/lib/utils/resolver.cjs +1 -1
- package/lib/video/Video.css +1 -1
- package/lib/video/Video.vue.cjs +1 -1
- package/lib/video/Video.vue2.cjs +2 -2
- package/lib/waterfall/Waterfall.css +1 -1
- package/lib/waterfall/Waterfall.vue.cjs +1 -1
- package/lib/waterfall/Waterfall.vue2.cjs +4 -4
- package/package.json +21 -21
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
- package/es/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cards.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-creative.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-cube.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/effect-flip.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/navigation.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/pagination.css +0 -1
- package/lib/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css +0 -1
- /package/es/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/es/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
- /package/lib/node_modules/.pnpm/{@vuepic_vue-datepicker@11.0.2_vue@3.5.21_typescript@5.9.2_ → @vuepic_vue-datepicker@11.0.2_vue@3.5.22_typescript@5.9.3_}/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -0
- /package/lib/node_modules/.pnpm/{swiper@11.2.10 → swiper@12.0.2}/node_modules/swiper/modules/effect-fade.css +0 -0
package/es/button/Button.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Button.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-944a889a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/es/button/Button.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as T, computed as
|
|
1
|
+
import { defineComponent as E, ref as T, computed as c, createBlock as y, openBlock as l, resolveDynamicComponent as m, withKeys as I, normalizeStyle as K, normalizeClass as g, withModifiers as S, withCtx as j, createElementBlock as r, createCommentVNode as n, createElementVNode as u, renderSlot as h, unref as M, nextTick as N } from "vue";
|
|
2
2
|
import { generate as O } from "@ant-design/colors";
|
|
3
3
|
import { useInject as P, useSlotsExist as R } from "../utils/index.js";
|
|
4
4
|
const V = {
|
|
@@ -35,34 +35,34 @@ const V = {
|
|
|
35
35
|
block: { type: Boolean, default: !1 }
|
|
36
36
|
},
|
|
37
37
|
emits: ["click"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
default:
|
|
41
|
-
reverse:
|
|
42
|
-
primary:
|
|
38
|
+
setup(e, { emit: k }) {
|
|
39
|
+
const d = e, i = T(!1), { colorPalettes: C } = P("Button"), o = c(() => d.color !== void 0 ? O(d.color) : C.value), w = c(() => ({
|
|
40
|
+
default: o.value[5],
|
|
41
|
+
reverse: o.value[5],
|
|
42
|
+
primary: o.value[5],
|
|
43
43
|
danger: "#ff4d4f",
|
|
44
|
-
dashed:
|
|
44
|
+
dashed: o.value[5],
|
|
45
45
|
text: "transparent",
|
|
46
46
|
link: "transparent"
|
|
47
|
-
})[
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
})) :
|
|
47
|
+
})[d.type]), B = k, s = R(["icon", "default"]), f = c(() => s.icon || d.icon), x = c(() => f.value && !s.default);
|
|
48
|
+
function b(a) {
|
|
49
|
+
i.value ? (i.value = !1, N(() => {
|
|
50
|
+
i.value = !0;
|
|
51
|
+
})) : i.value = !0, B("click", a);
|
|
52
52
|
}
|
|
53
|
-
function $(
|
|
54
|
-
|
|
53
|
+
function $(a) {
|
|
54
|
+
b(a);
|
|
55
55
|
}
|
|
56
56
|
function z() {
|
|
57
|
-
|
|
57
|
+
i.value = !1;
|
|
58
58
|
}
|
|
59
|
-
return (
|
|
59
|
+
return (a, t) => (l(), y(m(e.href ? "a" : "div"), {
|
|
60
60
|
tabindex: "0",
|
|
61
|
-
class:
|
|
61
|
+
class: g(["btn-wrap", [
|
|
62
62
|
`btn-${e.type} btn-${e.size}`,
|
|
63
63
|
{
|
|
64
64
|
[`loading-${e.size}`]: !e.href && e.loading,
|
|
65
|
-
"btn-icon-only":
|
|
65
|
+
"btn-icon-only": x.value,
|
|
66
66
|
"btn-circle": e.shape === "circle",
|
|
67
67
|
"btn-round": e.shape === "round",
|
|
68
68
|
"btn-loading-blur": !e.href && e.loading,
|
|
@@ -73,48 +73,48 @@ const V = {
|
|
|
73
73
|
e.buttonClass
|
|
74
74
|
]]),
|
|
75
75
|
style: K(`
|
|
76
|
-
--button-primary-color: ${
|
|
77
|
-
--button-primary-color-hover: ${
|
|
78
|
-
--button-primary-color-active: ${
|
|
76
|
+
--button-primary-color: ${o.value[5]};
|
|
77
|
+
--button-primary-color-hover: ${o.value[4]};
|
|
78
|
+
--button-primary-color-active: ${o.value[6]};
|
|
79
79
|
--button-danger-color: #ff4d4f;
|
|
80
80
|
--button-danger-color-hover: #ff7875;
|
|
81
81
|
--button-danger-color-active: #d9363e;
|
|
82
82
|
--button-text-color-hover: rgba(0, 0, 0, 0.06);
|
|
83
83
|
--button-text-color-active: rgba(0, 0, 0, 0.15);
|
|
84
|
-
--button-ripple-color: ${
|
|
84
|
+
--button-ripple-color: ${w.value};
|
|
85
85
|
`),
|
|
86
86
|
href: e.href,
|
|
87
87
|
target: e.target,
|
|
88
|
-
onClick:
|
|
89
|
-
onKeydown:
|
|
88
|
+
onClick: t[0] || (t[0] = (v) => e.disabled || e.loading ? () => !1 : b(v)),
|
|
89
|
+
onKeydown: t[1] || (t[1] = I(S((v) => e.keyboard && !e.disabled && !e.loading ? $(v) : () => !1, ["prevent"]), ["enter"]))
|
|
90
90
|
}, {
|
|
91
91
|
default: j(() => [
|
|
92
|
-
e.loading || !f.value ? (
|
|
93
|
-
!e.href && e.loadingType === "static" ? (
|
|
94
|
-
|
|
92
|
+
e.loading || !f.value ? (l(), r("div", V, [
|
|
93
|
+
!e.href && e.loadingType === "static" ? (l(), r("div", A, [...t[2] || (t[2] = [
|
|
94
|
+
u("svg", {
|
|
95
95
|
class: "circle",
|
|
96
96
|
width: "1em",
|
|
97
97
|
height: "1em",
|
|
98
98
|
fill: "currentColor",
|
|
99
99
|
viewBox: "0 0 100 100"
|
|
100
100
|
}, [
|
|
101
|
-
|
|
101
|
+
u("path", {
|
|
102
102
|
d: "M 50,50 m 0,-45 a 45,45 0 1 1 0,90 a 45,45 0 1 1 0,-90",
|
|
103
103
|
"stroke-linecap": "round",
|
|
104
104
|
class: "path",
|
|
105
105
|
"fill-opacity": "0"
|
|
106
106
|
})
|
|
107
107
|
], -1)
|
|
108
|
-
])])) :
|
|
109
|
-
!e.href && e.loadingType === "dynamic" ? (
|
|
110
|
-
|
|
108
|
+
])])) : n("", !0),
|
|
109
|
+
!e.href && e.loadingType === "dynamic" ? (l(), r("div", D, [...t[3] || (t[3] = [
|
|
110
|
+
u("svg", {
|
|
111
111
|
class: "circle",
|
|
112
112
|
viewBox: "0 0 50 50",
|
|
113
113
|
width: "1em",
|
|
114
114
|
height: "1em",
|
|
115
115
|
fill: "currentColor"
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
u("circle", {
|
|
118
118
|
class: "path",
|
|
119
119
|
cx: "25",
|
|
120
120
|
cy: "25",
|
|
@@ -122,19 +122,19 @@ const V = {
|
|
|
122
122
|
fill: "none"
|
|
123
123
|
})
|
|
124
124
|
], -1)
|
|
125
|
-
])])) :
|
|
126
|
-
])) :
|
|
127
|
-
!e.loading && f.value ? (
|
|
128
|
-
|
|
129
|
-
e.icon ? (
|
|
125
|
+
])])) : n("", !0)
|
|
126
|
+
])) : n("", !0),
|
|
127
|
+
!e.loading && f.value ? (l(), r("span", F, [
|
|
128
|
+
h(a.$slots, "icon", {}, () => [
|
|
129
|
+
e.icon ? (l(), y(m(e.icon), { key: 0 })) : n("", !0)
|
|
130
130
|
], !0)
|
|
131
|
-
])) :
|
|
132
|
-
M(
|
|
133
|
-
|
|
134
|
-
])) :
|
|
135
|
-
e.disabled ?
|
|
131
|
+
])) : n("", !0),
|
|
132
|
+
M(s).default ? (l(), r("span", W, [
|
|
133
|
+
h(a.$slots, "default", {}, void 0, !0)
|
|
134
|
+
])) : n("", !0),
|
|
135
|
+
e.disabled ? n("", !0) : (l(), r("div", {
|
|
136
136
|
key: 3,
|
|
137
|
-
class:
|
|
137
|
+
class: g(["button-wave", { "wave-active": i.value }]),
|
|
138
138
|
onAnimationend: z
|
|
139
139
|
}, null, 34))
|
|
140
140
|
]),
|
package/es/calendar/Calendar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.calendar-wrap[data-v-7293a60f]{color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;background:#fff;border-radius:4px}.calendar-wrap .calendar-header-wrap[data-v-7293a60f]{padding:12px 0}.calendar-wrap .calendar-header-wrap .calendar-header-content[data-v-7293a60f]{margin-bottom:10px}.calendar-wrap .calendar-header-wrap .calendar-header-content[data-v-7293a60f] svg{fill:currentColor}.calendar-wrap .calendar-header-wrap .calendar-header-actions[data-v-7293a60f]{display:flex;justify-content:flex-end}.calendar-wrap .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-7293a60f],.calendar-wrap .calendar-header-wrap .calendar-header-actions .calendar-mode-radio[data-v-7293a60f]{margin-left:8px}.calendar-wrap .calendar-display-wrap[data-v-7293a60f]{background:#fff;outline:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel[data-v-7293a60f]{display:flex;flex-direction:column;width:auto}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body[data-v-7293a60f]{padding:8px 0}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table[data-v-7293a60f]{display:table;margin:0;width:100%;table-layout:fixed;border-collapse:collapse}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table tr[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table tr[data-v-7293a60f]{border:none;background-color:transparent}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table td[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table td[data-v-7293a60f]{position:relative;min-width:24px;font-size:inherit;font-weight:400;padding:0;border:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-7293a60f]{text-align:inherit;height:auto;line-height:18px;width:36px;color:#000000e0;vertical-align:middle;background:transparent}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]{color:#00000040;cursor:pointer}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f]{position:relative;z-index:2;min-width:24px;line-height:24px}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-7293a60f]{background:#0000000a}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-7293a60f],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-7293a60f]{color:#00000040;pointer-events:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-in-view[data-v-7293a60f]:not(.date-cell-disabled):not(.date-cell-selected),.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-in-view[data-v-7293a60f]:not(.date-cell-disabled):not(.date-cell-selected){color:#000000e0}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-7293a60f]{min-width:90px}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-7293a60f]{min-width:72px}.calendar-panel .calendar-display-wrap[data-v-7293a60f]{width:100%;text-align:end}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-7293a60f]{padding-right:12px;padding-bottom:4px}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f]{display:block;width:auto;height:auto;margin:0 4px;padding:4px 8px 0;border:0;border-top:2px solid rgba(5,5,5,.06);border-radius:0;transition:background .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-7293a60f]{line-height:24px;transition:color .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-7293a60f]{position:static;width:auto;height:86px;overflow-y:auto;color:#000000e0;line-height:1.57142857;text-align:start}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-7293a60f]{border-color:var(--calendar-primary-color)}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-7293a60f]{color:#000000e0}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-7293a60f],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-7293a60f]{color:var(--calendar-primary-color);background:var(--calendar-panel-primary-bg-color)}.calendar-card[data-v-7293a60f]{width:300px;border:1px solid #d9d9d9;border-radius:4px}.calendar-card .calendar-header-wrap[data-v-7293a60f]{padding-left:8px;padding-right:8px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-7293a60f]{min-width:86px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-7293a60f]{min-width:70px}.calendar-card .calendar-display-wrap[data-v-7293a60f]{display:inline-flex;flex-direction:column;text-align:center;border-top:1px solid rgba(5,5,5,.06);border-radius:0 0 8px 8px}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]{padding:4px 0}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]:before{position:absolute;top:50%;left:0;right:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:"";pointer-events:none}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f]{display:inline-block;height:24px;border-radius:4px;transition:background .2s,color .2s}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-7293a60f]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-7293a60f]:before{background:#0000000a}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-7293a60f]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-7293a60f]:before{position:absolute;inset:0;z-index:1;border:1px solid var(--calendar-primary-color);border-radius:4px;content:""}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-7293a60f]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-7293a60f]:before{border-color:#00000040}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-7293a60f],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-7293a60f]{color:#fff;background:var(--calendar-card-primary-bg-color)}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]{height:40px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-7293a60f]{height:64px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-7293a60f]{width:60px;padding:0 8px}
|
|
1
|
+
.calendar-wrap[data-v-dd1c8150]{color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;background:#fff;border-radius:4px}.calendar-wrap .calendar-header-wrap[data-v-dd1c8150]{padding:12px 0}.calendar-wrap .calendar-header-wrap .calendar-header-content[data-v-dd1c8150]{margin-bottom:10px}.calendar-wrap .calendar-header-wrap .calendar-header-content[data-v-dd1c8150] svg{fill:currentColor}.calendar-wrap .calendar-header-wrap .calendar-header-actions[data-v-dd1c8150]{display:flex;justify-content:flex-end}.calendar-wrap .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-dd1c8150],.calendar-wrap .calendar-header-wrap .calendar-header-actions .calendar-mode-radio[data-v-dd1c8150]{margin-left:8px}.calendar-wrap .calendar-display-wrap[data-v-dd1c8150]{background:#fff;outline:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel[data-v-dd1c8150]{display:flex;flex-direction:column;width:auto}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body[data-v-dd1c8150]{padding:8px 0}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table[data-v-dd1c8150]{display:table;margin:0;width:100%;table-layout:fixed;border-collapse:collapse}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table tr[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table tr[data-v-dd1c8150]{border:none;background-color:transparent}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table td[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table td[data-v-dd1c8150]{position:relative;min-width:24px;font-size:inherit;font-weight:400;padding:0;border:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-dd1c8150]{text-align:inherit;height:auto;line-height:18px;width:36px;color:#000000e0;vertical-align:middle;background:transparent}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]{color:#00000040;cursor:pointer}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150]{position:relative;z-index:2;min-width:24px;line-height:24px}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell:hover:not(.date-cell-selected) .date-cell-inner[data-v-dd1c8150]{background:#0000000a}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-dd1c8150],.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-dd1c8150]{color:#00000040;pointer-events:none}.calendar-wrap .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-in-view[data-v-dd1c8150]:not(.date-cell-disabled):not(.date-cell-selected),.calendar-wrap .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-in-view[data-v-dd1c8150]:not(.date-cell-disabled):not(.date-cell-selected){color:#000000e0}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-dd1c8150]{min-width:90px}.calendar-panel .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-dd1c8150]{min-width:72px}.calendar-panel .calendar-display-wrap[data-v-dd1c8150]{width:100%;text-align:end}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table th[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table th[data-v-dd1c8150]{padding-right:12px;padding-bottom:4px}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150]{display:block;width:auto;height:auto;margin:0 4px;padding:4px 8px 0;border:0;border-top:2px solid rgba(5,5,5,.06);border-radius:0;transition:background .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-value[data-v-dd1c8150]{line-height:24px;transition:color .3s}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner .date-content[data-v-dd1c8150]{position:static;width:auto;height:86px;overflow-y:auto;color:#000000e0;line-height:1.57142857;text-align:start}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-dd1c8150]{border-color:var(--calendar-primary-color)}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner .date-value[data-v-dd1c8150]{color:#000000e0}.calendar-panel .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-dd1c8150],.calendar-panel .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-dd1c8150]{color:var(--calendar-primary-color);background:var(--calendar-panel-primary-bg-color)}.calendar-card[data-v-dd1c8150]{width:300px;border:1px solid #d9d9d9;border-radius:4px}.calendar-card .calendar-header-wrap[data-v-dd1c8150]{padding-left:8px;padding-right:8px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-year-select[data-v-dd1c8150]{min-width:86px}.calendar-card .calendar-header-wrap .calendar-header-actions .calendar-month-select[data-v-dd1c8150]{min-width:70px}.calendar-card .calendar-display-wrap[data-v-dd1c8150]{display:inline-flex;flex-direction:column;text-align:center;border-top:1px solid rgba(5,5,5,.06);border-radius:0 0 8px 8px}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]{padding:4px 0}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]:before{position:absolute;top:50%;left:0;right:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:"";pointer-events:none}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150]{display:inline-block;height:24px;border-radius:4px;transition:background .2s,color .2s}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled[data-v-dd1c8150]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled[data-v-dd1c8150]:before{background:#0000000a}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-dd1c8150]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-today .date-cell-inner[data-v-dd1c8150]:before{position:absolute;inset:0;z-index:1;border:1px solid var(--calendar-primary-color);border-radius:4px;content:""}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-dd1c8150]:before,.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-disabled.date-cell-today .date-cell-inner[data-v-dd1c8150]:before{border-color:#00000040}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-dd1c8150],.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .date-cell-selected .date-cell-inner[data-v-dd1c8150]{color:#fff;background:var(--calendar-card-primary-bg-color)}.calendar-card .calendar-display-wrap .calendar-date-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]{height:40px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell[data-v-dd1c8150]{height:64px}.calendar-card .calendar-display-wrap .calendar-month-panel .calendar-body .calendar-table .calendar-date-cell .date-cell-inner[data-v-dd1c8150]{width:60px;padding:0 8px}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Calendar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dd1c8150"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as be, mergeModels as K, useModel as ke, ref as
|
|
2
|
-
import { getYear as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useInject as
|
|
1
|
+
import { defineComponent as be, mergeModels as K, useModel as ke, ref as f, computed as j, watch as F, createElementBlock as i, openBlock as s, normalizeStyle as Me, normalizeClass as R, unref as p, createElementVNode as r, createCommentVNode as _, renderSlot as w, createTextVNode as z, toDisplayString as P, createVNode as Q, createBlock as we, mergeProps as D, Fragment as S, renderList as V } from "vue";
|
|
2
|
+
import { getYear as T, getMonth as C, parse as Ce, format as O, startOfDay as N, startOfMonth as U, getTime as y, addDays as W, getDay as Oe, startOfYear as Fe, addMonths as Se, set as X, isSameDay as Ve, isSameMonth as Z, getDate as $e } from "date-fns";
|
|
3
|
+
import x from "../select/index.js";
|
|
4
|
+
import je from "../radio/index.js";
|
|
5
|
+
import { useInject as _e, useSlotsExist as ze } from "../utils/index.js";
|
|
6
6
|
const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "calendar-header-content"
|
|
@@ -36,8 +36,8 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
36
36
|
valueModifiers: {}
|
|
37
37
|
}),
|
|
38
38
|
emits: /* @__PURE__ */ K(["change", "panelChange", "select"], ["update:value"]),
|
|
39
|
-
setup(
|
|
40
|
-
const o =
|
|
39
|
+
setup(d, { emit: I }) {
|
|
40
|
+
const o = d, u = ke(d, "value"), L = f(Date.now()), H = f([]), ee = f(re()), te = f([
|
|
41
41
|
{
|
|
42
42
|
label: "月",
|
|
43
43
|
value: "month"
|
|
@@ -46,58 +46,58 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
46
46
|
label: "年",
|
|
47
47
|
value: "year"
|
|
48
48
|
}
|
|
49
|
-
]),
|
|
49
|
+
]), v = f(T(L.value)), b = f(C(L.value) + 1), h = f(o.mode), $ = f([]), q = f([]), { colorPalettes: Y } = _e("Calendar"), k = I, ae = ze(["header"]), le = j(() => {
|
|
50
50
|
const e = ["一", "二", "三", "四", "五", "六", "日"], t = [];
|
|
51
51
|
t.push(e[o.startDayOfWeek]);
|
|
52
52
|
let l = (o.startDayOfWeek + 1) % 7;
|
|
53
53
|
for (; l !== o.startDayOfWeek; )
|
|
54
54
|
t.push(e[l]), l = (l + 1) % 7;
|
|
55
55
|
return t;
|
|
56
|
-
}),
|
|
56
|
+
}), m = j(() => {
|
|
57
57
|
if (u.value)
|
|
58
58
|
return typeof u.value == "string" ? Ce(u.value, o.valueFormat, /* @__PURE__ */ new Date()).getTime() : u.value;
|
|
59
|
-
}), A =
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
}), A = j(() => new Date(v.value, b.value - 1, 1).getTime()), ne = j(() => ae.header || o.header);
|
|
60
|
+
F(
|
|
61
|
+
m,
|
|
62
62
|
(e) => {
|
|
63
|
-
e && (
|
|
63
|
+
e && (v.value = T(e), b.value = C(e) + 1);
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
immediate: !0
|
|
67
67
|
}
|
|
68
|
-
),
|
|
68
|
+
), F(
|
|
69
69
|
() => o.mode,
|
|
70
70
|
(e) => {
|
|
71
|
-
|
|
71
|
+
h.value = e;
|
|
72
72
|
}
|
|
73
|
-
),
|
|
74
|
-
() => [o.startDayOfWeek, o.dateStrip,
|
|
73
|
+
), F(
|
|
74
|
+
() => [o.startDayOfWeek, o.dateStrip, b.value, v.value],
|
|
75
75
|
() => {
|
|
76
|
-
|
|
76
|
+
$.value = ue();
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
immediate: !0,
|
|
80
80
|
deep: !0
|
|
81
81
|
}
|
|
82
|
-
),
|
|
83
|
-
|
|
82
|
+
), F(
|
|
83
|
+
v,
|
|
84
84
|
() => {
|
|
85
85
|
H.value = oe(), q.value = ce();
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
immediate: !0
|
|
89
89
|
}
|
|
90
|
-
),
|
|
90
|
+
), F(
|
|
91
91
|
() => o.valueFormat,
|
|
92
92
|
(e) => {
|
|
93
|
-
u.value && (e === void 0 || e === "T" ? typeof u.value == "string" && (u.value = Number(
|
|
93
|
+
u.value && (e === void 0 || e === "T" ? typeof u.value == "string" && (u.value = Number(O(N(u.value).getTime(), "T"))) : u.value = O(N(u.value).getTime(), e));
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
immediate: !0
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
function oe() {
|
|
100
|
-
const e = [], t =
|
|
100
|
+
const e = [], t = v.value - 10, l = v.value + 10;
|
|
101
101
|
for (let n = t; n < l; n++)
|
|
102
102
|
e.push({
|
|
103
103
|
label: `${n}年`,
|
|
@@ -114,32 +114,32 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
114
114
|
});
|
|
115
115
|
return e;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function B(e, t, l) {
|
|
118
118
|
return {
|
|
119
119
|
type: "date",
|
|
120
120
|
dateObject: {
|
|
121
|
-
date:
|
|
122
|
-
month:
|
|
123
|
-
year:
|
|
121
|
+
date: $e(e),
|
|
122
|
+
month: C(e),
|
|
123
|
+
year: T(e)
|
|
124
124
|
},
|
|
125
|
-
timestamp:
|
|
125
|
+
timestamp: y(e),
|
|
126
126
|
inCurrentMonth: Z(e, t),
|
|
127
|
-
isCurrentDate:
|
|
127
|
+
isCurrentDate: Ve(l, e)
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
function se(e, t, l, n = !1) {
|
|
131
|
-
const a =
|
|
132
|
-
let
|
|
133
|
-
const
|
|
131
|
+
const a = C(e);
|
|
132
|
+
let c = y(U(e)), M = y(W(c, -1));
|
|
133
|
+
const g = [];
|
|
134
134
|
let J = !n;
|
|
135
|
-
for (; Oe(
|
|
136
|
-
|
|
137
|
-
for (;
|
|
138
|
-
|
|
139
|
-
const De = n ?
|
|
140
|
-
for (;
|
|
141
|
-
|
|
142
|
-
return
|
|
135
|
+
for (; Oe(M) !== l || J; )
|
|
136
|
+
g.unshift(B(M, e, t)), M = y(W(M, -1)), J = !1;
|
|
137
|
+
for (; C(c) === a; )
|
|
138
|
+
g.push(B(c, e, t)), c = y(W(c, 1));
|
|
139
|
+
const De = n ? g.length <= 28 ? 28 : g.length <= 35 ? 35 : 42 : 42;
|
|
140
|
+
for (; g.length < De; )
|
|
141
|
+
g.push(B(c, e, t)), c = y(W(c, 1));
|
|
142
|
+
return g;
|
|
143
143
|
}
|
|
144
144
|
function ue() {
|
|
145
145
|
const e = se(A.value, Date.now(), o.startDayOfWeek, o.dateStrip), t = 7, l = e.length / t, n = [];
|
|
@@ -151,17 +151,17 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
151
151
|
return {
|
|
152
152
|
type: "month",
|
|
153
153
|
monthObject: {
|
|
154
|
-
month:
|
|
155
|
-
year:
|
|
154
|
+
month: C(e),
|
|
155
|
+
year: T(e)
|
|
156
156
|
},
|
|
157
|
-
timestamp:
|
|
157
|
+
timestamp: y(e),
|
|
158
158
|
isCurrent: Z(t, e)
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
function de(e, t) {
|
|
162
162
|
const l = [], n = Fe(e);
|
|
163
163
|
for (let a = 0; a < 12; a++)
|
|
164
|
-
l.push(ie(
|
|
164
|
+
l.push(ie(y(Se(n, a)), t));
|
|
165
165
|
return l;
|
|
166
166
|
}
|
|
167
167
|
function ce() {
|
|
@@ -171,129 +171,129 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
171
171
|
return n;
|
|
172
172
|
}
|
|
173
173
|
function me(e) {
|
|
174
|
-
return
|
|
174
|
+
return O(e.timestamp, "yyyy-MM-dd");
|
|
175
175
|
}
|
|
176
176
|
function ve(e) {
|
|
177
|
-
return
|
|
177
|
+
return O(e.timestamp, "yyyy-MM");
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function he(e, t) {
|
|
180
180
|
return o.dateFormat === void 0 ? `${e}` : o.dateFormat(e, t);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function fe(e, t, l) {
|
|
183
183
|
return o.weekFormat === void 0 ? e : o.weekFormat(e, t, l);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function pe(e, t) {
|
|
186
186
|
return o.monthFormat === void 0 ? `${e}月` : o.monthFormat(e, t);
|
|
187
187
|
}
|
|
188
188
|
function G(e) {
|
|
189
|
-
return o.valueFormat === void 0 || o.valueFormat === "T" ? Number(
|
|
189
|
+
return o.valueFormat === void 0 || o.valueFormat === "T" ? Number(O(e, "T")) : O(e, o.valueFormat);
|
|
190
190
|
}
|
|
191
191
|
function ye(e) {
|
|
192
192
|
let t;
|
|
193
|
-
|
|
193
|
+
m.value ? N(new Date(m.value)).getTime() !== e.timestamp && (t = X(new Date(m.value), {
|
|
194
194
|
year: e.dateObject.year,
|
|
195
195
|
month: e.dateObject.month,
|
|
196
196
|
date: e.dateObject.date
|
|
197
|
-
}).getTime()) : t = e.timestamp, t && (t = G(t), u.value = t,
|
|
197
|
+
}).getTime()) : t = e.timestamp, t && (t = G(t), u.value = t, k("select", t, "date"), k("change", t, e.dateObject));
|
|
198
198
|
}
|
|
199
199
|
function ge(e) {
|
|
200
200
|
let t;
|
|
201
|
-
|
|
201
|
+
m.value ? U(new Date(m.value)).getTime() !== e.timestamp && (t = X(new Date(m.value), {
|
|
202
202
|
year: e.monthObject.year,
|
|
203
203
|
month: e.monthObject.month
|
|
204
|
-
}).getTime()) : t = e.timestamp, t && (t = G(t), u.value = t,
|
|
204
|
+
}).getTime()) : t = e.timestamp, t && (t = G(t), u.value = t, k("select", t, "month"), k("change", t, e.monthObject));
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
206
|
+
function E() {
|
|
207
|
+
h.value === "month" ? k(
|
|
208
208
|
"panelChange",
|
|
209
209
|
u.value,
|
|
210
|
-
{ year:
|
|
211
|
-
|
|
212
|
-
) :
|
|
210
|
+
{ year: v.value, month: b.value },
|
|
211
|
+
h.value
|
|
212
|
+
) : k("panelChange", u.value, { year: v.value }, h.value);
|
|
213
213
|
}
|
|
214
214
|
return (e, t) => (s(), i("div", {
|
|
215
|
-
class:
|
|
215
|
+
class: R(["calendar-wrap", `calendar-${d.display}`]),
|
|
216
216
|
style: Me(`
|
|
217
|
-
--calendar-primary-color: ${
|
|
218
|
-
--calendar-panel-primary-bg-color: ${
|
|
219
|
-
--calendar-card-primary-bg-color: ${
|
|
217
|
+
--calendar-primary-color: ${p(Y)[5]};
|
|
218
|
+
--calendar-panel-primary-bg-color: ${p(Y)[0]};
|
|
219
|
+
--calendar-card-primary-bg-color: ${p(Y)[5]};
|
|
220
220
|
`)
|
|
221
221
|
}, [
|
|
222
222
|
r("div", Pe, [
|
|
223
223
|
ne.value ? (s(), i("div", Te, [
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
w(e.$slots, "header", {}, () => [
|
|
225
|
+
z(P(d.header), 1)
|
|
226
226
|
], !0)
|
|
227
|
-
])) :
|
|
227
|
+
])) : _("", !0),
|
|
228
228
|
r("div", Ne, [
|
|
229
|
-
Q(
|
|
229
|
+
Q(p(x), D({
|
|
230
230
|
class: "calendar-year-select",
|
|
231
|
-
size:
|
|
231
|
+
size: d.display === "card" ? "small" : "middle",
|
|
232
232
|
options: H.value,
|
|
233
233
|
"max-display": 8,
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
236
|
-
onChange:
|
|
237
|
-
},
|
|
238
|
-
|
|
234
|
+
modelValue: v.value,
|
|
235
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => v.value = l),
|
|
236
|
+
onChange: E
|
|
237
|
+
}, d.yearSelectProps), null, 16, ["size", "options", "modelValue"]),
|
|
238
|
+
h.value === "month" ? (s(), we(p(x), D({
|
|
239
239
|
key: 0,
|
|
240
240
|
class: "calendar-month-select",
|
|
241
|
-
size:
|
|
241
|
+
size: d.display === "card" ? "small" : "middle",
|
|
242
242
|
options: ee.value,
|
|
243
243
|
"max-display": 8,
|
|
244
|
-
modelValue:
|
|
245
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) =>
|
|
246
|
-
onChange:
|
|
247
|
-
},
|
|
248
|
-
Q(
|
|
244
|
+
modelValue: b.value,
|
|
245
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => b.value = l),
|
|
246
|
+
onChange: E
|
|
247
|
+
}, d.monthSelectProps), null, 16, ["size", "options", "modelValue"])) : _("", !0),
|
|
248
|
+
Q(p(je), D({
|
|
249
249
|
class: "calendar-mode-radio",
|
|
250
|
-
"button-size":
|
|
250
|
+
"button-size": d.display === "card" ? "small" : "middle",
|
|
251
251
|
options: te.value,
|
|
252
|
-
value:
|
|
253
|
-
"onUpdate:value": t[2] || (t[2] = (l) =>
|
|
252
|
+
value: h.value,
|
|
253
|
+
"onUpdate:value": t[2] || (t[2] = (l) => h.value = l),
|
|
254
254
|
button: "",
|
|
255
|
-
onChange:
|
|
256
|
-
},
|
|
255
|
+
onChange: E
|
|
256
|
+
}, d.modeRadioProps), null, 16, ["button-size", "options", "value"])
|
|
257
257
|
])
|
|
258
258
|
]),
|
|
259
259
|
r("div", We, [
|
|
260
|
-
|
|
260
|
+
h.value === "month" ? (s(), i("div", Ye, [
|
|
261
261
|
r("div", Be, [
|
|
262
262
|
r("table", Ee, [
|
|
263
263
|
r("thead", null, [
|
|
264
264
|
r("tr", null, [
|
|
265
|
-
(s(!0), i(
|
|
266
|
-
|
|
265
|
+
(s(!0), i(S, null, V(le.value, (l, n) => (s(), i("th", { key: n }, [
|
|
266
|
+
w(e.$slots, "week", {
|
|
267
267
|
defaultWeek: l,
|
|
268
268
|
week: n,
|
|
269
|
-
timestamp:
|
|
269
|
+
timestamp: $.value[0][n].timestamp
|
|
270
270
|
}, () => [
|
|
271
|
-
|
|
271
|
+
z(P(fe(l, n, $.value[0][n].timestamp)), 1)
|
|
272
272
|
], !0)
|
|
273
273
|
]))), 128))
|
|
274
274
|
])
|
|
275
275
|
]),
|
|
276
276
|
r("tbody", null, [
|
|
277
|
-
(s(!0), i(
|
|
278
|
-
(s(!0), i(
|
|
279
|
-
class:
|
|
280
|
-
"date-cell-disabled":
|
|
277
|
+
(s(!0), i(S, null, V($.value, (l, n) => (s(), i("tr", { key: n }, [
|
|
278
|
+
(s(!0), i(S, null, V(l, (a, c) => (s(), i("td", {
|
|
279
|
+
class: R(["calendar-date-cell", {
|
|
280
|
+
"date-cell-disabled": d.disabledDate && d.disabledDate(a.timestamp),
|
|
281
281
|
"date-cell-in-view": a.inCurrentMonth,
|
|
282
282
|
"date-cell-today": a.isCurrentDate,
|
|
283
|
-
"date-cell-selected":
|
|
283
|
+
"date-cell-selected": m.value && p(N)(m.value).getTime() === a.timestamp
|
|
284
284
|
}]),
|
|
285
|
-
key:
|
|
285
|
+
key: c,
|
|
286
286
|
title: me(a),
|
|
287
|
-
onClick: (
|
|
287
|
+
onClick: (M) => ye(a)
|
|
288
288
|
}, [
|
|
289
289
|
r("div", Ue, [
|
|
290
290
|
r("div", Le, [
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
w(e.$slots, "dateValue", D({ ref_for: !0 }, a), () => [
|
|
292
|
+
z(P(he(a.dateObject.date, a.timestamp)), 1)
|
|
293
293
|
], !0)
|
|
294
294
|
]),
|
|
295
295
|
r("div", He, [
|
|
296
|
-
|
|
296
|
+
w(e.$slots, "dateContent", D({ ref_for: !0 }, a), void 0, !0)
|
|
297
297
|
])
|
|
298
298
|
])
|
|
299
299
|
], 10, Re))), 128))
|
|
@@ -301,29 +301,29 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
301
301
|
])
|
|
302
302
|
])
|
|
303
303
|
])
|
|
304
|
-
])) :
|
|
305
|
-
|
|
304
|
+
])) : _("", !0),
|
|
305
|
+
h.value === "year" ? (s(), i("div", qe, [
|
|
306
306
|
r("div", Ae, [
|
|
307
307
|
r("table", Ge, [
|
|
308
308
|
r("tbody", null, [
|
|
309
|
-
(s(!0), i(
|
|
310
|
-
(s(!0), i(
|
|
311
|
-
class:
|
|
309
|
+
(s(!0), i(S, null, V(q.value, (l, n) => (s(), i("tr", { key: n }, [
|
|
310
|
+
(s(!0), i(S, null, V(l, (a, c) => (s(), i("td", {
|
|
311
|
+
class: R(["calendar-date-cell date-cell-in-view", {
|
|
312
312
|
"date-cell-today": a.isCurrent,
|
|
313
|
-
"date-cell-selected":
|
|
313
|
+
"date-cell-selected": m.value && p(U)(m.value).getTime() === a.timestamp
|
|
314
314
|
}]),
|
|
315
|
-
key:
|
|
315
|
+
key: c,
|
|
316
316
|
title: ve(a),
|
|
317
|
-
onClick: (
|
|
317
|
+
onClick: (M) => ge(a)
|
|
318
318
|
}, [
|
|
319
319
|
r("div", Ke, [
|
|
320
320
|
r("div", Qe, [
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
w(e.$slots, "monthValue", D({ ref_for: !0 }, a), () => [
|
|
322
|
+
z(P(pe(a.monthObject.month + 1, a.timestamp)), 1)
|
|
323
323
|
], !0)
|
|
324
324
|
]),
|
|
325
325
|
r("div", Xe, [
|
|
326
|
-
|
|
326
|
+
w(e.$slots, "monthContent", D({ ref_for: !0 }, a), void 0, !0)
|
|
327
327
|
])
|
|
328
328
|
])
|
|
329
329
|
], 10, Je))), 128))
|
|
@@ -331,7 +331,7 @@ const Pe = { class: "calendar-header-wrap" }, Te = {
|
|
|
331
331
|
])
|
|
332
332
|
])
|
|
333
333
|
])
|
|
334
|
-
])) :
|
|
334
|
+
])) : _("", !0)
|
|
335
335
|
])
|
|
336
336
|
], 6));
|
|
337
337
|
}
|