diff options
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 | ); |