Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] 希望onRow可以获取当前行的disbaled属性 #2462

Open
xmsz-stu opened this issue Sep 2, 2024 · 0 comments
Open

[Table] 希望onRow可以获取当前行的disbaled属性 #2462

xmsz-stu opened this issue Sep 2, 2024 · 0 comments
Labels
feature request Request new feature

Comments

@xmsz-stu
Copy link

xmsz-stu commented Sep 2, 2024

Which Component Need Enhancement 期望新增功能的组件

  • Table

What does the proposed API look like 期望支持的API

希望onRow可以获取当前行的disbaled属性

Feature Description 功能描述

我在做一个选择器,然后通过rowSelection.getCheckboxProps配置行是否可以选中
然后我又在onRow.onClick里支持点击行选中的功能(不确定是不是好做法,但就先这么做了)
然后现在遇到的问题

  • 我disabled了某行,但是onRow.onClick仍可以触发(合理)
  • 我想要在onClick触发的时候判断如果是disabled就不在选中
  • 但是我不知道在哪看获取到disabled的属性

我现在临时

  • 手动再触发一遍 rowSelection?.getCheckboxProps?.(record); 获取结果

Additional information 补充说明

@xmsz-stu xmsz-stu added the feature request Request new feature label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new feature
Projects
None yet
Development

No branches or pull requests

1 participant