Reproduction link
Steps to reproduce
- 代码
<TreeSelect
style={{
width: expand ? '200px' : '100px',
transition: 'width 0.4s ease-in-out',
}}
>
- 点击
TreeSelect
组件
What is expected?
下拉可以跟着过渡动画效果,平滑的增加宽度
What is actually happening?
下拉会先在相对于搜索框偏右的位置展开,再移到左侧
| Environment | Info |
| ------------ | ------------ |
| antd | 5.16.2 |
| React | 18.2.0 |
| System | MacOS |
| Browser | Chrome |
2条答案
按热度按时间wwtsj6pe1#
默认是左对齐的,暂时没考虑右侧对齐的情况
edqdpe6u2#
Start a new pull request in StackBlitz Codeflow .