mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-25 04:05:51 +08:00
修复 FluChart 在 Qt 5.15.2 下可选链 (?.) 报错
This commit is contained in:
parent
c9e0732f99
commit
9d32e8e13b
@ -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{
|
||||||
|
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user