diff options
author | yiminghe <yiminghe@gmail.com> | 2016-10-25 17:41:51 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-10-25 17:41:51 +0800 |
commit | f429b4a79df25c9eadc3901e2483716835cc7de7 (patch) | |
tree | 16424ebc8db97db1fed6d8b37d120f3dc462af31 | |
parent | 5d0443410afb55ab320db946e626f621b64f43b1 (diff) | |
download | time-picker-2.1.0.tar.gz time-picker-2.1.0.tar.zst time-picker-2.1.0.zip |
add addon prop2.1.0
-rw-r--r-- | HISTORY.md | 5 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/Header.jsx | 18 |
3 files changed, 16 insertions, 9 deletions
@@ -2,6 +2,11 @@ | |||
2 | 2 | ||
3 | --- | 3 | --- |
4 | 4 | ||
5 | 2.1.0 / 2016-10-25 | ||
6 | --------------------------- | ||
7 | |||
8 | support addon prop | ||
9 | |||
5 | 2.0.0 / 2016-08-04 | 10 | 2.0.0 / 2016-08-04 |
6 | --------------------------- | 11 | --------------------------- |
7 | 12 | ||
diff --git a/package.json b/package.json index 9d98e8a..74066e7 100644 --- a/package.json +++ b/package.json | |||
@@ -1,6 +1,6 @@ | |||
1 | { | 1 | { |
2 | "name": "rc-time-picker", | 2 | "name": "rc-time-picker", |
3 | "version": "2.0.2", | 3 | "version": "2.1.0", |
4 | "description": "React TimePicker", | 4 | "description": "React TimePicker", |
5 | "keywords": [ | 5 | "keywords": [ |
6 | "react", | 6 | "react", |
diff --git a/src/Header.jsx b/src/Header.jsx index 4196ea9..2ef9827 100644 --- a/src/Header.jsx +++ b/src/Header.jsx | |||
@@ -151,14 +151,16 @@ const Header = React.createClass({ | |||
151 | const { prefixCls, placeholder } = this.props; | 151 | const { prefixCls, placeholder } = this.props; |
152 | const { invalid, str } = this.state; | 152 | const { invalid, str } = this.state; |
153 | const invalidClass = invalid ? `${prefixCls}-input-invalid` : ''; | 153 | const invalidClass = invalid ? `${prefixCls}-input-invalid` : ''; |
154 | return (<input | 154 | return ( |
155 | className={`${prefixCls}-input ${invalidClass}`} | 155 | <input |
156 | ref="input" | 156 | className={`${prefixCls}-input ${invalidClass}`} |
157 | onKeyDown={this.onKeyDown} | 157 | ref="input" |
158 | value={str} | 158 | onKeyDown={this.onKeyDown} |
159 | placeholder={placeholder} | 159 | value={str} |
160 | onChange={this.onInputChange} | 160 | placeholder={placeholder} |
161 | />); | 161 | onChange={this.onInputChange} |
162 | /> | ||
163 | ); | ||
162 | }, | 164 | }, |
163 | 165 | ||
164 | render() { | 166 | render() { |