linkActiveClass
来源:互联网 发布:led字幕软件 编辑:程序博客网 时间:2024/06/15 03:42
linkActiveClass
类型:
string
默认值:
"router-link-active" //router到这个地方会自动生成这个class
全局配置
<router-link>
的默认『激活 class 类名』
<style lang="stylus" ref="stylesheet/stylus">
.tab
display: flex
width: 100%
height: 40px
line-height: 40px
.tab-item
flex: 1
text-align:center
& > a
display:block
font-size: 14px
color: rgb(77, 85, 93)
&> a.router-link-active //router到这个地方会自动生成这个class
color: red
font-weight:500px
background: rgba(0, 0, 0, 0.2)
</style>
.tab
display: flex
width: 100%
height: 40px
line-height: 40px
.tab-item
flex: 1
text-align:center
& > a
display:block
font-size: 14px
color: rgb(77, 85, 93)
&> a.router-link-active //router到这个地方会自动生成这个class
color: red
font-weight:500px
background: rgba(0, 0, 0, 0.2)
</style>