mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 03:58:49 +00:00
[bug] fix chart not being created correctly at runtime
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
## master
|
## master
|
||||||
|
|
||||||
|
* (2022.06.30) 修复`Runtime`下代码创建图表时组件无法初始化的问题
|
||||||
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
* (2022.06.29) 增加`Tooltip`的`itemFormatter`支持`{c0}`显示各维度数据 (#205)
|
||||||
* (2022.06.28) 优化`Pie`设置`avoidLabelOverlap`时的文本表现 (#56)
|
* (2022.06.28) 优化`Pie`设置`avoidLabelOverlap`时的文本表现 (#56)
|
||||||
* (2022.06.25) 优化`Line`的平滑曲线表现 (#169)
|
* (2022.06.25) 优化`Line`的平滑曲线表现 (#169)
|
||||||
|
|||||||
@@ -275,9 +275,12 @@ namespace XCharts.Runtime
|
|||||||
if (component == null) return;
|
if (component == null) return;
|
||||||
if (component.anyDirty)
|
if (component.anyDirty)
|
||||||
{
|
{
|
||||||
if (component.componentDirty && component.refreshComponent != null)
|
if (component.componentDirty)
|
||||||
{
|
{
|
||||||
component.refreshComponent.Invoke();
|
if (component.refreshComponent != null)
|
||||||
|
component.refreshComponent.Invoke();
|
||||||
|
else
|
||||||
|
component.handler.InitComponent();
|
||||||
}
|
}
|
||||||
if (component.vertsDirty)
|
if (component.vertsDirty)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user