diff options
author | afc163 <afc163@gmail.com> | 2017-10-22 17:13:12 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-10-22 17:13:12 +0800 |
commit | 94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf (patch) | |
tree | 3ba0828ca64cc6acd3a64b2fd3a6b1a078b70dec /examples/open.js | |
parent | 5166b9aec0faf0451672f8ad52a8767a633e760c (diff) | |
download | time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.tar.gz time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.tar.zst time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.zip |
Updates
Diffstat (limited to 'examples/open.js')
-rw-r--r-- | examples/open.js | 56 |
1 files changed, 26 insertions, 30 deletions
diff --git a/examples/open.js b/examples/open.js index cc5d368..36f72b1 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -1,36 +1,32 @@ | |||
1 | webpackJsonp([2],{ | 1 | webpackJsonp([3],{ |
2 | 2 | ||
3 | /***/ 175: | 3 | /***/ 176: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(80); | 6 | module.exports = __webpack_require__(79); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 80: | 11 | /***/ 79: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | 17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | 19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | 21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_time_picker__ = __webpack_require__(5); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | 23 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17); | ||
25 | /* 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__); | ||
26 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0); | ||
27 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); | ||
28 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(1); | ||
29 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); | ||
30 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_time_picker__ = __webpack_require__(12); | ||
31 | 24 | ||
25 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
32 | 26 | ||
27 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
33 | 28 | ||
29 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
34 | 30 | ||
35 | /* eslint no-console:0 */ | 31 | /* eslint no-console:0 */ |
36 | 32 | ||
@@ -41,20 +37,20 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | |||
41 | 37 | ||
42 | 38 | ||
43 | var App = function (_React$Component) { | 39 | var App = function (_React$Component) { |
44 | __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component); | 40 | _inherits(App, _React$Component); |
45 | 41 | ||
46 | function App() { | 42 | function App() { |
47 | var _ref; | 43 | var _ref; |
48 | 44 | ||
49 | var _temp, _this, _ret; | 45 | var _temp, _this, _ret; |
50 | 46 | ||
51 | __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App); | 47 | _classCallCheck(this, App); |
52 | 48 | ||
53 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | 49 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { |
54 | args[_key] = arguments[_key]; | 50 | args[_key] = arguments[_key]; |
55 | } | 51 | } |
56 | 52 | ||
57 | 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 = { | 53 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { |
58 | open: false | 54 | open: false |
59 | }, _this.setOpen = function (_ref2) { | 55 | }, _this.setOpen = function (_ref2) { |
60 | var open = _ref2.open; | 56 | var open = _ref2.open; |
@@ -64,21 +60,21 @@ var App = function (_React$Component) { | |||
64 | _this.setState({ | 60 | _this.setState({ |
65 | open: !_this.state.open | 61 | open: !_this.state.open |
66 | }); | 62 | }); |
67 | }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret); | 63 | }, _temp), _possibleConstructorReturn(_this, _ret); |
68 | } | 64 | } |
69 | 65 | ||
70 | __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{ | 66 | _createClass(App, [{ |
71 | key: 'render', | 67 | key: 'render', |
72 | value: function render() { | 68 | value: function render() { |
73 | return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 69 | return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
74 | 'div', | 70 | 'div', |
75 | null, | 71 | null, |
76 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 72 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
77 | 'button', | 73 | 'button', |
78 | { onClick: this.toggleOpen }, | 74 | { onClick: this.toggleOpen }, |
79 | 'Toggle open' | 75 | 'Toggle open' |
80 | ), | 76 | ), |
81 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], { | 77 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_time_picker__["a" /* default */], { |
82 | open: this.state.open, | 78 | open: this.state.open, |
83 | onOpen: this.setOpen, | 79 | onOpen: this.setOpen, |
84 | onClose: this.setOpen, | 80 | onClose: this.setOpen, |
@@ -89,11 +85,11 @@ var App = function (_React$Component) { | |||
89 | }]); | 85 | }]); |
90 | 86 | ||
91 | return App; | 87 | return App; |
92 | }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); | 88 | }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component); |
93 | 89 | ||
94 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); | 90 | __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(App, null), document.getElementById('__react-content')); |
95 | 91 | ||
96 | /***/ }) | 92 | /***/ }) |
97 | 93 | ||
98 | },[175]); | 94 | },[176]); |
99 | //# sourceMappingURL=open.js.map \ No newline at end of file | 95 | //# sourceMappingURL=open.js.map \ No newline at end of file |