onChange={(value: any) => { let val = Number(value); if (val < 1) { value = ''; setDeviceNumber(''); } else { setDeviceNumber(Number(value.replace(/[^\d]/g, ''))); } }}
标签:正整数,val,Number,value,setDeviceNumber,Input,antd From: https://www.cnblogs.com/eternityyl/p/17756766.html