From b152b33c0633645d024bd18ffcc2a4dbaf441496 Mon Sep 17 00:00:00 2001 From: Katherine Date: Sat, 17 Aug 2024 17:48:44 +0800 Subject: [PATCH] refactor: markdown rendering engine (#5079) --- packages/core/client/src/locale/zh-CN.json | 2 +- .../blocks/other-blocks/markdown/markdownBlockSettings.ts | 8 ++++---- .../src/schema-settings/SchemaSettingsRenderEngine.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index 84c45b1c8..53b5c0fcb 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -967,7 +967,7 @@ "Clear default value": "清除默认值", "Open in new window": "新窗口打开", "Sorry, the page you visited does not exist.": "抱歉,你访问的页面不存在。", - "Set Template Engine": "设置模板引擎", + "Template engine": "模板引擎", "Default value to current time":"设置字段默认值为当前时间", "Automatically update timestamp on update":"当记录更新时自动设置字段值为当前时间", "Client's time zone":"客户端时区" diff --git a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts index dd49f1581..aecb5cd04 100644 --- a/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts +++ b/packages/core/client/src/modules/blocks/other-blocks/markdown/markdownBlockSettings.ts @@ -30,14 +30,14 @@ export const markdownBlockSettings = new SchemaSettings({ }; }, }, - { - name: 'setBlockTemplate', - Component: SchemaSettingsRenderEngine, - }, { name: 'setTheBlockHeight', Component: SchemaSettingsBlockHeightItem, }, + { + name: 'setBlockTemplate', + Component: SchemaSettingsRenderEngine, + }, { name: 'divider', type: 'divider', diff --git a/packages/core/client/src/schema-settings/SchemaSettingsRenderEngine.tsx b/packages/core/client/src/schema-settings/SchemaSettingsRenderEngine.tsx index b0611841b..602f6c54a 100644 --- a/packages/core/client/src/schema-settings/SchemaSettingsRenderEngine.tsx +++ b/packages/core/client/src/schema-settings/SchemaSettingsRenderEngine.tsx @@ -34,7 +34,7 @@ export function SchemaSettingsRenderEngine() { return ( {