开启部分Serie的MaxCache设置

This commit is contained in:
monitor1394
2023-09-03 21:43:38 +08:00
parent 910b9194ac
commit 367844a86c
5 changed files with 9 additions and 1 deletions

View File

@@ -248,7 +248,11 @@ namespace XCharts.Runtime
public List<MainComponent> GetChartComponents<T>() where T : MainComponent
{
return m_ComponentMaps[typeof(T)];
var type = typeof(T);
if (m_ComponentMaps.ContainsKey(type))
return m_ComponentMaps[type];
else
return null;
}
[Obsolete("'GetOrAddChartComponent' is obsolete, Use 'EnsureChartComponent' instead.")]