|
@@ -195,6 +195,14 @@ class NumberDrop extends Component{
|
|
|
saveDoms&&saveDoms(that.$span);
|
|
|
})
|
|
|
}
|
|
|
+ componentWillReceiveProps(nextProps){
|
|
|
+ if((nextProps.placeholder == this.props.placeholder)&&(nextProps.value == this.props.value)){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ placeholder:nextProps.value||nextProps.placeholder
|
|
|
+ })
|
|
|
+ }
|
|
|
render(){
|
|
|
const {prefix,suffix,show,value,handleHide,allClick} = this.props;
|
|
|
const {placeholder,hasSelect} = this.state;
|