|
@@ -22,10 +22,10 @@ class NumberUnitPan extends Component{
|
|
const {handleSelect,toClear} = this.props;
|
|
const {handleSelect,toClear} = this.props;
|
|
const text = e.target.innerText || e.target.innerHTML;
|
|
const text = e.target.innerText || e.target.innerHTML;
|
|
const preValue = this.state.value;
|
|
const preValue = this.state.value;
|
|
- if(+text==0 && !preValue){//第一位不能是0
|
|
|
|
- Notify.info("请输入正确时间");
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
|
|
+ // if(+text==0 && !preValue){//第一位不能是0
|
|
|
|
+ // Notify.info("请输入正确时间");
|
|
|
|
+ // return false;
|
|
|
|
+ // }
|
|
const value = toClear?'':this.state.value; //键盘输入替换已有的值
|
|
const value = toClear?'':this.state.value; //键盘输入替换已有的值
|
|
this.setState({
|
|
this.setState({
|
|
value: value+text
|
|
value: value+text
|