diff --git a/src/guide/components/props.md b/src/guide/components/props.md index 65167287f1..278a7f8e24 100644 --- a/src/guide/components/props.md +++ b/src/guide/components/props.md @@ -398,8 +398,9 @@ defineProps({ propE: { type: Object, // Object or array defaults must be returned from - // a factory function - default() { + // a factory function. The function receives the raw + // props received by the component as the argument. + default(rawProps) { return { message: 'hello' } } }, @@ -453,7 +454,6 @@ export default { // a factory function. The function receives the raw // props received by the component as the argument. default(rawProps) { - // default function receives the raw props object as argument return { message: 'hello' } } },