File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,28 @@ AliLowCodeEngine.project.simulator.renderer.components
2828```
2929看看对应的物料是否存在,如果不存在,排查物料问题。
3030
31+ 如果不正常,查看资产包配置,其中资产包中的 ` components ` 和 ` material.componentsMap ` 生成有关系。
32+
33+ 例如,物料配置信息在 @alilc/lowcode-materials 包里面,即需要在 components 中加上下面的代码
34+
35+ ``` javascript
36+ " components" : [{
37+ " exportName" : " AlilcLowcodeMaterialsMeta" ,
38+ " npm" : {
39+ " package" : " @alilc/lowcode-materials"
40+ },
41+ " url" : " https://alifd.alicdn.com/npm/@alilc/[email protected] /build/lowcode/meta.js" ,
42+ " urls" : {
43+ " default" : " https://alifd.alicdn.com/npm/@alilc/[email protected] /build/lowcode/meta.js" ,
44+ " design" : " https://alifd.alicdn.com/npm/@alilc/[email protected] /build/lowcode/meta.design.js" 45+ }
46+ }]
47+ ```
48+
49+ ` material.componentsMap ` 不存在相关的组件信息,原因有两个:
50+ - 没有添加对应的物料到 components 字段中
51+ - components 配置不正确,需要查看 url 是否正常加载,查看 exportName 是否配置正确,即 ` window.${exportName} ` 是否存在。
52+
31532.选中组件,在控制台中输入
3254``` json
3355AliLowCodeEngine.project.currentDocument.selection.getNodes()[0].exportSchema('render')
You can’t perform that action at this time.
0 commit comments