aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-10-22 17:06:13 +0800
committerafc163 <afc163@gmail.com>2017-10-22 17:06:13 +0800
commit5166b9aec0faf0451672f8ad52a8767a633e760c (patch)
treefe80b907be297760672f392f0bfc33a5dd85213c /examples
parentd156d507717331bdcf86d6c367bfeb3c880ce96e (diff)
downloadtime-picker-5166b9aec0faf0451672f8ad52a8767a633e760c.tar.gz
time-picker-5166b9aec0faf0451672f8ad52a8767a633e760c.tar.zst
time-picker-5166b9aec0faf0451672f8ad52a8767a633e760c.zip
Updates
Diffstat (limited to 'examples')
-rw-r--r--examples/12hours.html4
-rw-r--r--examples/12hours.js30
-rw-r--r--examples/12hours.js.map2
-rw-r--r--examples/disabled.html34
-rw-r--r--examples/disabled.js67
-rw-r--r--examples/disabled.js.map2
-rw-r--r--examples/format.html4
-rw-r--r--examples/format.js30
-rw-r--r--examples/format.js.map2
-rw-r--r--examples/hidden.html4
-rw-r--r--examples/hidden.js30
-rw-r--r--examples/hidden.js.map2
-rw-r--r--examples/open.html11
-rw-r--r--examples/open.js43
-rw-r--r--examples/open.js.map2
-rw-r--r--examples/pick-time.html4
-rw-r--r--examples/pick-time.js30
-rw-r--r--examples/pick-time.js.map2
-rw-r--r--examples/value-and-defaultValue.html4
-rw-r--r--examples/value-and-defaultValue.js38
-rw-r--r--examples/value-and-defaultValue.js.map2
21 files changed, 192 insertions, 155 deletions
diff --git a/examples/12hours.html b/examples/12hours.html
index 22da3af..e9cb588 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@2.4.1</title> 5 <title>12hours.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</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 8264afd..108b5f9 100644
--- a/examples/12hours.js
+++ b/examples/12hours.js
@@ -1,19 +1,27 @@
1webpackJsonp([6],{ 1webpackJsonp([6],{
2 2
3/***/ 143: 3/***/ 171:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(76);
7
8
9/***/ }),
10
11/***/ 76:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(29); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11/* 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__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
13/* 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__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8);
15/* 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__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12);
17/* eslint no-console:0 */ 25/* eslint no-console:0 */
18 26
19 27
@@ -42,15 +50,7 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU
42 use12Hours: true 50 use12Hours: true
43}), document.getElementById('__react-content')); 51}), document.getElementById('__react-content'));
44 52
45/***/ }),
46
47/***/ 325:
48/***/ (function(module, exports, __webpack_require__) {
49
50module.exports = __webpack_require__(143);
51
52
53/***/ }) 53/***/ })
54 54
55},[325]); 55},[171]);
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/12hours.js.map b/examples/12hours.js.map
index effd703..6a20f4f 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;AANF,EADF,EASEW,SAASC,cAAT,CAAwB,iBAAxB,CATF,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 />,\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;AANF,EADF,EASEW,SAASC,cAAT,CAAwB,iBAAxB,CATF,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 />,\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 985998f..4ba0c2f 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@2.4.1</title> 5 <title>disabled.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</h1>
267 267
268 <p>React TimePicker</p> 268 <p>React TimePicker</p>
269 </div> 269 </div>
@@ -319,17 +319,25 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
319} 319}
320 320
321ReactDom.render( 321ReactDom.render(
322 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">TimePicker</span> 322 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>
323 <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{showSecond}</span> 323 <span class="hljs-tag">&lt;<span class="hljs-title">h3</span>&gt;</span>Disabled picker<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
324 <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{now}</span> 324 <span class="hljs-tag">&lt;<span class="hljs-title">TimePicker</span>
325 <span class="hljs-attribute">className</span>=<span class="hljs-value">"xxx"</span> 325 <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{now}</span>
326 <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{onChange}</span> 326 <span class="hljs-attribute">disabled</span>
327 <span class="hljs-attribute">disabledHours</span>=<span class="hljs-value">{disabledHours}</span> 327 <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{onChange}</span>
328 <span class="hljs-attribute">disabledMinutes</span>=<span class="hljs-value">{disabledMinutes}</span> 328 /&gt;</span>
329 <span class="hljs-attribute">disabledSeconds</span>=<span class="hljs-value">{disabledSeconds}</span> 329 <span class="hljs-tag">&lt;<span class="hljs-title">h3</span>&gt;</span>Disabled options<span class="hljs-tag">&lt;/<span class="hljs-title">h3</span>&gt;</span>
330 /&gt;</span>, 330 <span class="hljs-tag">&lt;<span class="hljs-title">TimePicker</span>
331 document.getElementById('__react-content') 331 <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{showSecond}</span>
332); 332 <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{now}</span>
333 <span class="hljs-attribute">className</span>=<span class="hljs-value">"xxx"</span>
334 <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{onChange}</span>
335 <span class="hljs-attribute">disabledHours</span>=<span class="hljs-value">{disabledHours}</span>
336 <span class="hljs-attribute">disabledMinutes</span>=<span class="hljs-value">{disabledMinutes}</span>
337 <span class="hljs-attribute">disabledSeconds</span>=<span class="hljs-value">{disabledSeconds}</span>
338 /&gt;</span>
339 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
340, document.getElementById('__react-content'));
333</span></code></pre></div> 341</span></code></pre></div>
334 </div> 342 </div>
335 <a href="http://github.com/react-component/time-picker"> 343 <a href="http://github.com/react-component/time-picker">
diff --git a/examples/disabled.js b/examples/disabled.js
index b7cd754..4d547dc 100644
--- a/examples/disabled.js
+++ b/examples/disabled.js
@@ -1,19 +1,27 @@
1webpackJsonp([5],{ 1webpackJsonp([5],{
2 2
3/***/ 144: 3/***/ 172:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(77);
7
8
9/***/ }),
10
11/***/ 77:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(29); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11/* 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__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
13/* 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__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8);
15/* 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__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12);
17/* eslint no-console:0 */ 25/* eslint no-console:0 */
18 26
19 27
@@ -63,25 +71,36 @@ function disabledSeconds(h, m) {
63 return [h + m % 60]; 71 return [h + m % 60];
64} 72}
65 73
66__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 */], { 74__WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
67 showSecond: showSecond, 75 'div',
68 defaultValue: now, 76 null,
69 className: 'xxx', 77 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
70 onChange: onChange, 78 'h3',
71 disabledHours: disabledHours, 79 null,
72 disabledMinutes: disabledMinutes, 80 'Disabled picker'
73 disabledSeconds: disabledSeconds 81 ),
74}), document.getElementById('__react-content')); 82 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], {
75 83 defaultValue: now,
76/***/ }), 84 disabled: true,
77 85 onChange: onChange
78/***/ 326: 86 }),
79/***/ (function(module, exports, __webpack_require__) { 87 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
80 88 'h3',
81module.exports = __webpack_require__(144); 89 null,
82 90 'Disabled options'
91 ),
92 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], {
93 showSecond: showSecond,
94 defaultValue: now,
95 className: 'xxx',
96 onChange: onChange,
97 disabledHours: disabledHours,
98 disabledMinutes: disabledMinutes,
99 disabledSeconds: disabledSeconds
100 })
101), document.getElementById('__react-content'));
83 102
84/***/ }) 103/***/ })
85 104
86},[326]); 105},[172]);
87//# 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 c37df32..2ce189f 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,4DAAC,+DAAD;AACE,cAAYvB,UADd;AAEE,gBAAcE,GAFhB;AAGE,aAAU,KAHZ;AAIE,YAAUW,QAJZ;AAKE,iBAAeI,aALjB;AAME,mBAAiBC,eANnB;AAOE,mBAAiBE;AAPnB,EADF,EAUEI,SAASC,cAAT,CAAwB,iBAAxB,CAVF,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 <TimePicker\n showSecond={showSecond}\n defaultValue={now}\n className=\"xxx\"\n onChange={onChange}\n disabledHours={disabledHours}\n disabledMinutes={disabledMinutes}\n disabledSeconds={disabledSeconds}\n />,\n document.getElementById('__react-content')\n);\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 7d5603d..73f4bd4 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@2.4.1</title> 5 <title>format.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</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 d25be45..80684ce 100644
--- a/examples/format.js
+++ b/examples/format.js
@@ -1,19 +1,27 @@
1webpackJsonp([4],{ 1webpackJsonp([4],{
2 2
3/***/ 145: 3/***/ 173:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(78);
7
8
9/***/ }),
10
11/***/ 78:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(29); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11/* 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__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
13/* 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__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8);
15/* 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__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12);
17 25
18 26
19 27
@@ -31,15 +39,7 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU
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 }) 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 })
32), document.getElementById('__react-content')); 40), document.getElementById('__react-content'));
33 41
34/***/ }),
35
36/***/ 327:
37/***/ (function(module, exports, __webpack_require__) {
38
39module.exports = __webpack_require__(145);
40
41
42/***/ }) 42/***/ })
43 43
44},[327]); 44},[173]);
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 06dd1c3..12facc3 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 5083a01..21e9283 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@2.4.1</title> 5 <title>hidden.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</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 0c5b5c0..ea97f68 100644
--- a/examples/hidden.js
+++ b/examples/hidden.js
@@ -1,19 +1,27 @@
1webpackJsonp([3],{ 1webpackJsonp([3],{
2 2
3/***/ 146: 3/***/ 174:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(79);
7
8
9/***/ }),
10
11/***/ 79:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(29); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11/* 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__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
13/* 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__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8);
15/* 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__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12);
17/* eslint no-console:0 */ 25/* eslint no-console:0 */
18 26
19 27
@@ -48,15 +56,7 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU
48 hideDisabledOptions: true 56 hideDisabledOptions: true
49}), document.getElementById('__react-content')); 57}), document.getElementById('__react-content'));
50 58
51/***/ }),
52
53/***/ 328:
54/***/ (function(module, exports, __webpack_require__) {
55
56module.exports = __webpack_require__(146);
57
58
59/***/ }) 59/***/ })
60 60
61},[328]); 61},[174]);
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 172bb25..c97184e 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 964e0d3..6ebf496 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@2.4.1</title> 5 <title>open.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</h1>
267 267
268 <p>React TimePicker</p> 268 <p>React TimePicker</p>
269 </div> 269 </div>
@@ -293,7 +293,12 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
293 <span class="hljs-keyword">return</span> ( 293 <span class="hljs-keyword">return</span> (
294 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span> 294 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>
295 <span class="hljs-tag">&lt;<span class="hljs-title">button</span> <span class="hljs-attribute">onClick</span>=<span class="hljs-value">{this.toggleOpen}</span>&gt;</span>Toggle open<span class="hljs-tag">&lt;/<span class="hljs-title">button</span>&gt;</span> 295 <span class="hljs-tag">&lt;<span class="hljs-title">button</span> <span class="hljs-attribute">onClick</span>=<span class="hljs-value">{this.toggleOpen}</span>&gt;</span>Toggle open<span class="hljs-tag">&lt;/<span class="hljs-title">button</span>&gt;</span>
296 <span class="hljs-tag">&lt;<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">open</span>=<span class="hljs-value">{this.state.open}</span> <span class="hljs-attribute">onOpen</span>=<span class="hljs-value">{this.setOpen}</span> <span class="hljs-attribute">onClose</span>=<span class="hljs-value">{this.setOpen}</span> /&gt;</span> 296 <span class="hljs-tag">&lt;<span class="hljs-title">TimePicker</span>
297 <span class="hljs-attribute">open</span>=<span class="hljs-value">{this.state.open}</span>
298 <span class="hljs-attribute">onOpen</span>=<span class="hljs-value">{this.setOpen}</span>
299 <span class="hljs-attribute">onClose</span>=<span class="hljs-value">{this.setOpen}</span>
300 <span class="hljs-attribute">focusOnOpen</span>
301 /&gt;</span>
297 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span> 302 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
298 )</span>; 303 )</span>;
299 } 304 }
diff --git a/examples/open.js b/examples/open.js
index e991685..cc5d368 100644
--- a/examples/open.js
+++ b/examples/open.js
@@ -1,25 +1,33 @@
1webpackJsonp([2],{ 1webpackJsonp([2],{
2 2
3/***/ 147: 3/***/ 175:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(80);
7
8
9/***/ }),
10
11/***/ 80:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(13); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3);
9/* 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_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(23); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4);
11/* 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_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(15); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
13/* 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_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(14); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5);
15/* 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_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(29); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(5); 26/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 27/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(8); 28/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(1);
21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); 29/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_time_picker__ = __webpack_require__(22); 30/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_time_picker__ = __webpack_require__(12);
23 31
24 32
25 33
@@ -70,7 +78,12 @@ var App = function (_React$Component) {
70 { onClick: this.toggleOpen }, 78 { onClick: this.toggleOpen },
71 'Toggle open' 79 'Toggle open'
72 ), 80 ),
73 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], { open: this.state.open, onOpen: this.setOpen, onClose: this.setOpen }) 81 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_rc_time_picker__["a" /* default */], {
82 open: this.state.open,
83 onOpen: this.setOpen,
84 onClose: this.setOpen,
85 focusOnOpen: true
86 })
74 ); 87 );
75 } 88 }
76 }]); 89 }]);
@@ -80,15 +93,7 @@ var App = function (_React$Component) {
80 93
81__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_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content'));
82 95
83/***/ }),
84
85/***/ 329:
86/***/ (function(module, exports, __webpack_require__) {
87
88module.exports = __webpack_require__(147);
89
90
91/***/ }) 96/***/ })
92 97
93},[329]); 98},[175]);
94//# 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 d76e8e6..cd831ab 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,IAAY,MAAM,KAAKJ,KAAL,CAAWC,IAA7B,EAAmC,QAAQ,KAAKC,OAAhD,EAAyD,SAAS,KAAKA,OAAvE;AAFF,OADF;AAMD;;;;EAnBe,6CAAAG,CAAMC,S;;AAsBxB,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 open={this.state.open} onOpen={this.setOpen} onClose={this.setOpen} />\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 027afe7..b08ef78 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@2.4.1</title> 5 <title>pick-time.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</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 c3a2541..979a7b4 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -1,19 +1,27 @@
1webpackJsonp([1],{ 1webpackJsonp([1],{
2 2
3/***/ 148: 3/***/ 176:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(81);
7
8
9/***/ }),
10
11/***/ 81:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(29); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(5); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
11/* 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__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(8); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
13/* 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__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(18); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(8);
15/* 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__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(22); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(12);
17/* eslint no-console:0 */ 25/* eslint no-console:0 */
18 26
19 27
@@ -40,15 +48,7 @@ __WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODU
40 onChange: onChange 48 onChange: onChange
41}), document.getElementById('__react-content')); 49}), document.getElementById('__react-content'));
42 50
43/***/ }),
44
45/***/ 330:
46/***/ (function(module, exports, __webpack_require__) {
47
48module.exports = __webpack_require__(148);
49
50
51/***/ }) 51/***/ })
52 52
53},[330]); 53},[176]);
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 26982ea..684acdf 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/value-and-defaultValue.html b/examples/value-and-defaultValue.html
index ce0b44f..5d91bd0 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@2.4.1</title> 5 <title>value-and-defaultValue.js - example - rc-time-picker@3.0.0</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@2.4.1</h1> 266 <h1>rc-time-picker@3.0.0</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 4668310..e752b5e 100644
--- a/examples/value-and-defaultValue.js
+++ b/examples/value-and-defaultValue.js
@@ -1,27 +1,35 @@
1webpackJsonp([0],{ 1webpackJsonp([0],{
2 2
3/***/ 149: 3/***/ 177:
4/***/ (function(module, exports, __webpack_require__) {
5
6module.exports = __webpack_require__(82);
7
8
9/***/ }),
10
11/***/ 82:
4/***/ (function(module, __webpack_exports__, __webpack_require__) { 12/***/ (function(module, __webpack_exports__, __webpack_require__) {
5 13
6"use strict"; 14"use strict";
7Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(13); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3);
9/* 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_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__);
10/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(23); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4);
11/* 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_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__);
12/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(15); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6);
13/* 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_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__);
14/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(14); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5);
15/* 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_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__);
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(29); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17);
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__); 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__);
18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(5); 26/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); 27/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(8); 28/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(1);
21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__); 29/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment__ = __webpack_require__(18); 30/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment__ = __webpack_require__(8);
23/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__); 31/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__);
24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_time_picker__ = __webpack_require__(22); 32/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_time_picker__ = __webpack_require__(12);
25 33
26 34
27 35
@@ -89,15 +97,7 @@ var App = function (_React$Component) {
89 97
90__WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); 98__WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content'));
91 99
92/***/ }),
93
94/***/ 331:
95/***/ (function(module, exports, __webpack_require__) {
96
97module.exports = __webpack_require__(149);
98
99
100/***/ }) 100/***/ })
101 101
102},[331]); 102},[177]);
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 713796e..84497a4 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