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

This commit is contained in:
Zeke Zhang 2024-07-22 20:07:37 +08:00
parent 0a9f5c7d94
commit 9c9177f848

View File

@ -539,11 +539,12 @@ export const Table: any = withDynamicSchemaProps(
return ( return (
<td {...props} ref={ref} className={classNames(props.className, cellClass)}> <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> </td>
); );
}, },
[dataSource.length], [dataSource.length, others.isSubTable],
); );
const components = useMemo(() => { const components = useMemo(() => {