This commit is contained in:
parent
814a4ec3ac
commit
c856c8725b
3 changed files with 4 additions and 3 deletions
|
@ -46,6 +46,7 @@ const openDockMenu = (app: App) => {
|
|||
}
|
||||
}
|
||||
custom = plugin.docks[dockId].mobileModel(document.querySelector('#sidebar [data-type="sidebar-plugin"]'));
|
||||
window.siyuan.mobile.docks[dockId] = custom
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -135,7 +136,7 @@ export const initFramework = (app: App, isStart: boolean) => {
|
|||
}
|
||||
});
|
||||
});
|
||||
window.siyuan.mobile.docks.files = new MobileFiles(app);
|
||||
window.siyuan.mobile.docks.file = new MobileFiles(app);
|
||||
document.getElementById("toolbarFile").addEventListener("click", () => {
|
||||
hideKeyboardToolbar();
|
||||
activeBlur();
|
||||
|
|
|
@ -172,7 +172,7 @@ const getModelByDockType = (type: TDock | string) => {
|
|||
/// #else
|
||||
return getDockByType(type).data[type];
|
||||
/// #endif
|
||||
}
|
||||
};
|
||||
|
||||
export const API = {
|
||||
adaptHotkey: updateHotkeyTip,
|
||||
|
|
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
@ -383,7 +383,7 @@ interface ISiyuan {
|
|||
tag: import("../mobile/dock/MobileTags").MobileTags | null,
|
||||
backlink: import("../mobile/dock/MobileBacklinks").MobileBacklinks | null,
|
||||
inbox: import("../layout/dock/Inbox").Inbox | null,
|
||||
} & { [key: string]: import("../layout/Model").Model | boolean };
|
||||
} & { [key: string]: import("../layout/Model").Model | any };
|
||||
},
|
||||
user?: {
|
||||
userId: string
|
||||
|
|
Loading…
Add table
Reference in a new issue