fix: 🐛 add pollyfill for vision page.getHistory

This commit is contained in:
林熠 2020-05-04 15:36:59 +08:00
parent f1e577a322
commit 0b905d01d3

View File

@ -12,8 +12,8 @@ import { uniqueId } from '@ali/lowcode-utils';
export type GetDataType<T, NodeType> = T extends undefined
? NodeType extends {
schema: infer R;
}
schema: infer R;
}
? R
: any
: T;
@ -465,6 +465,14 @@ export class DocumentModel {
getRoot() {
return this.rootNode;
}
/**
* vision
*/
getHistory(): History {
return this.history;
}
get root() {
return this.rootNode;
}