From 378241192ef04d6c94d9a95c727cd1d700f8ac0a Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 26 May 2019 12:13:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vnode=20=E4=BC=A0=E9=80=92=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=BC=8F=E7=BB=84=E4=BB=B6=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/_util/vnode.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/_util/vnode.js b/components/_util/vnode.js index 4ca58202d..7488e98be 100644 --- a/components/_util/vnode.js +++ b/components/_util/vnode.js @@ -119,6 +119,10 @@ export function cloneElement(n, nodeProps = {}, deep) { node.data.on = { ...(node.data.on || {}), ...on }; } + if (node.fnOptions && node.fnOptions.functional) { + node.data.on = { ...(node.data.on || {}), ...on }; + } + if (key !== undefined) { node.key = key; node.data.key = key;