diff options
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r-- | examples/pick-time.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js index f1226fb..c96690f 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -48,8 +48,8 @@ webpackJsonp([0,1],[ | |||
48 | var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); | 48 | var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']); |
49 | now.setTime(Date.now()); | 49 | now.setTime(Date.now()); |
50 | 50 | ||
51 | function onChange(v) { | 51 | function onChange(value) { |
52 | console.log(v && formatter.format(v)); | 52 | console.log(value && formatter.format(value)); |
53 | } | 53 | } |
54 | 54 | ||
55 | _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now, onChange: onChange }), document.getElementById('__react-content')); | 55 | _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'], defaultValue: now, onChange: onChange }), document.getElementById('__react-content')); |
@@ -22345,7 +22345,7 @@ webpackJsonp([0,1],[ | |||
22345 | }, | 22345 | }, |
22346 | 22346 | ||
22347 | onPanelClear: function onPanelClear() { | 22347 | onPanelClear: function onPanelClear() { |
22348 | this.setValue(''); | 22348 | this.setValue(null); |
22349 | this.setOpen(false); | 22349 | this.setOpen(false); |
22350 | }, | 22350 | }, |
22351 | 22351 | ||