From b338b91e5a260e4c0a07a50be2fe45b4ca0e644f Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Fri, 7 Feb 2025 16:51:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E5=85=B7=E7=AE=B1/JSON=20?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96):=20=E4=BC=98=E5=8C=96=E2=80=9C?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=86=85=E5=AE=B9=E2=80=9D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E8=BE=83=E5=A4=9A=E6=97=B6=E8=A1=8C=E5=8F=B7=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/toolbox-data.js | 4 ++-- src/views/ToolboxView/Edit/JsonFormatter.vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/assets/js/toolbox-data.js b/src/assets/js/toolbox-data.js index 29741b5..a033717 100644 --- a/src/assets/js/toolbox-data.js +++ b/src/assets/js/toolbox-data.js @@ -110,8 +110,8 @@ export const toolList = [ iconClass: 'mdi mdi-code-json', desc: '格式化 / 美化 JSON 字符串', createdAt: '2025-02-04', - updatedAt: '2025-02-04', - version: '1', + updatedAt: '2025-02-07', + version: '2', enabled: true, }, ], diff --git a/src/views/ToolboxView/Edit/JsonFormatter.vue b/src/views/ToolboxView/Edit/JsonFormatter.vue index e0d8e13..b33ad10 100644 --- a/src/views/ToolboxView/Edit/JsonFormatter.vue +++ b/src/views/ToolboxView/Edit/JsonFormatter.vue @@ -225,7 +225,9 @@ function sortObjectKeys(obj) { .json-output { user-select: text; - :deep(pre) { + :deep(.__code__) { + flex-grow: 1; + width: 0; overflow-x: auto; } }