2026-04-05 23:22:00 +08:00
|
|
|
<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%;
|
2026-04-06 11:14:09 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
2026-04-05 23:22:00 +08:00
|
|
|
</style>
|