actionSheet.d.ts 858 B

123456789101112131415161718192021222324252627
  1. /**
  2. * ActionSheet控件 请求参数定义
  3. * @apiName device.notification.actionSheet
  4. */
  5. export interface IDeviceNotificationActionSheetParams {
  6. /** 标题 */
  7. title: string;
  8. /** 取消按钮文本 */
  9. cancelButton: string;
  10. /** 其他按钮列表 */
  11. otherButtons: string[];
  12. }
  13. /**
  14. * ActionSheet控件 返回结果定义
  15. * @apiName device.notification.actionSheet
  16. */
  17. export interface IDeviceNotificationActionSheetResult {
  18. /** 被点击按钮的索引值,Number,从0开始, 取消按钮为-1 */
  19. buttonIndex: number;
  20. }
  21. /**
  22. * ActionSheet控件 单选列表
  23. * @apiName device.notification.actionSheet
  24. * @supportVersion pc: 3.0.0 ios: 2.4.0 android: 2.4.0
  25. */
  26. export declare function actionSheet$(params: IDeviceNotificationActionSheetParams): Promise<IDeviceNotificationActionSheetResult>;
  27. export default actionSheet$;