From 892b47a941c223a8319d81dd3fea18f6f452bbeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=BA=91=E9=85=B1?= Date: Thu, 19 May 2022 14:30:23 +0800 Subject: [PATCH 1/2] fix: missing engine options config info fix: missing engine options config info --- packages/editor-core/src/config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/editor-core/src/config.ts b/packages/editor-core/src/config.ts index f18e21575a..e71fed8fe2 100644 --- a/packages/editor-core/src/config.ts +++ b/packages/editor-core/src/config.ts @@ -30,6 +30,11 @@ const VALID_ENGINE_OPTIONS = { default: 'default', description: '设备类型', }, + deviceClassName: { + type: 'string', + default: undefined, + description: '指定初始化的 deviceClassName,挂载到画布的顶层节点上', + }, locale: { type: 'string', default: 'zh_CN', @@ -131,6 +136,10 @@ export interface EngineOptions { * 设备类型,默认值:'default' */ device?: 'default' | 'mobile' | string; + /** + * 指定初始化的 deviceClassName,挂载到画布的顶层节点上 + */ + deviceClassName?: string; /** * 语言,默认值:'zh_CN' */ From 4308c079004b01003ef250070d9d24f1c3f75a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E4=BA=91=E9=85=B1?= Date: Thu, 19 May 2022 14:33:32 +0800 Subject: [PATCH 2/2] fix: missing engine options config info fix: missing engine options config info --- CONTRIBUTOR.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTOR.md b/CONTRIBUTOR.md index c15f58af95..89757bac92 100644 --- a/CONTRIBUTOR.md +++ b/CONTRIBUTOR.md @@ -16,6 +16,7 @@ - [leoyuan](https://github.com/leoyuan) - [liujuping](https://github.com/liujuping) - [lqy978599280](https://github.com/lqy978599280) +- [markyun](https://github.com/markyun) - [mark-ck](https://github.com/mark-ck) - [mochen666](https://github.com/mochen666) - [tsy77](https://github.com/tsy77)