[[- range .FormFields]]
[[- if eq .CamelName $.ParentIdCamel]]
[[- else if .IsImage]]
(formData.[[.CamelName]]ImgName = name)"
:fileType="['image/jpeg', 'image/png', 'image/jpg', 'image/gif', 'image/webp']"
name="[[$.AppName]]"
:fileSize="20"
v-model:image-url="formData.[[.CamelName]]"
>
支持扩展名: jpg png jpeg gif webp; 文件大小不超过20M
[[- else if and (eq .Type "CharField") (.IsTextarea)]]
[[- else if eq .Type "CharField"]]
[[- else if and (eq .Type "IntegerField") (.Choices)]]
[[- if le (len .Choices) 3]]
[[- range .Choices]]
[[.Label]]
[[- end]]
[[- else]]
[[- end]]
[[- else if and (eq .Type "IntegerField") (eq .CamelName "sort")]]
[[- else if and (eq .Type "IntegerField") (not .Choices)]]
[[- else if eq .Type "BooleanField"]]
[[- else if eq .Type "DateField"]]
[[- else if eq .Type "DateTimeField"]]
[[- else if eq .Type "TextField"]]
[[- else if eq .Type "DecimalField"]]
[[- end]]
[[- end]]