From dc454ff94310c4f8b84b4553034a96bf887ba900 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 15 Jan 2020 20:18:28 +0800 Subject: [PATCH] fix: some props error --- components/_util/proxyComponent.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/proxyComponent.jsx b/components/_util/proxyComponent.jsx index db1e8b3dc..f1e8083e7 100644 --- a/components/_util/proxyComponent.jsx +++ b/components/_util/proxyComponent.jsx @@ -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([]);