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