From 5709ddc6d298e0b254af2d81c5bc21c64c5c5721 Mon Sep 17 00:00:00 2001 From: XHY Date: Thu, 23 May 2024 12:06:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20transiton=20background=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E4=BC=9A=E7=9B=B8=E4=BA=92=E5=B9=B2=E6=89=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/CSS/transition/transition.uvue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/CSS/transition/transition.uvue b/pages/CSS/transition/transition.uvue index d909b11d..fca61ab6 100644 --- a/pages/CSS/transition/transition.uvue +++ b/pages/CSS/transition/transition.uvue @@ -78,6 +78,7 @@ isTransitionStylePadding: false, stylePadding: null as UniElement | null, isTransitionstyleBackground: false, + isTransitionstyleBackground2: false, styleBackground: null as UniElement | null, styleBackground2: null as UniElement | null, isTransitionStyleTransform: false, @@ -156,11 +157,11 @@ this.isTransitionstyleBackground = !this.isTransitionstyleBackground }, changeBackground2() { - this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground + this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground2 ? 'brown' : 'rgba(0, 0, 0, 0.5);' ) - this.isTransitionstyleBackground = !this.isTransitionstyleBackground + this.isTransitionstyleBackground2 = !this.isTransitionstyleBackground2 }, propertyChangeBackground() { if (!this.isSetTransition) { -- GitLab