/** * 表格列配置 */ import type { VxeGridProps } from '#/adapter/vxe-table'; export const columns: VxeGridProps['columns'] = [ {% for f in fields %} { // 列标题 title: '{{f.comment}}', // 对应字段 field: '{{f.name}}', // 宽度 width: 150 }, {% endfor %} ];