mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 07:29:24 +08:00
feat: gantt block action configure
This commit is contained in:
parent
49f4cbfbfe
commit
db901a1651
@ -1,47 +1,55 @@
|
||||
// 甘特图的操作配置
|
||||
export const GanttActionInitializers = {
|
||||
title: '{{t("Configure actions")}}',
|
||||
icon: 'SettingOutlined',
|
||||
style: { marginLeft: 8 },
|
||||
items: [
|
||||
{
|
||||
type: 'itemGroup',
|
||||
title: '{{t("Enable actions")}}',
|
||||
children: [
|
||||
// {
|
||||
// type: 'item',
|
||||
// title: '{{t("Show linkto")}}',
|
||||
// component: 'ActionInitializer',
|
||||
// schema: {
|
||||
// title: '{{t("Select view")}}',
|
||||
// 'x-component': 'GanttV2.ViewSelect',
|
||||
// 'x-action': `gantt:showLinkto`,
|
||||
// 'x-align': 'right',
|
||||
// 'x-designer': 'Action.Designer',
|
||||
// },
|
||||
// },
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Filter')}}",
|
||||
component: 'FilterActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
title: '{{t("Configure actions")}}',
|
||||
icon: 'SettingOutlined',
|
||||
style: { marginLeft: 8 },
|
||||
items: [
|
||||
{
|
||||
type: 'itemGroup',
|
||||
title: '{{t("Enable actions")}}',
|
||||
children: [
|
||||
// {
|
||||
// type: 'item',
|
||||
// title: '{{t("Show linkto")}}',
|
||||
// component: 'ActionInitializer',
|
||||
// schema: {
|
||||
// title: '{{t("Select view")}}',
|
||||
// 'x-component': 'GanttV2.ViewSelect',
|
||||
// 'x-action': `gantt:showLinkto`,
|
||||
// 'x-align': 'right',
|
||||
// 'x-designer': 'Action.Designer',
|
||||
// },
|
||||
// },
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Filter')}}",
|
||||
component: 'FilterActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: '{{ t("Add new") }}',
|
||||
component: 'CreateActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
'x-acl-action-props': {
|
||||
skipScopeCheck: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: '{{ t("Add new") }}',
|
||||
component: 'CreateActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
'x-acl-action-props': {
|
||||
skipScopeCheck: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'item',
|
||||
title: "{{t('Delete')}}",
|
||||
component: 'BulkDestroyActionInitializer',
|
||||
schema: {
|
||||
'x-align': 'right',
|
||||
'x-decorator': 'ACLActionProvider',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user