diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pick-time.js | 6 |
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 | |||
1 | import 'rc-time-picker/assets/index.less'; | 3 | import 'rc-time-picker/assets/index.less'; |
2 | 4 | ||
3 | import React from 'react'; | 5 | import React from 'react'; |
@@ -10,8 +12,8 @@ import zhCn from 'gregorian-calendar/lib/locale/zh_CN'; | |||
10 | import TimePicker from 'rc-time-picker'; | 12 | import TimePicker from 'rc-time-picker'; |
11 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; | 13 | import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN'; |
12 | 14 | ||
13 | var showSecond = true; | 15 | const showSecond = true; |
14 | var str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | 16 | const str = showSecond ? 'HH:mm:ss' : 'HH:mm'; |
15 | 17 | ||
16 | const formatter = new DateTimeFormat(str); | 18 | const formatter = new DateTimeFormat(str); |
17 | 19 | ||