将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('.');

View File

@@ -14,7 +14,7 @@
<!-- 箭头仅文件夹且有子项时显示 -->
<Icon
v-if="showArrow && item.isFolder && item.children && item.children.length > 0"
:name="isExpanded ? 'i-lucide-chevron-down' : 'i-lucide-chevron-right'"
:name="isExpanded ? 'lucide-chevron-down' : 'lucide-chevron-right'"
class="mr-1 text-gray-400 w-4 h-4 transition-transform"
:class="{ 'rotate-90': isExpanded }"
/>
@@ -23,7 +23,7 @@
<!-- 图标 -->
<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'),