将页面居中的tab。向下滑动到一定位置,保持置顶
实现原理:
监听页面滚动(onPageScroll),滚动到一定位置,启动置顶属性isFixed
<view class="sort-product">
<view :class="{ 'tui-sticky-fixed': isFixed}"> //设置置顶样式,isFixed:默认为false
<scroll-view scroll-x="true" style="
将页面居中的tab。向下滑动到一定位置,保持置顶
实现原理:
监听页面滚动(onPageScroll),滚动到一定位置,启动置顶属性isFixed
<view class="sort-product">
<view :class="{ 'tui-sticky-fixed': isFixed}"> //设置置顶样式,isFixed:默认为false
<scroll-view scroll-x="true" style="