11<template >
22 <n-config-provider >
3- <n-split direction =" horizontal" :resize-trigger-size =" 8" v-model:size =" width" >
4- <template #1 >
5- <editor v-model:content =" editorStore.content" v-model:selection =" editorStore.selection"
6- v-model:scroll =" editorStore.scroll" :icons =" iconStore.icons" :size =" editorStore.size" />
7- </template >
8- <template #2 >
9- <scroller v-model:scroll =" editorStore.scroll" >
10- <BSMap :map =" ast " :size =" editorStore .size " />
11- </scroller >
12- </template >
13- <template #resize-trigger >
14- <div :class =" $style.resizer" >
15- </div >
16- </template >
17- </n-split >
3+ <div :class =" $style.container" >
4+ <n-split :class =" $style.main" direction =" horizontal" :resize-trigger-size =" 8" v-model:size =" width" >
5+ <template #1 >
6+ <editor v-model:content =" editorStore.content" v-model:selection =" editorStore.selection"
7+ v-model:scroll =" editorStore.scroll" :icons =" iconStore.icons" :size =" editorStore.size" />
8+ </template >
9+ <template #2 >
10+ <scroller v-model:scroll =" editorStore.scroll" >
11+ <BSMap :map =" ast " :size =" editorStore .size " />
12+ </scroller >
13+ </template >
14+ <template #resize-trigger >
15+ <div :class =" $style.resizer" />
16+ </template >
17+ </n-split >
18+ <app-bar />
19+ </div >
1820 </n-config-provider >
1921</template >
2022
@@ -33,6 +35,7 @@ import { useIconStore } from '@/stores/icon';
3335import Scroller from ' ./components/Scroller.vue' ;
3436import BSMap from ' ./components/BSMap.vue' ;
3537import Editor from ' ./components/Editor.vue' ;
38+ import AppBar from ' ./components/AppBar.vue' ;
3639
3740const editorStore = useEditorStore ();
3841const iconStore = useIconStore ();
@@ -63,6 +66,17 @@ const ast = computed(() => parseMap(editorStore.content));
6366 overscroll-behavior : none ;
6467}
6568
69+ .container {
70+ display : flex ;
71+ flex-direction : column ;
72+ height : 100vh ;
73+ }
74+
75+ .main {
76+ flex : 1 1 auto ;
77+ min-height : 0 ;
78+ }
79+
6680.resizer {
6781 height : 100% ;
6882 background : #cccccc ;
0 commit comments