提交 9626246a 编写于 作者: S sunjiakun

tabs

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 73a5af79
......@@ -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.
先完成此消息的编辑!
想要评论请 注册