mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 01:44:07 +01:00
This commit is contained in:
parent
88445d5a6c
commit
2e9c797a13
6 changed files with 29 additions and 82 deletions
|
|
@ -53,7 +53,7 @@ export const getDocByScroll = (options: {
|
|||
protyle: IProtyle,
|
||||
scrollAttr?: IScrollAttr,
|
||||
mergedOptions?: IProtyleOptions,
|
||||
cb?: () => void
|
||||
cb?: (keys: string[]) => void
|
||||
focus?: boolean,
|
||||
updateReadonly?: boolean
|
||||
}) => {
|
||||
|
|
@ -89,7 +89,9 @@ export const getDocByScroll = (options: {
|
|||
protyle: options.protyle,
|
||||
action: actions,
|
||||
scrollAttr: options.scrollAttr,
|
||||
afterCB: options.cb,
|
||||
afterCB: options.cb ? () => {
|
||||
options.cb(response.data.keywords);
|
||||
} : undefined,
|
||||
updateReadonly: options.updateReadonly
|
||||
});
|
||||
});
|
||||
|
|
@ -100,7 +102,9 @@ export const getDocByScroll = (options: {
|
|||
protyle: options.protyle,
|
||||
action: actions,
|
||||
scrollAttr: options.scrollAttr,
|
||||
afterCB: options.cb,
|
||||
afterCB: options.cb ? () => {
|
||||
options.cb(response.data.keywords);
|
||||
} : undefined,
|
||||
updateReadonly: options.updateReadonly
|
||||
});
|
||||
}
|
||||
|
|
@ -121,7 +125,9 @@ export const getDocByScroll = (options: {
|
|||
protyle: options.protyle,
|
||||
action: actions,
|
||||
scrollAttr: options.scrollAttr,
|
||||
afterCB: options.cb,
|
||||
afterCB: options.cb ? () => {
|
||||
options.cb(response.data.keywords);
|
||||
} : undefined,
|
||||
updateReadonly: options.updateReadonly
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue