Skip to content

Commit

Permalink
fix: add avatar support event listeners #102
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 8, 2018
1 parent 0deb58a commit 02860a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/avatar/Avatar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export default {
})
},
render () {
const { classes, prefixCls, src, icon, childrenStyle, $slots } = this
const { classes, prefixCls, src, icon, childrenStyle, $slots, $listeners } = this
return (
<span class={classes}>
<span {...{ on: $listeners, class: classes }}>
{src ? <img src={src}/>
: (icon ? <Icon type={icon} />
: <span
Expand Down

0 comments on commit 02860a1

Please sign in to comment.