修改代码

This commit is contained in:
ival 2021-04-04 21:49:20 +08:00
parent ae050fdc5b
commit 4322001225
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class Animate {
}
isDispose() {
return this._state.last? !this.getIndex() :this._dispose;
return this._dispose&&this._state.last? !this.getIndex() :this._dispose;
}
isEqual(code) {

View File

@ -130,8 +130,8 @@ export default {
},
],
stateList: [
{ status: 's1', frameList: [[{name: 'a', status: 'st1'}, {name: 'b', status: 'st1'}], [{name: 'a', status: 'st2'}, {name: 'b', status: 'st2'}]], weight: 2, loop: true, delay: 2000, time: 200, needDefault: false },
{ status: 's2', frameList: [[{name: 'a', status: 'st2'}, {name: 'b', status: 'st1'}], [{name: 'a', status: 'st1'}, {name: 'b', status: 'st2'}]], weight: 1, loop: true, delay: 5000, time: 500, needDefault: true }
{ status: 's1', frameList: [[{name: 'a', status: 'st1'}, {name: 'b', status: 'st1'}], [{name: 'a', status: 'st2'}, {name: 'b', status: 'st2'}]], weight: 2, loop: true, delay: 2000, time: 200, last: true, needDefault: false },
{ status: 's2', frameList: [[{name: 'a', status: 'st2'}, {name: 'b', status: 'st1'}], [{name: 'a', status: 'st1'}, {name: 'b', status: 'st2'}]], weight: 1, loop: true, delay: 5000, time: 500, last: false, needDefault: true }
]
}
], {