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

InfiniteLoading希望能增加隐藏滚动条的设置 #2615

Open
suyie001 opened this issue Oct 25, 2023 · 2 comments
Open

InfiniteLoading希望能增加隐藏滚动条的设置 #2615

suyie001 opened this issue Oct 25, 2023 · 2 comments
Labels
Feature Request 新功能请求 PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR

Comments

@suyie001
Copy link

这个功能解决了什么问题?

InfiniteLoading希望能增加隐藏滚动条的设置,这样看起来更像app一些。

你期望的组件设计是怎样的?

通过一个属性,比如 showScrollbar :false来隐藏滚动条

@suyie001 suyie001 added the Feature Request 新功能请求 label Oct 25, 2023
@eiinu eiinu added the PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR label Nov 28, 2023
@iCheng
Copy link
Contributor

iCheng commented Jan 18, 2024

可以考虑给 nut-infinite-loading 的外层组件设置 CSS 隐藏滚动条:

` .infiniteUl {
width: 100%;
height: calc(100vh - 120px);
padding: 0;
margin: 0;
overflow: auto;
scrollbar-width: none; /* 隐藏滚动条 兼容 Firefox /
-ms-overflow-style: none; /
隐藏滚动条 兼容 IE 10+ */
}

.infiniteUl::-webkit-scrollbar {
display: none; /* 隐藏滚动条 兼容 Chrome Safari */
}`

@free-booter
Copy link

请问解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request 新功能请求 PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR
Projects
None yet
Development

No branches or pull requests

4 participants