<AppDatePicker
  name="{{item.codeName}}"
{{#if item.psEditor.placeHolder}}
  placeholder="{{item.psEditor.placeHolder}}"
{{/if}}
{{#eq ctrlType 'form'}}
  :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}}
{{#if item.psEditor.readOnly}}
  :readonly="{{item.psEditor.readOnly}}"
{{/if}}
{{#eq item.psEditor.editorType "DATEPICKEREX"}}
  dateFormat="YYYY-MM-DD HH:mm:ss"
  dateType="dateTime"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_NOTIME"}}
  dateFormat="YYYY-MM-DD"
  dateType="date"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKER"}}
  dateFormat="YYYY-MM-DD HH:mm:ss"
  dateType="dateTime"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_HOUR"}}
  dateFormat="YYYY-MM-DD HH"
  dateType="dateTime"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_MINUTE"}}
  dateFormat="YYYY-MM-DD HH:mm"
  dateType="dateTime"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_SECOND"}}
  dateFormat="YYYY-MM-DD HH:mm:ss"
  dateType="dateTime"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_NODAY"}}
  dateFormat="HH:mm:ss"
  dateType="time"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_NODAY_NOSECOND"}}
  dateFormat="HH:mm"
  dateType="time"
{{/eq}}
{{#eq item.psEditor.editorType "DATEPICKEREX_NOSECOND"}}
  dateFormat="YYYY-MM-DD HH:mm"
  dateType="dateTime"
{{/eq}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent($event,index)"
{{/eq}}
/> 
