mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 17:30:10 +00:00
增加MainComponent的order设置执行优先级
This commit is contained in:
@@ -7,17 +7,20 @@ namespace XCharts.Runtime
|
||||
{
|
||||
public readonly Type handler;
|
||||
public readonly bool allowMultiple = true;
|
||||
public readonly int order = 3;
|
||||
|
||||
public ComponentHandlerAttribute(Type handler)
|
||||
public ComponentHandlerAttribute(Type handler, int order = 3)
|
||||
{
|
||||
this.handler = handler;
|
||||
this.allowMultiple = true;
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
public ComponentHandlerAttribute(Type handler, bool allowMultiple)
|
||||
public ComponentHandlerAttribute(Type handler, bool allowMultiple, int order = 3)
|
||||
{
|
||||
this.handler = handler;
|
||||
this.allowMultiple = allowMultiple;
|
||||
this.order = order;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user