-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
版本号:AliLowCodeEngine v1.1.10 AliLowCodeExt v1.0.6
根据本文档
/**
* 当前 document 新增节点事件,此时节点已经挂载到 document 上
* set callback for event on node is mounted to canvas
*/
onMountNode(fn: (payload: { node: IPublicModelNode }) => void): IPublicTypeDisposable;
IPublicModelNode 含有 importSchema 与 exportSchema方法
可是实际使用中缺少这个两个方法
也不存在 这一对方法 getExtraPropValue setExtraPropValue
存在 node.schema 属性可以获取到schema 但无法修改
project.currentDocument.onMountNode(({ node }) => {
let nodeSchema = node.exportSchema() // Uncaught TypeError: node.exportSchema is not a function
let schemaObj = node.schema
node.importSchema(schemaObj) // Uncaught TypeError: node.importSchema is not a function
})
Metadata
Metadata
Assignees
Labels
WIPWorking in Progress / 有人跟进中Working in Progress / 有人跟进中