mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 19:50:44 +08:00
修复 FluChart 在 Qt 5.15.2 下可选链 (?.) 报错
This commit is contained in:
parent
c9e0732f99
commit
9d32e8e13b
@ -15,7 +15,9 @@ Canvas {
|
||||
function animateToNewData()
|
||||
{
|
||||
chartAnimationProgress = 0.1;
|
||||
d.jsChart?.update();
|
||||
if (d.jsChart) {
|
||||
d.jsChart.update();
|
||||
}
|
||||
chartAnimator.restart();
|
||||
}
|
||||
QtObject{
|
||||
|
@ -14,7 +14,9 @@ Canvas {
|
||||
function animateToNewData()
|
||||
{
|
||||
chartAnimationProgress = 0.1;
|
||||
d.jsChart?.update();
|
||||
if (d.jsChart) {
|
||||
d.jsChart.update();
|
||||
}
|
||||
chartAnimator.restart();
|
||||
}
|
||||
QtObject{
|
||||
|
Loading…
Reference in New Issue
Block a user