diff options
author | afc163 <afc163@gmail.com> | 2017-10-22 17:13:12 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-10-22 17:13:12 +0800 |
commit | 94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf (patch) | |
tree | 3ba0828ca64cc6acd3a64b2fd3a6b1a078b70dec /examples | |
parent | 5166b9aec0faf0451672f8ad52a8767a633e760c (diff) | |
download | time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.tar.gz time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.tar.zst time-picker-94c4f43b89bb39dd9afb08ab45e4c5bf90bd45cf.zip |
Updates
Diffstat (limited to 'examples')
-rw-r--r-- | examples/12hours.js | 16 | ||||
-rw-r--r-- | examples/disabled.js | 16 | ||||
-rw-r--r-- | examples/format.js | 16 | ||||
-rw-r--r-- | examples/hidden.js | 16 | ||||
-rw-r--r-- | examples/open.js | 56 | ||||
-rw-r--r-- | examples/open.js.map | 2 | ||||
-rw-r--r-- | examples/pick-time.js | 16 | ||||
-rw-r--r-- | examples/step.html | 295 | ||||
-rw-r--r-- | examples/step.js | 37 | ||||
-rw-r--r-- | examples/step.js.map | 1 | ||||
-rw-r--r-- | examples/value-and-defaultValue.js | 58 | ||||
-rw-r--r-- | examples/value-and-defaultValue.js.map | 2 |
12 files changed, 428 insertions, 103 deletions
diff --git a/examples/12hours.js b/examples/12hours.js index 108b5f9..9167d49 100644 --- a/examples/12hours.js +++ b/examples/12hours.js | |||
@@ -1,27 +1,27 @@ | |||
1 | webpackJsonp([6],{ | 1 | webpackJsonp([7],{ |
2 | 2 | ||
3 | /***/ 171: | 3 | /***/ 172: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(76); | 6 | module.exports = __webpack_require__(75); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 76: | 11 | /***/ 75: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
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_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
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_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
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_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
25 | /* eslint no-console:0 */ | 25 | /* eslint no-console:0 */ |
26 | 26 | ||
27 | 27 | ||
@@ -52,5 +52,5 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
52 | 52 | ||
53 | /***/ }) | 53 | /***/ }) |
54 | 54 | ||
55 | },[171]); | 55 | },[172]); |
56 | //# sourceMappingURL=12hours.js.map \ No newline at end of file | 56 | //# sourceMappingURL=12hours.js.map \ No newline at end of file |
diff --git a/examples/disabled.js b/examples/disabled.js index 4d547dc..857af87 100644 --- a/examples/disabled.js +++ b/examples/disabled.js | |||
@@ -1,27 +1,27 @@ | |||
1 | webpackJsonp([5],{ | 1 | webpackJsonp([6],{ |
2 | 2 | ||
3 | /***/ 172: | 3 | /***/ 173: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(77); | 6 | module.exports = __webpack_require__(76); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 77: | 11 | /***/ 76: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
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_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
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_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
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_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
25 | /* eslint no-console:0 */ | 25 | /* eslint no-console:0 */ |
26 | 26 | ||
27 | 27 | ||
@@ -102,5 +102,5 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
102 | 102 | ||
103 | /***/ }) | 103 | /***/ }) |
104 | 104 | ||
105 | },[172]); | 105 | },[173]); |
106 | //# sourceMappingURL=disabled.js.map \ No newline at end of file | 106 | //# sourceMappingURL=disabled.js.map \ No newline at end of file |
diff --git a/examples/format.js b/examples/format.js index 80684ce..2125bd1 100644 --- a/examples/format.js +++ b/examples/format.js | |||
@@ -1,27 +1,27 @@ | |||
1 | webpackJsonp([4],{ | 1 | webpackJsonp([5],{ |
2 | 2 | ||
3 | /***/ 173: | 3 | /***/ 174: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(78); | 6 | module.exports = __webpack_require__(77); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 78: | 11 | /***/ 77: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
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_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
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_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
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_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
@@ -41,5 +41,5 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
41 | 41 | ||
42 | /***/ }) | 42 | /***/ }) |
43 | 43 | ||
44 | },[173]); | 44 | },[174]); |
45 | //# sourceMappingURL=format.js.map \ No newline at end of file | 45 | //# sourceMappingURL=format.js.map \ No newline at end of file |
diff --git a/examples/hidden.js b/examples/hidden.js index ea97f68..b8b7660 100644 --- a/examples/hidden.js +++ b/examples/hidden.js | |||
@@ -1,27 +1,27 @@ | |||
1 | webpackJsonp([3],{ | 1 | webpackJsonp([4],{ |
2 | 2 | ||
3 | /***/ 174: | 3 | /***/ 175: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(79); | 6 | module.exports = __webpack_require__(78); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 79: | 11 | /***/ 78: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
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_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
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_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
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_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
25 | /* eslint no-console:0 */ | 25 | /* eslint no-console:0 */ |
26 | 26 | ||
27 | 27 | ||
@@ -58,5 +58,5 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
58 | 58 | ||
59 | /***/ }) | 59 | /***/ }) |
60 | 60 | ||
61 | },[174]); | 61 | },[175]); |
62 | //# sourceMappingURL=hidden.js.map \ No newline at end of file | 62 | //# sourceMappingURL=hidden.js.map \ No newline at end of file |
diff --git a/examples/open.js b/examples/open.js index cc5d368..36f72b1 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -1,36 +1,32 @@ | |||
1 | webpackJsonp([2],{ | 1 | webpackJsonp([3],{ |
2 | 2 | ||
3 | /***/ 175: | 3 | /***/ 176: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(80); | 6 | module.exports = __webpack_require__(79); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 80: | 11 | /***/ 79: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | 19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | 21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rc_time_picker__ = __webpack_require__(5); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | 23 | var _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; }; }(); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17); | ||
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__(12); | ||
31 | 24 | ||
25 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
32 | 26 | ||
27 | function _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; } | ||
33 | 28 | ||
29 | function _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; } | ||
34 | 30 | ||
35 | /* eslint no-console:0 */ | 31 | /* eslint no-console:0 */ |
36 | 32 | ||
@@ -41,20 +37,20 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | |||
41 | 37 | ||
42 | 38 | ||
43 | var App = function (_React$Component) { | 39 | var App = function (_React$Component) { |
44 | __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component); | 40 | _inherits(App, _React$Component); |
45 | 41 | ||
46 | function App() { | 42 | function App() { |
47 | var _ref; | 43 | var _ref; |
48 | 44 | ||
49 | var _temp, _this, _ret; | 45 | var _temp, _this, _ret; |
50 | 46 | ||
51 | __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App); | 47 | _classCallCheck(this, App); |
52 | 48 | ||
53 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | 49 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { |
54 | args[_key] = arguments[_key]; | 50 | args[_key] = arguments[_key]; |
55 | } | 51 | } |
56 | 52 | ||
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 = { | 53 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { |
58 | open: false | 54 | open: false |
59 | }, _this.setOpen = function (_ref2) { | 55 | }, _this.setOpen = function (_ref2) { |
60 | var open = _ref2.open; | 56 | var open = _ref2.open; |
@@ -64,21 +60,21 @@ var App = function (_React$Component) { | |||
64 | _this.setState({ | 60 | _this.setState({ |
65 | open: !_this.state.open | 61 | open: !_this.state.open |
66 | }); | 62 | }); |
67 | }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret); | 63 | }, _temp), _possibleConstructorReturn(_this, _ret); |
68 | } | 64 | } |
69 | 65 | ||
70 | __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{ | 66 | _createClass(App, [{ |
71 | key: 'render', | 67 | key: 'render', |
72 | value: function render() { | 68 | value: function render() { |
73 | return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 69 | return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
74 | 'div', | 70 | 'div', |
75 | null, | 71 | null, |
76 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 72 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
77 | 'button', | 73 | 'button', |
78 | { onClick: this.toggleOpen }, | 74 | { onClick: this.toggleOpen }, |
79 | 'Toggle open' | 75 | 'Toggle open' |
80 | ), | 76 | ), |
81 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], { | 77 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_rc_time_picker__["a" /* default */], { |
82 | open: this.state.open, | 78 | open: this.state.open, |
83 | onOpen: this.setOpen, | 79 | onOpen: this.setOpen, |
84 | onClose: this.setOpen, | 80 | onClose: this.setOpen, |
@@ -89,11 +85,11 @@ var App = function (_React$Component) { | |||
89 | }]); | 85 | }]); |
90 | 86 | ||
91 | return App; | 87 | return App; |
92 | }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); | 88 | }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component); |
93 | 89 | ||
94 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); | 90 | __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(App, null), document.getElementById('__react-content')); |
95 | 91 | ||
96 | /***/ }) | 92 | /***/ }) |
97 | 93 | ||
98 | },[175]); | 94 | },[176]); |
99 | //# sourceMappingURL=open.js.map \ No newline at end of file | 95 | //# sourceMappingURL=open.js.map \ No newline at end of file |
diff --git a/examples/open.js.map b/examples/open.js.map index cd831ab..6443346 100644 --- a/examples/open.js.map +++ b/examples/open.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/open.js"],"names":["App","state","open","setOpen","setState","toggleOpen","React","Component","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;;IAEMA,G;;;;;;;;;;;;;;6OACJC,K,GAAQ;AACNC,YAAM;AADA,K,QAGRC,O,GAAU,iBAAc;AAAA,UAAXD,IAAW,SAAXA,IAAW;;AACtB,YAAKE,QAAL,CAAc,EAAEF,UAAF,EAAd;AACD,K,QACDG,U,GAAa,YAAM;AACjB,YAAKD,QAAL,CAAc;AACZF,cAAM,CAAC,MAAKD,KAAL,CAAWC;AADN,OAAd;AAGD,K;;;;;6BACQ;AACP,aACE;AAAA;AAAA;AACE;AAAA;AAAA,YAAQ,SAAS,KAAKG,UAAtB;AAAA;AAAA,SADF;AAEE,oEAAC,+DAAD;AACE,gBAAM,KAAKJ,KAAL,CAAWC,IADnB;AAEE,kBAAQ,KAAKC,OAFf;AAGE,mBAAS,KAAKA,OAHhB;AAIE;AAJF;AAFF,OADF;AAWD;;;;EAxBe,6CAAAG,CAAMC,S;;AA2BxB,iDAAAC,CAASC,MAAT,CACE,4DAAC,GAAD,OADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/open.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport TimePicker from 'rc-time-picker';\n\nclass App extends React.Component {\n state = {\n open: false,\n };\n setOpen = ({ open }) => {\n this.setState({ open });\n }\n toggleOpen = () => {\n this.setState({\n open: !this.state.open,\n });\n }\n render() {\n return (\n <div>\n <button onClick={this.toggleOpen}>Toggle open</button>\n <TimePicker\n open={this.state.open}\n onOpen={this.setOpen}\n onClose={this.setOpen}\n focusOnOpen\n />\n </div>\n );\n }\n}\n\nReactDom.render(\n <App />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/open.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/open.js"],"names":["App","state","open","setOpen","setState","toggleOpen","React","Component","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;;IAEMA,G;;;;;;;;;;;;;;gLACJC,K,GAAQ;AACNC,YAAM;AADA,K,QAGRC,O,GAAU,iBAAc;AAAA,UAAXD,IAAW,SAAXA,IAAW;;AACtB,YAAKE,QAAL,CAAc,EAAEF,UAAF,EAAd;AACD,K,QACDG,U,GAAa,YAAM;AACjB,YAAKD,QAAL,CAAc;AACZF,cAAM,CAAC,MAAKD,KAAL,CAAWC;AADN,OAAd;AAGD,K;;;;;6BACQ;AACP,aACE;AAAA;AAAA;AACE;AAAA;AAAA,YAAQ,SAAS,KAAKG,UAAtB;AAAA;AAAA,SADF;AAEE,oEAAC,+DAAD;AACE,gBAAM,KAAKJ,KAAL,CAAWC,IADnB;AAEE,kBAAQ,KAAKC,OAFf;AAGE,mBAAS,KAAKA,OAHhB;AAIE;AAJF;AAFF,OADF;AAWD;;;;EAxBe,6CAAAG,CAAMC,S;;AA2BxB,iDAAAC,CAASC,MAAT,CACE,4DAAC,GAAD,OADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/open.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport TimePicker from 'rc-time-picker';\n\nclass App extends React.Component {\n state = {\n open: false,\n };\n setOpen = ({ open }) => {\n this.setState({ open });\n }\n toggleOpen = () => {\n this.setState({\n open: !this.state.open,\n });\n }\n render() {\n return (\n <div>\n <button onClick={this.toggleOpen}>Toggle open</button>\n <TimePicker\n open={this.state.open}\n onOpen={this.setOpen}\n onClose={this.setOpen}\n focusOnOpen\n />\n </div>\n );\n }\n}\n\nReactDom.render(\n <App />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/open.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/pick-time.js b/examples/pick-time.js index 979a7b4..42c6429 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -1,27 +1,27 @@ | |||
1 | webpackJsonp([1],{ | 1 | webpackJsonp([2],{ |
2 | 2 | ||
3 | /***/ 176: | 3 | /***/ 177: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(81); | 6 | module.exports = __webpack_require__(80); |
7 | 7 | ||
8 | 8 | ||
9 | /***/ }), | 9 | /***/ }), |
10 | 10 | ||
11 | /***/ 81: | 11 | /***/ 80: |
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
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_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
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_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
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_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
25 | /* eslint no-console:0 */ | 25 | /* eslint no-console:0 */ |
26 | 26 | ||
27 | 27 | ||
@@ -50,5 +50,5 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
50 | 50 | ||
51 | /***/ }) | 51 | /***/ }) |
52 | 52 | ||
53 | },[176]); | 53 | },[177]); |
54 | //# sourceMappingURL=pick-time.js.map \ No newline at end of file | 54 | //# sourceMappingURL=pick-time.js.map \ No newline at end of file |
diff --git a/examples/step.html b/examples/step.html new file mode 100644 index 0000000..de2fe92 --- /dev/null +++ b/examples/step.html | |||
@@ -0,0 +1,295 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | |||
4 | <head> | ||
5 | <title>step.js - example - rc-time-picker@3.0.0</title> | ||
6 | <meta name="viewport" | ||
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | ||
8 | <meta charset="utf-8"/> | ||
9 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
10 | <link href="https://a.alipayobjects.com/normalize.css/3.0.1/normalize.css" rel="stylesheet"/> | ||
11 | <style> | ||
12 | .highlight pre { | ||
13 | padding: .8em 1em; | ||
14 | font: 14px/20px Consolas, Monaco, 'Andale Mono', monospace; | ||
15 | border: 1px solid #e5e8ec; | ||
16 | border-radius: 3px; | ||
17 | background-color: #21221d; | ||
18 | background-image: -webkit-linear-gradient(#21221d 50%, #272822 50%); | ||
19 | background-image: -moz-linear-gradient(#21221d 50%, #272822 50%); | ||
20 | background-image: -ms-linear-gradient(#21221d 50%, #272822 50%); | ||
21 | background-image: -o-linear-gradient(#21221d 50%, #272822 50%); | ||
22 | background-image: linear-gradient(#21221d 50%, #272822 50%); | ||
23 | background-size: 40px 40px; | ||
24 | background-origin: content-box; | ||
25 | overflow: auto; | ||
26 | -webkit-overflow-scrolling: touch; | ||
27 | } | ||
28 | |||
29 | .highlight pre > code { | ||
30 | font-family: inherit; | ||
31 | direction: ltr; | ||
32 | text-align: left; | ||
33 | white-space: pre; | ||
34 | word-spacing: normal; | ||
35 | vertical-align: 2px; | ||
36 | display: block; | ||
37 | -moz-tab-size: 2; | ||
38 | -o-tab-size: 2; | ||
39 | tab-size: 2; | ||
40 | -webkit-hyphens: none; | ||
41 | -moz-hyphens: none; | ||
42 | -ms-hyphens: none; | ||
43 | hyphens: none; | ||
44 | color: #E5E5C2; | ||
45 | } | ||
46 | </style> | ||
47 | <style> | ||
48 | /* | ||
49 | |||
50 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ | ||
51 | |||
52 | */ | ||
53 | |||
54 | .hljs { | ||
55 | display: block; | ||
56 | overflow-x: auto; | ||
57 | padding: 0.5em; | ||
58 | background: #23241f; | ||
59 | -webkit-text-size-adjust: none; | ||
60 | } | ||
61 | |||
62 | .hljs, | ||
63 | .hljs-tag, | ||
64 | .css .hljs-rule, | ||
65 | .css .hljs-value, | ||
66 | .aspectj .hljs-function, | ||
67 | .css .hljs-function | ||
68 | .hljs-preprocessor, | ||
69 | .hljs-pragma { | ||
70 | color: #f8f8f2; | ||
71 | } | ||
72 | |||
73 | .hljs-strongemphasis, | ||
74 | .hljs-strong, | ||
75 | .hljs-emphasis { | ||
76 | color: #a8a8a2; | ||
77 | } | ||
78 | |||
79 | .hljs-bullet, | ||
80 | .hljs-blockquote, | ||
81 | .hljs-horizontal_rule, | ||
82 | .hljs-number, | ||
83 | .hljs-regexp, | ||
84 | .alias .hljs-keyword, | ||
85 | .hljs-literal, | ||
86 | .hljs-hexcolor { | ||
87 | color: #ae81ff; | ||
88 | } | ||
89 | |||
90 | .hljs-code, | ||
91 | .hljs-title, | ||
92 | .css .hljs-class, | ||
93 | .hljs-class .hljs-title:last-child { | ||
94 | color: #a6e22e; | ||
95 | /*color: #e6db74;*/ | ||
96 | } | ||
97 | |||
98 | .hljs-link_url { | ||
99 | font-size: 80%; | ||
100 | } | ||
101 | |||
102 | .hljs-strong, | ||
103 | .hljs-strongemphasis { | ||
104 | font-weight: bold; | ||
105 | } | ||
106 | |||
107 | .hljs-emphasis, | ||
108 | .hljs-strongemphasis, | ||
109 | .hljs-class .hljs-title:last-child, | ||
110 | .hljs-typename { | ||
111 | font-style: italic; | ||
112 | } | ||
113 | |||
114 | .hljs-keyword, | ||
115 | .ruby .hljs-class .hljs-keyword:first-child, | ||
116 | .ruby .hljs-function .hljs-keyword, | ||
117 | .hljs-function, | ||
118 | .hljs-change, | ||
119 | .hljs-winutils, | ||
120 | .hljs-flow, | ||
121 | .nginx .hljs-title, | ||
122 | .tex .hljs-special, | ||
123 | .hljs-header, | ||
124 | .hljs-symbol, | ||
125 | .hljs-symbol .hljs-string, | ||
126 | .hljs-tag .hljs-title, | ||
127 | .hljs-value, | ||
128 | .alias .hljs-keyword:first-child, | ||
129 | .css .hljs-tag, | ||
130 | .css .unit, | ||
131 | .css .hljs-important { | ||
132 | color: #f92672; | ||
133 | } | ||
134 | |||
135 | .hljs-function .hljs-keyword, | ||
136 | .hljs-class .hljs-keyword:first-child, | ||
137 | .hljs-aspect .hljs-keyword:first-child, | ||
138 | .hljs-constant, | ||
139 | .hljs-typename, | ||
140 | .hljs-name, | ||
141 | .css .hljs-attribute { | ||
142 | color: #66d9ef; | ||
143 | } | ||
144 | |||
145 | .hljs-variable, | ||
146 | .hljs-params, | ||
147 | .hljs-class .hljs-title, | ||
148 | .hljs-aspect .hljs-title { | ||
149 | color: #f8f8f2; | ||
150 | } | ||
151 | |||
152 | .hljs-tag .hljs-value, | ||
153 | .hljs-string, | ||
154 | .css .hljs-id, | ||
155 | .hljs-subst, | ||
156 | .hljs-type, | ||
157 | .ruby .hljs-class .hljs-parent, | ||
158 | .django .hljs-template_tag, | ||
159 | .django .hljs-variable, | ||
160 | .smalltalk .hljs-class, | ||
161 | .django .hljs-filter .hljs-argument, | ||
162 | .smalltalk .hljs-localvars, | ||
163 | .smalltalk .hljs-array, | ||
164 | .hljs-attr_selector, | ||
165 | .hljs-pseudo, | ||
166 | .hljs-addition, | ||
167 | .hljs-stream, | ||
168 | .hljs-envvar, | ||
169 | .apache .hljs-tag, | ||
170 | .apache .hljs-cbracket, | ||
171 | .tex .hljs-command, | ||
172 | .hljs-prompt, | ||
173 | .hljs-link_label, | ||
174 | .hljs-link_url { | ||
175 | color: #e6db74; | ||
176 | } | ||
177 | |||
178 | .hljs-comment, | ||
179 | .hljs-annotation, | ||
180 | .hljs-decorator, | ||
181 | .hljs-pi, | ||
182 | .hljs-doctype, | ||
183 | .hljs-deletion, | ||
184 | .hljs-shebang, | ||
185 | .apache .hljs-sqbracket, | ||
186 | .tex .hljs-formula { | ||
187 | color: #75715e; | ||
188 | } | ||
189 | |||
190 | .coffeescript .javascript, | ||
191 | .javascript .xml, | ||
192 | .tex .hljs-formula, | ||
193 | .xml .javascript, | ||
194 | .xml .vbscript, | ||
195 | .xml .css, | ||
196 | .xml .hljs-cdata, | ||
197 | .xml .php, | ||
198 | .php .xml { | ||
199 | opacity: 0.5; | ||
200 | } | ||
201 | /***********/ | ||
202 | .hljs-attribute{ | ||
203 | color: #a6e22e; | ||
204 | } | ||
205 | /***** node keyword ******/ | ||
206 | .hljs-built_in{ | ||
207 | color: #3396dc; | ||
208 | font-weight: bold; | ||
209 | } | ||
210 | </style> | ||
211 | <style> | ||
212 | .container { | ||
213 | width: 86%; | ||
214 | max-width: 1000px; | ||
215 | margin-left: auto; | ||
216 | margin-right: auto; | ||
217 | } | ||
218 | |||
219 | .header p { | ||
220 | color: #666; | ||
221 | } | ||
222 | |||
223 | .example { | ||
224 | padding: 20px 0; | ||
225 | } | ||
226 | </style> | ||
227 | |||
228 | <script> | ||
229 | // Console-polyfill. MIT license. | ||
230 | // https://github.com/paulmillr/console-polyfill | ||
231 | // Make it safe to do console.log() always. | ||
232 | (function (global) { | ||
233 | 'use strict'; | ||
234 | global.console = global.console || {}; | ||
235 | var con = global.console; | ||
236 | var prop, method; | ||
237 | var empty = {}; | ||
238 | var dummy = function () { | ||
239 | }; | ||
240 | var properties = 'memory'.split(','); | ||
241 | var methods = ('assert,clear,count,debug,dir,dirxml,error,exception,group,' + | ||
242 | 'groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,' + | ||
243 | 'show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn').split(','); | ||
244 | while (prop = properties.pop()) con[prop] = con[prop] || empty; | ||
245 | while (method = methods.pop()) con[method] = con[method] || dummy; | ||
246 | })(typeof window === 'undefined' ? this : window); | ||
247 | // Using `this` for web workers while maintaining compatibility with browser | ||
248 | // targeted script loaders such as Browserify or Webpack where the only way to | ||
249 | // get to the global object is via `window`. | ||
250 | </script> | ||
251 | <!--[if lt IE 9]> | ||
252 | <script src="https://a.alipayobjects.com/??es5-shim/4.0.5/es5-shim.js,es5-shim/4.0.5/es5-sham.js,html5shiv/3.7.2/src/html5shiv.js"></script> | ||
253 | <![endif]--> | ||
254 | <script src="https://as.alipayobjects.com/g/component/??modernizr/2.8.3/modernizr.js,fastclick/1.0.6/fastclick.js"></script> | ||
255 | <script> | ||
256 | if(!window.Promise) { | ||
257 | document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"'+'>'+'<'+'/'+'script>'); | ||
258 | } | ||
259 | </script> | ||
260 | <link rel="stylesheet" href="../common.css" /> | ||
261 | </head> | ||
262 | |||
263 | <body> | ||
264 | <div class="container"> | ||
265 | <div class="header"> | ||
266 | <h1>rc-time-picker@3.0.0</h1> | ||
267 | |||
268 | <p>React TimePicker</p> | ||
269 | </div> | ||
270 | <div class="example" id="__react-content"></div> | ||
271 | |||
272 | <div class="highlight"><pre><code language="js"><span class="hljs-keyword">import</span> <span class="hljs-string">'rc-time-picker/assets/index.css'</span>; | ||
273 | |||
274 | <span class="hljs-keyword">import</span> React <span class="hljs-keyword">from</span> <span class="hljs-string">'react'</span>; | ||
275 | <span class="hljs-keyword">import</span> ReactDom <span class="hljs-keyword">from</span> <span class="hljs-string">'react-dom'</span>; | ||
276 | <span class="hljs-keyword">import</span> moment <span class="hljs-keyword">from</span> <span class="hljs-string">'moment'</span>; | ||
277 | <span class="hljs-keyword">import</span> TimePicker <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker'</span>; | ||
278 | |||
279 | ReactDom.render( | ||
280 | <span class="xml"><span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">minuteStep</span>=<span class="hljs-value">{15}</span> /></span> | ||
281 | , document.getElementById('__react-content')); | ||
282 | </span></code></pre></div> | ||
283 | </div> | ||
284 | <a href="http://github.com/react-component/time-picker"> | ||
285 | <img style="position: absolute; top: 0; right: 0; border: 0;" | ||
286 | src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" | ||
287 | alt="Fork me on GitHub" | ||
288 | data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"> | ||
289 | </a> | ||
290 | <script>FastClick.attach(document.body);</script> | ||
291 | <script src="../common.js?nowrap"></script> | ||
292 | <script src="step.js?nowrap"></script> | ||
293 | </body> | ||
294 | |||
295 | </html> | ||
diff --git a/examples/step.js b/examples/step.js new file mode 100644 index 0000000..d6a9d31 --- /dev/null +++ b/examples/step.js | |||
@@ -0,0 +1,37 @@ | |||
1 | webpackJsonp([1],{ | ||
2 | |||
3 | /***/ 178: | ||
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(81); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 81: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
13 | |||
14 | "use strict"; | ||
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); | ||
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__); | ||
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | ||
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | ||
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); | ||
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | ||
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); | ||
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | ||
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); | ||
25 | |||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 | |||
32 | __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 */], { defaultValue: __WEBPACK_IMPORTED_MODULE_3_moment___default()(), showSecond: false, minuteStep: 15 }), document.getElementById('__react-content')); | ||
33 | |||
34 | /***/ }) | ||
35 | |||
36 | },[178]); | ||
37 | //# sourceMappingURL=step.js.map \ No newline at end of file | ||
diff --git a/examples/step.js.map b/examples/step.js.map new file mode 100644 index 0000000..d46f8d6 --- /dev/null +++ b/examples/step.js.map | |||
@@ -0,0 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/step.js"],"names":["ReactDom","render","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;AACA;AACA;AACA;;AAEA,iDAAAA,CAASC,MAAT,CACE,4DAAC,+DAAD,IAAY,cAAc,8CAAAC,EAA1B,EAAoC,YAAY,KAAhD,EAAuD,YAAY,EAAnE,GADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/step.js","sourcesContent":["import 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nReactDom.render(\n <TimePicker defaultValue={moment()} showSecond={false} minuteStep={15} />\n, document.getElementById('__react-content'));\n\n\n\n// WEBPACK FOOTER //\n// ./examples/step.js"],"sourceRoot":""} \ No newline at end of file | |||
diff --git a/examples/value-and-defaultValue.js b/examples/value-and-defaultValue.js index e752b5e..927cab0 100644 --- a/examples/value-and-defaultValue.js +++ b/examples/value-and-defaultValue.js | |||
@@ -1,6 +1,6 @@ | |||
1 | webpackJsonp([0],{ | 1 | webpackJsonp([0],{ |
2 | 2 | ||
3 | /***/ 177: | 3 | /***/ 179: |
4 | /***/ (function(module, exports, __webpack_require__) { | 4 | /***/ (function(module, exports, __webpack_require__) { |
5 | 5 | ||
6 | module.exports = __webpack_require__(82); | 6 | module.exports = __webpack_require__(82); |
@@ -13,26 +13,22 @@ module.exports = __webpack_require__(82); | |||
13 | 13 | ||
14 | "use strict"; | 14 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7); |
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | 19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | 21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | 23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5); |
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__); | 25 | var _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; }; }(); |
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_moment__ = __webpack_require__(8); | ||
31 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__); | ||
32 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_time_picker__ = __webpack_require__(12); | ||
33 | 26 | ||
27 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
34 | 28 | ||
29 | function _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; } | ||
35 | 30 | ||
31 | function _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; } | ||
36 | 32 | ||
37 | /* eslint no-console:0 */ | 33 | /* eslint no-console:0 */ |
38 | 34 | ||
@@ -44,21 +40,21 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | |||
44 | 40 | ||
45 | 41 | ||
46 | var App = function (_React$Component) { | 42 | var App = function (_React$Component) { |
47 | __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component); | 43 | _inherits(App, _React$Component); |
48 | 44 | ||
49 | function App() { | 45 | function App() { |
50 | var _ref; | 46 | var _ref; |
51 | 47 | ||
52 | var _temp, _this, _ret; | 48 | var _temp, _this, _ret; |
53 | 49 | ||
54 | __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App); | 50 | _classCallCheck(this, App); |
55 | 51 | ||
56 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | 52 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { |
57 | args[_key] = arguments[_key]; | 53 | args[_key] = arguments[_key]; |
58 | } | 54 | } |
59 | 55 | ||
60 | 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 = { | 56 | return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { |
61 | value: __WEBPACK_IMPORTED_MODULE_7_moment___default()() | 57 | value: __WEBPACK_IMPORTED_MODULE_3_moment___default()() |
62 | }, _this.handleValueChange = function (value) { | 58 | }, _this.handleValueChange = function (value) { |
63 | console.log(value && value.format('HH:mm:ss')); | 59 | console.log(value && value.format('HH:mm:ss')); |
64 | _this.setState({ value: value }); | 60 | _this.setState({ value: value }); |
@@ -66,24 +62,24 @@ var App = function (_React$Component) { | |||
66 | _this.setState({ | 62 | _this.setState({ |
67 | value: undefined | 63 | value: undefined |
68 | }); | 64 | }); |
69 | }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret); | 65 | }, _temp), _possibleConstructorReturn(_this, _ret); |
70 | } | 66 | } |
71 | 67 | ||
72 | __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{ | 68 | _createClass(App, [{ |
73 | key: 'render', | 69 | key: 'render', |
74 | value: function render() { | 70 | value: function render() { |
75 | return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 71 | return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
76 | 'div', | 72 | 'div', |
77 | null, | 73 | null, |
78 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_rc_time_picker__["a" /* default */], { | 74 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], { |
79 | defaultValue: this.state.value, | 75 | defaultValue: this.state.value, |
80 | onChange: this.handleValueChange | 76 | onChange: this.handleValueChange |
81 | }), | 77 | }), |
82 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_rc_time_picker__["a" /* default */], { | 78 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], { |
83 | value: this.state.value, | 79 | value: this.state.value, |
84 | onChange: this.handleValueChange | 80 | onChange: this.handleValueChange |
85 | }), | 81 | }), |
86 | __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( | 82 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( |
87 | 'button', | 83 | 'button', |
88 | { onClick: this.clear }, | 84 | { onClick: this.clear }, |
89 | 'clear' | 85 | 'clear' |
@@ -93,11 +89,11 @@ var App = function (_React$Component) { | |||
93 | }]); | 89 | }]); |
94 | 90 | ||
95 | return App; | 91 | return App; |
96 | }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); | 92 | }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component); |
97 | 93 | ||
98 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); | 94 | __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(App, null), document.getElementById('__react-content')); |
99 | 95 | ||
100 | /***/ }) | 96 | /***/ }) |
101 | 97 | ||
102 | },[177]); | 98 | },[179]); |
103 | //# sourceMappingURL=value-and-defaultValue.js.map \ No newline at end of file | 99 | //# sourceMappingURL=value-and-defaultValue.js.map \ No newline at end of file |
diff --git a/examples/value-and-defaultValue.js.map b/examples/value-and-defaultValue.js.map index 84497a4..d04c4fd 100644 --- a/examples/value-and-defaultValue.js.map +++ b/examples/value-and-defaultValue.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":["App","state","value","moment","handleValueChange","console","log","format","setState","clear","undefined","React","Component","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;AACA;;IAEMA,G;;;;;;;;;;;;;;6OACJC,K,GAAQ;AACNC,aAAO,8CAAAC;AADD,K,QAGRC,iB,GAAoB,UAACF,KAAD,EAAW;AAC7BG,cAAQC,GAAR,CAAYJ,SAASA,MAAMK,MAAN,CAAa,UAAb,CAArB;AACA,YAAKC,QAAL,CAAc,EAAEN,YAAF,EAAd;AACD,K,QACDO,K,GAAQ,YAAM;AACZ,YAAKD,QAAL,CAAc;AACZN,eAAOQ;AADK,OAAd;AAGD,K;;;;;6BACQ;AACP,aACE;AAAA;AAAA;AACE,oEAAC,+DAAD;AACE,wBAAc,KAAKT,KAAL,CAAWC,KAD3B;AAEE,oBAAU,KAAKE;AAFjB,UADF;AAKE,oEAAC,+DAAD;AACE,iBAAO,KAAKH,KAAL,CAAWC,KADpB;AAEE,oBAAU,KAAKE;AAFjB,UALF;AASE;AAAA;AAAA,YAAQ,SAAS,KAAKK,KAAtB;AAAA;AAAA;AATF,OADF;AAaD;;;;EA3Be,6CAAAE,CAAMC,S;;AA8BxB,iDAAAC,CAASC,MAAT,CACE,4DAAC,GAAD,OADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/value-and-defaultValue.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nclass App extends React.Component {\n state = {\n value: moment(),\n };\n handleValueChange = (value) => {\n console.log(value && value.format('HH:mm:ss'));\n this.setState({ value });\n }\n clear = () => {\n this.setState({\n value: undefined,\n });\n }\n render() {\n return (\n <div>\n <TimePicker\n defaultValue={this.state.value}\n onChange={this.handleValueChange}\n />\n <TimePicker\n value={this.state.value}\n onChange={this.handleValueChange}\n />\n <button onClick={this.clear}>clear</button>\n </div>\n );\n }\n}\n\nReactDom.render(\n <App />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/value-and-defaultValue.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/value-and-defaultValue.js"],"names":["App","state","value","moment","handleValueChange","console","log","format","setState","clear","undefined","React","Component","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;AACA;AACA;AACA;;IAEMA,G;;;;;;;;;;;;;;gLACJC,K,GAAQ;AACNC,aAAO,8CAAAC;AADD,K,QAGRC,iB,GAAoB,UAACF,KAAD,EAAW;AAC7BG,cAAQC,GAAR,CAAYJ,SAASA,MAAMK,MAAN,CAAa,UAAb,CAArB;AACA,YAAKC,QAAL,CAAc,EAAEN,YAAF,EAAd;AACD,K,QACDO,K,GAAQ,YAAM;AACZ,YAAKD,QAAL,CAAc;AACZN,eAAOQ;AADK,OAAd;AAGD,K;;;;;6BACQ;AACP,aACE;AAAA;AAAA;AACE,oEAAC,+DAAD;AACE,wBAAc,KAAKT,KAAL,CAAWC,KAD3B;AAEE,oBAAU,KAAKE;AAFjB,UADF;AAKE,oEAAC,+DAAD;AACE,iBAAO,KAAKH,KAAL,CAAWC,KADpB;AAEE,oBAAU,KAAKE;AAFjB,UALF;AASE;AAAA;AAAA,YAAQ,SAAS,KAAKK,KAAtB;AAAA;AAAA;AATF,OADF;AAaD;;;;EA3Be,6CAAAE,CAAMC,S;;AA8BxB,iDAAAC,CAASC,MAAT,CACE,4DAAC,GAAD,OADF,EAEEC,SAASC,cAAT,CAAwB,iBAAxB,CAFF,E","file":"examples/value-and-defaultValue.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nclass App extends React.Component {\n state = {\n value: moment(),\n };\n handleValueChange = (value) => {\n console.log(value && value.format('HH:mm:ss'));\n this.setState({ value });\n }\n clear = () => {\n this.setState({\n value: undefined,\n });\n }\n render() {\n return (\n <div>\n <TimePicker\n defaultValue={this.state.value}\n onChange={this.handleValueChange}\n />\n <TimePicker\n value={this.state.value}\n onChange={this.handleValueChange}\n />\n <button onClick={this.clear}>clear</button>\n </div>\n );\n }\n}\n\nReactDom.render(\n <App />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/value-and-defaultValue.js"],"sourceRoot":""} \ No newline at end of file | ||