mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(select): add position styles to work as standalone
This commit is contained in:
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
|
||||||
color: var(--color);
|
color: var(--color);
|
||||||
|
|
||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
@ -26,6 +28,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.in-item) {
|
:host(.in-item) {
|
||||||
|
position: static;
|
||||||
|
|
||||||
max-width: 45%;
|
max-width: 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ export class Select implements ComponentInterface {
|
|||||||
private inputId = `ion-sel-${selectIds++}`;
|
private inputId = `ion-sel-${selectIds++}`;
|
||||||
private labelId?: string;
|
private labelId?: string;
|
||||||
private overlay?: HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement;
|
private overlay?: HTMLIonActionSheetElement | HTMLIonAlertElement | HTMLIonPopoverElement;
|
||||||
|
|
||||||
@Element() el!: HTMLIonSelectElement;
|
@Element() el!: HTMLIonSelectElement;
|
||||||
|
|
||||||
@Prop({ connect: 'ion-action-sheet-controller' }) actionSheetCtrl!: HTMLIonActionSheetControllerElement;
|
@Prop({ connect: 'ion-action-sheet-controller' }) actionSheetCtrl!: HTMLIonActionSheetControllerElement;
|
||||||
|
Reference in New Issue
Block a user