feat: staged
This commit is contained in:
parent
14d626d924
commit
8e22e43f95
|
@ -1,18 +1,15 @@
|
|||
import {compose} from '@avocado/core';
|
||||
import {Trait} from '@avocado/entity';
|
||||
import {Property} from '@avocado/mixins';
|
||||
|
||||
export class Staged extends Trait {
|
||||
const decorate = compose(
|
||||
Property('stage', {
|
||||
track: true,
|
||||
emit: function (...args) {
|
||||
this.entity.emit(...args);
|
||||
},
|
||||
})
|
||||
)
|
||||
|
||||
initialize() {
|
||||
this._stage = undefined;
|
||||
}
|
||||
|
||||
get stage() {
|
||||
return this._stage;
|
||||
}
|
||||
|
||||
set stage(stage) {
|
||||
this._stage = stage;
|
||||
}
|
||||
|
||||
}
|
||||
export class Staged extends decorate(Trait) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user