diff options
author | 偏右 <afc163@gmail.com> | 2016-11-11 14:02:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-11 14:02:21 +0800 |
commit | e59f4eae17cbfd7eed19cd385ec64312ffe266c4 (patch) | |
tree | 81fc9b6ec28ca54204cf6ed2ef035b5d7ee194ab /examples/format.js | |
parent | 614f6c90232d890984d0f4f2f13ff41fdb144b27 (diff) | |
parent | 37c36c09e0a4d693a2ec5623ff2ebc8d9ee16a06 (diff) | |
download | time-picker-e59f4eae17cbfd7eed19cd385ec64312ffe266c4.tar.gz time-picker-e59f4eae17cbfd7eed19cd385ec64312ffe266c4.tar.zst time-picker-e59f4eae17cbfd7eed19cd385ec64312ffe266c4.zip |
Merge pull request #25 from react-component/feat-show-minute
Feat show minute
Diffstat (limited to 'examples/format.js')
-rw-r--r-- | examples/format.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/format.js b/examples/format.js new file mode 100644 index 0000000..c9a9539 --- /dev/null +++ b/examples/format.js | |||
@@ -0,0 +1,26 @@ | |||
1 | import 'rc-time-picker/assets/index.less'; | ||
2 | import React from 'react'; | ||
3 | import ReactDom from 'react-dom'; | ||
4 | import moment from 'moment'; | ||
5 | import TimePicker from 'rc-time-picker'; | ||
6 | |||
7 | const App = React.createClass({ | ||
8 | render() { | ||
9 | return ( | ||
10 | <div> | ||
11 | <TimePicker defaultValue={moment()} showHour={false} /> | ||
12 | <TimePicker defaultValue={moment()} showMinute={false} /> | ||
13 | <TimePicker defaultValue={moment()} showSecond={false} /> | ||
14 | |||
15 | <TimePicker defaultValue={moment()} showMinute={false} showSecond={false} /> | ||
16 | <TimePicker defaultValue={moment()} showHour={false} showSecond={false}/> | ||
17 | <TimePicker defaultValue={moment()} showHour={false} showMinute={false} /> | ||
18 | </div> | ||
19 | ); | ||
20 | }, | ||
21 | }); | ||
22 | |||
23 | ReactDom.render( | ||
24 | <App />, | ||
25 | document.getElementById('__react-content') | ||
26 | ); | ||