From cffef392e5605de8d342787d7562e81ca8588800 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 19 Dec 2018 20:48:42 +0800 Subject: [PATCH] fix: icon support native event --- components/icon/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/icon/index.js b/components/icon/index.js index 6f527b4912..31e4ec37a0 100644 --- a/components/icon/index.js +++ b/components/icon/index.js @@ -123,8 +123,9 @@ const Icon = { /> ) } + // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526 const iProps = { - ...data, on: listeners, class: classString, staticClass: '', + ...data, on: { ...listeners, ...data.nativeOn }, class: classString, staticClass: '', } return (