签入版本

This commit is contained in:
2026-09-12 11:46:38 +08:00
commit c5a9d20cb8
932 changed files with 116861 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { FormSchema } from '@/components/Form/index';
/**
* 查询表单配置
* 定义搜索区域的表单项
*/
export const schemas: FormSchema[] = [
{% for field in filter_fields %}
{
name: '{{ field.name }}',
component: '{% if field.type == 'CharField' %}Input{% elif field.choices %}Select{% elif field.type == 'IntegerField' and not field.choices %}InputNumber{% elif field.type == 'DateField' %}DatePicker{% else %}Input{% endif %}',
label: '{{ field.label }}',
componentProps: {
placeholder: '请输入{{ field.label }}',
clearable: true,
allowClear: true,
{% if field.choices %}
options: [
{% for choice in field.choices %}
{
label: '{{ choice.label }}',
value: {{ choice.value }},
},
{% endfor %}
],
{% endif %}
},
},
{% endfor %}
];