|
|
@ -46,6 +46,7 @@ export function store<T>(Model: Constructor<T> & {xtype: string}, opts: { props? |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 注册mixin |
|
|
|
* 注册mixin |
|
|
|
|
|
|
|
* ie8下不能使用 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function mixin<T>() { |
|
|
|
export function mixin<T>() { |
|
|
|
return function decorator(Target: Constructor<T> & { xtype: string }): void { |
|
|
|
return function decorator(Target: Constructor<T> & { xtype: string }): void { |
|
|
@ -67,6 +68,7 @@ export function mixin<T>() { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 类注册mixins属性 |
|
|
|
* 类注册mixins属性 |
|
|
|
|
|
|
|
* ie8下不能使用 |
|
|
|
* @param Mixins |
|
|
|
* @param Mixins |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function mixins(...Mixins: ({ new (...args: any[]): {} } & { xtype: string })[]) { |
|
|
|
export function mixins(...Mixins: ({ new (...args: any[]): {} } & { xtype: string })[]) { |
|
|
|