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

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

上级 933a9445
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册