公告板
版本库
filestore
活动
搜索
登录
main
/
qyjz_applet
青阳经侦小程序
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
修改提示
odc.xiaohui
2023-03-29
638deae4b5b115751e6607f5cdc3c8dee293e957
[qyjz_applet.git]
/
miniprogram
/
miniprogram_npm
/
@vant
/
weapp
/
uploader
/
utils.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export interface File {
url: string;
size?: number;
name?: string;
type: string;
duration?: number;
time?: number;
isImage?: boolean;
isVideo?: boolean;
}
export declare function isImageFile(item: File): boolean;
export declare function isVideoFile(item: File): boolean;
export declare function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, mediaType, extension, }: {
accept: any;
multiple: any;
capture: any;
compressed: any;
maxDuration: any;
sizeType: any;
camera: any;
maxCount: any;
mediaType: any;
extension: any;
}): Promise<File | File[]>;