diff --git a/typescript/core/decorator/decorator.ts b/typescript/core/decorator/decorator.ts index f00024e18e..d55a2bc000 100644 --- a/typescript/core/decorator/decorator.ts +++ b/typescript/core/decorator/decorator.ts @@ -9,6 +9,15 @@ export function shortcut() { }; } +/** + * 注册provider + */ +export function provider() { + return function decorator(Target: Constructor & {xtype: string}): void { + BI.provider(Target.xtype, Target); + }; +} + /** * 注册model */