mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-21 16:00:24 +00:00
增加MainComponent的order设置执行优先级
This commit is contained in:
@@ -123,9 +123,11 @@ namespace XCharts.Runtime
|
||||
var handler = (MainComponentHandler)Activator.CreateInstance(attrubte.handler);
|
||||
handler.attribute = attrubte;
|
||||
handler.chart = this;
|
||||
handler.order = attrubte.order;
|
||||
handler.SetComponent(component);
|
||||
component.handler = handler;
|
||||
m_ComponentHandlers.Add(handler);
|
||||
m_ComponentHandlers.Sort((a, b) => { return a.order.CompareTo(b.order); });
|
||||
}
|
||||
|
||||
public bool RemoveChartComponent<T>(int index = 0)
|
||||
|
||||
Reference in New Issue
Block a user