<AppInput
{{#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.placeHolder}}
  placeholder="{{item.psEditor.placeHolder}}"
{{/if}}
{{#if item.psEditor.readOnly}}
  :readOnly="{{item.psEditor.readOnly}}"
{{/if}}
{{#if item.psEditor.editorParams}}
{{#jsonParse item.psEditor.editorParams}}
  {{#if max}}
  :max="{{max}}"
  {{/if}}
  {{#if min}}
  :min="{{min}}"
  {{/if}}
  {{#if precision}}
  :precision="{{precision}}"
  {{/if}}
{{/jsonParse}}
{{/if}}
{{#if item.psEditor.maxLength}}
  :maxLength="{{item.psEditor.maxLength}}"
{{/if}}
{{#if item.psEditor.showMaxLength}}
  :showMaxLength="{{item.psEditor.showMaxLength}}"
{{/if}}
{{#eq item.psEditor.editorType "TEXTBOX"}}
  type="text"
{{/eq}}
{{#eq item.psEditor.editorType "NUMBER"}}
  type="number"
{{/eq}}
{{#eq item.psEditor.editorType "PASSWORD"}}
  type="password"
{{/eq}}
{{#eq item.psEditor.editorType "TEXTAREA"}}
  type="textarea"
{{/eq}}
{{#eq item.psEditor.editorType "TEXTAREA_10"}}
  type="textarea"
{{/eq}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{#if dataItemName}}{{dataItemName}}{{else}}{{item.psEditor.name}}{{/if}}"
  @editorEvent="onEditorEvent($event,index)"
{{/eq}}
/>
