{
title: “商品图片”,
key: “commodityPhoto”,
align: ‘center’,
render: (h, params) => {
return h(‘img’, {
style: {//设置样式
width: ‘100px’,
‘height’: ‘80px’,
‘border-radius’: ‘5%’
},
attrs: {//设置属性
src: ‘http://localhost:8888/’ + params.row.commodityPhoto
}
});
}
}
iView 在Table组件中添加图片
最新推荐文章于 2023-02-16 00:32:58 发布