aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/12hours.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/12hours.js')
-rw-r--r--examples/12hours.js91
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 @@
1webpackJsonp([0],[ 1webpackJsonp([6],{
2/* 0 */ 2
3/***/ (function(module, exports, __webpack_require__) { 3/***/ 143:
4/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
6"use strict";
7Object.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
28var format = 'h:mm a';
29
30var now = __WEBPACK_IMPORTED_MODULE_3_moment___default()().hour(0).minute(0);
31
32function 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'; 50module.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