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',
|
name: 'divider',
|
||||||
type: 'divider',
|
type: 'divider',
|
||||||
|
useVisible() {
|
||||||
|
const fieldSchema = useFieldSchema();
|
||||||
|
return fieldSchema['x-component'] !== 'AssociationField.SubTable';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'item',
|
type: 'item',
|
||||||
name: 'add',
|
name: 'add',
|
||||||
title: '{{t("Action column")}}',
|
title: '{{t("Action column")}}',
|
||||||
Component: 'TableActionColumnInitializer',
|
Component: 'TableActionColumnInitializer',
|
||||||
|
useVisible() {
|
||||||
|
const fieldSchema = useFieldSchema();
|
||||||
|
return fieldSchema['x-component'] !== 'AssociationField.SubTable';
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user