We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.2.6
win10 pnpm10
https://next.antdv.com/components/table-cn/#column
是否可以使用columns来自定义表头?封装的通用表格组件,不想在template中单独写额外逻辑来自定义表头
可以使用columns来自定义表头,最简单的比如表头加icon之类的
没找到文档中如何使用columns来自定义表头
The text was updated successfully, but these errors were encountered:
use title
title
columns: [ { title: '姓名', dataIndex: 'name', key: 'name', }, { title: '年龄', dataIndex: 'age', key: 'age', }, { title: h('div', [ h(例如你说的icon), h('span', '性别') ]), key: 'sex' } ]
Sorry, something went wrong.
use title columns: [ { title: '姓名', dataIndex: 'name', key: 'name', }, { title: '年龄', dataIndex: 'age', key: 'age', }, { title: h('div', [ h(例如你说的icon), h('span', '性别') ]), key: 'sex' } ]
可行,谢谢 不过文档里只写了title的类型是String,没有写可以用vnode 😢
No branches or pull requests
Version
4.2.6
Environment
win10 pnpm10
Reproduction link
https://next.antdv.com/components/table-cn/#column
Steps to reproduce
是否可以使用columns来自定义表头?封装的通用表格组件,不想在template中单独写额外逻辑来自定义表头
What is expected?
可以使用columns来自定义表头,最简单的比如表头加icon之类的
What is actually happening?
没找到文档中如何使用columns来自定义表头
The text was updated successfully, but these errors were encountered: