mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
update
This commit is contained in:
parent
7c4bedb907
commit
a184e6b7df
@ -9,11 +9,19 @@ FluWindow {
|
|||||||
property Component contentDelegate
|
property Component contentDelegate
|
||||||
autoVisible: false
|
autoVisible: false
|
||||||
autoCenter: false
|
autoCenter: false
|
||||||
autoDestory: false
|
autoDestory: true
|
||||||
fixSize: true
|
fixSize: true
|
||||||
Loader{
|
Loader{
|
||||||
anchors.fill: parent
|
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(){
|
function showDialog(){
|
||||||
var x = transientParent.x + (transientParent.width - width)/2
|
var x = transientParent.x + (transientParent.width - width)/2
|
||||||
|
@ -9,11 +9,19 @@ FluWindow {
|
|||||||
property Component contentDelegate
|
property Component contentDelegate
|
||||||
autoVisible: false
|
autoVisible: false
|
||||||
autoCenter: false
|
autoCenter: false
|
||||||
autoDestory: false
|
autoDestory: true
|
||||||
fixSize: true
|
fixSize: true
|
||||||
Loader{
|
Loader{
|
||||||
anchors.fill: parent
|
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(){
|
function showDialog(){
|
||||||
var x = transientParent.x + (transientParent.width - width)/2
|
var x = transientParent.x + (transientParent.width - width)/2
|
||||||
|
Loading…
Reference in New Issue
Block a user