ant-design/components/table/demo/row-selection.md

12 lines
560 B
Markdown
Raw Normal View History

2016-08-15 08:07:03 +08:00
## zh-CN
2016-08-15 07:54:01 +08:00
第一列是联动的选择框。可以通过 `rowSelection.type` 属性指定选择类型,默认为 `checkbox`
2016-08-15 07:54:01 +08:00
> 默认点击 checkbox 触发选择行为,需要点击行触发可以参考例子:<https://codesandbox.io/s/000vqw38rl>
2018-01-15 17:24:40 +08:00
2016-08-15 08:07:03 +08:00
## en-US
2016-08-15 07:54:01 +08:00
Rows can be selectable by making first column as a selectable column. You can use `rowSelection.type` to set selection type. Default is `checkbox`.
2015-07-10 17:47:53 +08:00
> selection happens when clicking checkbox by default. You can see <https://codesandbox.io/s/000vqw38rl> if you need row-click selection behavior.