Skip to content

Commit

Permalink
fix(svg-icon): fix SvgIcon style
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan committed Jun 29, 2021
1 parent bdae33e commit 99829c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- **Table** 修复 `editComponentProps` 不支持 `onChange`
- **Modal** 修复 `setModalProps` 不支持设置 `defaultFullscreen`
- **Sider** 修复侧边菜单底部的折叠按钮点击无效
- **SvgIcon** 修复图标样式问题

## 2.5.2(2021-06-27)

Expand Down
8 changes: 7 additions & 1 deletion src/components/Icon/src/Icon.vue
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 99829c7

Please sign in to comment.