diff --git a/src/components/PresetDropdown.vue b/src/components/PresetDropdown.vue index 86efb19..f17037a 100644 --- a/src/components/PresetDropdown.vue +++ b/src/components/PresetDropdown.vue @@ -3,6 +3,7 @@ import { ref, computed, onMounted, onUnmounted } from 'vue'; import { usePromptStore } from '../stores/promptStore'; import type { PromptPreset, PresetType } from '../types'; import NotificationToast from './NotificationToast.vue'; +import IconPresetType from './icons/IconPresetType.vue'; const store = usePromptStore(); @@ -325,19 +326,6 @@ function importPreset(event: Event) { (event.target as HTMLInputElement).value = ''; } -function getTypeIcon(type: string) { - const icons: Record = { - positive: '🪄', - negative: '⛔', - setting: '⚙️', - style: '🖌️', - character: '🧙', - scene: '🏞️', - custom: '🧩' - }; - return icons[type] || '🧩'; -} - function getTypeLabel(type: string) { const typeMap: Record = { 'positive': '正面', @@ -513,12 +501,14 @@ onUnmounted(() => { {{ group.presets.length }} -
+