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) 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' */