mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:26:21 +00:00
fix: sub-table should not support action column (#3497)
* fix: sub-table should not support action column * fix: sub-table should not support action column
This commit is contained in:
parent
626823b4b5
commit
ea35d103ac
@ -87,12 +87,20 @@ export const tableColumnInitializers = new SchemaInitializer({
|
||||
{
|
||||
name: 'divider',
|
||||
type: 'divider',
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return fieldSchema['x-component'] !== 'AssociationField.SubTable';
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
name: 'add',
|
||||
title: '{{t("Action column")}}',
|
||||
Component: 'TableActionColumnInitializer',
|
||||
useVisible() {
|
||||
const fieldSchema = useFieldSchema();
|
||||
return fieldSchema['x-component'] !== 'AssociationField.SubTable';
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user