From 2d2e45da8070fd9b1aadc5d9e41fda2e05fd2eee Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 19 May 2025 21:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`TMP`=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E6=97=B6`Axis`=E8=BF=90=E8=A1=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 1 + Runtime/Component/Axis/AxisHandler.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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()) {