From 4bec10d3644eacb35f76684ab822fef2b072b1ce Mon Sep 17 00:00:00 2001 From: mxd <838425805@qq.com> Date: Fri, 12 Nov 2021 23:51:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- magic-editor/src/console/src/components/editor/magic-history.vue | 1 + .../src/console/src/components/editor/magic-script-editor.vue | 1 + magic-editor/src/console/src/components/layout/magic-request.vue | 1 + magic-editor/src/console/src/components/layout/magic-run.vue | 1 + magic-editor/src/console/src/components/layout/magic-search.vue | 1 + .../console/src/components/resources/magic-datasource-list.vue | 1 + 6 files changed, 6 insertions(+) diff --git a/magic-editor/src/console/src/components/editor/magic-history.vue b/magic-editor/src/console/src/components/editor/magic-history.vue index 46062942..361e491e 100644 --- a/magic-editor/src/console/src/components/editor/magic-history.vue +++ b/magic-editor/src/console/src/components/editor/magic-history.vue @@ -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 diff --git a/magic-editor/src/console/src/components/editor/magic-script-editor.vue b/magic-editor/src/console/src/components/editor/magic-script-editor.vue index 50772b5f..766efb98 100644 --- a/magic-editor/src/console/src/components/editor/magic-script-editor.vue +++ b/magic-editor/src/console/src/components/editor/magic-script-editor.vue @@ -117,6 +117,7 @@ export default { fontFamily: contants.EDITOR_FONT_FAMILY, fontSize: contants.EDITOR_FONT_SIZE, fontLigatures: true, + renderWhitespace: 'none', // 自动调整大小 automaticLayout: true }) diff --git a/magic-editor/src/console/src/components/layout/magic-request.vue b/magic-editor/src/console/src/components/layout/magic-request.vue index d45f2619..44043469 100644 --- a/magic-editor/src/console/src/components/layout/magic-request.vue +++ b/magic-editor/src/console/src/components/layout/magic-request.vue @@ -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}' }) diff --git a/magic-editor/src/console/src/components/layout/magic-run.vue b/magic-editor/src/console/src/components/layout/magic-run.vue index 9fd8d82e..941ab610 100644 --- a/magic-editor/src/console/src/components/layout/magic-run.vue +++ b/magic-editor/src/console/src/components/layout/magic-run.vue @@ -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()) diff --git a/magic-editor/src/console/src/components/layout/magic-search.vue b/magic-editor/src/console/src/components/layout/magic-search.vue index 611a4329..76ba5546 100644 --- a/magic-editor/src/console/src/components/layout/magic-search.vue +++ b/magic-editor/src/console/src/components/layout/magic-search.vue @@ -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' diff --git a/magic-editor/src/console/src/components/resources/magic-datasource-list.vue b/magic-editor/src/console/src/components/resources/magic-datasource-list.vue index 6db39edd..43bd907b 100644 --- a/magic-editor/src/console/src/components/resources/magic-datasource-list.vue +++ b/magic-editor/src/console/src/components/resources/magic-datasource-list.vue @@ -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}' })