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

34 lines
1.1 KiB
TypeScript
Raw Normal View History

/**
*
* @apiName device.notification.extendModal
*/
export interface IDeviceNotificationExtendModalParams {
/** 浮层元素数组每一个item为一个包含image、title、content内容的对象 */
cells: Array<{
/** 图片地址 */
image: string;
/** 标题 */
title: string;
/** 文本内容 */
content: string;
}>;
/** 最多两个按钮,至少有一个按钮。 */
buttonLabels: string[];
}
/**
*
* @apiName device.notification.extendModal
*/
export interface IDeviceNotificationExtendModalResult {
/** 被点击按钮的索引值Number从0开始 */
buttonIndex: number;
}
/**
*
* modal弹浮层Cell的内容
* @apiName device.notification.extendModal
* @supportVersion ios: 2.5.0 android: 2.5.0
*/
export declare function extendModal$(params: IDeviceNotificationExtendModalParams): Promise<IDeviceNotificationExtendModalResult>;
export default extendModal$;