修复props简写定义
parent
f9e766ab4a
commit
aca6d75553
|
@ -136,7 +136,9 @@ export function parsePropsDeclaration(options) {
|
|||
options.default = options.hasOwnProperty('default')
|
||||
? options.default
|
||||
: getDefaultValue(options.type)
|
||||
options.attribute = true
|
||||
options.attribute = options.hasOwnProperty('attribute')
|
||||
? options.attribute
|
||||
: true
|
||||
return options
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue