mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +01:00
🎨 改进动态加载判断 Fix https://github.com/siyuan-note/siyuan/issues/7693
This commit is contained in:
parent
681318cbb9
commit
b81152515c
5 changed files with 26 additions and 7 deletions
|
|
@ -82,7 +82,7 @@ export class Scroll {
|
|||
if (protyle.block.showAll) {
|
||||
this.element.classList.add("fn__none");
|
||||
} else {
|
||||
if (protyle.block.childBlockCount > window.siyuan.config.editor.dynamicLoadBlocks) {
|
||||
if (protyle.block.scroll) {
|
||||
this.element.classList.remove("fn__none");
|
||||
} else {
|
||||
this.element.classList.add("fn__none");
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
|
|||
protyle.block.showAll = false;
|
||||
protyle.block.mode = data.data.mode;
|
||||
protyle.block.blockCount = data.data.blockCount;
|
||||
protyle.block.childBlockCount = data.data.childBlockCount;
|
||||
protyle.block.scroll = data.data.scroll;
|
||||
protyle.block.action = action;
|
||||
if (!action.includes(Constants.CB_GET_UNCHANGEID)) {
|
||||
protyle.block.id = data.data.id;
|
||||
|
|
|
|||
2
app/src/types/protyle.d.ts
vendored
2
app/src/types/protyle.d.ts
vendored
|
|
@ -409,7 +409,7 @@ interface IProtyle {
|
|||
id: string,
|
||||
block: {
|
||||
id?: string,
|
||||
childBlockCount?: number,
|
||||
scroll?: boolean
|
||||
parentID?: string,
|
||||
parent2ID?: string,
|
||||
rootID?: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue