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 动态添加行时,横向滚动条可能出现抖动的问题 #821

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sheinx",
"private": true,
"version": "3.5.2-beta.10",
"version": "3.5.2-beta.11",
"description": "A react library developed with sheinx",
"module": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/base/src/virtual-scroll/scroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Scroll = (props: scrollProps) => {
isMouseDown: false,
});
const { scrollHeight = 0, scrollWidth = 0, defaultHeight = 0 } = props;
const { width, height: h } = useResize({ targetRef: containerRef });
const { width, height: h } = useResize({ targetRef: containerRef, timer: 0 });
const height = h || defaultHeight;
const config = useConfig();
const isRtl = config.direction === 'rtl';
Expand Down
7 changes: 7 additions & 0 deletions packages/shineout/src/table/__doc__/changelog.cn.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 3.5.2-beta.11
2024-11-27

### 🐞 BugFix

- 修复 `Table` 设置了`fixed`或`virtual`,但未设置表格高度时,动态添加表格行后横向滚动条出现抖动的问题 ([#821](https://github.com/sheinsight/shineout-next/pull/821))

## 3.5.1
2024-11-14

Expand Down