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
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as Ml, ref as
|
|
2
|
-
import { toRgbaString as U, toHexString as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useInject as
|
|
1
|
+
import { defineComponent as Ml, ref as C, computed as c, watch as Ne, watchEffect as xl, createBlock as Q, openBlock as k, unref as z, normalizeStyle as v, withCtx as se, createElementVNode as n, mergeProps as ge, createElementBlock as R, createCommentVNode as H, renderSlot as Be, createTextVNode as ne, toDisplayString as be, Fragment as ke, normalizeClass as Rl, withModifiers as Hl, renderList as Pe } from "vue";
|
|
2
|
+
import { toRgbaString as U, toHexString as _, rgba as V, rgb2hsv as ye, hsla as W, hsl2hsv as De, hsva as Z, hsl2rgb as we, hsv2rgb as P, rgb2hsl as $e, hsv2hsl as ue, toHexaString as D, toHslaString as F, toRgbString as Se, toHslString as Ae, toHsvaString as T, toHsvString as Ce } from "seemly";
|
|
3
|
+
import El from "../tooltip/index.js";
|
|
4
|
+
import Fe from "../input/index.js";
|
|
5
|
+
import Xe from "../button/index.js";
|
|
6
|
+
import { useInject as zl, useSlotsExist as Ul } from "../utils/index.js";
|
|
7
7
|
const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-preview-sliders" }, Ll = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "color-picker-preview-circle"
|
|
10
|
-
}, Nl = ["value"], Bl = { class: "color-picker-input" }, Pl = { class: "color-picker-input-group" },
|
|
10
|
+
}, Nl = ["value"], Bl = { class: "color-picker-input" }, Pl = { class: "color-picker-input-group" }, Dl = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "color-picker-swatches"
|
|
13
|
-
},
|
|
13
|
+
}, Fl = ["onClick"], Xl = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "color-picker-actions"
|
|
16
|
-
},
|
|
16
|
+
}, Ol = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "color-picker-footer"
|
|
19
|
-
},
|
|
19
|
+
}, Zl = { class: "color-picker-wrap" }, Tl = { class: "color-picker-fill" }, y = "12px", Oe = 12, m = "6px", Ze = 6, Kl = /* @__PURE__ */ Ml({
|
|
20
20
|
__name: "ColorPicker",
|
|
21
21
|
props: {
|
|
22
22
|
width: { default: "100%" },
|
|
@@ -34,48 +34,48 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
34
34
|
footer: { default: void 0 }
|
|
35
35
|
},
|
|
36
36
|
emits: ["update:value", "complete", "confirm", "clear"],
|
|
37
|
-
setup(
|
|
38
|
-
const s =
|
|
39
|
-
width:
|
|
40
|
-
height:
|
|
41
|
-
borderRadius:
|
|
42
|
-
left: `calc(${
|
|
43
|
-
bottom: `calc(${
|
|
44
|
-
})),
|
|
45
|
-
backgroundColor:
|
|
46
|
-
borderRadius:
|
|
47
|
-
width:
|
|
48
|
-
height:
|
|
49
|
-
})),
|
|
50
|
-
height:
|
|
51
|
-
borderRadius:
|
|
52
|
-
})),
|
|
37
|
+
setup(p, { emit: Te }) {
|
|
38
|
+
const s = p, ie = C(), ee = C(null), le = C(null), ce = C(null), E = C(0), de = C(1), te = C([0, 0]), Y = C(), i = C(s.value), g = C(oe(i.value) || s.modes[0] || "rgb"), re = C(), I = C([]), { colorPalettes: Me, shadowColor: je } = zl("ColorPicker"), X = Te, Ge = Ul("footer"), We = c(() => Ge.value || s.footer), Ye = c(() => ({
|
|
39
|
+
width: y,
|
|
40
|
+
height: y,
|
|
41
|
+
borderRadius: m,
|
|
42
|
+
left: `calc(${te.value[0]}% - ${m})`,
|
|
43
|
+
bottom: `calc(${te.value[1]}% - ${m})`
|
|
44
|
+
})), qe = c(() => h.value ? `rgb(${h.value[0]}, ${h.value[1]}, ${h.value[2]})` : ""), Je = c(() => ({
|
|
45
|
+
backgroundColor: qe.value,
|
|
46
|
+
borderRadius: m,
|
|
47
|
+
width: y,
|
|
48
|
+
height: y
|
|
49
|
+
})), xe = c(() => ({
|
|
50
|
+
height: y,
|
|
51
|
+
borderRadius: m
|
|
52
|
+
})), Ke = c(() => ({
|
|
53
53
|
position: "relative",
|
|
54
54
|
boxShadow: "inset 0 0 2px 0 rgba(0, 0, 0, 0.24)",
|
|
55
55
|
backgroundImage: "linear-gradient(90deg, red, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, red)",
|
|
56
|
-
height:
|
|
57
|
-
borderRadius:
|
|
58
|
-
})), Ke = c(() => ({
|
|
59
|
-
left: `calc((${E.value}%) / 359 * 100 - ${f})`,
|
|
60
|
-
borderRadius: f,
|
|
61
|
-
width: k,
|
|
62
|
-
height: k
|
|
56
|
+
height: y,
|
|
57
|
+
borderRadius: m
|
|
63
58
|
})), Qe = c(() => ({
|
|
59
|
+
left: `calc((${E.value}%) / 359 * 100 - ${m})`,
|
|
60
|
+
borderRadius: m,
|
|
61
|
+
width: y,
|
|
62
|
+
height: y
|
|
63
|
+
})), _e = c(() => ({
|
|
64
64
|
backgroundColor: `hsl(${E.value}, 100%, 50%)`,
|
|
65
|
-
borderRadius:
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
65
|
+
borderRadius: m,
|
|
66
|
+
width: y,
|
|
67
|
+
height: y
|
|
68
68
|
})), el = c(() => h.value ? `linear-gradient(to right, rgba(${h.value[0]}, ${h.value[1]}, ${h.value[2]}, 0) 0%, rgba(${h.value[0]}, ${h.value[1]}, ${h.value[2]}, 1) 100%)` : ""), ll = c(() => ({
|
|
69
|
-
left: `calc(${
|
|
70
|
-
borderRadius:
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
69
|
+
left: `calc(${de.value * 100}% - ${m})`,
|
|
70
|
+
borderRadius: m,
|
|
71
|
+
width: y,
|
|
72
|
+
height: y
|
|
73
73
|
})), tl = c(() => ({
|
|
74
74
|
backgroundColor: h.value ? U(h.value) : void 0,
|
|
75
|
-
borderRadius:
|
|
76
|
-
width:
|
|
77
|
-
height:
|
|
78
|
-
})), Re = c(() => h.value &&
|
|
75
|
+
borderRadius: m,
|
|
76
|
+
width: y,
|
|
77
|
+
height: y
|
|
78
|
+
})), Re = c(() => h.value && _(h.value)), He = c(() => typeof s.width == "number" ? `${s.width}px` : s.width), ve = c(() => `${{
|
|
79
79
|
small: 24,
|
|
80
80
|
middle: 32,
|
|
81
81
|
large: 40
|
|
@@ -85,55 +85,55 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
85
85
|
middle: 8,
|
|
86
86
|
large: 10
|
|
87
87
|
};
|
|
88
|
-
return `calc((${
|
|
89
|
-
}),
|
|
90
|
-
let
|
|
91
|
-
const
|
|
88
|
+
return `calc((${ve.value} - ${e[s.size]}px) / 3)`;
|
|
89
|
+
}), he = c(() => oe(i.value)), q = c(() => g.value.toUpperCase() + (s.showAlpha ? "A" : "")), ol = c(() => q.value.split(""));
|
|
90
|
+
let w, $, j, G, L, N, B, S;
|
|
91
|
+
const M = c(() => {
|
|
92
92
|
if (!i.value) return null;
|
|
93
|
-
switch (
|
|
93
|
+
switch (he.value) {
|
|
94
94
|
case "hsv":
|
|
95
|
-
return
|
|
95
|
+
return Z(i.value);
|
|
96
96
|
case "hsl":
|
|
97
|
-
return [
|
|
97
|
+
return [w, $, j, S] = W(i.value), [...De(w, $, j), S];
|
|
98
98
|
case "rgb":
|
|
99
99
|
case "hex":
|
|
100
|
-
return [
|
|
100
|
+
return [L, N, B, S] = V(i.value), [...ye(L, N, B), S];
|
|
101
101
|
}
|
|
102
102
|
}), h = c(() => {
|
|
103
103
|
if (!i.value) return null;
|
|
104
|
-
switch (
|
|
104
|
+
switch (he.value) {
|
|
105
105
|
case "rgb":
|
|
106
106
|
case "hex":
|
|
107
|
-
return
|
|
107
|
+
return V(i.value);
|
|
108
108
|
case "hsv":
|
|
109
|
-
return [
|
|
109
|
+
return [w, $, G, S] = Z(i.value), [...P(w, $, G), S];
|
|
110
110
|
case "hsl":
|
|
111
|
-
return [
|
|
111
|
+
return [w, $, j, S] = W(i.value), [...we(w, $, j), S];
|
|
112
112
|
}
|
|
113
|
-
}),
|
|
113
|
+
}), O = c(() => {
|
|
114
114
|
if (!i.value) return null;
|
|
115
|
-
switch (
|
|
115
|
+
switch (he.value) {
|
|
116
116
|
case "hsl":
|
|
117
|
-
return
|
|
117
|
+
return W(i.value);
|
|
118
118
|
case "hsv":
|
|
119
|
-
return [
|
|
119
|
+
return [w, $, G, S] = Z(i.value), [...ue(w, $, G), S];
|
|
120
120
|
case "rgb":
|
|
121
121
|
case "hex":
|
|
122
|
-
return [
|
|
122
|
+
return [L, N, B, S] = V(i.value), [...$e(L, N, B), S];
|
|
123
123
|
}
|
|
124
|
-
}),
|
|
125
|
-
switch (
|
|
124
|
+
}), x = c(() => {
|
|
125
|
+
switch (g.value) {
|
|
126
126
|
case "rgb":
|
|
127
127
|
case "hex":
|
|
128
128
|
return h.value;
|
|
129
129
|
case "hsv":
|
|
130
|
-
return
|
|
130
|
+
return M.value;
|
|
131
131
|
case "hsl":
|
|
132
|
-
return
|
|
132
|
+
return O.value;
|
|
133
133
|
}
|
|
134
134
|
}), Ee = c(
|
|
135
135
|
() => s.swatches.map((e) => {
|
|
136
|
-
const l =
|
|
136
|
+
const l = oe(e);
|
|
137
137
|
return {
|
|
138
138
|
value: e,
|
|
139
139
|
mode: l,
|
|
@@ -141,128 +141,128 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
141
141
|
};
|
|
142
142
|
})
|
|
143
143
|
);
|
|
144
|
-
|
|
144
|
+
Ne(
|
|
145
145
|
() => s.value,
|
|
146
146
|
(e) => {
|
|
147
147
|
i.value = e;
|
|
148
148
|
}
|
|
149
|
-
),
|
|
150
|
-
() => [
|
|
149
|
+
), Ne(
|
|
150
|
+
() => [g.value, x.value],
|
|
151
151
|
() => {
|
|
152
|
-
|
|
152
|
+
g.value === "hex" ? re.value = x.value === null ? void 0 : (s.showAlpha ? D : _)(x.value) : x.value === null ? I.value = new Array(s.showAlpha ? 4 : 3).fill(void 0) : I.value = x.value.map((e, l) => s.showAlpha && l === 3 ? `${Math.floor(e * 100)}%` : `${Math.floor(e)}`);
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
immediate: !0,
|
|
156
156
|
deep: !0
|
|
157
157
|
}
|
|
158
|
-
),
|
|
159
|
-
(
|
|
158
|
+
), xl(() => {
|
|
159
|
+
(Y.value === void 0 || Y.value !== i.value) && M.value && (E.value = M.value[0], de.value = M.value[3], te.value = [M.value[1], M.value[2]]), Y.value = void 0;
|
|
160
160
|
});
|
|
161
|
-
function
|
|
162
|
-
l === "cursor" ?
|
|
161
|
+
function b(e, l) {
|
|
162
|
+
l === "cursor" ? Y.value = e : Y.value = void 0, i.value = e, X("update:value", e), l === "input" && X("complete", e);
|
|
163
163
|
}
|
|
164
164
|
function al(e, l) {
|
|
165
|
-
const t =
|
|
166
|
-
switch (
|
|
165
|
+
const t = M.value ? M.value[3] : 1;
|
|
166
|
+
switch (te.value = [e, l], g.value) {
|
|
167
167
|
case "hsv":
|
|
168
|
-
|
|
168
|
+
b((s.showAlpha ? T : Ce)([E.value, e, l, t]), "cursor");
|
|
169
169
|
break;
|
|
170
170
|
case "hsl":
|
|
171
|
-
|
|
172
|
-
(s.showAlpha ?
|
|
171
|
+
b(
|
|
172
|
+
(s.showAlpha ? F : Ae)([...ue(E.value, e, l), t]),
|
|
173
173
|
"cursor"
|
|
174
174
|
);
|
|
175
175
|
break;
|
|
176
176
|
case "rgb":
|
|
177
|
-
|
|
178
|
-
(s.showAlpha ? U :
|
|
177
|
+
b(
|
|
178
|
+
(s.showAlpha ? U : Se)([...P(E.value, e, l), t]),
|
|
179
179
|
"cursor"
|
|
180
180
|
);
|
|
181
181
|
break;
|
|
182
182
|
case "hex":
|
|
183
|
-
|
|
184
|
-
(s.showAlpha ?
|
|
183
|
+
b(
|
|
184
|
+
(s.showAlpha ? D : _)([...P(E.value, e, l), t]),
|
|
185
185
|
"cursor"
|
|
186
186
|
);
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
function sl(e) {
|
|
191
|
-
|
|
191
|
+
ee.value && (document.addEventListener("mousemove", fe), document.addEventListener("mouseup", ze), fe(e));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
if (!
|
|
195
|
-
const { width: l, height: t, left: o, bottom:
|
|
193
|
+
function fe(e) {
|
|
194
|
+
if (!ee.value) return;
|
|
195
|
+
const { width: l, height: t, left: o, bottom: A } = ee.value.getBoundingClientRect(), r = (A - e.clientY) / t, a = (e.clientX - o) / l, u = 100 * (a > 1 ? 1 : a < 0 ? 0 : a), d = 100 * (r > 1 ? 1 : r < 0 ? 0 : r);
|
|
196
196
|
al(u, d);
|
|
197
197
|
}
|
|
198
198
|
function ze() {
|
|
199
|
-
document.removeEventListener("mousemove",
|
|
199
|
+
document.removeEventListener("mousemove", fe), document.removeEventListener("mouseup", ze), X("complete", i.value);
|
|
200
200
|
}
|
|
201
201
|
function nl(e) {
|
|
202
|
-
if (E.value = e, !
|
|
202
|
+
if (E.value = e, !M.value)
|
|
203
203
|
return;
|
|
204
|
-
const [, l, t, o] =
|
|
205
|
-
switch (
|
|
204
|
+
const [, l, t, o] = M.value;
|
|
205
|
+
switch (g.value) {
|
|
206
206
|
case "hsv":
|
|
207
|
-
|
|
207
|
+
b((s.showAlpha ? T : Ce)([e, l, t, o]), "cursor");
|
|
208
208
|
break;
|
|
209
209
|
case "rgb":
|
|
210
|
-
|
|
210
|
+
b((s.showAlpha ? U : Se)([...P(e, l, t), o]), "cursor");
|
|
211
211
|
break;
|
|
212
212
|
case "hex":
|
|
213
|
-
|
|
213
|
+
b((s.showAlpha ? D : _)([...P(e, l, t), o]), "cursor");
|
|
214
214
|
break;
|
|
215
215
|
case "hsl":
|
|
216
|
-
|
|
216
|
+
b((s.showAlpha ? F : Ae)([...ue(e, l, t), o]), "cursor");
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
function ul(e) {
|
|
221
|
-
|
|
221
|
+
le.value && (document.addEventListener("mousemove", pe), document.addEventListener("mouseup", Ue), pe(e));
|
|
222
222
|
}
|
|
223
223
|
function il(e) {
|
|
224
224
|
return e = Math.round(e), e >= 360 ? 359 : e < 0 ? 0 : e;
|
|
225
225
|
}
|
|
226
226
|
function pe(e) {
|
|
227
|
-
if (!
|
|
228
|
-
const { width: l, left: t } =
|
|
227
|
+
if (!le.value) return;
|
|
228
|
+
const { width: l, left: t } = le.value.getBoundingClientRect(), o = il((e.clientX - t - Ze) / (l - Oe) * 360);
|
|
229
229
|
nl(o);
|
|
230
230
|
}
|
|
231
231
|
function Ue() {
|
|
232
|
-
document.removeEventListener("mousemove", pe), document.removeEventListener("mouseup", Ue),
|
|
232
|
+
document.removeEventListener("mousemove", pe), document.removeEventListener("mouseup", Ue), X("complete", i.value);
|
|
233
233
|
}
|
|
234
234
|
function cl(e) {
|
|
235
|
-
switch (
|
|
235
|
+
switch (g.value) {
|
|
236
236
|
case "hsv":
|
|
237
|
-
[
|
|
237
|
+
[w, $, G] = M.value, b(T([w, $, G, e]), "cursor");
|
|
238
238
|
break;
|
|
239
239
|
case "rgb":
|
|
240
|
-
[
|
|
240
|
+
[L, N, B] = h.value, b(U([L, N, B, e]), "cursor");
|
|
241
241
|
break;
|
|
242
242
|
case "hex":
|
|
243
|
-
[
|
|
243
|
+
[L, N, B] = h.value, b(D([L, N, B, e]), "cursor");
|
|
244
244
|
break;
|
|
245
245
|
case "hsl":
|
|
246
|
-
[
|
|
246
|
+
[w, $, j] = O.value, b(F([w, $, j, e]), "cursor");
|
|
247
247
|
break;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
de.value = e;
|
|
250
250
|
}
|
|
251
251
|
function dl(e) {
|
|
252
|
-
document.addEventListener("mousemove",
|
|
252
|
+
document.addEventListener("mousemove", me), document.addEventListener("mouseup", Ve), me(e);
|
|
253
253
|
}
|
|
254
254
|
function vl(e) {
|
|
255
255
|
return e = Math.round(e * 100) / 100, e > 1 ? 1 : e < 0 ? 0 : e;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
if (!
|
|
259
|
-
const { width: l, left: t } =
|
|
257
|
+
function me(e) {
|
|
258
|
+
if (!ce.value) return;
|
|
259
|
+
const { width: l, left: t } = ce.value.getBoundingClientRect(), o = vl((e.clientX - t - Ze) / (l - Oe));
|
|
260
260
|
cl(o);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
document.removeEventListener("mousemove",
|
|
262
|
+
function Ve() {
|
|
263
|
+
document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", Ve), X("complete", i.value);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function oe(e) {
|
|
266
266
|
if (e !== void 0) {
|
|
267
267
|
if (/^ *#/.test(e)) return "hex";
|
|
268
268
|
if (e.includes("rgb")) return "rgb";
|
|
@@ -271,14 +271,14 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
function hl() {
|
|
274
|
-
const e = s.modes.findIndex((l) => l ===
|
|
275
|
-
e !== -1 ?
|
|
276
|
-
}
|
|
277
|
-
function pl(e) {
|
|
278
|
-
const l = e.target, t = Ie(l.value.toUpperCase(), m.value, "hex");
|
|
279
|
-
g(t, "input");
|
|
274
|
+
const e = s.modes.findIndex((l) => l === g.value);
|
|
275
|
+
e !== -1 ? g.value = s.modes[(e + 1) % s.modes.length] : g.value = "rgb";
|
|
280
276
|
}
|
|
281
277
|
function fl(e) {
|
|
278
|
+
const l = e.target, t = Le(l.value.toUpperCase(), g.value, "hex");
|
|
279
|
+
b(t, "input");
|
|
280
|
+
}
|
|
281
|
+
function pl(e) {
|
|
282
282
|
const l = e.trim();
|
|
283
283
|
return /^#[0-9a-fA-F]+$/.test(l) ? [4, 5, 7, 9].includes(l.length) : !1;
|
|
284
284
|
}
|
|
@@ -294,63 +294,63 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
294
294
|
function kl(e) {
|
|
295
295
|
return /^\d{1,3}\.?\d*$/.test(e.trim()) ? Math.max(0, Math.min(Number.parseInt(e), 255)) : !1;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function J(e, l) {
|
|
298
298
|
return e === void 0 ? "" : l === "HEX" || l === "HEXA" ? e : l === "A" ? `${Math.floor(Number(e) * 100)}%` : String(Math.floor(Number(e)));
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
300
|
+
function ae(e) {
|
|
301
|
+
b(e, "input");
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
if (
|
|
305
|
-
|
|
303
|
+
function K(e, l) {
|
|
304
|
+
if (g.value === "hex") {
|
|
305
|
+
ae((s.showAlpha ? D : _)(l));
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
let t;
|
|
309
|
-
switch (
|
|
309
|
+
switch (x.value === null ? t = [0, 0, 0, 0] : t = [...x.value], g.value) {
|
|
310
310
|
case "hsv":
|
|
311
|
-
t[e] = l,
|
|
311
|
+
t[e] = l, ae((s.showAlpha ? T : Ce)(t));
|
|
312
312
|
break;
|
|
313
313
|
case "rgb":
|
|
314
|
-
t[e] = l,
|
|
314
|
+
t[e] = l, ae((s.showAlpha ? U : Se)(t));
|
|
315
315
|
break;
|
|
316
316
|
case "hsl":
|
|
317
|
-
t[e] = l,
|
|
317
|
+
t[e] = l, ae((s.showAlpha ? F : Ae)(t));
|
|
318
318
|
break;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Ie(e, l) {
|
|
322
322
|
const t = e.target;
|
|
323
|
-
let o,
|
|
323
|
+
let o, A, r;
|
|
324
324
|
const a = t.value;
|
|
325
|
-
l === void 0 ? r =
|
|
326
|
-
const u = l === void 0 ?
|
|
325
|
+
l === void 0 ? r = x.value === null ? void 0 : x.value : r = x.value?.[l] === void 0 ? void 0 : x.value?.[l].toString();
|
|
326
|
+
const u = l === void 0 ? q.value : q.value[l];
|
|
327
327
|
switch (u) {
|
|
328
328
|
case "HEX":
|
|
329
329
|
case "HEXA":
|
|
330
|
-
|
|
330
|
+
A = pl(a), A && K(0, a), re.value = J(a, u);
|
|
331
331
|
break;
|
|
332
332
|
case "H":
|
|
333
|
-
o = ml(a), o === !1 ?
|
|
333
|
+
o = ml(a), o === !1 ? I.value[l] = J(r, u) : K(l, o);
|
|
334
334
|
break;
|
|
335
335
|
case "S":
|
|
336
336
|
case "L":
|
|
337
337
|
case "V":
|
|
338
|
-
o = gl(a), o === !1 ?
|
|
338
|
+
o = gl(a), o === !1 ? I.value[l] = J(r, u) : K(l, o);
|
|
339
339
|
break;
|
|
340
340
|
case "A":
|
|
341
|
-
o = bl(a), o === !1 ?
|
|
341
|
+
o = bl(a), o === !1 ? I.value[l] = J(r, u) : K(l, o);
|
|
342
342
|
break;
|
|
343
343
|
case "R":
|
|
344
344
|
case "G":
|
|
345
345
|
case "B":
|
|
346
|
-
o = kl(a), o === !1 ?
|
|
346
|
+
o = kl(a), o === !1 ? I.value[l] = J(r, u) : K(l, o);
|
|
347
347
|
break;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
function yl(e, l) {
|
|
351
351
|
if (l === "hsv") {
|
|
352
|
-
const [t, o,
|
|
353
|
-
return U([...
|
|
352
|
+
const [t, o, A, r] = Z(e);
|
|
353
|
+
return U([...P(t, o, A), r]);
|
|
354
354
|
}
|
|
355
355
|
return e;
|
|
356
356
|
}
|
|
@@ -358,81 +358,81 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
358
358
|
const l = document.createElement("canvas").getContext("2d");
|
|
359
359
|
return l ? (l.fillStyle = e, l.fillStyle) : "#000000";
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
return t = t ||
|
|
361
|
+
function Le(e, l, t) {
|
|
362
|
+
return t = t || oe(e), t ? t === l ? e : {
|
|
363
363
|
rgb: {
|
|
364
364
|
hex(r) {
|
|
365
|
-
return
|
|
365
|
+
return D(V(r));
|
|
366
366
|
},
|
|
367
367
|
hsl(r) {
|
|
368
|
-
const [a, u, d,
|
|
369
|
-
return
|
|
368
|
+
const [a, u, d, f] = V(r);
|
|
369
|
+
return F([...$e(a, u, d), f]);
|
|
370
370
|
},
|
|
371
371
|
hsv(r) {
|
|
372
|
-
const [a, u, d,
|
|
373
|
-
return
|
|
372
|
+
const [a, u, d, f] = V(r);
|
|
373
|
+
return T([...ye(a, u, d), f]);
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
hex: {
|
|
377
377
|
rgb(r) {
|
|
378
|
-
return U(
|
|
378
|
+
return U(V(r));
|
|
379
379
|
},
|
|
380
380
|
hsl(r) {
|
|
381
|
-
const [a, u, d,
|
|
382
|
-
return
|
|
381
|
+
const [a, u, d, f] = V(r);
|
|
382
|
+
return F([...$e(a, u, d), f]);
|
|
383
383
|
},
|
|
384
384
|
hsv(r) {
|
|
385
|
-
const [a, u, d,
|
|
386
|
-
return
|
|
385
|
+
const [a, u, d, f] = V(r);
|
|
386
|
+
return T([...ye(a, u, d), f]);
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
389
|
hsl: {
|
|
390
390
|
hex(r) {
|
|
391
|
-
const [a, u, d,
|
|
392
|
-
return
|
|
391
|
+
const [a, u, d, f] = W(r);
|
|
392
|
+
return D([...we(a, u, d), f]);
|
|
393
393
|
},
|
|
394
394
|
rgb(r) {
|
|
395
|
-
const [a, u, d,
|
|
396
|
-
return U([...
|
|
395
|
+
const [a, u, d, f] = W(r);
|
|
396
|
+
return U([...we(a, u, d), f]);
|
|
397
397
|
},
|
|
398
398
|
hsv(r) {
|
|
399
|
-
const [a, u, d,
|
|
400
|
-
return
|
|
399
|
+
const [a, u, d, f] = W(r);
|
|
400
|
+
return T([...De(a, u, d), f]);
|
|
401
401
|
}
|
|
402
402
|
},
|
|
403
403
|
hsv: {
|
|
404
404
|
hex(r) {
|
|
405
|
-
const [a, u, d,
|
|
406
|
-
return
|
|
405
|
+
const [a, u, d, f] = Z(r);
|
|
406
|
+
return D([...P(a, u, d), f]);
|
|
407
407
|
},
|
|
408
408
|
rgb(r) {
|
|
409
|
-
const [a, u, d,
|
|
410
|
-
return U([...
|
|
409
|
+
const [a, u, d, f] = Z(r);
|
|
410
|
+
return U([...P(a, u, d), f]);
|
|
411
411
|
},
|
|
412
412
|
hsl(r) {
|
|
413
|
-
const [a, u, d,
|
|
414
|
-
return
|
|
413
|
+
const [a, u, d, f] = Z(r);
|
|
414
|
+
return F([...ue(a, u, d), f]);
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}[t][l](e) : void 0;
|
|
418
418
|
}
|
|
419
419
|
function $l(e) {
|
|
420
420
|
let { value: l, mode: t } = e;
|
|
421
|
-
return t || (t = "hex", /^[a-zA-Z]+$/.test(l) ? l = wl(l) : (console.warn("color-picker", `color ${l} in swatches is invalid.`), l = "#000000")), t ===
|
|
421
|
+
return t || (t = "hex", /^[a-zA-Z]+$/.test(l) ? l = wl(l) : (console.warn("color-picker", `color ${l} in swatches is invalid.`), l = "#000000")), t === g.value ? l : Le(l, g.value, t);
|
|
422
422
|
}
|
|
423
423
|
function Sl(e) {
|
|
424
|
-
|
|
424
|
+
b($l(e), "input");
|
|
425
425
|
}
|
|
426
426
|
function Al() {
|
|
427
|
-
|
|
427
|
+
X("confirm", i.value), ie.value.hide();
|
|
428
428
|
}
|
|
429
429
|
function Cl() {
|
|
430
|
-
|
|
430
|
+
b(void 0, "input"), X("clear"), ie.value.hide();
|
|
431
431
|
}
|
|
432
|
-
return (e, l) => (
|
|
432
|
+
return (e, l) => (k(), Q(z(El), {
|
|
433
433
|
ref_key: "tooltipRef",
|
|
434
|
-
ref:
|
|
435
|
-
style: v(`width: ${He.value}; height: ${
|
|
434
|
+
ref: ie,
|
|
435
|
+
style: v(`width: ${He.value}; height: ${ve.value};`),
|
|
436
436
|
"max-width": "none",
|
|
437
437
|
arrow: !1,
|
|
438
438
|
placement: "bottom",
|
|
@@ -442,20 +442,20 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
442
442
|
padding: 0,
|
|
443
443
|
borderRadius: "4px",
|
|
444
444
|
color: "rgba(0, 0, 0, 0.88)",
|
|
445
|
-
...
|
|
445
|
+
...p.tooltipStyle
|
|
446
446
|
},
|
|
447
447
|
"content-style": { width: "100%", height: "100%" },
|
|
448
448
|
trigger: "click",
|
|
449
449
|
"transition-duration": 200
|
|
450
450
|
}, {
|
|
451
|
-
tooltip:
|
|
452
|
-
|
|
451
|
+
tooltip: se(() => [
|
|
452
|
+
p.disabled ? H("", !0) : (k(), R(ke, { key: 0 }, [
|
|
453
453
|
n("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: Rl(["color-picker-panel", { "panel-with-actions": p.actions.length }])
|
|
455
455
|
}, [
|
|
456
456
|
n("div", {
|
|
457
457
|
ref_key: "palleteRef",
|
|
458
|
-
ref:
|
|
458
|
+
ref: ee,
|
|
459
459
|
class: "color-picker-pallete",
|
|
460
460
|
onMousedown: sl
|
|
461
461
|
}, [
|
|
@@ -469,11 +469,11 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
469
469
|
}, null, -1)),
|
|
470
470
|
n("div", {
|
|
471
471
|
class: "color-picker-handle",
|
|
472
|
-
style: v(
|
|
472
|
+
style: v(Ye.value)
|
|
473
473
|
}, [
|
|
474
474
|
n("div", {
|
|
475
475
|
class: "color-picker-handle-fill",
|
|
476
|
-
style: v(
|
|
476
|
+
style: v(Je.value)
|
|
477
477
|
}, null, 4)
|
|
478
478
|
], 4)
|
|
479
479
|
], 544),
|
|
@@ -481,40 +481,40 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
481
481
|
n("div", Il, [
|
|
482
482
|
n("div", {
|
|
483
483
|
class: "color-picker-slider",
|
|
484
|
-
style: v(
|
|
484
|
+
style: v(xe.value)
|
|
485
485
|
}, [
|
|
486
486
|
n("div", {
|
|
487
487
|
ref_key: "hueRailRef",
|
|
488
|
-
ref:
|
|
489
|
-
style: v(
|
|
488
|
+
ref: le,
|
|
489
|
+
style: v(Ke.value),
|
|
490
490
|
onMousedown: ul
|
|
491
491
|
}, [
|
|
492
492
|
n("div", {
|
|
493
|
-
style: v(`position: absolute; top: 0px; bottom: 0; left: ${
|
|
493
|
+
style: v(`position: absolute; top: 0px; bottom: 0; left: ${m}; right: ${m}`)
|
|
494
494
|
}, [
|
|
495
495
|
n("div", {
|
|
496
496
|
class: "color-picker-handle",
|
|
497
|
-
style: v(
|
|
497
|
+
style: v(Qe.value)
|
|
498
498
|
}, [
|
|
499
499
|
n("div", {
|
|
500
500
|
class: "color-picker-handle-fill",
|
|
501
|
-
style: v(
|
|
501
|
+
style: v(_e.value)
|
|
502
502
|
}, null, 4)
|
|
503
503
|
], 4)
|
|
504
504
|
], 4)
|
|
505
505
|
], 36)
|
|
506
506
|
], 4),
|
|
507
|
-
|
|
507
|
+
p.showAlpha ? (k(), R("div", {
|
|
508
508
|
key: 0,
|
|
509
509
|
ref_key: "alphaRailRef",
|
|
510
|
-
ref:
|
|
510
|
+
ref: ce,
|
|
511
511
|
class: "color-picker-slider",
|
|
512
|
-
style: v(
|
|
512
|
+
style: v(xe.value),
|
|
513
513
|
onMousedown: dl
|
|
514
514
|
}, [
|
|
515
515
|
n("div", {
|
|
516
516
|
style: v(`
|
|
517
|
-
border-radius: ${
|
|
517
|
+
border-radius: ${m};
|
|
518
518
|
position: absolute;
|
|
519
519
|
top: 0px;
|
|
520
520
|
bottom: 0;
|
|
@@ -529,9 +529,9 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
529
529
|
style: v(`background-image: ${el.value}`)
|
|
530
530
|
}, null, 4)
|
|
531
531
|
], 4),
|
|
532
|
-
h.value ? (
|
|
532
|
+
h.value ? (k(), R("div", {
|
|
533
533
|
key: 0,
|
|
534
|
-
style: v(`position: absolute; top: 0px; bottom: 0; left: ${
|
|
534
|
+
style: v(`position: absolute; top: 0px; bottom: 0; left: ${m}; right: ${m}`)
|
|
535
535
|
}, [
|
|
536
536
|
n("div", {
|
|
537
537
|
class: "color-picker-handle",
|
|
@@ -545,7 +545,7 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
545
545
|
], 4)) : H("", !0)
|
|
546
546
|
], 36)) : H("", !0)
|
|
547
547
|
]),
|
|
548
|
-
|
|
548
|
+
p.showPreview ? (k(), R("div", Ll, [
|
|
549
549
|
n("span", {
|
|
550
550
|
class: "color-picker-circle-fill",
|
|
551
551
|
style: v(`background: ${Re.value || "#000000"};`)
|
|
@@ -554,107 +554,107 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
554
554
|
class: "color-picker-circle-input",
|
|
555
555
|
type: "color",
|
|
556
556
|
value: Re.value,
|
|
557
|
-
onChange:
|
|
557
|
+
onChange: Hl(fl, ["stop"])
|
|
558
558
|
}, null, 40, Nl)
|
|
559
559
|
])) : H("", !0)
|
|
560
560
|
]),
|
|
561
561
|
n("div", Bl, [
|
|
562
562
|
n("div", {
|
|
563
563
|
class: "color-picker-input-mode",
|
|
564
|
-
style: v({ cursor:
|
|
564
|
+
style: v({ cursor: p.modes.length === 1 ? "" : "pointer" }),
|
|
565
565
|
onClick: hl
|
|
566
|
-
},
|
|
566
|
+
}, be(q.value), 5),
|
|
567
567
|
n("div", Pl, [
|
|
568
|
-
|
|
568
|
+
g.value === "hex" ? (k(), Q(z(Fe), ge({
|
|
569
569
|
key: 0,
|
|
570
570
|
size: "small",
|
|
571
|
-
placeholder:
|
|
572
|
-
value:
|
|
573
|
-
"onUpdate:value": l[0] || (l[0] = (t) =>
|
|
571
|
+
placeholder: q.value,
|
|
572
|
+
value: re.value,
|
|
573
|
+
"onUpdate:value": l[0] || (l[0] = (t) => re.value = t),
|
|
574
574
|
valueModifiers: { lazy: !0 },
|
|
575
|
-
onChange:
|
|
576
|
-
},
|
|
575
|
+
onChange: Ie
|
|
576
|
+
}, p.inputProps), null, 16, ["placeholder", "value"])) : (k(!0), R(ke, { key: 1 }, Pe(ol.value, (t, o) => (k(), Q(z(Fe), ge({
|
|
577
577
|
size: "small",
|
|
578
578
|
style: `${t === "A" ? "flex-grow: 1.25" : ""}`,
|
|
579
579
|
key: o,
|
|
580
580
|
placeholder: t,
|
|
581
|
-
value:
|
|
582
|
-
"onUpdate:value": (
|
|
581
|
+
value: I.value[o],
|
|
582
|
+
"onUpdate:value": (A) => I.value[o] = A,
|
|
583
583
|
valueModifiers: { lazy: !0 },
|
|
584
|
-
onChange: (
|
|
585
|
-
}, { ref_for: !0 },
|
|
584
|
+
onChange: (A) => Ie(A, o)
|
|
585
|
+
}, { ref_for: !0 }, p.inputProps), null, 16, ["style", "placeholder", "value", "onUpdate:value", "onChange"]))), 128))
|
|
586
586
|
])
|
|
587
587
|
]),
|
|
588
|
-
Ee.value.length ? (
|
|
589
|
-
(
|
|
588
|
+
Ee.value.length ? (k(), R("div", Dl, [
|
|
589
|
+
(k(!0), R(ke, null, Pe(Ee.value, (t, o) => (k(), R("div", {
|
|
590
590
|
tabindex: "0",
|
|
591
591
|
class: "color-picker-swatch",
|
|
592
592
|
key: o,
|
|
593
|
-
onClick: (
|
|
593
|
+
onClick: (A) => Sl(t)
|
|
594
594
|
}, [
|
|
595
595
|
n("div", {
|
|
596
596
|
class: "color-picker-swatch-fill",
|
|
597
597
|
style: v(`background: ${t.legalValue};`)
|
|
598
598
|
}, null, 4)
|
|
599
|
-
], 8,
|
|
599
|
+
], 8, Fl))), 128))
|
|
600
600
|
])) : H("", !0)
|
|
601
601
|
], 2),
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
p.actions.length ? (k(), R("div", Xl, [
|
|
603
|
+
p.actions.includes("confirm") ? (k(), Q(z(Xe), {
|
|
604
604
|
key: 0,
|
|
605
605
|
type: "primary",
|
|
606
606
|
size: "small",
|
|
607
607
|
onClick: Al
|
|
608
608
|
}, {
|
|
609
|
-
default:
|
|
610
|
-
|
|
609
|
+
default: se(() => [...l[3] || (l[3] = [
|
|
610
|
+
ne("确认", -1)
|
|
611
611
|
])]),
|
|
612
612
|
_: 1
|
|
613
613
|
})) : H("", !0),
|
|
614
|
-
|
|
614
|
+
p.actions.includes("clear") ? (k(), Q(z(Xe), {
|
|
615
615
|
key: 1,
|
|
616
616
|
size: "small",
|
|
617
617
|
onClick: Cl
|
|
618
618
|
}, {
|
|
619
|
-
default:
|
|
620
|
-
|
|
619
|
+
default: se(() => [...l[4] || (l[4] = [
|
|
620
|
+
ne("清除", -1)
|
|
621
621
|
])]),
|
|
622
622
|
_: 1
|
|
623
623
|
})) : H("", !0)
|
|
624
624
|
])) : H("", !0),
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
We.value ? (k(), R("div", Ol, [
|
|
626
|
+
Be(e.$slots, "footer", {}, () => [
|
|
627
|
+
ne(be(p.footer), 1)
|
|
628
628
|
], !0)
|
|
629
629
|
])) : H("", !0)
|
|
630
630
|
], 64))
|
|
631
631
|
]),
|
|
632
|
-
default:
|
|
633
|
-
n("div",
|
|
632
|
+
default: se(() => [
|
|
633
|
+
n("div", ge({
|
|
634
634
|
tabindex: "1",
|
|
635
|
-
class: ["color-picker-display", [`color-picker-${
|
|
635
|
+
class: ["color-picker-display", [`color-picker-${p.size}`, { "color-picker-disabled": p.disabled }]],
|
|
636
636
|
style: `
|
|
637
637
|
--color-picker-width: ${He.value};
|
|
638
|
-
--color-picker-height: ${
|
|
638
|
+
--color-picker-height: ${ve.value};
|
|
639
639
|
--color-picker-block-size: ${rl.value};
|
|
640
|
-
--color-picker-primary-color-hover: ${z(
|
|
641
|
-
--color-picker-primary-color-focus: ${z(
|
|
642
|
-
--color-picker-primary-shadow-color: ${z(
|
|
640
|
+
--color-picker-primary-color-hover: ${z(Me)[4]};
|
|
641
|
+
--color-picker-primary-color-focus: ${z(Me)[4]};
|
|
642
|
+
--color-picker-primary-shadow-color: ${z(je)};
|
|
643
643
|
`
|
|
644
644
|
}, e.$attrs), [
|
|
645
|
-
n("div",
|
|
646
|
-
n("div",
|
|
645
|
+
n("div", Zl, [
|
|
646
|
+
n("div", Tl, [
|
|
647
647
|
l[5] || (l[5] = n("div", { class: "color-picker-checkboard" }, null, -1)),
|
|
648
648
|
n("div", {
|
|
649
|
-
style: v(`position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-color: ${
|
|
649
|
+
style: v(`position: absolute; left: 0; right: 0; top: 0; bottom: 0; background-color: ${O.value ? z(F)(O.value) : ""};`)
|
|
650
650
|
}, null, 4),
|
|
651
|
-
i.value &&
|
|
651
|
+
i.value && O.value ? (k(), R("div", {
|
|
652
652
|
key: 0,
|
|
653
653
|
class: "color-picker-value",
|
|
654
|
-
style: v({ color:
|
|
654
|
+
style: v({ color: O.value[2] > 50 || O.value[3] < 0.5 ? "black" : "white" })
|
|
655
655
|
}, [
|
|
656
|
-
|
|
657
|
-
|
|
656
|
+
Be(e.$slots, "label", { color: i.value }, () => [
|
|
657
|
+
ne(be(p.label ? p.label(i.value) : i.value), 1)
|
|
658
658
|
], !0)
|
|
659
659
|
], 4)) : H("", !0)
|
|
660
660
|
])
|
|
@@ -666,5 +666,5 @@ const Vl = { class: "color-picker-preview" }, Il = { class: "color-picker-previe
|
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
export {
|
|
669
|
-
|
|
669
|
+
Kl as default
|
|
670
670
|
};
|