antDesignofVue框架table显示图片
antDesignofVue页面中table显示图片和iview差不多都是在js中设置代码如下{title:'封面图',align:"center",dataIndex: 'cover',customRender:(record) => {return &l...
·
antDesignofVue页面中table显示图片和iview差不多都是在js中设置代码如下
{
title:'封面图',
align:"center",
dataIndex: 'cover',
customRender:(record) => {
return <img src={record} alt="" style={{width:'100px',height:'50px'}}/>
}
},
灵感来源https://blog.csdn.net/haolijuan520/article/details/81302177
更多推荐
已为社区贡献7条内容
所有评论(0)