refactor: App.vue 样式隔离,使其可作为组件被嵌入

- 全局重置(* / body)抽到 src/styles/global.css,仅独立 app 的 main.js 加载
- App.vue <style> 改 scoped,根及内部类名加 ttf- 前缀,避免与宿主冲突
- 根 class app -> ttf-app,min-height 改为填满容器以适配嵌入
- 加 defineOptions({ name: 'timetable' }) 供宿主 KeepAlive 匹配
- README 嵌入说明改为构建期组件集成 + git submodule
- 不影响独立运行:npm test 42 项通过,npm run build 通过
This commit is contained in:
2026-07-23 02:48:58 +00:00
parent 84bd2baeb6
commit a49a725950
4 changed files with 62 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
import { createApp } from 'vue'
import App from './App.vue'
import './styles/global.css'
createApp(App).mount('#app')