parent
603dcec087
commit
dc8306bea9
|
@ -93,6 +93,7 @@ const ClearableLabeledInput = {
|
||||||
[`${prefixCls}-affix-wrapper-input-with-clear-btn`]:
|
[`${prefixCls}-affix-wrapper-input-with-clear-btn`]:
|
||||||
props.suffix && props.allowClear && this.$props.value,
|
props.suffix && props.allowClear && this.$props.value,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span class={affixWrapperCls} style={props.style}>
|
<span class={affixWrapperCls} style={props.style}>
|
||||||
{prefix}
|
{prefix}
|
||||||
|
|
|
@ -136,6 +136,7 @@ export default {
|
||||||
'lazy',
|
'lazy',
|
||||||
'size',
|
'size',
|
||||||
'inputType',
|
'inputType',
|
||||||
|
'className',
|
||||||
]);
|
]);
|
||||||
const { stateValue, handleKeyDown, handleChange, size, disabled } = this;
|
const { stateValue, handleKeyDown, handleChange, size, disabled } = this;
|
||||||
const inputProps = {
|
const inputProps = {
|
||||||
|
|
|
@ -170,9 +170,9 @@ export default {
|
||||||
prefix: getComponentFromProp(this, 'prefix'),
|
prefix: getComponentFromProp(this, 'prefix'),
|
||||||
addonAfter: this.renderAddonAfter(prefixCls),
|
addonAfter: this.renderAddonAfter(prefixCls),
|
||||||
addonBefore,
|
addonBefore,
|
||||||
|
className: inputClassName,
|
||||||
},
|
},
|
||||||
attrs: this.$attrs,
|
attrs: this.$attrs,
|
||||||
class: inputClassName,
|
|
||||||
ref: 'input',
|
ref: 'input',
|
||||||
on: {
|
on: {
|
||||||
pressEnter: this.onSearch,
|
pressEnter: this.onSearch,
|
||||||
|
|
|
@ -32,4 +32,5 @@ export default {
|
||||||
},
|
},
|
||||||
maxLength: PropTypes.number,
|
maxLength: PropTypes.number,
|
||||||
loading: PropTypes.bool,
|
loading: PropTypes.bool,
|
||||||
|
className: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue