<el-table-column label="礼品图片" align="center">
<template slot-scope="scope" >
<div v-for="item in getImg(scope.row.picture)">
<img style="height: 80px" :src="item">
</div>
</template>
</el-table-column>
methods:
getImg(val){
//逗号分隔,后台传来的是逗号拼接的字符串图片路径
var words = val.split(',');
console.log(words)
return words;
},
效果:

3441



被折叠的 条评论
为什么被折叠?



