diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index 96b365b5..fcf707e0 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -291,7 +291,7 @@ function resolvePropValue( const defaultValue = opt.default value = opt.type !== Function && isFunction(defaultValue) - ? defaultValue() + ? defaultValue(props) : defaultValue } // boolean casting