fix: some props error

pull/1731/head
tangjinzhou 5 years ago
parent fa19a565c2
commit dc454ff943

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

Loading…
Cancel
Save