workflow: sfc playground

This commit is contained in:
Evan You
2021-03-28 01:35:45 -04:00
parent 2424768808
commit f76ddc5ac3
28 changed files with 1654 additions and 23 deletions

View File

@@ -0,0 +1,17 @@
<template>
<CodeMirror @change="onChange" :value="initialCode" />
<Message :err="store.errors[0]" />
</template>
<script setup lang="ts">
import CodeMirror from '../codemirror/CodeMirror.vue'
import Message from '../Message.vue'
import { store } from '../store'
import { debounce } from '../utils'
const onChange = debounce((code: string) => {
store.code = code
}, 250)
const initialCode = store.code
</script>