UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

31 lines (30 loc) 1.06 kB
import { ReactNode } from 'react'; import { DrawerProps } from '../drawer'; import { LocaledComponentProps } from '../locale'; export interface ActionSheetOptionProps { key?: string; text?: string; icon?: string; badge?: number | string; badgeType?: 'normal' | 'dot'; } export interface LocaleType { cancel?: string; } export interface ActionSheetProps extends DrawerProps, LocaledComponentProps<LocaleType> { visible: boolean; message?: string; fullWidth?: boolean; showCancel?: boolean; cancelText?: string; maskClosable?: boolean; options: string[] | ActionSheetOptionProps[]; destructiveIndex?: number; disabledIndexes?: number[]; children?: ReactNode; align?: 'left' | 'center' | 'right'; onClick?: (option: string | ActionSheetOptionProps, index: number, e?: any) => void; onClose?: (reason?: string | number, e?: any) => void; } declare const _default: import("react").ForwardRefExoticComponent<ActionSheetProps & import("react").RefAttributes<any>>; export default _default;