mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
fix(): add button effect to select and child components
This commit is contained in:
@ -282,6 +282,7 @@ export class Alert implements OverlayInterface {
|
|||||||
{i.label}
|
{i.label}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{this.mode==="md" ? <ion-ripple-effect /> : null}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@ -301,6 +302,7 @@ export class Alert implements OverlayInterface {
|
|||||||
{i.label}
|
{i.label}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{this.mode==="md" ? <ion-ripple-effect /> : null}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -12,8 +12,6 @@ ion-select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item .select {
|
.item .select {
|
||||||
position: static;
|
|
||||||
|
|
||||||
max-width: 45%;
|
max-width: 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,7 @@ export class Select {
|
|||||||
private labelId: string;
|
private labelId: string;
|
||||||
private overlay: ActionSheet | Alert | Popover;
|
private overlay: ActionSheet | Alert | Popover;
|
||||||
private styleTmr: any;
|
private styleTmr: any;
|
||||||
|
private mode: string;
|
||||||
|
|
||||||
@Element() private el: HTMLIonSelectElement;
|
@Element() private el: HTMLIonSelectElement;
|
||||||
|
|
||||||
@ -520,6 +521,7 @@ export class Select {
|
|||||||
onBlur={this.onBlur.bind(this)}
|
onBlur={this.onBlur.bind(this)}
|
||||||
class='select-cover'>
|
class='select-cover'>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
{this.mode==="md" ? <ion-ripple-effect /> : null}
|
||||||
</button>,
|
</button>,
|
||||||
<input type='hidden' name={this.name} value={this.value}/>
|
<input type='hidden' name={this.name} value={this.value}/>
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user