Element ui表格展示多张图片问题

显示一张图片的方法:

1 <el-table-column label="头像" width="100">
2                 <template scope="scope">
3                     <img :src="scope.row.head_pic" width="40" height="40" class="head_pic"/>
4                 </template>
5             </el-table-column>

显示多张图片:

1 <el-table-column prop="pictures" label="描述图片">
2                 <template scope="scope">
3                     <img v-for="item in scope.row.pictures" :src="item" width="40" height="40" class="head_pic"/>
4                </template>
5             </el-table-column>

 

posted @ 2017-10-28 10:23  兔子先生i  阅读(10374)  评论(0编辑  收藏  举报