Skip to content

Commit

Permalink
chore: add fill and stroke to external svg tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Aug 10, 2023
1 parent bfbe17e commit fbcb65e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/SvgIcon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
v-bind="externalSvg.attributes"
v-html="externalSvg.content"
:style="{ height: svgStyle.height, width: svgStyle.width }"
:fill="fill !== '' ? fill : svgStyle.fill"
:stroke="stroke !== '' ? stroke : svgStyle.stroke"
></svg>
</span>
<svg
Expand Down

0 comments on commit fbcb65e

Please sign in to comment.