//动态设置 class
<li :class="{'is-active':this.timeSled == 1}" @click="changeDate(1)" >月</li>
<li :class="{'is-active':isActive}" ></li>
<li :class="{'is-active':selIndex ==index}" @click='clickSel(index)'></li>
.is-active{ color:red }
//动态设置 class
<li :class="{'is-active':this.timeSled == 1}" @click="changeDate(1)" >月</li>
<li :class="{'is-active':isActive}" ></li>
<li :class="{'is-active':selIndex ==index}" @click='clickSel(index)'></li>
.is-active{ color:red }