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

[Grid 宫格] 当column(每一行的列数量)设置为0时,可滚动状态下,存在scroll-view组件默认滚动条,未提供api控制是否显示滚动条 #2518

Closed
315574925 opened this issue Dec 26, 2023 · 3 comments

Comments

@315574925
Copy link

这个功能解决了什么问题

如果横向存在滚动条,界面非常不美观

你建议的方案是什么

建议通过组件传参方式,设置 scroll-view 组件的 enhanced 和 show-scrollbar 属性,控制滚动条是否显示

Copy link
Contributor

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

@jarmywang
Copy link
Collaborator

经过内部讨论与真机体验,暂不提供此api,滚动条可以提示用户此处可滑动,然后滑一下滚动条会自动消失是符合规范的,你可以通过一些hook的方式尝试去掉滚动条

@315574925
Copy link
Author

那可以美化下那个原生的滚动条下不呢,那个原生滚动条太丑了,比如这样
511f035900b9a073ba635e74155412e

有些场景下可能不需要显示滚动条呢,灵活控制不更好吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants