This commit is contained in:
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
minimumHeight: 460
closeFunc:function(event){
close_app.open()
event.accepted = false
}
FluAppBar{
id:appbar
z:9
@ -66,14 +71,6 @@ FluWindow {
}
onClosing:
{
window.show()
window.raise()
window.requestActivate()
close_app.open()
}
FluNavigationView{
id:nav_view
anchors.fill: parent

View File

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