modal.d.ts 899 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * 弹浮层 请求参数定义
  3. * @apiName device.notification.modal
  4. */
  5. export interface IDeviceNotificationModalParams {
  6. /** 图片地址 */
  7. image?: string;
  8. /** 图片地址数组。此参数与image互斥,冲突时优先使用此参数。 */
  9. banner?: string[];
  10. /** 标题 */
  11. title?: string;
  12. /** 文本内容 */
  13. content?: string;
  14. /** 其他按钮列表 */
  15. buttonLabels?: string[];
  16. }
  17. /**
  18. * 弹浮层 返回结果定义
  19. * @apiName device.notification.modal
  20. */
  21. export interface IDeviceNotificationModalResult {
  22. /** 被点击按钮的索引值,Number,从0开始 */
  23. buttonIndex: number;
  24. }
  25. /**
  26. * 弹浮层
  27. * @apiName device.notification.modal
  28. * @supportVersion pc: 4.2.5 ios: 2.4.0 android: 2.4.0
  29. */
  30. export declare function modal$(params: IDeviceNotificationModalParams): Promise<IDeviceNotificationModalResult>;
  31. export default modal$;