Tauri 创建自定义标题栏 JS
2024-01-29 16:19 更新
最后,您需要使按钮正常工作:
import { appWindow } from '@tauri-apps/api/window'
document
.getElementById('titlebar-minimize')
.addEventListener('click', () => appWindow.minimize())
document
.getElementById('titlebar-maximize')
.addEventListener('click', () => appWindow.toggleMaximize())
document
.getElementById('titlebar-close')
.addEventListener('click', () => appWindow.close())
以上内容是否对您有帮助:
更多建议: