表单校验除string外不再添加whitespace判断
This commit is contained in:
@@ -278,11 +278,14 @@ const rule = reactive({
|
|||||||
message: '{{ .ErrorText }}',
|
message: '{{ .ErrorText }}',
|
||||||
trigger: ['input','blur'],
|
trigger: ['input','blur'],
|
||||||
},
|
},
|
||||||
|
{{- if eq .FieldType "string" }}
|
||||||
{
|
{
|
||||||
whitespace: true,
|
whitespace: true,
|
||||||
message: '不能只输入空格',
|
message: '不能只输入空格',
|
||||||
trigger: ['input', 'blur'],
|
trigger: ['input', 'blur'],
|
||||||
}],
|
}
|
||||||
|
{{- end }}
|
||||||
|
],
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user