mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 01:56:16 +00:00
refactor: replace CreateFormBlockInitializers to blockInitializers:createForm
This commit is contained in:
parent
3e02142fda
commit
e9a38b0b4d
@ -40,7 +40,7 @@ export const CreateChildInitializer = (props) => {
|
||||
grid: {
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
|
@ -43,7 +43,7 @@ export const CreateActionInitializer = () => {
|
||||
grid: {
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
|
@ -980,7 +980,7 @@ test.describe('creation form block schema settings', () => {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'w224zhqyair',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
|
@ -1830,7 +1830,7 @@ export const T2993: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
kvyqrrxvggn: {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -2412,7 +2412,7 @@ export const T2615: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
'8ei3tsaojf6': {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -3325,7 +3325,7 @@ export const T2845: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-index': 1,
|
||||
properties: {
|
||||
'8ei3tsaojf6': {
|
||||
|
@ -468,7 +468,7 @@ export const T2187 = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
qvyfk3a9a2g: {
|
||||
_isJSONSchemaObject: true,
|
||||
|
@ -35,7 +35,7 @@ export default {
|
||||
grid: {
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
|
@ -18,7 +18,7 @@ export const TabPaneInitializers = (props?: any) => {
|
||||
if (!initializer) {
|
||||
initializer = 'RecordBlockInitializers';
|
||||
if (isCreate || !record) {
|
||||
initializer = 'CreateFormBlockInitializers';
|
||||
initializer = 'blockInitializers:createForm';
|
||||
} else if (isBulkEdit) {
|
||||
initializer = 'BulkEditBlockInitializers';
|
||||
}
|
||||
|
@ -1315,7 +1315,7 @@ export const oneEmptyTableBlockWithActions: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'k0zm3uifn6v',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
@ -1720,7 +1720,7 @@ export const oneEmptyTableBlockWithActions: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'vtcnkzcaeec',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
@ -1922,7 +1922,7 @@ export const oneTableBlockWithActionsAndFormBlocks: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
'7tcjyx5gipn': {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -4003,7 +4003,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndBasicFields: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
'7soqvrflnps': {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -6381,7 +6381,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndChoicesFields: PageConfig =
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
xgwlijx7tl0: {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -7818,7 +7818,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndMediaFields: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
q5fy0fkcotq: {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -8910,7 +8910,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndDatetimeFields: PageConfig
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
'54z7u3t354f': {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -9889,7 +9889,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndAssociationFields: PageConf
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
'8yo09nilrra': {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -11514,7 +11514,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndAdvancedFields: PageConfig
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
jykx4mc4tan: {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -12728,7 +12728,7 @@ export const oneTableBlockWithAddNewAndViewAndEditAndSystemInfoFields: PageConfi
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
zmbofsdker4: {
|
||||
_isJSONSchemaObject: true,
|
||||
@ -15516,7 +15516,7 @@ export const oneTableSubformWithMultiLevelAssociationFields: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'ezrqm7whaxk',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
@ -17232,7 +17232,7 @@ export const oneTableSubtableWithMultiLevelAssociationFields: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'hhhjt2axsd2',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
@ -18246,7 +18246,7 @@ export const formBlockDefaultValueTemplate: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {
|
||||
ec8k6t8hyfd: {
|
||||
_isJSONSchemaObject: true,
|
||||
|
@ -116,7 +116,7 @@ export const oneTableBlock: PageConfig = {
|
||||
type: 'void',
|
||||
version: '2.0',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
_isJSONSchemaObject: true,
|
||||
properties: {
|
||||
f3q7xmyiyl4: {
|
||||
|
@ -38,7 +38,7 @@ export const DuplicateActionInitializer = (props) => {
|
||||
grid: {
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
|
@ -465,7 +465,7 @@ export const oneEmptyTableBlockWithDuplicateActions: PageConfig = {
|
||||
version: '2.0',
|
||||
type: 'void',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
'x-uid': 'vtcnkzcaeec',
|
||||
'x-async': false,
|
||||
'x-index': 1,
|
||||
|
@ -503,7 +503,7 @@ export const oneCalenderWithViewAction: PageConfig = {
|
||||
type: 'void',
|
||||
version: '2.0',
|
||||
'x-component': 'Grid',
|
||||
'x-initializer': 'CreateFormBlockInitializers',
|
||||
'x-initializer': 'blockInitializers:createForm',
|
||||
_isJSONSchemaObject: true,
|
||||
properties: {
|
||||
'7e9xtqdm96x': {
|
||||
|
@ -13,7 +13,7 @@ export class IframeBlockPlugin extends Plugin {
|
||||
Component: 'IframeBlockInitializer',
|
||||
});
|
||||
|
||||
const createFormBlockInitializers = this.app.schemaInitializerManager.get('CreateFormBlockInitializers');
|
||||
const createFormBlockInitializers = this.app.schemaInitializerManager.get('blockInitializers:createForm');
|
||||
createFormBlockInitializers?.add('otherBlocks.iframe', {
|
||||
title: '{{t("Iframe")}}',
|
||||
Component: 'IframeBlockInitializer',
|
||||
|
Loading…
Reference in New Issue
Block a user