Skip to content

AutoComplete 组件的 placeholder 样式问题 #8084

@jasonren0403

Description

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

Version

4.2.6

Environment

vue: 3.5.13

Reproduction link

https://github.com/jasonren0403/antdv-autocomplete-placeholder-toolong

Steps to reproduce

链接网页已部署 github pages 方便测试。

如重现链接网页所述,改变最上面两行下面的 input 框内容以测试不同长度 placeholder 的样式影响

最好将浏览器窗口缩窄,更好复现

What is expected?

auto-complete 组件在各种情况下都不应随着 placeholder 长度而变化,更不应溢出父容器(如 collapse 组件)

What is actually happening?

使用input-group compact布局以及此组件在一个父容器(如 collaspse panel)中,auto-complete 的长度会随placeholder长度变化而变化,在过长情况下会导致溢出

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