Skip to content

添加 Tauri 集成#15

Closed
apoint123 wants to merge 9 commits intodevfrom
feat/tauri-integration
Closed

添加 Tauri 集成#15
apoint123 wants to merge 9 commits intodevfrom
feat/tauri-integration

Conversation

@apoint123
Copy link
Member

添加 Tauri 集成以便可以构建出桌面应用

@apoint123 apoint123 requested a review from Linho1219 January 15, 2026 14:14
@apoint123 apoint123 force-pushed the feat/tauri-integration branch from ca47675 to a0cf337 Compare January 15, 2026 14:29
@Linho1219 Linho1219 moved this from In progress to Not Planned in AMLL Editor Dev Kanban Jan 25, 2026
@Linho1219
Copy link
Member

Tauri 上的拖拽体验劣于 PWA。

由于一些限制,Webview 内 DOM 拖拽事件与 Tauri 文件拖拽严格互斥。编辑器内行、音节大量依赖拖拽编辑,不可能完全由 Tauri 接管。而若不接管,文件拖放时从 DOM 端无法获得其绝对路径,进而无法执行原生保存等操作。

未找到解决方案,且 Tauri 官方人员表示甚至没有很好的 workaround。见 tauri-apps/tauri#14055

这一 issue 提出了一个 workaround:DOM 上监听到拖拽时,让 Tauri 在这个窗口上放摆放一个等大、透明的窗口,由 Tauri 劫持其拖放事件,用于承接文件。这一 workaround 有些过于复杂了。

引入 Tauri 的初衷是希望能带来原生化的文件管理体验。现代 Chromium 浏览器的文件系统 API 已经可以做到直接从文件系统打开和保存,以及良好的拖放。考虑到 Tauri 既没能给出明显优于 PWA 的体验,又带来了大量复杂度与维护负担,因此暂不继续尝试 Tauri 集成。

@Linho1219 Linho1219 closed this Jan 25, 2026
@github-project-automation github-project-automation bot moved this from Not Planned to Done in AMLL Editor Dev Kanban Jan 25, 2026
@apoint123 apoint123 deleted the feat/tauri-integration branch January 25, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants