ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open kongyajie opened this issue 1 year ago • 1 comments
trafficstars

  • [x] 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(当前最新版)

kongyajie avatar Aug 19 '24 08:08 kongyajie

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Oct 19 '24 02:10 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Oct 28 '25 01:10 github-actions[bot]