mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
feat(all): custom icons
This commit is contained in:
@ -242,7 +242,7 @@ export class ActionSheet implements OverlayInterface {
|
|||||||
<button class={buttonClass(b)} onClick={() => this.buttonClick(b)}>
|
<button class={buttonClass(b)} onClick={() => this.buttonClick(b)}>
|
||||||
<span class="action-sheet-button-inner">
|
<span class="action-sheet-button-inner">
|
||||||
{b.icon
|
{b.icon
|
||||||
? <ion-icon name={b.icon} class="action-sheet-icon" />
|
? <ion-icon icon={b.icon} class="action-sheet-icon" />
|
||||||
: null}
|
: null}
|
||||||
{b.text}
|
{b.text}
|
||||||
</span>
|
</span>
|
||||||
@ -258,7 +258,7 @@ export class ActionSheet implements OverlayInterface {
|
|||||||
<span class="action-sheet-button-inner">
|
<span class="action-sheet-button-inner">
|
||||||
{cancelButton.icon
|
{cancelButton.icon
|
||||||
? <ion-icon
|
? <ion-icon
|
||||||
name={cancelButton.icon}
|
icon={cancelButton.icon}
|
||||||
class="action-sheet-icon"
|
class="action-sheet-icon"
|
||||||
/>
|
/>
|
||||||
: null}
|
: null}
|
||||||
|
@ -82,7 +82,7 @@ export class BackButton {
|
|||||||
class={backButtonClasses}
|
class={backButtonClasses}
|
||||||
onClick={(ev) => this.onClick(ev)}>
|
onClick={(ev) => this.onClick(ev)}>
|
||||||
<span class="back-button-inner">
|
<span class="back-button-inner">
|
||||||
{ backButtonIcon && <ion-icon name={backButtonIcon}/> }
|
{ backButtonIcon && <ion-icon icon={backButtonIcon}/> }
|
||||||
{ this.mode === 'ios' && backButtonText && <span class="button-text">{backButtonText}</span> }
|
{ this.mode === 'ios' && backButtonText && <span class="button-text">{backButtonText}</span> }
|
||||||
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }
|
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }
|
||||||
</span>
|
</span>
|
||||||
|
@ -31,7 +31,7 @@ export class MenuButton {
|
|||||||
<ion-menu-toggle menu={this.menu} autoHide={this.autoHide}>
|
<ion-menu-toggle menu={this.menu} autoHide={this.autoHide}>
|
||||||
<ion-button>
|
<ion-button>
|
||||||
<slot>
|
<slot>
|
||||||
<ion-icon slot="icon-only" name={menuIcon}/>
|
<ion-icon icon={menuIcon} slot="icon-only" />
|
||||||
</slot>
|
</slot>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</ion-menu-toggle>
|
</ion-menu-toggle>
|
||||||
|
@ -43,7 +43,7 @@ export class RefresherContent {
|
|||||||
<div class="refresher-pulling">
|
<div class="refresher-pulling">
|
||||||
{this.pullingIcon &&
|
{this.pullingIcon &&
|
||||||
<div class="refresher-pulling-icon">
|
<div class="refresher-pulling-icon">
|
||||||
<ion-icon name={this.pullingIcon}></ion-icon>
|
<ion-icon icon={this.pullingIcon}></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
{this.pullingText &&
|
{this.pullingText &&
|
||||||
|
@ -85,7 +85,7 @@ export class TabButton {
|
|||||||
class="tab-cover"
|
class="tab-cover"
|
||||||
onKeyUp={this.onKeyUp.bind(this)}
|
onKeyUp={this.onKeyUp.bind(this)}
|
||||||
onBlur={this.onBlur.bind(this)}>
|
onBlur={this.onBlur.bind(this)}>
|
||||||
{ tab.icon && <ion-icon class="tab-button-icon" name={tab.icon}></ion-icon> }
|
{ tab.icon && <ion-icon class="tab-button-icon" icon={tab.icon}></ion-icon> }
|
||||||
{ tab.label && <span class="tab-button-text">{tab.label}</span> }
|
{ tab.label && <span class="tab-button-text">{tab.label}</span> }
|
||||||
{ tab.badge && <ion-badge class="tab-badge" color={tab.badgeColor}>{tab.badge}</ion-badge> }
|
{ tab.badge && <ion-badge class="tab-badge" color={tab.badgeColor}>{tab.badge}</ion-badge> }
|
||||||
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }
|
{ this.mode === 'md' && <ion-ripple-effect tapClick={true}/> }
|
||||||
|
Reference in New Issue
Block a user