diff options
author | yiminghe <yiminghe@gmail.com> | 2016-10-25 18:00:56 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-10-25 18:00:56 +0800 |
commit | 1d7c6e0121104e3bdb9a57a805e783a48e7ad1e3 (patch) | |
tree | fe6fcc4e27df116f14187b9cd00f4e170668a32b /examples/common.js | |
parent | 587700272addc087eeede30d490462053180718b (diff) | |
download | time-picker-1d7c6e0121104e3bdb9a57a805e783a48e7ad1e3.tar.gz time-picker-1d7c6e0121104e3bdb9a57a805e783a48e7ad1e3.tar.zst time-picker-1d7c6e0121104e3bdb9a57a805e783a48e7ad1e3.zip |
Updates
Diffstat (limited to 'examples/common.js')
-rw-r--r-- | examples/common.js | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/examples/common.js b/examples/common.js index 95243ac..20a0b7d 100644 --- a/examples/common.js +++ b/examples/common.js | |||
@@ -25782,7 +25782,8 @@ | |||
25782 | hideDisabledOptions: _react.PropTypes.bool, | 25782 | hideDisabledOptions: _react.PropTypes.bool, |
25783 | onChange: _react.PropTypes.func, | 25783 | onChange: _react.PropTypes.func, |
25784 | onOpen: _react.PropTypes.func, | 25784 | onOpen: _react.PropTypes.func, |
25785 | onClose: _react.PropTypes.func | 25785 | onClose: _react.PropTypes.func, |
25786 | addon: _react.PropTypes.func | ||
25786 | }, | 25787 | }, |
25787 | 25788 | ||
25788 | getDefaultProps: function getDefaultProps() { | 25789 | getDefaultProps: function getDefaultProps() { |
@@ -25804,7 +25805,8 @@ | |||
25804 | placement: 'bottomLeft', | 25805 | placement: 'bottomLeft', |
25805 | onChange: noop, | 25806 | onChange: noop, |
25806 | onOpen: noop, | 25807 | onOpen: noop, |
25807 | onClose: noop | 25808 | onClose: noop, |
25809 | addon: noop | ||
25808 | }; | 25810 | }; |
25809 | }, | 25811 | }, |
25810 | getInitialState: function getInitialState() { | 25812 | getInitialState: function getInitialState() { |
@@ -25888,6 +25890,7 @@ | |||
25888 | var showSecond = _props2.showSecond; | 25890 | var showSecond = _props2.showSecond; |
25889 | var defaultOpenValue = _props2.defaultOpenValue; | 25891 | var defaultOpenValue = _props2.defaultOpenValue; |
25890 | var clearText = _props2.clearText; | 25892 | var clearText = _props2.clearText; |
25893 | var addon = _props2.addon; | ||
25891 | 25894 | ||
25892 | return _react2.default.createElement(_Panel2.default, { | 25895 | return _react2.default.createElement(_Panel2.default, { |
25893 | clearText: clearText, | 25896 | clearText: clearText, |
@@ -25906,7 +25909,8 @@ | |||
25906 | disabledHours: disabledHours, | 25909 | disabledHours: disabledHours, |
25907 | disabledMinutes: disabledMinutes, | 25910 | disabledMinutes: disabledMinutes, |
25908 | disabledSeconds: disabledSeconds, | 25911 | disabledSeconds: disabledSeconds, |
25909 | hideDisabledOptions: hideDisabledOptions | 25912 | hideDisabledOptions: hideDisabledOptions, |
25913 | addon: addon | ||
25910 | }); | 25914 | }); |
25911 | }, | 25915 | }, |
25912 | setOpen: function setOpen(open, callback) { | 25916 | setOpen: function setOpen(open, callback) { |
@@ -29787,7 +29791,8 @@ | |||
29787 | allowEmpty: _react.PropTypes.bool, | 29791 | allowEmpty: _react.PropTypes.bool, |
29788 | showHour: _react.PropTypes.bool, | 29792 | showHour: _react.PropTypes.bool, |
29789 | showSecond: _react.PropTypes.bool, | 29793 | showSecond: _react.PropTypes.bool, |
29790 | onClear: _react.PropTypes.func | 29794 | onClear: _react.PropTypes.func, |
29795 | addon: _react.PropTypes.func | ||
29791 | }, | 29796 | }, |
29792 | 29797 | ||
29793 | getDefaultProps: function getDefaultProps() { | 29798 | getDefaultProps: function getDefaultProps() { |
@@ -29798,7 +29803,8 @@ | |||
29798 | disabledHours: noop, | 29803 | disabledHours: noop, |
29799 | disabledMinutes: noop, | 29804 | disabledMinutes: noop, |
29800 | disabledSeconds: noop, | 29805 | disabledSeconds: noop, |
29801 | defaultOpenValue: (0, _moment2.default)() | 29806 | defaultOpenValue: (0, _moment2.default)(), |
29807 | addon: noop | ||
29802 | }; | 29808 | }; |
29803 | }, | 29809 | }, |
29804 | getInitialState: function getInitialState() { | 29810 | getInitialState: function getInitialState() { |
@@ -29825,6 +29831,9 @@ | |||
29825 | onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) { | 29831 | onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) { |
29826 | this.setState({ currentSelectPanel: currentSelectPanel }); | 29832 | this.setState({ currentSelectPanel: currentSelectPanel }); |
29827 | }, | 29833 | }, |
29834 | close: function close() { | ||
29835 | this.props.onEsc(); | ||
29836 | }, | ||
29828 | render: function render() { | 29837 | render: function render() { |
29829 | var _classNames; | 29838 | var _classNames; |
29830 | 29839 | ||
@@ -29843,6 +29852,7 @@ | |||
29843 | var defaultOpenValue = _props.defaultOpenValue; | 29852 | var defaultOpenValue = _props.defaultOpenValue; |
29844 | var clearText = _props.clearText; | 29853 | var clearText = _props.clearText; |
29845 | var onEsc = _props.onEsc; | 29854 | var onEsc = _props.onEsc; |
29855 | var addon = _props.addon; | ||
29846 | var _state = this.state; | 29856 | var _state = this.state; |
29847 | var value = _state.value; | 29857 | var value = _state.value; |
29848 | var currentSelectPanel = _state.currentSelectPanel; | 29858 | var currentSelectPanel = _state.currentSelectPanel; |
@@ -29891,7 +29901,8 @@ | |||
29891 | disabledMinutes: disabledMinutes, | 29901 | disabledMinutes: disabledMinutes, |
29892 | disabledSeconds: disabledSeconds, | 29902 | disabledSeconds: disabledSeconds, |
29893 | onCurrentSelectPanelChange: this.onCurrentSelectPanelChange | 29903 | onCurrentSelectPanelChange: this.onCurrentSelectPanelChange |
29894 | }) | 29904 | }), |
29905 | addon(this) | ||
29895 | ); | 29906 | ); |
29896 | } | 29907 | } |
29897 | }); | 29908 | }); |