zhizhi/node_modules/dingtalk-jsapi/api/biz/util/uploadImage.d.ts

49 lines
1.9 KiB
TypeScript
Raw Normal View History

/**
*
* @apiName biz.util.uploadImage
*/
export interface IBizUtilUploadImageParams {
/** 默认 jsapi >= 5.0.0 */
bizType?: string;
/**
* >= 5.0.0)
* 1STRICT_AUTH, ,
* 4TEMP_AUTH, 访
* 6CDN_ONLYhttps下载
*/
authType?: number;
/** 是否多选默认false */
multiple?: boolean;
/** 最多可选个数 */
max?: number;
/** 是否压缩 */
compression?: boolean;
/** Number为正整数取值 0~100 表示图片压缩质量,数值越小压缩越严重 */
quality?: number;
/** Number为正整数取值 0~100 表示图片压缩质量,数值越小缩放越多 */
resize?: number;
/** 水印信息钉钉v2.11.0之后版本支持 */
stickers?: {
time?: string;
dateWeather?: string;
username?: string;
address?: string;
};
}
/**
*
* @apiName biz.util.uploadImage
* @returnDemo ['https://static.dingtalk.com/media/lADOA9bQH8zIzMg_200_200.jpg']
*/
export declare type IBizUtilUploadImageResult = string[];
/**
*
* +tab页自定义主页不能使用该组件tab页一级页面会阻塞该组件的执行
* onSuccess方法alicdn上的图片链接<input type="file" accept="image/*">2.5
* @apiName biz.util.uploadImage
* @supportVersion pc: 2.5.0 ios: 2.4.0 android: 2.4.0
* @author android ios
*/
export declare function uploadImage$(params: IBizUtilUploadImageParams): Promise<IBizUtilUploadImageResult>;
export default uploadImage$;