调整输入值可以允许小数且保留两位
// 第一个step表示每次加减的值,第二个precision表示手动输入时仅能输入两位小数
<div>
XXX: <NumberPicker ++step={0.01} ++precision={2} disabled={!isEdit} value={bloodGlucose} onChange={val => {
if (val > 100) {
return MsgBox.warning('不能大于最大值100');
}
updateState(val, 'bloodGlucoseChange')
}} /> mmol/L
</div>