We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c458b1b commit abd9ed3Copy full SHA for abd9ed3
1 file changed
docs/docs/api/init.md
@@ -118,14 +118,33 @@ init(document.getElementById('engine'), {
118
enableCondition: false,
119
});
120
```
121
-###
+
122
### 默认打开移动端画布
123
```typescript
124
import { init } from '@alilc/lowcode-engine';
125
126
init({
127
device: 'mobile',
128
129
+```
130
+### device 参数详细说明
131
132
+引擎默认支持的 device 类型有 `default`、`mobile`、`iphonex`、`iphone6`。
133
134
+插件 `@alilc/lowcode-plugin-simulator-select` 支持的 device 类型有 `default`、`phone`、`tablet`、`desktop`。
135
136
+如果需要自定义的 device 类型,需要补充 device 类型对应的样式,例如 device 为 phone 时,需要补充样式如下:
137
138
+```css
139
+.lc-simulator-device-phone {
140
+ top: 16px;
141
+ bottom: 16px;
142
+ left: 50%;
143
+ width: 375px;
144
+ transform: translateX(-50%);
145
+ margin: auto;
146
+}
147
148
149
150
### 使用 utils 第三方工具扩展
0 commit comments