diff options
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r-- | examples/pick-time.js | 85 |
1 files changed, 42 insertions, 43 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js index d5d7aad..c3a2541 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -1,55 +1,54 @@ | |||
1 | webpackJsonp([5],{ | 1 | webpackJsonp([1],{ |
2 | |||
3 | /***/ 148: | ||
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_rc_time_picker_assets_index_less__ = __webpack_require__(29); | ||
9 | /* 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__); | ||
10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); | ||
11 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | ||
12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); | ||
13 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | ||
14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); | ||
15 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | ||
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); | ||
17 | /* eslint no-console:0 */ | ||
18 | |||
19 | |||
20 | |||
21 | |||
2 | 22 | ||
3 | /***/ 0: | ||
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | 23 | ||
6 | module.exports = __webpack_require__(321); | ||
7 | 24 | ||
8 | 25 | ||
26 | |||
27 | |||
28 | var showSecond = true; | ||
29 | var str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | ||
30 | |||
31 | function onChange(value) { | ||
32 | console.log(value && value.format(str)); | ||
33 | } | ||
34 | |||
35 | __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], { | ||
36 | style: { width: 100 }, | ||
37 | showSecond: showSecond, | ||
38 | defaultValue: __WEBPACK_IMPORTED_MODULE_3_moment___default()(), | ||
39 | className: 'xxx', | ||
40 | onChange: onChange | ||
41 | }), document.getElementById('__react-content')); | ||
42 | |||
9 | /***/ }), | 43 | /***/ }), |
10 | 44 | ||
11 | /***/ 321: | 45 | /***/ 330: |
12 | /***/ (function(module, exports, __webpack_require__) { | 46 | /***/ (function(module, exports, __webpack_require__) { |
13 | 47 | ||
14 | 'use strict'; | 48 | module.exports = __webpack_require__(148); |
15 | 49 | ||
16 | __webpack_require__(2); | ||
17 | |||
18 | var _react = __webpack_require__(3); | ||
19 | |||
20 | var _react2 = _interopRequireDefault(_react); | ||
21 | |||
22 | var _reactDom = __webpack_require__(38); | ||
23 | |||
24 | var _reactDom2 = _interopRequireDefault(_reactDom); | ||
25 | |||
26 | var _moment = __webpack_require__(184); | ||
27 | |||
28 | var _moment2 = _interopRequireDefault(_moment); | ||
29 | |||
30 | var _rcTimePicker = __webpack_require__(185); | ||
31 | |||
32 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); | ||
33 | |||
34 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
35 | |||
36 | var showSecond = true; /* eslint no-console:0 */ | ||
37 | |||
38 | var str = showSecond ? 'HH:mm:ss' : 'HH:mm'; | ||
39 | |||
40 | function onChange(value) { | ||
41 | console.log(value && value.format(str)); | ||
42 | } | ||
43 | |||
44 | _reactDom2.default.render(_react2.default.createElement(_rcTimePicker2.default, { | ||
45 | style: { width: 100 }, | ||
46 | showSecond: showSecond, | ||
47 | defaultValue: (0, _moment2.default)(), | ||
48 | className: 'xxx', | ||
49 | onChange: onChange | ||
50 | }), document.getElementById('__react-content')); | ||
51 | 50 | ||
52 | /***/ }) | 51 | /***/ }) |
53 | 52 | ||
54 | }); | 53 | },[330]); |
55 | //# sourceMappingURL=pick-time.js.map \ No newline at end of file | 54 | //# sourceMappingURL=pick-time.js.map \ No newline at end of file |