fix(compiler-sfc): add type for props include Function in prod mode (#4938)

This commit is contained in:
ygj6
2021-11-15 10:31:11 +08:00
committed by GitHub
parent f454dd62ab
commit 9c42a1e2a3
3 changed files with 13 additions and 12 deletions

View File

@@ -84,7 +84,8 @@ export default /*#__PURE__*/_defineComponent({
bar: { default: () => {} },
baz: null,
boola: { type: Boolean },
boolb: { type: [Boolean, Number] }
boolb: { type: [Boolean, Number] },
func: { type: Function, default: () => () => {} }
},
setup(__props: any) {