将i-lucide都改为lucide本地库
This commit is contained in:
@@ -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('.');
|
||||
|
Reference in New Issue
Block a user