diff --git a/src/file-list/files.json b/src/file-list/files.json index cce4914..32d2c5f 100644 --- a/src/file-list/files.json +++ b/src/file-list/files.json @@ -3,5 +3,15 @@ "name": "test.txt", "size": 1024, "directory": false + }, + { + "name": "folder 1", + "directory": true + }, + { + "name": "picture.jpg", + "thumbnail": "", + "size": 2048, + "directory": false } ] diff --git a/src/file-list/index.ts b/src/file-list/index.ts index ac4c113..1cc4385 100644 --- a/src/file-list/index.ts +++ b/src/file-list/index.ts @@ -11,7 +11,8 @@ export interface IOptions extends IComponentOptions { export interface IFile { name: string - size: number + thumbnail?: string + size?: number directory: boolean }