mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
560ff8c9d4
commit
9cc072f13d
10 changed files with 217 additions and 52 deletions
|
|
@ -541,7 +541,7 @@ export const copyTab = (tab: Tab) => {
|
|||
});
|
||||
};
|
||||
|
||||
export const getInstanceById = (id: string) => {
|
||||
export const getInstanceById = (id: string, layout =window.siyuan.layout.centerLayout) => {
|
||||
const _getInstanceById = (item: Layout | Wnd, id: string) => {
|
||||
if (item.id === id) {
|
||||
return item;
|
||||
|
|
@ -557,7 +557,7 @@ export const getInstanceById = (id: string) => {
|
|||
}
|
||||
}
|
||||
};
|
||||
return _getInstanceById(window.siyuan.layout.centerLayout, id);
|
||||
return _getInstanceById(layout, id);
|
||||
};
|
||||
|
||||
export const addResize = (obj: Layout | Wnd) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue