mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
lint(eslint): migrate to eslint and prettier (#25046)
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
import { Component, ComponentInterface, Element, Host, Prop, h } from '@stencil/core';
|
||||
import type { ComponentInterface } from '@stencil/core';
|
||||
import { Component, Element, Host, Prop, h } from '@stencil/core';
|
||||
|
||||
import { getIonMode } from '../../global/ionic-global';
|
||||
|
||||
@Component({
|
||||
tag: 'ion-select-option',
|
||||
shadow: true,
|
||||
styleUrl: 'select-option.scss'
|
||||
styleUrl: 'select-option.scss',
|
||||
})
|
||||
export class SelectOption implements ComponentInterface {
|
||||
|
||||
private inputId = `ion-selopt-${selectOptionIds++}`;
|
||||
|
||||
@Element() el!: HTMLElement;
|
||||
@ -24,14 +24,7 @@ export class SelectOption implements ComponentInterface {
|
||||
@Prop() value?: any | null;
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Host
|
||||
role="option"
|
||||
id={this.inputId}
|
||||
class={getIonMode(this)}
|
||||
>
|
||||
</Host>
|
||||
);
|
||||
return <Host role="option" id={this.inputId} class={getIonMode(this)}></Host>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user