feat: 增加文件图标

This commit is contained in:
zhengkunwang223
2023-01-31 14:18:52 +08:00
committed by zhengkunwang223
parent daa40d237a
commit ccf2e77fe2
10 changed files with 309 additions and 234 deletions
+10
View File
@@ -137,6 +137,16 @@ let icons = new Map([
['.tar', 'p-file-zip'],
['.tar.gz', 'p-file-zip'],
['.tar.xz', 'p-file-zip'],
['.mp3', 'p-file-mp3'],
['.svg', 'p-file-svg'],
['.txt', 'p-file-txt'],
['.html', 'p-file-html'],
['.word', 'p-file-word'],
['.ppt', 'p-file-ppt'],
['.jpg', 'p-file-jpg'],
['.xlsx', 'p-file-excel'],
['.doc', 'p-file-word'],
['.pdf', 'p-file-pdf'],
]);
export function getIcon(extention: string): string {