|
@@ -92,6 +92,7 @@ class NumberDrop extends Component{
|
|
|
}
|
|
|
}
|
|
|
handleNumClick(e){ //数字框不可编辑的状态时点击事件,点击将数字框变为可输入且下拉不再显示直到失焦后再次聚集
|
|
|
+ e.stopPropagation();
|
|
|
const {show,handleShow,ikey,id,patId,handleHide,value} = this.props;
|
|
|
if(show) {
|
|
|
handleHide && handleHide();
|
|
@@ -103,7 +104,6 @@ class NumberDrop extends Component{
|
|
|
});
|
|
|
handleShow&&handleShow({ikey,id:patId||id});
|
|
|
}
|
|
|
- e.stopPropagation();
|
|
|
}
|
|
|
validSymbols(txt,min,max){
|
|
|
//输入只有一个~或/时判断两边是否为合理数字,有多个为不合理
|
|
@@ -207,7 +207,7 @@ class NumberDrop extends Component{
|
|
|
contentEditable={true}
|
|
|
style={{minWidth:'10px',display:'inline-block',textAlign:'center'}}
|
|
|
ref = {this.$span}
|
|
|
- onKeyDown={this.handleKeyDowm}
|
|
|
+ onKeyUp={this.handleKeyDowm}
|
|
|
onBlur={this.numInpBlur}
|
|
|
onInput={this.handleSpanInp}
|
|
|
className={this.getSpanClass()}
|