提交 5709ddc6 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

修复 transiton background 示例会相互干扰的问题

上级 933a9445
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
isTransitionStylePadding: false, isTransitionStylePadding: false,
stylePadding: null as UniElement | null, stylePadding: null as UniElement | null,
isTransitionstyleBackground: false, isTransitionstyleBackground: false,
isTransitionstyleBackground2: false,
styleBackground: null as UniElement | null, styleBackground: null as UniElement | null,
styleBackground2: null as UniElement | null, styleBackground2: null as UniElement | null,
isTransitionStyleTransform: false, isTransitionStyleTransform: false,
...@@ -156,11 +157,11 @@ ...@@ -156,11 +157,11 @@
this.isTransitionstyleBackground = !this.isTransitionstyleBackground this.isTransitionstyleBackground = !this.isTransitionstyleBackground
}, },
changeBackground2() { changeBackground2() {
this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground this.styleBackground2?.style?.setProperty("background-color", this.isTransitionstyleBackground2
? 'brown' ? 'brown'
: 'rgba(0, 0, 0, 0.5);' : 'rgba(0, 0, 0, 0.5);'
) )
this.isTransitionstyleBackground = !this.isTransitionstyleBackground this.isTransitionstyleBackground2 = !this.isTransitionstyleBackground2
}, },
propertyChangeBackground() { propertyChangeBackground() {
if (!this.isSetTransition) { if (!this.isSetTransition) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册