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

52 lines
954 B
TypeScript
Raw Normal View History

2024-11-10 07:01:22 +00:00
import { IBaseProps } from '../_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 []
*/
visible?: string;
/**
* @description
*/
onAction?: (aciton: IActionItem, index: number, e) => void;
/**
* @description
*/
onClose?: (e) => void;
}
export declare const ActionSheetDefaultProps: Partial<IActionSheetProps>;