From 835c47e0c19220511059438eba22f665cd0fbc0a Mon Sep 17 00:00:00 2001 From: saint3347 Date: Wed, 27 Nov 2024 17:29:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20`Table`=20=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E6=B7=BB=E5=8A=A0=E8=A1=8C=E6=97=B6=EF=BC=8C=E6=A8=AA?= =?UTF-8?q?=E5=90=91=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=8F=AF=E8=83=BD=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E6=8A=96=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- packages/base/src/virtual-scroll/scroll.tsx | 2 +- packages/shineout/src/table/__doc__/changelog.cn.md | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 44e81f4eb..1a5945e28 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/base/src/virtual-scroll/scroll.tsx b/packages/base/src/virtual-scroll/scroll.tsx index cc8041db2..f6b8a2dce 100644 --- a/packages/base/src/virtual-scroll/scroll.tsx +++ b/packages/base/src/virtual-scroll/scroll.tsx @@ -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'; diff --git a/packages/shineout/src/table/__doc__/changelog.cn.md b/packages/shineout/src/table/__doc__/changelog.cn.md index 8d16892ee..3cf5fb7a1 100644 --- a/packages/shineout/src/table/__doc__/changelog.cn.md +++ b/packages/shineout/src/table/__doc__/changelog.cn.md @@ -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