aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pick-time.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js
index f26952c..a8c5415 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -1,3 +1,5 @@
1/* eslint no-console:0 */
2
1import 'rc-time-picker/assets/index.less'; 3import 'rc-time-picker/assets/index.less';
2 4
3import React from 'react'; 5import React from 'react';
@@ -10,8 +12,8 @@ import zhCn from 'gregorian-calendar/lib/locale/zh_CN';
10import TimePicker from 'rc-time-picker'; 12import TimePicker from 'rc-time-picker';
11import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; 13import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';
12 14
13var showSecond = true; 15const showSecond = true;
14var str = showSecond ? 'HH:mm:ss' : 'HH:mm'; 16const str = showSecond ? 'HH:mm:ss' : 'HH:mm';
15 17
16const formatter = new DateTimeFormat(str); 18const formatter = new DateTimeFormat(str);
17 19