MindMap/frontend/src/App.vue

58 lines
955 B
Vue
Raw Normal View History

<template>
<div id="app">
<!-- AI侧边栏 -->
<AISidebar />
<!-- 主内容区域 -->
<div class="main-content">
<MindMap ref="mindMapRef" />
</div>
</div>
</template>
<script setup>
import MindMap from "./components/MindMap.vue";
import AISidebar from "./components/AISidebar.vue";
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100vh;
margin: 0;
padding: 0;
display: flex;
}
.main-content {
flex: 1;
margin-left: 350px;
transition: margin-left 0.3s ease;
width: calc(100% - 350px);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Avenir, Helvetica, Arial, sans-serif;
background: #f5f5f5;
}
/* Mind Elixir 全局样式 */
.mind-elixir {
height: 100%;
width: 100%;
}
.mind-elixir .map-container {
height: 100%;
width: 100%;
}
</style>