aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/12hours.js
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-03-08 15:01:49 +0800
committerafc163 <afc163@gmail.com>2017-03-08 15:01:49 +0800
commit9a24009f67ac917abfc35ec5f061cf1c240e1cea (patch)
tree505d923cb6b925e8583d023abaa0427d4f1a09a9 /examples/12hours.js
parent7967d52afc0bb7edee7dc26f30d291970a0d81a7 (diff)
downloadtime-picker-9a24009f67ac917abfc35ec5f061cf1c240e1cea.tar.gz
time-picker-9a24009f67ac917abfc35ec5f061cf1c240e1cea.tar.zst
time-picker-9a24009f67ac917abfc35ec5f061cf1c240e1cea.zip
Updates
Diffstat (limited to 'examples/12hours.js')
-rw-r--r--examples/12hours.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/12hours.js b/examples/12hours.js
new file mode 100644
index 0000000..1ed0a8a
--- /dev/null
+++ b/examples/12hours.js
@@ -0,0 +1,53 @@
1webpackJsonp([0],[
2/* 0 */
3/***/ function(module, exports, __webpack_require__) {
4
5 module.exports = __webpack_require__(1);
6
7
8/***/ },
9/* 1 */
10/***/ function(module, exports, __webpack_require__) {
11
12 'use strict';
13
14 __webpack_require__(2);
15
16 var _react = __webpack_require__(3);
17
18 var _react2 = _interopRequireDefault(_react);
19
20 var _reactDom = __webpack_require__(34);
21
22 var _reactDom2 = _interopRequireDefault(_reactDom);
23
24 var _moment = __webpack_require__(180);
25
26 var _moment2 = _interopRequireDefault(_moment);
27
28 var _rcTimePicker = __webpack_require__(181);
29
30 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker);
31
32 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
34 var format = 'h:mm a'; /* eslint no-console:0 */
35
36 var now = (0, _moment2.default)().hour(0).minute(0);
37
38 function onChange(value) {
39 console.log(value && value.format(format));
40 }
41
42 _reactDom2.default.render(_react2.default.createElement(_rcTimePicker2.default, {
43 showSecond: false,
44 defaultValue: now,
45 className: 'xxx',
46 onChange: onChange,
47 format: format,
48 use12Hours: true
49 }), document.getElementById('__react-content'));
50
51/***/ }
52]);
53//# sourceMappingURL=12hours.js.map \ No newline at end of file