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

28 lines
858 B
TypeScript
Raw Normal View History

/**
* 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$;