Vanessa 2024-10-23 16:14:44 +08:00
parent 814a4ec3ac
commit c856c8725b
3 changed files with 4 additions and 3 deletions

View file

@ -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();

View file

@ -172,7 +172,7 @@ const getModelByDockType = (type: TDock | string) => {
/// #else
return getDockByType(type).data[type];
/// #endif
}
};
export const API = {
adaptHotkey: updateHotkeyTip,

View file

@ -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