Vanessa 2022-08-07 21:58:41 +08:00
parent ad2510dfb5
commit b5b46afabd
9 changed files with 124 additions and 97 deletions

View file

@ -126,6 +126,16 @@ interface ISiyuan {
dialogs: import("../dialog").Dialog[],
}
interface IScrollAttr {
startId: string,
endId: string
scrollTop: number,
focusId?: string,
focusStart?: number
focusEnd?: number
zoomInId?: string
}
interface IOperation {
action: TOperation, // move delete 不需要传 data
id: string,

View file

@ -346,7 +346,7 @@ interface IOptions {
mode?: TEditorMode,
blockId: string
key?: string
scrollAttr?: string
scrollAttr?: IScrollAttr
defId?: string
render?: {
background?: boolean