diff --git a/pages/component/general-event/transition-event.uvue b/pages/component/general-event/transition-event.uvue index 49d2698542ebe9da59b168e8d4afe03ede975b6f..987a2cf5d58c0f329f4488dd1763daf3842fa07e 100644 --- a/pages/component/general-event/transition-event.uvue +++ b/pages/component/general-event/transition-event.uvue @@ -29,16 +29,16 @@ } this.buttonValue = "关闭图片旋转" this.times = this.times + 1 - this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') this.element!.style.setProperty('transition-duration', '2000ms') + this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') this.isStart = true } else { this.isStart = false this.times = 0 this.onTransitionEndTriggr = false this.buttonValue = "开启图片旋转" - this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') this.element!.style.setProperty('transition-duration', '0ms') + this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)') } }, onEnd() {