naive-ui 2.34.2 → 2.34.3
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/dist/index.js +11964 -9783
- package/dist/index.prod.js +3 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/es/_internal/scrollbar/styles/light.d.ts +2 -2
- package/es/_internal/select-menu/src/interface.d.ts +7 -7
- package/es/_internal/select-menu/styles/light.d.ts +2 -2
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +2 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-theme.d.ts +6 -6
- package/es/_styles/common/light.d.ts +1 -1
- package/es/_utils/cssr/create-key.d.ts +3 -3
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/es/_utils/env/is-native-lazy-load.js +2 -3
- package/es/_utils/naive/extract-public-props.d.ts +4 -4
- package/es/_utils/naive/mutable.d.ts +1 -1
- package/es/_utils/naive/prop.d.ts +1 -1
- package/es/_utils/vue/call.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/affix/src/utils.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/styles/light.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/utils.d.ts +1 -1
- package/es/anchor/styles/light.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/interface.d.ts +5 -5
- package/es/auto-complete/styles/light.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.js +7 -1
- package/es/avatar/src/interface.d.ts +2 -2
- package/es/avatar/styles/light.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/styles/light.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/styles/light.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +7 -1
- package/es/badge/src/Badge.js +15 -3
- package/es/badge/styles/light.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/styles/light.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/interface.d.ts +2 -2
- package/es/button/styles/light.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/styles/light.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/interface.d.ts +2 -2
- package/es/calendar/styles/light.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -18
- package/es/card/src/Card.js +8 -7
- package/es/card/styles/light.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +11 -1
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +11 -11
- package/es/cascader/styles/light.d.ts +3 -2
- package/es/checkbox/src/Checkbox.d.ts +12 -1
- package/es/checkbox/src/Checkbox.js +2 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/interface.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +1 -0
- package/es/checkbox/styles/_common.d.ts +1 -0
- package/es/checkbox/styles/_common.js +2 -1
- package/es/checkbox/styles/light.d.ts +3 -2
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/interface.d.ts +4 -4
- package/es/collapse/styles/light.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/styles/light.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +5 -5
- package/es/color-picker/src/utils.d.ts +2 -2
- package/es/color-picker/styles/light.d.ts +2 -2
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +3 -5
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +52 -52
- package/es/data-table/styles/light.d.ts +4 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +21 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/styles/light.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/interface.d.ts +1 -1
- package/es/dialog/styles/light.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +2 -2
- package/es/discrete/src/interface.d.ts +3 -3
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/styles/light.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/drawer/styles/light.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/interface.d.ts +21 -21
- package/es/dropdown/styles/light.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/light.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/interface.d.ts +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +7 -1
- package/es/ellipsis/styles/light.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/styles/light.d.ts +2 -2
- package/es/equation/styles/light.d.ts +2 -2
- package/es/form/src/Form.d.ts +11 -2
- package/es/form/src/FormItem.d.ts +14 -4
- package/es/form/src/FormItem.js +2 -1
- package/es/form/src/FormItemCol.d.ts +12 -3
- package/es/form/src/FormItemGridItem.d.ts +12 -3
- package/es/form/src/FormItemRow.d.ts +11 -2
- package/es/form/src/interface.d.ts +19 -19
- package/es/form/src/styles/form-item.cssr.js +1 -0
- package/es/form/styles/_common.d.ts +1 -0
- package/es/form/styles/_common.js +2 -1
- package/es/form/styles/light.d.ts +3 -2
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/gradient-text/styles/light.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/styles/light.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/icon-wrapper/styles/light.d.ts +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +5 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.js +5 -4
- package/es/image/src/utils.d.ts +1 -1
- package/es/image/styles/light.d.ts +2 -2
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/interface.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/styles/light.d.ts +2 -2
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/interface.d.ts +2 -2
- package/es/input-number/styles/light.d.ts +2 -2
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/light.d.ts +2 -2
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-grid/src/interface.d.ts +1 -1
- package/es/legacy-grid/styles/dark.d.ts +1 -1
- package/es/legacy-grid/styles/light.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +11 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/src/interface.d.ts +3 -3
- package/es/legacy-transfer/styles/light.d.ts +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/es/loading-bar/styles/light.d.ts +2 -2
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/koKR.js +9 -9
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/styles/light.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +1 -1
- package/es/mention/styles/light.d.ts +2 -2
- package/es/menu/src/Menu.d.ts +2 -2
- package/es/menu/src/Submenu.js +2 -2
- package/es/menu/src/interface.d.ts +11 -11
- package/es/menu/src/use-menu-child-props.d.ts +1 -1
- package/es/menu/styles/light.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +5 -7
- package/es/message/src/message-props.d.ts +2 -2
- package/es/message/src/types.d.ts +3 -3
- package/es/message/styles/light.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +9 -0
- package/es/modal/src/Modal.d.ts +14 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/styles/light.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +7 -7
- package/es/notification/styles/light.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/styles/light.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +9 -2
- package/es/pagination/src/Pagination.js +6 -4
- package/es/pagination/src/interface.d.ts +9 -8
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/styles/light.d.ts +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +2 -2
- package/es/popover/src/Popover.d.ts +2 -2
- package/es/popover/src/interface.d.ts +3 -3
- package/es/popover/styles/light.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +2 -2
- package/es/popselect/src/interface.d.ts +2 -2
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Line.js +3 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/interface.d.ts +1 -1
- package/es/progress/styles/light.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +8 -1
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +10 -1
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/radio/styles/_common.d.ts +1 -0
- package/es/radio/styles/_common.js +2 -1
- package/es/radio/styles/light.d.ts +3 -2
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/interface.d.ts +2 -2
- package/es/rate/styles/light.d.ts +2 -2
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/styles/light.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +5 -1
- package/es/select/src/Select.js +5 -2
- package/es/select/src/interface.d.ts +12 -12
- package/es/select/styles/light.d.ts +2 -2
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/utils.d.ts +3 -3
- package/es/slider/styles/light.d.ts +2 -2
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/light.d.ts +2 -2
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/styles/light.d.ts +2 -2
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/interface.d.ts +2 -2
- package/es/switch/styles/light.d.ts +2 -2
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +123 -1
- package/es/tabs/src/Tabs.js +83 -61
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/src/styles/index.cssr.js +49 -2
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +12 -0
- package/es/tabs/styles/light.d.ts +14 -2
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/styles/light.d.ts +2 -2
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +2 -2
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/styles/light.d.ts +2 -2
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/interface.d.ts +9 -9
- package/es/time-picker/styles/light.d.ts +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/styles/light.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +2 -2
- package/es/tooltip/styles/light.d.ts +2 -2
- package/es/transfer/src/Transfer.d.ts +11 -1
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +6 -6
- package/es/transfer/styles/light.d.ts +3 -2
- package/es/tree/src/Tree.d.ts +24 -12
- package/es/tree/src/Tree.js +36 -34
- package/es/tree/src/TreeNode.js +4 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/interface.d.ts +16 -16
- package/es/tree/styles/light.d.ts +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +22 -5
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/interface.d.ts +12 -12
- package/es/tree-select/styles/light.d.ts +3 -2
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/styles/light.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +2 -4
- package/es/upload/src/interface.d.ts +16 -16
- package/es/upload/src/utils.js +7 -9
- package/es/upload/styles/light.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/styles/light.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
- package/lib/_internal/select-menu/src/interface.d.ts +7 -7
- package/lib/_internal/select-menu/styles/light.d.ts +2 -2
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -2
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-theme.d.ts +6 -6
- package/lib/_styles/common/light.d.ts +1 -1
- package/lib/_utils/cssr/create-key.d.ts +3 -3
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/lib/_utils/env/is-native-lazy-load.js +2 -3
- package/lib/_utils/naive/extract-public-props.d.ts +4 -4
- package/lib/_utils/naive/mutable.d.ts +1 -1
- package/lib/_utils/naive/prop.d.ts +1 -1
- package/lib/_utils/vue/call.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/affix/src/utils.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/styles/light.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/utils.d.ts +1 -1
- package/lib/anchor/styles/light.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/interface.d.ts +5 -5
- package/lib/auto-complete/styles/light.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +7 -1
- package/lib/avatar/src/interface.d.ts +2 -2
- package/lib/avatar/styles/light.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/styles/light.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/styles/light.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +7 -1
- package/lib/badge/src/Badge.js +15 -3
- package/lib/badge/styles/light.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/styles/light.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/interface.d.ts +2 -2
- package/lib/button/styles/light.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/styles/light.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/interface.d.ts +2 -2
- package/lib/calendar/styles/light.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -18
- package/lib/card/src/Card.js +8 -7
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +11 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +11 -11
- package/lib/cascader/styles/light.d.ts +3 -2
- package/lib/checkbox/src/Checkbox.d.ts +12 -1
- package/lib/checkbox/src/Checkbox.js +2 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/interface.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +1 -0
- package/lib/checkbox/styles/_common.d.ts +1 -0
- package/lib/checkbox/styles/_common.js +2 -1
- package/lib/checkbox/styles/light.d.ts +3 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/interface.d.ts +4 -4
- package/lib/collapse/styles/light.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/styles/light.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +5 -5
- package/lib/color-picker/src/utils.d.ts +2 -2
- package/lib/color-picker/styles/light.d.ts +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +3 -5
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +52 -52
- package/lib/data-table/styles/light.d.ts +4 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +21 -21
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/styles/light.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/interface.d.ts +1 -1
- package/lib/dialog/styles/light.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +2 -2
- package/lib/discrete/src/interface.d.ts +3 -3
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/styles/light.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/drawer/styles/light.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/interface.d.ts +21 -21
- package/lib/dropdown/styles/light.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/light.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/interface.d.ts +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +6 -0
- package/lib/ellipsis/styles/light.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/styles/light.d.ts +2 -2
- package/lib/equation/styles/light.d.ts +2 -2
- package/lib/form/src/Form.d.ts +11 -2
- package/lib/form/src/FormItem.d.ts +14 -4
- package/lib/form/src/FormItem.js +2 -1
- package/lib/form/src/FormItemCol.d.ts +12 -3
- package/lib/form/src/FormItemGridItem.d.ts +12 -3
- package/lib/form/src/FormItemRow.d.ts +11 -2
- package/lib/form/src/interface.d.ts +19 -19
- package/lib/form/src/styles/form-item.cssr.js +1 -0
- package/lib/form/styles/_common.d.ts +1 -0
- package/lib/form/styles/_common.js +2 -1
- package/lib/form/styles/light.d.ts +3 -2
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/gradient-text/styles/light.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/styles/light.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.d.ts +2 -2
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +5 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +5 -4
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/image/styles/light.d.ts +2 -2
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/interface.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/styles/light.d.ts +2 -2
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/interface.d.ts +2 -2
- package/lib/input-number/styles/light.d.ts +2 -2
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/light.d.ts +2 -2
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-grid/src/interface.d.ts +1 -1
- package/lib/legacy-grid/styles/dark.d.ts +1 -1
- package/lib/legacy-grid/styles/light.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/src/interface.d.ts +3 -3
- package/lib/legacy-transfer/styles/light.d.ts +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/lib/loading-bar/styles/light.d.ts +2 -2
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/koKR.js +9 -9
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/styles/light.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +1 -1
- package/lib/mention/styles/light.d.ts +2 -2
- package/lib/menu/src/Menu.d.ts +2 -2
- package/lib/menu/src/Submenu.js +2 -2
- package/lib/menu/src/interface.d.ts +11 -11
- package/lib/menu/src/use-menu-child-props.d.ts +1 -1
- package/lib/menu/styles/light.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +5 -7
- package/lib/message/src/message-props.d.ts +2 -2
- package/lib/message/src/types.d.ts +3 -3
- package/lib/message/styles/light.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +9 -0
- package/lib/modal/src/Modal.d.ts +14 -1
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/modal/styles/light.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +7 -7
- package/lib/notification/styles/light.d.ts +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/styles/light.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +9 -2
- package/lib/pagination/src/Pagination.js +6 -4
- package/lib/pagination/src/interface.d.ts +9 -8
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/styles/light.d.ts +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +2 -2
- package/lib/popover/src/Popover.d.ts +2 -2
- package/lib/popover/src/interface.d.ts +3 -3
- package/lib/popover/styles/light.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +2 -2
- package/lib/popselect/src/interface.d.ts +2 -2
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Line.js +3 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/interface.d.ts +1 -1
- package/lib/progress/styles/light.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +8 -1
- package/lib/radio/src/Radio.js +2 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +10 -1
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/radio/styles/_common.d.ts +1 -0
- package/lib/radio/styles/_common.js +2 -1
- package/lib/radio/styles/light.d.ts +3 -2
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/interface.d.ts +2 -2
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/styles/light.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +5 -1
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +12 -12
- package/lib/select/styles/light.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/utils.d.ts +3 -3
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/light.d.ts +2 -2
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/styles/light.d.ts +2 -2
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/interface.d.ts +2 -2
- package/lib/switch/styles/light.d.ts +2 -2
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +123 -1
- package/lib/tabs/src/Tabs.js +83 -61
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/src/styles/index.cssr.js +49 -2
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +12 -0
- package/lib/tabs/styles/light.d.ts +14 -2
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +2 -2
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +2 -2
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/styles/light.d.ts +2 -2
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/interface.d.ts +9 -9
- package/lib/time-picker/styles/light.d.ts +2 -2
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/styles/light.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +2 -2
- package/lib/tooltip/styles/light.d.ts +2 -2
- package/lib/transfer/src/Transfer.d.ts +11 -1
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +6 -6
- package/lib/transfer/styles/light.d.ts +3 -2
- package/lib/tree/src/Tree.d.ts +24 -12
- package/lib/tree/src/Tree.js +36 -34
- package/lib/tree/src/TreeNode.js +4 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/interface.d.ts +16 -16
- package/lib/tree/styles/light.d.ts +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +22 -5
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/interface.d.ts +12 -12
- package/lib/tree-select/styles/light.d.ts +3 -2
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/styles/light.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +2 -4
- package/lib/upload/src/interface.d.ts +16 -16
- package/lib/upload/src/utils.js +7 -9
- package/lib/upload/styles/light.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/styles/light.d.ts +1 -1
- package/package.json +13 -13
- package/web-types.json +80 -14
package/es/tabs/src/Tabs.js
CHANGED
|
@@ -17,6 +17,9 @@ export const tabsProps = Object.assign(Object.assign({}, useTheme.props), { valu
|
|
|
17
17
|
}, closable: Boolean, justifyContent: String, size: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: 'medium'
|
|
20
|
+
}, placement: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'top'
|
|
20
23
|
}, tabStyle: [String, Object], barWidth: Number, paneClass: String, paneStyle: [String, Object], addable: [Boolean, Object], tabsPadding: {
|
|
21
24
|
type: Number,
|
|
22
25
|
default: 0
|
|
@@ -86,24 +89,49 @@ export default defineComponent({
|
|
|
86
89
|
return;
|
|
87
90
|
if (tabEl) {
|
|
88
91
|
const disabledClassName = `${mergedClsPrefixRef.value}-tabs-bar--disabled`;
|
|
89
|
-
const { barWidth } = props;
|
|
92
|
+
const { barWidth, placement } = props;
|
|
90
93
|
if (tabEl.dataset.disabled === 'true') {
|
|
91
94
|
barEl.classList.add(disabledClassName);
|
|
92
95
|
}
|
|
93
96
|
else {
|
|
94
97
|
barEl.classList.remove(disabledClassName);
|
|
95
98
|
}
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
if (['top', 'bottom'].includes(placement)) {
|
|
100
|
+
clearBarStyle(['top', 'maxHeight', 'height']);
|
|
101
|
+
if (typeof barWidth === 'number' && tabEl.offsetWidth >= barWidth) {
|
|
102
|
+
const offsetDiffLeft = Math.floor((tabEl.offsetWidth - barWidth) / 2) + tabEl.offsetLeft;
|
|
103
|
+
barEl.style.left = `${offsetDiffLeft}px`;
|
|
104
|
+
barEl.style.maxWidth = `${barWidth}px`;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
barEl.style.left = `${tabEl.offsetLeft}px`;
|
|
108
|
+
barEl.style.maxWidth = `${tabEl.offsetWidth}px`;
|
|
109
|
+
}
|
|
110
|
+
barEl.style.width = '8192px';
|
|
111
|
+
void barEl.offsetWidth;
|
|
100
112
|
}
|
|
101
113
|
else {
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
clearBarStyle(['left', 'maxWidth', 'width']);
|
|
115
|
+
if (typeof barWidth === 'number' && tabEl.offsetHeight >= barWidth) {
|
|
116
|
+
const offsetDiffTop = Math.floor((tabEl.offsetHeight - barWidth) / 2) + tabEl.offsetTop;
|
|
117
|
+
barEl.style.top = `${offsetDiffTop}px`;
|
|
118
|
+
barEl.style.maxHeight = `${barWidth}px`;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
barEl.style.top = `${tabEl.offsetTop}px`;
|
|
122
|
+
barEl.style.maxHeight = `${tabEl.offsetHeight}px`;
|
|
123
|
+
}
|
|
124
|
+
barEl.style.height = '8192px';
|
|
125
|
+
void barEl.offsetHeight;
|
|
104
126
|
}
|
|
105
|
-
|
|
106
|
-
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function clearBarStyle(styleProps) {
|
|
130
|
+
const { value: barEl } = barElRef;
|
|
131
|
+
if (!barEl)
|
|
132
|
+
return;
|
|
133
|
+
for (const prop of styleProps) {
|
|
134
|
+
barEl.style[prop] = '';
|
|
107
135
|
}
|
|
108
136
|
}
|
|
109
137
|
function updateCurrentBarStyle() {
|
|
@@ -335,7 +363,7 @@ export default defineComponent({
|
|
|
335
363
|
// avoid useless rerender
|
|
336
364
|
watchEffect(() => {
|
|
337
365
|
const { value: el } = scrollWrapperElRef;
|
|
338
|
-
if (!el)
|
|
366
|
+
if (!el || ['left', 'right'].includes(props.placement))
|
|
339
367
|
return;
|
|
340
368
|
const { value: clsPrefix } = mergedClsPrefixRef;
|
|
341
369
|
const shadowBeforeClass = `${clsPrefix}-tabs-nav-scroll-wrapper--shadow-before`;
|
|
@@ -381,7 +409,7 @@ export default defineComponent({
|
|
|
381
409
|
segment: 'Segment'
|
|
382
410
|
}[type];
|
|
383
411
|
const sizeType = `${size}${typeSuffix}`;
|
|
384
|
-
const { self: { barColor, closeIconColor, closeIconColorHover, closeIconColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, colorSegment, fontWeightStrong, tabColorSegment, closeSize, closeIconSize, closeColorHover, closeColorPressed, closeBorderRadius, [createKey('panePadding', size)]: panePadding, [createKey('tabPadding', sizeType)]: tabPadding, [createKey('tabGap', sizeType)]: tabGap, [createKey('tabTextColor', type)]: tabTextColor, [createKey('tabTextColorActive', type)]: tabTextColorActive, [createKey('tabTextColorHover', type)]: tabTextColorHover, [createKey('tabTextColorDisabled', type)]: tabTextColorDisabled, [createKey('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
412
|
+
const { self: { barColor, closeIconColor, closeIconColorHover, closeIconColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, colorSegment, fontWeightStrong, tabColorSegment, closeSize, closeIconSize, closeColorHover, closeColorPressed, closeBorderRadius, [createKey('panePadding', size)]: panePadding, [createKey('tabPadding', sizeType)]: tabPadding, [createKey('tabPaddingVertical', sizeType)]: tabPaddingVertical, [createKey('tabGap', sizeType)]: tabGap, [createKey('tabTextColor', type)]: tabTextColor, [createKey('tabTextColorActive', type)]: tabTextColorActive, [createKey('tabTextColorHover', type)]: tabTextColorHover, [createKey('tabTextColorDisabled', type)]: tabTextColorDisabled, [createKey('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
385
413
|
return {
|
|
386
414
|
'--n-bezier': cubicBezierEaseInOut,
|
|
387
415
|
'--n-color-segment': colorSegment,
|
|
@@ -406,6 +434,7 @@ export default defineComponent({
|
|
|
406
434
|
'--n-tab-font-weight': tabFontWeight,
|
|
407
435
|
'--n-tab-font-weight-active': tabFontWeightActive,
|
|
408
436
|
'--n-tab-padding': tabPadding,
|
|
437
|
+
'--n-tab-padding-vertical': tabPaddingVertical,
|
|
409
438
|
'--n-tab-gap': tabGap,
|
|
410
439
|
'--n-pane-padding': panePadding,
|
|
411
440
|
'--n-font-weight-strong': fontWeightStrong,
|
|
@@ -430,7 +459,7 @@ export default defineComponent({
|
|
|
430
459
|
onAnimationAfterEnter, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender }, exposedMethods);
|
|
431
460
|
},
|
|
432
461
|
render() {
|
|
433
|
-
const { mergedClsPrefix, type, addTabFixed, addable, mergedSize, renderNameListRef, onRender, $slots: { default: defaultSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
462
|
+
const { mergedClsPrefix, type, placement, addTabFixed, addable, mergedSize, renderNameListRef, onRender, $slots: { default: defaultSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
434
463
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
435
464
|
const tabPaneChildren = defaultSlot
|
|
436
465
|
? flatten(defaultSlot()).filter((v) => {
|
|
@@ -447,12 +476,49 @@ export default defineComponent({
|
|
|
447
476
|
const isSegment = type === 'segment';
|
|
448
477
|
const mergedJustifyContent = !isCard && !isSegment && this.justifyContent;
|
|
449
478
|
renderNameListRef.value = [];
|
|
479
|
+
const scrollContent = () => {
|
|
480
|
+
const tabs = (h("div", { style: this.tabWrapperStyle, class: [`${mergedClsPrefix}-tabs-wrapper`] },
|
|
481
|
+
mergedJustifyContent ? null : (h("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } })),
|
|
482
|
+
showPane
|
|
483
|
+
? tabPaneChildren.map((tabPaneVNode, index) => {
|
|
484
|
+
renderNameListRef.value.push(tabPaneVNode.props.name);
|
|
485
|
+
return justifyTabDynamicProps(h(Tab, Object.assign({}, tabPaneVNode.props, { internalCreatedByPane: true, internalLeftPadded: index !== 0 &&
|
|
486
|
+
(!mergedJustifyContent ||
|
|
487
|
+
mergedJustifyContent === 'center' ||
|
|
488
|
+
mergedJustifyContent === 'start' ||
|
|
489
|
+
mergedJustifyContent === 'end') }), tabPaneVNode.children
|
|
490
|
+
? {
|
|
491
|
+
default: tabPaneVNode.children.tab
|
|
492
|
+
}
|
|
493
|
+
: undefined));
|
|
494
|
+
})
|
|
495
|
+
: tabChildren.map((tabVNode, index) => {
|
|
496
|
+
renderNameListRef.value.push(tabVNode.props.name);
|
|
497
|
+
if (index !== 0 && !mergedJustifyContent) {
|
|
498
|
+
return justifyTabDynamicProps(createLeftPaddedTabVNode(tabVNode));
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
return justifyTabDynamicProps(tabVNode);
|
|
502
|
+
}
|
|
503
|
+
}),
|
|
504
|
+
!addTabFixed && addable && isCard
|
|
505
|
+
? createAddTag(addable, (showPane ? tabPaneChildren.length : tabChildren.length) !== 0)
|
|
506
|
+
: null,
|
|
507
|
+
mergedJustifyContent ? null : (h("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } }))));
|
|
508
|
+
return (h("div", { ref: "tabsElRef", class: `${mergedClsPrefix}-tabs-nav-scroll-content` },
|
|
509
|
+
isCard && addable ? (h(VResizeObserver, { onResize: this.handleTabsResize }, {
|
|
510
|
+
default: () => tabs
|
|
511
|
+
})) : (tabs),
|
|
512
|
+
isCard ? h("div", { class: `${mergedClsPrefix}-tabs-pad` }) : null,
|
|
513
|
+
isCard ? null : (h("div", { ref: "barElRef", class: `${mergedClsPrefix}-tabs-bar` }))));
|
|
514
|
+
};
|
|
450
515
|
return (h("div", { class: [
|
|
451
516
|
`${mergedClsPrefix}-tabs`,
|
|
452
517
|
this.themeClass,
|
|
453
518
|
`${mergedClsPrefix}-tabs--${type}-type`,
|
|
454
519
|
`${mergedClsPrefix}-tabs--${mergedSize}-size`,
|
|
455
|
-
mergedJustifyContent && `${mergedClsPrefix}-tabs--flex
|
|
520
|
+
mergedJustifyContent && `${mergedClsPrefix}-tabs--flex`,
|
|
521
|
+
`${mergedClsPrefix}-tabs--${placement}`
|
|
456
522
|
], style: this.cssVars },
|
|
457
523
|
h("div", { class: [
|
|
458
524
|
// the class should be applied here since it's possible
|
|
@@ -460,6 +526,7 @@ export default defineComponent({
|
|
|
460
526
|
// other. adding a class will make it easy to write the
|
|
461
527
|
// style.
|
|
462
528
|
`${mergedClsPrefix}-tabs-nav--${type}-type`,
|
|
529
|
+
`${mergedClsPrefix}-tabs-nav--${placement}`,
|
|
463
530
|
`${mergedClsPrefix}-tabs-nav`
|
|
464
531
|
] },
|
|
465
532
|
resolveWrappedSlot(prefixSlot, (children) => children && (h("div", { class: `${mergedClsPrefix}-tabs-nav__prefix` }, children))),
|
|
@@ -481,54 +548,9 @@ export default defineComponent({
|
|
|
481
548
|
return createLeftPaddedTabVNode(tabVNode);
|
|
482
549
|
}
|
|
483
550
|
}))) : (h(VResizeObserver, { onResize: this.handleNavResize }, {
|
|
484
|
-
default: () => (h("div", { class: `${mergedClsPrefix}-tabs-nav-scroll-wrapper`, ref: "scrollWrapperElRef" },
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
const rawWrappedTabs = (h("div", { style: this.tabWrapperStyle, class: `${mergedClsPrefix}-tabs-wrapper` },
|
|
488
|
-
mergedJustifyContent ? null : (h("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } })),
|
|
489
|
-
showPane
|
|
490
|
-
? tabPaneChildren.map((tabPaneVNode, index) => {
|
|
491
|
-
renderNameListRef.value.push(tabPaneVNode.props.name);
|
|
492
|
-
return justifyTabDynamicProps(h(Tab, Object.assign({}, tabPaneVNode.props, { internalCreatedByPane: true, internalLeftPadded: index !== 0 &&
|
|
493
|
-
(!mergedJustifyContent ||
|
|
494
|
-
mergedJustifyContent ===
|
|
495
|
-
'center' ||
|
|
496
|
-
mergedJustifyContent ===
|
|
497
|
-
'start' ||
|
|
498
|
-
mergedJustifyContent === 'end') }), tabPaneVNode.children
|
|
499
|
-
? {
|
|
500
|
-
default: tabPaneVNode.children.tab
|
|
501
|
-
}
|
|
502
|
-
: undefined));
|
|
503
|
-
})
|
|
504
|
-
: tabChildren.map((tabVNode, index) => {
|
|
505
|
-
renderNameListRef.value.push(tabVNode.props.name);
|
|
506
|
-
if (index !== 0 &&
|
|
507
|
-
!mergedJustifyContent) {
|
|
508
|
-
return justifyTabDynamicProps(createLeftPaddedTabVNode(tabVNode));
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
return justifyTabDynamicProps(tabVNode);
|
|
512
|
-
}
|
|
513
|
-
}),
|
|
514
|
-
!addTabFixed && addable && isCard
|
|
515
|
-
? createAddTag(addable, (showPane
|
|
516
|
-
? tabPaneChildren.length
|
|
517
|
-
: tabChildren.length) !== 0)
|
|
518
|
-
: null,
|
|
519
|
-
mergedJustifyContent ? null : (h("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } }))));
|
|
520
|
-
let wrappedTabs = rawWrappedTabs;
|
|
521
|
-
if (isCard && addable) {
|
|
522
|
-
wrappedTabs = (h(VResizeObserver, { onResize: this.handleTabsResize }, {
|
|
523
|
-
default: () => rawWrappedTabs
|
|
524
|
-
}));
|
|
525
|
-
}
|
|
526
|
-
return (h("div", { ref: "tabsElRef", class: `${mergedClsPrefix}-tabs-nav-scroll-content` },
|
|
527
|
-
wrappedTabs,
|
|
528
|
-
isCard ? (h("div", { class: `${mergedClsPrefix}-tabs-pad` })) : null,
|
|
529
|
-
isCard ? null : (h("div", { ref: "barElRef", class: `${mergedClsPrefix}-tabs-bar` }))));
|
|
530
|
-
}
|
|
531
|
-
})))
|
|
551
|
+
default: () => (h("div", { class: `${mergedClsPrefix}-tabs-nav-scroll-wrapper`, ref: "scrollWrapperElRef" }, ['top', 'bottom'].includes(placement) ? (h(VXScroll, { ref: "xScrollInstRef", onScroll: this.handleScroll }, {
|
|
552
|
+
default: scrollContent
|
|
553
|
+
})) : (h("div", { class: `${mergedClsPrefix}-tabs-nav-y-scroll` }, scrollContent()))))
|
|
532
554
|
})),
|
|
533
555
|
addTabFixed && addable && isCard
|
|
534
556
|
? createAddTag(addable, true)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Ref, CSSProperties } from 'vue';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
2
|
+
export type TabsType = 'line' | 'card' | 'bar' | 'segment';
|
|
3
|
+
export type OnUpdateValue = (value: string & number) => void;
|
|
4
|
+
export type OnUpdateValueImpl = (value: string | number) => void;
|
|
5
|
+
export type OnClose = (name: string & number) => void;
|
|
6
|
+
export type OnCloseImpl = (name: string | number) => void;
|
|
7
|
+
export type OnBeforeLeave = (name: string & number, oldName: string & number & null) => boolean | Promise<boolean>;
|
|
8
|
+
export type OnBeforeLeaveImpl = (name: string | number, oldName: string | number | null) => boolean | Promise<boolean>;
|
|
9
9
|
export interface TabsInjection {
|
|
10
10
|
mergedClsPrefixRef: Ref<string>;
|
|
11
11
|
valueRef: Ref<string | number | null>;
|
|
@@ -23,7 +23,7 @@ export interface TabsInjection {
|
|
|
23
23
|
handleClose: (panelName: string | number) => void;
|
|
24
24
|
handleAdd: () => void;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type Addable = boolean | {
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
};
|
|
29
29
|
export declare const tabsInjectionKey: import("vue").InjectionKey<TabsInjection>;
|
|
@@ -29,12 +29,34 @@ import { c, cM, cB, cE, cNotM } from '../../../_utils/cssr';
|
|
|
29
29
|
export default cB('tabs', `
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
width: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
32
34
|
transition:
|
|
33
35
|
background-color .3s var(--n-bezier),
|
|
34
36
|
border-color .3s var(--n-bezier);
|
|
35
37
|
`, [cM('segment-type', [cB('tabs-rail', [c('&.transition-disabled', 'color: red;', [cB('tabs-tab', `
|
|
36
38
|
transition: none;
|
|
37
|
-
`)])])]),
|
|
39
|
+
`)])])]), cM('left, right', `
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
`, [cB('tabs-bar', `
|
|
42
|
+
width: 2px;
|
|
43
|
+
right: 0;
|
|
44
|
+
transition:
|
|
45
|
+
top .2s var(--n-bezier),
|
|
46
|
+
max-height .2s var(--n-bezier),
|
|
47
|
+
background-color .3s var(--n-bezier);
|
|
48
|
+
`), cB('tabs-tab', `
|
|
49
|
+
padding: var(--n-tab-padding-vertical);
|
|
50
|
+
`)]), cM('right', `
|
|
51
|
+
flex-direction: row-reverse;
|
|
52
|
+
`, [cB('tabs-bar', `
|
|
53
|
+
left: 0;
|
|
54
|
+
`)]), cM('bottom', `
|
|
55
|
+
flex-direction: column-reverse;
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
`, [cB('tabs-bar', `
|
|
58
|
+
top: 0;
|
|
59
|
+
`)]), cB('tabs-rail', `
|
|
38
60
|
padding: 3px;
|
|
39
61
|
border-radius: var(--n-tab-border-radius);
|
|
40
62
|
width: 100%;
|
|
@@ -84,6 +106,14 @@ export default cB('tabs', `
|
|
|
84
106
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
85
107
|
`)]), cM('shadow-after', [c('&::after', `
|
|
86
108
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
109
|
+
`)]), cB('tabs-nav-y-scroll', `
|
|
110
|
+
height: 100%;
|
|
111
|
+
width: 100%;
|
|
112
|
+
overflow-y: auto;
|
|
113
|
+
scrollbar-width: none;
|
|
114
|
+
`, [c('&::-webkit-scrollbar', `
|
|
115
|
+
width: 0;
|
|
116
|
+
height: 0;
|
|
87
117
|
`)]), c('&::before, &::after', `
|
|
88
118
|
transition: box-shadow .3s var(--n-bezier);
|
|
89
119
|
pointer-events: none;
|
|
@@ -243,4 +273,21 @@ export default cB('tabs', `
|
|
|
243
273
|
background-color: #0000;
|
|
244
274
|
font-weight: var(--n-tab-font-weight-active);
|
|
245
275
|
color: var(--n-tab-text-color-active);
|
|
246
|
-
`), cM('disabled', 'color: var(--n-tab-text-color-disabled);')]), cB('tabs-scroll-padding', 'border-bottom: 1px solid var(--n-tab-border-color);')])
|
|
276
|
+
`), cM('disabled', 'color: var(--n-tab-text-color-disabled);')]), cB('tabs-scroll-padding', 'border-bottom: 1px solid var(--n-tab-border-color);')]), cM('left, right', [cB('tabs-wrapper', `
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
`, [cB('tabs-tab-wrapper', `
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
`, [cB('tabs-tab-pad', `
|
|
281
|
+
height: var(--n-tab-gap);
|
|
282
|
+
width: 100%;
|
|
283
|
+
`)])]), cB('tabs-nav-scroll-content', `
|
|
284
|
+
border-bottom: none;
|
|
285
|
+
`)]), cM('left', [cB('tabs-nav-scroll-content', `
|
|
286
|
+
box-sizing: border-box;
|
|
287
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
288
|
+
`)]), cM('right', [cB('tabs-nav-scroll-content', `
|
|
289
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
290
|
+
`)]), cM('bottom', [cB('tabs-nav-scroll-content', `
|
|
291
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
292
|
+
border-bottom: none;
|
|
293
|
+
`)])])]);
|
|
@@ -8,12 +8,18 @@ declare const _default: {
|
|
|
8
8
|
tabPaddingSmallLine: string;
|
|
9
9
|
tabPaddingMediumLine: string;
|
|
10
10
|
tabPaddingLargeLine: string;
|
|
11
|
+
tabPaddingVerticalSmallLine: string;
|
|
12
|
+
tabPaddingVerticalMediumLine: string;
|
|
13
|
+
tabPaddingVerticalLargeLine: string;
|
|
11
14
|
tabGapSmallBar: string;
|
|
12
15
|
tabGapMediumBar: string;
|
|
13
16
|
tabGapLargeBar: string;
|
|
14
17
|
tabPaddingSmallBar: string;
|
|
15
18
|
tabPaddingMediumBar: string;
|
|
16
19
|
tabPaddingLargeBar: string;
|
|
20
|
+
tabPaddingVerticalSmallBar: string;
|
|
21
|
+
tabPaddingVerticalMediumBar: string;
|
|
22
|
+
tabPaddingVerticalLargeBar: string;
|
|
17
23
|
tabGapSmallCard: string;
|
|
18
24
|
tabGapMediumCard: string;
|
|
19
25
|
tabGapLargeCard: string;
|
|
@@ -23,6 +29,12 @@ declare const _default: {
|
|
|
23
29
|
tabPaddingSmallSegment: string;
|
|
24
30
|
tabPaddingMediumSegment: string;
|
|
25
31
|
tabPaddingLargeSegment: string;
|
|
32
|
+
tabPaddingVerticalLargeSegment: string;
|
|
33
|
+
tabPaddingVerticalSmallCard: string;
|
|
34
|
+
tabPaddingVerticalMediumCard: string;
|
|
35
|
+
tabPaddingVerticalLargeCard: string;
|
|
36
|
+
tabPaddingVerticalSmallSegment: string;
|
|
37
|
+
tabPaddingVerticalMediumSegment: string;
|
|
26
38
|
tabGapSmallSegment: string;
|
|
27
39
|
tabGapMediumSegment: string;
|
|
28
40
|
tabGapLargeSegment: string;
|
|
@@ -8,12 +8,18 @@ export default {
|
|
|
8
8
|
tabPaddingSmallLine: '6px 0',
|
|
9
9
|
tabPaddingMediumLine: '10px 0',
|
|
10
10
|
tabPaddingLargeLine: '14px 0',
|
|
11
|
+
tabPaddingVerticalSmallLine: '0 6px',
|
|
12
|
+
tabPaddingVerticalMediumLine: '0 10px',
|
|
13
|
+
tabPaddingVerticalLargeLine: '0 14px',
|
|
11
14
|
tabGapSmallBar: '36px',
|
|
12
15
|
tabGapMediumBar: '36px',
|
|
13
16
|
tabGapLargeBar: '36px',
|
|
14
17
|
tabPaddingSmallBar: '4px 0',
|
|
15
18
|
tabPaddingMediumBar: '6px 0',
|
|
16
19
|
tabPaddingLargeBar: '10px 0',
|
|
20
|
+
tabPaddingVerticalSmallBar: '0 4px',
|
|
21
|
+
tabPaddingVerticalMediumBar: '0 6px ',
|
|
22
|
+
tabPaddingVerticalLargeBar: '0 10px ',
|
|
17
23
|
tabGapSmallCard: '4px',
|
|
18
24
|
tabGapMediumCard: '4px',
|
|
19
25
|
tabGapLargeCard: '4px',
|
|
@@ -23,6 +29,12 @@ export default {
|
|
|
23
29
|
tabPaddingSmallSegment: '4px 0',
|
|
24
30
|
tabPaddingMediumSegment: '6px 0',
|
|
25
31
|
tabPaddingLargeSegment: '8px 0',
|
|
32
|
+
tabPaddingVerticalLargeSegment: '0 8px',
|
|
33
|
+
tabPaddingVerticalSmallCard: '10px 6px',
|
|
34
|
+
tabPaddingVerticalMediumCard: '12px 8px',
|
|
35
|
+
tabPaddingVerticalLargeCard: '16px 8px',
|
|
36
|
+
tabPaddingVerticalSmallSegment: '0 4px',
|
|
37
|
+
tabPaddingVerticalMediumSegment: '0 6px',
|
|
26
38
|
tabGapSmallSegment: '0',
|
|
27
39
|
tabGapMediumSegment: '0',
|
|
28
40
|
tabGapLargeSegment: '0',
|
|
@@ -43,12 +43,18 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
43
43
|
tabPaddingSmallLine: string;
|
|
44
44
|
tabPaddingMediumLine: string;
|
|
45
45
|
tabPaddingLargeLine: string;
|
|
46
|
+
tabPaddingVerticalSmallLine: string;
|
|
47
|
+
tabPaddingVerticalMediumLine: string;
|
|
48
|
+
tabPaddingVerticalLargeLine: string;
|
|
46
49
|
tabGapSmallBar: string;
|
|
47
50
|
tabGapMediumBar: string;
|
|
48
51
|
tabGapLargeBar: string;
|
|
49
52
|
tabPaddingSmallBar: string;
|
|
50
53
|
tabPaddingMediumBar: string;
|
|
51
54
|
tabPaddingLargeBar: string;
|
|
55
|
+
tabPaddingVerticalSmallBar: string;
|
|
56
|
+
tabPaddingVerticalMediumBar: string;
|
|
57
|
+
tabPaddingVerticalLargeBar: string;
|
|
52
58
|
tabGapSmallCard: string;
|
|
53
59
|
tabGapMediumCard: string;
|
|
54
60
|
tabGapLargeCard: string;
|
|
@@ -58,6 +64,12 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
58
64
|
tabPaddingSmallSegment: string;
|
|
59
65
|
tabPaddingMediumSegment: string;
|
|
60
66
|
tabPaddingLargeSegment: string;
|
|
67
|
+
tabPaddingVerticalLargeSegment: string;
|
|
68
|
+
tabPaddingVerticalSmallCard: string;
|
|
69
|
+
tabPaddingVerticalMediumCard: string;
|
|
70
|
+
tabPaddingVerticalLargeCard: string;
|
|
71
|
+
tabPaddingVerticalSmallSegment: string;
|
|
72
|
+
tabPaddingVerticalMediumSegment: string;
|
|
61
73
|
tabGapSmallSegment: string;
|
|
62
74
|
tabGapMediumSegment: string;
|
|
63
75
|
tabGapLargeSegment: string;
|
|
@@ -67,7 +79,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
67
79
|
closeSize: string;
|
|
68
80
|
closeIconSize: string;
|
|
69
81
|
};
|
|
70
|
-
export
|
|
82
|
+
export type TabsThemeVars = ReturnType<typeof self>;
|
|
71
83
|
declare const tabsLight: Theme<'Tabs', TabsThemeVars>;
|
|
72
84
|
export default tabsLight;
|
|
73
|
-
export
|
|
85
|
+
export type TabsTheme = typeof tabsLight;
|
package/es/tag/src/Tag.d.ts
CHANGED
|
@@ -316,7 +316,7 @@ interface TagInjection {
|
|
|
316
316
|
roundRef: Ref<boolean>;
|
|
317
317
|
}
|
|
318
318
|
export declare const tagInjectionKey: import("vue").InjectionKey<TagInjection>;
|
|
319
|
-
export
|
|
319
|
+
export type TagProps = ExtractPublicPropTypes<typeof tagProps>;
|
|
320
320
|
declare const _default: import("vue").DefineComponent<{
|
|
321
321
|
bordered: {
|
|
322
322
|
type: PropType<boolean | undefined>;
|
package/es/tag/styles/light.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
89
89
|
closeMargin: string;
|
|
90
90
|
closeMarginRtl: string;
|
|
91
91
|
};
|
|
92
|
-
export
|
|
92
|
+
export type TagThemeVars = ReturnType<typeof self>;
|
|
93
93
|
declare const tagLight: Theme<'Tag', TagThemeVars>;
|
|
94
94
|
export default tagLight;
|
|
95
|
-
export
|
|
95
|
+
export type TagTheme = typeof tagLight;
|
package/es/themes/interface.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GlobalTheme } from '../config-provider';
|
|
2
|
-
export
|
|
2
|
+
export type BuiltInGlobalTheme = Omit<Required<GlobalTheme>, 'InternalSelectMenu' | 'InternalSelection'>;
|
package/es/themes/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalTheme } from '../config-provider';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ComponentKey = Exclude<keyof GlobalTheme, 'name'>;
|
|
3
|
+
type ComponentThemes = Array<Exclude<GlobalTheme[ComponentKey], undefined>>;
|
|
4
4
|
export declare function createTheme(name: string, componentThemes: ComponentThemes): GlobalTheme;
|
|
5
5
|
export declare function createTheme(componentThemes: ComponentThemes): GlobalTheme;
|
|
6
6
|
export {};
|
package/es/thing/src/Thing.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const thingProps: {
|
|
|
27
27
|
titleFontWeight: string;
|
|
28
28
|
}, any>>>;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type ThingProps = ExtractPublicPropTypes<typeof thingProps>;
|
|
31
31
|
declare const _default: import("vue").DefineComponent<{
|
|
32
32
|
title: StringConstructor;
|
|
33
33
|
titleExtra: StringConstructor;
|
|
@@ -6,7 +6,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
6
6
|
textColor: string;
|
|
7
7
|
titleFontWeight: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ThingThemeVars = ReturnType<typeof self>;
|
|
10
10
|
declare const thingLight: Theme<'Thing', ThingThemeVars>;
|
|
11
11
|
export default thingLight;
|
|
12
|
-
export
|
|
12
|
+
export type ThingTheme = typeof thingLight;
|
package/es/time/src/Time.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const timeProps: {
|
|
|
18
18
|
readonly text: BooleanConstructor;
|
|
19
19
|
readonly timeZone: StringConstructor;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type TimeProps = ExtractPublicPropTypes<typeof timeProps>;
|
|
22
22
|
declare const _default: import("vue").DefineComponent<{
|
|
23
23
|
readonly time: {
|
|
24
24
|
readonly type: PropType<number | Date>;
|
|
@@ -940,7 +940,7 @@ export declare const timePickerProps: {
|
|
|
940
940
|
}, any>;
|
|
941
941
|
}>>>;
|
|
942
942
|
};
|
|
943
|
-
export
|
|
943
|
+
export type TimePickerProps = ExtractPublicPropTypes<typeof timePickerProps>;
|
|
944
944
|
declare const _default: import("vue").DefineComponent<{
|
|
945
945
|
to: {
|
|
946
946
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -2,7 +2,7 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { ScrollbarInst } from '../../_internal';
|
|
3
3
|
import type { MergedTheme } from '../../_mixins';
|
|
4
4
|
import type { TimePickerTheme } from '../styles';
|
|
5
|
-
export
|
|
5
|
+
export type ItemValue = number | 'am' | 'pm';
|
|
6
6
|
export interface Item {
|
|
7
7
|
label: string;
|
|
8
8
|
value: ItemValue;
|
|
@@ -20,14 +20,14 @@ export interface PanelRef {
|
|
|
20
20
|
secondScrollRef?: ScrollbarInst;
|
|
21
21
|
amPmScrollRef?: ScrollbarInst;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
23
|
+
export type OnUpdateValue = ((value: number, formattedValue: string) => void) & ((value: number | null, formattedValue: string | null) => void);
|
|
24
|
+
export type OnUpdateValueImpl = (value: number | null, formattedValue: string | null) => void;
|
|
25
|
+
export type OnUpdateFormattedValue = ((value: string, timestampValue: number) => void) & ((value: string | null, timestampValue: number | null) => void);
|
|
26
|
+
export type OnUpdateFormattedValueImpl = (value: string | null, timestampValue: number | null) => void;
|
|
27
|
+
export type IsHourDisabled = (hour: number) => boolean;
|
|
28
|
+
export type IsMinuteDisabled = (minute: number, hour: number | null) => boolean;
|
|
29
|
+
export type IsSecondDisabled = (second: number, minute: number | null, hour: number | null) => boolean;
|
|
30
|
+
export type Size = 'small' | 'medium' | 'large';
|
|
31
31
|
export interface TimePickerInst {
|
|
32
32
|
focus: () => void;
|
|
33
33
|
blur: () => void;
|
|
@@ -16,7 +16,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
16
16
|
itemWidth: string;
|
|
17
17
|
panelActionPadding: string;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type TimePickerThemeVars = ReturnType<typeof self>;
|
|
20
20
|
declare const timePickerLight: import("../../_mixins").Theme<"TimePicker", {
|
|
21
21
|
panelColor: string;
|
|
22
22
|
panelBoxShadow: string;
|
|
@@ -305,4 +305,4 @@ declare const timePickerLight: import("../../_mixins").Theme<"TimePicker", {
|
|
|
305
305
|
}, any>;
|
|
306
306
|
}>;
|
|
307
307
|
export default timePickerLight;
|
|
308
|
-
export
|
|
308
|
+
export type TimePickerTheme = typeof timePickerLight;
|
|
@@ -92,7 +92,7 @@ export interface TimelineInjection {
|
|
|
92
92
|
mergedClsPrefixRef: Ref<string>;
|
|
93
93
|
}
|
|
94
94
|
export declare const timelineInjectionKey: import("vue").InjectionKey<TimelineInjection>;
|
|
95
|
-
export
|
|
95
|
+
export type TimelineProps = ExtractPublicPropTypes<typeof timelineProps>;
|
|
96
96
|
declare const _default: import("vue").DefineComponent<{
|
|
97
97
|
readonly horizontal: BooleanConstructor;
|
|
98
98
|
readonly itemPlacement: {
|
|
@@ -14,7 +14,7 @@ export declare const timelineItemProps: {
|
|
|
14
14
|
default: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type TimelineItemProps = ExtractPublicPropTypes<typeof timelineItemProps>;
|
|
18
18
|
declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
time: PropType<string | number>;
|
|
20
20
|
title: StringConstructor;
|
|
@@ -24,7 +24,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
24
24
|
iconSizeMedium: string;
|
|
25
25
|
iconSizeLarge: string;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type TimelineThemeVars = ReturnType<typeof self>;
|
|
28
28
|
declare const timelineLight: Theme<'Timeline', TimelineThemeVars>;
|
|
29
29
|
export default timelineLight;
|
|
30
|
-
export
|
|
30
|
+
export type TimelineTheme = typeof timelineLight;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PopoverInst } from '../../popover';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
export
|
|
3
|
+
export type TooltipInst = PopoverInst;
|
|
4
4
|
export declare const tooltipProps: {
|
|
5
5
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Tooltip", {
|
|
6
6
|
borderRadius: string;
|
|
@@ -153,7 +153,7 @@ export declare const tooltipProps: {
|
|
|
153
153
|
minWidth: NumberConstructor;
|
|
154
154
|
maxWidth: NumberConstructor;
|
|
155
155
|
};
|
|
156
|
-
export
|
|
156
|
+
export type TooltipProps = ExtractPublicPropTypes<typeof tooltipProps>;
|
|
157
157
|
declare const _default: import("vue").DefineComponent<{
|
|
158
158
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Tooltip", {
|
|
159
159
|
borderRadius: string;
|
|
@@ -6,7 +6,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
6
6
|
textColor: string;
|
|
7
7
|
padding: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type TooltipThemeVars = ReturnType<typeof self>;
|
|
10
10
|
declare const tooltipLight: import("../../_mixins/use-theme").Theme<"Tooltip", {
|
|
11
11
|
borderRadius: string;
|
|
12
12
|
boxShadow: string;
|
|
@@ -30,4 +30,4 @@ declare const tooltipLight: import("../../_mixins/use-theme").Theme<"Tooltip", {
|
|
|
30
30
|
}, any>;
|
|
31
31
|
}>;
|
|
32
32
|
export default tooltipLight;
|
|
33
|
-
export
|
|
33
|
+
export type TooltipTheme = typeof tooltipLight;
|