Vanessa 2024-01-25 13:12:12 +08:00
parent 98455e3b68
commit 58f1cea811
5 changed files with 9 additions and 4 deletions

View file

@ -57,7 +57,7 @@ export const onGet = (options: {
return;
}
}
hideElements(["gutter"], options.protyle);
hideElements(["gutterOnly"], options.protyle);
options.protyle.block.parentID = options.data.data.parentID;
options.protyle.block.parent2ID = options.data.data.parent2ID;
options.protyle.block.rootID = options.data.data.rootID;

View file

@ -6,7 +6,7 @@ import {lineNumberRender} from "../render/highlightRender";
import {stickyRow} from "../render/av/row";
export const resize = (protyle: IProtyle) => {
hideElements(["gutter"], protyle);
hideElements(["gutterOnly"], protyle)
const abs = setPadding(protyle);
const MIN_ABS = 4;
// 不能 clearTimeout否则 split 时左侧无法 resize

View file

@ -34,5 +34,5 @@ export const setEditMode = (protyle: IProtyle, type: TEditorMode) => {
/// #endif
resize(protyle);
}
hideElements(["gutter", "toolbar", "select", "hint", "util"], protyle);
hideElements(["gutterOnly", "toolbar", "select", "hint", "util"], protyle);
};