fix: 修复窗口控制功能 - 拖拽、最小化、最大化、关闭
🔧 问题修复: - 修复窗口拖拽功能不可用问题 - 修复窗口最小化/最大化/关闭按钮不工作问题 - 优化 Tauri 窗口配置 🛠️ 技术改进: - 更新 TitleBar 组件,使用正确的 Tauri v2 API - 添加错误处理和状态管理 - 设置正确的拖拽区域 (data-tauri-drag-region) - 优化窗口配置 (decorations: false, titleBarStyle: Overlay) ✨ 功能特性: - 自定义标题栏设计 - 响应式窗口控制按钮 - 窗口状态实时同步 - 现代化 UI 设计 📋 测试说明: - 在有 GUI 环境中测试拖拽功能 - 验证所有窗口控制按钮正常工作 - 确认窗口大小限制生效
This commit is contained in:
13
package.json
13
package.json
@@ -16,16 +16,17 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "^2.0.0",
|
||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||
"@tauri-apps/plugin-fs": "^2.0.0",
|
||||
"@tauri-apps/plugin-dialog": "^2.0.0",
|
||||
"@tauri-apps/plugin-fs": "^2.0.0",
|
||||
"@tauri-apps/plugin-shell": "^2.0.0",
|
||||
"@tauri-apps/plugin-window": "2.0.0-alpha.1",
|
||||
"clsx": "^2.0.0",
|
||||
"lucide-react": "^0.263.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.15.0",
|
||||
"zustand": "^4.4.0",
|
||||
"lucide-react": "^0.263.1",
|
||||
"clsx": "^2.0.0",
|
||||
"tailwind-merge": "^1.14.0"
|
||||
"tailwind-merge": "^1.14.0",
|
||||
"zustand": "^4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tauri-apps/cli": "^2.0.0",
|
||||
|
||||
Reference in New Issue
Block a user