Commit 5a2a3915 authored by XieZhiXiong's avatar XieZhiXiong

chore: 补充类型

parent c97053c9
...@@ -430,6 +430,8 @@ export interface FileData { ...@@ -430,6 +430,8 @@ export interface FileData {
name: string; name: string;
status: 'uploading' | 'done' | 'error' | 'removed'; status: 'uploading' | 'done' | 'error' | 'removed';
url: string; url: string;
size: number,
type: string,
}; };
/** /**
...@@ -447,6 +449,8 @@ export function normalizeFiledata(url: any): any { ...@@ -447,6 +449,8 @@ export function normalizeFiledata(url: any): any {
uid: Math.random().toFixed(16).slice(2, 10), uid: Math.random().toFixed(16).slice(2, 10),
name: fileName, name: fileName,
status: 'done', status: 'done',
size: 0,
type: '',
url, url,
}; };
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment