mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
chore(react): migrate to eslint, add prettier (#26633)
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
import {
|
||||
import type {
|
||||
ActionSheetButton as ActionSheetButtonCore,
|
||||
ActionSheetOptions as ActionSheetOptionsCore,
|
||||
actionSheetController as actionSheetControllerCore,
|
||||
} from '@ionic/core/components';
|
||||
import { actionSheetController as actionSheetControllerCore } from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-action-sheet.js';
|
||||
|
||||
import { createOverlayComponent } from './createOverlayComponent';
|
||||
|
||||
export interface ActionSheetButton extends Omit<ActionSheetButtonCore, 'icon'> {
|
||||
icon?:
|
||||
| {
|
||||
ios: string;
|
||||
md: string;
|
||||
}
|
||||
| string;
|
||||
| {
|
||||
ios: string;
|
||||
md: string;
|
||||
}
|
||||
| string;
|
||||
}
|
||||
|
||||
export interface ActionSheetOptions extends Omit<ActionSheetOptionsCore, 'buttons'> {
|
||||
@ -28,7 +28,8 @@ const actionSheetController = {
|
||||
getTop: () => actionSheetControllerCore.getTop(),
|
||||
};
|
||||
|
||||
export const IonActionSheet = /*@__PURE__*/ createOverlayComponent<
|
||||
ActionSheetOptions,
|
||||
HTMLIonActionSheetElement
|
||||
>('ion-action-sheet', actionSheetController, defineCustomElement);
|
||||
export const IonActionSheet = /*@__PURE__*/ createOverlayComponent<ActionSheetOptions, HTMLIonActionSheetElement>(
|
||||
'ion-action-sheet',
|
||||
actionSheetController,
|
||||
defineCustomElement
|
||||
);
|
||||
|
Reference in New Issue
Block a user