aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-19 08:37:41 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-19 08:37:41 +0800
commit63541ed7b1c9ad58348ea86c97f3e8b31830535b (patch)
treebfa03255ff614ca97210a7df7e2bb8ee7f3f74d4 /examples
parent6c6cb0fbfc159cff7ebd1c7ef9d7f5a547e57e61 (diff)
downloadtime-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.tar.gz
time-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.tar.zst
time-picker-63541ed7b1c9ad58348ea86c97f3e8b31830535b.zip
clear input content and close select panel when click [x] on select panel0.5.10.5.0
Diffstat (limited to 'examples')
-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);