2025-09-04 05:47:42 +00:00
|
|
|
<template>
|
|
|
|
|
<div id="app">
|
|
|
|
|
<!-- AI侧边栏 -->
|
2025-09-08 10:20:48 +00:00
|
|
|
<AISidebar @start-realtime-generation="handleStartRealtimeGeneration" />
|
2025-09-04 05:47:42 +00:00
|
|
|
|
|
|
|
|
<!-- 主内容区域 -->
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
<MindMap ref="mindMapRef" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-09-08 10:20:48 +00:00
|
|
|
import { ref } from 'vue';
|
2025-09-04 05:47:42 +00:00
|
|
|
import MindMap from "./components/MindMap.vue";
|
|
|
|
|
import AISidebar from "./components/AISidebar.vue";
|
2025-09-08 10:20:48 +00:00
|
|
|
|
|
|
|
|
const mindMapRef = ref(null);
|
|
|
|
|
|
|
|
|
|
// 处理开始实时生成事件
|
|
|
|
|
const handleStartRealtimeGeneration = () => {
|
|
|
|
|
console.log('🎬 开始实时生成,切换到思维导图界面');
|
|
|
|
|
if (mindMapRef.value) {
|
|
|
|
|
mindMapRef.value.showMindMapPage();
|
|
|
|
|
}
|
|
|
|
|
};
|
2025-09-04 05:47:42 +00:00
|
|
|
</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>
|