fix: icon support native event

pull/329/head
tangjinzhou 2018-12-19 20:48:42 +08:00
parent d63935e506
commit cffef392e5
1 changed files with 2 additions and 1 deletions

View File

@ -123,8 +123,9 @@ const Icon = {
/>
)
}
// functional component not support nativeOnhttps://github.com/vuejs/vue/issues/7526
const iProps = {
...data, on: listeners, class: classString, staticClass: '',
...data, on: { ...listeners, ...data.nativeOn }, class: classString, staticClass: '',
}
return (
<i {...iProps}>