未验证 提交 0fadb77d 编写于 作者: O openharmony_ci 提交者: Gitee

!9714 修改tabs因状态机制导致的case失败问题

Merge pull request !9714 from sunjiakun/tabs0808
......@@ -27,7 +27,6 @@ struct TabsExampleSec {
@State barBackgroundColorColor: Color = Color.Red
@State barBackgroundColorNumber: number = 0
@State barBackgroundColorString: string = "#00000000"
@State barBackgroundColorResource: Resource = $r("sys.color.ohos_toggle_bg")
private stateChangCallBack = (eventData) => {
console.info("tabs page state change called:" + JSON.stringify(eventData));
......@@ -36,7 +35,6 @@ struct TabsExampleSec {
this.barBackgroundColorColor = eventData.data.barBackgroundColorColor;
this.barBackgroundColorNumber = eventData.data.barBackgroundColorNumber;
this.barBackgroundColorString = eventData.data.barBackgroundColorString;
this.barBackgroundColorResource = eventData.data.barBackgroundColorResource;
}
}
......@@ -196,7 +194,7 @@ struct TabsExampleSec {
.animationDuration(200)
.height('90%')
.width('90%')
.barBackgroundColor(this.barBackgroundColorResource)
.barBackgroundColor($r("sys.color.ohos_toggle_bg"))
.key('BarBackgroundColorResource')
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册