提交 668f7ef1 编写于 作者: zhujiamin's avatar zhujiamin

update:表格头部自定义

上级 489d0d40
<div v-if="Object.is(column.dataIndex, '{{#if item.dataItemName}}{{lowerCase item.dataItemName}}{{else}}{{item.codeName}}{{/if}}')" class="header-cell">
{{#if item.psSysImage}}
<AppIconText {{#if item.psSysImage.cssClass}}:iconClass="{{item.psSysImage.cssClass}}"{{/if}} {{#if item.psSysImage.imagePath}}:imgPath="{{item.psSysImage.imagePath}}"{{/if}}/>
<span class="title">\{{title}}</span>
{{else}}
<span class="title">\{{title}}</span>
{{/if}}
</div>
{{#*inline "COLUMN"}}{{>@macro/front-end/widgets/grid-detail/grid-column.hbs}}{{/inline}} {{#*inline "COLUMN"}}{{>@macro/front-end/widgets/grid-detail/grid-column.hbs}}{{/inline}}
{{#*inline "COLUMNMODEL"}}{{>@macro/front-end/widgets/grid-detail/grid-column-model.hbs}}{{/inline}} {{#*inline "COLUMNMODEL"}}{{>@macro/front-end/widgets/grid-detail/grid-column-model.hbs}}{{/inline}}
{{#*inline "UACOLUMNMODEL"}}{{>@macro/front-end/widgets/grid-detail/grid-uacolumn-model.hbs}}{{/inline}} {{#*inline "UACOLUMNMODEL"}}{{>@macro/front-end/widgets/grid-detail/grid-uacolumn-model.hbs}}{{/inline}}
\ No newline at end of file {{#*inline "COLUMNHEADER"}}{{>@macro/front-end/widgets/grid-detail/grid-column-header.hbs}}{{/inline}}
\ No newline at end of file
...@@ -71,6 +71,11 @@ defineExpose({ state, name: '{{ctrl.name}}' }); ...@@ -71,6 +71,11 @@ defineExpose({ state, name: '{{ctrl.name}}' });
{{!-- 快速工具栏 --}} {{!-- 快速工具栏 --}}
</div> </div>
</template> </template>
<template #headerCell="{title, column}">
{{#each ctrl.psDEGridColumns as | column |}}
{{>(lookup 'COLUMNHEADER') item=column ctrl=ctrl}}
{{/each}}
</template>
<template #bodyCell="{ column, text, record, index }"> <template #bodyCell="{ column, text, record, index }">
{{#each ctrl.psDEGridColumns as | column |}} {{#each ctrl.psDEGridColumns as | column |}}
{{>(lookup 'COLUMN') item=column ctrl=ctrl}} {{>(lookup 'COLUMN') item=column ctrl=ctrl}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册