官网描述缘故
官网缘故地址请点击蓝字
view:
<div v-for="(item,index) of updateInfoList" class="update_square">
<div class="update_square_in">
<div class="update_title">
<div class="version_info">
<i class="fontFace"></i>
<font>{{item.VER_CODE}}</font>
</div>
<div class="version_date">
<i class="fontFace"></i>
<font>{{item.UP_TIME}}</font>
</div>
<div class="version_more" @click="showMore(index)">
<i v-show="showIndex[index]" class="fontFace"></i>
<i v-show="!showIndex[index]" class="fontFace"></i>
</div>
</div>
<div class="update_con">
<div class="update_con_list">
<div class="part_con" v-html="item.UP_EXPLAIN1">
</div>
<!--more_ellipsis-->
<div v-show="!showIndex[index]" class="more_ellipsis">
······
</div>
<div v-show="showIndex[index]" class="more_des">
<div class="part_con" v-html="item.UP_EXPLAIN2">
</div>
</div>
</div>
</div>
</div>
</div>
data:
methods: {
showMore:function (index) {
this.$set(this.showIndex, index, !this.showIndex[index]);
},
}