Merge pull request #8018 from lurunze1226/fix-table-fixed-top

styles: 修复 CRUD 列元素嵌套表格时, affixOffsetTop计算错误问题
This commit is contained in:
hsm-lv 2023-09-06 19:56:56 +08:00 committed by GitHub
commit 317021f154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2193,7 +2193,9 @@ export default class Table extends React.Component<TableProps, object> {
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;