This commit is contained in:
Your Name
2026-05-28 10:50:21 +08:00
parent 4f066b560e
commit 33f8f669ad
10 changed files with 7835 additions and 1925 deletions
@@ -24,7 +24,7 @@ import { svgToDataUrl } from '../utils/svgDataUrl.js'
const props = defineProps({
name: { type: String, required: true },
size: { type: String, default: 'md' },
color: { type: String, default: '#0891B2' }
color: { type: String, default: '#204E2B' }
})
const useFallback = ref(false)
@@ -86,8 +86,8 @@ const ICON_FALLBACK = {
}
const strokeColor = computed(() => {
const c = String(props.color || '#0891B2').trim()
return /^#[0-9A-Fa-f]{3,8}$/.test(c) ? c : '#0891B2'
const c = String(props.color || '#204E2B').trim()
return /^#[0-9A-Fa-f]{3,8}$/.test(c) ? c : '#204E2B'
})
const iconSrc = computed(() => {