Multiwin
易用性 | |
拓展性 | |
性能 | |
安全性 |
优点
- Windows can be spawned or destroyed at runtime
- Separation of concerns
- Somewhat complex
#
说明The Multiwin recipe will allow you to have multiple windows.
#
示意图graph LR
A==>H
H==>F
H==>G
subgraph WEBVIEW
F
end
subgraph WINIT
G
end
subgraph RUST
A
end
A[Binary]
F[Window]
G[Window]
H{Bootstrap}
style WINIT stroke:#1D81EE,stroke-width:4px
style RUST fill:#fad3a9,stroke:#F28918,stroke-width:4px
style WEBVIEW fill:#abd0f9,stroke:#1D81EE,stroke-width:4px
#
配置这是你需要在你的 tauri.conf.json 中添加的配置:
"tauri": {
"allowlist": {}, // all API endpoints are default false
"windows": [{
"title": "Window1",
"label": "main",
}, {
"title": "Splash",
"label": "splashscreen"
}]
}