react-component / react-component/table
[Feature request] Add toggle mode.
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
嗨,我们在基于 v6.1.3 rc-table 开发时扩展了表格点击模式,使其可以选择单独一项资源。
使用逻辑如下:
- 点击复选框时,使用逻辑和现有一样无变化
- 点击表格一行非复选框部分时候,会判断是否有
toggle,对于toggle的表格会清除已选的,选择点击的该行内容
实现方案:
- 我们在 rc-table 上做了进一步的封装,对外暴露
select方法和selectIds数组 - 在
onRow里的onclick做事件处理,区别点击复选/单选框 和 表格其他部分
期望:
- 对于
onRow里onclick做进一步细化,对外暴露点击的部分。

Contributor guide
No contributing guide indexed for this repository
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
Start by reading rc-table's row event handling and the onRow onclick entry point, then trace how checkbox selection currently works. Define how toggle behavior should clear existing selections and select the clicked row while preserving checkbox behavior. Done means the relevant clicked portion is exposed through the row API and the expected selection behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100