naive-ui 2.22.0 → 2.24.0
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 +1 -1
- package/README.zh-CN.md +1 -1
- package/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +9 -10
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/icons/Switcher.js +2 -3
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/es/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/es/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/es/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/es/_internal/select-menu/src/SelectMenu.js +21 -21
- package/es/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/es/_internal/select-menu/styles/_common.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +44 -44
- package/es/_internal/selection/src/Selection.js +44 -44
- package/es/_internal/selection/src/styles/index.cssr.js +79 -79
- package/es/_internal/selection/styles/_common.js +1 -1
- package/es/_mixins/common.d.ts +1 -0
- package/es/_mixins/common.js +1 -0
- package/es/_mixins/index.d.ts +1 -0
- package/es/_mixins/index.js +1 -0
- package/es/_mixins/use-css-vars-class.d.ts +2 -0
- package/es/_mixins/use-css-vars-class.js +22 -0
- package/es/_mixins/use-rtl.js +2 -0
- package/es/_mixins/use-style.js +3 -0
- package/es/_mixins/use-theme.js +3 -0
- package/es/_utils/composable/use-houdini.js +12 -9
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +14 -14
- package/es/auto-complete/src/AutoComplete.js +15 -17
- package/es/auto-complete/src/styles/index.cssr.js +4 -4
- package/es/avatar/index.d.ts +2 -0
- package/es/avatar/index.js +1 -0
- package/es/avatar/src/Avatar.d.ts +72 -33
- package/es/avatar/src/Avatar.js +43 -15
- package/es/avatar/src/AvatarGroup.d.ts +52 -0
- package/es/avatar/src/AvatarGroup.js +61 -0
- package/es/avatar/src/interface.d.ts +2 -0
- package/es/avatar/src/interface.js +1 -0
- package/es/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/es/avatar/src/styles/avatar-group.cssr.js +14 -0
- package/es/avatar/src/styles/index.cssr.js +20 -15
- package/es/avatar/styles/light.d.ts +3 -0
- package/es/avatar/styles/light.js +6 -2
- package/es/back-top/src/BackTop.d.ts +16 -16
- package/es/back-top/src/BackTop.js +13 -13
- package/es/back-top/src/styles/index.cssr.js +29 -29
- package/es/badge/src/Badge.d.ts +6 -6
- package/es/badge/src/Badge.js +6 -6
- package/es/badge/src/styles/index.cssr.js +15 -15
- package/es/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/es/breadcrumb/src/Breadcrumb.js +8 -8
- package/es/breadcrumb/src/styles/index.cssr.js +23 -23
- package/es/button/src/Button.d.ts +10 -5
- package/es/button/src/Button.js +21 -14
- package/es/calendar/src/Calendar.d.ts +26 -22
- package/es/calendar/src/Calendar.js +37 -25
- package/es/calendar/src/interface.d.ts +4 -0
- package/es/calendar/src/styles/index.cssr.js +57 -57
- package/es/card/src/Card.d.ts +28 -23
- package/es/card/src/Card.js +24 -23
- package/es/card/src/styles/index.cssr.js +71 -69
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/carousel/src/Carousel.d.ts +239 -23
- package/es/carousel/src/Carousel.js +688 -234
- package/es/carousel/src/CarouselArrow.d.ts +9 -0
- package/es/carousel/src/CarouselArrow.js +43 -0
- package/es/carousel/src/CarouselDots.d.ts +66 -0
- package/es/carousel/src/CarouselDots.js +118 -0
- package/es/carousel/src/CarouselItem.d.ts +11 -0
- package/es/carousel/src/CarouselItem.js +72 -0
- package/es/carousel/src/interface.d.ts +28 -0
- package/es/carousel/src/interface.js +2 -0
- package/es/carousel/src/styles/index.cssr.js +150 -47
- package/es/carousel/src/utils.d.ts +12 -0
- package/es/carousel/src/utils.js +58 -0
- package/es/carousel/styles/light.d.ts +3 -0
- package/es/carousel/styles/light.js +5 -2
- package/es/cascader/src/Cascader.d.ts +31 -19
- package/es/cascader/src/Cascader.js +31 -20
- package/es/cascader/src/CascaderMenu.js +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.js +7 -4
- package/es/cascader/src/interface.d.ts +2 -1
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/light.js +1 -1
- package/es/checkbox/src/Checkbox.d.ts +23 -23
- package/es/checkbox/src/Checkbox.js +23 -23
- package/es/checkbox/src/styles/index.cssr.js +59 -59
- package/es/code/src/Code.d.ts +19 -14
- package/es/code/src/Code.js +32 -20
- package/es/code/src/styles/index.cssr.js +30 -30
- package/es/collapse/src/Collapse.d.ts +8 -8
- package/es/collapse/src/Collapse.js +8 -8
- package/es/collapse/src/styles/index.cssr.js +24 -24
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.js +1 -1
- package/es/color-picker/src/ColorInputUnit.js +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +23 -15
- package/es/color-picker/src/ColorPicker.js +29 -20
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.js +23 -17
- package/es/color-picker/src/interface.d.ts +2 -0
- package/es/color-picker/src/styles/index.cssr.js +29 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +27 -0
- package/es/countdown/index.d.ts +2 -0
- package/es/countdown/index.js +1 -0
- package/es/countdown/src/Countdown.d.ts +72 -0
- package/es/countdown/src/Countdown.js +126 -0
- package/es/countdown/src/utils.d.ts +0 -0
- package/es/countdown/src/utils.js +1 -0
- package/es/data-table/src/DataTable.d.ts +49 -94
- package/es/data-table/src/DataTable.js +65 -91
- package/es/data-table/src/TableParts/Body.js +7 -5
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +1 -1
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +133 -130
- package/es/data-table/src/utils.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +71 -67
- package/es/date-picker/src/DatePicker.js +144 -94
- package/es/date-picker/src/interface.d.ts +17 -2
- package/es/date-picker/src/panel/date.d.ts +4 -9
- package/es/date-picker/src/panel/daterange.d.ts +4 -9
- package/es/date-picker/src/panel/datetime.d.ts +4 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/es/date-picker/src/panel/month.d.ts +4 -9
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-calendar.js +8 -7
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/es/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/es/date-picker/src/panel/use-panel-common.js +2 -6
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/descriptions/src/Descriptions.d.ts +18 -18
- package/es/descriptions/src/Descriptions.js +19 -20
- package/es/descriptions/src/styles/index.cssr.js +61 -61
- package/es/dialog/src/Dialog.d.ts +24 -24
- package/es/dialog/src/Dialog.js +22 -22
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.js +45 -45
- package/es/divider/src/Divider.d.ts +4 -4
- package/es/divider/src/Divider.js +4 -4
- package/es/divider/src/styles/index.cssr.js +12 -12
- package/es/drawer/src/Drawer.d.ts +37 -77
- package/es/drawer/src/Drawer.js +51 -68
- package/es/drawer/src/DrawerBodyWrapper.js +21 -13
- package/es/drawer/src/DrawerContent.js +6 -6
- package/es/drawer/src/styles/index.cssr.js +41 -40
- package/es/dropdown/src/Dropdown.d.ts +5 -0
- package/es/dropdown/src/Dropdown.js +34 -32
- package/es/dropdown/src/styles/index.cssr.js +59 -59
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.js +1 -1
- package/es/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/es/empty/src/Empty.d.ts +19 -15
- package/es/empty/src/Empty.js +12 -12
- package/es/empty/src/styles/index.cssr.js +20 -19
- package/es/form/src/Feedbacks.js +4 -1
- package/es/form/src/Form.d.ts +34 -34
- package/es/form/src/Form.js +17 -8
- package/es/form/src/FormItem.d.ts +54 -49
- package/es/form/src/FormItem.js +39 -27
- package/es/form/src/FormItemCol.d.ts +41 -31
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +41 -31
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +40 -30
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/interface.d.ts +6 -2
- package/es/form/src/styles/form-item.cssr.js +39 -37
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.js +29 -18
- package/es/form/styles/_common.d.ts +0 -3
- package/es/form/styles/_common.js +0 -3
- package/es/form/styles/light.d.ts +3 -3
- package/es/form/styles/light.js +2 -2
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/gradient-text/src/GradientText.js +5 -5
- package/es/gradient-text/src/styles/index.cssr.js +9 -9
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon/src/Icon.js +4 -4
- package/es/icon/src/styles/index.cssr.js +7 -7
- package/es/image/src/Image.d.ts +279 -10
- package/es/image/src/Image.js +4 -17
- package/es/image/src/ImageGroup.d.ts +272 -2
- package/es/image/src/ImageGroup.js +5 -8
- package/es/image/src/ImagePreview.d.ts +195 -7
- package/es/image/src/ImagePreview.js +62 -42
- package/es/image/src/interface.d.ts +94 -0
- package/es/image/src/interface.js +2 -1
- package/es/image/src/styles/index.cssr.js +11 -7
- package/es/image/styles/dark.js +8 -1
- package/es/image/styles/light.d.ts +32 -3
- package/es/image/styles/light.js +8 -1
- package/es/input/src/Input.d.ts +52 -47
- package/es/input/src/Input.js +54 -49
- package/es/input/src/InputGroupLabel.d.ts +8 -8
- package/es/input/src/InputGroupLabel.js +8 -8
- package/es/input/src/styles/input-group-label.cssr.js +18 -18
- package/es/input/src/styles/input.cssr.js +108 -109
- package/es/input-number/src/InputNumber.d.ts +11 -0
- package/es/input-number/src/InputNumber.js +5 -2
- package/es/input-number/src/utils.js +2 -1
- package/es/layout/src/Layout.d.ts +6 -6
- package/es/layout/src/Layout.js +3 -3
- package/es/layout/src/LayoutContent.d.ts +3 -3
- package/es/layout/src/LayoutFooter.js +7 -7
- package/es/layout/src/LayoutHeader.js +7 -7
- package/es/layout/src/LayoutSider.js +13 -13
- package/es/layout/src/styles/layout-footer.cssr.js +11 -11
- package/es/layout/src/styles/layout-header.cssr.js +11 -11
- package/es/layout/src/styles/layout-sider.cssr.js +32 -32
- package/es/layout/src/styles/layout.cssr.js +8 -8
- package/es/list/src/List.d.ts +10 -10
- package/es/list/src/List.js +10 -10
- package/es/list/src/styles/index.cssr.js +30 -30
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +3 -3
- package/es/loading-bar/src/styles/index.cssr.js +7 -7
- package/es/locales/common/deDE.js +10 -0
- package/es/locales/common/enUS.d.ts +9 -0
- package/es/locales/common/enUS.js +10 -0
- package/es/locales/common/frFR.js +17 -8
- package/es/locales/common/idID.js +10 -0
- package/es/locales/common/jaJP.js +10 -0
- package/es/locales/common/nbNO.js +10 -0
- package/es/locales/common/ruRU.js +10 -0
- package/es/locales/common/ukUA.js +10 -0
- package/es/locales/common/zhCN.js +9 -0
- package/es/locales/common/zhTW.js +10 -0
- package/es/log/src/Log.d.ts +6 -6
- package/es/log/src/Log.js +6 -6
- package/es/log/src/styles/index.cssr.js +16 -18
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/Mention.js +1 -1
- package/es/mention/src/styles/index.cssr.js +2 -2
- package/es/mention/src/utils.js +0 -1
- package/es/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/index.d.ts +2 -1
- package/es/message/src/Message.d.ts +213 -41
- package/es/message/src/Message.js +35 -33
- package/es/message/src/MessageEnvironment.d.ts +3 -3
- package/es/message/src/MessageProvider.d.ts +5 -10
- package/es/message/src/MessageProvider.js +1 -1
- package/es/message/src/message-props.d.ts +5 -2
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/message/src/types.d.ts +15 -0
- package/es/message/src/types.js +1 -0
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +19 -8
- package/es/modal/src/Modal.js +15 -8
- package/es/modal/src/presetProps.d.ts +2 -1
- package/es/modal/src/styles/index.cssr.js +8 -8
- package/es/notification/src/Notification.d.ts +24 -24
- package/es/notification/src/Notification.js +24 -24
- package/es/notification/src/styles/index.cssr.js +65 -65
- package/es/number-animation/index.d.ts +3 -0
- package/es/number-animation/index.js +1 -0
- package/es/number-animation/src/NumberAnimation.d.ts +79 -0
- package/es/number-animation/src/NumberAnimation.js +81 -0
- package/es/number-animation/src/utils.d.ts +8 -0
- package/es/number-animation/src/utils.js +17 -0
- package/es/page-header/index.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +11 -11
- package/es/page-header/src/PageHeader.js +10 -10
- package/es/page-header/src/styles/index.cssr.js +23 -23
- package/es/pagination/index.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +50 -45
- package/es/pagination/src/Pagination.js +118 -64
- package/es/pagination/src/interface.d.ts +10 -1
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/pagination/src/utils.d.ts +2 -2
- package/es/pagination/src/utils.js +2 -4
- package/es/popconfirm/src/Popconfirm.d.ts +7 -2
- package/es/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/es/popconfirm/src/PopconfirmPanel.js +4 -4
- package/es/popconfirm/src/styles/index.cssr.js +8 -8
- package/es/popover/src/Popover.d.ts +7 -0
- package/es/popover/src/Popover.js +24 -1
- package/es/popover/src/PopoverBody.d.ts +5 -0
- package/es/popover/src/PopoverBody.js +43 -61
- package/es/popover/src/styles/index.cssr.js +63 -62
- package/es/popselect/src/Popselect.d.ts +62 -73
- package/es/popselect/src/Popselect.js +2 -2
- package/es/progress/src/Circle.d.ts +7 -0
- package/es/progress/src/Circle.js +8 -1
- package/es/progress/src/Line.d.ts +2 -2
- package/es/progress/src/Line.js +4 -1
- package/es/progress/src/Progress.d.ts +20 -16
- package/es/progress/src/Progress.js +16 -16
- package/es/progress/src/styles/index.cssr.js +68 -68
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +15 -15
- package/es/radio/src/RadioGroup.d.ts +14 -14
- package/es/radio/src/RadioGroup.js +14 -14
- package/es/radio/src/styles/radio-group.cssr.js +43 -43
- package/es/radio/src/styles/radio.cssr.js +40 -37
- package/es/rate/src/Rate.d.ts +4 -4
- package/es/rate/src/Rate.js +4 -4
- package/es/rate/src/styles/index.cssr.js +11 -11
- package/es/result/src/Result.d.ts +9 -9
- package/es/result/src/Result.js +18 -19
- package/es/result/src/styles/index.cssr.js +26 -26
- package/es/select/src/Select.d.ts +9 -28
- package/es/select/src/Select.js +17 -25
- package/es/select/src/styles/index.cssr.js +2 -2
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/src/Skeleton.js +3 -3
- package/es/skeleton/src/styles/index.cssr.js +12 -12
- package/es/slider/src/Slider.d.ts +31 -33
- package/es/slider/src/Slider.js +29 -29
- package/es/slider/src/styles/index.cssr.js +87 -87
- package/es/spin/src/Spin.d.ts +5 -5
- package/es/spin/src/Spin.js +5 -5
- package/es/spin/src/styles/index.cssr.js +15 -15
- package/es/statistic/src/Statistic.d.ts +25 -45
- package/es/statistic/src/Statistic.js +12 -19
- package/es/statistic/src/styles/index.cssr.js +19 -19
- package/es/steps/src/Step.d.ts +12 -12
- package/es/steps/src/Step.js +12 -12
- package/es/steps/src/styles/index.cssr.js +46 -46
- package/es/switch/src/Switch.d.ts +19 -19
- package/es/switch/src/Switch.js +26 -19
- package/es/switch/src/styles/index.cssr.js +59 -57
- package/es/table/src/Table.d.ts +21 -21
- package/es/table/src/Table.js +21 -21
- package/es/table/src/styles/index.cssr.js +55 -55
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +25 -22
- package/es/tabs/src/interface.d.ts +3 -0
- package/es/tabs/src/styles/index.cssr.js +4 -1
- package/es/tabs/styles/light.js +1 -1
- package/es/tag/src/Tag.d.ts +27 -26
- package/es/tag/src/Tag.js +27 -26
- package/es/tag/src/styles/index.cssr.js +54 -54
- package/es/tag/src/styles/rtl.cssr.js +1 -1
- package/es/thing/src/Thing.js +5 -5
- package/es/thing/src/styles/index.cssr.js +11 -11
- package/es/time-picker/src/TimePicker.d.ts +41 -21
- package/es/time-picker/src/TimePicker.js +76 -46
- package/es/time-picker/src/interface.d.ts +4 -2
- package/es/time-picker/src/styles/index.cssr.js +47 -47
- package/es/timeline/src/TimelineItem.d.ts +12 -12
- package/es/timeline/src/TimelineItem.js +12 -12
- package/es/timeline/src/styles/index.cssr.js +44 -44
- package/es/tooltip/src/Tooltip.d.ts +5 -0
- package/es/transfer/src/Transfer.d.ts +21 -21
- package/es/transfer/src/Transfer.js +21 -21
- package/es/transfer/src/TransferList.js +5 -7
- package/es/transfer/src/styles/index.cssr.js +47 -42
- package/es/tree/src/Tree.d.ts +16 -12
- package/es/tree/src/Tree.js +15 -13
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.js +25 -14
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +37 -35
- package/es/tree-select/src/TreeSelect.d.ts +8 -8
- package/es/tree-select/src/TreeSelect.js +8 -8
- package/es/tree-select/src/styles/index.cssr.js +18 -18
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/a.js +2 -2
- package/es/typography/src/blockquote.d.ts +5 -5
- package/es/typography/src/blockquote.js +5 -5
- package/es/typography/src/create-header.d.ts +8 -8
- package/es/typography/src/create-header.js +8 -8
- package/es/typography/src/headers.d.ts +48 -48
- package/es/typography/src/hr.d.ts +2 -1
- package/es/typography/src/hr.js +3 -1
- package/es/typography/src/ol.d.ts +7 -7
- package/es/typography/src/ol.js +7 -7
- package/es/typography/src/p.d.ts +5 -5
- package/es/typography/src/p.js +5 -5
- package/es/typography/src/styles/a.cssr.js +6 -6
- package/es/typography/src/styles/blockquote.cssr.js +11 -11
- package/es/typography/src/styles/header.cssr.js +19 -19
- package/es/typography/src/styles/hr.cssr.js +3 -3
- package/es/typography/src/styles/list.cssr.js +15 -15
- package/es/typography/src/styles/p.cssr.js +10 -10
- package/es/typography/src/styles/text.cssr.js +18 -18
- package/es/typography/src/text.d.ts +8 -7
- package/es/typography/src/text.js +9 -8
- package/es/typography/src/ul.d.ts +7 -7
- package/es/typography/src/ul.js +7 -7
- package/es/upload/src/Upload.d.ts +16 -7
- package/es/upload/src/Upload.js +34 -25
- package/es/upload/src/UploadFile.d.ts +5 -5
- package/es/upload/src/UploadFileList.js +2 -2
- package/es/upload/src/interface.d.ts +11 -4
- package/es/upload/src/styles/index.cssr.js +36 -36
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/clear/src/styles/index.cssr.js +10 -10
- package/lib/_internal/close/src/styles/index.cssr.js +9 -10
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/icons/Switcher.js +2 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +6 -17
- package/lib/_internal/scrollbar/src/ScrollBar.js +14 -16
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +15 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +21 -21
- package/lib/_internal/select-menu/src/SelectMenu.js +21 -21
- package/lib/_internal/select-menu/src/styles/index.cssr.js +35 -35
- package/lib/_internal/select-menu/styles/_common.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +44 -44
- package/lib/_internal/selection/src/Selection.js +44 -44
- package/lib/_internal/selection/src/styles/index.cssr.js +79 -79
- package/lib/_internal/selection/styles/_common.js +1 -1
- package/lib/_mixins/common.d.ts +1 -0
- package/lib/_mixins/common.js +4 -0
- package/lib/_mixins/index.d.ts +1 -0
- package/lib/_mixins/index.js +3 -1
- package/lib/_mixins/use-css-vars-class.d.ts +2 -0
- package/lib/_mixins/use-css-vars-class.js +29 -0
- package/lib/_mixins/use-rtl.js +2 -0
- package/lib/_mixins/use-style.js +3 -0
- package/lib/_mixins/use-theme.js +3 -0
- package/lib/_utils/composable/use-houdini.js +12 -9
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -14
- package/lib/auto-complete/src/AutoComplete.js +16 -18
- package/lib/auto-complete/src/styles/index.cssr.js +4 -4
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/index.js +3 -1
- package/lib/avatar/src/Avatar.d.ts +72 -33
- package/lib/avatar/src/Avatar.js +45 -16
- package/lib/avatar/src/AvatarGroup.d.ts +52 -0
- package/lib/avatar/src/AvatarGroup.js +67 -0
- package/lib/avatar/src/interface.d.ts +2 -0
- package/lib/avatar/src/interface.js +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.d.ts +2 -0
- package/lib/avatar/src/styles/avatar-group.cssr.js +21 -0
- package/lib/avatar/src/styles/index.cssr.js +19 -14
- package/lib/avatar/styles/light.d.ts +3 -0
- package/lib/avatar/styles/light.js +6 -2
- package/lib/back-top/src/BackTop.d.ts +16 -16
- package/lib/back-top/src/BackTop.js +13 -13
- package/lib/back-top/src/styles/index.cssr.js +29 -29
- package/lib/badge/src/Badge.d.ts +6 -6
- package/lib/badge/src/Badge.js +6 -6
- package/lib/badge/src/styles/index.cssr.js +15 -15
- package/lib/breadcrumb/src/Breadcrumb.d.ts +8 -8
- package/lib/breadcrumb/src/Breadcrumb.js +8 -8
- package/lib/breadcrumb/src/styles/index.cssr.js +23 -23
- package/lib/button/src/Button.d.ts +10 -5
- package/lib/button/src/Button.js +20 -13
- package/lib/calendar/src/Calendar.d.ts +26 -22
- package/lib/calendar/src/Calendar.js +36 -24
- package/lib/calendar/src/interface.d.ts +4 -0
- package/lib/calendar/src/styles/index.cssr.js +57 -57
- package/lib/card/src/Card.d.ts +28 -23
- package/lib/card/src/Card.js +24 -23
- package/lib/card/src/styles/index.cssr.js +71 -69
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +3 -1
- package/lib/carousel/src/Carousel.d.ts +239 -23
- package/lib/carousel/src/Carousel.js +686 -232
- package/lib/carousel/src/CarouselArrow.d.ts +9 -0
- package/lib/carousel/src/CarouselArrow.js +45 -0
- package/lib/carousel/src/CarouselDots.d.ts +66 -0
- package/lib/carousel/src/CarouselDots.js +120 -0
- package/lib/carousel/src/CarouselItem.d.ts +11 -0
- package/lib/carousel/src/CarouselItem.js +74 -0
- package/lib/carousel/src/interface.d.ts +28 -0
- package/lib/carousel/src/interface.js +6 -0
- package/lib/carousel/src/styles/index.cssr.js +150 -47
- package/lib/carousel/src/utils.d.ts +12 -0
- package/lib/carousel/src/utils.js +69 -0
- package/lib/carousel/styles/light.d.ts +3 -0
- package/lib/carousel/styles/light.js +5 -2
- package/lib/cascader/src/Cascader.d.ts +31 -19
- package/lib/cascader/src/Cascader.js +31 -20
- package/lib/cascader/src/CascaderMenu.js +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +7 -4
- package/lib/cascader/src/interface.d.ts +2 -1
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/light.js +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +23 -23
- package/lib/checkbox/src/Checkbox.js +23 -23
- package/lib/checkbox/src/styles/index.cssr.js +59 -59
- package/lib/code/src/Code.d.ts +19 -14
- package/lib/code/src/Code.js +32 -20
- package/lib/code/src/styles/index.cssr.js +29 -29
- package/lib/collapse/src/Collapse.d.ts +8 -8
- package/lib/collapse/src/Collapse.js +8 -8
- package/lib/collapse/src/styles/index.cssr.js +24 -24
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +23 -15
- package/lib/color-picker/src/ColorPicker.js +29 -20
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.js +22 -16
- package/lib/color-picker/src/interface.d.ts +2 -0
- package/lib/color-picker/src/styles/index.cssr.js +29 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -0
- package/lib/countdown/index.d.ts +2 -0
- package/lib/countdown/index.js +8 -0
- package/lib/countdown/src/Countdown.d.ts +72 -0
- package/lib/countdown/src/Countdown.js +128 -0
- package/lib/countdown/src/utils.d.ts +0 -0
- package/lib/countdown/src/utils.js +1 -0
- package/lib/data-table/src/DataTable.d.ts +49 -94
- package/lib/data-table/src/DataTable.js +63 -89
- package/lib/data-table/src/TableParts/Body.js +7 -5
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +1 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -130
- package/lib/data-table/src/utils.js +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +71 -67
- package/lib/date-picker/src/DatePicker.js +143 -93
- package/lib/date-picker/src/interface.d.ts +17 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -9
- package/lib/date-picker/src/panel/daterange.d.ts +4 -9
- package/lib/date-picker/src/panel/datetime.d.ts +4 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -9
- package/lib/date-picker/src/panel/month.d.ts +4 -9
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-calendar.js +8 -7
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -5
- package/lib/date-picker/src/panel/use-dual-calendar.js +12 -13
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -5
- package/lib/date-picker/src/panel/use-panel-common.js +2 -6
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/descriptions/src/Descriptions.d.ts +18 -18
- package/lib/descriptions/src/Descriptions.js +19 -20
- package/lib/descriptions/src/styles/index.cssr.js +61 -61
- package/lib/dialog/src/Dialog.d.ts +24 -24
- package/lib/dialog/src/Dialog.js +22 -22
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +45 -45
- package/lib/divider/src/Divider.d.ts +4 -4
- package/lib/divider/src/Divider.js +4 -4
- package/lib/divider/src/styles/index.cssr.js +12 -12
- package/lib/drawer/src/Drawer.d.ts +37 -77
- package/lib/drawer/src/Drawer.js +49 -66
- package/lib/drawer/src/DrawerBodyWrapper.js +21 -13
- package/lib/drawer/src/DrawerContent.js +6 -6
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- package/lib/dropdown/src/Dropdown.d.ts +5 -0
- package/lib/dropdown/src/Dropdown.js +34 -32
- package/lib/dropdown/src/styles/index.cssr.js +59 -59
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.js +1 -1
- package/lib/dynamic-tags/src/styles/index.cssr.js +1 -1
- package/lib/empty/src/Empty.d.ts +19 -15
- package/lib/empty/src/Empty.js +12 -12
- package/lib/empty/src/styles/index.cssr.js +19 -18
- package/lib/form/src/Feedbacks.js +4 -1
- package/lib/form/src/Form.d.ts +34 -34
- package/lib/form/src/Form.js +16 -7
- package/lib/form/src/FormItem.d.ts +54 -49
- package/lib/form/src/FormItem.js +38 -26
- package/lib/form/src/FormItemCol.d.ts +41 -31
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +41 -31
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +40 -30
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/interface.d.ts +6 -2
- package/lib/form/src/styles/form-item.cssr.js +39 -37
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/form/src/utils.js +29 -18
- package/lib/form/styles/_common.d.ts +0 -3
- package/lib/form/styles/_common.js +0 -3
- package/lib/form/styles/light.d.ts +3 -3
- package/lib/form/styles/light.js +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/gradient-text/src/GradientText.js +5 -5
- package/lib/gradient-text/src/styles/index.cssr.js +9 -9
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon/src/Icon.js +4 -4
- package/lib/icon/src/styles/index.cssr.js +7 -7
- package/lib/image/src/Image.d.ts +279 -10
- package/lib/image/src/Image.js +4 -17
- package/lib/image/src/ImageGroup.d.ts +272 -2
- package/lib/image/src/ImageGroup.js +4 -7
- package/lib/image/src/ImagePreview.d.ts +195 -7
- package/lib/image/src/ImagePreview.js +60 -40
- package/lib/image/src/interface.d.ts +94 -0
- package/lib/image/src/interface.js +3 -0
- package/lib/image/src/styles/index.cssr.js +11 -7
- package/lib/image/styles/dark.js +8 -1
- package/lib/image/styles/light.d.ts +32 -3
- package/lib/image/styles/light.js +8 -1
- package/lib/input/src/Input.d.ts +52 -47
- package/lib/input/src/Input.js +54 -49
- package/lib/input/src/InputGroupLabel.d.ts +8 -8
- package/lib/input/src/InputGroupLabel.js +8 -8
- package/lib/input/src/styles/input-group-label.cssr.js +18 -18
- package/lib/input/src/styles/input.cssr.js +108 -109
- package/lib/input-number/src/InputNumber.d.ts +11 -0
- package/lib/input-number/src/InputNumber.js +5 -2
- package/lib/input-number/src/utils.js +2 -1
- package/lib/layout/src/Layout.d.ts +6 -6
- package/lib/layout/src/Layout.js +3 -3
- package/lib/layout/src/LayoutContent.d.ts +3 -3
- package/lib/layout/src/LayoutFooter.js +7 -7
- package/lib/layout/src/LayoutHeader.js +7 -7
- package/lib/layout/src/LayoutSider.js +13 -13
- package/lib/layout/src/styles/layout-footer.cssr.js +11 -11
- package/lib/layout/src/styles/layout-header.cssr.js +11 -11
- package/lib/layout/src/styles/layout-sider.cssr.js +32 -32
- package/lib/layout/src/styles/layout.cssr.js +8 -8
- package/lib/list/src/List.d.ts +10 -10
- package/lib/list/src/List.js +10 -10
- package/lib/list/src/styles/index.cssr.js +30 -30
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +3 -3
- package/lib/loading-bar/src/styles/index.cssr.js +7 -7
- package/lib/locales/common/deDE.js +10 -0
- package/lib/locales/common/enUS.d.ts +9 -0
- package/lib/locales/common/enUS.js +10 -0
- package/lib/locales/common/frFR.js +17 -8
- package/lib/locales/common/idID.js +10 -0
- package/lib/locales/common/jaJP.js +10 -0
- package/lib/locales/common/nbNO.js +10 -0
- package/lib/locales/common/ruRU.js +10 -0
- package/lib/locales/common/ukUA.js +10 -0
- package/lib/locales/common/zhCN.js +9 -0
- package/lib/locales/common/zhTW.js +10 -0
- package/lib/log/src/Log.d.ts +6 -6
- package/lib/log/src/Log.js +6 -6
- package/lib/log/src/styles/index.cssr.js +16 -18
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/Mention.js +1 -1
- package/lib/mention/src/styles/index.cssr.js +2 -2
- package/lib/mention/src/utils.js +0 -1
- package/lib/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/index.d.ts +2 -1
- package/lib/message/src/Message.d.ts +213 -41
- package/lib/message/src/Message.js +35 -33
- package/lib/message/src/MessageEnvironment.d.ts +3 -3
- package/lib/message/src/MessageProvider.d.ts +5 -10
- package/lib/message/src/MessageProvider.js +1 -1
- package/lib/message/src/message-props.d.ts +5 -2
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/message/src/types.d.ts +15 -0
- package/lib/message/src/types.js +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +19 -8
- package/lib/modal/src/Modal.js +15 -8
- package/lib/modal/src/presetProps.d.ts +2 -1
- package/lib/modal/src/styles/index.cssr.js +8 -8
- package/lib/notification/src/Notification.d.ts +24 -24
- package/lib/notification/src/Notification.js +24 -24
- package/lib/notification/src/styles/index.cssr.js +65 -65
- package/lib/number-animation/index.d.ts +3 -0
- package/lib/number-animation/index.js +8 -0
- package/lib/number-animation/src/NumberAnimation.d.ts +79 -0
- package/lib/number-animation/src/NumberAnimation.js +83 -0
- package/lib/number-animation/src/utils.d.ts +8 -0
- package/lib/number-animation/src/utils.js +21 -0
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +11 -11
- package/lib/page-header/src/PageHeader.js +10 -10
- package/lib/page-header/src/styles/index.cssr.js +23 -23
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +50 -45
- package/lib/pagination/src/Pagination.js +117 -63
- package/lib/pagination/src/interface.d.ts +10 -1
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/pagination/src/utils.d.ts +2 -2
- package/lib/pagination/src/utils.js +2 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +7 -2
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +4 -4
- package/lib/popconfirm/src/PopconfirmPanel.js +4 -4
- package/lib/popconfirm/src/styles/index.cssr.js +8 -8
- package/lib/popover/src/Popover.d.ts +7 -0
- package/lib/popover/src/Popover.js +23 -0
- package/lib/popover/src/PopoverBody.d.ts +5 -0
- package/lib/popover/src/PopoverBody.js +42 -60
- package/lib/popover/src/styles/index.cssr.js +63 -62
- package/lib/popselect/src/Popselect.d.ts +62 -73
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/progress/src/Circle.d.ts +7 -0
- package/lib/progress/src/Circle.js +8 -1
- package/lib/progress/src/Line.d.ts +2 -2
- package/lib/progress/src/Line.js +4 -1
- package/lib/progress/src/Progress.d.ts +20 -16
- package/lib/progress/src/Progress.js +16 -16
- package/lib/progress/src/styles/index.cssr.js +68 -68
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +15 -15
- package/lib/radio/src/RadioGroup.d.ts +14 -14
- package/lib/radio/src/RadioGroup.js +14 -14
- package/lib/radio/src/styles/radio-group.cssr.js +43 -43
- package/lib/radio/src/styles/radio.cssr.js +40 -37
- package/lib/rate/src/Rate.d.ts +4 -4
- package/lib/rate/src/Rate.js +4 -4
- package/lib/rate/src/styles/index.cssr.js +11 -11
- package/lib/result/src/Result.d.ts +9 -9
- package/lib/result/src/Result.js +17 -18
- package/lib/result/src/styles/index.cssr.js +26 -26
- package/lib/select/src/Select.d.ts +9 -28
- package/lib/select/src/Select.js +15 -23
- package/lib/select/src/styles/index.cssr.js +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/src/Skeleton.js +3 -3
- package/lib/skeleton/src/styles/index.cssr.js +12 -12
- package/lib/slider/src/Slider.d.ts +31 -33
- package/lib/slider/src/Slider.js +29 -29
- package/lib/slider/src/styles/index.cssr.js +87 -87
- package/lib/spin/src/Spin.d.ts +5 -5
- package/lib/spin/src/Spin.js +5 -5
- package/lib/spin/src/styles/index.cssr.js +15 -15
- package/lib/statistic/src/Statistic.d.ts +25 -45
- package/lib/statistic/src/Statistic.js +12 -19
- package/lib/statistic/src/styles/index.cssr.js +19 -19
- package/lib/steps/src/Step.d.ts +12 -12
- package/lib/steps/src/Step.js +12 -12
- package/lib/steps/src/styles/index.cssr.js +46 -46
- package/lib/switch/src/Switch.d.ts +19 -19
- package/lib/switch/src/Switch.js +26 -19
- package/lib/switch/src/styles/index.cssr.js +59 -57
- package/lib/table/src/Table.d.ts +21 -21
- package/lib/table/src/Table.js +21 -21
- package/lib/table/src/styles/index.cssr.js +55 -55
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +25 -22
- package/lib/tabs/src/interface.d.ts +3 -0
- package/lib/tabs/src/styles/index.cssr.js +4 -1
- package/lib/tabs/styles/light.js +1 -1
- package/lib/tag/src/Tag.d.ts +27 -26
- package/lib/tag/src/Tag.js +27 -26
- package/lib/tag/src/styles/index.cssr.js +54 -54
- package/lib/tag/src/styles/rtl.cssr.js +1 -1
- package/lib/thing/src/Thing.js +5 -5
- package/lib/thing/src/styles/index.cssr.js +11 -11
- package/lib/time-picker/src/TimePicker.d.ts +41 -21
- package/lib/time-picker/src/TimePicker.js +76 -46
- package/lib/time-picker/src/interface.d.ts +4 -2
- package/lib/time-picker/src/styles/index.cssr.js +47 -47
- package/lib/timeline/src/TimelineItem.d.ts +12 -12
- package/lib/timeline/src/TimelineItem.js +12 -12
- package/lib/timeline/src/styles/index.cssr.js +44 -44
- package/lib/tooltip/src/Tooltip.d.ts +5 -0
- package/lib/transfer/src/Transfer.d.ts +21 -21
- package/lib/transfer/src/Transfer.js +21 -21
- package/lib/transfer/src/TransferList.js +5 -7
- package/lib/transfer/src/styles/index.cssr.js +47 -42
- package/lib/tree/src/Tree.d.ts +16 -12
- package/lib/tree/src/Tree.js +15 -13
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.js +24 -13
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +37 -35
- package/lib/tree-select/src/TreeSelect.d.ts +8 -8
- package/lib/tree-select/src/TreeSelect.js +8 -8
- package/lib/tree-select/src/styles/index.cssr.js +18 -18
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/a.js +2 -2
- package/lib/typography/src/blockquote.d.ts +5 -5
- package/lib/typography/src/blockquote.js +5 -5
- package/lib/typography/src/create-header.d.ts +8 -8
- package/lib/typography/src/create-header.js +8 -8
- package/lib/typography/src/headers.d.ts +48 -48
- package/lib/typography/src/hr.d.ts +2 -1
- package/lib/typography/src/hr.js +3 -1
- package/lib/typography/src/ol.d.ts +7 -7
- package/lib/typography/src/ol.js +7 -7
- package/lib/typography/src/p.d.ts +5 -5
- package/lib/typography/src/p.js +5 -5
- package/lib/typography/src/styles/a.cssr.js +6 -6
- package/lib/typography/src/styles/blockquote.cssr.js +11 -11
- package/lib/typography/src/styles/header.cssr.js +19 -19
- package/lib/typography/src/styles/hr.cssr.js +3 -3
- package/lib/typography/src/styles/list.cssr.js +15 -15
- package/lib/typography/src/styles/p.cssr.js +10 -10
- package/lib/typography/src/styles/text.cssr.js +18 -18
- package/lib/typography/src/text.d.ts +8 -7
- package/lib/typography/src/text.js +9 -8
- package/lib/typography/src/ul.d.ts +7 -7
- package/lib/typography/src/ul.js +7 -7
- package/lib/upload/src/Upload.d.ts +16 -7
- package/lib/upload/src/Upload.js +34 -25
- package/lib/upload/src/UploadFile.d.ts +5 -5
- package/lib/upload/src/UploadFileList.js +2 -2
- package/lib/upload/src/interface.d.ts +11 -4
- package/lib/upload/src/styles/index.cssr.js +36 -36
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +52 -43
- package/web-types.json +648 -43
package/lib/image/src/Image.js
CHANGED
|
@@ -7,24 +7,11 @@ const vue_1 = require("vue");
|
|
|
7
7
|
const ImagePreview_1 = __importDefault(require("./ImagePreview"));
|
|
8
8
|
const ImageGroup_1 = require("./ImageGroup");
|
|
9
9
|
const _mixins_1 = require("../../_mixins");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
height: [String, Number],
|
|
13
|
-
imgProps: Object,
|
|
14
|
-
objectFit: {
|
|
10
|
+
const interface_1 = require("./interface");
|
|
11
|
+
const imageProps = Object.assign({ alt: String, height: [String, Number], imgProps: Object, objectFit: {
|
|
15
12
|
type: String,
|
|
16
13
|
default: 'fill'
|
|
17
|
-
},
|
|
18
|
-
previewSrc: String,
|
|
19
|
-
fallbackSrc: String,
|
|
20
|
-
width: [String, Number],
|
|
21
|
-
src: String,
|
|
22
|
-
showToolbar: { type: Boolean, default: true },
|
|
23
|
-
previewDisabled: Boolean,
|
|
24
|
-
loadDescription: String,
|
|
25
|
-
onError: Function,
|
|
26
|
-
onLoad: Function
|
|
27
|
-
};
|
|
14
|
+
}, previewSrc: String, fallbackSrc: String, width: [String, Number], src: String, previewDisabled: Boolean, loadDescription: String, onError: Function, onLoad: Function }, interface_1.imagePreviewSharedProps);
|
|
28
15
|
exports.default = (0, vue_1.defineComponent)({
|
|
29
16
|
name: 'Image',
|
|
30
17
|
props: imageProps,
|
|
@@ -81,7 +68,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
81
68
|
`${mergedClsPrefix}-image`,
|
|
82
69
|
(this.previewDisabled || this.showError) &&
|
|
83
70
|
`${mergedClsPrefix}-image--preview-disabled`
|
|
84
|
-
] }), this.groupId ? (imgNode) : ((0, vue_1.h)(ImagePreview_1.default, { clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar }, {
|
|
71
|
+
] }), this.groupId ? (imgNode) : ((0, vue_1.h)(ImagePreview_1.default, { theme: this.theme, themeOverrides: this.themeOverrides, clsPrefix: mergedClsPrefix, ref: "previewInstRef", showToolbar: this.showToolbar, showToolbarTooltip: this.showToolbarTooltip }, {
|
|
85
72
|
default: () => imgNode
|
|
86
73
|
}))));
|
|
87
74
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey, Ref } from 'vue';
|
|
2
|
-
import type { ImagePreviewInst } from './ImagePreview';
|
|
3
2
|
import { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import type { ImagePreviewInst } from './ImagePreview';
|
|
4
4
|
export declare const imageGroupInjectionKey: InjectionKey<ImagePreviewInst & {
|
|
5
5
|
groupId: string;
|
|
6
6
|
mergedClsPrefixRef: Ref<string>;
|
|
@@ -10,6 +10,94 @@ declare const imageGroupProps: {
|
|
|
10
10
|
type: BooleanConstructor;
|
|
11
11
|
default: boolean;
|
|
12
12
|
};
|
|
13
|
+
showToolbarTooltip: BooleanConstructor;
|
|
14
|
+
theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
|
|
15
|
+
toolbarIconColor: string;
|
|
16
|
+
toolbarColor: string;
|
|
17
|
+
toolbarBoxShadow: string;
|
|
18
|
+
toolbarBorderRadius: string;
|
|
19
|
+
}, {
|
|
20
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
21
|
+
borderRadius: string;
|
|
22
|
+
boxShadow: string;
|
|
23
|
+
color: string;
|
|
24
|
+
textColor: string;
|
|
25
|
+
padding: string;
|
|
26
|
+
}, {
|
|
27
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
28
|
+
fontSize: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
color: string;
|
|
31
|
+
dividerColor: string;
|
|
32
|
+
textColor: string;
|
|
33
|
+
boxShadow: string;
|
|
34
|
+
space: string;
|
|
35
|
+
spaceArrow: string;
|
|
36
|
+
arrowOffset: string;
|
|
37
|
+
arrowOffsetVertical: string;
|
|
38
|
+
arrowHeight: string;
|
|
39
|
+
padding: string;
|
|
40
|
+
}, any>;
|
|
41
|
+
}>;
|
|
42
|
+
}>>;
|
|
43
|
+
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
44
|
+
toolbarIconColor: string;
|
|
45
|
+
toolbarColor: string;
|
|
46
|
+
toolbarBoxShadow: string;
|
|
47
|
+
toolbarBorderRadius: string;
|
|
48
|
+
}, {
|
|
49
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
50
|
+
borderRadius: string;
|
|
51
|
+
boxShadow: string;
|
|
52
|
+
color: string;
|
|
53
|
+
textColor: string;
|
|
54
|
+
padding: string;
|
|
55
|
+
}, {
|
|
56
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
57
|
+
fontSize: string;
|
|
58
|
+
borderRadius: string;
|
|
59
|
+
color: string;
|
|
60
|
+
dividerColor: string;
|
|
61
|
+
textColor: string;
|
|
62
|
+
boxShadow: string;
|
|
63
|
+
space: string;
|
|
64
|
+
spaceArrow: string;
|
|
65
|
+
arrowOffset: string;
|
|
66
|
+
arrowOffsetVertical: string;
|
|
67
|
+
arrowHeight: string;
|
|
68
|
+
padding: string;
|
|
69
|
+
}, any>;
|
|
70
|
+
}>;
|
|
71
|
+
}>>>;
|
|
72
|
+
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
73
|
+
toolbarIconColor: string;
|
|
74
|
+
toolbarColor: string;
|
|
75
|
+
toolbarBoxShadow: string;
|
|
76
|
+
toolbarBorderRadius: string;
|
|
77
|
+
}, {
|
|
78
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
79
|
+
borderRadius: string;
|
|
80
|
+
boxShadow: string;
|
|
81
|
+
color: string;
|
|
82
|
+
textColor: string;
|
|
83
|
+
padding: string;
|
|
84
|
+
}, {
|
|
85
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
86
|
+
fontSize: string;
|
|
87
|
+
borderRadius: string;
|
|
88
|
+
color: string;
|
|
89
|
+
dividerColor: string;
|
|
90
|
+
textColor: string;
|
|
91
|
+
boxShadow: string;
|
|
92
|
+
space: string;
|
|
93
|
+
spaceArrow: string;
|
|
94
|
+
arrowOffset: string;
|
|
95
|
+
arrowOffsetVertical: string;
|
|
96
|
+
arrowHeight: string;
|
|
97
|
+
padding: string;
|
|
98
|
+
}, any>;
|
|
99
|
+
}>;
|
|
100
|
+
}>>>;
|
|
13
101
|
};
|
|
14
102
|
export declare type ImageGroupProps = ExtractPublicPropTypes<typeof imageGroupProps>;
|
|
15
103
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -17,6 +105,94 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
105
|
type: BooleanConstructor;
|
|
18
106
|
default: boolean;
|
|
19
107
|
};
|
|
108
|
+
showToolbarTooltip: BooleanConstructor;
|
|
109
|
+
theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
|
|
110
|
+
toolbarIconColor: string;
|
|
111
|
+
toolbarColor: string;
|
|
112
|
+
toolbarBoxShadow: string;
|
|
113
|
+
toolbarBorderRadius: string;
|
|
114
|
+
}, {
|
|
115
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
116
|
+
borderRadius: string;
|
|
117
|
+
boxShadow: string;
|
|
118
|
+
color: string;
|
|
119
|
+
textColor: string;
|
|
120
|
+
padding: string;
|
|
121
|
+
}, {
|
|
122
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
123
|
+
fontSize: string;
|
|
124
|
+
borderRadius: string;
|
|
125
|
+
color: string;
|
|
126
|
+
dividerColor: string;
|
|
127
|
+
textColor: string;
|
|
128
|
+
boxShadow: string;
|
|
129
|
+
space: string;
|
|
130
|
+
spaceArrow: string;
|
|
131
|
+
arrowOffset: string;
|
|
132
|
+
arrowOffsetVertical: string;
|
|
133
|
+
arrowHeight: string;
|
|
134
|
+
padding: string;
|
|
135
|
+
}, any>;
|
|
136
|
+
}>;
|
|
137
|
+
}>>;
|
|
138
|
+
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
139
|
+
toolbarIconColor: string;
|
|
140
|
+
toolbarColor: string;
|
|
141
|
+
toolbarBoxShadow: string;
|
|
142
|
+
toolbarBorderRadius: string;
|
|
143
|
+
}, {
|
|
144
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
145
|
+
borderRadius: string;
|
|
146
|
+
boxShadow: string;
|
|
147
|
+
color: string;
|
|
148
|
+
textColor: string;
|
|
149
|
+
padding: string;
|
|
150
|
+
}, {
|
|
151
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
152
|
+
fontSize: string;
|
|
153
|
+
borderRadius: string;
|
|
154
|
+
color: string;
|
|
155
|
+
dividerColor: string;
|
|
156
|
+
textColor: string;
|
|
157
|
+
boxShadow: string;
|
|
158
|
+
space: string;
|
|
159
|
+
spaceArrow: string;
|
|
160
|
+
arrowOffset: string;
|
|
161
|
+
arrowOffsetVertical: string;
|
|
162
|
+
arrowHeight: string;
|
|
163
|
+
padding: string;
|
|
164
|
+
}, any>;
|
|
165
|
+
}>;
|
|
166
|
+
}>>>;
|
|
167
|
+
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
168
|
+
toolbarIconColor: string;
|
|
169
|
+
toolbarColor: string;
|
|
170
|
+
toolbarBoxShadow: string;
|
|
171
|
+
toolbarBorderRadius: string;
|
|
172
|
+
}, {
|
|
173
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
174
|
+
borderRadius: string;
|
|
175
|
+
boxShadow: string;
|
|
176
|
+
color: string;
|
|
177
|
+
textColor: string;
|
|
178
|
+
padding: string;
|
|
179
|
+
}, {
|
|
180
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
181
|
+
fontSize: string;
|
|
182
|
+
borderRadius: string;
|
|
183
|
+
color: string;
|
|
184
|
+
dividerColor: string;
|
|
185
|
+
textColor: string;
|
|
186
|
+
boxShadow: string;
|
|
187
|
+
space: string;
|
|
188
|
+
spaceArrow: string;
|
|
189
|
+
arrowOffset: string;
|
|
190
|
+
arrowOffsetVertical: string;
|
|
191
|
+
arrowHeight: string;
|
|
192
|
+
padding: string;
|
|
193
|
+
}, any>;
|
|
194
|
+
}>;
|
|
195
|
+
}>>>;
|
|
20
196
|
}, {
|
|
21
197
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
22
198
|
previewInstRef: Ref<{
|
|
@@ -28,9 +204,103 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
28
204
|
prev: () => void;
|
|
29
205
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
30
206
|
showToolbar?: unknown;
|
|
207
|
+
showToolbarTooltip?: unknown;
|
|
208
|
+
theme?: unknown;
|
|
209
|
+
themeOverrides?: unknown;
|
|
210
|
+
builtinThemeOverrides?: unknown;
|
|
31
211
|
} & {
|
|
32
212
|
showToolbar: boolean;
|
|
33
|
-
|
|
213
|
+
showToolbarTooltip: boolean;
|
|
214
|
+
} & {
|
|
215
|
+
theme?: import("../../_mixins").Theme<"Image", {
|
|
216
|
+
toolbarIconColor: string;
|
|
217
|
+
toolbarColor: string;
|
|
218
|
+
toolbarBoxShadow: string;
|
|
219
|
+
toolbarBorderRadius: string;
|
|
220
|
+
}, {
|
|
221
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
222
|
+
borderRadius: string;
|
|
223
|
+
boxShadow: string;
|
|
224
|
+
color: string;
|
|
225
|
+
textColor: string;
|
|
226
|
+
padding: string;
|
|
227
|
+
}, {
|
|
228
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
229
|
+
fontSize: string;
|
|
230
|
+
borderRadius: string;
|
|
231
|
+
color: string;
|
|
232
|
+
dividerColor: string;
|
|
233
|
+
textColor: string;
|
|
234
|
+
boxShadow: string;
|
|
235
|
+
space: string;
|
|
236
|
+
spaceArrow: string;
|
|
237
|
+
arrowOffset: string;
|
|
238
|
+
arrowOffsetVertical: string;
|
|
239
|
+
arrowHeight: string;
|
|
240
|
+
padding: string;
|
|
241
|
+
}, any>;
|
|
242
|
+
}>;
|
|
243
|
+
}> | undefined;
|
|
244
|
+
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
245
|
+
toolbarIconColor: string;
|
|
246
|
+
toolbarColor: string;
|
|
247
|
+
toolbarBoxShadow: string;
|
|
248
|
+
toolbarBorderRadius: string;
|
|
249
|
+
}, {
|
|
250
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
251
|
+
borderRadius: string;
|
|
252
|
+
boxShadow: string;
|
|
253
|
+
color: string;
|
|
254
|
+
textColor: string;
|
|
255
|
+
padding: string;
|
|
256
|
+
}, {
|
|
257
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
258
|
+
fontSize: string;
|
|
259
|
+
borderRadius: string;
|
|
260
|
+
color: string;
|
|
261
|
+
dividerColor: string;
|
|
262
|
+
textColor: string;
|
|
263
|
+
boxShadow: string;
|
|
264
|
+
space: string;
|
|
265
|
+
spaceArrow: string;
|
|
266
|
+
arrowOffset: string;
|
|
267
|
+
arrowOffsetVertical: string;
|
|
268
|
+
arrowHeight: string;
|
|
269
|
+
padding: string;
|
|
270
|
+
}, any>;
|
|
271
|
+
}>;
|
|
272
|
+
}>> | undefined;
|
|
273
|
+
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
274
|
+
toolbarIconColor: string;
|
|
275
|
+
toolbarColor: string;
|
|
276
|
+
toolbarBoxShadow: string;
|
|
277
|
+
toolbarBorderRadius: string;
|
|
278
|
+
}, {
|
|
279
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
280
|
+
borderRadius: string;
|
|
281
|
+
boxShadow: string;
|
|
282
|
+
color: string;
|
|
283
|
+
textColor: string;
|
|
284
|
+
padding: string;
|
|
285
|
+
}, {
|
|
286
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
287
|
+
fontSize: string;
|
|
288
|
+
borderRadius: string;
|
|
289
|
+
color: string;
|
|
290
|
+
dividerColor: string;
|
|
291
|
+
textColor: string;
|
|
292
|
+
boxShadow: string;
|
|
293
|
+
space: string;
|
|
294
|
+
spaceArrow: string;
|
|
295
|
+
arrowOffset: string;
|
|
296
|
+
arrowOffsetVertical: string;
|
|
297
|
+
arrowHeight: string;
|
|
298
|
+
padding: string;
|
|
299
|
+
}, any>;
|
|
300
|
+
}>;
|
|
301
|
+
}>> | undefined;
|
|
302
|
+
}>, {
|
|
34
303
|
showToolbar: boolean;
|
|
304
|
+
showToolbarTooltip: boolean;
|
|
35
305
|
}>;
|
|
36
306
|
export default _default;
|
|
@@ -6,12 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.imageGroupInjectionKey = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const seemly_1 = require("seemly");
|
|
9
|
-
const ImagePreview_1 = __importDefault(require("./ImagePreview"));
|
|
10
9
|
const _mixins_1 = require("../../_mixins");
|
|
10
|
+
const ImagePreview_1 = __importDefault(require("./ImagePreview"));
|
|
11
|
+
const interface_1 = require("./interface");
|
|
11
12
|
exports.imageGroupInjectionKey = Symbol('image-group');
|
|
12
|
-
const imageGroupProps =
|
|
13
|
-
showToolbar: { type: Boolean, default: true }
|
|
14
|
-
};
|
|
13
|
+
const imageGroupProps = interface_1.imagePreviewSharedProps;
|
|
15
14
|
exports.default = (0, vue_1.defineComponent)({
|
|
16
15
|
name: 'ImageGroup',
|
|
17
16
|
props: imageGroupProps,
|
|
@@ -63,8 +62,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
63
62
|
};
|
|
64
63
|
},
|
|
65
64
|
render() {
|
|
66
|
-
return ((0, vue_1.h)(ImagePreview_1.default, { clsPrefix: this.mergedClsPrefix, ref: "previewInstRef", onPrev: this.prev, onNext: this.next, showToolbar: this.showToolbar },
|
|
67
|
-
default: () => (0, vue_1.renderSlot)(this.$slots, 'default')
|
|
68
|
-
}));
|
|
65
|
+
return ((0, vue_1.h)(ImagePreview_1.default, { theme: this.theme, themeOverrides: this.themeOverrides, clsPrefix: this.mergedClsPrefix, ref: "previewInstRef", onPrev: this.prev, onNext: this.next, showToolbar: this.showToolbar, showToolbarTooltip: this.showToolbarTooltip }, this.$slots));
|
|
69
66
|
}
|
|
70
67
|
});
|
|
@@ -1,22 +1,109 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
2
|
export interface ImagePreviewInst {
|
|
3
3
|
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
4
4
|
setPreviewSrc: (src?: string) => void;
|
|
5
5
|
toggleShow: () => void;
|
|
6
6
|
}
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
|
-
showToolbar: BooleanConstructor;
|
|
9
8
|
onNext: PropType<() => void>;
|
|
10
9
|
onPrev: PropType<() => void>;
|
|
11
10
|
clsPrefix: {
|
|
12
11
|
type: StringConstructor;
|
|
13
12
|
required: true;
|
|
14
13
|
};
|
|
14
|
+
showToolbar: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
showToolbarTooltip: BooleanConstructor;
|
|
19
|
+
theme: PropType<import("../../_mixins").Theme<"Image", {
|
|
20
|
+
toolbarIconColor: string;
|
|
21
|
+
toolbarColor: string;
|
|
22
|
+
toolbarBoxShadow: string;
|
|
23
|
+
toolbarBorderRadius: string;
|
|
24
|
+
}, {
|
|
25
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
boxShadow: string;
|
|
28
|
+
color: string;
|
|
29
|
+
textColor: string;
|
|
30
|
+
padding: string;
|
|
31
|
+
}, {
|
|
32
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
33
|
+
fontSize: string;
|
|
34
|
+
borderRadius: string;
|
|
35
|
+
color: string;
|
|
36
|
+
dividerColor: string;
|
|
37
|
+
textColor: string;
|
|
38
|
+
boxShadow: string;
|
|
39
|
+
space: string;
|
|
40
|
+
spaceArrow: string;
|
|
41
|
+
arrowOffset: string;
|
|
42
|
+
arrowOffsetVertical: string;
|
|
43
|
+
arrowHeight: string;
|
|
44
|
+
padding: string;
|
|
45
|
+
}, any>;
|
|
46
|
+
}>;
|
|
47
|
+
}>>;
|
|
48
|
+
themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
49
|
+
toolbarIconColor: string;
|
|
50
|
+
toolbarColor: string;
|
|
51
|
+
toolbarBoxShadow: string;
|
|
52
|
+
toolbarBorderRadius: string;
|
|
53
|
+
}, {
|
|
54
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
55
|
+
borderRadius: string;
|
|
56
|
+
boxShadow: string;
|
|
57
|
+
color: string;
|
|
58
|
+
textColor: string;
|
|
59
|
+
padding: string;
|
|
60
|
+
}, {
|
|
61
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
62
|
+
fontSize: string;
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
color: string;
|
|
65
|
+
dividerColor: string;
|
|
66
|
+
textColor: string;
|
|
67
|
+
boxShadow: string;
|
|
68
|
+
space: string;
|
|
69
|
+
spaceArrow: string;
|
|
70
|
+
arrowOffset: string;
|
|
71
|
+
arrowOffsetVertical: string;
|
|
72
|
+
arrowHeight: string;
|
|
73
|
+
padding: string;
|
|
74
|
+
}, any>;
|
|
75
|
+
}>;
|
|
76
|
+
}>>>;
|
|
77
|
+
builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
78
|
+
toolbarIconColor: string;
|
|
79
|
+
toolbarColor: string;
|
|
80
|
+
toolbarBoxShadow: string;
|
|
81
|
+
toolbarBorderRadius: string;
|
|
82
|
+
}, {
|
|
83
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
84
|
+
borderRadius: string;
|
|
85
|
+
boxShadow: string;
|
|
86
|
+
color: string;
|
|
87
|
+
textColor: string;
|
|
88
|
+
padding: string;
|
|
89
|
+
}, {
|
|
90
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
91
|
+
fontSize: string;
|
|
92
|
+
borderRadius: string;
|
|
93
|
+
color: string;
|
|
94
|
+
dividerColor: string;
|
|
95
|
+
textColor: string;
|
|
96
|
+
boxShadow: string;
|
|
97
|
+
space: string;
|
|
98
|
+
spaceArrow: string;
|
|
99
|
+
arrowOffset: string;
|
|
100
|
+
arrowOffsetVertical: string;
|
|
101
|
+
arrowHeight: string;
|
|
102
|
+
padding: string;
|
|
103
|
+
}, any>;
|
|
104
|
+
}>;
|
|
105
|
+
}>>>;
|
|
15
106
|
}, {
|
|
16
|
-
cssVars: import("vue").ComputedRef<{
|
|
17
|
-
'--bezier': string;
|
|
18
|
-
'--icon-color': string;
|
|
19
|
-
}>;
|
|
20
107
|
setThumbnailEl: (e: HTMLImageElement | null) => void;
|
|
21
108
|
setPreviewSrc: (src?: string | undefined) => void;
|
|
22
109
|
toggleShow: () => void;
|
|
@@ -37,18 +124,119 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
124
|
rotateClockwise: () => void;
|
|
38
125
|
handleSwitchPrev: () => void;
|
|
39
126
|
handleSwitchNext: () => void;
|
|
127
|
+
withTooltip: (node: VNode, tooltipKey: "tipPrevious" | "tipNext" | "tipCounterclockwise" | "tipClockwise" | "tipZoomOut" | "tipZoomIn" | "tipClose") => VNode;
|
|
128
|
+
cssVars: import("vue").ComputedRef<{
|
|
129
|
+
'--n-bezier': string;
|
|
130
|
+
'--n-toolbar-icon-color': string;
|
|
131
|
+
'--n-toolbar-color': string;
|
|
132
|
+
'--n-toolbar-border-radius': string;
|
|
133
|
+
'--n-toolbar-box-shadow': string;
|
|
134
|
+
}>;
|
|
40
135
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
41
|
-
showToolbar?: unknown;
|
|
42
136
|
onNext?: unknown;
|
|
43
137
|
onPrev?: unknown;
|
|
44
138
|
clsPrefix?: unknown;
|
|
139
|
+
showToolbar?: unknown;
|
|
140
|
+
showToolbarTooltip?: unknown;
|
|
141
|
+
theme?: unknown;
|
|
142
|
+
themeOverrides?: unknown;
|
|
143
|
+
builtinThemeOverrides?: unknown;
|
|
45
144
|
} & {
|
|
46
145
|
clsPrefix: string;
|
|
47
146
|
showToolbar: boolean;
|
|
147
|
+
showToolbarTooltip: boolean;
|
|
48
148
|
} & {
|
|
149
|
+
theme?: import("../../_mixins").Theme<"Image", {
|
|
150
|
+
toolbarIconColor: string;
|
|
151
|
+
toolbarColor: string;
|
|
152
|
+
toolbarBoxShadow: string;
|
|
153
|
+
toolbarBorderRadius: string;
|
|
154
|
+
}, {
|
|
155
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
156
|
+
borderRadius: string;
|
|
157
|
+
boxShadow: string;
|
|
158
|
+
color: string;
|
|
159
|
+
textColor: string;
|
|
160
|
+
padding: string;
|
|
161
|
+
}, {
|
|
162
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
163
|
+
fontSize: string;
|
|
164
|
+
borderRadius: string;
|
|
165
|
+
color: string;
|
|
166
|
+
dividerColor: string;
|
|
167
|
+
textColor: string;
|
|
168
|
+
boxShadow: string;
|
|
169
|
+
space: string;
|
|
170
|
+
spaceArrow: string;
|
|
171
|
+
arrowOffset: string;
|
|
172
|
+
arrowOffsetVertical: string;
|
|
173
|
+
arrowHeight: string;
|
|
174
|
+
padding: string;
|
|
175
|
+
}, any>;
|
|
176
|
+
}>;
|
|
177
|
+
}> | undefined;
|
|
178
|
+
themeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
179
|
+
toolbarIconColor: string;
|
|
180
|
+
toolbarColor: string;
|
|
181
|
+
toolbarBoxShadow: string;
|
|
182
|
+
toolbarBorderRadius: string;
|
|
183
|
+
}, {
|
|
184
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
185
|
+
borderRadius: string;
|
|
186
|
+
boxShadow: string;
|
|
187
|
+
color: string;
|
|
188
|
+
textColor: string;
|
|
189
|
+
padding: string;
|
|
190
|
+
}, {
|
|
191
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
192
|
+
fontSize: string;
|
|
193
|
+
borderRadius: string;
|
|
194
|
+
color: string;
|
|
195
|
+
dividerColor: string;
|
|
196
|
+
textColor: string;
|
|
197
|
+
boxShadow: string;
|
|
198
|
+
space: string;
|
|
199
|
+
spaceArrow: string;
|
|
200
|
+
arrowOffset: string;
|
|
201
|
+
arrowOffsetVertical: string;
|
|
202
|
+
arrowHeight: string;
|
|
203
|
+
padding: string;
|
|
204
|
+
}, any>;
|
|
205
|
+
}>;
|
|
206
|
+
}>> | undefined;
|
|
207
|
+
builtinThemeOverrides?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
|
|
208
|
+
toolbarIconColor: string;
|
|
209
|
+
toolbarColor: string;
|
|
210
|
+
toolbarBoxShadow: string;
|
|
211
|
+
toolbarBorderRadius: string;
|
|
212
|
+
}, {
|
|
213
|
+
Tooltip: import("../../_mixins").Theme<"Tooltip", {
|
|
214
|
+
borderRadius: string;
|
|
215
|
+
boxShadow: string;
|
|
216
|
+
color: string;
|
|
217
|
+
textColor: string;
|
|
218
|
+
padding: string;
|
|
219
|
+
}, {
|
|
220
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
221
|
+
fontSize: string;
|
|
222
|
+
borderRadius: string;
|
|
223
|
+
color: string;
|
|
224
|
+
dividerColor: string;
|
|
225
|
+
textColor: string;
|
|
226
|
+
boxShadow: string;
|
|
227
|
+
space: string;
|
|
228
|
+
spaceArrow: string;
|
|
229
|
+
arrowOffset: string;
|
|
230
|
+
arrowOffsetVertical: string;
|
|
231
|
+
arrowHeight: string;
|
|
232
|
+
padding: string;
|
|
233
|
+
}, any>;
|
|
234
|
+
}>;
|
|
235
|
+
}>> | undefined;
|
|
49
236
|
onNext?: (() => void) | undefined;
|
|
50
237
|
onPrev?: (() => void) | undefined;
|
|
51
238
|
}>, {
|
|
52
239
|
showToolbar: boolean;
|
|
240
|
+
showToolbarTooltip: boolean;
|
|
53
241
|
}>;
|
|
54
242
|
export default _default;
|