Skip to content

onRowClick 精确点击 #31

@jaredleechn

Description

@jaredleechn

目前的 onRowClick 粒度控制在整行,但是无法精确到具体的 column 以及 expandIcon 这些更小力度上(需要用户自己根据 SyntheticMouseEvent 来判断

业务场景是,类似 加载树形结构数据 这种,但需要在点击 expandIcon 是加载自己的 children 元素

有无必要给 onRowClick 增加一个参数,来描述具体点击到的 column ?

初步想法是分析 SyntheticMouseEvent.target.attributes 的 react-id 来确定 column,再根据 rc-table 设置的 key 来确定是否是 expandIcon 这些更深层次的 target

@afc163 @benjycui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions