Skip to content

Commit

Permalink
perf[SvgIcon]: change xlink:href to href(PanJiaChen#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayunhai authored and PanJiaChen committed Oct 10, 2019
1 parent 197948d commit 12b44f5
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 :xlink:href="iconName" />
<use :href="iconName" />
</svg>
</template>

Expand Down

0 comments on commit 12b44f5

Please sign in to comment.