forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
435 B
21 lines
435 B
// export * from "../../typescript/core/decorator/decorator.ts"; |
|
|
|
import { shortcut as biShortcut, provider as biProvider } from "./5.inject"; |
|
|
|
/** |
|
* 注册widget |
|
*/ |
|
export function shortcut() { |
|
return function decorator(Target) { |
|
biShortcut(Target.xtype, Target); |
|
}; |
|
} |
|
|
|
/** |
|
* 注册provider |
|
*/ |
|
export function provider() { |
|
return function decorator(Target) { |
|
biProvider(Target.xtype, Target); |
|
}; |
|
}
|
|
|