aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/hidden.js
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2015-12-21 17:14:48 +0800
committeryiminghe <yiminghe@gmail.com>2015-12-21 17:14:48 +0800
commit89b84f104138888b074334e76bc1dc7002f2d061 (patch)
tree052a86cd9c38588dc9bdfe675baf25f27798e90b /examples/hidden.js
parent70e9ca03bb946357ea1fc7edba8d9e3b31e0d5ca (diff)
downloadtime-picker-89b84f104138888b074334e76bc1dc7002f2d061.tar.gz
time-picker-89b84f104138888b074334e76bc1dc7002f2d061.tar.zst
time-picker-89b84f104138888b074334e76bc1dc7002f2d061.zip
Updates
Diffstat (limited to 'examples/hidden.js')
-rw-r--r--examples/hidden.js78
1 files changed, 78 insertions, 0 deletions
diff --git a/examples/hidden.js b/examples/hidden.js
new file mode 100644
index 0000000..2ef6ced
--- /dev/null
+++ b/examples/hidden.js
@@ -0,0 +1,78 @@
1webpackJsonp([1],{
2
3/***/ 0:
4/***/ function(module, exports, __webpack_require__) {
5
6 module.exports = __webpack_require__(230);
7
8
9/***/ },
10
11/***/ 230:
12/***/ function(module, exports, __webpack_require__) {
13
14 /* eslint no-console:0 */
15
16 'use strict';
17
18 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
19
20 __webpack_require__(2);
21
22 var _react = __webpack_require__(3);
23
24 var _react2 = _interopRequireDefault(_react);
25
26 var _reactDom = __webpack_require__(160);
27
28 var _reactDom2 = _interopRequireDefault(_reactDom);
29
30 var _gregorianCalendar = __webpack_require__(161);
31
32 var _gregorianCalendar2 = _interopRequireDefault(_gregorianCalendar);
33
34 var _gregorianCalendarFormat = __webpack_require__(165);
35
36 var _gregorianCalendarFormat2 = _interopRequireDefault(_gregorianCalendarFormat);
37
38 var _gregorianCalendarLibLocaleZh_CN = __webpack_require__(168);
39
40 var _gregorianCalendarLibLocaleZh_CN2 = _interopRequireDefault(_gregorianCalendarLibLocaleZh_CN);
41
42 var _rcTimePicker = __webpack_require__(169);
43
44 var _rcTimePicker2 = _interopRequireDefault(_rcTimePicker);
45
46 var _rcTimePickerSrcLocaleZh_CN = __webpack_require__(228);
47
48 var _rcTimePickerSrcLocaleZh_CN2 = _interopRequireDefault(_rcTimePickerSrcLocaleZh_CN);
49
50 var showSecond = true;
51 var str = showSecond ? 'HH:mm:ss' : 'HH:mm';
52
53 var formatter = new _gregorianCalendarFormat2['default'](str);
54
55 var now = new _gregorianCalendar2['default'](_gregorianCalendarLibLocaleZh_CN2['default']);
56 now.setTime(Date.now());
57
58 function onChange(value) {
59 console.log(value && formatter.format(value));
60 }
61
62 _reactDom2['default'].render(_react2['default'].createElement(_rcTimePicker2['default'], { formatter: formatter, locale: _rcTimePickerSrcLocaleZh_CN2['default'],
63 showSecond: showSecond,
64 defaultValue: now,
65 className: 'xxx',
66 onChange: onChange,
67 disabledHours: function () {
68 return [0, 1, 2, 3, 4, 5, 6, 7, 8, 22, 23];
69 },
70 disabledMinutes: function () {
71 return [0, 2, 4, 6, 8];
72 },
73 hideDisabledOptions: true }), document.getElementById('__react-content'));
74
75/***/ }
76
77});
78//# sourceMappingURL=hidden.js.map \ No newline at end of file