修复 FluProgressBar 放到 FluContentDialog 内对话框刚打开时动画卡顿问题

This commit is contained in:
lucky9loogn 2024-11-22 15:40:32 +08:00
parent 9d32e8e13b
commit 489526988d
2 changed files with 14 additions and 10 deletions

View File

@ -41,16 +41,18 @@ ProgressBar{
height: parent.height
radius: d._radius
color: control.color
PropertyAnimation on x {
SequentialAnimation on x {
id: animator_x
running: control.indeterminate && control.visible
loops: Animation.Infinite
PropertyAnimation {
from: -rect_progress.width
to: control.width + rect_progress.width
loops: Animation.Infinite
duration: control.duration
}
}
}
}
FluText{
text:(control.visualPosition * 100).toFixed(0) + "%"
visible: {

View File

@ -42,16 +42,18 @@ ProgressBar{
height: parent.height
radius: d._radius
color: control.color
PropertyAnimation on x {
SequentialAnimation on x {
id: animator_x
running: control.indeterminate && control.visible
loops: Animation.Infinite
PropertyAnimation {
from: -rect_progress.width
to: control.width + rect_progress.width
loops: Animation.Infinite
duration: control.duration
}
}
}
}
FluText{
text:(control.visualPosition * 100).toFixed(0) + "%"
visible: {