Closed
Description
Wouldn't this ...
props: {
'prop-a': String, // type check constructor
'prop-b': null, // accept any type
'prop-c': { // object descriptor
type: Number,
required: true,
default: 100 // new: default value
}
}
Match the other options more if it was ...
props: {
propA: String, // type check constructor
propB: null, // accept any type
propC: { // object descriptor
type: Number,
required: true,
default: 100 // new: default value
}
}
The camel case would appear in the html as prop-a
of course.