From 4322001225fb1a574be132f208d5512dc06f7ef5 Mon Sep 17 00:00:00 2001 From: ival <160568032@qq.com> Date: Sun, 4 Apr 2021 21:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iscs_new/animateHandle.js | 2 +- src/views/test/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 } ] } ], {