Commit fe4e7b4d authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改必填提示

parent e09fa0e0
......@@ -2,11 +2,12 @@
* @Author: XieZhiXiong
* @Date: 2021-08-07 15:14:04
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-07 19:50:34
* @LastEditTime: 2021-08-10 18:20:54
* @Description:
*/
import { ISchema } from '@formily/antd';
import moment from 'moment';
import { PATTERN_MAPS } from '@/constants/regExp';
export const schema: ISchema = {
type: 'object',
......@@ -87,6 +88,10 @@ export const schema: ISchema = {
required: true,
message: '请输入退货发货数量',
},
{
pattern: PATTERN_MAPS.weight,
message: '最多保留3位小数,大于或等于0'
},
],
},
},
......@@ -109,8 +114,15 @@ export const schema: ISchema = {
type: 'string',
title: '退货发货地址',
'x-component': 'CustomAddressSelect',
'x-component-props': {
isDefaultAddress: true,
},
'x-rules': [
{
required: true,
'x-component-props': {},
message: '请选择退货发货地址',
},
],
},
deliveryTime: {
type: 'date',
......
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