UNPKG

tdesign-mobile-vue

Version:
28 lines (27 loc) 827 B
import { TNode } from '../common'; import { TdBadgeProps } from '../badge/type'; export interface TdActionSheetProps { align?: 'center' | 'left'; cancelText?: string; count?: number; description?: string; items?: Array<string | ActionSheetItem>; showCancel?: boolean; theme?: 'list' | 'grid'; visible: boolean; defaultVisible: boolean; modelValue: boolean; onCancel?: (context: { e: MouseEvent; }) => void; onClose?: (trigger: ActionSheetTriggerSource) => void; onSelected?: (selected: ActionSheetItem | string, index: number) => void; } export interface ActionSheetItem { label: string; color?: string; disabled?: boolean; icon?: TNode; badge?: TdBadgeProps; } export declare type ActionSheetTriggerSource = 'overlay' | 'command' | 'select';