Skip to content
New issue

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

🐛[BUG]使用分组表头(多级表头)时,CellEditorTable 单元格编辑组件无法双击使用 #8880

Open
yangxuesong0122 opened this issue Nov 19, 2024 · 2 comments

Comments

@yangxuesong0122
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

使用 CellEditorTable 单元格编辑组件,当表头是多级表头(分组表头)时,双击某个单元格,无法显示为可编辑状态

📷 复现步骤

  1. 实现一个有分组表头的单元格编辑表格
  2. 双击表格数据的某个单元格,单元格无法显示为可编辑状态

🏞 期望结果

当是分组表头时,双击某个单元格,CellEditorTable 可以变为可编辑状态

💻 复现代码

© 版本信息

  • ProComponents 版本: [e.g. ^2.7.9]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. windows 11]

🚑 其他信息

1731995833737

@Ms-Align
Copy link

同问,没法编辑了

@Ms-Align
Copy link

Ms-Align commented Nov 21, 2024

同问,没法编辑了

着急用可以copy一份CellEditorTable.tsx源码到项目中,该文件所需的导入在antd和pro-components库中都有导出,对CellEditorTable组件接收的prop.columns中的所有children应用以下props
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants