File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const formState = reactive({
20
20
newFilename: ' newPackage.json' ,
21
21
hideHeader: false ,
22
22
hideStat: false ,
23
+ maxHeight: ' ' ,
23
24
})
24
25
25
26
const oldString = ref (oldShortText .value )
@@ -185,6 +186,12 @@ function toggleLang() {
185
186
<a-switch v-model:checked =" formState.forceInlineComparison" />
186
187
</a-form-item >
187
188
</a-col >
189
+ <a-col :md =" 8" :sm =" 24" >
190
+ <a-form-item >
191
+ <slot ><span class =" form-item-label" >{{ t('options.maxHeight') }}</span > </slot >
192
+ <a-input v-model:value =" formState.maxHeight" placeholder =" 500px" style =" width : 12vw ;" />
193
+ </a-form-item >
194
+ </a-col >
188
195
</a-row >
189
196
</a-form >
190
197
</a-card >
@@ -194,7 +201,7 @@ function toggleLang() {
194
201
:diff-style =" formState.diffStyle" :force-inline-comparison =" formState.forceInlineComparison" :output-format =" formState.outputFormat" :context =" formState.context"
195
202
:trim =" formState.trim" :no-diff-line-feed =" formState.noDiffLineFeed" :filename =" formState.filename"
196
203
:new-filename =" formState.newFilename" :hide-header =" formState.hideHeader" :hide-stat =" formState.hideStat"
197
- @diff =" printEvent"
204
+ :max-height = " formState.maxHeight " @diff =" printEvent"
198
205
/>
199
206
</div >
200
207
</div >
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const i18n = createI18n({
47
47
hideHeader : '隐藏首部' ,
48
48
hideStatistics : '隐藏统计信息' ,
49
49
forceInlineComparison : '强制行内对比' ,
50
+ maxHeight : '固定高度(带上单位)' ,
50
51
} ,
51
52
} ,
52
53
en : {
@@ -74,6 +75,7 @@ const i18n = createI18n({
74
75
hideHeader : 'Hide Header' ,
75
76
hideStatistics : 'Hide Statistics' ,
76
77
forceInlineComparison : 'Force Inline Comparison' ,
78
+ maxHeight : 'Height(with unit)' ,
77
79
} ,
78
80
} ,
79
81
} ,
You can’t perform that action at this time.
0 commit comments