@npmxiaowu/h-ui-plus
Version:
Vue3 中基于Element-plus二次封装基础组件文档
63 lines (62 loc) • 2.33 kB
TypeScript
declare const TUpload: ({
props: {
fileInfo: {
type: ObjectConstructor;
default: () => {
resourceId: string;
resourceTitle: string;
resourceType: string;
resourceTypeName: string;
resourceNodeCode: string;
resourceNodeName: string;
fileClassCode: string;
fileClassName: string;
deptCode: string;
orgCode: string;
userCode: string;
appCode: string;
companyCode: string;
};
};
};
emits: string[];
setup(__props: any, { expose: __expose, emit: __emit }: {
expose: any;
emit: any;
}): {
props: any;
emit: any;
CHUNK_SIZE: number;
MAX_CONCURRENT: number;
file: import("vue").Ref<null, null>;
fileName: import("vue").Ref<null, null>;
progressPercent: import("vue").Ref<number, number>;
progressVisible: import("vue").Ref<boolean, boolean>;
uploadStatus: import("vue").Ref<string, string>;
progressText: import("vue").Ref<string, string>;
calculateHash: (file: any) => Promise<any>;
handleFileChange: (uploadFile: any) => void;
handleUpload: () => Promise<void>;
createChunks: (file: any, fileHash: any, uploadedChunks?: any[]) => {
chunk: any;
index: number;
hash: string;
}[];
uploadChunks: (chunks: any, uploadedChunks: any) => Promise<void>;
resetProgress: () => void;
ref: typeof import("vue").ref;
readonly axios: import("axios").AxiosStatic;
readonly ElMessage: import("element-plus/es/utils").SFCInstallWithContext<import("element-plus").Message>;
readonly Chunckupload: typeof import("./api").Chunckupload;
readonly viewUpload: typeof import("./api").viewUpload;
readonly mergeFile: typeof import("./api").mergeFile;
readonly getSignature: typeof import("./api").getSignature;
readonly downloadFile: typeof import("./api").downloadFile;
readonly SparkMD5: any;
};
} & import("vue").Plugin<any[]> & {
label?: string | undefined;
}) & {
label: string;
};
export default TUpload;