use composables.

This commit is contained in:
2023-01-13 23:20:36 +08:00
parent d45783334d
commit d3caa5438d
15 changed files with 2360 additions and 72 deletions

View File

@@ -3,7 +3,7 @@ import Md from "./step-1/index.md"
import Monaco from "../shared/monaco/index.vue"
const route = useRoute()
console.log(route.params.step)
// console.log(route.params.step)
const code = ref("")
@@ -19,6 +19,7 @@ function change(value: string) {
<Md />
{{ code }}
</el-col>
<!-- TODO: 这里有BUG -->
<el-col :span="8">
<Monaco :value="code" @change="change" />
</el-col>