diff options
Diffstat (limited to 'examples/open.js')
-rw-r--r-- | examples/open.js | 76 |
1 files changed, 49 insertions, 27 deletions
diff --git a/examples/open.js b/examples/open.js index 8a4bd33..479e190 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -1,29 +1,41 @@ | |||
1 | webpackJsonp([4],{ | 1 | webpackJsonp([4],{ |
2 | 2 | ||
3 | /***/ 0: | 3 | /***/ 0: |
4 | /***/ function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(269); | 6 | module.exports = __webpack_require__(320); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }, | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 269: | 11 | /***/ 320: |
12 | /***/ function(module, exports, __webpack_require__) { | 12 | /***/ (function(module, exports, __webpack_require__) { |
13 | 13 | ||
14 | 'use strict'; | 14 | 'use strict'; |
15 | 15 | ||
16 | var _classCallCheck2 = __webpack_require__(188); | ||
17 | |||
18 | var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
19 | |||
20 | var _possibleConstructorReturn2 = __webpack_require__(189); | ||
21 | |||
22 | var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
23 | |||
24 | var _inherits2 = __webpack_require__(258); | ||
25 | |||
26 | var _inherits3 = _interopRequireDefault(_inherits2); | ||
27 | |||
16 | __webpack_require__(2); | 28 | __webpack_require__(2); |
17 | 29 | ||
18 | var _react = __webpack_require__(3); | 30 | var _react = __webpack_require__(3); |
19 | 31 | ||
20 | var _react2 = _interopRequireDefault(_react); | 32 | var _react2 = _interopRequireDefault(_react); |
21 | 33 | ||
22 | var _reactDom = __webpack_require__(34); | 34 | var _reactDom = __webpack_require__(38); |
23 | 35 | ||
24 | var _reactDom2 = _interopRequireDefault(_reactDom); | 36 | var _reactDom2 = _interopRequireDefault(_reactDom); |
25 | 37 | ||
26 | var _rcTimePicker = __webpack_require__(181); | 38 | var _rcTimePicker = __webpack_require__(185); |
27 | 39 | ||
28 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); | 40 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); |
29 | 41 | ||
@@ -31,24 +43,32 @@ webpackJsonp([4],{ | |||
31 | 43 | ||
32 | /* eslint no-console:0 */ | 44 | /* eslint no-console:0 */ |
33 | 45 | ||
34 | var App = _react2.default.createClass({ | 46 | var App = function (_React$Component) { |
35 | displayName: 'App', | 47 | (0, _inherits3.default)(App, _React$Component); |
36 | getInitialState: function getInitialState() { | 48 | |
37 | return { | 49 | function App() { |
50 | var _temp, _this, _ret; | ||
51 | |||
52 | (0, _classCallCheck3.default)(this, App); | ||
53 | |||
54 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
55 | args[_key] = arguments[_key]; | ||
56 | } | ||
57 | |||
58 | return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { | ||
38 | open: false | 59 | open: false |
39 | }; | 60 | }, _this.setOpen = function (_ref) { |
40 | }, | 61 | var open = _ref.open; |
41 | setOpen: function setOpen(_ref) { | 62 | |
42 | var open = _ref.open; | 63 | _this.setState({ open: open }); |
43 | 64 | }, _this.toggleOpen = function () { | |
44 | this.setState({ open: open }); | 65 | _this.setState({ |
45 | }, | 66 | open: !_this.state.open |
46 | toggleOpen: function toggleOpen() { | 67 | }); |
47 | this.setState({ | 68 | }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret); |
48 | open: !this.state.open | 69 | } |
49 | }); | 70 | |
50 | }, | 71 | App.prototype.render = function render() { |
51 | render: function render() { | ||
52 | return _react2.default.createElement( | 72 | return _react2.default.createElement( |
53 | 'div', | 73 | 'div', |
54 | null, | 74 | null, |
@@ -59,12 +79,14 @@ webpackJsonp([4],{ | |||
59 | ), | 79 | ), |
60 | _react2.default.createElement(_rcTimePicker2.default, { open: this.state.open, onOpen: this.setOpen, onClose: this.setOpen }) | 80 | _react2.default.createElement(_rcTimePicker2.default, { open: this.state.open, onOpen: this.setOpen, onClose: this.setOpen }) |
61 | ); | 81 | ); |
62 | } | 82 | }; |
63 | }); | 83 | |
84 | return App; | ||
85 | }(_react2.default.Component); | ||
64 | 86 | ||
65 | _reactDom2.default.render(_react2.default.createElement(App, null), document.getElementById('__react-content')); | 87 | _reactDom2.default.render(_react2.default.createElement(App, null), document.getElementById('__react-content')); |
66 | 88 | ||
67 | /***/ } | 89 | /***/ }) |
68 | 90 | ||
69 | }); | 91 | }); |
70 | //# sourceMappingURL=open.js.map \ No newline at end of file | 92 | //# sourceMappingURL=open.js.map \ No newline at end of file |