0
点赞
收藏
分享

微信扫一扫

antd InputNumber 不允许输入小数


< Form.Item 
name = "restnum"
label = "商品库存"
style={{display:'inline-block',width:'375px'}} >
<InputNumber
placeholder = "请输入商品库存"
style={{width:'315px'}}
precision={0}
/>
</Form.Item>

划重点:precision={0}

举报

相关推荐

0 条评论