mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 13:18:55 +08:00
fix: subtable associatedKey
This commit is contained in:
parent
7becc9f8b1
commit
2b549ea259
@ -32,14 +32,14 @@ export default function Table(props: SimpleTableProps) {
|
||||
const { schema = {}, associatedKey, value, onChange, __index } = props;
|
||||
const { collection_name, name } = schema;
|
||||
const viewName = `${collection_name}.${name}.${schema.viewName || 'table'}`;
|
||||
console.log({ props, associatedKey, schema, __index, viewName, schema });
|
||||
console.log({ props, associatedKey, schema, __index, viewName });
|
||||
return (
|
||||
<>
|
||||
<View
|
||||
// __parent={__parent}
|
||||
data={value}
|
||||
onChange={onChange}
|
||||
associatedKey={__index}
|
||||
associatedKey={__index||associatedKey}
|
||||
viewName={viewName}
|
||||
type={'subTable'}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user