<%_ const { formFieldLines, showInOneConfig, formImportStatements } = bcEntityData;

_%>
import { FormSchema } from '@/components/Form';
<%_ if (formImportStatements && formImportStatements.size) { _%>
<%- Array.from(formImportStatements).join('\n') %>
<%_ } _%>

// begcode-please-regenerate-this-file 如果您不希望重新生成代码时被覆盖，将please修改为don't ！！！

const fields = (): FormSchema[] => [
<%_ if (!useCommonTable) { _%>
  <%_
      formFieldLines.forEach(column => {
  _%>
  <%- column _%>
    <%_ });_%>
<%_ } _%>
];
<%_
Object.keys(showInOneConfig).forEach(relationshipName => { _%>
const <%= relationshipName %>Columns = [
    <%_
        const { formTableColumns } = showInOneConfig[relationshipName];
        formTableColumns.forEach(column => {
    _%>
    <%- column _%>
    <%_ }); _%>
];
<%_
});
_%>
export default {
  fields,
<%_
Object.keys(showInOneConfig).forEach(relationshipName => { _%>
  <%= relationshipName %>Columns,
<%_
});
_%>
};
