refactor: markdown rendering engine (#5079)

This commit is contained in:
Katherine 2024-08-17 17:48:44 +08:00 committed by GitHub
parent cd4b071831
commit b152b33c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -967,7 +967,7 @@
"Clear default value": "清除默认值", "Clear default value": "清除默认值",
"Open in new window": "新窗口打开", "Open in new window": "新窗口打开",
"Sorry, the page you visited does not exist.": "抱歉,你访问的页面不存在。", "Sorry, the page you visited does not exist.": "抱歉,你访问的页面不存在。",
"Set Template Engine": "设置模板引擎", "Template engine": "模板引擎",
"Default value to current time":"设置字段默认值为当前时间", "Default value to current time":"设置字段默认值为当前时间",
"Automatically update timestamp on update":"当记录更新时自动设置字段值为当前时间", "Automatically update timestamp on update":"当记录更新时自动设置字段值为当前时间",
"Client's time zone":"客户端时区" "Client's time zone":"客户端时区"

View File

@ -30,14 +30,14 @@ export const markdownBlockSettings = new SchemaSettings({
}; };
}, },
}, },
{
name: 'setBlockTemplate',
Component: SchemaSettingsRenderEngine,
},
{ {
name: 'setTheBlockHeight', name: 'setTheBlockHeight',
Component: SchemaSettingsBlockHeightItem, Component: SchemaSettingsBlockHeightItem,
}, },
{
name: 'setBlockTemplate',
Component: SchemaSettingsRenderEngine,
},
{ {
name: 'divider', name: 'divider',
type: 'divider', type: 'divider',

View File

@ -34,7 +34,7 @@ export function SchemaSettingsRenderEngine() {
return ( return (
<SchemaSettingsSelectItem <SchemaSettingsSelectItem
key="render-template" key="render-template"
title={t('Set Template Engine')} title={t('Template engine')}
options={options} options={options}
value={field.decoratorProps.engine || 'string'} value={field.decoratorProps.engine || 'string'}
onChange={(engine) => { onChange={(engine) => {