mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@ export class EventBus<DetailType = any> {
|
|||
}
|
||||
|
||||
on(type: TEventBus, listener: (event: CustomEvent<DetailType>) => void) {
|
||||
if (type ==="loaded-protyle") {
|
||||
console.warn("0.8.8 将移除 loaded-protyle, 请使用 loaded-protyle-static 进行替代");
|
||||
}
|
||||
this.eventTarget.addEventListener(type, listener);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue