Skip to content

table 的 components 覆盖td无效吗? #6434

@Syntax-J

Description

@Syntax-J
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.16

Environment

3.2.16

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. a-table提供:components={body:{cell:TdCell}}
const TdCell = (props) => {
// onMouseEnter, onMouseLeave在数据量多的时候,会严重阻塞表格单元格渲染,严重影响性能
const { onMouseEnter, onMouseLeave, ...restProps } = props;
console.log(restProps)
return h('td',{...restProps}) // return <td {...restProps} />;
}
  1. 表格单元格不显示,尝试过ant-design覆盖td, 可以显示单元格

What is expected?

使用:components={body:{cell:TdCell}}覆盖后可以显示表格单元格

What is actually happening?

没有显示单元格

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions