From e9c7dbb072d78be8db19fb5842bfc360be808490 Mon Sep 17 00:00:00 2001 From: lurunze1226 Date: Wed, 6 Sep 2023 14:51:57 +0800 Subject: [PATCH] =?UTF-8?q?styles:=20=E4=BF=AE=E5=A4=8D=20CRUD=20=E5=88=97?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E5=B5=8C=E5=A5=97=E8=A1=A8=E6=A0=BC=E6=97=B6?= =?UTF-8?q?,=20affixOffsetTop=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Table/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/amis/src/renderers/Table/index.tsx b/packages/amis/src/renderers/Table/index.tsx index a68c146b6..6e0b11059 100644 --- a/packages/amis/src/renderers/Table/index.tsx +++ b/packages/amis/src/renderers/Table/index.tsx @@ -2193,7 +2193,9 @@ export default class Table extends React.Component { store.firstToggledColumnIndex === props.colIndex, onQuery: undefined, style, - className: cx(column.pristine.className, stickyClassName) + className: cx(column.pristine.className, stickyClassName), + /** 给子节点的设置默认值,避免取到env.affixHeader的默认值,导致表头覆盖首行 */ + affixOffsetTop: 0 }; delete subProps.label;