mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
fix: add pages.toData method
This commit is contained in:
parent
293b7603a5
commit
95d3cb3497
@ -57,6 +57,9 @@ const pages = Object.assign(project, {
|
|||||||
},
|
},
|
||||||
onCurrentPageChange(fn: (page: DocumentModel) => void) {
|
onCurrentPageChange(fn: (page: DocumentModel) => void) {
|
||||||
return project.onCurrentDocumentChange(fn);
|
return project.onCurrentDocumentChange(fn);
|
||||||
|
},
|
||||||
|
toData() {
|
||||||
|
return project.documents.map(doc => doc.toData());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user