mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-10-31 00:07:36 +08:00
update
This commit is contained in:
parent
7c4bedb907
commit
a184e6b7df
@ -9,11 +9,19 @@ FluWindow {
|
||||
property Component contentDelegate
|
||||
autoVisible: false
|
||||
autoCenter: false
|
||||
autoDestory: false
|
||||
autoDestory: true
|
||||
fixSize: true
|
||||
Loader{
|
||||
anchors.fill: parent
|
||||
sourceComponent: control.visible ? control.contentDelegate : undefined
|
||||
sourceComponent: {
|
||||
if(control.autoDestory){
|
||||
return control.visible ? control.contentDelegate : undefined
|
||||
}
|
||||
return control.contentDelegate
|
||||
}
|
||||
}
|
||||
closeListener: function(event){
|
||||
event.accepted = true
|
||||
}
|
||||
function showDialog(){
|
||||
var x = transientParent.x + (transientParent.width - width)/2
|
||||
|
@ -9,11 +9,19 @@ FluWindow {
|
||||
property Component contentDelegate
|
||||
autoVisible: false
|
||||
autoCenter: false
|
||||
autoDestory: false
|
||||
autoDestory: true
|
||||
fixSize: true
|
||||
Loader{
|
||||
anchors.fill: parent
|
||||
sourceComponent: control.visible ? control.contentDelegate : undefined
|
||||
sourceComponent: {
|
||||
if(control.autoDestory){
|
||||
return control.visible ? control.contentDelegate : undefined
|
||||
}
|
||||
return control.contentDelegate
|
||||
}
|
||||
}
|
||||
closeListener: function(event){
|
||||
event.accepted = true
|
||||
}
|
||||
function showDialog(){
|
||||
var x = transientParent.x + (transientParent.width - width)/2
|
||||
|
Loading…
Reference in New Issue
Block a user