Vanessa 2023-08-30 16:32:54 +08:00
parent 2349b080db
commit c0535ffb98
10 changed files with 1754 additions and 1712 deletions

View file

@ -407,10 +407,11 @@ interface ICommand {
langText?: string, // 显示的文本, 指定后不再使用 langKey 对应的 i18n 文本
hotkey: string,
customHotkey?: string,
callback?: () => void
fileTreeCallback?: (file: import("../layout/dock/Files").Files) => void
editorCallback?: (protyle: IProtyle) => void
dockCallback?: (element: HTMLElement) => void
callback?: () => void // 其余回调存在时将不会触
globalCallback?: () => void // 焦点不在应用内时执行的回调
fileTreeCallback?: (file: import("../layout/dock/Files").Files) => void // 焦点在文档树上时执行的回调
editorCallback?: (protyle: IProtyle) => void // 焦点在编辑器上时执行的回调
dockCallback?: (element: HTMLElement) => void // 焦点在 dock 上时执行的回调
}
interface IPluginData {