This commit is contained in:
朱子楚\zhuzi 2024-02-25 20:15:21 +08:00
parent 355517ed44
commit d0fe68eed3
4 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ FluButton {
width: control.loading ? 16 : 0
height: 16
anchors.verticalCenter: parent.verticalCenter
visible: width!==0
visible: Number(width)!==0
clip: true
Behavior on width {
enabled: FluTheme.enableAnimation

View File

@ -48,11 +48,13 @@ ProgressBar{
property real sweepAngle: 0
SequentialAnimation on startAngle {
loops: Animation.Infinite
running: control.visible && control.indeterminate
PropertyAnimation { from: 0; to: 450; duration: control.duration/2 }
PropertyAnimation { from: 450; to: 1080; duration: control.duration/2 }
}
SequentialAnimation on sweepAngle {
loops: Animation.Infinite
running: control.visible && control.indeterminate
PropertyAnimation { from: 0; to: 180; duration: control.duration/2 }
PropertyAnimation { from: 180; to: 0; duration: control.duration/2 }
}

View File

@ -21,7 +21,7 @@ FluButton {
width: control.loading ? 16 : 0
height: 16
anchors.verticalCenter: parent.verticalCenter
visible: width!==0
visible: Number(width)!==0
clip: true
Behavior on width {
enabled: FluTheme.enableAnimation

View File

@ -48,11 +48,13 @@ ProgressBar{
property real sweepAngle: 0
SequentialAnimation on startAngle {
loops: Animation.Infinite
running: control.visible && control.indeterminate
PropertyAnimation { from: 0; to: 450; duration: control.duration/2 }
PropertyAnimation { from: 450; to: 1080; duration: control.duration/2 }
}
SequentialAnimation on sweepAngle {
loops: Animation.Infinite
running: control.visible && control.indeterminate
PropertyAnimation { from: 0; to: 180; duration: control.duration/2 }
PropertyAnimation { from: 180; to: 0; duration: control.duration/2 }
}