arco-design-vue
arco-design-vue copied to clipboard
form rules 基本类型验证无效
- [ ] I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: @arco-design/[email protected]
- Browser: chrome105.0.0.0
Extra info
https://github.com/PengJiyuan/b-validate/blob/3d58a20e08ecbecf8b36acfca4f2936412a4e192/src/rules/number.ts#L11 b-validate 设置严格模式才会判断类型 https://github.com/arco-design/arco-design-vue/blob/bdad2b33b664ce987ed57cd488621a78b27b8c0d/packages/web-vue/components/form/form-item.vue#L437
form-item 并未设置严格模式
Steps to reproduce
FieldRule type 为 number | string | boolean 等基本类型时,type验证是无效的