From 8916cbd097c24b738f7b19ca0099815d9c39ff0c Mon Sep 17 00:00:00 2001 From: AoXuan Date: Sun, 3 Aug 2025 01:02:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(layout):=20=E4=BC=98=E5=8C=96=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F=E5=B8=83=E5=B1=80=E5=92=8C=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -固定侧边栏高度为100vh,设置为固定定位 - 优化内容区域样式,设置过渡效果和滚动条- 隐藏菜单和内容区域的滚动条 - 调整底部菜单样式,注释掉部分代码 --- frontend/README.md | 61 +++++++++++++++++++ frontend/src/components/AppLayout.vue | 86 ++++++++++++++++++++++++--- 2 files changed, 138 insertions(+), 9 deletions(-) create mode 100644 frontend/README.md diff --git a/frontend/README.md b/frontend/README.md new file mode 100644 index 0000000..0cf5138 --- /dev/null +++ b/frontend/README.md @@ -0,0 +1,61 @@ +# AUTO MAA Frontend + +基于 Vue 3 + TypeScript + Ant Design Vue + Electron 的桌面应用程序。 + +## 功能特性 + +- 🎨 使用 Ant Design Vue 组件库 +- 🌙 支持深色模式(跟随系统/深色/浅色) +- 🎨 支持多种主题色切换 +- 📱 响应式侧边栏布局 +- 🔧 内置开发者工具 +- ⚡ 基于 Vite 的快速开发体验 + +## 项目结构 + +``` +src/ +├── components/ # 组件 +│ └── AppLayout.vue # 主布局组件 +├── views/ # 页面 +│ ├── Home.vue # 主页 +│ ├── Scripts.vue # 脚本管理 +│ ├── Plans.vue # 计划管理 +│ ├── Queue.vue # 调度队列 +│ ├── Scheduler.vue # 调度中心 +│ ├── History.vue # 历史记录 +│ └── Settings.vue # 设置页面 +├── router/ # 路由配置 +├── composables/ # 组合式函数 +│ └── useTheme.ts # 主题管理 +└── main.ts # 应用入口 +``` + +## 开发 + +### 安装依赖 +```bash +yarn install +``` + +### 开发模式 +```bash +yarn web # 启动 Vite 开发服务器(浏览器查看) + +yarn dev # 启动 Electron 开发环境 +``` + +### 构建 +```bash +yarn build # 构建生产版本 +``` + +## 技术栈 + +- **前端框架**: Vue 3 + TypeScript +- **UI 组件库**: Ant Design Vue 4.x +- **图标**: @ant-design/icons-vue +- **路由**: Vue Router 4 +- **构建工具**: Vite +- **桌面端**: Electron +- **包管理**: Yarn diff --git a/frontend/src/components/AppLayout.vue b/frontend/src/components/AppLayout.vue index bbb3f5e..1890ef0 100644 --- a/frontend/src/components/AppLayout.vue +++ b/frontend/src/components/AppLayout.vue @@ -1,6 +1,14 @@