mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
72d1a059ac
commit
d10b25c2ca
18 changed files with 44 additions and 45 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue