diff options
author | yiminghe <yiminghe@gmail.com> | 2015-12-05 03:26:32 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2015-12-05 03:26:32 +0800 |
commit | e9060dda0dd04e99666ff29efe459ebc7d7c65a7 (patch) | |
tree | 8647b5d9de89cf153aca06d3a6269e87e6813e70 /examples | |
parent | 38ecfddfa7719dfa88b11a2113b53b6ffc8842d5 (diff) | |
download | time-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.tar.gz time-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.tar.zst time-picker-e9060dda0dd04e99666ff29efe459ebc7d7c65a7.zip |
lint
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 | ||