fix: vnode 传递函数式组件事件
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…
Reference in New Issue