From 92517abb1a97d2bfec5355878003f91c522ac814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com> Date: Fri, 19 Apr 2024 21:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4transition=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9transition-duration=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=E6=9C=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/general-event/transition-event.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/general-event/transition-event.uvue b/pages/component/general-event/transition-event.uvue index 49d26985..987a2cf5 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() { -- GitLab