diff --git a/src/iscs_new/animateHandle.js b/src/iscs_new/animateHandle.js index 1b70f3a8a..8098a24bd 100644 --- a/src/iscs_new/animateHandle.js +++ b/src/iscs_new/animateHandle.js @@ -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) { diff --git a/src/views/test/index.vue b/src/views/test/index.vue index 1c9c5c170..136457c67 100644 --- a/src/views/test/index.vue +++ b/src/views/test/index.vue @@ -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 } ] } ], {