diff options
Diffstat (limited to 'examples/hidden.js')
-rw-r--r-- | examples/hidden.js | 99 |
1 files changed, 49 insertions, 50 deletions
diff --git a/examples/hidden.js b/examples/hidden.js index c54be52..0c5b5c0 100644 --- a/examples/hidden.js +++ b/examples/hidden.js | |||
@@ -1,63 +1,62 @@ | |||
1 | webpackJsonp([3],{ | 1 | webpackJsonp([3],{ |
2 | 2 | ||
3 | /***/ 0: | 3 | /***/ 146: |
4 | /***/ (function(module, exports, __webpack_require__) { | 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 | |||
5 | 23 | ||
6 | module.exports = __webpack_require__(319); | ||
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 | format: str, | ||
37 | showSecond: showSecond | ||
38 | // use to control utfOffset, locale, default open value | ||
39 | , defaultOpenValue: __WEBPACK_IMPORTED_MODULE_3_moment___default()(), | ||
40 | className: 'xxx', | ||
41 | onChange: onChange, | ||
42 | disabledHours: function disabledHours() { | ||
43 | return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23]; | ||
44 | }, | ||
45 | disabledMinutes: function disabledMinutes() { | ||
46 | return [0, 2, 4, 6, 8]; | ||
47 | }, | ||
48 | hideDisabledOptions: true | ||
49 | }), document.getElementById('__react-content')); | ||
50 | |||
9 | /***/ }), | 51 | /***/ }), |
10 | 52 | ||
11 | /***/ 319: | 53 | /***/ 328: |
12 | /***/ (function(module, exports, __webpack_require__) { | 54 | /***/ (function(module, exports, __webpack_require__) { |
13 | 55 | ||
14 | 'use strict'; | 56 | module.exports = __webpack_require__(146); |
15 | 57 | ||
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 | format: str, | ||
46 | showSecond: showSecond | ||
47 | // use to control utfOffset, locale, default open value | ||
48 | , defaultOpenValue: (0, _moment2.default)(), | ||
49 | className: 'xxx', | ||
50 | onChange: onChange, | ||
51 | disabledHours: function disabledHours() { | ||
52 | return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23]; | ||
53 | }, | ||
54 | disabledMinutes: function disabledMinutes() { | ||
55 | return [0, 2, 4, 6, 8]; | ||
56 | }, | ||
57 | hideDisabledOptions: true | ||
58 | }), document.getElementById('__react-content')); | ||
59 | 58 | ||
60 | /***/ }) | 59 | /***/ }) |
61 | 60 | ||
62 | }); | 61 | },[328]); |
63 | //# sourceMappingURL=hidden.js.map \ No newline at end of file | 62 | //# sourceMappingURL=hidden.js.map \ No newline at end of file |