mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-10 01:48:18 +00:00
fix: 🐛 add pollyfill for vision page.getHistory
This commit is contained in:
parent
f1e577a322
commit
0b905d01d3
@ -12,8 +12,8 @@ import { uniqueId } from '@ali/lowcode-utils';
|
|||||||
|
|
||||||
export type GetDataType<T, NodeType> = T extends undefined
|
export type GetDataType<T, NodeType> = T extends undefined
|
||||||
? NodeType extends {
|
? NodeType extends {
|
||||||
schema: infer R;
|
schema: infer R;
|
||||||
}
|
}
|
||||||
? R
|
? R
|
||||||
: any
|
: any
|
||||||
: T;
|
: T;
|
||||||
@ -465,6 +465,14 @@ export class DocumentModel {
|
|||||||
getRoot() {
|
getRoot() {
|
||||||
return this.rootNode;
|
return this.rootNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 兼容vision
|
||||||
|
*/
|
||||||
|
getHistory(): History {
|
||||||
|
return this.history;
|
||||||
|
}
|
||||||
|
|
||||||
get root() {
|
get root() {
|
||||||
return this.rootNode;
|
return this.rootNode;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user