mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
remove <icon forward></icon>
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
|
||||
// Icon
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
icon {
|
||||
display: inline-block;
|
||||
font-size: 1.2em;
|
||||
|
||||
@@ -53,10 +53,7 @@ export class Icon {
|
||||
onInit() {
|
||||
let ele = this.eleRef.nativeElement;
|
||||
|
||||
if (ele.hasAttribute('forward')) {
|
||||
this.name = this.config.setting('forwardIcon');
|
||||
|
||||
} else if (this.mode == 'ios' && this.ios) {
|
||||
if (this.mode == 'ios' && this.ios) {
|
||||
this.name = this.ios;
|
||||
|
||||
} else if (this.mode == 'md' && this.md) {
|
||||
|
||||
12
ionic/components/icon/modes/ios.scss
Normal file
12
ionic/components/icon/modes/ios.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
// iOS Icon
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
$icon-forward-ios-background-svg: "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M2,20l-2-2l8-8L0,2l2-2l10,10L2,20z' fill='fg-color'/></svg>" !default;
|
||||
|
||||
|
||||
@mixin ios-icon-forward($fg-color) {
|
||||
$svg: str-replace($icon-forward-ios-background-svg, 'fg-color', $fg-color);
|
||||
@include svg-background-image($svg);
|
||||
}
|
||||
@@ -77,11 +77,10 @@
|
||||
</code>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-item forward-icon>
|
||||
<code>
|
||||
<icon forward></icon>
|
||||
ion-item w/ [forward-icon] attr. text text text text text text
|
||||
</code>
|
||||
<icon forward item-right></icon>
|
||||
</ion-item>
|
||||
|
||||
</ion-list>
|
||||
|
||||
Reference in New Issue
Block a user