实现选中选中效果
@click.native="selectClick(index)"
:class="{active:selectIndex==index}"
data:中
// 体现选中效果
selectIndex: -1
css
.active {
background-color:#ffffff!important;
border: 1px solid #409EFF;
}
实现选中选中效果
@click.native="selectClick(index)"
:class="{active:selectIndex==index}"
data:中
// 体现选中效果
selectIndex: -1
css
.active {
background-color:#ffffff!important;
border: 1px solid #409EFF;
}