From 3b8af6e863fafb619f7393e2321bf84333e5f543 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 17 May 2023 11:36:41 +0800 Subject: [PATCH] feat(client): change the order of blocks --- .../buttons/BlockInitializers.tsx | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/core/client/src/schema-initializer/buttons/BlockInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/BlockInitializers.tsx index 531e0f43a..a813c87ba 100644 --- a/packages/core/client/src/schema-initializer/buttons/BlockInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/BlockInitializers.tsx @@ -1,5 +1,4 @@ import { gridRowColWrap } from '../utils'; -import * as chartConfig from './chart-config'; // 页面里添加区块 export const BlockInitializers = { @@ -18,18 +17,6 @@ export const BlockInitializers = { title: '{{t("Table")}}', component: 'TableBlockInitializer', }, - { - key: 'List', - type: 'item', - title: '{{t("List")}}', - component: 'ListBlockInitializer', - }, - { - key: 'GridCard', - type: 'item', - title: '{{t("Grid Card")}}', - component: 'GridCardBlockInitializer', - }, { key: 'form', type: 'item', @@ -42,6 +29,18 @@ export const BlockInitializers = { title: '{{t("Details")}}', component: 'DetailsBlockInitializer', }, + { + key: 'List', + type: 'item', + title: '{{t("List")}}', + component: 'ListBlockInitializer', + }, + { + key: 'GridCard', + type: 'item', + title: '{{t("Grid Card")}}', + component: 'GridCardBlockInitializer', + }, { key: 'calendar', type: 'item',