Skip to content

table中的某一列展示为图片 #8178

@lizhenping-github

Description

@lizhenping-github

const columns = [
{
title: 'Gender',
dataIndex: 'gender',
key: 'gender',
width: 80,
render: (text, record) => {
return h('img', {
attrs: {
src: text,
alt: record.name
},
style: {
width: '50px',
height: 'auto'
}
})
},
},
];

按照上述方式构建列信息,在1.*的版本中无法正常展示出来图片,有其他方式吗,还是这么写法有问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions