修改代码
This commit is contained in:
parent
ae050fdc5b
commit
4322001225
@ -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) {
|
||||
|
@ -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 }
|
||||
]
|
||||
}
|
||||
], {
|
||||
|
Loading…
Reference in New Issue
Block a user