fix(svg-icon): fix SvgIcon style

This commit is contained in:
无木 2021-06-29 15:16:21 +08:00
parent bdae33e34a
commit 99829c79ab
2 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- **Table** 修复 `editComponentProps` 不支持 `onChange`
- **Modal** 修复 `setModalProps` 不支持设置 `defaultFullscreen`
- **Sider** 修复侧边菜单底部的折叠按钮点击无效
- **SvgIcon** 修复图标样式问题
## 2.5.2(2021-06-27)

View File

@ -1,5 +1,11 @@
<template>
<SvgIcon :size="size" :name="getSvgIcon" v-if="isSvgIcon" :class="[$attrs.class]" :spin="spin" />
<SvgIcon
:size="size"
:name="getSvgIcon"
v-if="isSvgIcon"
:class="[$attrs.class, 'anticon']"
:spin="spin"
/>
<span
v-else
ref="elRef"