Browse Source

refactor: 提供provider注册的装饰方法

master
iapyang 5 years ago
parent
commit
d0a07403e2
  1. 9
      typescript/core/decorator/decorator.ts

9
typescript/core/decorator/decorator.ts

@ -9,6 +9,15 @@ export function shortcut() {
};
}
/**
* provider
*/
export function provider() {
return function decorator<U>(Target: Constructor<U> & {xtype: string}): void {
BI.provider(Target.xtype, Target);
};
}
/**
* model
*/

Loading…
Cancel
Save