Skip to content

Commit

Permalink
fix: inherit missing static attributes
Browse files Browse the repository at this point in the history
Fix #5
  • Loading branch information
fengyuanchen committed Nov 14, 2020
1 parent f0257b5 commit 3e8ae72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/feather.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default {
},
},
render(createElement, { listeners, props }) {
render(createElement, { data, props }) {
const {
animation,
animationSpeed,
Expand All @@ -77,20 +77,22 @@ export default {
props.tag,
{
...data,
attrs: {
...data.attrs,
'data-name': type,
'data-tags': icon ? icon.tags : '',
'data-type': type,
},
class: {
...data.class,
feather: true,
[`feather--${type}`]: type,
[`feather--${animation}`]: animation,
[`feather--${animationSpeed}`]: animationSpeed,
},
on: listeners,
},
[
Expand Down

0 comments on commit 3e8ae72

Please sign in to comment.