#define attr(f) name="#(f.code)" lay-filter="#(f.code)" id="#(f.code)" #if(f.nullable == '0')lay-verify="required" lay-reqtext="#(f.title)不能为空" #end #if(f.len >0) maxlength="#(f.len)" #end placeholder="请输入#(f.title)" #end #for(f : fields)
#if(f.type == 'text')
#else
#end #if(f.type == 'text') #else if(f.type == 'file') #else if(f.type == 'date') #else if(f.type == 'datetime') #else if(f.type == 'number') #else if(f.type == 'dict') #else if(f.type == 'relation') #else #end
#end