更新
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user