arco-design-vue
arco-design-vue copied to clipboard
fix(table): fix the table re-rendering issue when scrolling
Types of changes
- [ ] New feature
- [x] 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
featurebranch and others should be submitted tomainbranch)