feat: add getComponentsMap() for DocumentModel

This commit is contained in:
LeoYuan 袁力皓 2022-06-07 11:03:23 +08:00 committed by 絮黎
parent 031c7f25f1
commit f9566454ef

View File

@ -186,6 +186,15 @@ export default class DocumentModel {
this[documentSymbol].removeNode(idOrNode as any); this[documentSymbol].removeNode(idOrNode as any);
} }
/**
* componentsMap of documentModel
* @param extraComps
* @returns
*/
getComponentsMap(extraComps?: string[]) {
return this[documentSymbol].getComponentsMap(extraComps);
}
/** /**
* document * document
*/ */