We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc9243 commit cc39be8Copy full SHA for cc39be8
src/components/Icon/src/Icon.vue
@@ -22,7 +22,7 @@ const props = defineProps({
22
23
const elRef = ref<ElRef>(null)
24
25
-const isLocal = computed(() => props.icon.startsWith('svg-icon:'))
+const isLocal = computed(() => props.icon?.startsWith('svg-icon:'))
26
27
const symbolId = computed(() => {
28
return unref(isLocal) ? `#icon-${props.icon.split('svg-icon:')[1]}` : props.icon
0 commit comments