mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
This commit is contained in:
parent
9f0eaa6a0b
commit
cad7d48320
6 changed files with 87 additions and 66 deletions
7
app/src/types/protyle.d.ts
vendored
7
app/src/types/protyle.d.ts
vendored
|
|
@ -34,6 +34,7 @@ type TProtyleAction = "cb-get-append" | // 向下滚动加载
|
|||
"cb-get-backlink" | // 悬浮窗为传递型需展示上下文
|
||||
"cb-get-unundo" | // 不需要记录历史
|
||||
"cb-get-scroll" | // 滚动到指定位置,用于直接打开文档,必有 rootID
|
||||
"cb-get-search" | // 使用搜索打开搜索
|
||||
"cb-get-context" | // 包含上下文
|
||||
"cb-get-rootscroll" | // 如果为 rootID 就滚动到指定位置,必有 rootID
|
||||
"cb-get-html" | // 直接渲染,不需要再 /api/block/getDocInfo,否则搜索表格无法定位
|
||||
|
|
@ -343,9 +344,9 @@ interface IUpload {
|
|||
|
||||
interface IScrollAttr {
|
||||
rootId: string,
|
||||
startId: string,
|
||||
endId: string
|
||||
scrollTop: number,
|
||||
startId?: string,
|
||||
endId?: string
|
||||
scrollTop?: number,
|
||||
focusId?: string,
|
||||
focusStart?: number
|
||||
focusEnd?: number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue