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(table): fix the table re-rendering issue when scrolling #2953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Loongphy
Copy link
Contributor

@Loongphy Loongphy commented Jan 28, 2024

Types of changes

  • New feature
  • Bug fix
  • Enhancement
  • Component style change
  • Typescript definition change
  • Documentation change
  • Coding style change
  • Refactoring
  • Test cases
  • Continuous integration
  • Breaking change
  • Others

Background and context

以下两种情况下会重新渲染表格:

  • 滚动条从边缘移出
  • 滚动条移到边缘

Solution

去除了相关 class,因为并未发现相关实现,反而导致上诉情况下重复渲染表格

${prefixCls}-scroll-position-both
${prefixCls}-scroll-position-left
${prefixCls}-scroll-position-right
${prefixCls}-scroll-position-middle

How is the change tested?

  • 目前测试快照对应不上

Changelog

Component Changelog(CN) Changelog(EN) Related issues
table 修复移动滚动条时重复渲染表格 fix the table re-rendering issue when scrolling Closes #2927

Checklist:

  • Test suite passes (npm run test)
  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others
    should be submitted to main branch)

Other information

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 列自渲染的时候,表格左右滚动会重新触发 循环方法
1 participant