diff options
Diffstat (limited to 'examples/open.js')
-rw-r--r-- | examples/open.js | 162 |
1 files changed, 82 insertions, 80 deletions
diff --git a/examples/open.js b/examples/open.js index 479e190..e991685 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -1,92 +1,94 @@ | |||
1 | webpackJsonp([4],{ | 1 | webpackJsonp([2],{ |
2 | |||
3 | /***/ 147: | ||
4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
5 | |||
6 | "use strict"; | ||
7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(13); | ||
9 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | ||
10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(23); | ||
11 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | ||
12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(15); | ||
13 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | ||
14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(14); | ||
15 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | ||
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(29); | ||
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__); | ||
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(5); | ||
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); | ||
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(8); | ||
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); | ||
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_time_picker__ = __webpack_require__(22); | ||
23 | |||
24 | |||
25 | |||
26 | |||
27 | /* eslint no-console:0 */ | ||
28 | |||
29 | |||
30 | |||
31 | |||
2 | 32 | ||
3 | /***/ 0: | ||
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | 33 | ||
6 | module.exports = __webpack_require__(320); | ||
7 | 34 | ||
35 | var App = function (_React$Component) { | ||
36 | __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component); | ||
37 | |||
38 | function App() { | ||
39 | var _ref; | ||
40 | |||
41 | var _temp, _this, _ret; | ||
42 | |||
43 | __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App); | ||
44 | |||
45 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | ||
46 | args[_key] = arguments[_key]; | ||
47 | } | ||
48 | |||
49 | return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { | ||
50 | open: false | ||
51 | }, _this.setOpen = function (_ref2) { | ||
52 | var open = _ref2.open; | ||
53 | |||
54 | _this.setState({ open: open }); | ||
55 | }, _this.toggleOpen = function () { | ||
56 | _this.setState({ | ||
57 | open: !_this.state.open | ||
58 | }); | ||
59 | }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret); | ||
60 | } | ||
61 | |||
62 | __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{ | ||
63 | key: 'render', | ||
64 | value: function render() { | ||
65 | return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | ||
66 | 'div', | ||
67 | null, | ||
68 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | ||
69 | 'button', | ||
70 | { onClick: this.toggleOpen }, | ||
71 | 'Toggle open' | ||
72 | ), | ||
73 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], { open: this.state.open, onOpen: this.setOpen, onClose: this.setOpen }) | ||
74 | ); | ||
75 | } | ||
76 | }]); | ||
77 | |||
78 | return App; | ||
79 | }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); | ||
80 | |||
81 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); | ||
8 | 82 | ||
9 | /***/ }), | 83 | /***/ }), |
10 | 84 | ||
11 | /***/ 320: | 85 | /***/ 329: |
12 | /***/ (function(module, exports, __webpack_require__) { | 86 | /***/ (function(module, exports, __webpack_require__) { |
13 | 87 | ||
14 | 'use strict'; | 88 | module.exports = __webpack_require__(147); |
15 | 89 | ||
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 | |||
28 | __webpack_require__(2); | ||
29 | |||
30 | var _react = __webpack_require__(3); | ||
31 | |||
32 | var _react2 = _interopRequireDefault(_react); | ||
33 | |||
34 | var _reactDom = __webpack_require__(38); | ||
35 | |||
36 | var _reactDom2 = _interopRequireDefault(_reactDom); | ||
37 | |||
38 | var _rcTimePicker = __webpack_require__(185); | ||
39 | |||
40 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); | ||
41 | |||
42 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
43 | |||
44 | /* eslint no-console:0 */ | ||
45 | |||
46 | var App = function (_React$Component) { | ||
47 | (0, _inherits3.default)(App, _React$Component); | ||
48 | |||
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 = { | ||
59 | open: false | ||
60 | }, _this.setOpen = function (_ref) { | ||
61 | var open = _ref.open; | ||
62 | |||
63 | _this.setState({ open: open }); | ||
64 | }, _this.toggleOpen = function () { | ||
65 | _this.setState({ | ||
66 | open: !_this.state.open | ||
67 | }); | ||
68 | }, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret); | ||
69 | } | ||
70 | |||
71 | App.prototype.render = function render() { | ||
72 | return _react2.default.createElement( | ||
73 | 'div', | ||
74 | null, | ||
75 | _react2.default.createElement( | ||
76 | 'button', | ||
77 | { onClick: this.toggleOpen }, | ||
78 | 'Toggle open' | ||
79 | ), | ||
80 | _react2.default.createElement(_rcTimePicker2.default, { open: this.state.open, onOpen: this.setOpen, onClose: this.setOpen }) | ||
81 | ); | ||
82 | }; | ||
83 | |||
84 | return App; | ||
85 | }(_react2.default.Component); | ||
86 | |||
87 | _reactDom2.default.render(_react2.default.createElement(App, null), document.getElementById('__react-content')); | ||
88 | 90 | ||
89 | /***/ }) | 91 | /***/ }) |
90 | 92 | ||
91 | }); | 93 | },[329]); |
92 | //# sourceMappingURL=open.js.map \ No newline at end of file | 94 | //# sourceMappingURL=open.js.map \ No newline at end of file |