Skip to content

Input.Search的enterButton参数能否有更好的兼容自定义组件 #2519

@ConquerStars

Description

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

What problem does this feature solve?

解决自定义组件(button的封装) 使用enterButton参数时,重复嵌套一层button导致样式问题

What does the proposed API look like?

我发现使用了ant-design自带的a-button不会出现嵌套button标签,而使用其他标签,包括自定义组件标签,会导致强行嵌套一层button标签,即使自定义标签名称为a-button。能否识别 在使用slot="enterButton"时的自定义组件是a-button封装(btn封装)的情况,减少嵌套重复button标签导致样式问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions