From fa19a565c254e6e976239322e3f624a5227c4c9a Mon Sep 17 00:00:00 2001 From: edifierx666 <39356752+edifierx666@users.noreply.github.com> Date: Wed, 15 Jan 2020 20:13:03 +0800 Subject: [PATCH] fix: subMenu some props not work (#1668) * fix: [subMenu]props * fix: [subMenu]props * fix: [subMenu]props --- components/_util/store/connect.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/store/connect.jsx b/components/_util/store/connect.jsx index bea6b1e64..fcc642ddb 100644 --- a/components/_util/store/connect.jsx +++ b/components/_util/store/connect.jsx @@ -18,7 +18,7 @@ export default function connect(mapStateToProps) { __propsSymbol__: PropTypes.any, }; Object.keys(tempProps).forEach(k => { - props[k] = { ...k, required: false }; + props[k] = { ...tempProps[k], required: false }; }); const Connect = { name: `Connect_${getDisplayName(WrappedComponent)}`,