Browse Source

Pull request #1367: 无JIRA任务 提供provider注册的装饰方法

Merge in VISUAL/fineui from ~TELLER/fineui:master to master

* commit 'd0a07403e2c870937b69dc9a1107c2bb1f9bef0c':
  refactor: 提供provider注册的装饰方法
master
Teller 4 years ago
parent
commit
e67a0c8d0a
  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