23 lines
421 B
Vue
23 lines
421 B
Vue
|
|
<script setup>
|
||
|
|
import { ref } from 'vue'
|
||
|
|
import { defineAsyncComponent } from 'vue'
|
||
|
|
|
||
|
|
const MilkdownEditor = defineAsyncComponent(() => import('../components/MilkdownEditor.vue'))
|
||
|
|
|
||
|
|
const markdown = ref('')
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<div class="editor-view">
|
||
|
|
<MilkdownEditor v-model:markdown="markdown" />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.editor-view {
|
||
|
|
position: relative;
|
||
|
|
z-index: 1;
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
</style>
|