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

44 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
2024-11-10 07:01:22 +00:00
export interface IActionItem {
2024-12-01 11:56:54 +00:00
text: string;
icon: string;
description?: string;
danger?: boolean;
disabled?: boolean;
2024-11-10 07:01:22 +00:00
}
/**
* @description
*/
export interface IActionSheetProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
/**
* @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;
2024-11-10 07:01:22 +00:00
}
export declare const ActionSheetDefaultProps: Partial<IActionSheetProps>;