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
·
<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>
更多推荐
已为社区贡献7条内容
所有评论(0)