Tencent / Tencent/tdesign-react
[Table] row事件监听具有局限性
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
这是 td 的组件 API,这样定义具有局限性 如果我想在 tr 上添加右键事件和其他事件呢?势必又会修改源代码。
这是 rc-table的实现 具有高度自定义 我觉得实现上可以进行参考。
你建议的方案是什么
可以参考一些 React 社区的组件实现 这样 tdesign-react自定义性才高。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reviewing the table component's td row-event API and comparing it with the referenced rc-table implementation; done should allow custom events such as context-menu handlers on tr without modifying library source, with corresponding behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100