aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2015-12-05 03:26:32 +0800
committeryiminghe <yiminghe@gmail.com>2015-12-05 03:26:32 +0800
commite9060dda0dd04e99666ff29efe459ebc7d7c65a7 (patch)
tree8647b5d9de89cf153aca06d3a6269e87e6813e70 /examples
parent38ecfddfa7719dfa88b11a2113b53b6ffc8842d5 (diff)
downloadtime-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.tar.gz
time-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.tar.zst
time-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.zip
lint
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