fix: add avatar support event listeners #102

pull/165/head
tangjinzhou 2018-08-08 10:18:37 +08:00
parent 0deb58a2dc
commit 02860a1d24
1 changed files with 2 additions and 2 deletions

View File

@ -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