Commit e565f06b authored by XieZhiXiong's avatar XieZhiXiong

fix: 修改校验规则

parent ff2f0c60
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-12-30 14:49:11 * @Date: 2020-12-30 14:49:11
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-04 10:50:14 * @LastEditTime: 2021-01-13 11:50:14
* @Description: * @Description:
*/ */
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
...@@ -33,8 +33,8 @@ export const repaymentModalSchema: ISchema = { ...@@ -33,8 +33,8 @@ export const repaymentModalSchema: ISchema = {
message: '请填写还款金额', message: '请填写还款金额',
}, },
{ {
pattern: /^[1-9]+[0-9]*(?:\.\d{0,2})?$/, pattern: PATTERN_MAPS.money,
message: '请填写大于0的正数', message: '请输入整数或小数位不超过两位的小数',
}, },
], ],
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment