We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5dda7 commit 929f0d5Copy full SHA for 929f0d5
src/guide/components/props.md
@@ -398,8 +398,9 @@ defineProps({
398
propE: {
399
type: Object,
400
// Object or array defaults must be returned from
401
- // a factory function
402
- default() {
+ // a factory function. The function receives the raw
+ // props received by the component as the argument.
403
+ default(rawProps) {
404
return { message: 'hello' }
405
}
406
},
@@ -453,7 +454,6 @@ export default {
453
454
// a factory function. The function receives the raw
455
// props received by the component as the argument.
456
default(rawProps) {
- // default function receives the raw props object as argument
457
458
459
0 commit comments