Skip to content

Commit b0b64f4

Browse files
authored
Merge pull request #2 from markyun/fix/editor-core
fix: missing engine options config info
2 parents fb580b5 + 4308c07 commit b0b64f4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CONTRIBUTOR.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- [leoyuan](https://github.com/leoyuan)
1717
- [liujuping](https://github.com/liujuping)
1818
- [lqy978599280](https://github.com/lqy978599280)
19+
- [markyun](https://github.com/markyun)
1920
- [mark-ck](https://github.com/mark-ck)
2021
- [mochen666](https://github.com/mochen666)
2122
- [tsy77](https://github.com/tsy77)

packages/editor-core/src/config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ const VALID_ENGINE_OPTIONS = {
3030
default: 'default',
3131
description: '设备类型',
3232
},
33+
deviceClassName: {
34+
type: 'string',
35+
default: undefined,
36+
description: '指定初始化的 deviceClassName,挂载到画布的顶层节点上',
37+
},
3338
locale: {
3439
type: 'string',
3540
default: 'zh_CN',
@@ -131,6 +136,10 @@ export interface EngineOptions {
131136
* 设备类型,默认值:'default'
132137
*/
133138
device?: 'default' | 'mobile' | string;
139+
/**
140+
* 指定初始化的 deviceClassName,挂载到画布的顶层节点上
141+
*/
142+
deviceClassName?: string;
134143
/**
135144
* 语言,默认值:'zh_CN'
136145
*/

0 commit comments

Comments
 (0)