第一步:

 <div v-show="showregion"></div>

第二步:

<div class="col-md-12 text-center" @click="showmore" style="padding-top:40px;">
   <span class="showstyle">{{ showregion?"收起详情":"展开详情" }}</span>
</div>

第三步:

showmore(){
        this.showregion = !this.showregion;
   },

 

Logo

前往低代码交流专区

更多推荐