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

fix: solve fixed column's shadow display unexpected issue #1081

Merged
merged 9 commits into from
Feb 21, 2024

Conversation

kiner-tang
Copy link
Contributor

Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2024 3:08am

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (886671b) 50.25% compared to head (909ae2d) 92.65%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1081       +/-   ##
===========================================
+ Coverage   50.25%   92.65%   +42.40%     
===========================================
  Files          97       53       -44     
  Lines        9072     4902     -4170     
  Branches      633      590       -43     
===========================================
- Hits         4559     4542       -17     
+ Misses       4463      354     -4109     
+ Partials       50        6       -44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yoyo837
Copy link
Member

yoyo837 commented Feb 17, 2024

佬,不用搞个测试用例吗?

@kiner-tang
Copy link
Contributor Author

佬,不用搞个测试用例吗?

要的,我加一个

@yoyo837
Copy link
Member

yoyo837 commented Feb 18, 2024

看上去是完整撤回 #925 的改动,再调整了一下 src/utils/fixUtil.ts

SummaryContext的没有撤回呢?

是否会重新导致 ant-design/ant-design#39880

@kiner-tang
Copy link
Contributor Author

看上去是完整撤回 #925 的改动,再调整了一下 src/utils/fixUtil.ts

SummaryContext的没有撤回呢?

是否会重新导致 ant-design/ant-design#39880

是换了一种方式去判断和实现,在测试用例里面已经有测试过 ant-design/ant-design#39880 这种情况的了

@yoyo837
Copy link
Member

yoyo837 commented Feb 18, 2024

SummaryContext的没有撤回呢?

那就剩下 SummaryContext 的 columns 没有撤回,我看没有在用了

@kiner-tang
Copy link
Contributor Author

SummaryContext的没有撤回呢?

那就剩下 SummaryContext 的 columns 没有撤回,我看没有在用了

恩恩,确实是这里漏改了,我改一下

@yoyo837 yoyo837 requested a review from zombieJ February 18, 2024 03:27
const canLastFix =
(nextColumn && nextColumn.fixed === undefined) ||
(prevColumn && prevColumn.fixed === undefined) ||
columns.every(col => col.fixed === 'left');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed 有左有右,这个只看 left 会不会不太对?

Copy link
Contributor Author

@kiner-tang kiner-tang Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image 这里是在处理这种情况,
(nextColumn && nextColumn.fixed === undefined) ||
(prevColumn && prevColumn.fixed === undefined) ||

上面这两行时处理 left 和 right 的情况

@@ -6,8 +6,12 @@ export default defineConfig({
},
test: {
include: ['**/tests/*.spec.*'],
exclude: ['**/coverage/**'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

神奇,这个加了就跑不出东西了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是指跑不了覆盖率测试吗?我记得当时如果不加这个的话,好像默认还会测试这里面的一些文件

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

Successfully merging this pull request may close these issues.

Table 分组表头固定后横向滚动时阴影异常
3 participants