mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
declare dom file type
This commit is contained in:
@@ -301,7 +301,7 @@ export default class List extends TankComponent<IProps, IState> {
|
||||
uploadDirectory = async () => {
|
||||
const dirPathUuidMap: any = {}; // 存储已经创建好的文件夹map
|
||||
for (let i = 0; i < this.tempUploadList.length; i++) {
|
||||
const file: any = this.tempUploadList[i];
|
||||
const file: File = this.tempUploadList[i];
|
||||
const paths = file.webkitRelativePath.split("/");
|
||||
const pPaths = paths.slice(0, paths.length - 1);
|
||||
const pPathStr = pPaths.join("/");
|
||||
|
||||
Vendored
+4
@@ -79,3 +79,7 @@ declare module 'comma-separated-values' {
|
||||
import CSV from 'comma-separated-values';
|
||||
export default CSV;
|
||||
}
|
||||
|
||||
declare interface File {
|
||||
webkitRelativePath: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user