标签:spec 投资 pre vue cti show 进度 div click
方法一v-show
1.声明data 默认显示第一条 table:0,
2.
<div class="inspectionTitle">
<div class="stitle fleft" :class="{nowTitle:table==0}" @click="table=0">建设进度</div>
<div class="stitle fleft" :class="{nowTitle:table==1}" @click="table=1">投资进度</div>
<div class="stitle fleft" :class="{nowTitle:table==2}" @click="table=2">改造类别</div>
</div>
<div v-show="table==0">1</div>
<div v-show="table==1">2</div>
<div v-show="table==2">3</div>
标签:spec 投资 pre vue cti show 进度 div click
原文地址:https://www.cnblogs.com/zhouyx/p/14469447.html