vue 写table的几种方式
方法一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>