将i-lucide都改为lucide本地库

This commit is contained in:
2025-07-28 13:38:45 +08:00
parent 29a41504d0
commit d30e76c41a
52 changed files with 155 additions and 155 deletions

View File

@@ -36,7 +36,7 @@
<div class="flex items-center" :style="{ marginLeft: '0px' }">
<Icon
v-if="showIcon"
:name="item.icon || 'i-lucide-file'"
:name="item.icon || 'lucide-file'"
class="mr-2 text-gray-500 w-4 h-4"
:class="{
'text-green-500': item.icon?.includes('vue'),
@@ -101,12 +101,12 @@ const defaultIcons = {
js: 'i-simple-icons-javascript',
md: 'i-simple-icons-markdown',
json: 'i-simple-icons-json',
folder: 'i-lucide-folder',
file: 'i-lucide-file'
folder: 'lucide-folder',
file: 'lucide-file'
};
function getIcon(filename: string, type: 'folder' | 'file'): string {
if (filename === '...') return 'i-lucide-more-horizontal';
if (filename === '...') return 'lucide-more-horizontal';
if (filename.endsWith('/')) return defaultIcons.folder;
const parts = filename.split('.');