vue vant组件库 tab样式调整

<template>
  <div>
    <van-tabs v-model="active" class="vant-tab-wrap" swipeable animated sticky>
      <van-tab title="标签 1">内容 1</van-tab>
      <van-tab title="标签 2">内容 2</van-tab>
      <van-tab title="标签 3">内容 3</van-tab>
      <van-tab title="标签 4">内容 4</van-tab>
      <van-tab title="标签 4">内容 4</van-tab>
      <van-tab title="标签 4">内容 4</van-tab>
      <div slot="nav-right" class="gengduo-wrap-place">1</div>
      <div slot="nav-right" class="gengduo-wrap">12</div>
    </van-tabs>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
 
<style scoped lang="stylus">
/deep/ .vant-tab-wrap {
  .van-tabs__nav {
    padding-bottom: 0;
  }
 
  .van-tab {
    // border-right 1px solid #edeff3
    min-width: 200px;
    color: #777;
  }
 
  .van-tab--active {
    color: #333;
  }
 
  .van-tabs__wrap {
    height: 82px;
  }
 
  .van-tabs__line {
    width: 31px !important;
    height: 6px;
    bottom: 8px;
  }
 
  .gengduo-wrap-place {
    width: 66px;
    height: 82px;
    flex-shrink 0
  }
 
  .gengduo-wrap {
    width: 66px;
    height: 82px;
    background: #fff;
    opacity: 0.927;
    position: fixed;
    right: 0;
    display: flex;
    align-items: center;
    font-size: 33px;
    justify-content: center;
 
    &::before {
      content: '';
      position: absolute;
      left: 0;
      width: 1px;
      height: 30px;
      background: #777;
    }
  }
}
</style>

在vant组件找到用控制台找到他的类,调整类改变样式

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值