diff options
author | paranoidjk <hust2012jiangkai@gmail.com> | 2017-05-27 16:25:03 +0800 |
---|---|---|
committer | paranoidjk <hust2012jiangkai@gmail.com> | 2017-05-27 16:25:03 +0800 |
commit | d156d507717331bdcf86d6c367bfeb3c880ce96e (patch) | |
tree | 730fbe34e17f7300a1ab51f87121278be2140972 /examples/12hours.js | |
parent | b879cfead429b717b7d89f4ceaf55973e2d96b4f (diff) | |
download | time-picker-d156d507717331bdcf86d6c367bfeb3c880ce96e.tar.gz time-picker-d156d507717331bdcf86d6c367bfeb3c880ce96e.tar.zst time-picker-d156d507717331bdcf86d6c367bfeb3c880ce96e.zip |
Updates
Diffstat (limited to 'examples/12hours.js')
-rw-r--r-- | examples/12hours.js | 91 |
1 files changed, 47 insertions, 44 deletions
diff --git a/examples/12hours.js b/examples/12hours.js index b2197cb..8264afd 100644 --- a/examples/12hours.js +++ b/examples/12hours.js | |||
@@ -1,53 +1,56 @@ | |||
1 | webpackJsonp([0],[ | 1 | webpackJsonp([6],{ |
2 | /* 0 */ | 2 | |
3 | /***/ (function(module, exports, __webpack_require__) { | 3 | /***/ 143: |
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 | |||
22 | |||
23 | |||
4 | 24 | ||
5 | module.exports = __webpack_require__(1); | ||
6 | 25 | ||
7 | 26 | ||
27 | |||
28 | var format = 'h:mm a'; | ||
29 | |||
30 | var now = __WEBPACK_IMPORTED_MODULE_3_moment___default()().hour(0).minute(0); | ||
31 | |||
32 | function onChange(value) { | ||
33 | console.log(value && value.format(format)); | ||
34 | } | ||
35 | |||
36 | __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 */], { | ||
37 | showSecond: false, | ||
38 | defaultValue: now, | ||
39 | className: 'xxx', | ||
40 | onChange: onChange, | ||
41 | format: format, | ||
42 | use12Hours: true | ||
43 | }), document.getElementById('__react-content')); | ||
44 | |||
8 | /***/ }), | 45 | /***/ }), |
9 | /* 1 */ | 46 | |
47 | /***/ 325: | ||
10 | /***/ (function(module, exports, __webpack_require__) { | 48 | /***/ (function(module, exports, __webpack_require__) { |
11 | 49 | ||
12 | 'use strict'; | 50 | module.exports = __webpack_require__(143); |
13 | 51 | ||
14 | __webpack_require__(2); | ||
15 | |||
16 | var _react = __webpack_require__(3); | ||
17 | |||
18 | var _react2 = _interopRequireDefault(_react); | ||
19 | |||
20 | var _reactDom = __webpack_require__(38); | ||
21 | |||
22 | var _reactDom2 = _interopRequireDefault(_reactDom); | ||
23 | |||
24 | var _moment = __webpack_require__(184); | ||
25 | |||
26 | var _moment2 = _interopRequireDefault(_moment); | ||
27 | |||
28 | var _rcTimePicker = __webpack_require__(185); | ||
29 | |||
30 | var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker); | ||
31 | |||
32 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
33 | |||
34 | var format = 'h:mm a'; /* eslint no-console:0 */ | ||
35 | |||
36 | var now = (0, _moment2.default)().hour(0).minute(0); | ||
37 | |||
38 | function onChange(value) { | ||
39 | console.log(value && value.format(format)); | ||
40 | } | ||
41 | |||
42 | _reactDom2.default.render(_react2.default.createElement(_rcTimePicker2.default, { | ||
43 | showSecond: false, | ||
44 | defaultValue: now, | ||
45 | className: 'xxx', | ||
46 | onChange: onChange, | ||
47 | format: format, | ||
48 | use12Hours: true | ||
49 | }), document.getElementById('__react-content')); | ||
50 | 52 | ||
51 | /***/ }) | 53 | /***/ }) |
52 | ]); | 54 | |
55 | },[325]); | ||
53 | //# sourceMappingURL=12hours.js.map \ No newline at end of file | 56 | //# sourceMappingURL=12hours.js.map \ No newline at end of file |