diff --git a/playground/App.vue b/playground/App.vue index c3dc753..6d77c11 100644 --- a/playground/App.vue +++ b/playground/App.vue @@ -10,16 +10,29 @@ -
+
+ +
+
+
+
+ Editor +
+
+
+
+ +
+
@@ -27,10 +40,6 @@
- -
- -
@@ -60,7 +69,7 @@ export default defineComponent({ }, setup () { const state = persistedState({ - activeTab: 'editor', + activeTab: 'types', input: defaultInput }) @@ -94,12 +103,17 @@ body, html, #app { .block-title { padding: .5em; - @apply border-gray-500; + @apply border-green-500 border-b-2 flex flex-col; } .block-content { flex: 1; display: flex; flex-direction: column; + @apply: pt-3; +} + +.tab { + @apply select-none px-3 mx-1 rounded; } diff --git a/playground/components/Editor.vue b/playground/components/Editor.vue index 28b1bd1..de68302 100644 --- a/playground/components/Editor.vue +++ b/playground/components/Editor.vue @@ -55,12 +55,12 @@ export default defineComponent({ } }) this.editor = editor - // editor.onDidChangeModelContent(() => { - // this.$emit('update:value', editor.getValue()) - // }) - editor.onDidBlurEditorWidget(() => { + editor.onDidChangeModelContent(() => { this.$emit('update:value', editor.getValue()) }) + // editor.onDidBlurEditorWidget(() => { + // this.$emit('update:value', editor.getValue()) + // }) } })