diff options
author | afc163 <afc163@gmail.com> | 2015-12-12 00:55:14 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-12-12 00:55:14 +0800 |
commit | 182e9fccc90ae709322b7cc314c8775a9d8d46b8 (patch) | |
tree | 8abc77d6d96667ad26614e47dae3305b3f461f5c /src/module/Select.jsx | |
parent | 85a5d3e6e9f0907780b2ed512faaf1c65d246f0d (diff) | |
download | time-picker-182e9fccc90ae709322b7cc314c8775a9d8d46b8.tar.gz time-picker-182e9fccc90ae709322b7cc314c8775a9d8d46b8.tar.zst time-picker-182e9fccc90ae709322b7cc314c8775a9d8d46b8.zip |
select input value range when enter different select panel
Diffstat (limited to 'src/module/Select.jsx')
-rw-r--r-- | src/module/Select.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module/Select.jsx b/src/module/Select.jsx index b24f20c..3659692 100644 --- a/src/module/Select.jsx +++ b/src/module/Select.jsx | |||
@@ -30,6 +30,7 @@ const Select = React.createClass({ | |||
30 | selectedIndex: PropTypes.number, | 30 | selectedIndex: PropTypes.number, |
31 | type: PropTypes.string, | 31 | type: PropTypes.string, |
32 | onSelect: PropTypes.func, | 32 | onSelect: PropTypes.func, |
33 | onMouseEnter: PropTypes.func, | ||
33 | }, | 34 | }, |
34 | 35 | ||
35 | componentDidMount() { | 36 | componentDidMount() { |
@@ -79,7 +80,8 @@ const Select = React.createClass({ | |||
79 | const { prefixCls } = this.props; | 80 | const { prefixCls } = this.props; |
80 | 81 | ||
81 | return ( | 82 | return ( |
82 | <div className={`${prefixCls}-select`}> | 83 | <div className={`${prefixCls}-select`} |
84 | onMouseEnter={this.props.onMouseEnter}> | ||
83 | <ul ref="list">{this.getOptions()}</ul> | 85 | <ul ref="list">{this.getOptions()}</ul> |
84 | </div> | 86 | </div> |
85 | ); | 87 | ); |