SVG 2删除了对xlink命名空间的需要,所以不xlink:href应该使用href。
https://cloud.tencent.com/developer/section/1424047
This commit is contained in:
parent
197948dc44
commit
3768696e2b
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue