@mijadesign/mjui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
41 lines (40 loc) • 888 B
TypeScript
/** 图片的尺寸 */
export type SizeType = {
/** 原图 */
original: string;
/** compressed */
compressed: string;
};
/** 图片的来源 */
export type SourceType = {
/** 从相册选图 */
album: string;
/** 使用相机 */
camera: string;
};
/** 视频的来源 */
export type MediaType = {
/** 只能拍摄图片或从相册选择图片 */
image: string;
/** 只能拍摄视频或从相册选择视频 */
video: string;
};
export type TFileType = {
size: number;
type?: string;
fileType?: string;
originalFileObj?: any;
tempFilePath?: string;
thumbTempFilePath?: string;
path?: string;
};
export type StatusMessage = {
deleteWord?: string;
error?: string;
list?: string;
ready?: string;
readyUpload?: string;
success?: string;
uploading: string;
waitingUpload?: string;
};