-
Notifications
You must be signed in to change notification settings - Fork 99
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
无限滚动->虚拟列表->回到顶部 数据会隐藏 #628
Labels
Comments
+1,在小程序模拟器里点击回到顶部列表会空白,再滑动一下列表内容又出现了,但是在底部,没有回到顶部
|
文档案例有误,需要传id <PullToRefresh onRefresh={onRefresh}>
<VirtualList
style={{ padding: 10, boxSizing: 'border-box' }}
height="calc(100vh - 135px)"
dataSource={data}
showCount={3}
ref={VirtualListInstance}
footer={
<InfiniteScroll
parentClassName="van-virtual-list"
loadMore={loadMore}
ref={InfiniteScrollInstance}
/>
}
ItemRender={react.memo(({ item, id }) => {
return (
<View
className={`van-demo-goods-item-wrapper`}
key={item.image}
id={id}
>
<View className="van-demo-goods-item">
<TaroImage key={item.image} src={item.image} className="img" />
<View className="title">{item.title}</View>
{item.isCutPrice && (
<Text className="cutPrice">最近大降价</Text>
)}
<View className="price">{item.price}</View>
</View>
</View>
)
})}
/>
</PullToRefresh> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个 Issue 涉及以下平台:
BUG 描述
官方文档 无限滚动 回到顶部
复现步骤
期望结果
实际结果
截图
环境
附加信息
The text was updated successfully, but these errors were encountered: