diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-11-19 08:37:41 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-11-19 08:37:41 +0800 |
commit | 63541ed7b1c9ad58348ea86c97f3e8b31830535b (patch) | |
tree | bfa03255ff614ca97210a7df7e2bb8ee7f3f74d4 /examples | |
parent | 6c6cb0fbfc159cff7ebd1c7ef9d7f5a547e57e61 (diff) | |
download | time-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.tar.gz time-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.tar.zst time-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.zip |
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pick-time.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js index 54548c7..0a54279 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -7,7 +7,7 @@ import GregorianCalendar from 'gregorian-calendar'; | |||
7 | import DateTimeFormat from 'gregorian-calendar-format'; | 7 | import DateTimeFormat from 'gregorian-calendar-format'; |
8 | import zhCn from 'gregorian-calendar/lib/locale/zh_CN'; | 8 | import zhCn from 'gregorian-calendar/lib/locale/zh_CN'; |
9 | 9 | ||
10 | import TimePicker from 'rc-time-picker/src/TimePicker'; | 10 | import TimePicker from 'rc-time-picker'; |
11 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; | 11 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; |
12 | 12 | ||
13 | const formatter = new DateTimeFormat('HH:mm:ss'); | 13 | const formatter = new DateTimeFormat('HH:mm:ss'); |
@@ -16,6 +16,6 @@ const now = new GregorianCalendar(zhCn); | |||
16 | now.setTime(Date.now()); | 16 | now.setTime(Date.now()); |
17 | 17 | ||
18 | ReactDom.render( | 18 | ReactDom.render( |
19 | <TimePicker formatter={formatter} locale={TimePickerLocale} value={now} />, | 19 | <TimePicker formatter={formatter} locale={TimePickerLocale} defaultValue={now} />, |
20 | document.getElementById('__react-content') | 20 | document.getElementById('__react-content') |
21 | ); | 21 | ); |