fix: vnode 传递函数式组件事件

pull/1040/head
tangjinzhou 6 years ago
parent 00f104757c
commit 378241192e

@ -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;

Loading…
Cancel
Save