瀏覽代碼

:art: https://github.com/siyuan-note/siyuan/issues/6415

Vanessa 2 年之前
父節點
當前提交
ca38d2dc9a
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 9 0
      app/src/config/editor.ts
  2. 1 0
      app/src/types/index.d.ts

+ 9 - 0
app/src/config/editor.ts

@@ -173,6 +173,14 @@ export const editor = {
     <span class="fn__space"></span>
     <input class="b3-text-field fn__flex-center fn__size200" id="plantUMLServePath" value="${window.siyuan.config.editor.plantUMLServePath}"/>
 </label>
+<label class="fn__flex b3-label">
+    <div class="fn__flex-1">
+        ${window.siyuan.languages.dynamicLoadBlocks}
+        <div class="b3-label__text">${window.siyuan.languages.dynamicLoadBlocksTip}</div>
+    </div>
+    <span class="fn__space"></span>
+    <input class="b3-text-field fn__flex-center fn__size200" id="dynamicLoadBlocks" type="number" min="128" max="1024" value="${window.siyuan.config.editor.dynamicLoadBlocks}"/>
+</label>
 <label class="fn__flex b3-label">
     <div class="fn__flex-1">
         ${window.siyuan.languages.md37}
@@ -269,6 +277,7 @@ export const editor = {
                 virtualBlockRefInclude: (editor.element.querySelector("#virtualBlockRefInclude") as HTMLInputElement).value,
                 virtualBlockRefExclude: (editor.element.querySelector("#virtualBlockRefExclude") as HTMLInputElement).value,
                 blockRefDynamicAnchorTextMaxLen: parseInt((editor.element.querySelector("#blockRefDynamicAnchorTextMaxLen") as HTMLInputElement).value),
+                dynamicLoadBlocks: parseInt((editor.element.querySelector("#dynamicLoadBlocks") as HTMLInputElement).value),
                 codeLigatures: (editor.element.querySelector("#codeLigatures") as HTMLInputElement).checked,
                 codeTabSpaces: parseInt((editor.element.querySelector("#codeTabSpaces") as HTMLInputElement).value),
                 fontSize: parseInt((editor.element.querySelector("#fontSize") as HTMLInputElement).value),

+ 1 - 0
app/src/types/index.d.ts

@@ -248,6 +248,7 @@ declare interface IEditor {
     katexMacros: string;
     fullWidth: boolean;
     floatWindowMode: number;
+    dynamicLoadBlocks: number;
     fontSize: number;
     generateHistoryInterval: number;
     historyRetentionDays: number;