diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/12hours.html | 4 | ||||
-rw-r--r-- | examples/12hours.js | 30 | ||||
-rw-r--r-- | examples/12hours.js.map | 2 | ||||
-rw-r--r-- | examples/disabled.html | 4 | ||||
-rw-r--r-- | examples/disabled.js | 30 | ||||
-rw-r--r-- | examples/disabled.js.map | 2 | ||||
-rw-r--r-- | examples/format.html | 4 | ||||
-rw-r--r-- | examples/format.js | 30 | ||||
-rw-r--r-- | examples/format.js.map | 2 | ||||
-rw-r--r-- | examples/hidden.html | 4 | ||||
-rw-r--r-- | examples/hidden.js | 30 | ||||
-rw-r--r-- | examples/hidden.js.map | 2 | ||||
-rw-r--r-- | examples/open.html | 4 | ||||
-rw-r--r-- | examples/open.js | 36 | ||||
-rw-r--r-- | examples/open.js.map | 2 | ||||
-rw-r--r-- | examples/pick-time.html | 4 | ||||
-rw-r--r-- | examples/pick-time.js | 30 | ||||
-rw-r--r-- | examples/pick-time.js.map | 2 | ||||
-rw-r--r-- | examples/step.html | 4 | ||||
-rw-r--r-- | examples/step.js | 30 | ||||
-rw-r--r-- | examples/step.js.map | 2 | ||||
-rw-r--r-- | examples/value-and-defaultValue.html | 4 | ||||
-rw-r--r-- | examples/value-and-defaultValue.js | 38 | ||||
-rw-r--r-- | examples/value-and-defaultValue.js.map | 2 |
24 files changed, 151 insertions, 151 deletions
diff --git a/examples/12hours.html b/examples/12hours.html index b2875bc..8ff9fa9 100644 --- a/examples/12hours.html +++ b/examples/12hours.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>12hours.js - example - rc-time-picker@3.3.0</title> | 5 | <title>12hours.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/12hours.js b/examples/12hours.js index 714ade7..43db582 100644 --- a/examples/12hours.js +++ b/examples/12hours.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([7],{ | 1 | webpackJsonp([7],{ |
2 | 2 | ||
3 | /***/ 171: | 3 | /***/ 242: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(76); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 76: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | /* eslint no-console:0 */ | 17 | /* eslint no-console:0 */ |
26 | 18 | ||
27 | 19 | ||
@@ -51,7 +43,15 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
51 | inputReadOnly: true | 43 | inputReadOnly: true |
52 | }), document.getElementById('__react-content')); | 44 | }), document.getElementById('__react-content')); |
53 | 45 | ||
46 | /***/ }), | ||
47 | |||
48 | /***/ 479: | ||
49 | /***/ (function(module, exports, __webpack_require__) { | ||
50 | |||
51 | module.exports = __webpack_require__(242); | ||
52 | |||
53 | |||
54 | /***/ }) | 54 | /***/ }) |
55 | 55 | ||
56 | },[171]); | 56 | },[479]); |
57 | //# sourceMappingURL=12hours.js.map \ No newline at end of file | 57 | //# sourceMappingURL=12hours.js.map \ No newline at end of file |
diff --git a/examples/12hours.js.map b/examples/12hours.js.map index 9b46f6a..51c2fb7 100644 --- a/examples/12hours.js.map +++ b/examples/12hours.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/12hours.js"],"names":["format","now","moment","hour","minute","onChange","value","console","log","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,SAAS,QAAf;;AAEA,IAAMC,MAAM,8CAAAC,GAASC,IAAT,CAAc,CAAd,EAAiBC,MAAjB,CAAwB,CAAxB,CAAZ;;AAEA,SAASC,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMN,MAAN,CAAaA,MAAb,CAArB;AACD;;AAED,iDAAAS,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,cAAY,KADd;AAEE,gBAAcT,GAFhB;AAGE,aAAU,KAHZ;AAIE,YAAUI,QAJZ;AAKE,UAAQL,MALV;AAME,kBANF;AAOE;AAPF,EADF,EAUEW,SAASC,cAAT,CAAwB,iBAAxB,CAVF,E","file":"examples/12hours.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst format = 'h:mm a';\n\nconst now = moment().hour(0).minute(0);\n\nfunction onChange(value) {\n console.log(value && value.format(format));\n}\n\nReactDom.render(\n <TimePicker\n showSecond={false}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n format={format}\n use12Hours\n inputReadOnly\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/12hours.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/12hours.js"],"names":["format","now","moment","hour","minute","onChange","value","console","log","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,SAAS,QAAf;;AAEA,IAAMC,MAAM,8CAAAC,GAASC,IAAT,CAAc,CAAd,EAAiBC,MAAjB,CAAwB,CAAxB,CAAZ;;AAEA,SAASC,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMN,MAAN,CAAaA,MAAb,CAArB;AACD;;AAED,iDAAAS,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,cAAY,KADd;AAEE,gBAAcT,GAFhB;AAGE,aAAU,KAHZ;AAIE,YAAUI,QAJZ;AAKE,UAAQL,MALV;AAME,kBANF;AAOE;AAPF,EADF,EAUEW,SAASC,cAAT,CAAwB,iBAAxB,CAVF,E","file":"examples/12hours.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst format = 'h:mm a';\n\nconst now = moment().hour(0).minute(0);\n\nfunction onChange(value) {\n console.log(value && value.format(format));\n}\n\nReactDom.render(\n <TimePicker\n showSecond={false}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n format={format}\n use12Hours\n inputReadOnly\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/12hours.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/disabled.html b/examples/disabled.html index 2aec9c8..96b739b 100644 --- a/examples/disabled.html +++ b/examples/disabled.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>disabled.js - example - rc-time-picker@3.3.0</title> | 5 | <title>disabled.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/disabled.js b/examples/disabled.js index 7b16b22..47a77db 100644 --- a/examples/disabled.js +++ b/examples/disabled.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([6],{ | 1 | webpackJsonp([6],{ |
2 | 2 | ||
3 | /***/ 172: | 3 | /***/ 243: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(77); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 77: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | /* eslint no-console:0 */ | 17 | /* eslint no-console:0 */ |
26 | 18 | ||
27 | 19 | ||
@@ -100,7 +92,15 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
100 | }) | 92 | }) |
101 | ), document.getElementById('__react-content')); | 93 | ), document.getElementById('__react-content')); |
102 | 94 | ||
95 | /***/ }), | ||
96 | |||
97 | /***/ 480: | ||
98 | /***/ (function(module, exports, __webpack_require__) { | ||
99 | |||
100 | module.exports = __webpack_require__(243); | ||
101 | |||
102 | |||
103 | /***/ }) | 103 | /***/ }) |
104 | 104 | ||
105 | },[172]); | 105 | },[480]); |
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/disabled.js.map b/examples/disabled.js.map index 2ce189f..b39f0fb 100644 --- a/examples/disabled.js.map +++ b/examples/disabled.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/disabled.js"],"names":["showSecond","str","now","moment","hour","minute","generateOptions","length","excludedOptions","arr","value","indexOf","push","onChange","console","log","format","disabledHours","disabledMinutes","h","disabledSeconds","m","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAEA,IAAME,MAAM,8CAAAC,GAASC,IAAT,CAAc,EAAd,EAAkBC,MAAlB,CAAyB,EAAzB,CAAZ;;AAEA,SAASC,eAAT,CAAyBC,MAAzB,EAAiCC,eAAjC,EAAkD;AAChD,MAAMC,MAAM,EAAZ;AACA,OAAK,IAAIC,QAAQ,CAAjB,EAAoBA,QAAQH,MAA5B,EAAoCG,OAApC,EAA6C;AAC3C,QAAIF,gBAAgBG,OAAhB,CAAwBD,KAAxB,IAAiC,CAArC,EAAwC;AACtCD,UAAIG,IAAJ,CAASF,KAAT;AACD;AACF;AACD,SAAOD,GAAP;AACD;;AAED,SAASI,QAAT,CAAkBH,KAAlB,EAAyB;AACvBI,UAAQC,GAAR,CAAYL,SAASA,MAAMM,MAAN,CAAaf,GAAb,CAArB;AACD;;AAED,SAASgB,aAAT,GAAyB;AACvB,SAAO,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,EAA4B,EAA5B,EAAgC,EAAhC,CAAP;AACD;;AAED,SAASC,eAAT,CAAyBC,CAAzB,EAA4B;AAC1B,UAAQA,CAAR;AACE,SAAK,CAAL;AACE,aAAOb,gBAAgB,EAAhB,EAAoB,CAAC,EAAD,CAApB,CAAP;AACF,SAAK,EAAL;AACE,aAAOA,gBAAgB,EAAhB,EAAoB,CAAC,CAAD,CAApB,CAAP;AACF;AACE,aAAOA,gBAAgB,EAAhB,EAAoB,CAAC,CAAD,EAAI,EAAJ,CAApB,CAAP;AANJ;AAQD;;AAED,SAASc,eAAT,CAAyBD,CAAzB,EAA4BE,CAA5B,EAA+B;AAC7B,SAAO,CAACF,IAAIE,IAAI,EAAT,CAAP;AACD;;AAED,iDAAAC,CAASC,MAAT,CACE;AAAA;AAAA;AACE;AAAA;AAAA;AAAA;AAAA,GADF;AAEE,8DAAC,+DAAD;AACE,kBAAcrB,GADhB;AAEE,kBAFF;AAGE,cAAUW;AAHZ,IAFF;AAOE;AAAA;AAAA;AAAA;AAAA,GAPF;AAQE,8DAAC,+DAAD;AACE,gBAAYb,UADd;AAEE,kBAAcE,GAFhB;AAGE,eAAU,KAHZ;AAIE,cAAUW,QAJZ;AAKE,mBAAeI,aALjB;AAME,qBAAiBC,eANnB;AAOE,qBAAiBE;AAPnB;AARF,CADF,EAmBEI,SAASC,cAAT,CAAwB,iBAAxB,CAnBF,E","file":"examples/disabled.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nconst now = moment().hour(14).minute(30);\n\nfunction generateOptions(length, excludedOptions) {\n const arr = [];\n for (let value = 0; value < length; value++) {\n if (excludedOptions.indexOf(value) < 0) {\n arr.push(value);\n }\n }\n return arr;\n}\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nfunction disabledHours() {\n return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23];\n}\n\nfunction disabledMinutes(h) {\n switch (h) {\n case 9:\n return generateOptions(60, [30]);\n case 21:\n return generateOptions(60, [0]);\n default:\n return generateOptions(60, [0, 30]);\n }\n}\n\nfunction disabledSeconds(h, m) {\n return [h + m % 60];\n}\n\nReactDom.render(\n <div>\n <h3>Disabled picker</h3>\n <TimePicker\n defaultValue={now}\n disabled\n onChange={onChange}\n />\n <h3>Disabled options</h3>\n <TimePicker\n showSecond={showSecond}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={disabledHours}\n disabledMinutes={disabledMinutes}\n disabledSeconds={disabledSeconds}\n />\n </div>\n, document.getElementById('__react-content'));\n\n\n\n// WEBPACK FOOTER //\n// ./examples/disabled.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/disabled.js"],"names":["showSecond","str","now","moment","hour","minute","generateOptions","length","excludedOptions","arr","value","indexOf","push","onChange","console","log","format","disabledHours","disabledMinutes","h","disabledSeconds","m","ReactDom","render","document","getElementById"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAEA,IAAME,MAAM,8CAAAC,GAASC,IAAT,CAAc,EAAd,EAAkBC,MAAlB,CAAyB,EAAzB,CAAZ;;AAEA,SAASC,eAAT,CAAyBC,MAAzB,EAAiCC,eAAjC,EAAkD;AAChD,MAAMC,MAAM,EAAZ;AACA,OAAK,IAAIC,QAAQ,CAAjB,EAAoBA,QAAQH,MAA5B,EAAoCG,OAApC,EAA6C;AAC3C,QAAIF,gBAAgBG,OAAhB,CAAwBD,KAAxB,IAAiC,CAArC,EAAwC;AACtCD,UAAIG,IAAJ,CAASF,KAAT;AACD;AACF;AACD,SAAOD,GAAP;AACD;;AAED,SAASI,QAAT,CAAkBH,KAAlB,EAAyB;AACvBI,UAAQC,GAAR,CAAYL,SAASA,MAAMM,MAAN,CAAaf,GAAb,CAArB;AACD;;AAED,SAASgB,aAAT,GAAyB;AACvB,SAAO,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,EAA4B,EAA5B,EAAgC,EAAhC,CAAP;AACD;;AAED,SAASC,eAAT,CAAyBC,CAAzB,EAA4B;AAC1B,UAAQA,CAAR;AACE,SAAK,CAAL;AACE,aAAOb,gBAAgB,EAAhB,EAAoB,CAAC,EAAD,CAApB,CAAP;AACF,SAAK,EAAL;AACE,aAAOA,gBAAgB,EAAhB,EAAoB,CAAC,CAAD,CAApB,CAAP;AACF;AACE,aAAOA,gBAAgB,EAAhB,EAAoB,CAAC,CAAD,EAAI,EAAJ,CAApB,CAAP;AANJ;AAQD;;AAED,SAASc,eAAT,CAAyBD,CAAzB,EAA4BE,CAA5B,EAA+B;AAC7B,SAAO,CAACF,IAAIE,IAAI,EAAT,CAAP;AACD;;AAED,iDAAAC,CAASC,MAAT,CACE;AAAA;AAAA;AACE;AAAA;AAAA;AAAA;AAAA,GADF;AAEE,8DAAC,+DAAD;AACE,kBAAcrB,GADhB;AAEE,kBAFF;AAGE,cAAUW;AAHZ,IAFF;AAOE;AAAA;AAAA;AAAA;AAAA,GAPF;AAQE,8DAAC,+DAAD;AACE,gBAAYb,UADd;AAEE,kBAAcE,GAFhB;AAGE,eAAU,KAHZ;AAIE,cAAUW,QAJZ;AAKE,mBAAeI,aALjB;AAME,qBAAiBC,eANnB;AAOE,qBAAiBE;AAPnB;AARF,CADF,EAmBEI,SAASC,cAAT,CAAwB,iBAAxB,CAnBF,E","file":"examples/disabled.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nconst now = moment().hour(14).minute(30);\n\nfunction generateOptions(length, excludedOptions) {\n const arr = [];\n for (let value = 0; value < length; value++) {\n if (excludedOptions.indexOf(value) < 0) {\n arr.push(value);\n }\n }\n return arr;\n}\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nfunction disabledHours() {\n return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23];\n}\n\nfunction disabledMinutes(h) {\n switch (h) {\n case 9:\n return generateOptions(60, [30]);\n case 21:\n return generateOptions(60, [0]);\n default:\n return generateOptions(60, [0, 30]);\n }\n}\n\nfunction disabledSeconds(h, m) {\n return [h + m % 60];\n}\n\nReactDom.render(\n <div>\n <h3>Disabled picker</h3>\n <TimePicker\n defaultValue={now}\n disabled\n onChange={onChange}\n />\n <h3>Disabled options</h3>\n <TimePicker\n showSecond={showSecond}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={disabledHours}\n disabledMinutes={disabledMinutes}\n disabledSeconds={disabledSeconds}\n />\n </div>\n, document.getElementById('__react-content'));\n\n\n\n// WEBPACK FOOTER //\n// ./examples/disabled.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/format.html b/examples/format.html index c48a294..2bf5aa2 100644 --- a/examples/format.html +++ b/examples/format.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>format.js - example - rc-time-picker@3.3.0</title> | 5 | <title>format.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/format.js b/examples/format.js index 73ae2f2..da320b6 100644 --- a/examples/format.js +++ b/examples/format.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([5],{ | 1 | webpackJsonp([5],{ |
2 | 2 | ||
3 | /***/ 173: | 3 | /***/ 244: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(78); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 78: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | 17 | ||
26 | 18 | ||
27 | 19 | ||
@@ -39,7 +31,15 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
39 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], { defaultValue: __WEBPACK_IMPORTED_MODULE_3_moment___default()(), showHour: false, showMinute: false }) | 31 | __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], { defaultValue: __WEBPACK_IMPORTED_MODULE_3_moment___default()(), showHour: false, showMinute: false }) |
40 | ), document.getElementById('__react-content')); | 32 | ), document.getElementById('__react-content')); |
41 | 33 | ||
34 | /***/ }), | ||
35 | |||
36 | /***/ 481: | ||
37 | /***/ (function(module, exports, __webpack_require__) { | ||
38 | |||
39 | module.exports = __webpack_require__(244); | ||
40 | |||
41 | |||
42 | /***/ }) | 42 | /***/ }) |
43 | 43 | ||
44 | },[173]); | 44 | },[481]); |
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/format.js.map b/examples/format.js.map index 12facc3..06dd1c3 100644 --- a/examples/format.js.map +++ b/examples/format.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/format.js"],"names":["ReactDom","render","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA,iDAAAA,CAASC,MAAT,CACE;AAAA;AAAA;AACE,8DAAC,+DAAD,IAAY,cAAc,8CAAAC,EAA1B,EAAoC,UAAU,KAA9C,GADF;AAEE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,GAFF;AAGE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,GAHF;AAKE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,EAAuD,YAAY,KAAnE,GALF;AAME,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,UAAU,KAA9C,EAAqD,YAAY,KAAjE,GANF;AAOE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,UAAU,KAA9C,EAAqD,YAAY,KAAjE;AAPF,CADF,EAUEC,SAASC,cAAT,CAAwB,iBAAxB,CAVF,E","file":"examples/format.js","sourcesContent":["import 'rc-time-picker/assets/index.less';\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nReactDom.render(\n <div>\n <TimePicker defaultValue={moment()} showHour={false} />\n <TimePicker defaultValue={moment()} showMinute={false} />\n <TimePicker defaultValue={moment()} showSecond={false} />\n\n <TimePicker defaultValue={moment()} showMinute={false} showSecond={false} />\n <TimePicker defaultValue={moment()} showHour={false} showSecond={false}/>\n <TimePicker defaultValue={moment()} showHour={false} showMinute={false} />\n </div>\n, document.getElementById('__react-content'));\n\n\n\n// WEBPACK FOOTER //\n// ./examples/format.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/format.js"],"names":["ReactDom","render","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA,iDAAAA,CAASC,MAAT,CACE;AAAA;AAAA;AACE,8DAAC,+DAAD,IAAY,cAAc,8CAAAC,EAA1B,EAAoC,UAAU,KAA9C,GADF;AAEE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,GAFF;AAGE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,GAHF;AAKE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,YAAY,KAAhD,EAAuD,YAAY,KAAnE,GALF;AAME,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,UAAU,KAA9C,EAAqD,YAAY,KAAjE,GANF;AAOE,8DAAC,+DAAD,IAAY,cAAc,8CAAAA,EAA1B,EAAoC,UAAU,KAA9C,EAAqD,YAAY,KAAjE;AAPF,CADF,EAUEC,SAASC,cAAT,CAAwB,iBAAxB,CAVF,E","file":"examples/format.js","sourcesContent":["import 'rc-time-picker/assets/index.less';\nimport React from 'react';\nimport ReactDom from 'react-dom';\nimport moment from 'moment';\nimport TimePicker from 'rc-time-picker';\n\nReactDom.render(\n <div>\n <TimePicker defaultValue={moment()} showHour={false} />\n <TimePicker defaultValue={moment()} showMinute={false} />\n <TimePicker defaultValue={moment()} showSecond={false} />\n\n <TimePicker defaultValue={moment()} showMinute={false} showSecond={false} />\n <TimePicker defaultValue={moment()} showHour={false} showSecond={false}/>\n <TimePicker defaultValue={moment()} showHour={false} showMinute={false} />\n </div>\n, document.getElementById('__react-content'));\n\n\n\n// WEBPACK FOOTER //\n// ./examples/format.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/hidden.html b/examples/hidden.html index f4f289c..f33730e 100644 --- a/examples/hidden.html +++ b/examples/hidden.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>hidden.js - example - rc-time-picker@3.3.0</title> | 5 | <title>hidden.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/hidden.js b/examples/hidden.js index a0fc59e..b4f16c4 100644 --- a/examples/hidden.js +++ b/examples/hidden.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([4],{ | 1 | webpackJsonp([4],{ |
2 | 2 | ||
3 | /***/ 174: | 3 | /***/ 245: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(79); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 79: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | /* eslint no-console:0 */ | 17 | /* eslint no-console:0 */ |
26 | 18 | ||
27 | 19 | ||
@@ -56,7 +48,15 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
56 | hideDisabledOptions: true | 48 | hideDisabledOptions: true |
57 | }), document.getElementById('__react-content')); | 49 | }), document.getElementById('__react-content')); |
58 | 50 | ||
51 | /***/ }), | ||
52 | |||
53 | /***/ 482: | ||
54 | /***/ (function(module, exports, __webpack_require__) { | ||
55 | |||
56 | module.exports = __webpack_require__(245); | ||
57 | |||
58 | |||
59 | /***/ }) | 59 | /***/ }) |
60 | 60 | ||
61 | },[174]); | 61 | },[482]); |
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/hidden.js.map b/examples/hidden.js.map index c97184e..172bb25 100644 --- a/examples/hidden.js.map +++ b/examples/hidden.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/hidden.js"],"names":["showSecond","str","onChange","value","console","log","format","ReactDom","render","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAEA,SAASE,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMG,MAAN,CAAaL,GAAb,CAArB;AACD;;AAED,iDAAAM,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,UAAQP,GADV;AAEE,cAAYD;AACZ;AAHF,IAIE,kBAAkB,8CAAAS,EAJpB;AAKE,aAAU,KALZ;AAME,YAAUP,QANZ;AAOE,iBAAe;AAAA,WAAM,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,EAA4B,EAA5B,EAAgC,EAAhC,CAAN;AAAA,GAPjB;AAQE,mBAAiB;AAAA,WAAM,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,CAAN;AAAA,GARnB;AASE;AATF,EADF,EAYEQ,SAASC,cAAT,CAAwB,iBAAxB,CAZF,E","file":"examples/hidden.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nReactDom.render(\n <TimePicker\n format={str}\n showSecond={showSecond}\n // use to control utfOffset, locale, default open value\n defaultOpenValue={moment()}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={() => [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23]}\n disabledMinutes={() => [0, 2, 4, 6, 8]}\n hideDisabledOptions\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/hidden.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/hidden.js"],"names":["showSecond","str","onChange","value","console","log","format","ReactDom","render","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAEA,SAASE,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMG,MAAN,CAAaL,GAAb,CAArB;AACD;;AAED,iDAAAM,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,UAAQP,GADV;AAEE,cAAYD;AACZ;AAHF,IAIE,kBAAkB,8CAAAS,EAJpB;AAKE,aAAU,KALZ;AAME,YAAUP,QANZ;AAOE,iBAAe;AAAA,WAAM,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,EAAgB,CAAhB,EAAmB,CAAnB,EAAsB,CAAtB,EAAyB,CAAzB,EAA4B,EAA5B,EAAgC,EAAhC,CAAN;AAAA,GAPjB;AAQE,mBAAiB;AAAA,WAAM,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,CAAV,EAAa,CAAb,CAAN;AAAA,GARnB;AASE;AATF,EADF,EAYEQ,SAASC,cAAT,CAAwB,iBAAxB,CAZF,E","file":"examples/hidden.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nReactDom.render(\n <TimePicker\n format={str}\n showSecond={showSecond}\n // use to control utfOffset, locale, default open value\n defaultOpenValue={moment()}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={() => [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23]}\n disabledMinutes={() => [0, 2, 4, 6, 8]}\n hideDisabledOptions\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/hidden.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/open.html b/examples/open.html index 2b6f6d2..7c18529 100644 --- a/examples/open.html +++ b/examples/open.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>open.js - example - rc-time-picker@3.3.0</title> | 5 | <title>open.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/open.js b/examples/open.js index 83860ac..158e56b 100644 --- a/examples/open.js +++ b/examples/open.js | |||
@@ -1,33 +1,25 @@ | |||
1 | webpackJsonp([3],{ | 1 | webpackJsonp([3],{ |
2 | 2 | ||
3 | /***/ 175: | 3 | /***/ 246: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(80); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 80: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(2); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(18); |
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | 9 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(7); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(19); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | 11 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(21); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | 13 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(3); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(20); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | 15 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 17 | /* 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); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1); |
27 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); | 19 | /* 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); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3); |
29 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); | 21 | /* 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__(9); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_time_picker__ = __webpack_require__(6); |
31 | 23 | ||
32 | 24 | ||
33 | 25 | ||
@@ -93,7 +85,15 @@ var App = function (_React$Component) { | |||
93 | 85 | ||
94 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); | 86 | __WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); |
95 | 87 | ||
88 | /***/ }), | ||
89 | |||
90 | /***/ 483: | ||
91 | /***/ (function(module, exports, __webpack_require__) { | ||
92 | |||
93 | module.exports = __webpack_require__(246); | ||
94 | |||
95 | |||
96 | /***/ }) | 96 | /***/ }) |
97 | 97 | ||
98 | },[175]); | 98 | },[483]); |
99 | //# sourceMappingURL=open.js.map \ No newline at end of file | 99 | //# sourceMappingURL=open.js.map \ No newline at end of file |
diff --git a/examples/open.js.map b/examples/open.js.map index cd831ab..23b2902 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;;;;;;;;;;;;;;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 | ||
diff --git a/examples/pick-time.html b/examples/pick-time.html index fc476f3..81bbe6c 100644 --- a/examples/pick-time.html +++ b/examples/pick-time.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>pick-time.js - example - rc-time-picker@3.3.0</title> | 5 | <title>pick-time.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/pick-time.js b/examples/pick-time.js index 5e253c3..7898a4d 100644 --- a/examples/pick-time.js +++ b/examples/pick-time.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([2],{ | 1 | webpackJsonp([2],{ |
2 | 2 | ||
3 | /***/ 176: | 3 | /***/ 247: |
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__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | /* eslint no-console:0 */ | 17 | /* eslint no-console:0 */ |
26 | 18 | ||
27 | 19 | ||
@@ -48,7 +40,15 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU | |||
48 | onChange: onChange | 40 | onChange: onChange |
49 | }), document.getElementById('__react-content')); | 41 | }), document.getElementById('__react-content')); |
50 | 42 | ||
43 | /***/ }), | ||
44 | |||
45 | /***/ 484: | ||
46 | /***/ (function(module, exports, __webpack_require__) { | ||
47 | |||
48 | module.exports = __webpack_require__(247); | ||
49 | |||
50 | |||
51 | /***/ }) | 51 | /***/ }) |
52 | 52 | ||
53 | },[176]); | 53 | },[484]); |
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/pick-time.js.map b/examples/pick-time.js.map index 684acdf..26982ea 100644 --- a/examples/pick-time.js.map +++ b/examples/pick-time.js.map | |||
@@ -1 +1 @@ | |||
{"version":3,"sources":["webpack:///./examples/pick-time.js"],"names":["showSecond","str","onChange","value","console","log","format","ReactDom","render","width","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAGA,SAASE,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMG,MAAN,CAAaL,GAAb,CAArB;AACD;;AAED,iDAAAM,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,SAAO,EAAEC,OAAO,GAAT,EADT;AAEE,cAAYT,UAFd;AAGE,gBAAc,8CAAAU,EAHhB;AAIE,aAAU,KAJZ;AAKE,YAAUR;AALZ,EADF,EAQES,SAASC,cAAT,CAAwB,iBAAxB,CARF,E","file":"examples/pick-time.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nReactDom.render(\n <TimePicker\n style={{ width: 100 }}\n showSecond={showSecond}\n defaultValue={moment()}\n className=\"xxx\"\n onChange={onChange}\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/pick-time.js"],"sourceRoot":""} \ No newline at end of file | {"version":3,"sources":["webpack:///./examples/pick-time.js"],"names":["showSecond","str","onChange","value","console","log","format","ReactDom","render","width","moment","document","getElementById"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;;AAEA,IAAMA,aAAa,IAAnB;AACA,IAAMC,MAAMD,aAAa,UAAb,GAA0B,OAAtC;;AAGA,SAASE,QAAT,CAAkBC,KAAlB,EAAyB;AACvBC,UAAQC,GAAR,CAAYF,SAASA,MAAMG,MAAN,CAAaL,GAAb,CAArB;AACD;;AAED,iDAAAM,CAASC,MAAT,CACE,4DAAC,+DAAD;AACE,SAAO,EAAEC,OAAO,GAAT,EADT;AAEE,cAAYT,UAFd;AAGE,gBAAc,8CAAAU,EAHhB;AAIE,aAAU,KAJZ;AAKE,YAAUR;AALZ,EADF,EAQES,SAASC,cAAT,CAAwB,iBAAxB,CARF,E","file":"examples/pick-time.js","sourcesContent":["/* eslint no-console:0 */\n\nimport 'rc-time-picker/assets/index.less';\n\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nimport moment from 'moment';\n\nimport TimePicker from 'rc-time-picker';\n\nconst showSecond = true;\nconst str = showSecond ? 'HH:mm:ss' : 'HH:mm';\n\n\nfunction onChange(value) {\n console.log(value && value.format(str));\n}\n\nReactDom.render(\n <TimePicker\n style={{ width: 100 }}\n showSecond={showSecond}\n defaultValue={moment()}\n className=\"xxx\"\n onChange={onChange}\n />,\n document.getElementById('__react-content')\n);\n\n\n\n// WEBPACK FOOTER //\n// ./examples/pick-time.js"],"sourceRoot":""} \ No newline at end of file | ||
diff --git a/examples/step.html b/examples/step.html index 93f5490..0a9246b 100644 --- a/examples/step.html +++ b/examples/step.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>step.js - example - rc-time-picker@3.3.0</title> | 5 | <title>step.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/step.js b/examples/step.js index b9274d2..e3edb9b 100644 --- a/examples/step.js +++ b/examples/step.js | |||
@@ -1,27 +1,19 @@ | |||
1 | webpackJsonp([1],{ | 1 | webpackJsonp([1],{ |
2 | 2 | ||
3 | /***/ 177: | 3 | /***/ 248: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(82); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 82: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 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__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(1); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); | 11 | /* 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); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(3); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); | 13 | /* 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); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(2); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__); | 15 | /* 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__(9); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(6); |
25 | 17 | ||
26 | 18 | ||
27 | 19 | ||
@@ -31,7 +23,15 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | |||
31 | 23 | ||
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')); | 24 | __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 | 25 | ||
26 | /***/ }), | ||
27 | |||
28 | /***/ 485: | ||
29 | /***/ (function(module, exports, __webpack_require__) { | ||
30 | |||
31 | module.exports = __webpack_require__(248); | ||
32 | |||
33 | |||
34 | /***/ }) | 34 | /***/ }) |
35 | 35 | ||
36 | },[177]); | 36 | },[485]); |
37 | //# sourceMappingURL=step.js.map \ No newline at end of file | 37 | //# sourceMappingURL=step.js.map \ No newline at end of file |
diff --git a/examples/step.js.map b/examples/step.js.map index d46f8d6..b0c6ed2 100644 --- a/examples/step.js.map +++ b/examples/step.js.map | |||
@@ -1 +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 | {"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.html b/examples/value-and-defaultValue.html index 1dfbc41..6c18f33 100644 --- a/examples/value-and-defaultValue.html +++ b/examples/value-and-defaultValue.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>value-and-defaultValue.js - example - rc-time-picker@3.3.0</title> | 5 | <title>value-and-defaultValue.js - example - rc-time-picker@3.3.1</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 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"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@3.3.0</h1> | 266 | <h1>rc-time-picker@3.3.1</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
diff --git a/examples/value-and-defaultValue.js b/examples/value-and-defaultValue.js index 3d8830b..d87c585 100644 --- a/examples/value-and-defaultValue.js +++ b/examples/value-and-defaultValue.js | |||
@@ -1,35 +1,27 @@ | |||
1 | webpackJsonp([0],{ | 1 | webpackJsonp([0],{ |
2 | 2 | ||
3 | /***/ 178: | 3 | /***/ 249: |
4 | /***/ (function(module, exports, __webpack_require__) { | ||
5 | |||
6 | module.exports = __webpack_require__(83); | ||
7 | |||
8 | |||
9 | /***/ }), | ||
10 | |||
11 | /***/ 83: | ||
12 | /***/ (function(module, __webpack_exports__, __webpack_require__) { | 4 | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
13 | 5 | ||
14 | "use strict"; | 6 | "use strict"; |
15 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | 7 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); |
16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(2); | 8 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(18); |
17 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); | 9 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); |
18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(7); | 10 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(19); |
19 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); | 11 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); |
20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(4); | 12 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(21); |
21 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); | 13 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); |
22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(3); | 14 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(20); |
23 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); | 15 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); |
24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(11); | 16 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(8); |
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__); | 17 | /* 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); | 18 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(1); |
27 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); | 19 | /* 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); | 20 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(3); |
29 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); | 21 | /* 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); | 22 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment__ = __webpack_require__(2); |
31 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__); | 23 | /* 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__(9); | 24 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_time_picker__ = __webpack_require__(6); |
33 | 25 | ||
34 | 26 | ||
35 | 27 | ||
@@ -97,7 +89,15 @@ var App = function (_React$Component) { | |||
97 | 89 | ||
98 | __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_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); |
99 | 91 | ||
92 | /***/ }), | ||
93 | |||
94 | /***/ 486: | ||
95 | /***/ (function(module, exports, __webpack_require__) { | ||
96 | |||
97 | module.exports = __webpack_require__(249); | ||
98 | |||
99 | |||
100 | /***/ }) | 100 | /***/ }) |
101 | 101 | ||
102 | },[178]); | 102 | },[486]); |
103 | //# sourceMappingURL=value-and-defaultValue.js.map \ No newline at end of file | 103 | //# 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..713796e 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;;;;;;;;;;;;;;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 | ||