jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/ActionSheet/props.d.ts

44 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps } from '../_util/base';
export interface IActionItem {
text: string;
icon: string;
description?: string;
danger?: boolean;
disabled?: boolean;
}
/**
* @description
*/
export interface IActionSheetProps extends IBaseProps {
/**
* @description
* @default ""
*/
title: string;
/**
* @description
* @default []
*/
actions: IActionItem[];
/**
* @description
* @default []
*/
cancelText: string;
/**
* @description
* @default false
*/
visible: boolean;
zIndex: number;
/**
* @description
*/
onAction: (aciton: IActionItem, index: number, e: any) => void;
/**
* @description
*/
onClose: (e: any) => void;
}
export declare const ActionSheetDefaultProps: Partial<IActionSheetProps>;