优化滑动页面

This commit is contained in:
TOP糯米 2023-03-16 23:41:46 +08:00
parent 0dd266954c
commit 8376536ce3
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
:current="tabIndex"
:duration="300"
@change="switchTab($event.detail.current)"
:style="{ height: tabHeight + 'px' }"
:style="{ minHeight: '75vh', height: tabHeight + 'px' }"
>
<swiper-item>
<view class="detail-tab tab0">

View File

@ -17,7 +17,7 @@
:current="tabIndex"
:duration="300"
@change="switchTab($event.detail.current)"
:style="{ height: tabHeight + 'px' }"
:style="{ minHeight: '75vh', height: tabHeight + 'px' }"
>
<block v-for="(tabItem, tabIdx) in tabList" :key="tabIdx">
<swiper-item>

View File

@ -14,7 +14,7 @@
:current="tabIndex"
:duration="300"
@change="changeTab"
:style="{ height: tabHeight + 'px' }"
:style="{ minHeight: '75vh', height: tabHeight + 'px' }"
>
<swiper-item>
<view class="tab-item tab0">