S2
S2 copied to clipboard
🙏在交叉表里面需要支持单击右键弹出自定义弹框
🖋 Description

如上图,需要在用户手动框选单元格后右键单击触发自定义弹框出现
希望能支持 onContextMenu 这个事件
🏞 What problem does this feature solve
🧐 Suggest the API
| name | type | default | description |
|---|---|---|---|
| - | - | - | - |
@mlf75 你好, 表格是支持 onContextMenu
请参考这篇文章: https://s2.antv.vision/zh/docs/manual/advanced/interaction/basic#%E5%85%A8%E5%B1%80

如果是使用的 react 版本, 监听 onContextMenu
<SheetComponent onContextMenu={...}/>