Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Select] 窗口resize,屏幕宽度尺寸变小后,组件展示的option区域宽度能否适应与组件宽度一致(除非过小,option区域的minWidth能够将内容展示完整 #2850

Open
hannah-lin-sama opened this issue Apr 17, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@hannah-lin-sama
Copy link

tdesign-react 版本

1.6.0

重现链接

No response

重现步骤

官网demo也有重现,https://tdesign.tencent.com/react/components/select?tab=demo

期望结果

窗口resize,屏幕宽度尺寸变小后,组件展示的option区域宽度能否适应与组件宽度一致(除非过小,option区域的minWidth能够将内容展示完整

实际结果

窗口resize,屏幕宽度尺寸变小后,组件展示的option区域宽度不会改变

image

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @hannah-lin-sama,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@hannah-lin-sama
Copy link
Author

image

@HaixingOoO
Copy link
Collaborator

@hannah-lin-sama 可以看看官网文档啊官网Document
截屏2024-04-17 19 54 54

@hannah-lin-sama
Copy link
Author

@hannah-lin-sama 可以看看官网文档啊官网Document 截屏2024-04-17 19 54 54

20240418_140859.mp4

就是组件select的width不是一个固定的值,会适配屏幕宽度。

利用样式实现需要监听屏幕尺寸变化计算,赋给组件样式也是可以实现。

@HaixingOoO HaixingOoO added the enhancement New feature or request label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants