mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(): update to Stencil One 🎉🎊
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { Component, ComponentInterface, Listen, Prop } from '@stencil/core';
|
||||
import { Component, ComponentInterface, Listen, Prop, h } from '@stencil/core';
|
||||
|
||||
import { Mode, SelectPopoverOption } from '../../interface';
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
import { SelectPopoverOption } from '../../interface';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@ -12,8 +13,6 @@ import { Mode, SelectPopoverOption } from '../../interface';
|
||||
})
|
||||
export class SelectPopover implements ComponentInterface {
|
||||
|
||||
mode!: Mode;
|
||||
|
||||
/** Header text for the popover */
|
||||
@Prop() header?: string;
|
||||
|
||||
@ -35,9 +34,10 @@ export class SelectPopover implements ComponentInterface {
|
||||
}
|
||||
|
||||
hostData() {
|
||||
const mode = getIonMode(this);
|
||||
return {
|
||||
class: {
|
||||
[`${this.mode}`]: true,
|
||||
[`${mode}`]: true,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user