Skip to content

Commit dc454ff

Browse files
committed
fix: some props error
1 parent fa19a56 commit dc454ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/_util/proxyComponent.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function wrapWithConnect(WrappedComponent) {
99
const methods = WrappedComponent.methods || {};
1010
const props = {};
1111
Object.keys(tempProps).forEach(k => {
12-
props[k] = { ...k, required: false };
12+
props[k] = { ...tempProps[k], required: false };
1313
});
1414
WrappedComponent.props.__propsSymbol__ = PropTypes.any;
1515
WrappedComponent.props.children = PropTypes.array.def([]);

0 commit comments

Comments
 (0)