naive-ui 2.21.5 → 2.23.2
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/es/_internal/clear/src/styles/index.cssr.js +10 -10
- package/es/_internal/close/src/styles/index.cssr.js +8 -8
- package/es/_internal/icons/Close.js +1 -1
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/es/_internal/scrollbar/src/ScrollBar.js +15 -11
- 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 +55 -53
- package/es/_internal/selection/src/styles/index.cssr.js +84 -80
- 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 +22 -22
- package/es/alert/src/Alert.js +22 -22
- package/es/alert/src/styles/index.cssr.js +45 -45
- package/es/anchor/src/AnchorAdapter.js +12 -12
- package/es/anchor/src/styles/index.cssr.js +41 -41
- package/es/auto-complete/src/AutoComplete.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.js +2 -2
- 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 +77 -36
- package/es/avatar/src/Avatar.js +46 -16
- 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 +21 -18
- 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 +13 -13
- 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 +43 -38
- package/es/button/src/Button.js +124 -116
- package/es/button/src/styles/button.cssr.js +83 -80
- package/es/button/styles/light.js +1 -1
- package/es/calendar/src/Calendar.d.ts +23 -21
- package/es/calendar/src/Calendar.js +21 -21
- 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/src/Carousel.d.ts +5 -5
- package/es/carousel/src/Carousel.js +5 -5
- package/es/carousel/src/styles/index.cssr.js +10 -10
- package/es/cascader/src/Cascader.d.ts +160 -17
- package/es/cascader/src/Cascader.js +32 -24
- package/es/cascader/src/CascaderMenu.d.ts +345 -0
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +18 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/es/cascader/src/styles/index.cssr.js +44 -44
- package/es/cascader/styles/dark.js +3 -1
- package/es/cascader/styles/light.d.ts +13 -0
- package/es/cascader/styles/light.js +4 -2
- 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 +58 -58
- package/es/code/src/Code.d.ts +14 -14
- package/es/code/src/Code.js +26 -17
- package/es/code/src/styles/index.cssr.js +28 -28
- 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/ColorPicker.d.ts +10 -10
- package/es/color-picker/src/ColorPicker.js +10 -10
- package/es/color-picker/src/styles/index.cssr.js +28 -28
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/ConfigProvider.d.ts +6 -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 +39 -39
- package/es/data-table/src/DataTable.js +49 -55
- package/es/data-table/src/MainTable.js +2 -3
- package/es/data-table/src/TableParts/Body.d.ts +15 -4
- package/es/data-table/src/TableParts/Body.js +82 -28
- package/es/data-table/src/TableParts/Cell.js +2 -3
- package/es/data-table/src/TableParts/Header.js +2 -2
- package/es/data-table/src/interface.d.ts +4 -1
- package/es/data-table/src/styles/index.cssr.js +133 -132
- package/es/data-table/src/use-check.js +6 -2
- package/es/data-table/src/use-scroll.d.ts +2 -0
- package/es/data-table/src/use-scroll.js +34 -4
- package/es/data-table/src/use-table-data.js +3 -1
- package/es/data-table/styles/_common.js +1 -1
- package/es/date-picker/src/DatePicker.d.ts +70 -46
- package/es/date-picker/src/DatePicker.js +61 -52
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +2 -1
- package/es/date-picker/src/panel/date.d.ts +13 -10
- package/es/date-picker/src/panel/date.js +2 -2
- package/es/date-picker/src/panel/daterange.d.ts +11 -9
- package/es/date-picker/src/panel/daterange.js +2 -2
- package/es/date-picker/src/panel/datetime.d.ts +13 -16
- package/es/date-picker/src/panel/datetime.js +2 -2
- package/es/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/es/date-picker/src/panel/datetimerange.js +2 -2
- package/es/date-picker/src/panel/month.d.ts +17 -20
- package/es/date-picker/src/panel/month.js +23 -12
- package/es/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/es/date-picker/src/panel/use-calendar.js +41 -23
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/es/date-picker/src/panel/use-dual-calendar.js +35 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/es/date-picker/src/panel/use-panel-common.js +4 -8
- package/es/date-picker/src/styles/index.cssr.js +115 -115
- package/es/date-picker/src/utils.d.ts +19 -3
- package/es/date-picker/src/utils.js +40 -5
- package/es/date-picker/styles/_common.d.ts +2 -0
- package/es/date-picker/styles/_common.js +3 -1
- package/es/date-picker/styles/light.d.ts +4 -0
- 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 +19 -19
- package/es/drawer/src/Drawer.js +19 -19
- package/es/drawer/src/styles/index.cssr.js +41 -40
- 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/Form.d.ts +27 -27
- package/es/form/src/FormItem.d.ts +42 -42
- package/es/form/src/FormItem.js +15 -15
- package/es/form/src/FormItemCol.d.ts +33 -27
- package/es/form/src/FormItemCol.js +1 -0
- package/es/form/src/FormItemGridItem.d.ts +33 -27
- package/es/form/src/FormItemGridItem.js +1 -0
- package/es/form/src/FormItemRow.d.ts +33 -27
- package/es/form/src/FormItemRow.js +1 -0
- package/es/form/src/styles/form-item.cssr.js +37 -37
- 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.js +8 -12
- package/es/image/src/ImagePreview.d.ts +2 -2
- package/es/image/src/ImagePreview.js +13 -12
- package/es/image/src/styles/index.cssr.js +5 -5
- 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 +2 -0
- package/es/locales/common/enUS.d.ts +2 -0
- package/es/locales/common/enUS.js +2 -0
- package/es/locales/common/frFR.js +7 -5
- package/es/locales/common/idID.js +2 -0
- package/es/locales/common/jaJP.js +2 -0
- package/es/locales/common/nbNO.js +2 -0
- package/es/locales/common/ruRU.js +2 -0
- package/es/locales/common/ukUA.js +2 -0
- package/es/locales/common/zhCN.js +2 -0
- package/es/locales/common/zhTW.d.ts +3 -0
- package/es/locales/common/zhTW.js +100 -0
- package/es/locales/date/zhTW.d.ts +3 -0
- package/es/locales/date/zhTW.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -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/menu/src/Menu.js +43 -40
- package/es/menu/src/styles/index.cssr.js +71 -71
- package/es/message/src/Message.d.ts +22 -22
- package/es/message/src/Message.js +22 -22
- package/es/message/src/styles/index.cssr.js +48 -48
- package/es/modal/src/BodyWrapper.d.ts +11 -2
- package/es/modal/src/BodyWrapper.js +23 -17
- package/es/modal/src/Modal.d.ts +14 -8
- package/es/modal/src/Modal.js +13 -7
- 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/src/PageHeader.d.ts +10 -10
- package/es/page-header/src/PageHeader.js +13 -13
- package/es/page-header/src/styles/index.cssr.js +25 -27
- package/es/pagination/src/Pagination.d.ts +42 -41
- package/es/pagination/src/Pagination.js +52 -45
- package/es/pagination/src/styles/index.cssr.js +81 -81
- package/es/popconfirm/src/Popconfirm.d.ts +2 -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.js +4 -1
- package/es/popover/src/PopoverBody.js +18 -18
- package/es/popover/src/styles/index.cssr.js +62 -62
- package/es/popselect/src/Popselect.d.ts +2 -11
- package/es/popselect/src/Popselect.js +2 -2
- package/es/popselect/src/PopselectPanel.d.ts +3 -11
- package/es/popselect/src/PopselectPanel.js +17 -11
- package/es/progress/src/Progress.d.ts +14 -14
- package/es/progress/src/Progress.js +14 -14
- package/es/progress/src/styles/index.cssr.js +53 -53
- package/es/radio/src/Radio.d.ts +15 -15
- package/es/radio/src/Radio.js +18 -18
- package/es/radio/src/RadioButton.js +4 -5
- 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 +51 -47
- package/es/radio/src/styles/radio.cssr.js +44 -40
- package/es/radio/src/use-radio.d.ts +0 -3
- package/es/radio/src/use-radio.js +1 -26
- 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 +9 -9
- package/es/result/src/styles/index.cssr.js +20 -20
- package/es/select/src/Select.d.ts +1 -1
- package/es/select/src/Select.js +1 -1
- 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 +29 -29
- 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/src/styles/index.cssr.js +5 -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 +55 -55
- 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 +19 -19
- package/es/time-picker/src/TimePicker.js +17 -17
- 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/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 +11 -11
- package/es/tree/src/Tree.js +11 -11
- package/es/tree/src/dnd.js +2 -2
- package/es/tree/src/styles/index.cssr.js +33 -33
- package/es/tree-select/src/TreeSelect.d.ts +43 -6
- package/es/tree-select/src/TreeSelect.js +29 -14
- package/es/tree-select/src/styles/index.cssr.js +20 -11
- package/es/tree-select/styles/light.d.ts +6 -0
- package/es/tree-select/styles/light.js +5 -2
- 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 +1 -1
- package/es/upload/src/Upload.js +16 -16
- 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 +8 -8
- package/lib/_internal/icons/Close.js +1 -1
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +10 -6
- package/lib/_internal/scrollbar/src/ScrollBar.js +15 -11
- 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 +55 -53
- package/lib/_internal/selection/src/styles/index.cssr.js +84 -80
- 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 +22 -22
- package/lib/alert/src/Alert.js +22 -22
- package/lib/alert/src/styles/index.cssr.js +45 -45
- package/lib/anchor/src/AnchorAdapter.js +12 -12
- package/lib/anchor/src/styles/index.cssr.js +41 -41
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- 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 +77 -36
- package/lib/avatar/src/Avatar.js +48 -17
- 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 +20 -17
- 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 +13 -13
- 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 +43 -38
- package/lib/button/src/Button.js +123 -115
- package/lib/button/src/styles/button.cssr.js +83 -80
- package/lib/button/styles/light.js +1 -1
- package/lib/calendar/src/Calendar.d.ts +23 -21
- package/lib/calendar/src/Calendar.js +21 -21
- 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/src/Carousel.d.ts +5 -5
- package/lib/carousel/src/Carousel.js +5 -5
- package/lib/carousel/src/styles/index.cssr.js +10 -10
- package/lib/cascader/src/Cascader.d.ts +160 -17
- package/lib/cascader/src/Cascader.js +32 -24
- package/lib/cascader/src/CascaderMenu.d.ts +345 -0
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +18 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +18 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +18 -0
- package/lib/cascader/src/styles/index.cssr.js +44 -44
- package/lib/cascader/styles/dark.js +3 -1
- package/lib/cascader/styles/light.d.ts +13 -0
- package/lib/cascader/styles/light.js +4 -2
- 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 +58 -58
- package/lib/code/src/Code.d.ts +14 -14
- package/lib/code/src/Code.js +26 -17
- package/lib/code/src/styles/index.cssr.js +28 -28
- 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/ColorPicker.d.ts +10 -10
- package/lib/color-picker/src/ColorPicker.js +10 -10
- package/lib/color-picker/src/styles/index.cssr.js +28 -28
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +6 -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 +39 -39
- package/lib/data-table/src/DataTable.js +48 -54
- package/lib/data-table/src/MainTable.js +1 -2
- package/lib/data-table/src/TableParts/Body.d.ts +15 -4
- package/lib/data-table/src/TableParts/Body.js +80 -26
- package/lib/data-table/src/TableParts/Cell.js +2 -3
- package/lib/data-table/src/TableParts/Header.js +2 -2
- package/lib/data-table/src/interface.d.ts +4 -1
- package/lib/data-table/src/styles/index.cssr.js +133 -132
- package/lib/data-table/src/use-check.js +6 -2
- package/lib/data-table/src/use-scroll.d.ts +2 -0
- package/lib/data-table/src/use-scroll.js +34 -4
- package/lib/data-table/src/use-table-data.js +3 -1
- package/lib/data-table/styles/_common.js +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +70 -46
- package/lib/date-picker/src/DatePicker.js +61 -52
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +2 -1
- package/lib/date-picker/src/panel/date.d.ts +13 -10
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +11 -9
- package/lib/date-picker/src/panel/daterange.js +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +13 -16
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +11 -9
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +17 -20
- package/lib/date-picker/src/panel/month.js +23 -12
- package/lib/date-picker/src/panel/use-calendar.d.ts +13 -39
- package/lib/date-picker/src/panel/use-calendar.js +40 -21
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -36
- package/lib/date-picker/src/panel/use-dual-calendar.js +34 -19
- package/lib/date-picker/src/panel/use-panel-common.d.ts +9 -32
- package/lib/date-picker/src/panel/use-panel-common.js +5 -8
- package/lib/date-picker/src/styles/index.cssr.js +115 -115
- package/lib/date-picker/src/utils.d.ts +19 -3
- package/lib/date-picker/src/utils.js +41 -4
- package/lib/date-picker/styles/_common.d.ts +2 -0
- package/lib/date-picker/styles/_common.js +3 -1
- package/lib/date-picker/styles/light.d.ts +4 -0
- 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 +19 -19
- package/lib/drawer/src/Drawer.js +19 -19
- package/lib/drawer/src/styles/index.cssr.js +41 -40
- 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/Form.d.ts +27 -27
- package/lib/form/src/FormItem.d.ts +42 -42
- package/lib/form/src/FormItem.js +15 -15
- package/lib/form/src/FormItemCol.d.ts +33 -27
- package/lib/form/src/FormItemCol.js +1 -0
- package/lib/form/src/FormItemGridItem.d.ts +33 -27
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +33 -27
- package/lib/form/src/FormItemRow.js +1 -0
- package/lib/form/src/styles/form-item.cssr.js +37 -37
- 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.js +7 -11
- package/lib/image/src/ImagePreview.d.ts +2 -2
- package/lib/image/src/ImagePreview.js +12 -11
- package/lib/image/src/styles/index.cssr.js +5 -5
- 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 +2 -0
- package/lib/locales/common/enUS.d.ts +2 -0
- package/lib/locales/common/enUS.js +2 -0
- package/lib/locales/common/frFR.js +7 -5
- package/lib/locales/common/idID.js +2 -0
- package/lib/locales/common/jaJP.js +2 -0
- package/lib/locales/common/nbNO.js +2 -0
- package/lib/locales/common/ruRU.js +2 -0
- package/lib/locales/common/ukUA.js +2 -0
- package/lib/locales/common/zhCN.js +2 -0
- package/lib/locales/common/zhTW.d.ts +3 -0
- package/lib/locales/common/zhTW.js +102 -0
- package/lib/locales/date/zhTW.d.ts +3 -0
- package/lib/locales/date/zhTW.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- 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/menu/src/Menu.js +43 -40
- package/lib/menu/src/styles/index.cssr.js +71 -71
- package/lib/message/src/Message.d.ts +22 -22
- package/lib/message/src/Message.js +22 -22
- package/lib/message/src/styles/index.cssr.js +48 -48
- package/lib/modal/src/BodyWrapper.d.ts +11 -2
- package/lib/modal/src/BodyWrapper.js +23 -17
- package/lib/modal/src/Modal.d.ts +14 -8
- package/lib/modal/src/Modal.js +13 -7
- 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/src/PageHeader.d.ts +10 -10
- package/lib/page-header/src/PageHeader.js +13 -13
- package/lib/page-header/src/styles/index.cssr.js +25 -27
- package/lib/pagination/src/Pagination.d.ts +42 -41
- package/lib/pagination/src/Pagination.js +52 -45
- package/lib/pagination/src/styles/index.cssr.js +81 -81
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -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.js +4 -1
- package/lib/popover/src/PopoverBody.js +18 -18
- package/lib/popover/src/styles/index.cssr.js +62 -62
- package/lib/popselect/src/Popselect.d.ts +2 -11
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +3 -11
- package/lib/popselect/src/PopselectPanel.js +16 -10
- package/lib/progress/src/Progress.d.ts +14 -14
- package/lib/progress/src/Progress.js +14 -14
- package/lib/progress/src/styles/index.cssr.js +53 -53
- package/lib/radio/src/Radio.d.ts +15 -15
- package/lib/radio/src/Radio.js +18 -18
- package/lib/radio/src/RadioButton.js +4 -5
- 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 +51 -47
- package/lib/radio/src/styles/radio.cssr.js +44 -40
- package/lib/radio/src/use-radio.d.ts +0 -3
- package/lib/radio/src/use-radio.js +1 -26
- 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 +9 -9
- package/lib/result/src/styles/index.cssr.js +20 -20
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/select/src/Select.js +1 -1
- 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 +29 -29
- 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/src/styles/index.cssr.js +5 -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 +55 -55
- 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 +19 -19
- package/lib/time-picker/src/TimePicker.js +17 -17
- 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/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 +11 -11
- package/lib/tree/src/Tree.js +11 -11
- package/lib/tree/src/dnd.js +2 -2
- package/lib/tree/src/styles/index.cssr.js +33 -33
- package/lib/tree-select/src/TreeSelect.d.ts +43 -6
- package/lib/tree-select/src/TreeSelect.js +28 -13
- package/lib/tree-select/src/styles/index.cssr.js +20 -11
- package/lib/tree-select/styles/light.d.ts +6 -0
- package/lib/tree-select/styles/light.js +5 -2
- 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 +1 -1
- package/lib/upload/src/Upload.js +16 -16
- 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 +38 -36
- package/web-types.json +252 -11
|
@@ -57,7 +57,7 @@ const cascaderProps = Object.assign(Object.assign({}, useTheme.props), { to: use
|
|
|
57
57
|
}, childrenField: {
|
|
58
58
|
type: String,
|
|
59
59
|
default: 'children'
|
|
60
|
-
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onBlur: Function, onFocus: Function,
|
|
60
|
+
}, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onBlur: Function, onFocus: Function,
|
|
61
61
|
// deprecated
|
|
62
62
|
onChange: [Function, Array] });
|
|
63
63
|
// TODO refactor cascader menu keyboard scroll (use virtual list)
|
|
@@ -161,6 +161,16 @@ export default defineComponent({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
+
function doUpdateShow(value) {
|
|
165
|
+
const { onUpdateShow, 'onUpdate:show': _onUpdateShow } = props;
|
|
166
|
+
if (onUpdateShow) {
|
|
167
|
+
call(onUpdateShow, value);
|
|
168
|
+
}
|
|
169
|
+
if (_onUpdateShow) {
|
|
170
|
+
call(_onUpdateShow, value);
|
|
171
|
+
}
|
|
172
|
+
uncontrolledShowRef.value = value;
|
|
173
|
+
}
|
|
164
174
|
function doUpdateValue(value, option, optionPath) {
|
|
165
175
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue, onChange } = props;
|
|
166
176
|
const { nTriggerFormInput, nTriggerFormChange } = formItem;
|
|
@@ -334,7 +344,7 @@ export default defineComponent({
|
|
|
334
344
|
function openMenu() {
|
|
335
345
|
if (!mergedDisabledRef.value) {
|
|
336
346
|
patternRef.value = '';
|
|
337
|
-
|
|
347
|
+
doUpdateShow(true);
|
|
338
348
|
if (props.filterable) {
|
|
339
349
|
focusSelectionInput();
|
|
340
350
|
}
|
|
@@ -344,7 +354,7 @@ export default defineComponent({
|
|
|
344
354
|
if (returnFocus) {
|
|
345
355
|
focusSelection();
|
|
346
356
|
}
|
|
347
|
-
|
|
357
|
+
doUpdateShow(false);
|
|
348
358
|
patternRef.value = '';
|
|
349
359
|
}
|
|
350
360
|
function handleCascaderMenuClickOutside(e) {
|
|
@@ -695,29 +705,29 @@ export default defineComponent({
|
|
|
695
705
|
cssVars: computed(() => {
|
|
696
706
|
const { self: { optionArrowColor, optionTextColor, optionTextColorActive, optionTextColorDisabled, optionCheckMarkColor, menuColor, menuBoxShadow, menuDividerColor, menuBorderRadius, menuHeight, optionColorHover, optionHeight, optionFontSize, loadingColor, columnWidth }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
697
707
|
return {
|
|
698
|
-
'--bezier': cubicBezierEaseInOut,
|
|
699
|
-
'--menu-border-radius': menuBorderRadius,
|
|
700
|
-
'--menu-box-shadow': menuBoxShadow,
|
|
701
|
-
'--menu-height': menuHeight,
|
|
702
|
-
'--column-width': columnWidth,
|
|
703
|
-
'--menu-color': menuColor,
|
|
704
|
-
'--menu-divider-color': menuDividerColor,
|
|
705
|
-
'--option-height': optionHeight,
|
|
706
|
-
'--option-font-size': optionFontSize,
|
|
707
|
-
'--option-text-color': optionTextColor,
|
|
708
|
-
'--option-text-color-disabled': optionTextColorDisabled,
|
|
709
|
-
'--option-text-color-active': optionTextColorActive,
|
|
710
|
-
'--option-color-hover': optionColorHover,
|
|
711
|
-
'--option-check-mark-color': optionCheckMarkColor,
|
|
712
|
-
'--option-arrow-color': optionArrowColor,
|
|
713
|
-
'--menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
|
|
714
|
-
'--loading-color': loadingColor
|
|
708
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
709
|
+
'--n-menu-border-radius': menuBorderRadius,
|
|
710
|
+
'--n-menu-box-shadow': menuBoxShadow,
|
|
711
|
+
'--n-menu-height': menuHeight,
|
|
712
|
+
'--n-column-width': columnWidth,
|
|
713
|
+
'--n-menu-color': menuColor,
|
|
714
|
+
'--n-menu-divider-color': menuDividerColor,
|
|
715
|
+
'--n-option-height': optionHeight,
|
|
716
|
+
'--n-option-font-size': optionFontSize,
|
|
717
|
+
'--n-option-text-color': optionTextColor,
|
|
718
|
+
'--n-option-text-color-disabled': optionTextColorDisabled,
|
|
719
|
+
'--n-option-text-color-active': optionTextColorActive,
|
|
720
|
+
'--n-option-color-hover': optionColorHover,
|
|
721
|
+
'--n-option-check-mark-color': optionCheckMarkColor,
|
|
722
|
+
'--n-option-arrow-color': optionArrowColor,
|
|
723
|
+
'--n-menu-mask-color': changeColor(menuColor, { alpha: 0.75 }),
|
|
724
|
+
'--n-loading-color': loadingColor
|
|
715
725
|
};
|
|
716
726
|
})
|
|
717
727
|
};
|
|
718
728
|
},
|
|
719
729
|
render() {
|
|
720
|
-
const { mergedClsPrefix } = this;
|
|
730
|
+
const { mergedClsPrefix, $slots } = this;
|
|
721
731
|
return (h("div", { class: `${mergedClsPrefix}-cascader` },
|
|
722
732
|
h(VBinder, null, {
|
|
723
733
|
default: () => [
|
|
@@ -725,9 +735,7 @@ export default defineComponent({
|
|
|
725
735
|
default: () => (h(NInternalSelection, { ref: "triggerInstRef", clsPrefix: mergedClsPrefix, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, active: this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, focused: this.focused, onFocus: this.handleTriggerFocus, onBlur: this.handleTriggerBlur, onClick: this.handleTriggerClick, onClear: this.handleClear, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onKeydown: this.handleKeyDown, onKeyup: this.handleKeyUp }))
|
|
726
736
|
}),
|
|
727
737
|
h(VFollower, { key: "cascaderMenu", ref: "cascaderMenuFollowerRef", show: this.mergedShow && !this.showSelectMenu, containerClass: this.namespace, placement: "bottom-start", width: !this.options.length ? 'target' : undefined, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, to: this.adjustedTo }, {
|
|
728
|
-
default: () => (h(CascaderMenu, { ref: "cascaderMenuInstRef", value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout },
|
|
729
|
-
action: this.$slots.action
|
|
730
|
-
}))
|
|
738
|
+
default: () => (h(CascaderMenu, { ref: "cascaderMenuInstRef", value: this.mergedValue, show: this.mergedShow && !this.showSelectMenu, menuModel: this.menuModel, style: this.cssVars, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeyup: this.handleMenuKeyUp, onMousedown: this.handleMenuMousedown, onTabout: this.handleMenuTabout }, $slots))
|
|
731
739
|
}),
|
|
732
740
|
h(VFollower, { key: "selectMenu", ref: "selectMenuFollowerRef", show: this.mergedShow && this.showSelectMenu, containerClass: this.namespace, width: "target", placement: "bottom-start", to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey }, {
|
|
733
741
|
default: () => (h(CascaderSelectMenu, { ref: "selectMenuInstRef", value: this.mergedValue, show: this.mergedShow && this.showSelectMenu, pattern: this.pattern, multiple: this.multiple, tmNodes: this.treeMate.treeNodes, filter: this.filter, labelField: this.labelField, separator: this.separator, style: this.cssVars }))
|
|
@@ -43,6 +43,351 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
maskInstRef: import("vue").Ref<{
|
|
44
44
|
showOnce: (message: string, duration?: number | undefined) => void;
|
|
45
45
|
} | null>;
|
|
46
|
+
mergedTheme: import("vue").Ref<{
|
|
47
|
+
common: {
|
|
48
|
+
baseColor: string;
|
|
49
|
+
primaryColor: string;
|
|
50
|
+
primaryColorHover: string;
|
|
51
|
+
primaryColorPressed: string;
|
|
52
|
+
primaryColorSuppl: string;
|
|
53
|
+
infoColor: string;
|
|
54
|
+
infoColorHover: string;
|
|
55
|
+
infoColorPressed: string;
|
|
56
|
+
infoColorSuppl: string;
|
|
57
|
+
successColor: string;
|
|
58
|
+
successColorHover: string;
|
|
59
|
+
successColorPressed: string;
|
|
60
|
+
successColorSuppl: string;
|
|
61
|
+
warningColor: string;
|
|
62
|
+
warningColorHover: string;
|
|
63
|
+
warningColorPressed: string;
|
|
64
|
+
warningColorSuppl: string;
|
|
65
|
+
errorColor: string;
|
|
66
|
+
errorColorHover: string;
|
|
67
|
+
errorColorPressed: string;
|
|
68
|
+
errorColorSuppl: string;
|
|
69
|
+
textColorBase: string;
|
|
70
|
+
textColor1: string;
|
|
71
|
+
textColor2: string;
|
|
72
|
+
textColor3: string;
|
|
73
|
+
textColorDisabled: string;
|
|
74
|
+
placeholderColor: string;
|
|
75
|
+
placeholderColorDisabled: string;
|
|
76
|
+
iconColor: string;
|
|
77
|
+
iconColorHover: string;
|
|
78
|
+
iconColorPressed: string;
|
|
79
|
+
iconColorDisabled: string;
|
|
80
|
+
opacity1: string;
|
|
81
|
+
opacity2: string;
|
|
82
|
+
opacity3: string;
|
|
83
|
+
opacity4: string;
|
|
84
|
+
opacity5: string;
|
|
85
|
+
dividerColor: string;
|
|
86
|
+
borderColor: string;
|
|
87
|
+
closeColor: string;
|
|
88
|
+
closeColorHover: string;
|
|
89
|
+
closeColorPressed: string;
|
|
90
|
+
closeColorDisabled: string;
|
|
91
|
+
clearColor: string;
|
|
92
|
+
clearColorHover: string;
|
|
93
|
+
clearColorPressed: string;
|
|
94
|
+
scrollbarColor: string;
|
|
95
|
+
scrollbarColorHover: string;
|
|
96
|
+
scrollbarWidth: string;
|
|
97
|
+
scrollbarHeight: string;
|
|
98
|
+
scrollbarBorderRadius: string;
|
|
99
|
+
progressRailColor: string;
|
|
100
|
+
railColor: string;
|
|
101
|
+
popoverColor: string;
|
|
102
|
+
tableColor: string;
|
|
103
|
+
cardColor: string;
|
|
104
|
+
modalColor: string;
|
|
105
|
+
bodyColor: string;
|
|
106
|
+
tagColor: string;
|
|
107
|
+
avatarColor: string;
|
|
108
|
+
invertedColor: string;
|
|
109
|
+
inputColor: string;
|
|
110
|
+
codeColor: string;
|
|
111
|
+
tabColor: string;
|
|
112
|
+
actionColor: string;
|
|
113
|
+
tableHeaderColor: string;
|
|
114
|
+
hoverColor: string;
|
|
115
|
+
tableColorHover: string;
|
|
116
|
+
tableColorStriped: string;
|
|
117
|
+
pressedColor: string;
|
|
118
|
+
opacityDisabled: string;
|
|
119
|
+
inputColorDisabled: string;
|
|
120
|
+
buttonColor2: string;
|
|
121
|
+
buttonColor2Hover: string;
|
|
122
|
+
buttonColor2Pressed: string;
|
|
123
|
+
boxShadow1: string;
|
|
124
|
+
boxShadow2: string;
|
|
125
|
+
boxShadow3: string;
|
|
126
|
+
fontFamily: string;
|
|
127
|
+
fontFamilyMono: string;
|
|
128
|
+
fontWeight: string;
|
|
129
|
+
fontWeightStrong: string;
|
|
130
|
+
cubicBezierEaseInOut: string;
|
|
131
|
+
cubicBezierEaseOut: string;
|
|
132
|
+
cubicBezierEaseIn: string;
|
|
133
|
+
borderRadius: string;
|
|
134
|
+
borderRadiusSmall: string;
|
|
135
|
+
fontSize: string;
|
|
136
|
+
fontSizeTiny: string;
|
|
137
|
+
fontSizeSmall: string;
|
|
138
|
+
fontSizeMedium: string;
|
|
139
|
+
fontSizeLarge: string;
|
|
140
|
+
fontSizeHuge: string;
|
|
141
|
+
lineHeight: string;
|
|
142
|
+
heightTiny: string;
|
|
143
|
+
heightSmall: string;
|
|
144
|
+
heightMedium: string;
|
|
145
|
+
heightLarge: string;
|
|
146
|
+
heightHuge: string;
|
|
147
|
+
transformDebounceScale: string;
|
|
148
|
+
name: "common";
|
|
149
|
+
};
|
|
150
|
+
self: {
|
|
151
|
+
menuBorderRadius: string;
|
|
152
|
+
menuColor: string;
|
|
153
|
+
menuBoxShadow: string;
|
|
154
|
+
menuDividerColor: string;
|
|
155
|
+
menuHeight: string;
|
|
156
|
+
optionArrowColor: string;
|
|
157
|
+
optionHeight: string;
|
|
158
|
+
optionFontSize: string;
|
|
159
|
+
optionColorHover: string;
|
|
160
|
+
optionTextColor: string;
|
|
161
|
+
optionTextColorActive: string;
|
|
162
|
+
optionTextColorDisabled: string;
|
|
163
|
+
optionCheckMarkColor: string;
|
|
164
|
+
loadingColor: string;
|
|
165
|
+
columnWidth: string;
|
|
166
|
+
};
|
|
167
|
+
peers: {
|
|
168
|
+
InternalSelectMenu: import("../../_mixins").Theme<"InternalSelectMenu", {
|
|
169
|
+
optionFontSizeSmall: string;
|
|
170
|
+
optionFontSizeMedium: string;
|
|
171
|
+
optionFontSizeLarge: string;
|
|
172
|
+
optionFontSizeHuge: string;
|
|
173
|
+
optionHeightSmall: string;
|
|
174
|
+
optionHeightMedium: string;
|
|
175
|
+
optionHeightLarge: string;
|
|
176
|
+
optionHeightHuge: string;
|
|
177
|
+
borderRadius: string;
|
|
178
|
+
color: string;
|
|
179
|
+
groupHeaderTextColor: string;
|
|
180
|
+
actionDividerColor: string;
|
|
181
|
+
optionTextColor: string;
|
|
182
|
+
optionTextColorPressed: string;
|
|
183
|
+
optionTextColorDisabled: string;
|
|
184
|
+
optionTextColorActive: string;
|
|
185
|
+
optionOpacityDisabled: string;
|
|
186
|
+
optionCheckColor: string;
|
|
187
|
+
optionColorPending: string;
|
|
188
|
+
optionColorActive: string;
|
|
189
|
+
actionTextColor: string;
|
|
190
|
+
loadingColor: string;
|
|
191
|
+
height: string;
|
|
192
|
+
paddingSmall: string;
|
|
193
|
+
paddingMedium: string;
|
|
194
|
+
paddingLarge: string;
|
|
195
|
+
paddingHuge: string;
|
|
196
|
+
optionPaddingSmall: string;
|
|
197
|
+
optionPaddingMedium: string;
|
|
198
|
+
optionPaddingLarge: string;
|
|
199
|
+
optionPaddingHuge: string;
|
|
200
|
+
loadingSize: string;
|
|
201
|
+
}, {
|
|
202
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
203
|
+
color: string;
|
|
204
|
+
colorHover: string;
|
|
205
|
+
}, any>;
|
|
206
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
207
|
+
fontSizeSmall: string;
|
|
208
|
+
fontSizeMedium: string;
|
|
209
|
+
fontSizeLarge: string;
|
|
210
|
+
fontSizeHuge: string;
|
|
211
|
+
textColor: string;
|
|
212
|
+
iconColor: string;
|
|
213
|
+
extraTextColor: string;
|
|
214
|
+
iconSizeSmall: string;
|
|
215
|
+
iconSizeMedium: string;
|
|
216
|
+
iconSizeLarge: string;
|
|
217
|
+
iconSizeHuge: string;
|
|
218
|
+
}, any>;
|
|
219
|
+
}>;
|
|
220
|
+
InternalSelection: import("../../_mixins").Theme<"InternalSelection", {
|
|
221
|
+
fontSizeTiny: string;
|
|
222
|
+
fontSizeSmall: string;
|
|
223
|
+
fontSizeMedium: string;
|
|
224
|
+
fontSizeLarge: string;
|
|
225
|
+
heightTiny: string;
|
|
226
|
+
heightSmall: string;
|
|
227
|
+
heightMedium: string;
|
|
228
|
+
heightLarge: string;
|
|
229
|
+
borderRadius: string;
|
|
230
|
+
textColor: string;
|
|
231
|
+
textColorDisabled: string;
|
|
232
|
+
placeholderColor: string;
|
|
233
|
+
placeholderColorDisabled: string;
|
|
234
|
+
color: string;
|
|
235
|
+
colorDisabled: string;
|
|
236
|
+
colorActive: string;
|
|
237
|
+
border: string;
|
|
238
|
+
borderHover: string;
|
|
239
|
+
borderActive: string;
|
|
240
|
+
borderFocus: string;
|
|
241
|
+
boxShadowHover: null;
|
|
242
|
+
boxShadowActive: string;
|
|
243
|
+
boxShadowFocus: string;
|
|
244
|
+
caretColor: string;
|
|
245
|
+
arrowColor: string;
|
|
246
|
+
arrowColorDisabled: string;
|
|
247
|
+
loadingColor: string;
|
|
248
|
+
borderWarning: string;
|
|
249
|
+
borderHoverWarning: string;
|
|
250
|
+
borderActiveWarning: string;
|
|
251
|
+
borderFocusWarning: string;
|
|
252
|
+
boxShadowHoverWarning: null;
|
|
253
|
+
boxShadowActiveWarning: string;
|
|
254
|
+
boxShadowFocusWarning: string;
|
|
255
|
+
colorActiveWarning: string;
|
|
256
|
+
caretColorWarning: string;
|
|
257
|
+
borderError: string;
|
|
258
|
+
borderHoverError: string;
|
|
259
|
+
borderActiveError: string;
|
|
260
|
+
borderFocusError: string;
|
|
261
|
+
boxShadowHoverError: null;
|
|
262
|
+
boxShadowActiveError: string;
|
|
263
|
+
boxShadowFocusError: string;
|
|
264
|
+
colorActiveError: string;
|
|
265
|
+
caretColorError: string;
|
|
266
|
+
clearColor: string;
|
|
267
|
+
clearColorHover: string;
|
|
268
|
+
clearColorPressed: string;
|
|
269
|
+
paddingSingle: string;
|
|
270
|
+
clearSize: string;
|
|
271
|
+
arrowSize: string;
|
|
272
|
+
}, {
|
|
273
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
274
|
+
fontSize: string;
|
|
275
|
+
borderRadius: string;
|
|
276
|
+
color: string;
|
|
277
|
+
dividerColor: string;
|
|
278
|
+
textColor: string;
|
|
279
|
+
boxShadow: string;
|
|
280
|
+
space: string;
|
|
281
|
+
spaceArrow: string;
|
|
282
|
+
arrowOffset: string;
|
|
283
|
+
arrowOffsetVertical: string;
|
|
284
|
+
arrowHeight: string;
|
|
285
|
+
padding: string;
|
|
286
|
+
}, any>;
|
|
287
|
+
}>;
|
|
288
|
+
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
289
|
+
color: string;
|
|
290
|
+
colorHover: string;
|
|
291
|
+
}, any>;
|
|
292
|
+
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
293
|
+
fontSizeSmall: string;
|
|
294
|
+
fontSizeMedium: string;
|
|
295
|
+
fontSizeLarge: string;
|
|
296
|
+
borderRadius: string;
|
|
297
|
+
color: string;
|
|
298
|
+
colorChecked: string;
|
|
299
|
+
colorDisabled: string;
|
|
300
|
+
colorDisabledChecked: string;
|
|
301
|
+
colorTableHeader: string;
|
|
302
|
+
colorTableHeaderModal: string;
|
|
303
|
+
colorTableHeaderPopover: string;
|
|
304
|
+
checkMarkColor: string;
|
|
305
|
+
checkMarkColorDisabled: string;
|
|
306
|
+
checkMarkColorDisabledChecked: string;
|
|
307
|
+
border: string;
|
|
308
|
+
borderDisabled: string;
|
|
309
|
+
borderDisabledChecked: string;
|
|
310
|
+
borderChecked: string;
|
|
311
|
+
borderFocus: string;
|
|
312
|
+
boxShadowFocus: string;
|
|
313
|
+
textColor: string;
|
|
314
|
+
textColorDisabled: string;
|
|
315
|
+
sizeSmall: string;
|
|
316
|
+
sizeMedium: string;
|
|
317
|
+
sizeLarge: string;
|
|
318
|
+
labelPadding: string;
|
|
319
|
+
}, any>;
|
|
320
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
321
|
+
fontSizeSmall: string;
|
|
322
|
+
fontSizeMedium: string;
|
|
323
|
+
fontSizeLarge: string;
|
|
324
|
+
fontSizeHuge: string;
|
|
325
|
+
textColor: string;
|
|
326
|
+
iconColor: string;
|
|
327
|
+
extraTextColor: string;
|
|
328
|
+
iconSizeSmall: string;
|
|
329
|
+
iconSizeMedium: string;
|
|
330
|
+
iconSizeLarge: string;
|
|
331
|
+
iconSizeHuge: string;
|
|
332
|
+
}, any>;
|
|
333
|
+
};
|
|
334
|
+
peerOverrides: {
|
|
335
|
+
InternalSelectMenu?: {
|
|
336
|
+
peers?: {
|
|
337
|
+
Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
|
|
338
|
+
color: string;
|
|
339
|
+
colorHover: string;
|
|
340
|
+
}, any>> | undefined;
|
|
341
|
+
Empty?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Empty", {
|
|
342
|
+
fontSizeSmall: string;
|
|
343
|
+
fontSizeMedium: string;
|
|
344
|
+
fontSizeLarge: string;
|
|
345
|
+
fontSizeHuge: string;
|
|
346
|
+
textColor: string;
|
|
347
|
+
iconColor: string;
|
|
348
|
+
extraTextColor: string;
|
|
349
|
+
iconSizeSmall: string;
|
|
350
|
+
iconSizeMedium: string;
|
|
351
|
+
iconSizeLarge: string;
|
|
352
|
+
iconSizeHuge: string;
|
|
353
|
+
}, any>> | undefined;
|
|
354
|
+
} | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
InternalSelection?: {
|
|
357
|
+
peers?: {
|
|
358
|
+
Popover?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Popover", {
|
|
359
|
+
fontSize: string;
|
|
360
|
+
borderRadius: string;
|
|
361
|
+
color: string;
|
|
362
|
+
dividerColor: string;
|
|
363
|
+
textColor: string;
|
|
364
|
+
boxShadow: string;
|
|
365
|
+
space: string;
|
|
366
|
+
spaceArrow: string;
|
|
367
|
+
arrowOffset: string;
|
|
368
|
+
arrowOffsetVertical: string;
|
|
369
|
+
arrowHeight: string;
|
|
370
|
+
padding: string;
|
|
371
|
+
}, any>> | undefined;
|
|
372
|
+
} | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
Scrollbar?: {
|
|
375
|
+
peers?: {
|
|
376
|
+
[x: string]: any;
|
|
377
|
+
} | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
Checkbox?: {
|
|
380
|
+
peers?: {
|
|
381
|
+
[x: string]: any;
|
|
382
|
+
} | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
Empty?: {
|
|
385
|
+
peers?: {
|
|
386
|
+
[x: string]: any;
|
|
387
|
+
} | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
};
|
|
390
|
+
}>;
|
|
46
391
|
handleFocusin: (e: FocusEvent) => void;
|
|
47
392
|
handleFocusout: (e: FocusEvent) => void;
|
|
48
393
|
handleClickOutside: (e: MouseEvent) => void;
|
|
@@ -41,7 +41,7 @@ export default defineComponent({
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(props) {
|
|
44
|
-
const { localeRef, isMountedRef, mergedClsPrefixRef, syncCascaderMenuPosition, handleCascaderMenuClickOutside
|
|
44
|
+
const { localeRef, isMountedRef, mergedClsPrefixRef, syncCascaderMenuPosition, handleCascaderMenuClickOutside, mergedThemeRef
|
|
45
45
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
46
46
|
} = inject(cascaderInjectionKey);
|
|
47
47
|
const submenuInstRefs = [];
|
|
@@ -92,19 +92,18 @@ export default defineComponent({
|
|
|
92
92
|
};
|
|
93
93
|
return Object.assign({ isMounted: isMountedRef, mergedClsPrefix: mergedClsPrefixRef, selfElRef,
|
|
94
94
|
submenuInstRefs,
|
|
95
|
-
maskInstRef,
|
|
96
|
-
handleFocusin,
|
|
95
|
+
maskInstRef, mergedTheme: mergedThemeRef, handleFocusin,
|
|
97
96
|
handleFocusout,
|
|
98
97
|
handleClickOutside }, exposedRef);
|
|
99
98
|
},
|
|
100
99
|
render() {
|
|
101
|
-
const { submenuInstRefs, mergedClsPrefix, $slots } = this;
|
|
100
|
+
const { submenuInstRefs, mergedClsPrefix, $slots, mergedTheme } = this;
|
|
102
101
|
return (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
|
|
103
102
|
default: () => {
|
|
104
103
|
if (!this.show)
|
|
105
104
|
return null;
|
|
106
105
|
return withDirectives(h("div", { tabindex: "0", ref: "selfElRef", class: `${mergedClsPrefix}-cascader-menu`, onMousedown: this.onMousedown, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.onKeyup, style: {
|
|
107
|
-
'--col-count': this.menuModel.length
|
|
106
|
+
'--n-col-count': this.menuModel.length
|
|
108
107
|
} },
|
|
109
108
|
this.menuModel[0].length ? (h("div", { class: `${mergedClsPrefix}-cascader-submenu-wrapper` },
|
|
110
109
|
this.menuModel.map((submenuOptions, index) => (h(NCascaderSubmenu, { ref: ((instance) => {
|
|
@@ -112,7 +111,9 @@ export default defineComponent({
|
|
|
112
111
|
submenuInstRefs[index] = instance;
|
|
113
112
|
}
|
|
114
113
|
}), key: index, tmNodes: submenuOptions, depth: index + 1 }))),
|
|
115
|
-
h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : (h("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, renderSlot($slots, 'empty', undefined, () => [
|
|
114
|
+
h(NBaseMenuMask, { clsPrefix: mergedClsPrefix, ref: "maskInstRef" }))) : (h("div", { class: `${mergedClsPrefix}-cascader-menu__empty` }, renderSlot($slots, 'empty', undefined, () => [
|
|
115
|
+
h(NEmpty, { theme: mergedTheme.peers.Empty, themeOverrides: mergedTheme.peerOverrides.Empty })
|
|
116
|
+
]))),
|
|
116
117
|
$slots.action && (h("div", { class: `${mergedClsPrefix}-cascader-menu-action`, "data-action": true }, {
|
|
117
118
|
default: $slots.action
|
|
118
119
|
})),
|
|
@@ -293,6 +293,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
293
293
|
sizeLarge: string;
|
|
294
294
|
labelPadding: string;
|
|
295
295
|
}, any>;
|
|
296
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
297
|
+
fontSizeSmall: string;
|
|
298
|
+
fontSizeMedium: string;
|
|
299
|
+
fontSizeLarge: string;
|
|
300
|
+
fontSizeHuge: string;
|
|
301
|
+
textColor: string;
|
|
302
|
+
iconColor: string;
|
|
303
|
+
extraTextColor: string;
|
|
304
|
+
iconSizeSmall: string;
|
|
305
|
+
iconSizeMedium: string;
|
|
306
|
+
iconSizeLarge: string;
|
|
307
|
+
iconSizeHuge: string;
|
|
308
|
+
}, any>;
|
|
296
309
|
};
|
|
297
310
|
peerOverrides: {
|
|
298
311
|
InternalSelectMenu?: {
|
|
@@ -344,6 +357,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
344
357
|
[x: string]: any;
|
|
345
358
|
} | undefined;
|
|
346
359
|
} | undefined;
|
|
360
|
+
Empty?: {
|
|
361
|
+
peers?: {
|
|
362
|
+
[x: string]: any;
|
|
363
|
+
} | undefined;
|
|
364
|
+
} | undefined;
|
|
347
365
|
};
|
|
348
366
|
}>;
|
|
349
367
|
handleClick: (e: MouseEvent) => void;
|
|
@@ -305,6 +305,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
305
305
|
sizeLarge: string;
|
|
306
306
|
labelPadding: string;
|
|
307
307
|
}, any>;
|
|
308
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
309
|
+
fontSizeSmall: string;
|
|
310
|
+
fontSizeMedium: string;
|
|
311
|
+
fontSizeLarge: string;
|
|
312
|
+
fontSizeHuge: string;
|
|
313
|
+
textColor: string;
|
|
314
|
+
iconColor: string;
|
|
315
|
+
extraTextColor: string;
|
|
316
|
+
iconSizeSmall: string;
|
|
317
|
+
iconSizeMedium: string;
|
|
318
|
+
iconSizeLarge: string;
|
|
319
|
+
iconSizeHuge: string;
|
|
320
|
+
}, any>;
|
|
308
321
|
};
|
|
309
322
|
peerOverrides: {
|
|
310
323
|
InternalSelectMenu?: {
|
|
@@ -356,6 +369,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
356
369
|
[x: string]: any;
|
|
357
370
|
} | undefined;
|
|
358
371
|
} | undefined;
|
|
372
|
+
Empty?: {
|
|
373
|
+
peers?: {
|
|
374
|
+
[x: string]: any;
|
|
375
|
+
} | undefined;
|
|
376
|
+
} | undefined;
|
|
359
377
|
};
|
|
360
378
|
}>;
|
|
361
379
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
@@ -286,6 +286,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
286
286
|
sizeLarge: string;
|
|
287
287
|
labelPadding: string;
|
|
288
288
|
}, any>;
|
|
289
|
+
Empty: import("../../_mixins").Theme<"Empty", {
|
|
290
|
+
fontSizeSmall: string;
|
|
291
|
+
fontSizeMedium: string;
|
|
292
|
+
fontSizeLarge: string;
|
|
293
|
+
fontSizeHuge: string;
|
|
294
|
+
textColor: string;
|
|
295
|
+
iconColor: string;
|
|
296
|
+
extraTextColor: string;
|
|
297
|
+
iconSizeSmall: string;
|
|
298
|
+
iconSizeMedium: string;
|
|
299
|
+
iconSizeLarge: string;
|
|
300
|
+
iconSizeHuge: string;
|
|
301
|
+
}, any>;
|
|
289
302
|
};
|
|
290
303
|
peerOverrides: {
|
|
291
304
|
InternalSelectMenu?: {
|
|
@@ -337,6 +350,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
337
350
|
[x: string]: any;
|
|
338
351
|
} | undefined;
|
|
339
352
|
} | undefined;
|
|
353
|
+
Empty?: {
|
|
354
|
+
peers?: {
|
|
355
|
+
[x: string]: any;
|
|
356
|
+
} | undefined;
|
|
357
|
+
} | undefined;
|
|
340
358
|
};
|
|
341
359
|
}>;
|
|
342
360
|
scrollbarInstRef: import("vue").Ref<{
|