fix: add avatar support event listeners #102
parent
0deb58a2dc
commit
02860a1d24
|
@ -81,9 +81,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
render () {
|
render () {
|
||||||
const { classes, prefixCls, src, icon, childrenStyle, $slots } = this
|
const { classes, prefixCls, src, icon, childrenStyle, $slots, $listeners } = this
|
||||||
return (
|
return (
|
||||||
<span class={classes}>
|
<span {...{ on: $listeners, class: classes }}>
|
||||||
{src ? <img src={src}/>
|
{src ? <img src={src}/>
|
||||||
: (icon ? <Icon type={icon} />
|
: (icon ? <Icon type={icon} />
|
||||||
: <span
|
: <span
|
||||||
|
|
Loading…
Reference in New Issue