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>;
|