perf[SvgIcon]: change xlink:href to href(#2645)

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href
This commit is contained in:
MaYuanhai 2019-10-10 11:35:48 +08:00 committed by 花裤衩
parent 197948dc44
commit 12b44f5d4b
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div v-if="isExternal" :style="styleExternalIcon" class="svg-external-icon svg-icon" v-on="$listeners" /> <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"> <svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners">
<use :xlink:href="iconName" /> <use :href="iconName" />
</svg> </svg>
</template> </template>