fix: fix props option merging

This commit is contained in:
Evan You 2018-10-16 19:16:34 -04:00
parent b83cf4ea38
commit 456ee13ec9

View File

@ -137,7 +137,9 @@ export function resolveComponentOptionsFromClass(
} }
} }
options.props = normalizePropsOptions(options.props) if (options.props) {
options.props = normalizePropsOptions(options.props)
}
const ParentClass = Object.getPrototypeOf(Class) const ParentClass = Object.getPrototypeOf(Class)
if (ParentClass !== Component) { if (ParentClass !== Component) {