diff --git a/components/lib/utils/ObjectUtils.js b/components/lib/utils/ObjectUtils.js index d8cff9054..bf761b26e 100755 --- a/components/lib/utils/ObjectUtils.js +++ b/components/lib/utils/ObjectUtils.js @@ -195,7 +195,7 @@ export default { let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop; - return vnode.type.props[prop].type === Boolean && props[propName] === '' ? true : props[propName]; + return vnode.props[prop] && vnode.props[prop].type === Boolean && props[propName] === '' ? true : props[propName]; } return null;