fix: add avatar support event listeners #102
parent
0deb58a2dc
commit
02860a1d24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue