giftValue: [
{ required: true, message: '请填写礼品价值', trigger: 'change' },
{ pattern: /^(?!0+$)(?!0*\.0*$)\d{1,16}(\.\d{1,6})?$/, message: '只能输入16位整数和6位小数', trigger: 'blur' }
// { pattern: /^(0|[1-9]\d{0,9})$(\.\d{1,6})?$/, message: '只能输入16位整数和6位小数', trigger: 'blur' }
]
{ pattern: /^(\d|[1-9]\d|100)(\.\d{1,2})?$/, message: '权重范围为0~100小数点保留2位', trigger: 'blur' }
网友评论