This commit is contained in:
Vanessa 2023-05-07 09:55:35 +08:00
parent f85b5d6740
commit 11adc35e10
13 changed files with 136 additions and 64 deletions

View file

@ -50,6 +50,7 @@ interface Window {
newWindow: {
positionPDF(pathStr: string, page: string | number): void
switchTabById(id: string): void
}
Protyle: import("../protyle/method").default
@ -271,6 +272,29 @@ interface IObject {
[key: string]: string;
}
declare interface ILayoutJSON extends ILayoutOptions {
instance?: string,
width?: string,
height?: string,
title?: string,
lang?: string
docIcon?: string
page?: string
path?: string
blockId?: string
icon?: string
rootId?: string
active?: boolean
pin?: boolean
data?: {
cardType: TCardType,
id: string,
title?: string
}
config?: ISearchOption
children?: ILayoutJSON[] | ILayoutJSON
}
declare interface IDockTab {
type: TDockType;
size: { width: number, height: number }