diff --git a/components/_util/Clone.vue b/components/_util/Clone.vue index d9091c0cf..b3609db1a 100644 --- a/components/_util/Clone.vue +++ b/components/_util/Clone.vue @@ -12,7 +12,6 @@ export default { attr: $attrs, on: $listeners, props: childProps, - addChildren: $slots.addChildren, }) return children }, diff --git a/components/_util/vnode.js b/components/_util/vnode.js index fc2ba0ddd..f89b2e3f2 100644 --- a/components/_util/vnode.js +++ b/components/_util/vnode.js @@ -46,7 +46,7 @@ export function cloneVNodes (vnodes, deep) { export function cloneElement (n, nodeProps, clone) { const node = clone ? cloneVNode(n, true) : n - const { props = {}, key, on = {}, addChildren } = nodeProps + const { props = {}, key, on = {}} = nodeProps const data = node.data || {} const { style = data.style, class: cls = data.class, @@ -59,10 +59,7 @@ export function cloneElement (n, nodeProps, clone) { node.componentOptions.listeners = node.componentOptions.listeners || {} node.componentOptions.propsData = { ...node.componentOptions.propsData, ...props } node.componentOptions.listeners = { ...node.componentOptions.listeners, ...on } - node.componentOptions.children = node.componentOptions.children.filter(c => c.key !== '_ANT_PORTAL') - addChildren && node.componentOptions.children.push(...addChildren) } else { - addChildren && (node.children = [...(node.children || []), ...addChildren]) node.data.on = { ...(node.data.on || {}), ...on } } diff --git a/components/menu/demo/horizontal.vue b/components/menu/demo/horizontal.vue index b4859d25b..c3a012642 100644 --- a/components/menu/demo/horizontal.vue +++ b/components/menu/demo/horizontal.vue @@ -15,9 +15,7 @@ Navigation Two - + Navigation Three - Submenu Option 1 Option 2 diff --git a/components/menu/demo/inline-collapsed.vue b/components/menu/demo/inline-collapsed.vue index 1ccb41a57..de56f381c 100644 --- a/components/menu/demo/inline-collapsed.vue +++ b/components/menu/demo/inline-collapsed.vue @@ -29,18 +29,14 @@ Option 3 - + Navigation One Option 5 Option 6 Option 7 Option 8 - + Navigation Two Option 9 Option 10 diff --git a/components/tabs/demo/icon.vue b/components/tabs/demo/icon.vue index f4da4c164..1d367d1a5 100644 --- a/components/tabs/demo/icon.vue +++ b/components/tabs/demo/icon.vue @@ -1,26 +1,26 @@