mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:16:31 +00:00
refactor: mobilePage:addBlock
This commit is contained in:
parent
dbec0eedd9
commit
af43eb9450
@ -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,
|
||||
},
|
||||
|
@ -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: {
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
},
|
||||
|
@ -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,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user