소스 검색

update: 行间距默认值为1

wzl 7 달 전
부모
커밋
e9072eb41e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/webview/src/components/ContentEditorPanel/ContentEditorPanel.vue

+ 2 - 2
packages/webview/src/components/ContentEditorPanel/ContentEditorPanel.vue

@@ -88,7 +88,7 @@
         <div class="block">
           <div>
             <LineSpacing />
-            <n-input-number v-model:value="property.lineSpacing" @update:value="handleLineSpacingChange" :placeholder="$t('editorPanel.lineSpacing')" min="0" max="10" :step="0.5" :update-value-on-input="false">
+            <n-input-number v-model:value="property.lineSpacing" @update:value="handleLineSpacingChange" :placeholder="$t('editorPanel.lineSpacing')" min="1" max="10" :step="0.5" :update-value-on-input="false">
               <template #minus-icon><div class="arrow down"></div></template>
               <template #add-icon><div class="arrow up"></div></template>
             </n-input-number>
@@ -207,7 +207,7 @@
     fontStyle: 0,
     alignType: 2,
     fontSize: 14,
-    lineSpacing: 0,
+    lineSpacing: 1,
     paragraphSpacing: 0,
     characterSpacing: 0
   })