fix monaco.

This commit is contained in:
2023-01-12 09:36:13 +08:00
parent 75e6906c16
commit ab5cb8610b
20 changed files with 281 additions and 132 deletions

View File

@@ -1,9 +1,28 @@
<script setup lang="ts">
import Md from "./step-1/index.md"
import Monaco from "../shared/monaco/index.vue"
const route = useRoute()
console.log(route.params.step)
const code = ref("")
function change(value: string) {
code.value = value
}
</script>
<template>
<Md />
<el-row>
<el-col :span="4"> </el-col>
<el-col :span="12">
<Md />
{{ code }}
</el-col>
<el-col :span="8">
<Monaco :value="code" @change="change" />
</el-col>
</el-row>
</template>
<style scoped></style>