Vanessa 2024-12-07 23:23:59 +08:00
parent 88445d5a6c
commit 2e9c797a13
6 changed files with 29 additions and 82 deletions

View file

@ -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
});
});