This commit is contained in:
zhuzichu
2024-01-31 11:13:37 +08:00
parent a6001ea142
commit 0222a2111d
4 changed files with 134 additions and 24 deletions

View File

@ -8,9 +8,9 @@ FluPopup {
id: control
property string title: ""
property string message: ""
property string neutralText: "Neutral"
property string negativeText: "Negative"
property string positiveText: "Positive"
property string neutralText: "Close"
property string negativeText: "Cancel"
property string positiveText: "OK"
property int messageTextFormart: Text.AutoText
property int delayTime: 100
property int buttonFlags: FluContentDialogType.NegativeButton | FluContentDialogType.PositiveButton
@ -75,9 +75,15 @@ FluPopup {
Layout.preferredHeight: status===Loader.Ready ? item.height : 0
}
FluLoader{
sourceComponent: control.contentDelegate
sourceComponent:control.visible ? control.contentDelegate : undefined
Layout.fillWidth: true
Layout.preferredHeight: status===Loader.Ready ? item.height : 0
onStatusChanged: {
if(status===Loader.Ready){
Layout.preferredHeight = item.implicitHeight
}else{
Layout.preferredHeight = 0
}
}
}
Rectangle{
id:layout_actions