fix: 修复编辑器移除问题

This commit is contained in:
purocean
2021-07-13 13:39:55 +08:00
parent afa197cbfe
commit 239e0bd2a7
+11 -1
View File
@@ -1,5 +1,7 @@
<template>
<MonacoEditor ref="refEditor" class="editor" />
<div class="editor-container">
<MonacoEditor ref="refEditor" class="editor" />
</div>
</template>
<script lang="ts">
@@ -155,3 +157,11 @@ export default defineComponent({
}
})
</script>
<style scoped>
.editor-container {
width: 100%;
height: 100%;
overflow: hidden;
}
</style>