Vanessa 2024-10-23 11:47:06 +08:00
parent 72d1a059ac
commit d10b25c2ca
18 changed files with 44 additions and 45 deletions

View file

@ -18,6 +18,7 @@ import {Protyle} from "../protyle";
import {openMobileFileById} from "../mobile/editor";
import {lockScreen, exitSiYuan} from "../dialog/processSystem";
import {Model} from "../layout/Model";
import {getDockByType} from "../layout/tabUtil";
let openTab;
let openWindow;
@ -52,7 +53,7 @@ openTab = (options: {
app: App,
doc?: {
id: string, // 块 id
action?: string [] // cb-get-all获取所有内容cb-get-focus打开后光标定位在 id 所在的块cb-get-hl: 打开后 id 块高亮
action?: TProtyleAction [] // cb-get-all获取所有内容cb-get-focus打开后光标定位在 id 所在的块cb-get-hl: 打开后 id 块高亮
zoomIn?: boolean // 是否缩放
},
pdf?: {
@ -166,23 +167,24 @@ openTab = (options: {
/// #endif
export const API = {
confirm: confirmDialog,
showMessage,
adaptHotkey: updateHotkeyTip,
confirm: confirmDialog,
Constants,
showMessage,
fetchPost,
fetchSyncPost,
fetchGet,
getFrontend,
getBackend,
lockScreen,
exitSiYuan,
openMobileFileById,
getDockByType,
openTab,
openWindow,
openMobileFileById,
lockScreen,
exitSiYuan,
Protyle,
Plugin,
Dialog,
Menu,
Setting,
Constants,
};