columns:[
{
title: '员工头像',
key: 'a',
render:(h,params) =>{
return h('div',{
style: {
width: '100%',
height:"120px",
display: "flex","justify-content": "flex-start","align-items": "center"
}
}, [
h('img', {
style:{width:"100px",height:"100px",},
domProps: {src: params.row.a} //img标签时用domProps添加属性;其他标签用props添加属性。
}, ""),
h('Button', {
props: {
type: 'primary',
size: 'small'
},
style: data1Btn,
on: {
click: () => {
this.showDetail(titleTime,params.row)
}
}
}, '查看'),
]);
}
}
]