mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 13:27:05 +08:00
Merge branch 'zhuzichu520:main' into add_disable_behavior_on_flutext
This commit is contained in:
commit
a9ceff8f6f
@ -15,7 +15,9 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
d.jsChart?.update();
|
if (d.jsChart) {
|
||||||
|
d.jsChart.update();
|
||||||
|
}
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,9 @@ Canvas {
|
|||||||
function animateToNewData()
|
function animateToNewData()
|
||||||
{
|
{
|
||||||
chartAnimationProgress = 0.1;
|
chartAnimationProgress = 0.1;
|
||||||
d.jsChart?.update();
|
if (d.jsChart) {
|
||||||
|
d.jsChart.update();
|
||||||
|
}
|
||||||
chartAnimator.restart();
|
chartAnimator.restart();
|
||||||
}
|
}
|
||||||
QtObject{
|
QtObject{
|
||||||
|
@ -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