main
zhuzichu 2023-04-20 20:13:31 +08:00
parent d2929ad701
commit 6d24cbf37c
2 changed files with 14 additions and 17 deletions

View File

@ -15,6 +15,11 @@ FluWindow {
minimumWidth: 520 minimumWidth: 520
minimumHeight: 460 minimumHeight: 460
closeFunc:function(event){
close_app.open()
event.accepted = false
}
FluAppBar{ FluAppBar{
id:appbar id:appbar
z:9 z:9
@ -66,14 +71,6 @@ FluWindow {
} }
onClosing:
{
window.show()
window.raise()
window.requestActivate()
close_app.open()
}
FluNavigationView{ FluNavigationView{
id:nav_view id:nav_view
anchors.fill: parent anchors.fill: parent

View File

@ -18,6 +18,14 @@ ApplicationWindow {
property string route property string route
property var argument:({}) property var argument:({})
property var pageRegister property var pageRegister
property var closeFunc: function(event){
if(closeDestory){
destoryWindow()
}else{
visible = false
event.accepted = false
}
}
signal initArgument(var argument) signal initArgument(var argument)
id:window id:window
@ -48,15 +56,7 @@ ApplicationWindow {
} }
} }
onClosing: onClosing:(event)=>closeFunc(event)
(event)=>{
if(closeDestory){
destoryWindow()
}else{
visible = false
event.accepted = false
}
}
FluInfoBar{ FluInfoBar{
id:infoBar id:infoBar