{
title: '产品图片',
tooltip:true,
key: 'picture',
align:'center',
width:90,
render: (h, params) => {
if(params.row.imagePath == '') { // 如果图片没有值, 那就显示为空对象
return h('div', {},)
}else{
return h('div', [
h('img', {
attrs: {
src:this.baseUrl+params.row.imagePath
},
style: {
display: 'block',
width: '30px',
height: '30px',
borderRadius: '3px',
margin: '0 auto',
},
on:{
click:(e)=>{
this.handleView(e.srcElement.currentSrc)
}
}
})
])
}
}
},
iview 图片显示--没有图片时不是显示残缺图片
最新推荐文章于 2024-04-30 10:48:26 发布