Skip to content

Commit 09fff1c

Browse files
committed
fix: fix resolveComponent error
1 parent 5e973e9 commit 09fff1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/components/src/__builtins__/shared/resolve-component.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ export const resolveComponent = (child?: SlotTypes, props?: Record<string, any>)
77
if (child) {
88
if (typeof child === 'string' || typeof child === 'number') {
99
return child
10-
} else if (typeof child === 'function') {
11-
return (child as Function)(props)
1210
} else if (isVnode(child)) {
1311
return child
1412
} else {
1513
const Com = toRaw(child as DefineComponent)
16-
return <Com {...Com} />
14+
return <Com {...props} />
1715
}
1816
}
1917

0 commit comments

Comments
 (0)