将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('.');
|
||||
|
@@ -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'),
|
||||
|
Reference in New Issue
Block a user