<AppSpan
{{#eq ctrlType 'grid'}}
  name="{{#if dataItemName}}{{dataItemName}}{{else}}{{item.codeName}}{{/if}}"
{{/eq}}
{{#eq ctrlType 'panel'}}
  name="{{item.name}}"
{{/eq}}
{{#eq ctrlType 'form'}}
  name="{{item.codeName}}"
{{/eq}}
{{#if (eq ctrlType 'form')}}
  :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else if (eq ctrlType 'grid')}}
  {{#if (eq item.enableCond 0)}}
  :disabled="true"
  {{else if (eq item.enableCond 1)}}
  :disabled="!Object.is(record.srfuf,0)"
  {{else if (eq item.enableCond 2)}}
  :disabled="!Object.is(record.srfuf,1)"
  {{/if}}
{{else if (eq ctrlType 'panel')}}
  :disabled="state.detailsModel.{{item.name}}.disabled"
{{/if}}
{{#if item.psEditor.psAppCodeList}}
  codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}"
  codeListType="{{item.psEditor.psAppCodeList.codeListType}}"
{{/if}}
{{#if item.dataType}}
  :dataType="{{item.dataType}}"
{{/if}}
{{#if item.psEditor.editorParams}}
  {{#jsonParse item.psEditor.editorParams}}
    {{#if unitName}}
  unitName="{{unitName}}"
    {{/if}}
    {{#if precision}}
  :precision="{{precision}}"
    {{/if}}
  {{/jsonParse}}
    {{/if}}
{{#if item.valueFormat}}
  valueFormat="{{item.valueFormat}}"
{{else if item.psAppDEField.valueFormat}}
  valueFormat="{{item.psAppDEField.valueFormat}}"
{{/if}}
{{#if item.psEditor.psNavigateContexts}}
  :localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}"
{{/if}}
{{#if item.psEditor.psNavigateParams}}
  :localParam="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateParams}}"
{{/if}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{#if dataItemName}}{{dataItemName}}{{else}}{{item.psEditor.name}}{{/if}}"
{{/eq}}
  :context="state.context"
  :viewParams="state.viewParams"/>
