diff options
Diffstat (limited to 'examples/common.js')
-rw-r--r-- | examples/common.js | 12 |
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() { |