aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/common.js
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-03-31 17:37:18 +0800
committeryiminghe <yiminghe@gmail.com>2016-03-31 17:37:18 +0800
commitd972d9e7c1ad59eb8524cc6c06734307b081d08e (patch)
tree9dc7e7dea8cd1e9f45b29a7b5352d3aaa9bcd03e /examples/common.js
parent5894e17c2a086ba4296a28b447795a6733835e97 (diff)
downloadtime-picker-d972d9e7c1ad59eb8524cc6c06734307b081d08e.tar.gz
time-picker-d972d9e7c1ad59eb8524cc6c06734307b081d08e.tar.zst
time-picker-d972d9e7c1ad59eb8524cc6c06734307b081d08e.zip
Updates
Diffstat (limited to 'examples/common.js')
-rw-r--r--examples/common.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/common.js b/examples/common.js
index be1ccf2..5f073b6 100644
--- a/examples/common.js
+++ b/examples/common.js
@@ -22536,11 +22536,13 @@
22536 _react2['default'].createElement( 22536 _react2['default'].createElement(
22537 'span', 22537 'span',
22538 { className: prefixCls + ' ' + className, style: style }, 22538 { className: prefixCls + ' ' + className, style: style },
22539 _react2['default'].createElement('input', { className: prefixCls + '-input', 22539 _react2['default'].createElement('input', {
22540 className: prefixCls + '-input',
22540 ref: 'picker', type: 'text', placeholder: placeholder, 22541 ref: 'picker', type: 'text', placeholder: placeholder,
22541 readOnly: true, 22542 readOnly: true,
22542 onKeyDown: this.onKeyDown, 22543 onKeyDown: this.onKeyDown,
22543 disabled: disabled, value: value && this.getFormatter().format(value) }), 22544 disabled: disabled, value: value && this.getFormatter().format(value) || ''
22545 }),
22544 _react2['default'].createElement('span', { className: prefixCls + '-icon' }) 22546 _react2['default'].createElement('span', { className: prefixCls + '-icon' })
22545 ) 22547 )
22546 ); 22548 );
@@ -27697,11 +27699,13 @@
27697 var str = _state.str; 27699 var str = _state.str;
27698 27700
27699 var invalidClass = invalid ? prefixCls + '-input-invalid' : ''; 27701 var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
27700 return _react2['default'].createElement('input', { className: prefixCls + '-input ' + invalidClass, 27702 return _react2['default'].createElement('input', {
27703 className: prefixCls + '-input ' + invalidClass,
27701 ref: 'input', 27704 ref: 'input',
27702 onKeyDown: this.onKeyDown, 27705 onKeyDown: this.onKeyDown,
27703 value: str, 27706 value: str,
27704 placeholder: placeholder, onChange: this.onInputChange }); 27707 placeholder: placeholder, onChange: this.onInputChange
27708 });
27705 }, 27709 },
27706 27710
27707 selectRange: function selectRange() { 27711 selectRange: function selectRange() {