Skip to content

Commit 4a175e3

Browse files
committed
fix missing addition about rawProps
1 parent 0e5dda7 commit 4a175e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/guide/components/props.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@ defineProps({
398398
propE: {
399399
type: Object,
400400
// Object or array defaults must be returned from
401-
// a factory function
402-
default() {
401+
// a factory function. The function receives the raw
402+
// props received by the component as the argument.
403+
default(rawProps) {
404+
// default function receives the raw props object as argument
403405
return { message: 'hello' }
404406
}
405407
},

0 commit comments

Comments
 (0)