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

VirtualList 虚拟列表在头部加入其他内容,并跟随滚动 #7537

Closed
MrChen2016-08-27 opened this issue Sep 6, 2020 · 7 comments
Closed
Labels
A-components Area - H5 组件库相关 enhancement New feature or request
Milestone

Comments

@MrChen2016-08-27
Copy link

我想在首页加几个模块栏目,比如 头部轮播图,中部分类菜单,然后下面是无限滚动列表。
但是加入之后 头部轮播图,中部分类菜单不会动,只有下面的列表会滚动,这样可视区域非常小。
我尝试在 VirtualList,轮播图外部包裹一个 ScollView , 但还是 VirtualList 会变成优先滚动。
怎么让非VirtualList内容一起滚动呢,如果通过判断类型将轮播图和菜单加入到 VirtualList 的子项,会因为 itemSize 的高度设置,让所有子项变成一个高度。

@taro-bot2
Copy link

taro-bot2 bot commented Sep 6, 2020

您的 Issue 没有按照规范从 Taro Issue Helper 创建,因此会被直接关闭。

维护开源项目是一项非常辛苦的工作,还请多多包涵。
了解为什么这么严格?

@Psli
Copy link
Contributor

Psli commented Sep 7, 2020

+1

@SyMind
Copy link
Member

SyMind commented Sep 10, 2020

让 itemSize 的支持 function 我觉得会是一个好的选择。

@liuhuapiaoyuan
Copy link

让 itemSize 的支持 function 我觉得会是一个好的选择。

最好是能支持function,写死太不灵活了

@beysong
Copy link

beysong commented Jan 19, 2021

+1

@ZakaryCode ZakaryCode added A-components Area - H5 组件库相关 enhancement New feature or request labels Jan 15, 2022
@ZakaryCode
Copy link
Contributor

让 itemSize 的支持 function 我觉得会是一个好的选择。

与该问题无关,但将在 3.6 中支持

@ZakaryCode
Copy link
Contributor

ZakaryCode commented Dec 13, 2022

我想在首页加几个模块栏目,比如 头部轮播图,中部分类菜单,然后下面是无限滚动列表。 但是加入之后 头部轮播图,中部分类菜单不会动,只有下面的列表会滚动,这样可视区域非常小。 我尝试在 VirtualList,轮播图外部包裹一个 ScollView , 但还是 VirtualList 会变成优先滚动。 怎么让非VirtualList内容一起滚动呢,如果通过判断类型将轮播图和菜单加入到 VirtualList 的子项,会因为 itemSize 的高度设置,让所有子项变成一个高度。

可通过 unlimitedSize 实现

@ZakaryCode ZakaryCode added this to the 3.6.0 milestone Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-components Area - H5 组件库相关 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants