Skip to content

[Feature Request]: Table 组件目前不是全部兼容 antd #662

Description

@LuckyFBB

功能

增强现有功能

详细描述

table

  1. Table.Column 声明式写法失效
    没传 columns 时,包装层会生成空数组并传给 antd,导致 antd 不再从 children 解析列。虽然静态 Table.Column 被导出了,但实际无法正常使用。见 src/table/index.tsx (line 46) 和 src/table/index.tsx (line 85)]。

  2. 函数式列标题被破坏
    antd 支持 column.title = props => ReactNode,当前实现无条件把 title 放进 Fragment,导致 antd 无法再识别并执行这个函数,排序/筛选相关的动态标题会异常。见 src/table/index.tsx (line 49)。

  3. tooltip 类型没有暴露到默认组件签名
    内部实现使用 ITableProps,但最终导出的 RefTable 仍然使用原始 TableProps。TypeScript 下直接内联 tooltip 列配置可能报错。见 src/table/index.tsx (line 24) 和 src/table/index.tsx (line 28)

  4. 嵌套表头只处理第一层
    convertColumns 没有递归处理 children,分组表头内的列无法使用新增的 tooltip 能力。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions