Skip to content

Commit

Permalink
fix: 修复 Table 动态添加行时,横向滚动条可能出现抖动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
saint3347 committed Nov 27, 2024
1 parent 3206bd7 commit 835c47e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
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

0 comments on commit 835c47e

Please sign in to comment.