aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/open.js
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-11-02 12:59:41 +0800
committerafc163 <afc163@gmail.com>2017-11-02 12:59:41 +0800
commitbacf5db378d539192f6840e50e4f46034eb3f8cb (patch)
tree7dc83518013f49147d7927fa295db0061c6c124d /examples/open.js
parent94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf (diff)
downloadtime-picker-bacf5db378d539192f6840e50e4f46034eb3f8cb.tar.gz
time-picker-bacf5db378d539192f6840e50e4f46034eb3f8cb.tar.zst
time-picker-bacf5db378d539192f6840e50e4f46034eb3f8cb.zip
Updates
Diffstat (limited to 'examples/open.js')
-rw-r--r--examples/open.js54
1 files changed, 29 insertions, 25 deletions
diff --git a/examples/open.js b/examples/open.js
index 36f72b1..1c911c7 100644
--- a/examples/open.js
+++ b/examples/open.js
@@ -1,32 +1,36 @@
1webpackJsonp([3],{ 1webpackJsonp([3],{
2 2
3/***/ 176: 3/***/ 177:
4/***/ (function(module, exports, __webpack_require__) { 4/***/ (function(module, exports, __webpack_require__) {
5 5
6module.exports = __webpack_require__(79); 6module.exports = __webpack_require__(80);
7 7
8 8
9/***/ }), 9/***/ }),
10 10
11/***/ 79: 11/***/ 80:
12/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
13 13
14"use strict"; 14"use strict";
15Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3);
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__); 17/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4);
19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); 19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); 21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_time_picker__ = __webpack_require__(5); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5);
23var _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; }; }(); 23/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(11);
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__(9);
24 31
25function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26 32
27function _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; }
28 33
29function _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; }
30 34
31/* eslint no-console:0 */ 35/* eslint no-console:0 */
32 36
@@ -37,20 +41,20 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
37 41
38 42
39var App = function (_React$Component) { 43var App = function (_React$Component) {
40 _inherits(App, _React$Component); 44 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component);
41 45
42 function App() { 46 function App() {
43 var _ref; 47 var _ref;
44 48
45 var _temp, _this, _ret; 49 var _temp, _this, _ret;
46 50
47 _classCallCheck(this, App); 51 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App);
48 52
49 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 53 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
50 args[_key] = arguments[_key]; 54 args[_key] = arguments[_key];
51 } 55 }
52 56
53 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { 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 = {
54 open: false 58 open: false
55 }, _this.setOpen = function (_ref2) { 59 }, _this.setOpen = function (_ref2) {
56 var open = _ref2.open; 60 var open = _ref2.open;
@@ -60,21 +64,21 @@ var App = function (_React$Component) {
60 _this.setState({ 64 _this.setState({
61 open: !_this.state.open 65 open: !_this.state.open
62 }); 66 });
63 }, _temp), _possibleConstructorReturn(_this, _ret); 67 }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret);
64 } 68 }
65 69
66 _createClass(App, [{ 70 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{
67 key: 'render', 71 key: 'render',
68 value: function render() { 72 value: function render() {
69 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( 73 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
70 'div', 74 'div',
71 null, 75 null,
72 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( 76 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(
73 'button', 77 'button',
74 { onClick: this.toggleOpen }, 78 { onClick: this.toggleOpen },
75 'Toggle open' 79 'Toggle open'
76 ), 80 ),
77 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_time_picker__["a" /* default */], { 81 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], {
78 open: this.state.open, 82 open: this.state.open,
79 onOpen: this.setOpen, 83 onOpen: this.setOpen,
80 onClose: this.setOpen, 84 onClose: this.setOpen,
@@ -85,11 +89,11 @@ var App = function (_React$Component) {
85 }]); 89 }]);
86 90
87 return App; 91 return App;
88}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component); 92}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
89 93
90__WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(App, null), document.getElementById('__react-content')); 94__WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content'));
91 95
92/***/ }) 96/***/ })
93 97
94},[176]); 98},[177]);
95//# sourceMappingURL=open.js.map \ No newline at end of file 99//# sourceMappingURL=open.js.map \ No newline at end of file