extendModal.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * 弹层,支持多张图片 请求参数定义
  3. * @apiName device.notification.extendModal
  4. */
  5. export interface IDeviceNotificationExtendModalParams {
  6. /** 浮层元素数组,每一个item为一个包含image、title、content内容的对象 */
  7. cells: Array<{
  8. /** 图片地址 */
  9. image: string;
  10. /** 标题 */
  11. title: string;
  12. /** 文本内容 */
  13. content: string;
  14. }>;
  15. /** 最多两个按钮,至少有一个按钮。 */
  16. buttonLabels: string[];
  17. }
  18. /**
  19. * 弹层,支持多张图片 返回结果定义
  20. * @apiName device.notification.extendModal
  21. */
  22. export interface IDeviceNotificationExtendModalResult {
  23. /** 被点击按钮的索引值,Number,从0开始 */
  24. buttonIndex: number;
  25. }
  26. /**
  27. * 弹层,支持多张图片
  28. * 增强版modal弹浮层,支持自定义每一个Cell的内容
  29. * @apiName device.notification.extendModal
  30. * @supportVersion ios: 2.5.0 android: 2.5.0
  31. */
  32. export declare function extendModal$(params: IDeviceNotificationExtendModalParams): Promise<IDeviceNotificationExtendModalResult>;
  33. export default extendModal$;