Skip to content

<a-config-provider> dropdownmatchselectwidth doesn't work on Select but work on TreeSelect #7792

Closed
@kongyajie

Description

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

Version

4.2.3

Environment

macOS版本Ventura、Chrome版本127.0.6533.100、vue版本3.2

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. main.ts 中全局引入 ant-design-vue
  2. App.vue 中使用 <a-config-provider> ,并配置 dropdownmatchselectwidth 属性为 false
  3. App.vue 中使用 <a-select> ,并配置 options,选项超过15条,部分选项字数超过10个字
  4. 本地运行

What is expected?

select选项的Dropdown宽度,根据文字长度拓宽以展示完整,超过select自身宽度

What is actually happening?

select选项的Dropdown宽度,未根据文字长度拓宽以展示完整,和select自身宽度相同


  1. 同样的场景,这个全局配置属性在 TreeSelect 使用正常
  2. 这个issue-helper version 好像选不了,version 应该是 ant-design-vue 4.2.3(当前最新版)

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