{handleTabClick(val.name)}" class="new-tabs-header"> 赞 踩 Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。
el-tabs样式调整_el-tabs高度
默认
修改为
<el-tabs v-model="myradio" @tab-click="val=>{handleTabClick(val.name)}" class="new-tabs-header">
<el-tab-pane label="PC端" name="1">
</el-tab-pane>
<el-tab-pane label="移动端" name="2">
</el-tab-pane>
</el-tabs>
css
.new-tabs-header {
background: white;
/deep/ .tabs-card {
.el-tabs__nav-scroll {
padding: 0;
}
}
/deep/ .el-tabs__nav-wrap {
&::after {
display: none;
}
}
/deep/ .el-tabs__header {
margin: 0;
}
/deep/ .el-tabs__nav-scroll {
padding: 0 20px;
}
/deep/ .el-tabs__active-bar {
background-color: $wit-primary; // 跟随 element 系统颜色 自己修改
height: 4px;
border-radius: 2px;
}
/deep/ .el-tabs__item:hover{
span{
color: $wit-primary; // 跟随 element 系统颜色 自己修改
}
}
/deep/ .el-tabs__item.is-active {
color: #333333;
font-weight: bold;
font-size: 16px;
position: relative;
span{
color: $wit-primary;
}
}
/deep/ .el-tabs__item:hover {
color: #333333;
}
/deep/ .el-tabs__item {
color: #909399;
font-size: 14px;
font-weight: 500;
}
/deep/ .el-tabs.tabs-card .el-tabs__item span {
background: none;
box-shadow: none;
height: 54px;
line-height: 54px;
min-width: 0;
padding: 0;
margin: 0 18px;
}
}