Closed mittwillson closed 2 years ago
这里是不是应该禁止输入其他字符,感觉会很奇怪
这里是不是应该禁止输入其他字符,感觉会很奇怪
这里应该不用禁止了,这里用了antd的InputNumber组件,只关心number输入,而且上面有提示输入0-100
这里是不是应该禁止输入其他字符,感觉会很奇怪
这里应该不用禁止了,这里用了antd的InputNumber组件,只关心number输入,而且上面有提示输入0-100
但依旧还是能输入其他非 number 字符串,并且输入 1%
的时候它的校验也通过了
这里是不是应该禁止输入其他字符,感觉会很奇怪
这里应该不用禁止了,这里用了antd的InputNumber组件,只关心number输入,而且上面有提示输入0-100
但依旧还是能输入其他非 number 字符串,并且输入
1%
的时候它的校验也通过了
可以输入但是不响应那个%号。我在onChange中试过不响应非number,所以如果确实想不让输入非number就不能用InputNumber了,我感觉暂时先这样吧