diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index fe70e024..728e0dac 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -80,6 +80,7 @@ slug: /changelog ## master +* (2025.05.19) 修复`TMP`开启时`Axis`运行报错 * (2025.04.25) 修复`MarkArea`指定`yValue`或`xValue`时绘制区域不准确的问题 * (2025.04.17) 增加`UITable`的`Title`支持设置标题 * (2025.04.17) 增加`UITable`的`Viewport`支持设置表格视口边距边框 diff --git a/Runtime/Component/Axis/AxisHandler.cs b/Runtime/Component/Axis/AxisHandler.cs index 5cd80766..ae85201b 100644 --- a/Runtime/Component/Axis/AxisHandler.cs +++ b/Runtime/Component/Axis/AxisHandler.cs @@ -43,7 +43,7 @@ namespace XCharts if (label == null) continue; if (label.InRect(chart.pointerPos)) { - component.onLabelClick.Invoke(i, label.text.text.text); + component.onLabelClick.Invoke(i, label.GetText()); break; } } @@ -456,7 +456,7 @@ namespace XCharts } if(content == null) { - content = label.text.text.text; + content = label.GetText(); } if (axis.IsValue()) {