From 83dbeaaf7cecbde160891b45e10ce03c2957f3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=B3=8A=E5=B0=94?= Date: Tue, 7 May 2019 10:49:09 +0800 Subject: [PATCH] fix(module: tabbar):fix tintColor invalid(#418) (#423) --- components/tab-bar/tab-bar.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/tab-bar/tab-bar.component.ts b/components/tab-bar/tab-bar.component.ts index c5a84629..42538581 100644 --- a/components/tab-bar/tab-bar.component.ts +++ b/components/tab-bar/tab-bar.component.ts @@ -85,6 +85,12 @@ export class TabBar implements AfterContentInit { } ngAfterContentInit() { + if (this.tabBarItems && this.tabBarItems.length > 0) { + this.tabBarItems.forEach((tabBarItem: TabBarItem) => { + tabBarItem.tintColor = this._tintColor; + tabBarItem.unselectedTintColor = this._unselectedTintColor; + }); + } this.selectTabBarItem(this.activeTab); }