You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
346 B

/**
* 表单 schema
* component 类型来自 parse_component()
*/
import type { VbenFormSchema } from '#/adapter/form';
export const formSchema: VbenFormSchema[] = [
{% for f in fields %}
{
// 字段名
fieldName: '{{f.name}}',
// label
label: '{{f.comment}}',
// 自动组件
component: '{{f.component}}'
},
{% endfor %}
];