动态设置class名称


        <div class="first_tab_item pointer" :class="{first_tab_item_active: tabIndex<4}" @click="changeTab(0)">
              <i class="iconfont icon-yiliao"></i>{{ $t('product.tabText1') }}
        </div>
      .first_tab_item_active {
        color: #fff;
        background: linear-gradient(-26deg, #74C7FC, #699BF9);
      }
posted @ 2021-11-05 10:50  盘思动  阅读(322)  评论(0编辑  收藏  举报