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/lib/table/src/Table.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare const tableProps: {
|
|
|
104
104
|
tdPaddingLarge: string;
|
|
105
105
|
}, any>>>;
|
|
106
106
|
};
|
|
107
|
-
export
|
|
107
|
+
export type TableProps = ExtractPublicPropTypes<typeof tableProps>;
|
|
108
108
|
declare const _default: import("vue").DefineComponent<{
|
|
109
109
|
bordered: {
|
|
110
110
|
type: BooleanConstructor;
|
|
@@ -28,7 +28,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
28
28
|
tdPaddingMedium: string;
|
|
29
29
|
tdPaddingLarge: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type TableThemeVars = ReturnType<typeof self>;
|
|
32
32
|
declare const tableLight: Theme<'Table', TableThemeVars>;
|
|
33
33
|
export default tableLight;
|
|
34
|
-
export
|
|
34
|
+
export type TableTheme = typeof tableLight;
|
package/lib/tabs/src/Tab.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const tabProps: {
|
|
|
20
20
|
readonly internalAddable: BooleanConstructor;
|
|
21
21
|
readonly internalCreatedByPane: BooleanConstructor;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type TabProps = ExtractPublicPropTypes<typeof tabProps>;
|
|
24
24
|
declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
26
|
[key: string]: any;
|
|
@@ -23,7 +23,7 @@ export declare const tabPaneProps: {
|
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
}> | (() => VNodeChild)>;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type TabPaneProps = ExtractPublicPropTypes<typeof tabPaneProps>;
|
|
27
27
|
declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
readonly tab: PropType<string | number | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
29
|
[key: string]: any;
|
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export declare const tabsProps: {
|
|
|
20
20
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
21
21
|
readonly default: "medium";
|
|
22
22
|
};
|
|
23
|
+
readonly placement: {
|
|
24
|
+
readonly type: PropType<"left" | "right" | "bottom" | "top">;
|
|
25
|
+
readonly default: "top";
|
|
26
|
+
};
|
|
23
27
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
24
28
|
readonly barWidth: NumberConstructor;
|
|
25
29
|
readonly paneClass: StringConstructor;
|
|
@@ -81,12 +85,18 @@ export declare const tabsProps: {
|
|
|
81
85
|
tabPaddingSmallLine: string;
|
|
82
86
|
tabPaddingMediumLine: string;
|
|
83
87
|
tabPaddingLargeLine: string;
|
|
88
|
+
tabPaddingVerticalSmallLine: string;
|
|
89
|
+
tabPaddingVerticalMediumLine: string;
|
|
90
|
+
tabPaddingVerticalLargeLine: string;
|
|
84
91
|
tabGapSmallBar: string;
|
|
85
92
|
tabGapMediumBar: string;
|
|
86
93
|
tabGapLargeBar: string;
|
|
87
94
|
tabPaddingSmallBar: string;
|
|
88
95
|
tabPaddingMediumBar: string;
|
|
89
96
|
tabPaddingLargeBar: string;
|
|
97
|
+
tabPaddingVerticalSmallBar: string;
|
|
98
|
+
tabPaddingVerticalMediumBar: string;
|
|
99
|
+
tabPaddingVerticalLargeBar: string;
|
|
90
100
|
tabGapSmallCard: string;
|
|
91
101
|
tabGapMediumCard: string;
|
|
92
102
|
tabGapLargeCard: string;
|
|
@@ -96,6 +106,12 @@ export declare const tabsProps: {
|
|
|
96
106
|
tabPaddingSmallSegment: string;
|
|
97
107
|
tabPaddingMediumSegment: string;
|
|
98
108
|
tabPaddingLargeSegment: string;
|
|
109
|
+
tabPaddingVerticalLargeSegment: string;
|
|
110
|
+
tabPaddingVerticalSmallCard: string;
|
|
111
|
+
tabPaddingVerticalMediumCard: string;
|
|
112
|
+
tabPaddingVerticalLargeCard: string;
|
|
113
|
+
tabPaddingVerticalSmallSegment: string;
|
|
114
|
+
tabPaddingVerticalMediumSegment: string;
|
|
99
115
|
tabGapSmallSegment: string;
|
|
100
116
|
tabGapMediumSegment: string;
|
|
101
117
|
tabGapLargeSegment: string;
|
|
@@ -148,12 +164,18 @@ export declare const tabsProps: {
|
|
|
148
164
|
tabPaddingSmallLine: string;
|
|
149
165
|
tabPaddingMediumLine: string;
|
|
150
166
|
tabPaddingLargeLine: string;
|
|
167
|
+
tabPaddingVerticalSmallLine: string;
|
|
168
|
+
tabPaddingVerticalMediumLine: string;
|
|
169
|
+
tabPaddingVerticalLargeLine: string;
|
|
151
170
|
tabGapSmallBar: string;
|
|
152
171
|
tabGapMediumBar: string;
|
|
153
172
|
tabGapLargeBar: string;
|
|
154
173
|
tabPaddingSmallBar: string;
|
|
155
174
|
tabPaddingMediumBar: string;
|
|
156
175
|
tabPaddingLargeBar: string;
|
|
176
|
+
tabPaddingVerticalSmallBar: string;
|
|
177
|
+
tabPaddingVerticalMediumBar: string;
|
|
178
|
+
tabPaddingVerticalLargeBar: string;
|
|
157
179
|
tabGapSmallCard: string;
|
|
158
180
|
tabGapMediumCard: string;
|
|
159
181
|
tabGapLargeCard: string;
|
|
@@ -163,6 +185,12 @@ export declare const tabsProps: {
|
|
|
163
185
|
tabPaddingSmallSegment: string;
|
|
164
186
|
tabPaddingMediumSegment: string;
|
|
165
187
|
tabPaddingLargeSegment: string;
|
|
188
|
+
tabPaddingVerticalLargeSegment: string;
|
|
189
|
+
tabPaddingVerticalSmallCard: string;
|
|
190
|
+
tabPaddingVerticalMediumCard: string;
|
|
191
|
+
tabPaddingVerticalLargeCard: string;
|
|
192
|
+
tabPaddingVerticalSmallSegment: string;
|
|
193
|
+
tabPaddingVerticalMediumSegment: string;
|
|
166
194
|
tabGapSmallSegment: string;
|
|
167
195
|
tabGapMediumSegment: string;
|
|
168
196
|
tabGapLargeSegment: string;
|
|
@@ -215,12 +243,18 @@ export declare const tabsProps: {
|
|
|
215
243
|
tabPaddingSmallLine: string;
|
|
216
244
|
tabPaddingMediumLine: string;
|
|
217
245
|
tabPaddingLargeLine: string;
|
|
246
|
+
tabPaddingVerticalSmallLine: string;
|
|
247
|
+
tabPaddingVerticalMediumLine: string;
|
|
248
|
+
tabPaddingVerticalLargeLine: string;
|
|
218
249
|
tabGapSmallBar: string;
|
|
219
250
|
tabGapMediumBar: string;
|
|
220
251
|
tabGapLargeBar: string;
|
|
221
252
|
tabPaddingSmallBar: string;
|
|
222
253
|
tabPaddingMediumBar: string;
|
|
223
254
|
tabPaddingLargeBar: string;
|
|
255
|
+
tabPaddingVerticalSmallBar: string;
|
|
256
|
+
tabPaddingVerticalMediumBar: string;
|
|
257
|
+
tabPaddingVerticalLargeBar: string;
|
|
224
258
|
tabGapSmallCard: string;
|
|
225
259
|
tabGapMediumCard: string;
|
|
226
260
|
tabGapLargeCard: string;
|
|
@@ -230,6 +264,12 @@ export declare const tabsProps: {
|
|
|
230
264
|
tabPaddingSmallSegment: string;
|
|
231
265
|
tabPaddingMediumSegment: string;
|
|
232
266
|
tabPaddingLargeSegment: string;
|
|
267
|
+
tabPaddingVerticalLargeSegment: string;
|
|
268
|
+
tabPaddingVerticalSmallCard: string;
|
|
269
|
+
tabPaddingVerticalMediumCard: string;
|
|
270
|
+
tabPaddingVerticalLargeCard: string;
|
|
271
|
+
tabPaddingVerticalSmallSegment: string;
|
|
272
|
+
tabPaddingVerticalMediumSegment: string;
|
|
233
273
|
tabGapSmallSegment: string;
|
|
234
274
|
tabGapMediumSegment: string;
|
|
235
275
|
tabGapLargeSegment: string;
|
|
@@ -240,7 +280,7 @@ export declare const tabsProps: {
|
|
|
240
280
|
closeIconSize: string;
|
|
241
281
|
}, any>>>;
|
|
242
282
|
};
|
|
243
|
-
export
|
|
283
|
+
export type TabsProps = ExtractPublicPropTypes<typeof tabsProps>;
|
|
244
284
|
declare const _default: import("vue").DefineComponent<{
|
|
245
285
|
readonly value: PropType<string | number>;
|
|
246
286
|
readonly defaultValue: PropType<string | number>;
|
|
@@ -258,6 +298,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
298
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
259
299
|
readonly default: "medium";
|
|
260
300
|
};
|
|
301
|
+
readonly placement: {
|
|
302
|
+
readonly type: PropType<"left" | "right" | "bottom" | "top">;
|
|
303
|
+
readonly default: "top";
|
|
304
|
+
};
|
|
261
305
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
262
306
|
readonly barWidth: NumberConstructor;
|
|
263
307
|
readonly paneClass: StringConstructor;
|
|
@@ -319,12 +363,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
363
|
tabPaddingSmallLine: string;
|
|
320
364
|
tabPaddingMediumLine: string;
|
|
321
365
|
tabPaddingLargeLine: string;
|
|
366
|
+
tabPaddingVerticalSmallLine: string;
|
|
367
|
+
tabPaddingVerticalMediumLine: string;
|
|
368
|
+
tabPaddingVerticalLargeLine: string;
|
|
322
369
|
tabGapSmallBar: string;
|
|
323
370
|
tabGapMediumBar: string;
|
|
324
371
|
tabGapLargeBar: string;
|
|
325
372
|
tabPaddingSmallBar: string;
|
|
326
373
|
tabPaddingMediumBar: string;
|
|
327
374
|
tabPaddingLargeBar: string;
|
|
375
|
+
tabPaddingVerticalSmallBar: string;
|
|
376
|
+
tabPaddingVerticalMediumBar: string;
|
|
377
|
+
tabPaddingVerticalLargeBar: string;
|
|
328
378
|
tabGapSmallCard: string;
|
|
329
379
|
tabGapMediumCard: string;
|
|
330
380
|
tabGapLargeCard: string;
|
|
@@ -334,6 +384,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
334
384
|
tabPaddingSmallSegment: string;
|
|
335
385
|
tabPaddingMediumSegment: string;
|
|
336
386
|
tabPaddingLargeSegment: string;
|
|
387
|
+
tabPaddingVerticalLargeSegment: string;
|
|
388
|
+
tabPaddingVerticalSmallCard: string;
|
|
389
|
+
tabPaddingVerticalMediumCard: string;
|
|
390
|
+
tabPaddingVerticalLargeCard: string;
|
|
391
|
+
tabPaddingVerticalSmallSegment: string;
|
|
392
|
+
tabPaddingVerticalMediumSegment: string;
|
|
337
393
|
tabGapSmallSegment: string;
|
|
338
394
|
tabGapMediumSegment: string;
|
|
339
395
|
tabGapLargeSegment: string;
|
|
@@ -386,12 +442,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
386
442
|
tabPaddingSmallLine: string;
|
|
387
443
|
tabPaddingMediumLine: string;
|
|
388
444
|
tabPaddingLargeLine: string;
|
|
445
|
+
tabPaddingVerticalSmallLine: string;
|
|
446
|
+
tabPaddingVerticalMediumLine: string;
|
|
447
|
+
tabPaddingVerticalLargeLine: string;
|
|
389
448
|
tabGapSmallBar: string;
|
|
390
449
|
tabGapMediumBar: string;
|
|
391
450
|
tabGapLargeBar: string;
|
|
392
451
|
tabPaddingSmallBar: string;
|
|
393
452
|
tabPaddingMediumBar: string;
|
|
394
453
|
tabPaddingLargeBar: string;
|
|
454
|
+
tabPaddingVerticalSmallBar: string;
|
|
455
|
+
tabPaddingVerticalMediumBar: string;
|
|
456
|
+
tabPaddingVerticalLargeBar: string;
|
|
395
457
|
tabGapSmallCard: string;
|
|
396
458
|
tabGapMediumCard: string;
|
|
397
459
|
tabGapLargeCard: string;
|
|
@@ -401,6 +463,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
401
463
|
tabPaddingSmallSegment: string;
|
|
402
464
|
tabPaddingMediumSegment: string;
|
|
403
465
|
tabPaddingLargeSegment: string;
|
|
466
|
+
tabPaddingVerticalLargeSegment: string;
|
|
467
|
+
tabPaddingVerticalSmallCard: string;
|
|
468
|
+
tabPaddingVerticalMediumCard: string;
|
|
469
|
+
tabPaddingVerticalLargeCard: string;
|
|
470
|
+
tabPaddingVerticalSmallSegment: string;
|
|
471
|
+
tabPaddingVerticalMediumSegment: string;
|
|
404
472
|
tabGapSmallSegment: string;
|
|
405
473
|
tabGapMediumSegment: string;
|
|
406
474
|
tabGapLargeSegment: string;
|
|
@@ -453,12 +521,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
453
521
|
tabPaddingSmallLine: string;
|
|
454
522
|
tabPaddingMediumLine: string;
|
|
455
523
|
tabPaddingLargeLine: string;
|
|
524
|
+
tabPaddingVerticalSmallLine: string;
|
|
525
|
+
tabPaddingVerticalMediumLine: string;
|
|
526
|
+
tabPaddingVerticalLargeLine: string;
|
|
456
527
|
tabGapSmallBar: string;
|
|
457
528
|
tabGapMediumBar: string;
|
|
458
529
|
tabGapLargeBar: string;
|
|
459
530
|
tabPaddingSmallBar: string;
|
|
460
531
|
tabPaddingMediumBar: string;
|
|
461
532
|
tabPaddingLargeBar: string;
|
|
533
|
+
tabPaddingVerticalSmallBar: string;
|
|
534
|
+
tabPaddingVerticalMediumBar: string;
|
|
535
|
+
tabPaddingVerticalLargeBar: string;
|
|
462
536
|
tabGapSmallCard: string;
|
|
463
537
|
tabGapMediumCard: string;
|
|
464
538
|
tabGapLargeCard: string;
|
|
@@ -468,6 +542,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
468
542
|
tabPaddingSmallSegment: string;
|
|
469
543
|
tabPaddingMediumSegment: string;
|
|
470
544
|
tabPaddingLargeSegment: string;
|
|
545
|
+
tabPaddingVerticalLargeSegment: string;
|
|
546
|
+
tabPaddingVerticalSmallCard: string;
|
|
547
|
+
tabPaddingVerticalMediumCard: string;
|
|
548
|
+
tabPaddingVerticalLargeCard: string;
|
|
549
|
+
tabPaddingVerticalSmallSegment: string;
|
|
550
|
+
tabPaddingVerticalMediumSegment: string;
|
|
471
551
|
tabGapSmallSegment: string;
|
|
472
552
|
tabGapMediumSegment: string;
|
|
473
553
|
tabGapLargeSegment: string;
|
|
@@ -559,6 +639,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
559
639
|
'--n-tab-font-weight': string;
|
|
560
640
|
'--n-tab-font-weight-active': string;
|
|
561
641
|
'--n-tab-padding': string;
|
|
642
|
+
'--n-tab-padding-vertical': string;
|
|
562
643
|
'--n-tab-gap': string;
|
|
563
644
|
'--n-pane-padding': string;
|
|
564
645
|
'--n-font-weight-strong': string;
|
|
@@ -590,6 +671,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
590
671
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
591
672
|
readonly default: "medium";
|
|
592
673
|
};
|
|
674
|
+
readonly placement: {
|
|
675
|
+
readonly type: PropType<"left" | "right" | "bottom" | "top">;
|
|
676
|
+
readonly default: "top";
|
|
677
|
+
};
|
|
593
678
|
readonly tabStyle: PropType<string | CSSProperties>;
|
|
594
679
|
readonly barWidth: NumberConstructor;
|
|
595
680
|
readonly paneClass: StringConstructor;
|
|
@@ -651,12 +736,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
651
736
|
tabPaddingSmallLine: string;
|
|
652
737
|
tabPaddingMediumLine: string;
|
|
653
738
|
tabPaddingLargeLine: string;
|
|
739
|
+
tabPaddingVerticalSmallLine: string;
|
|
740
|
+
tabPaddingVerticalMediumLine: string;
|
|
741
|
+
tabPaddingVerticalLargeLine: string;
|
|
654
742
|
tabGapSmallBar: string;
|
|
655
743
|
tabGapMediumBar: string;
|
|
656
744
|
tabGapLargeBar: string;
|
|
657
745
|
tabPaddingSmallBar: string;
|
|
658
746
|
tabPaddingMediumBar: string;
|
|
659
747
|
tabPaddingLargeBar: string;
|
|
748
|
+
tabPaddingVerticalSmallBar: string;
|
|
749
|
+
tabPaddingVerticalMediumBar: string;
|
|
750
|
+
tabPaddingVerticalLargeBar: string;
|
|
660
751
|
tabGapSmallCard: string;
|
|
661
752
|
tabGapMediumCard: string;
|
|
662
753
|
tabGapLargeCard: string;
|
|
@@ -666,6 +757,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
666
757
|
tabPaddingSmallSegment: string;
|
|
667
758
|
tabPaddingMediumSegment: string;
|
|
668
759
|
tabPaddingLargeSegment: string;
|
|
760
|
+
tabPaddingVerticalLargeSegment: string;
|
|
761
|
+
tabPaddingVerticalSmallCard: string;
|
|
762
|
+
tabPaddingVerticalMediumCard: string;
|
|
763
|
+
tabPaddingVerticalLargeCard: string;
|
|
764
|
+
tabPaddingVerticalSmallSegment: string;
|
|
765
|
+
tabPaddingVerticalMediumSegment: string;
|
|
669
766
|
tabGapSmallSegment: string;
|
|
670
767
|
tabGapMediumSegment: string;
|
|
671
768
|
tabGapLargeSegment: string;
|
|
@@ -718,12 +815,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
718
815
|
tabPaddingSmallLine: string;
|
|
719
816
|
tabPaddingMediumLine: string;
|
|
720
817
|
tabPaddingLargeLine: string;
|
|
818
|
+
tabPaddingVerticalSmallLine: string;
|
|
819
|
+
tabPaddingVerticalMediumLine: string;
|
|
820
|
+
tabPaddingVerticalLargeLine: string;
|
|
721
821
|
tabGapSmallBar: string;
|
|
722
822
|
tabGapMediumBar: string;
|
|
723
823
|
tabGapLargeBar: string;
|
|
724
824
|
tabPaddingSmallBar: string;
|
|
725
825
|
tabPaddingMediumBar: string;
|
|
726
826
|
tabPaddingLargeBar: string;
|
|
827
|
+
tabPaddingVerticalSmallBar: string;
|
|
828
|
+
tabPaddingVerticalMediumBar: string;
|
|
829
|
+
tabPaddingVerticalLargeBar: string;
|
|
727
830
|
tabGapSmallCard: string;
|
|
728
831
|
tabGapMediumCard: string;
|
|
729
832
|
tabGapLargeCard: string;
|
|
@@ -733,6 +836,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
733
836
|
tabPaddingSmallSegment: string;
|
|
734
837
|
tabPaddingMediumSegment: string;
|
|
735
838
|
tabPaddingLargeSegment: string;
|
|
839
|
+
tabPaddingVerticalLargeSegment: string;
|
|
840
|
+
tabPaddingVerticalSmallCard: string;
|
|
841
|
+
tabPaddingVerticalMediumCard: string;
|
|
842
|
+
tabPaddingVerticalLargeCard: string;
|
|
843
|
+
tabPaddingVerticalSmallSegment: string;
|
|
844
|
+
tabPaddingVerticalMediumSegment: string;
|
|
736
845
|
tabGapSmallSegment: string;
|
|
737
846
|
tabGapMediumSegment: string;
|
|
738
847
|
tabGapLargeSegment: string;
|
|
@@ -785,12 +894,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
785
894
|
tabPaddingSmallLine: string;
|
|
786
895
|
tabPaddingMediumLine: string;
|
|
787
896
|
tabPaddingLargeLine: string;
|
|
897
|
+
tabPaddingVerticalSmallLine: string;
|
|
898
|
+
tabPaddingVerticalMediumLine: string;
|
|
899
|
+
tabPaddingVerticalLargeLine: string;
|
|
788
900
|
tabGapSmallBar: string;
|
|
789
901
|
tabGapMediumBar: string;
|
|
790
902
|
tabGapLargeBar: string;
|
|
791
903
|
tabPaddingSmallBar: string;
|
|
792
904
|
tabPaddingMediumBar: string;
|
|
793
905
|
tabPaddingLargeBar: string;
|
|
906
|
+
tabPaddingVerticalSmallBar: string;
|
|
907
|
+
tabPaddingVerticalMediumBar: string;
|
|
908
|
+
tabPaddingVerticalLargeBar: string;
|
|
794
909
|
tabGapSmallCard: string;
|
|
795
910
|
tabGapMediumCard: string;
|
|
796
911
|
tabGapLargeCard: string;
|
|
@@ -800,6 +915,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
800
915
|
tabPaddingSmallSegment: string;
|
|
801
916
|
tabPaddingMediumSegment: string;
|
|
802
917
|
tabPaddingLargeSegment: string;
|
|
918
|
+
tabPaddingVerticalLargeSegment: string;
|
|
919
|
+
tabPaddingVerticalSmallCard: string;
|
|
920
|
+
tabPaddingVerticalMediumCard: string;
|
|
921
|
+
tabPaddingVerticalLargeCard: string;
|
|
922
|
+
tabPaddingVerticalSmallSegment: string;
|
|
923
|
+
tabPaddingVerticalMediumSegment: string;
|
|
803
924
|
tabGapSmallSegment: string;
|
|
804
925
|
tabGapMediumSegment: string;
|
|
805
926
|
tabGapLargeSegment: string;
|
|
@@ -813,6 +934,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
813
934
|
readonly type: TabsType;
|
|
814
935
|
readonly size: "small" | "medium" | "large";
|
|
815
936
|
readonly closable: boolean;
|
|
937
|
+
readonly placement: "left" | "right" | "bottom" | "top";
|
|
816
938
|
readonly trigger: "click" | "hover";
|
|
817
939
|
readonly animated: boolean;
|
|
818
940
|
readonly tabsPadding: number;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -23,6 +23,9 @@ exports.tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), {
|
|
|
23
23
|
}, closable: Boolean, justifyContent: String, size: {
|
|
24
24
|
type: String,
|
|
25
25
|
default: 'medium'
|
|
26
|
+
}, placement: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: 'top'
|
|
26
29
|
}, tabStyle: [String, Object], barWidth: Number, paneClass: String, paneStyle: [String, Object], addable: [Boolean, Object], tabsPadding: {
|
|
27
30
|
type: Number,
|
|
28
31
|
default: 0
|
|
@@ -92,24 +95,49 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
92
95
|
return;
|
|
93
96
|
if (tabEl) {
|
|
94
97
|
const disabledClassName = `${mergedClsPrefixRef.value}-tabs-bar--disabled`;
|
|
95
|
-
const { barWidth } = props;
|
|
98
|
+
const { barWidth, placement } = props;
|
|
96
99
|
if (tabEl.dataset.disabled === 'true') {
|
|
97
100
|
barEl.classList.add(disabledClassName);
|
|
98
101
|
}
|
|
99
102
|
else {
|
|
100
103
|
barEl.classList.remove(disabledClassName);
|
|
101
104
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
if (['top', 'bottom'].includes(placement)) {
|
|
106
|
+
clearBarStyle(['top', 'maxHeight', 'height']);
|
|
107
|
+
if (typeof barWidth === 'number' && tabEl.offsetWidth >= barWidth) {
|
|
108
|
+
const offsetDiffLeft = Math.floor((tabEl.offsetWidth - barWidth) / 2) + tabEl.offsetLeft;
|
|
109
|
+
barEl.style.left = `${offsetDiffLeft}px`;
|
|
110
|
+
barEl.style.maxWidth = `${barWidth}px`;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
barEl.style.left = `${tabEl.offsetLeft}px`;
|
|
114
|
+
barEl.style.maxWidth = `${tabEl.offsetWidth}px`;
|
|
115
|
+
}
|
|
116
|
+
barEl.style.width = '8192px';
|
|
117
|
+
void barEl.offsetWidth;
|
|
106
118
|
}
|
|
107
119
|
else {
|
|
108
|
-
|
|
109
|
-
|
|
120
|
+
clearBarStyle(['left', 'maxWidth', 'width']);
|
|
121
|
+
if (typeof barWidth === 'number' && tabEl.offsetHeight >= barWidth) {
|
|
122
|
+
const offsetDiffTop = Math.floor((tabEl.offsetHeight - barWidth) / 2) + tabEl.offsetTop;
|
|
123
|
+
barEl.style.top = `${offsetDiffTop}px`;
|
|
124
|
+
barEl.style.maxHeight = `${barWidth}px`;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
barEl.style.top = `${tabEl.offsetTop}px`;
|
|
128
|
+
barEl.style.maxHeight = `${tabEl.offsetHeight}px`;
|
|
129
|
+
}
|
|
130
|
+
barEl.style.height = '8192px';
|
|
131
|
+
void barEl.offsetHeight;
|
|
110
132
|
}
|
|
111
|
-
|
|
112
|
-
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function clearBarStyle(styleProps) {
|
|
136
|
+
const { value: barEl } = barElRef;
|
|
137
|
+
if (!barEl)
|
|
138
|
+
return;
|
|
139
|
+
for (const prop of styleProps) {
|
|
140
|
+
barEl.style[prop] = '';
|
|
113
141
|
}
|
|
114
142
|
}
|
|
115
143
|
function updateCurrentBarStyle() {
|
|
@@ -341,7 +369,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
341
369
|
// avoid useless rerender
|
|
342
370
|
(0, vue_1.watchEffect)(() => {
|
|
343
371
|
const { value: el } = scrollWrapperElRef;
|
|
344
|
-
if (!el)
|
|
372
|
+
if (!el || ['left', 'right'].includes(props.placement))
|
|
345
373
|
return;
|
|
346
374
|
const { value: clsPrefix } = mergedClsPrefixRef;
|
|
347
375
|
const shadowBeforeClass = `${clsPrefix}-tabs-nav-scroll-wrapper--shadow-before`;
|
|
@@ -387,7 +415,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
387
415
|
segment: 'Segment'
|
|
388
416
|
}[type];
|
|
389
417
|
const sizeType = `${size}${typeSuffix}`;
|
|
390
|
-
const { self: { barColor, closeIconColor, closeIconColorHover, closeIconColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, colorSegment, fontWeightStrong, tabColorSegment, closeSize, closeIconSize, closeColorHover, closeColorPressed, closeBorderRadius, [(0, _utils_1.createKey)('panePadding', size)]: panePadding, [(0, _utils_1.createKey)('tabPadding', sizeType)]: tabPadding, [(0, _utils_1.createKey)('tabGap', sizeType)]: tabGap, [(0, _utils_1.createKey)('tabTextColor', type)]: tabTextColor, [(0, _utils_1.createKey)('tabTextColorActive', type)]: tabTextColorActive, [(0, _utils_1.createKey)('tabTextColorHover', type)]: tabTextColorHover, [(0, _utils_1.createKey)('tabTextColorDisabled', type)]: tabTextColorDisabled, [(0, _utils_1.createKey)('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
418
|
+
const { self: { barColor, closeIconColor, closeIconColorHover, closeIconColorPressed, tabColor, tabBorderColor, paneTextColor, tabFontWeight, tabBorderRadius, tabFontWeightActive, colorSegment, fontWeightStrong, tabColorSegment, closeSize, closeIconSize, closeColorHover, closeColorPressed, closeBorderRadius, [(0, _utils_1.createKey)('panePadding', size)]: panePadding, [(0, _utils_1.createKey)('tabPadding', sizeType)]: tabPadding, [(0, _utils_1.createKey)('tabPaddingVertical', sizeType)]: tabPaddingVertical, [(0, _utils_1.createKey)('tabGap', sizeType)]: tabGap, [(0, _utils_1.createKey)('tabTextColor', type)]: tabTextColor, [(0, _utils_1.createKey)('tabTextColorActive', type)]: tabTextColorActive, [(0, _utils_1.createKey)('tabTextColorHover', type)]: tabTextColorHover, [(0, _utils_1.createKey)('tabTextColorDisabled', type)]: tabTextColorDisabled, [(0, _utils_1.createKey)('tabFontSize', size)]: tabFontSize }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
391
419
|
return {
|
|
392
420
|
'--n-bezier': cubicBezierEaseInOut,
|
|
393
421
|
'--n-color-segment': colorSegment,
|
|
@@ -412,6 +440,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
412
440
|
'--n-tab-font-weight': tabFontWeight,
|
|
413
441
|
'--n-tab-font-weight-active': tabFontWeightActive,
|
|
414
442
|
'--n-tab-padding': tabPadding,
|
|
443
|
+
'--n-tab-padding-vertical': tabPaddingVertical,
|
|
415
444
|
'--n-tab-gap': tabGap,
|
|
416
445
|
'--n-pane-padding': panePadding,
|
|
417
446
|
'--n-font-weight-strong': fontWeightStrong,
|
|
@@ -436,7 +465,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
436
465
|
onAnimationAfterEnter, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender }, exposedMethods);
|
|
437
466
|
},
|
|
438
467
|
render() {
|
|
439
|
-
const { mergedClsPrefix, type, addTabFixed, addable, mergedSize, renderNameListRef, onRender, $slots: { default: defaultSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
468
|
+
const { mergedClsPrefix, type, placement, addTabFixed, addable, mergedSize, renderNameListRef, onRender, $slots: { default: defaultSlot, prefix: prefixSlot, suffix: suffixSlot } } = this;
|
|
440
469
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
441
470
|
const tabPaneChildren = defaultSlot
|
|
442
471
|
? (0, _utils_1.flatten)(defaultSlot()).filter((v) => {
|
|
@@ -453,12 +482,49 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
453
482
|
const isSegment = type === 'segment';
|
|
454
483
|
const mergedJustifyContent = !isCard && !isSegment && this.justifyContent;
|
|
455
484
|
renderNameListRef.value = [];
|
|
485
|
+
const scrollContent = () => {
|
|
486
|
+
const tabs = ((0, vue_1.h)("div", { style: this.tabWrapperStyle, class: [`${mergedClsPrefix}-tabs-wrapper`] },
|
|
487
|
+
mergedJustifyContent ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } })),
|
|
488
|
+
showPane
|
|
489
|
+
? tabPaneChildren.map((tabPaneVNode, index) => {
|
|
490
|
+
renderNameListRef.value.push(tabPaneVNode.props.name);
|
|
491
|
+
return justifyTabDynamicProps((0, vue_1.h)(Tab_1.default, Object.assign({}, tabPaneVNode.props, { internalCreatedByPane: true, internalLeftPadded: index !== 0 &&
|
|
492
|
+
(!mergedJustifyContent ||
|
|
493
|
+
mergedJustifyContent === 'center' ||
|
|
494
|
+
mergedJustifyContent === 'start' ||
|
|
495
|
+
mergedJustifyContent === 'end') }), tabPaneVNode.children
|
|
496
|
+
? {
|
|
497
|
+
default: tabPaneVNode.children.tab
|
|
498
|
+
}
|
|
499
|
+
: undefined));
|
|
500
|
+
})
|
|
501
|
+
: tabChildren.map((tabVNode, index) => {
|
|
502
|
+
renderNameListRef.value.push(tabVNode.props.name);
|
|
503
|
+
if (index !== 0 && !mergedJustifyContent) {
|
|
504
|
+
return justifyTabDynamicProps(createLeftPaddedTabVNode(tabVNode));
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
return justifyTabDynamicProps(tabVNode);
|
|
508
|
+
}
|
|
509
|
+
}),
|
|
510
|
+
!addTabFixed && addable && isCard
|
|
511
|
+
? createAddTag(addable, (showPane ? tabPaneChildren.length : tabChildren.length) !== 0)
|
|
512
|
+
: null,
|
|
513
|
+
mergedJustifyContent ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } }))));
|
|
514
|
+
return ((0, vue_1.h)("div", { ref: "tabsElRef", class: `${mergedClsPrefix}-tabs-nav-scroll-content` },
|
|
515
|
+
isCard && addable ? ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleTabsResize }, {
|
|
516
|
+
default: () => tabs
|
|
517
|
+
})) : (tabs),
|
|
518
|
+
isCard ? (0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-pad` }) : null,
|
|
519
|
+
isCard ? null : ((0, vue_1.h)("div", { ref: "barElRef", class: `${mergedClsPrefix}-tabs-bar` }))));
|
|
520
|
+
};
|
|
456
521
|
return ((0, vue_1.h)("div", { class: [
|
|
457
522
|
`${mergedClsPrefix}-tabs`,
|
|
458
523
|
this.themeClass,
|
|
459
524
|
`${mergedClsPrefix}-tabs--${type}-type`,
|
|
460
525
|
`${mergedClsPrefix}-tabs--${mergedSize}-size`,
|
|
461
|
-
mergedJustifyContent && `${mergedClsPrefix}-tabs--flex
|
|
526
|
+
mergedJustifyContent && `${mergedClsPrefix}-tabs--flex`,
|
|
527
|
+
`${mergedClsPrefix}-tabs--${placement}`
|
|
462
528
|
], style: this.cssVars },
|
|
463
529
|
(0, vue_1.h)("div", { class: [
|
|
464
530
|
// the class should be applied here since it's possible
|
|
@@ -466,6 +532,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
466
532
|
// other. adding a class will make it easy to write the
|
|
467
533
|
// style.
|
|
468
534
|
`${mergedClsPrefix}-tabs-nav--${type}-type`,
|
|
535
|
+
`${mergedClsPrefix}-tabs-nav--${placement}`,
|
|
469
536
|
`${mergedClsPrefix}-tabs-nav`
|
|
470
537
|
] },
|
|
471
538
|
(0, _utils_1.resolveWrappedSlot)(prefixSlot, (children) => children && ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav__prefix` }, children))),
|
|
@@ -487,54 +554,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
487
554
|
return createLeftPaddedTabVNode(tabVNode);
|
|
488
555
|
}
|
|
489
556
|
}))) : ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleNavResize }, {
|
|
490
|
-
default: () => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav-scroll-wrapper`, ref: "scrollWrapperElRef" },
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
const rawWrappedTabs = ((0, vue_1.h)("div", { style: this.tabWrapperStyle, class: `${mergedClsPrefix}-tabs-wrapper` },
|
|
494
|
-
mergedJustifyContent ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } })),
|
|
495
|
-
showPane
|
|
496
|
-
? tabPaneChildren.map((tabPaneVNode, index) => {
|
|
497
|
-
renderNameListRef.value.push(tabPaneVNode.props.name);
|
|
498
|
-
return justifyTabDynamicProps((0, vue_1.h)(Tab_1.default, Object.assign({}, tabPaneVNode.props, { internalCreatedByPane: true, internalLeftPadded: index !== 0 &&
|
|
499
|
-
(!mergedJustifyContent ||
|
|
500
|
-
mergedJustifyContent ===
|
|
501
|
-
'center' ||
|
|
502
|
-
mergedJustifyContent ===
|
|
503
|
-
'start' ||
|
|
504
|
-
mergedJustifyContent === 'end') }), tabPaneVNode.children
|
|
505
|
-
? {
|
|
506
|
-
default: tabPaneVNode.children.tab
|
|
507
|
-
}
|
|
508
|
-
: undefined));
|
|
509
|
-
})
|
|
510
|
-
: tabChildren.map((tabVNode, index) => {
|
|
511
|
-
renderNameListRef.value.push(tabVNode.props.name);
|
|
512
|
-
if (index !== 0 &&
|
|
513
|
-
!mergedJustifyContent) {
|
|
514
|
-
return justifyTabDynamicProps(createLeftPaddedTabVNode(tabVNode));
|
|
515
|
-
}
|
|
516
|
-
else {
|
|
517
|
-
return justifyTabDynamicProps(tabVNode);
|
|
518
|
-
}
|
|
519
|
-
}),
|
|
520
|
-
!addTabFixed && addable && isCard
|
|
521
|
-
? createAddTag(addable, (showPane
|
|
522
|
-
? tabPaneChildren.length
|
|
523
|
-
: tabChildren.length) !== 0)
|
|
524
|
-
: null,
|
|
525
|
-
mergedJustifyContent ? null : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-scroll-padding`, style: { width: `${this.tabsPadding}px` } }))));
|
|
526
|
-
let wrappedTabs = rawWrappedTabs;
|
|
527
|
-
if (isCard && addable) {
|
|
528
|
-
wrappedTabs = ((0, vue_1.h)(vueuc_1.VResizeObserver, { onResize: this.handleTabsResize }, {
|
|
529
|
-
default: () => rawWrappedTabs
|
|
530
|
-
}));
|
|
531
|
-
}
|
|
532
|
-
return ((0, vue_1.h)("div", { ref: "tabsElRef", class: `${mergedClsPrefix}-tabs-nav-scroll-content` },
|
|
533
|
-
wrappedTabs,
|
|
534
|
-
isCard ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-pad` })) : null,
|
|
535
|
-
isCard ? null : ((0, vue_1.h)("div", { ref: "barElRef", class: `${mergedClsPrefix}-tabs-bar` }))));
|
|
536
|
-
}
|
|
537
|
-
})))
|
|
557
|
+
default: () => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav-scroll-wrapper`, ref: "scrollWrapperElRef" }, ['top', 'bottom'].includes(placement) ? ((0, vue_1.h)(vueuc_1.VXScroll, { ref: "xScrollInstRef", onScroll: this.handleScroll }, {
|
|
558
|
+
default: scrollContent
|
|
559
|
+
})) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tabs-nav-y-scroll` }, scrollContent()))))
|
|
538
560
|
})),
|
|
539
561
|
addTabFixed && addable && isCard
|
|
540
562
|
? 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>;
|