-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabbar): add activeIcon property (#139)
- Loading branch information
Showing
4 changed files
with
47 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
<weui-tabbar> | ||
<weui-tab heading="微信" [badge]="8" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<weui-infiniteloader (loadmore)="onLoadMore($event)"> | ||
<article class="weui-article"> | ||
<h1>微信</h1> | ||
<div class="weui-cells__title">List with 50 Max</div> | ||
<div class="weui-cells"> | ||
<a *ngFor="let i of items" class="weui-cell weui-cell_access" href="javascript:;"> | ||
<div class="weui-cell__bd">{{i}}</div> | ||
<div class="weui-cell__ft"></div> | ||
</a> | ||
</div> | ||
</article> | ||
</weui-infiniteloader> | ||
</weui-tab> | ||
<weui-tab heading="通讯录" [icon]="'<img src=./assets/images/icon_tabbar.png>'" (select)="onSelect()"> | ||
<article class="weui-article"> | ||
<h1>通讯录</h1> | ||
<p>Select Time: {{time}}</p> | ||
</article> | ||
</weui-tab> | ||
<weui-tab heading="发现" [badge]="'dot'" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<article class="weui-article"> | ||
<h1>发现</h1> | ||
</article> | ||
</weui-tab> | ||
<weui-tab heading="我" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<article class="weui-article"> | ||
<h1>我</h1> | ||
</article> | ||
</weui-tab> | ||
<weui-tab heading="微信" [badge]="8" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<weui-infiniteloader (loadmore)="onLoadMore($event)"> | ||
<article class="weui-article"> | ||
<h1>微信</h1> | ||
<div class="weui-cells__title">List with 50 Max</div> | ||
<div class="weui-cells"> | ||
<a *ngFor="let i of items" class="weui-cell weui-cell_access" href="javascript:;"> | ||
<div class="weui-cell__bd">{{ i }}</div> | ||
<div class="weui-cell__ft"></div> | ||
</a> | ||
</div> | ||
</article> | ||
</weui-infiniteloader> | ||
</weui-tab> | ||
<weui-tab | ||
heading="通讯录" | ||
[icon]="'<img src=./assets/images/icon_tabbar.png>'" | ||
[activeIcon]="'<img src=./assets/images/momentloader.png>'" | ||
(select)="onSelect()" | ||
> | ||
<article class="weui-article"> | ||
<h1>通讯录</h1> | ||
<p>Select Time: {{ time }}</p> | ||
</article> | ||
</weui-tab> | ||
<weui-tab heading="发现" [badge]="'dot'" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<article class="weui-article"> | ||
<h1>发现</h1> | ||
</article> | ||
</weui-tab> | ||
<weui-tab heading="我" [icon]="'<img src=./assets/images/icon_tabbar.png>'"> | ||
<article class="weui-article"> | ||
<h1>我</h1> | ||
</article> | ||
</weui-tab> | ||
</weui-tabbar> |