import { DescItem } from '@/components/Description';
import { h, resolveComponent } from 'vue';
<%_
const { detailFieldLines, detailImportStatements, detailShowInOneConfig } = (bcEntityData || { detailFieldLines: [], detailImportStatements: [], detailShowInOneConfig: {} });
_%>
<%_ if (detailImportStatements && detailImportStatements.size) { _%>
<%- Array.from(detailImportStatements).join('\n') %>
<%_ } _%>

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

const fields: DescItem[] = [
<%_ if (!useCommonTable) { _%>
  <%_
      detailFieldLines.forEach(column => {
  _%>
  <%- column _%>
    <%_ });_%>
<%_ } _%>
];
<%_
Object.keys(detailShowInOneConfig).forEach(relationshipName => { _%>
const <%= relationshipName %>Columns = [
    <%_
        const { formTableColumns } = detailShowInOneConfig[relationshipName];
        formTableColumns.forEach(column => {
    _%>
    <%- column _%>
    <%_ }); _%>
];
<%_
});
_%>

export default {
  fields,
<%_
Object.keys(detailShowInOneConfig).forEach(relationshipName => { _%>
  <%= relationshipName %>Columns,
<%_
});
_%>
};
