ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

表格组件 components配置自定义header

Open lihuabest opened this issue 1 year ago • 0 comments
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) => {

    }
 }

}

lihuabest avatar Jan 25 '24 03:01 lihuabest