Optional
hasNodeByCodeId
hasNodeByCodeId?: ((codeId: string) => boolean)
Type declaration
- (codeId): boolean
Returns boolean
存在返回 true,否则返回 false
insertAfter
insertAfter: ((targetNodeId: string, newNode: any) => this)
insertBefore
insertBefore: ((targetNodeId: string, newNode: any) => this)
Optional
listForms
listForms?: (() => Record<string, string[]>)
Optional
listImportSources
listImportSources?: (() => string[])
Optional
listModals
listModals?: (() => {
label: string;
value: string;
}[])
removeNode
removeNode: ((targetNodeId: string) => this)
replaceNode
replaceNode: ((targetNodeId: string, newNode: any) => this)
replaceViewChildren
replaceViewChildren: ((rawNodes: any[]) => this)
update
update: ((code?: string, isFormatCode?: boolean, refreshWorkspace?: boolean) => void)
updateNodeAttribute
updateNodeAttribute: ((nodeId: string, attrName: string, attrValue?: any, relatedImports?: string[]) => this)
updateNodeAttributes
updateNodeAttributes: ((nodeId: string, config: Record<string, any>, relatedImports?: string[]) => this)
添加新的导入符号