修改图标

This commit is contained in:
2025-11-29 09:34:29 +08:00
parent b55fc141fb
commit b76f2efe95
3 changed files with 20 additions and 20 deletions
+7 -7
View File
@@ -327,15 +327,15 @@ function importPreset(event: Event) {
function getTypeIcon(type: string) { function getTypeIcon(type: string) {
const icons: Record<string, string> = { const icons: Record<string, string> = {
positive: '👍', positive: '🪄',
negative: '👎', negative: '',
setting: '⚙️', setting: '⚙️',
style: '🎨', style: '🖌️',
character: '👤', character: '🧙',
scene: '🌍', scene: '🏞️',
custom: '📝' custom: '🧩'
}; };
return icons[type] || '📝'; return icons[type] || '🧩';
} }
function getTypeLabel(type: string) { function getTypeLabel(type: string) {
+6 -6
View File
@@ -54,13 +54,13 @@ function showNotification(message: string, type: 'success' | 'error' | 'info' =
// Preset Types // Preset Types
const presetTypes: { value: PresetType; label: string; icon: string }[] = [ const presetTypes: { value: PresetType; label: string; icon: string }[] = [
{ value: 'positive', label: '正面提示词', icon: '👍' }, { value: 'positive', label: '正面提示词', icon: '🪄' },
{ value: 'negative', label: '负面提示词', icon: '👎' }, { value: 'negative', label: '负面提示词', icon: '' },
{ value: 'setting', label: '设定标签', icon: '⚙️' }, { value: 'setting', label: '设定标签', icon: '⚙️' },
{ value: 'style', label: '风格样式', icon: '🎨' }, { value: 'style', label: '风格样式', icon: '🖌️' },
{ value: 'character', label: '角色人物', icon: '👤' }, { value: 'character', label: '角色人物', icon: '🧙' },
{ value: 'scene', label: '场景环境', icon: '🌍' }, { value: 'scene', label: '场景环境', icon: '🏞️' },
{ value: 'custom', label: '自定义', icon: '📝' } { value: 'custom', label: '自定义', icon: '🧩' }
]; ];
// Computed // Computed
+7 -7
View File
@@ -16,15 +16,15 @@ const emit = defineEmits<{
function getTypeIcon(type: PresetType) { function getTypeIcon(type: PresetType) {
const icons: Record<string, string> = { const icons: Record<string, string> = {
positive: '👍', positive: '🪄',
negative: '👎', negative: '',
setting: '⚙️', setting: '⚙️',
style: '🎨', style: '🖌️',
character: '👤', character: '🧙',
scene: '🌍', scene: '🏞️',
custom: '📝' custom: '🧩'
}; };
return icons[type] || '📝'; return icons[type] || '🧩';
} }
function getTypeLabel(type: PresetType) { function getTypeLabel(type: PresetType) {