mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
icon map
This commit is contained in:
@@ -8,12 +8,36 @@ import {Platform} from '../../platform/platform';
|
||||
|
||||
/*
|
||||
|
||||
Ionicons Font Icon
|
||||
home: {
|
||||
ios: 'ion-ios-home',
|
||||
md: 'ion-md-home'
|
||||
},
|
||||
star: {
|
||||
ios: 'ion-ios-star',
|
||||
md: 'ion-md-star',
|
||||
}
|
||||
|
||||
1-for-1 swap
|
||||
Map of stuff that's 1-for-1
|
||||
<icon name="home"></icon>
|
||||
<icon class="ion-ios-home"></icon>
|
||||
<icon class="ion-md-home"></icon>
|
||||
|
||||
|
||||
Always use the same no matter what
|
||||
Cuz it's not in the map of 1-for-1's
|
||||
<icon name="alert"></icon>
|
||||
<icon class="ion-alert"></icon>
|
||||
|
||||
|
||||
Different between modes
|
||||
Used different attributes
|
||||
<icon ios-name="search3" md-name="search2"></icon>
|
||||
<icon class="ion-ios-search3"></icon>
|
||||
<icon class="ion-md-search2"></icon>
|
||||
|
||||
|
||||
|
||||
Ionicons SVG
|
||||
<icon svg="home"></icon>
|
||||
<icon><svg>...ios...</svg></icon>
|
||||
|
||||
Reference in New Issue
Block a user