-
-
Notifications
You must be signed in to change notification settings - Fork 618
no need to do event.preventDefault when not use fixedColunms #456
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/table/43acu0ndq |
有个问题,我能有办法基于rc-table@6.7.0修改吗?我们项目刚好用的这个版本的rc-table |
@afc163 麻烦review下,谢谢。 |
在下面的 3 个 if 里加 Lines 434 to 436 in 303b9b6
|
@zombieJ 没preventDefault,最后一个if里的代码也没必要执行吧? |
v3 版本的 Table 是多个 Table 模拟的,最后一个 if 是指在其他的 Table 里滚动时,同步一下 bodyTable。 |
@zombieJ 我试了下,这样改还有个问题。在scrollY这个demo里,给单元格加个rc-select组件,如果第三个if里的代码也执行,那么滚动select的滚动条时,select滚动条和talbebody的滚动条会同时滚动。 |
嗯,看起来是的。需要判断一下是否是当前的 Table 中的一个来做滚动。 |
这样吧,分步骤来。先搞这个 |
Codecov Report
@@ Coverage Diff @@
## 6.x #456 +/- ##
==========================================
- Coverage 89.49% 89.28% -0.22%
==========================================
Files 16 16
Lines 838 840 +2
Branches 245 245
==========================================
Hits 750 750
- Misses 88 90 +2
Continue to review full report at Codecov.
|
@zombieJ push了,第二次commit,我本地看着没这么大改动的(-3+4)。为啥到github这,变成全删全增了。。麻烦您帮忙看看了。 |
@zombieJ 勾选下这个就正常了 |
看看是不是空格转 tab 了?这个还是要弄回来的。 |
嗯,是回车换行影响了,我给退回去重新提交了。 |
@zombieJ 麻烦看看,这样处理有问题吗 |
|
有使用fixedColumns时才执行event.preventDefault等逻辑。