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] 使用DragSortTable 传入的components.body无效 #8239

Closed
gcdxuzhiwei opened this issue Mar 20, 2024 · 2 comments
Closed

🐛[BUG] 使用DragSortTable 传入的components.body无效 #8239

gcdxuzhiwei opened this issue Mar 20, 2024 · 2 comments

Comments

@gcdxuzhiwei
Copy link

截屏2024-03-20 10 57 28
看源码是把传入的覆盖了

提问前先看看:

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

🐛 bug 描述

📷 复现步骤

🏞 期望结果

💻 复现代码

© 版本信息

  • ProComponents 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@gcdxuzhiwei
Copy link
Author

🐛 bug 描述
components传了
{ body: { row: (_props) => ( <Dropdown menu={{ items: contextMenuConfig.items, onClick: (menuInfo) => { contextMenuConfig.onItemClick({ row: contextMenuRow.current, menuInfo, }) }, }} trigger={['contextMenu']} > <tr {..._props} /> </Dropdown> ), }, }
正常情况下protable可以右键弹出菜单,但当使用DragSortTable时没有菜单

© 版本信息
ProComponents 版本: [e.g. 2.6.49]
umi 版本
浏览器环境
开发环境 [e.g. mac OS]

@chenshuai2144
Copy link
Contributor

不覆盖会导致拖拽时效的,自己管理的难度还挺高的,你可以试试

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