|
@@ -120,10 +120,10 @@ class SlideSelect extends Component {
|
|
|
refreshScroller()&&refreshScroller().scrollYTo(290);
|
|
|
})*/
|
|
|
}
|
|
|
- handleInput(e,item,sign){
|
|
|
+ handleInput(e,item,sign,tip){
|
|
|
const tempTimer = this.state.timer
|
|
|
const {setTipValue} = this.props
|
|
|
- setTipValue(item,e.target.value,sign)
|
|
|
+ setTipValue(item,e.target.value,sign,tip)
|
|
|
if(sign == 2){
|
|
|
let type = getArrow(item.minValue,item.maxValue,e.target.value||null)
|
|
|
this.setState({
|
|
@@ -182,7 +182,7 @@ class SlideSelect extends Component {
|
|
|
placeholder='时间'
|
|
|
autoComplete="off"
|
|
|
value={item.time}
|
|
|
- onInput={(e)=>{this.handleInput(e,item,1)}}
|
|
|
+ onInput={(e)=>{this.handleInput(e,item,idx)}}
|
|
|
onBlur={()=>{this.handleBlur()}}
|
|
|
/>
|
|
|
</span>
|
|
@@ -207,7 +207,7 @@ class SlideSelect extends Component {
|
|
|
placeholder='(填写)'
|
|
|
autoComplete="off"
|
|
|
value={item.value||item.otherValue}
|
|
|
- onInput={(e)=>{this.handleInput(e,item,2)}}
|
|
|
+ onInput={(e)=>{this.handleInput(e,item,idx)}}
|
|
|
onBlur={()=>{this.handleBlur()}}
|
|
|
/><img style={{display:style==1||style==2?'inline-block':'none'}} src={style==1?down:style==2?up:''} />{item.units}
|
|
|
</span>
|
|
@@ -220,7 +220,7 @@ class SlideSelect extends Component {
|
|
|
placeholder='时间'
|
|
|
autoComplete="off"
|
|
|
value={item.time}
|
|
|
- onInput={(e)=>{this.handleInput(e,item,1)}}
|
|
|
+ onInput={(e)=>{this.handleInput(e,item,idx,1)}}
|
|
|
onBlur={()=>{this.handleBlur()}}
|
|
|
/>
|
|
|
</span>
|