This commit is contained in:
朱子楚\zhuzi 2024-02-23 21:10:04 +08:00
parent c330dc840e
commit a02ee68483
4 changed files with 12 additions and 8 deletions

View File

@ -102,9 +102,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NeutralButton
FluButton{
id:neutral_btn
visible: control.buttonFlags&FluContentDialogType.NeutralButton
text: neutralText
width: parent.width
anchors.centerIn: parent
@ -121,9 +121,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NegativeButton
FluButton{
id:negative_btn
visible: control.buttonFlags&FluContentDialogType.NegativeButton
width: parent.width
anchors.centerIn: parent
text: negativeText
@ -140,9 +140,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.PositiveButton
FluFilledButton{
id:positive_btn
visible: control.buttonFlags&FluContentDialogType.PositiveButton
text: positiveText
width: parent.width
anchors.centerIn: parent

View File

@ -8,7 +8,9 @@ Popup {
id: popup
padding: 0
modal:true
anchors.centerIn: Overlay.overlay
parent: Overlay.overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
closePolicy: Popup.CloseOnEscape
enter: Transition {
NumberAnimation {

View File

@ -102,9 +102,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NeutralButton
FluButton{
id:neutral_btn
visible: control.buttonFlags&FluContentDialogType.NeutralButton
text: neutralText
width: parent.width
anchors.centerIn: parent
@ -121,9 +121,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NegativeButton
FluButton{
id:negative_btn
visible: control.buttonFlags&FluContentDialogType.NegativeButton
width: parent.width
anchors.centerIn: parent
text: negativeText
@ -140,9 +140,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.PositiveButton
FluFilledButton{
id:positive_btn
visible: control.buttonFlags&FluContentDialogType.PositiveButton
text: positiveText
width: parent.width
anchors.centerIn: parent

View File

@ -8,7 +8,9 @@ Popup {
id: popup
padding: 0
modal:true
anchors.centerIn: Overlay.overlay
parent: Overlay.overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
closePolicy: Popup.CloseOnEscape
enter: Transition {
NumberAnimation {