fix(subTable): ensure real-time update of formula field values (#4930)

* fix(subTable): ensure real-time update of formula field values

* chore: fix typo
This commit is contained in:
Zeke Zhang 2024-07-23 09:27:20 +08:00 committed by GitHub
parent 747910f482
commit c8a9d1dc94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -539,11 +539,12 @@ export const Table: any = withDynamicSchemaProps(
return (
<td {...props} ref={ref} className={classNames(props.className, cellClass)}>
{inView || isIndex ? props.children : <Skeleton.Button style={{ height: '100%' }} />}
{/* 子表格中不能使用懒渲染。详见https://nocobase.height.app/T-4889/description */}
{others.isSubTable || inView || isIndex ? props.children : <Skeleton.Button style={{ height: '100%' }} />}
</td>
);
},
[dataSource.length],
[dataSource.length, others.isSubTable],
);
const components = useMemo(() => {