Skip to content

同步 ant tabs renderTabBar 插槽属性 #8467

@kn-zm

Description

@kn-zm
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

https://ant.design/components/tabs-cn#tabs-demo-custom-tab-bar-node

更便捷实现自定义操作

What does the proposed API look like?

通用版本

<DefaultTabBar {...tabBarProps}>
              {(node) => (
                <DraggableTabNode
                  {...(node as React.ReactElement<DraggableTabPaneProps>).props}
                  key={node.key}
                >
                  {node}
                </DraggableTabNode>
              )}
            </DefaultTabBar>

传递 default 插槽 传递 node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions