修复TMP开启时Axis运行报错

This commit is contained in:
monitor1394
2025-05-19 21:57:11 +08:00
parent 2d2e45da80
commit efbe16b804

View File

@@ -43,7 +43,7 @@ namespace XCharts
if (label == null) continue; if (label == null) continue;
if (label.InRect(chart.pointerPos)) if (label.InRect(chart.pointerPos))
{ {
component.onLabelClick.Invoke(i, label.GetText()); component.onLabelClick.Invoke(i, label.text.GetText());
break; break;
} }
} }
@@ -456,7 +456,7 @@ namespace XCharts
} }
if(content == null) if(content == null)
{ {
content = label.GetText(); content = label.text.GetText();
} }
if (axis.IsValue()) if (axis.IsValue())
{ {