样式优化

This commit is contained in:
mxd
2021-11-12 23:51:02 +08:00
parent d334343e9f
commit 4bec10d364
6 changed files with 6 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ export default {
folding: false,
lineDecorationsWidth: 20,
fixedOverflowWidgets: false,
renderWhitespace: 'none',
fontFamily: contants.EDITOR_FONT_FAMILY,
fontSize: contants.EDITOR_FONT_SIZE,
fontLigatures: true

View File

@@ -117,6 +117,7 @@ export default {
fontFamily: contants.EDITOR_FONT_FAMILY,
fontSize: contants.EDITOR_FONT_SIZE,
fontLigatures: true,
renderWhitespace: 'none',
// 自动调整大小
automaticLayout: true
})

View File

@@ -353,6 +353,7 @@
fontFamily: contants.EDITOR_FONT_FAMILY,
fontSize: contants.EDITOR_FONT_SIZE,
fontLigatures: true,
renderWhitespace: 'none',
theme: store.get('skin') || 'default',
value: formatJson(this.info.requestBody) || '{\r\n\t\r\n}'
})

View File

@@ -114,6 +114,7 @@ export default {
fontSize: contants.EDITOR_FONT_SIZE,
fontLigatures: true,
value: this.info.responseBody || '',
renderWhitespace: 'none',
theme: store.get('skin') || 'default'
})
bus.$on('update-window-size', () => this.updateSize())

View File

@@ -79,6 +79,7 @@ export default {
readOnly: true,
fontLigatures: true,
scrollBeyondLastLine: false,
renderWhitespace: 'none',
fontFamily: contants.EDITOR_FONT_FAMILY,
fontSize: contants.EDITOR_FONT_SIZE,
theme: store.get('skin') || 'default'

View File

@@ -316,6 +316,7 @@ export default {
fontFamily: contants.EDITOR_FONT_FAMILY,
fontSize: contants.EDITOR_FONT_SIZE,
fontLigatures: true,
renderWhitespace: 'none',
theme: store.get('skin') || 'default',
value: formatJson(temp) || '{\r\n\t\r\n}'
})