mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 16:36:56 +00:00
fix: subtable action
This commit is contained in:
parent
335de20ec0
commit
dffef4f44b
@ -1,5 +1,3 @@
|
||||
import { useCollection } from '../../';
|
||||
|
||||
// 表格操作配置
|
||||
export const SubTableActionInitializers = {
|
||||
title: "{{t('Configure actions')}}",
|
||||
@ -19,30 +17,20 @@ export const SubTableActionInitializers = {
|
||||
component: 'CreateActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
'x-acl-action-props': {
|
||||
skipScopeCheck: true,
|
||||
},
|
||||
},
|
||||
visible: () => {
|
||||
const collection = useCollection();
|
||||
return collection.template !== 'view' && collection.template !== 'file';
|
||||
// 'x-component-props': {
|
||||
// size: 'small',
|
||||
// },
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Select')}}",
|
||||
component: 'SelectActionInitializer',
|
||||
title: "{{t('Delete')}}",
|
||||
component: 'BulkDestroyActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
'x-acl-action-props': {
|
||||
skipScopeCheck: true,
|
||||
},
|
||||
},
|
||||
visible: () => {
|
||||
const collection = useCollection();
|
||||
return collection.template !== 'view' && collection.template !== 'file';
|
||||
// 'x-component-props': {
|
||||
// size: 'small',
|
||||
// },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user