fix(Table): fix styling issue with fixed columns (#4857)

This commit is contained in:
Zeke Zhang 2024-07-10 19:23:33 +08:00 committed by GitHub
parent e0b5128c9d
commit dcc7da6e01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -539,7 +539,8 @@ export const Table: any = withDynamicSchemaProps(
initialInView: isIndex || !!process.env.__E2E__ || dataSource.length <= 10,
skip: isIndex || !!process.env.__E2E__,
});
const { valueMap: style } = useSatisfiedActionValues({ formValues: record, category: 'style', schema });
const { valueMap } = useSatisfiedActionValues({ formValues: record, category: 'style', schema });
const style = useMemo(() => Object.assign({ ...props.style }, valueMap), [props.style, valueMap]);
return (
<td {...props} ref={ref} className={classNames(props.className, cellClass)} style={style}>