{% for field in form_fields %}
{% if field.camel_name == parent_id_field %}
{% elif field.is_image %}
(formData.{{ field.camel_name }}ImgName = name)"
:fileType="['image/jpeg', 'image/png', 'image/jpg', 'image/gif', 'image/webp']"
name="{{ app_name }}"
:fileSize="20"
v-model:image-url="formData.{{ field.camel_name }}"
>
支持扩展名: jpg png jpeg gif webp; 文件大小不超过20M
{% elif field.type == 'CharField' and ('备注' in field.comment or '介绍' in field.comment or '描述' in field.comment or '说明' in field.comment) %}
{% elif field.type == 'CharField' %}
{% elif field.type == 'IntegerField' and field.choices %}
{% if field.choices|length <= 2 %}
{% for choice in field.choices %}
{{ choice.label }}
{% endfor %}
{% else %}
{{ '{{' }} item.name {{ '}}' }}
{% endif %}
{% elif field.type == 'IntegerField' and not field.choices %}
{% elif field.type == 'BooleanField' %}
{% elif field.type == 'DateField' %}
{% elif field.type == 'DateTimeField' %}
{% elif field.type == 'TextField' %}
{% elif field.type == 'FloatField' or field.type == 'DecimalField' %}
{% endif %}
{% endfor %}