mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
fix: 增加兼容 API
This commit is contained in:
parent
36621ea55c
commit
2960446197
@ -584,6 +584,13 @@ export class DocumentModel {
|
||||
refresh() {
|
||||
console.warn('refresh method is deprecated');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
onRefresh(func: () => void) {
|
||||
console.warn('onRefresh method is deprecated');
|
||||
}
|
||||
}
|
||||
|
||||
export function isDocumentModel(obj: any): obj is DocumentModel {
|
||||
|
||||
@ -113,6 +113,10 @@ export class Trunk {
|
||||
}
|
||||
return setter;
|
||||
}
|
||||
|
||||
getRecents(limit: number) {
|
||||
return this.getList().filter((prototype) => prototype.getCategory()).slice(0, limit);
|
||||
}
|
||||
}
|
||||
|
||||
export default new Trunk();
|
||||
|
||||
@ -161,6 +161,9 @@ const actionPane = Object.assign(skeleton.topArea, {
|
||||
setActions() {
|
||||
// empty
|
||||
},
|
||||
get actions() {
|
||||
return skeleton.topArea.container.items;
|
||||
},
|
||||
});
|
||||
const dockPane = Object.assign(skeleton.leftArea, {
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user