From d2ae86e28d35a95ac17926f70edd8b077b89a419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=B3=8A=E5=B0=94?= Date: Mon, 6 May 2019 22:17:26 +0800 Subject: [PATCH] fix(module: tabbar):fix tintColor invalid(#418) --- 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); }