Files
lpt-fe/src/App.vue
T
cat-shark cd68811dfb feat(回忆复习):回忆输入改用思维导图 + 布局优化
- 回忆输入区从文本域改为可编辑思维导图(Tab 加子/Enter 加同级)
- 回忆历史点击后自动将内容还原到导图编辑区
- 增加回忆页宽屏模式(wide route meta),适配导图横向展示
- MindMapViewer 增加 height prop 支持自定义高度
- 回忆、对比、标准导图各区域全部使用 60vh 导图展示
2026-07-04 10:17:16 +08:00

104 lines
1.9 KiB
Vue

<script setup lang="ts">
import MyHead from "@/components/MyHead.vue";
import MyFooter from "@/components/MyFooter.vue";
import { useRoute } from "vue-router";
const route = useRoute();
</script>
<template>
<div class="app-shell">
<div class="bg-orb bg-orb-left"></div>
<div class="bg-orb bg-orb-right"></div>
<el-container class="shell-container">
<el-header class="shell-header">
<MyHead />
</el-header>
<el-main class="shell-main" :class="{ wide: route.meta.wide }">
<RouterView v-slot="{ Component }">
<Transition name="fade-up" mode="out-in">
<component :is="Component" :key="route.fullPath" />
</Transition>
</RouterView>
</el-main>
<el-footer class="shell-footer">
<MyFooter />
</el-footer>
</el-container>
</div>
</template>
<style scoped>
.app-shell {
position: relative;
min-height: 100vh;
overflow: hidden;
}
.shell-container {
min-height: 100vh;
position: relative;
z-index: 1;
}
.shell-header {
height: auto;
padding: 18px 20px 0;
position: sticky;
top: 0;
z-index: 10;
}.shell-main {
max-width: 1240px;
width: 100%;
margin: 0 auto;
padding: 18px 20px 24px;
}
.shell-main.wide {
max-width: 1720px;
}
.shell-footer {
height: auto;
padding: 0 20px 18px;
}
.bg-orb {
position: absolute;
border-radius: 50%;
filter: blur(1px);
z-index: 0;
pointer-events: none;
}
.bg-orb-left {
width: 300px;
height: 300px;
top: -120px;
left: -90px;
background: radial-gradient(circle at center, rgba(47, 143, 104, 0.35), transparent 70%);
}
.bg-orb-right {
width: 360px;
height: 360px;
right: -130px;
bottom: -170px;
background: radial-gradient(circle at center, rgba(67, 168, 121, 0.3), transparent 70%);
}
@media (max-width: 768px) {
.shell-header {
padding: 12px 12px 0;
}
.shell-main {
padding: 12px 12px 18px;
}
.shell-footer {
padding: 0 12px 12px;
}
}
</style>