ant-design-vue
ant-design-vue copied to clipboard
<a-config-provider> dropdownmatchselectwidth doesn't work on Select but work on TreeSelect
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
Steps to reproduce
- 在
main.ts中全局引入ant-design-vue - 在
App.vue中使用<a-config-provider>,并配置dropdownmatchselectwidth属性为 false - 在
App.vue中使用<a-select>,并配置options,选项超过15条,部分选项字数超过10个字 - 本地运行
What is expected?
select选项的Dropdown宽度,根据文字长度拓宽以展示完整,超过select自身宽度
What is actually happening?
select选项的Dropdown宽度,未根据文字长度拓宽以展示完整,和select自身宽度相同
- 同样的场景,这个全局配置属性在 TreeSelect 使用正常
- 这个issue-helper version 好像选不了,version 应该是 ant-design-vue 4.2.3(当前最新版)
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
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.