mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 19:50:44 +08:00
修复 FluProgressBar 放到 FluContentDialog 内对话框刚打开时动画卡顿问题
This commit is contained in:
parent
9d32e8e13b
commit
489526988d
@ -41,13 +41,15 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
SequentialAnimation on x {
|
||||||
id:animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
|
||||||
to:control.width+rect_progress.width
|
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
PropertyAnimation {
|
||||||
|
from: -rect_progress.width
|
||||||
|
to: control.width + rect_progress.width
|
||||||
|
duration: control.duration
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,13 +42,15 @@ ProgressBar{
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
radius: d._radius
|
radius: d._radius
|
||||||
color: control.color
|
color: control.color
|
||||||
PropertyAnimation on x {
|
SequentialAnimation on x {
|
||||||
id:animator_x
|
id: animator_x
|
||||||
running: control.indeterminate && control.visible
|
running: control.indeterminate && control.visible
|
||||||
from: -rect_progress.width
|
|
||||||
to:control.width+rect_progress.width
|
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
duration: control.duration
|
PropertyAnimation {
|
||||||
|
from: -rect_progress.width
|
||||||
|
to: control.width + rect_progress.width
|
||||||
|
duration: control.duration
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user