Skip to content

Commit

Permalink
fix: svg support old broswer
Browse files Browse the repository at this point in the history
  • Loading branch information
潘嘉晨 committed Jun 4, 2020
1 parent fc7c3f1 commit ad02035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SvgIcon/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div v-if="isExternal" :style="styleExternalIcon" class="svg-external-icon svg-icon" v-on="$listeners" />
<svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners">
<use :href="iconName" />
<use :xlink:href="iconName" />
</svg>
</template>

Expand Down

0 comments on commit ad02035

Please sign in to comment.