fix: some props error

pull/1731/head
tangjinzhou 2020-01-15 20:18:28 +08:00
parent fa19a565c2
commit dc454ff943
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ export default function wrapWithConnect(WrappedComponent) {
const methods = WrappedComponent.methods || {}; const methods = WrappedComponent.methods || {};
const props = {}; const props = {};
Object.keys(tempProps).forEach(k => { Object.keys(tempProps).forEach(k => {
props[k] = { ...k, required: false }; props[k] = { ...tempProps[k], required: false };
}); });
WrappedComponent.props.__propsSymbol__ = PropTypes.any; WrappedComponent.props.__propsSymbol__ = PropTypes.any;
WrappedComponent.props.children = PropTypes.array.def([]); WrappedComponent.props.children = PropTypes.array.def([]);