// 部件配置对象
export const ctrlState = {
  controlCodeName: '{{ctrl.codeName}}',
  controlName: '{{ctrl.name}}',
  showTitleBar: {{#if ctrl.showTitleBar}}true{{else}}false{{/if}},
  title: '{{ctrl.title}}',
  portletType: '{{ctrl.portletType}}',
  {{#if ctrl.psSysImage}}
  {{#if ctrl.psSysImage.cssClass}}
  iconcls: '{{ctrl.psSysImage.cssClass}}',
  {{else if (ctrl.psSysImage.imagePath)}}
  imagePath: '{{ctrl.psSysImage.imagePath}}',
  {{/if}}
  {{/if}}
  {{#if ctrl.psLayoutPos.height}}
  // 部件高度
  height: {{ctrl.psLayoutPos.height}},
  {{/if}}
  {{#if ctrl.psLayoutPos.width}}
  // 部件宽度
  width: {{ctrl.psLayoutPos.width}},
  {{/if}}
  {{#if ctrl.psAppDataEntity}}
  // 实体名称
  appEntityCodeName: '{{ctrl.psAppDataEntity.codeName}}',
  {{/if}}
  {{#if ctrl.psUIActionGroup.psUIActionGroupDetails}}
  // 操作栏模型
  actionBarModelData: {
  {{#each ctrl.psUIActionGroup.psUIActionGroupDetails as | groupDetail |}}
    {{groupDetail.psUIAction.uIActionTag}} : {
      viewlogicname: '{{groupDetail.name}}',
      showCaption:{{groupDetail.showCaption}},
      actionName: '{{groupDetail.psUIAction.caption}}', 
      icon: '{{groupDetail.psUIAction.psSysImage.cssClass}}', 
      imagePath: '{{groupDetail.psUIAction.psSysImage.imagePath}}', 
      disabled: false, visabled: true, 
      dataAccessAction: {{#if groupDetail.psUIAction.dataAccessAction}}false{{else}}true{{/if}}, 
      getNoPrivDisplayMode: {{#if groupDetail.psUIAction.noPrivDisplayMode}}groupDetail.psUIAction.noPrivDisplayMode{{else}}6{{/if}},
      codeName:'{{groupDetail.psUIAction.codeName}}',
      fullCodeName:'{{groupDetail.psUIAction.fullCodeName}}',
      uIActionMode:'{{groupDetail.psUIAction.uIActionMode}}',
      uIActionTag:'{{groupDetail.psUIAction.uIActionTag}}',
      uIActionType:'{{groupDetail.psUIAction.uIActionType}}',
    },
  {{/each}}
  },
  {{/if}}
  {{#if ctrl.pageUrl}}
  // 网页地址
  pageUrl: '{{ctrl.pageUrl}}',
  {{/if}}
  {{#if ctrl.contentType}}
  // 内容类型
  contentType:'{{ctrl.contentType}}',
  {{/if}}
  {{#if ctrl.rawContent}}
  // 直接内容
  rawContent:'{{ctrl.rawContent}}',
  {{/if}}
};