fix: disable popup button in add-modal (#1808)

* fix: disable popup button in add-modal

* fix: disable popup button in form block
This commit is contained in:
李小斐 2023-05-25 10:33:59 +08:00 committed by GitHub
parent 710bd2dfd2
commit c603108542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,56 +24,57 @@ export const FormActionInitializers = {
type: 'subMenu',
title: '{{t("Customize")}}',
children: [
{
type: 'item',
title: '{{t("Popup")}}',
component: 'CustomizeActionInitializer',
schema: {
type: 'void',
title: '{{ t("Popup") }}',
'x-action': 'customize:popup',
'x-designer': 'Action.Designer',
'x-component': 'Action',
'x-component-props': {
openMode: 'drawer',
},
properties: {
drawer: {
type: 'void',
title: '{{ t("Popup") }}',
'x-component': 'Action.Container',
'x-component-props': {
className: 'nb-action-popup',
},
properties: {
tabs: {
type: 'void',
'x-component': 'Tabs',
'x-component-props': {},
'x-initializer': 'TabPaneInitializers',
properties: {
tab1: {
type: 'void',
title: '{{t("Details")}}',
'x-component': 'Tabs.TabPane',
'x-designer': 'Tabs.Designer',
'x-component-props': {},
properties: {
grid: {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'RecordBlockInitializers',
properties: {},
},
},
},
},
},
},
},
},
},
},
// 表单区块内暂时屏蔽【打开弹窗】按钮
// {
// type: 'item',
// title: '{{t("Popup")}}',
// component: 'CustomizeActionInitializer',
// schema: {
// type: 'void',
// title: '{{ t("Popup") }}',
// 'x-action': 'customize:popup',
// 'x-designer': 'Action.Designer',
// 'x-component': 'Action',
// 'x-component-props': {
// openMode: 'drawer',
// },
// properties: {
// drawer: {
// type: 'void',
// title: '{{ t("Popup") }}',
// 'x-component': 'Action.Container',
// 'x-component-props': {
// className: 'nb-action-popup',
// },
// properties: {
// tabs: {
// type: 'void',
// 'x-component': 'Tabs',
// 'x-component-props': {},
// 'x-initializer': 'TabPaneInitializers',
// properties: {
// tab1: {
// type: 'void',
// title: '{{t("Details")}}',
// 'x-component': 'Tabs.TabPane',
// 'x-designer': 'Tabs.Designer',
// 'x-component-props': {},
// properties: {
// grid: {
// type: 'void',
// 'x-component': 'Grid',
// 'x-initializer': 'RecordBlockInitializers',
// properties: {},
// },
// },
// },
// },
// },
// },
// },
// },
// },
// },
{
type: 'item',
title: '{{t("Save record")}}',
@ -154,56 +155,57 @@ export const CreateFormActionInitializers = {
type: 'subMenu',
title: '{{t("Customize")}}',
children: [
{
type: 'item',
title: '{{t("Popup")}}',
component: 'CustomizeActionInitializer',
schema: {
type: 'void',
title: '{{ t("Popup") }}',
'x-action': 'customize:popup',
'x-designer': 'Action.Designer',
'x-component': 'Action',
'x-component-props': {
openMode: 'drawer',
},
properties: {
drawer: {
type: 'void',
title: '{{ t("Popup") }}',
'x-component': 'Action.Container',
'x-component-props': {
className: 'nb-action-popup',
},
properties: {
tabs: {
type: 'void',
'x-component': 'Tabs',
'x-component-props': {},
'x-initializer': 'TabPaneInitializers',
properties: {
tab1: {
type: 'void',
title: '{{t("Details")}}',
'x-component': 'Tabs.TabPane',
'x-designer': 'Tabs.Designer',
'x-component-props': {},
properties: {
grid: {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'RecordBlockInitializers',
properties: {},
},
},
},
},
},
},
},
},
},
},
// 添加弹窗内暂时屏蔽【打开弹窗】按钮
// {
// type: 'item',
// title: '{{t("Popup")}}',
// component: 'CustomizeActionInitializer',
// schema: {
// type: 'void',
// title: '{{ t("Popup") }}',
// 'x-action': 'customize:popup',
// 'x-designer': 'Action.Designer',
// 'x-component': 'Action',
// 'x-component-props': {
// openMode: 'drawer',
// },
// properties: {
// drawer: {
// type: 'void',
// title: '{{ t("Popup") }}',
// 'x-component': 'Action.Container',
// 'x-component-props': {
// className: 'nb-action-popup',
// },
// properties: {
// tabs: {
// type: 'void',
// 'x-component': 'Tabs',
// 'x-component-props': {},
// 'x-initializer': 'TabPaneInitializers',
// properties: {
// tab1: {
// type: 'void',
// title: '{{t("Details")}}',
// 'x-component': 'Tabs.TabPane',
// 'x-designer': 'Tabs.Designer',
// 'x-component-props': {},
// properties: {
// grid: {
// type: 'void',
// 'x-component': 'Grid',
// 'x-initializer': 'RecordBlockInitializers',
// properties: {},
// },
// },
// },
// },
// },
// },
// },
// },
// },
// },
{
type: 'item',
title: '{{t("Save record")}}',