<template>
<view>
<scroll-view class="tabCard" enable-flex scroll-x :scroll-into-view="scrollIntoView" scroll-with-animation>
<view class="tab-item"
:class="{
'tab-active': index === currentIndex}"
v-for="(ele, index) in tabList"
@click="clickTabItem(index)"
:id="'index'+index">
{
{ele}}
</view>
</scroll-view>
<swiper :current="currentIndex" @change="swiperChange" @transition="swiperTransition">
<swiper-item>
uniapp中的横向选项卡 轮播图和选项卡结合
最新推荐文章于 2024-06-03 13:38:13 发布