26 lines
483 B
Vue
26 lines
483 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: 100dvh;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
</style>
|