Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lizhenping-github opened this issue May 16, 2025 · 1 comment
Closed

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

lizhenping-github opened this issue May 16, 2025 · 1 comment
Labels

Comments

@lizhenping-github
Copy link

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.*的版本中无法正常展示出来图片,有其他方式吗,还是这么写法有问题

Copy link

Hello @lizhenping-github, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

你好 @lizhenping-github,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant