vue3模板生成报错 issues/I5MU66

pull/4001/head
zhangdaiscott 2022-08-18 09:52:01 +08:00
parent c18dfa7f92
commit 9100fca57a
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@
<#if col.fieldName != 'id'> <#if col.fieldName != 'id'>
<#assign subFieldValidType = col.fieldValidType!''> <#assign subFieldValidType = col.fieldValidType!''>
<#-- 非空校验 --> <#-- 非空校验 -->
<#if col.nullable == 'N' || fieldValidType == '*'> <#if col.nullable == 'N' || subFieldValidType == '*'>
{ required: true, message: '${'$'}{title}不能为空' }, { required: true, message: '${'$'}{title}不能为空' },
<#elseif fieldValidType!=''> <#elseif subFieldValidType!=''>
{ required: false}, { required: false},
</#if> </#if>
<#-- 其他情况下,只要有值就被认为是正则校验 --> <#-- 其他情况下,只要有值就被认为是正则校验 -->