zhizhi/node_modules/dingtalk-jsapi/api/device/notification/actionSheet.d.ts

28 lines
858 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* ActionSheet控件 请求参数定义
* @apiName device.notification.actionSheet
*/
export interface IDeviceNotificationActionSheetParams {
/** 标题 */
title: string;
/** 取消按钮文本 */
cancelButton: string;
/** 其他按钮列表 */
otherButtons: string[];
}
/**
* ActionSheet控件 返回结果定义
* @apiName device.notification.actionSheet
*/
export interface IDeviceNotificationActionSheetResult {
/** 被点击按钮的索引值Number从0开始, 取消按钮为-1 */
buttonIndex: number;
}
/**
* ActionSheet控件 单选列表
* @apiName device.notification.actionSheet
* @supportVersion pc: 3.0.0 ios: 2.4.0 android: 2.4.0
*/
export declare function actionSheet$(params: IDeviceNotificationActionSheetParams): Promise<IDeviceNotificationActionSheetResult>;
export default actionSheet$;