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 = {
|
export const GanttActionInitializers = {
|
||||||
title: '{{t("Configure actions")}}',
|
title: '{{t("Configure actions")}}',
|
||||||
icon: 'SettingOutlined',
|
icon: 'SettingOutlined',
|
||||||
style: { marginLeft: 8 },
|
style: { marginLeft: 8 },
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
type: 'itemGroup',
|
type: 'itemGroup',
|
||||||
title: '{{t("Enable actions")}}',
|
title: '{{t("Enable actions")}}',
|
||||||
children: [
|
children: [
|
||||||
// {
|
// {
|
||||||
// type: 'item',
|
// type: 'item',
|
||||||
// title: '{{t("Show linkto")}}',
|
// title: '{{t("Show linkto")}}',
|
||||||
// component: 'ActionInitializer',
|
// component: 'ActionInitializer',
|
||||||
// schema: {
|
// schema: {
|
||||||
// title: '{{t("Select view")}}',
|
// title: '{{t("Select view")}}',
|
||||||
// 'x-component': 'GanttV2.ViewSelect',
|
// 'x-component': 'GanttV2.ViewSelect',
|
||||||
// 'x-action': `gantt:showLinkto`,
|
// 'x-action': `gantt:showLinkto`,
|
||||||
// 'x-align': 'right',
|
// 'x-align': 'right',
|
||||||
// 'x-designer': 'Action.Designer',
|
// 'x-designer': 'Action.Designer',
|
||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
type: 'item',
|
type: 'item',
|
||||||
title: "{{t('Filter')}}",
|
title: "{{t('Filter')}}",
|
||||||
component: 'FilterActionInitializer',
|
component: 'FilterActionInitializer',
|
||||||
schema: {
|
schema: {
|
||||||
'x-align': 'right',
|
'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") }}',
|
type: 'item',
|
||||||
component: 'CreateActionInitializer',
|
title: "{{t('Delete')}}",
|
||||||
schema: {
|
component: 'BulkDestroyActionInitializer',
|
||||||
'x-align': 'right',
|
schema: {
|
||||||
'x-decorator': 'ACLActionProvider',
|
'x-align': 'right',
|
||||||
'x-acl-action-props': {
|
'x-decorator': 'ACLActionProvider',
|
||||||
skipScopeCheck: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
},
|
||||||
},
|
],
|
||||||
],
|
},
|
||||||
};
|
],
|
||||||
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user