From 4145010d68ed14371c065a906f244bf95c048dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sat, 10 Aug 2024 06:37:29 +0800 Subject: [PATCH] feat: auto focus for tree view --- components/CodeEditor.vue | 8 +------ components/OutputContainer.vue | 3 +-- components/ast/Property.vue | 42 ++++++++++++++++++++++++++++++---- components/ast/Value.vue | 12 +++++++++- styles/global.css | 4 ++++ 5 files changed, 54 insertions(+), 15 deletions(-) diff --git a/components/CodeEditor.vue b/components/CodeEditor.vue index 0911b7b..51ea0dd 100644 --- a/components/CodeEditor.vue +++ b/components/CodeEditor.vue @@ -55,7 +55,7 @@ if (props.input) { range: monaco.Range.fromPositions(start, end), options: { isWholeLine: false, - className: 'input-editor-highlight', + className: 'ast-highlight', }, }, ]) @@ -79,9 +79,3 @@ if (props.input) { - - diff --git a/components/OutputContainer.vue b/components/OutputContainer.vue index da2c737..90774c3 100644 --- a/components/OutputContainer.vue +++ b/components/OutputContainer.vue @@ -89,8 +89,7 @@ watch(outputView, (view) => { JSON - -