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

[t-table] 期望表格的行点击事件新增排除指定单元格 #1230

Closed
107236074 opened this issue Jul 16, 2022 · 4 comments
Closed

[t-table] 期望表格的行点击事件新增排除指定单元格 #1230

107236074 opened this issue Jul 16, 2022 · 4 comments
Labels
to be published to be published

Comments

@107236074
Copy link

这个功能解决了什么问题

表格的checkbox 选择单元格能不能阻止冒泡事件, 当表格同时存在 行点击事件 和 数据选择列点击数据选择列容易触发行点击事件。 期望将选择列的单元格都添加一个冒泡阻止修辞

你建议的方案是什么

行点击事件响应的参数内包含点击单元格的列名称 或者 传递一个不响应行点击事件的列序号或者列名称 用来阻止冒泡事件

@github-actions
Copy link
Contributor

👋 @107236074,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Waynefong
Copy link

我试了一下好像没有冒泡问题(正好自己的项目也用到这样的交互)?或者你试一下用CheckProps去配置一下当触发change监听时,阻止冒泡

@chaishi
Copy link
Collaborator

chaishi commented Jul 18, 2022

楼主的问题修正:不是 Checkbox 没有阻止冒泡,实际上代码早就阻止过了,只是 checkbox 周围 td 空白区域没有阻止。

解决方案,2022.07.18 会发布新版本,将整个单元格都列为 checkbox/radio 点击区域,这样子就整体 td 范围都阻止冒泡了
resolved in #1232

@chaishi chaishi added the to be published to be published label Jul 18, 2022
@PengYYYYY
Copy link
Collaborator

0.18.0 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
Development

No branches or pull requests

4 participants