We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 55382ae commit ffef822Copy full SHA for ffef822
packages/runtime-core/src/helpers/renderSlot.ts
@@ -37,11 +37,8 @@ export function renderSlot(
37
isAsyncWrapper(currentRenderingInstance!.parent) &&
38
currentRenderingInstance!.parent.isCE)
39
) {
40
- return createVNode(
41
- 'slot',
42
- name === 'default' ? null : { name },
43
- fallback && fallback()
44
- )
+ if (name !== 'default') props.name = name
+ return createVNode('slot', props, fallback && fallback())
45
}
46
47
let slot = slots[name]
0 commit comments