修复props简写定义

pull/1/head
yutent 2023-08-10 15:05:52 +08:00
parent f9e766ab4a
commit aca6d75553
1 changed files with 3 additions and 1 deletions

View File

@ -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
}