[[- range .FormFields]]
[[- 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 .IsRichText]]
[[- else if and (eq .Type "CharField") ((containsAny .Comment "备注" "介绍" "描述" "说明"))]]
[[- 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") (not .Choices)]]
[[- else if eq .Type "BooleanField"]]
[[- else if eq .Type "DateField"]]
[[- else if eq .Type "DateTimeField"]]
[[- else if eq .Type "TextField"]]
[[- else if or (eq .Type "FloatField") (eq .Type "DecimalField")]]
[[- end]]
[[- end]]