From b9c56e660d4031f8fcbfd4ae6efb0748d5da4103 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Thu, 26 Dec 2024 18:31:49 +0800 Subject: [PATCH] chore: small changes --- src/file-list/files.json | 10 ++++++++++ src/file-list/index.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 }