aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/value-and-defaultValue.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/value-and-defaultValue.js')
-rw-r--r--examples/value-and-defaultValue.js58
1 files changed, 27 insertions, 31 deletions
diff --git a/examples/value-and-defaultValue.js b/examples/value-and-defaultValue.js
index e752b5e..927cab0 100644
--- a/examples/value-and-defaultValue.js
+++ b/examples/value-and-defaultValue.js
@@ -1,6 +1,6 @@
1webpackJsonp([0],{ 1webpackJsonp([0],{
2 2
3/***/ 177: 3/***/ 179:
4/***/ (function(module, exports, __webpack_require__) { 4/***/ (function(module, exports, __webpack_require__) {
5 5
6module.exports = __webpack_require__(82); 6module.exports = __webpack_require__(82);
@@ -13,26 +13,22 @@ module.exports = __webpack_require__(82);
13 13
14"use strict"; 14"use strict";
15Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 15Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__(3); 16/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__ = __webpack_require__(7);
17/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__); 17/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rc_time_picker_assets_index_less__);
18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__(4); 18/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__); 19/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(6); 20/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(1);
21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__); 21/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__(5); 22/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment__ = __webpack_require__(4);
23/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__); 23/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_moment__);
24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__ = __webpack_require__(17); 24/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker__ = __webpack_require__(5);
25/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker_assets_index_less__); 25var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
26/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
27/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
28/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom__ = __webpack_require__(1);
29/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom__);
30/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment__ = __webpack_require__(8);
31/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__);
32/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_rc_time_picker__ = __webpack_require__(12);
33 26
27function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
34 28
29function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
35 30
31function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
36 32
37/* eslint no-console:0 */ 33/* eslint no-console:0 */
38 34
@@ -44,21 +40,21 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
44 40
45 41
46var App = function (_React$Component) { 42var App = function (_React$Component) {
47 __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()(App, _React$Component); 43 _inherits(App, _React$Component);
48 44
49 function App() { 45 function App() {
50 var _ref; 46 var _ref;
51 47
52 var _temp, _this, _ret; 48 var _temp, _this, _ret;
53 49
54 __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()(this, App); 50 _classCallCheck(this, App);
55 51
56 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { 52 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
57 args[_key] = arguments[_key]; 53 args[_key] = arguments[_key];
58 } 54 }
59 55
60 return _ret = (_temp = (_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = { 56 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = App.__proto__ || Object.getPrototypeOf(App)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
61 value: __WEBPACK_IMPORTED_MODULE_7_moment___default()() 57 value: __WEBPACK_IMPORTED_MODULE_3_moment___default()()
62 }, _this.handleValueChange = function (value) { 58 }, _this.handleValueChange = function (value) {
63 console.log(value && value.format('HH:mm:ss')); 59 console.log(value && value.format('HH:mm:ss'));
64 _this.setState({ value: value }); 60 _this.setState({ value: value });
@@ -66,24 +62,24 @@ var App = function (_React$Component) {
66 _this.setState({ 62 _this.setState({
67 value: undefined 63 value: undefined
68 }); 64 });
69 }, _temp), __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()(_this, _ret); 65 }, _temp), _possibleConstructorReturn(_this, _ret);
70 } 66 }
71 67
72 __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()(App, [{ 68 _createClass(App, [{
73 key: 'render', 69 key: 'render',
74 value: function render() { 70 value: function render() {
75 return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 71 return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
76 'div', 72 'div',
77 null, 73 null,
78 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_rc_time_picker__["a" /* default */], { 74 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], {
79 defaultValue: this.state.value, 75 defaultValue: this.state.value,
80 onChange: this.handleValueChange 76 onChange: this.handleValueChange
81 }), 77 }),
82 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_rc_time_picker__["a" /* default */], { 78 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4_rc_time_picker__["a" /* default */], {
83 value: this.state.value, 79 value: this.state.value,
84 onChange: this.handleValueChange 80 onChange: this.handleValueChange
85 }), 81 }),
86 __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement( 82 __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(
87 'button', 83 'button',
88 { onClick: this.clear }, 84 { onClick: this.clear },
89 'clear' 85 'clear'
@@ -93,11 +89,11 @@ var App = function (_React$Component) {
93 }]); 89 }]);
94 90
95 return App; 91 return App;
96}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); 92}(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
97 93
98__WEBPACK_IMPORTED_MODULE_6_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(App, null), document.getElementById('__react-content')); 94__WEBPACK_IMPORTED_MODULE_2_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(App, null), document.getElementById('__react-content'));
99 95
100/***/ }) 96/***/ })
101 97
102},[177]); 98},[179]);
103//# sourceMappingURL=value-and-defaultValue.js.map \ No newline at end of file 99//# sourceMappingURL=value-and-defaultValue.js.map \ No newline at end of file