feat: 重新组织代码结构

This commit is contained in:
539943419 committed 2024-09-04 11:47:14 +08:00
commit 4d2bd3867f
23 files changed
+240 -187

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
<template>
<div class="miao-markdown-container-miaomiaomiao">
<iframe
:src="iframeSrc"
frameborder="0"
class="iframe-container-iframe"></iframe>
</div>
</template>
<script setup lang="ts">
import { VirtualFile } from '@/class/VirtualDirectory'
import { onMounted, ref } from 'vue'
const currentFiles = defineModel<VirtualFile[]>('currentFiles', {
required: true
})
const iframeSrc = ref<string>()
onMounted(() => {
iframeSrc.value = currentFiles.value[0].url
})
</script>
<style scoped lang="scss">
.miao-markdown-container-miaomiaomiao {
width: 100%;
height: 100%;
.iframe-container-iframe {
width: inherit;
height: inherit;
}
}
</style>