fixed bug of Transfer when no slot
fixed bug of Transfer when no slot
This commit is contained in:
parent
7c2ed52c61
commit
84a8a413aa
3 changed files with 79 additions and 79 deletions
|
@ -67,8 +67,8 @@
|
|||
return cloned;
|
||||
}
|
||||
|
||||
const vNodes = this.$slots.default;
|
||||
const clonedVNodes = vNodes.map(vnode => cloneVNode(vnode));
|
||||
const vNodes = this.$slots.default === undefined ? [] : this.$slots.default;
|
||||
const clonedVNodes = this.$slots.default === undefined ? [] : vNodes.map(vnode => cloneVNode(vnode));
|
||||
|
||||
return createElement('div', {
|
||||
'class': this.classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue