代码
单个图片
<el-table :data="data" style="width: 100%">
<el-table-column prop="cover" width="180">
<template slot-scope="scope">
<img :src="scope.row.cover" width="100" height="100" class="cover" />
</template>
</el-table-column>
</el-table>
![](https://i-blog.csdnimg.cn/blog_migrate/c239cad90e4abe4990eed5fef593ece2.png)
![](https://i-blog.csdnimg.cn/blog_migrate/7aeeeca030bc1f19ac0318db07a8b824.png)
scope和scope.row是vue的,cover是 table中传入的data里面的属性
![](https://i-blog.csdnimg.cn/blog_migrate/904d9fe0241563be2a3b6e0f66e77f47.png)
传入数据格式
![](https://i-blog.csdnimg.cn/blog_migrate/1ff1e67c88a55c58b202412107025f3f.png)