提交 2349b784 编写于 作者: Shine-zwj's avatar Shine-zwj

update:函数方式转换

上级 230a7b52
{{#eq item.pSLayoutPos 'FLEX'}}
<div style="flex-grow: {{#if item.pSLayoutPos.grow}}{{item.pSLayoutPos.grow}}{{else}}0{{/if}};">
{{#eq item.psLayoutPos 'FLEX'}}
<div style="flex-grow: {{#if item.psLayoutPos.grow}}{{item.psLayoutPos.grow}}{{else}}0{{/if}};">
<IbizFormGroup name="{{item.codeName}}" title="{{item.caption}}">
{{#eq item.pSLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.pSLayout.dir}}flex-direction: {{item.pSLayout.dir}};{{/if}}{{#if item.pSLayout.align}}justify-content: {{item.pSLayout.align}};{{/if}}{{#if item.pSLayout.vAlign}}align-items: {{item.pSLayout.vAlign}};{{/if}}">
{{#eq item.psLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.psLayout.dir}}flex-direction: {{item.psLayout.dir}};{{/if}}{{#if item.psLayout.align}}justify-content: {{item.psLayout.align}};{{/if}}{{#if item.psLayout.vAlign}}align-items: {{item.psLayout.vAlign}};{{/if}}">
{{#each item.psDEFormDetails as | formDetail |}}
{{>(lookup . 'formDetail.detailType') item=formDetail}}
{{/each}}
......@@ -17,11 +17,10 @@
</IbizFormGroup>
</div>
{{else}}
{{ctrl.getGridOptions(item.getPSLayoutPos)}}
<a-col :span="24">
<IbizFormGroup name="{{item.codeName}}" title="{{item.caption}}">
{{#eq item.pSLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.pSLayout.dir}}flex-direction: {{item.pSLayout.dir}};{{/if}}{{#if item.pSLayout.align}}justify-content: {{item.pSLayout.align}};{{/if}}{{#if item.pSLayout.vAlign}}align-items: {{item.pSLayout.vAlign}};{{/if}}">
{{#eq item.psLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.psLayout.dir}}flex-direction: {{item.psLayout.dir}};{{/if}}{{#if item.psLayout.align}}justify-content: {{item.psLayout.align}};{{/if}}{{#if item.psLayout.vAlign}}align-items: {{item.psLayout.vAlign}};{{/if}}">
{{#each item.psDEFormDetails as | formDetail |}}
{{>(lookup . 'formDetail.detailType') item=formDetail}}
{{/each}}
......
{{>@macro/editor/include-editor.hbs}}
{{#eq item.pSLayoutPos 'FLEX'}}
<div style="flex-grow: {{#if item.pSLayoutPos.grow}}{{item.pSLayoutPos.grow}}{{else}}0{{/if}};">
{{#eq item.psLayoutPos 'FLEX'}}
<div style="flex-grow: {{#if item.psLayoutPos.grow}}{{item.psLayoutPos.grow}}{{else}}0{{/if}};">
<IbizFormItem name="{{item.codeName}}" label="{{item.caption}}">
{{#if item.psEditor}}
{{>(lookup . 'item.psEditor.editorType') item=item}}
......
<a-tab-pane key="{{item.codeName}}" tab="{{item.caption}}">
{{#eq item.pSLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.pSLayout.dir}}flex-direction: {{item.pSLayout.dir}};{{/if}}{{#if item.pSLayout.align}}justify-content: {{item.pSLayout.align}};{{/if}}{{#if item.pSLayout.vAlign}}align-items: {{item.pSLayout.vAlign}};{{/if}}">
{{#eq item.psLayout.layout "FLEX"}}
<div class="app-form-layout-flex" style="{{#if item.psLayout.dir}}flex-direction: {{item.psLayout.dir}};{{/if}}{{#if item.psLayout.align}}justify-content: {{item.psLayout.align}};{{/if}}{{#if item.psLayout.vAlign}}align-items: {{item.psLayout.vAlign}};{{/if}}">
{{#each item.psDEFormDetails as | formDetail |}}
{{>(lookup . 'formDetail.detailType') item=formDetail}}
{{/each}}
......
......@@ -11,12 +11,12 @@
{{/neq}}
{{#eq item.columnType 'GROUPGRIDCOLUMN'}}
children: [
{{#each item.pSDEGridColumns as | column |}}
{{#each item.psDEGridColumns as | column |}}
{{>(lookup 'COLUMNMODEL') item=column}}
{{/each}}
],
{{else}}
dataIndex: "{{item.codeName}}",
dataIndex: "{{lowerCase item.codeName}}",
ellipsis: true,
{{/eq}}
},
......@@ -4,7 +4,7 @@
{{#eq item.columnType 'DEFGRIDCOLUMN'}}
{{#if item.enableRowEdit}}
<div v-if="state.rowEditState" class="editor-cell">
{{#each ctrl.pSDEGridEditItems as | editColumn | }}
{{#each ctrl.psDEGridEditItems as | editColumn | }}
{{#eq editColumn.codeName (item.codeName)}}
{{#if item.psEditor}}
{{>(lookup . 'item.psEditor.editorType') item=item}}
......
{{#eq item.columnType 'GROUPGRIDCOLUMN'}}
{{#each item.pSDEGridColumns as | column |}}
{{#each item.psDEGridColumns as | column |}}
{{>(lookup 'SUMMARYCOLUMN') item=column ctrl=ctrl}}
{{/each}}
{{else}}
......
......@@ -4,7 +4,7 @@
itemType: "{{item.itemType}}",
expanded: {{item.expanded}},
tooltip: "{{item.tooltip}}",
funcTag: {{#if item.pSAppFunc}}"{{item.pSAppFunc.id}}"{{else}}''{{/if}},
funcTag: {{#if item.psAppFunc}}"{{item.psAppFunc.id}}"{{else}}''{{/if}},
hidden: {{#if item.hidden}}true{{else}}false{{/if}},
disableClose: {{#if item.disableClose}}true{{else}}false{{/if}},
{{#if item.counterId}}
......@@ -13,20 +13,20 @@
{{#if item.accessKey}}
resourceTag: "{{item.accessKey}}",
{{/if}}
{{#if item.pSSysImage}}
{{#if item.pSSysImage.cssClass}}
iconCls: "{{item.pSSysImage.cssClass}}",
{{#if item.psSysImage}}
{{#if item.psSysImage.cssClass}}
iconCls: "{{item.psSysImage.cssClass}}",
{{/if}}
{{#if item.pSSysImage.imagePath}}
icon: "{{item.pSSysImage.imagePath}}",
{{#if item.psSysImage.imagePath}}
icon: "{{item.psSysImage.imagePath}}",
{{/if}}
{{/if}}
{{#if item.pSNavigateContexts}}
navContext: {{item.pSNavigateContexts}},
{{#if item.psNavigateContexts}}
navContext: {{item.psNavigateContexts}},
{{/if}}
{{#if item.pSAppMenuItems}}
{{#if item.psAppMenuItems}}
items: [
{{#each item.pSAppMenuItems as | item |}}
{{#each item.psAppMenuItems as | item |}}
{{>(lookup 'MENUITEM') item=item}}
{{/each}}
]
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册