<AppCtrlPos name="{{item.name}}"{{#if isMultiData}} :index="data.index"{{/if}} :layoutModelDetails="store.layoutModelDetails">
{{#if (or (eq item.name 'quicksearchbar') (eq item.name 'QUICKSEARCHBAR'))}}
    {{> @macro/common/quick-search.hbs}}
{{/if}}
{{#if (and page (or page.psControls page.psViewLayoutPanel.psControls))}}
{{#if page.psViewLayoutPanel.viewProxyMode}}
{{#each page.psViewLayoutPanel.psControls as | ctrl |}}
    {{#if (eq ctrl.name item.name)}}
    {{#if (and (or (eq page.viewType 'DEEDITVIEW3') (eq page.viewType 'DEEDITVIEW2')) (eq item.name 'form'))}}
    {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page props="v-show='!store.navParam.navViewName'"}}
    {{else if (and (or (eq page.viewType 'DEGRIDVIEW') (eq page.viewType 'DEGRIDVIEW9')) (eq ctrl.controlType 'GRID'))}}
        {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page props=":rowActiveMode='model.rowActiveMode'"}}
    {{else}}
    {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page}}
    {{/if}}
    {{/if}}
{{/each}}
{{else}}
{{#each page.psControls as | ctrl |}}
    {{#if (eq ctrl.name item.name)}}
    {{#if (and (or (eq page.viewType 'DEEDITVIEW3') (eq page.viewType 'DEEDITVIEW2')) (eq item.name 'form'))}}
    {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page props="v-show='!store.navParam.navViewName'"}}
    {{else if (and (or (eq page.viewType 'DEGRIDVIEW') (eq page.viewType 'DEGRIDVIEW9')) (eq ctrl.controlType 'GRID'))}}
        {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page props=":rowActiveMode='model.rowActiveMode'"}}
    {{else}}
    {{> @macro/widgets/ctrl/include-ctrl.hbs type=ctrl.controlType ctrl=ctrl page=page}}
    {{/if}}
    {{/if}}
{{/each}}
{{/if}}
{{else}}
    <span>部件占位{{item.name}}</span>
{{/if}}
</AppCtrlPos>
