swiper-list.nvue 案例有bug 如果header部分超过了一屏,列表滑动悬浮就有问提怎么解决,高度计算出来了 一屏内没问题 超过一屏就滑动出现问题了,滑动有问题 ,
header 部分试过一个cell 里面for 50个view 高度超过一屏就有问题了
<cell>
<view id="head">
<view>
<text>header</text>
<text>header</text>
<text>header</text>
<text>header</text>
</view>
</view>
</cell>
如上代码 如果<text>header</text> 增加为100个超过一屏就滑动有问题了
<cell>
<view>
<text>header</text>
</view>
</cell>
<cell>
<view>
<text>header</text>
</view>
</cell>
<cell>
<view>
<text>header</text>
</view>
</cell>
这种方式也测试过 然后累加计算cell总高度超过一屏也有问题。不知怎么解决,望答复!
if (this.$refs['list'].setSpecialEffects) {
console.log(height)
this.$refs['list'].setSpecialEffects({
id: 'rootList',
headerHeight: height
});
}

6***@qq.com
- 发布:2022-01-30 11:28
- 更新:2022-02-07 10:16
- 阅读:374
swiper-list.nvue 案例有bug
分类:uni-app
1 个回复
DCloud_uni-ad_HDX
提供下完整代码