ant-design-vue
ant-design-vue copied to clipboard
表格组件 components配置自定义header
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
table components配置,在自定义header里返回子元素信息
const components = {
header: {
cell: (prop, children) => {
// children参数目前返回的是一个slots,v2版本里返回的是一个子元素数组;希望增加参数把子元素数据渲染数据返回出来
}
}
}
What does the proposed API look like?
const components = { header: { cell: (prop, children, childrenNode) => {
}
}
}