Skip to content

Commit a409522

Browse files
committed
fix(validators): support components returning render function from setup
fix vuejs#1596
1 parent 6894540 commit a409522

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/shared/validators.js

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export function isVueComponent(c: any): boolean {
4545
return true
4646
}
4747

48+
if (typeof c.setup === 'function' && !c.render) {
49+
return true
50+
}
51+
4852
return typeof c.render === 'function'
4953
}
5054

0 commit comments

Comments
 (0)