From ed66395a12de12d193581c5eab85be3ddcb79dce Mon Sep 17 00:00:00 2001 From: Eden Wang Date: Thu, 2 Aug 2018 10:59:23 +0800 Subject: [PATCH] export event for input.group --- components/input/Group.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/components/input/Group.tsx b/components/input/Group.tsx index e1346ffe23..1ab9ede8b6 100644 --- a/components/input/Group.tsx +++ b/components/input/Group.tsx @@ -6,6 +6,10 @@ export interface GroupProps { size?: 'large' | 'small' | 'default'; children?: any; style?: React.CSSProperties; + onMouseEnter?: React.MouseEventHandler; + onMouseLeave?: React.MouseEventHandler; + onFocus?: React.FocusEventHandler; + onBlur?: React.FocusEventHandler; prefixCls?: string; compact?: boolean; } @@ -18,7 +22,14 @@ const Group: React.StatelessComponent = (props) => { [`${prefixCls}-compact`]: props.compact, }, className); return ( - + {props.children} );