mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-04 09:05:30 +08:00
Imporve FluContentDialog and add relative example.
This commit is contained in:
@ -46,6 +46,32 @@ FluWindow {
|
||||
}
|
||||
}
|
||||
|
||||
FluContentDialog{
|
||||
id:close_app
|
||||
title:"退出"
|
||||
message:"确定要退出程序吗?"
|
||||
negativeText:"最小化"
|
||||
buttonFlags: FluContentDialog.NeutralButton | FluContentDialog.NegativeButton | FluContentDialog.PositiveButton
|
||||
onNegativeClicked:{
|
||||
showSuccess("最小化成功")
|
||||
window.hide()
|
||||
}
|
||||
positiveText:"退出"
|
||||
neutralText:"取消"
|
||||
onPositiveClicked:{
|
||||
window.destoryWindow()
|
||||
FluApp.closeApp()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onClosing:
|
||||
{
|
||||
window.show()
|
||||
window.raise()
|
||||
window.requestActivate()
|
||||
close_app.open()
|
||||
}
|
||||
|
||||
FluNavigationView{
|
||||
id:nav_view
|
||||
|
Reference in New Issue
Block a user