修复TMP开启时Axis运行报错

This commit is contained in:
monitor1394
2025-05-19 21:55:52 +08:00
parent 06bd26dc5f
commit 2d2e45da80
2 changed files with 3 additions and 2 deletions

View File

@@ -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())
{