refactor: mobilePage:addBlock

This commit is contained in:
Zeke Zhang 2024-03-06 23:19:50 +08:00
parent dbec0eedd9
commit af43eb9450
5 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ export const PageSchema = {
grid: {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'blockInitializers:mobilePage',
'x-initializer': 'mobilePage:addBlock',
'x-component-props': {
showDivider: false,
},

View File

@ -77,7 +77,7 @@ export const PageDesigner = (props) => {
'x-component-props': {},
'x-initializer': 'TabPaneInitializers',
'x-initializer-props': {
gridInitializer: 'blockInitializers:mobilePage',
gridInitializer: 'mobilePage:addBlock',
},
properties: {
tab1: {

View File

@ -75,7 +75,7 @@ export const mBlockInitializers_deprecated = new CompatibleSchemaInitializer({
export const mBlockInitializers = new CompatibleSchemaInitializer(
{
name: 'blockInitializers:mobilePage',
name: 'mobilePage:addBlock',
title: '{{t("Add block")}}',
icon: 'PlusOutlined',
wrap: gridRowColWrap,

View File

@ -32,7 +32,7 @@ export class MobileClientPlugin extends Plugin {
grid: {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'blockInitializers:mobilePage',
'x-initializer': 'mobilePage:addBlock',
'x-component-props': {
showDivider: false,
},

View File

@ -18,7 +18,7 @@ export const routes = [
grid: {
type: 'void',
'x-component': 'Grid',
'x-initializer': 'blockInitializers:mobilePage',
'x-initializer': 'mobilePage:addBlock',
'x-component-props': {
showDivider: false,
},