提交 67f0c4b2 编写于 作者: S sunjiakun

update tabs

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 9603d9fe
......@@ -172,6 +172,10 @@ struct TabsExampleSec {
.barBackgroundColor(this.barBackgroundColorString)
.key('BarBackgroundColorString')
Button("ResourceColor")
.fontSize(40)
.backgroundColor($r("sys.color.ohos_toggle_bg"))
.key("ResourceColor")
Tabs({ barPosition: BarPosition.End, controller: this.controller }) {
TabContent() {
Column(){
......
......@@ -526,7 +526,10 @@ export default function tabsSec() {
let obj = JSON.parse(newJson);
console.info("[ArkUI_Tabs_BarBackgroundColor_0500] barBackgroundColor:" + JSON.stringify(obj.$attrs.barBackgroundColor));
let barBackgroundColorObject = obj.$attrs.barBackgroundColor;
expect(barBackgroundColorObject).assertEqual("#0C182431");
let newColor = getInspectorByKey('ResourceColor');
let objColor = JSON.parse(newColor);
console.info("[ArkUI_Tabs_BarBackgroundColor_0500] objColor:" + JSON.stringify(objColor.$attrs.backgroundColor));
expect(barBackgroundColorObject).assertEqual(objColor.$attrs.backgroundColor);
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册