通用使用说明
在WEB插件中使用
通过
注册模块名调用模块的API对于存在返回参数的
API,通过await获取返回参数
示例
let result = await Vue.prototype.$designer.createWardrobe([0, 0, 0, 100, 200, 600], {
});在QML插件中使用
通过
注册模块名调用模块的API
示例
let result = designer.createWardrobe([0, 0, 0, 100, 200, 600], {
});部分参数说明
组件信息
通常用于返回组件的组件信息
结构
| 参数 | 字段 | 类型 |
|---|---|---|
| 组件唯一标识 | id | string |
| 组件名称 | name | string |
| 组件类型 | type | string |
示例
{
“id”: “1234567”,
“name”: “柜A”,
“type”: “Wardrobe”
}
