Commit fd88322a authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改正则

parent 2b2db6ca
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-07 15:23:11
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-07 15:23:11
* @LastEditTime: 2021-07-09 18:11:26
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -179,8 +179,8 @@ export const schema: ISchema = {
required: true,
'x-rules': [
{
pattern: /^([0]|[1-9][0-9]*)$/,
message: '请输入0 或 正整数',
pattern: /^([0]|[1-9][0-9]{0,7})$/,
message: '请输入0 或 正整数,最多8位数',
},
],
},
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 18:00:52
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-07 16:50:38
* @LastEditTime: 2021-07-09 18:10:07
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -179,8 +179,8 @@ export const schema: ISchema = {
required: true,
'x-rules': [
{
pattern: /^([0]|[1-9][0-9]*)$/,
message: '请输入0 或 正整数',
pattern: /^([0]|[1-9][0-9]{0,7})$/,
message: '请输入0 或 正整数,最多8位数',
},
],
},
......
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