Browse Source

refactor: 加上注释

es6
Kira 4 years ago
parent
commit
61967da6bb
  1. 2
      typescript/core/decorator/decorator.ts

2
typescript/core/decorator/decorator.ts

@ -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 })[]) {

Loading…
Cancel
Save