业务需求:数据库中存储的的是图片网址,展示的时候显示图片
<el-table-column prop="icon"
label="icon"
width="180">
<template slot-scope="scope">
<img :src="scope.row.icon" min-width="70" height="70" />
</template>
</el-table-column>
解析:
src中icon为数据库存储的图片网址
min-width:图片宽度
height: 图片高度