vue中v-for渲染,实现显示3条,数据arr.slice(0,3),即可取出arr数据的前三条
<div class="subCode" v-for="(item, index) in scope.row.barcode.subCodeList.slice( 0,3)" :key="index">
<div>{{ item.barcode }}</div>
<div>{{ item.amount }}</div>
<div v-if="scope.row.barcode.subCodeList.length > 3">...</div>
</div>