使用scope作用域插槽,然后在img中动态绑定地址,这样就可以实现图片地址的动态渲染
<el-table-column prop="message_img" label="书籍封面" width="100" >
<template slot-scope="scope">
<img :src="scope.row.message_img" >
</template>
</el-table-column>
使用scope作用域插槽,然后在img中动态绑定地址,这样就可以实现图片地址的动态渲染
<el-table-column prop="message_img" label="书籍封面" width="100" >
<template slot-scope="scope">
<img :src="scope.row.message_img" >
</template>
</el-table-column>