aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pick-time.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r--examples/pick-time.js4
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';
7import DateTimeFormat from 'gregorian-calendar-format'; 7import DateTimeFormat from 'gregorian-calendar-format';
8import zhCn from 'gregorian-calendar/lib/locale/zh_CN'; 8import zhCn from 'gregorian-calendar/lib/locale/zh_CN';
9 9
10import TimePicker from 'rc-time-picker/src/TimePicker'; 10import TimePicker from 'rc-time-picker';
11import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; 11import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';
12 12
13const formatter = new DateTimeFormat('HH:mm:ss'); 13const formatter = new DateTimeFormat('HH:mm:ss');
@@ -16,6 +16,6 @@ const now = new GregorianCalendar(zhCn);
16now.setTime(Date.now()); 16now.setTime(Date.now());
17 17
18ReactDom.render( 18ReactDom.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);