diff options
author | paranoidjk <hust2012jiangkai@gmail.com> | 2017-05-27 16:23:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-27 16:23:05 +0800 |
commit | 227e6ec28c733bba0a4b56e0583058489c0684a6 (patch) | |
tree | 8442e972d10b7f284dae776e4ece398d4964e77f | |
parent | 21e15e5a4d1cbc1ab211a7755d38a33c6501e878 (diff) | |
parent | cfe8e36ccf139a8e89ab4712d91f1d3c3163407e (diff) | |
download | time-picker-227e6ec28c733bba0a4b56e0583058489c0684a6.tar.gz time-picker-227e6ec28c733bba0a4b56e0583058489c0684a6.tar.zst time-picker-227e6ec28c733bba0a4b56e0583058489c0684a6.zip |
Merge pull request #48 from react-component/export2.4.1
refactor: simplify export
-rw-r--r-- | index.js | 3 | ||||
-rw-r--r-- | npm-debug.log.1427937311 | 0 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/TimePicker.jsx | 4 | ||||
-rw-r--r-- | src/index.js | 3 |
5 files changed, 4 insertions, 8 deletions
@@ -1,2 +1 @@ | |||
1 | import TimePanel from './src/'; | export { default } from './src/'; | |
2 | export default TimePanel; | ||
diff --git a/npm-debug.log.1427937311 b/npm-debug.log.1427937311 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/npm-debug.log.1427937311 | |||
diff --git a/package.json b/package.json index 3e9f944..4bc9456 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.4.0", | 3 | "version": "2.4.1", |
4 | "description": "React TimePicker", | 4 | "description": "React TimePicker", |
5 | "keywords": [ | 5 | "keywords": [ |
6 | "react", | 6 | "react", |
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 91745c6..2c6a1f1 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -12,7 +12,7 @@ function refFn(field, component) { | |||
12 | this[field] = component; | 12 | this[field] = component; |
13 | } | 13 | } |
14 | 14 | ||
15 | class Picker extends Component { | 15 | export default class Picker extends Component { |
16 | static propTypes = { | 16 | static propTypes = { |
17 | prefixCls: PropTypes.string, | 17 | prefixCls: PropTypes.string, |
18 | clearText: PropTypes.string, | 18 | clearText: PropTypes.string, |
@@ -267,5 +267,3 @@ class Picker extends Component { | |||
267 | ); | 267 | ); |
268 | } | 268 | } |
269 | } | 269 | } |
270 | |||
271 | export default Picker; | ||
diff --git a/src/index.js b/src/index.js index f72be4f..02f4176 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -1,2 +1 @@ | |||
1 | import TimePicker from './TimePicker'; | export { default } from './TimePicker'; | |
2 | export default TimePicker; | ||