Tabs swiper 滑动切换
<template>
<view class="cc-tab-container">
<scroll-view class="tab-head" :class="tabClassName" scroll-x="true" scroll-with-animation :scroll-left="state.scrollLeft">
<view class="tab-head-item" :class="{ 'active': index === currentIndex }"
v-for="(item, index) in tabs" :id="'tab_'+item.id" :key="index" @click="swichTab(index)">
<view class="tab-text">{
{item.name}}</view>
<view class="tab-line-box">
<view class="tab-line" :style="'width:' + lineWidth"></view>
</view>
</view>
</scroll-view>
<swiper class="tab-swiper"
:class="swiperClassName"
:disable-touch="disableTouch"
:current="currentIndex"
@change="changeSwiper">
<solt></solt>
</swiper>
</view>
</template>
<script setup>
import { reactive, computed } from 'vue'
const props = definePro