Skip to content

Commit 00f2941

Browse files
committed
update: doc
1 parent c88b492 commit 00f2941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ console.log(comp.dom.tagName) // 此处会输出 CUSTOM-COMP
4444
| 属性名 | 类型 | 默认值 | 描述 |
4545
|---|---|---|---|
4646
| compiler | String | official | wxml 编译器类型,传入 official 表示使用官方编译器,传入 simulate 表示使用 js 实现的模拟编译器 |
47-
| compilerOptions | Object | {} | 编译配置,当 compiler = official 时生效 |
47+
| compilerOptions | Object | | 编译配置,当 compiler = official 时生效 |
4848
| rootPath | String | 组件所在目录 | 项目根路径,用于编译组件相关模板,要求组件所有依赖在此目录下,不传则取当前组件所在目录作为其值 |
4949
| less | Boolean | false | 自定义组件的 wxss 是否需要经过 less 编译 |
5050
| usingComponents | Object | undefined | 使用到的自定义组件映射表,会将传入组件申明的 usingComponents 覆盖 |
@@ -69,8 +69,8 @@ const id2 = simulate.load('/path/to/component', 'custom-comp', {
6969
| 属性名 | 类型 | 默认值 | 描述 |
7070
|---|---|---|---|
7171
| compilerOptions | Number | 1024 * 1024 | 执行编译时输出缓存区大小 |
72-
| wxmlList | Array/<String/> | | rootPath 下需要编译的 wxml 文件,默认取 rootPath 下所有 wxml 文件 |
73-
| wxsList | Array/<String/> | | rootPath 下需要编译的 wxs 文件,默认取 rootPath 下所有 wxs 文件 |
72+
| wxmlList | Array\<String\> | | rootPath 下需要编译的 wxml 文件,默认取 rootPath 下所有 wxml 文件 |
73+
| wxsList | Array\<String\> | | rootPath 下需要编译的 wxs 文件,默认取 rootPath 下所有 wxs 文件 |
7474

7575
### definition
7676

0 commit comments

Comments
 (0)