EDITOR.vue.ftl 936 字节
Newer Older
1 2
<#if editor?? && editor.render??> 
    ${editor.render.code}
Mosher's avatar
Mosher committed
3
<#else>
4 5 6
<input-box 
  v-model="data.${editor.name}"  
  @enter="onEnter($event)"  
7
  <#if editor.getUnitName?? && editor.getUnitName()??>unit="${editor.getUnitName()}"</#if>
8 9
  :disabled="detailsModel.${editor.name}.disabled" 
  type='number' 
10
<#if item.getPSAppDEField()?? && item.getPSAppDEField().getPSDEField()?? && item.getPSAppDEField().getPSDEField().getPrecision??>
11
<#assign datatype = item.getPSAppDEField().getPSDEField().getDataType()>
12 13
  <#if datatype=='DOUBLE' || datatype=='DECIMAL' || datatype=='FLOAT' || datatype=='BIGDECIMAL'>
  <#if item.getPSAppDEField().getPSDEField().getPrecision() == 0>
14
  :precision="2"
15
  <#else>
16
  :precision="${item.getPSAppDEField().getPSDEField().getPrecision()?c}"
17
  </#if>
18
  </#if>
19 20
</#if>
  <#if editor.getPlaceHolder()??>placeholder="${editor.getPlaceHolder()}"</#if> 
21
  style="${editor.getEditorCssStyle()}">
Mosher's avatar
Mosher committed
22 23
</input-box>
</#if>