8
重现链接
代码如下所示:
<van-tabs sticky animated swipeable active="{{ active }}">
<van-tab title="全部" name="all" id="all">
<view class="tab-content">
<van-sticky offset-top="{{ 44 }}" container="{{ container }}" wx:if="{{active =='all'}}">
<van-search wx:if="{{active =='all'}}" custom-class="search-input" use-action-slot placeholder="请输入搜索关键词" ></van-search>
</van-sticky>
<l-card plaintext full title="搜索历史" l-class="search-card" l--title-class="search-card-title">
<view class="search-card-content">
<van-tag class="search-card-tag" color="#f3f3f3" text-color="#666" type="primary">交通事故</van-tag>
<van-tag class="search-card-tag" color="#f3f3f3" text-color="#666" type="primary">家庭婚姻</van-tag>
</view>
</l-card>
<l-card plaintext full title="热点问题" l-class="search-card" l--title-class="search-card-title">
<view class="search-card-content">
<van-tag class="search-card-tag" color="#f3f3f3" text-color="#666" type="primary">劳动纠纷</van-tag>
<van-tag class="search-card-tag" color="#f3f3f3" text-color="#666" type="primary">欠钱不还</van-tag>
</view>
</l-card>
<qa-list qaList="{{qa.all}}"></qa-list>
</view>
</van-tab>
<van-tab title="我的" name="me">
<view class="tab-content">
<qa-list qaList="{{qa.me}}"></qa-list>
</view>
</van-tab>
</van-tabs>
Vant Weapp 版本
1.10.19
描述一下你遇到的问题。希望tabs吸顶,并且第一个标签页的搜索框也吸顶,问题出现在:在第二个tab往下拉的时候,搜索框也会出现
重现步骤- 希望在tabs组件内的吸顶组件不要影响其他tab标签页
微信小程序