<view>
  <view wx:if="{{!focus || disabled}}">
    <!-- <view wx:if="{{required}}" style="position: absolute;left: {{requiredLeft}};color: #DB3333;">*
    </view>
    <dk-cell height="48rpx" left="{{left}}" signSize="{{signSize}}" fontWeight="{{titleFontWeight}}" fontSize="{{fontSize}}" tail="{{percentSignFlag ? '%' : ''}}" percentSignFlag="{{percentSignFlag}}" contentColor="{{inputColor}}" amount="{{sign?true:false }}" contentFontWeight="{{fontWeight}}" contentRight="{{contentRight}}" center="{{center=='right'?'flex-end':center}}" title="{{titleValue}}" content="{{(inputValue || inputValue == 0)?inputValue:null}}" titleWid="{{titleWidth}}" catchtap="handleInput" titleColor="{{titleColor}}" placeholder="{{placeholder}}" errorMessage="{{errorMessage}}">
    </dk-cell> -->

    <van-field label-class="input-title-class" style="--color--:{{titleColor}};--fontSize--:{{fontSize + 'px'}};--width--:{{titleWidth}};--fontWeight--:{{titleFontWeight}};" required="{{required?true:false }}" input-align="{{left}}" label="{{titleValue}}" placeholder="{{(inputValue || inputValue == 0)?'':placeholder}}" data-type='name' readonly="{{true}}" autosize border="{{ false }}" errorMessage="{{errorMessage}}" catchtap="handleInput" showInput="{{false}}" >
      <van-icon wx:if="{{tip}}" slot="label-icon" name="question-o" catchtap="showTip" />
      <dk-cell slot="inputbefor" style="width: 100%;" center="{{center=='right'?'flex-end':center}}" contentRight="{{contentRight}}" left="0" height="46rpx" contentFontSize="{{fontSize}}" contentColor="{{inputColor}}" contentFontWeight="{{fontWeight}}" amount="{{sign?true:false }}" tail="{{percentSignFlag ? '%' : ''}}" percentSignFlag="{{percentSignFlag}}" placeholderColor="#c8c9cc" content="{{(inputValue || inputValue == 0)?inputValue:null}}" placeholder="{{(inputValue || inputValue == 0)?'':placeholder}}"></dk-cell>
    </van-field>
  </view>

  <!-- <view wx:else class="input-class" style="--center--:{{center}}">
    <view wx:if="{{titleValue}}" class="input-title-class" style="--color--:{{titleColor}};--fontSize--:{{fontSize + 'px'}};--left--:{{left}};--width--:{{titleWidth}};--fontWeight--:{{titleFontWeight}}">{{titleValue}}</view>
    <view class="input_content-class" style="--width--:{{titleWidth}}">
      <input disabled="{{readonly}}" style="text-align: {{center}};color:{{inputColor}};font-size:{{fontSize + 'px'}};font-weight: {{fontWeight}}; height: {{fontSize + 'px'}}" type="digit" value="{{inputValue}}" focus='{{focus}}' selection-start='0' selection-start='{{inputValue.length}}' bindinput="bindInput" bindblur='bindBlur'></input>
      <van-icon name="clear" color="#c8c9cc;" catchtap="clearChoose"></van-icon>
    </view>
  </view> -->
  <!--文本框-->
  <view wx:else>
    <van-field input-align="right" required="{{required}}" label-class="input-title-class" style="--color--:{{titleColor}};--inputColor--:{{inputColor}};--fontSize--:{{fontSize + 'px'}};--width--:{{titleWidth}};--fontWeight--:{{titleFontWeight}};--inputFontWeight--:{{inputColor}}" value="{{inputValue?inputValue:undefined}}" input-align="{{center}}" label="{{titleValue}}" placeholder="{{placeholder}}" autosize auto-focus clearable border="{{ false }}" input-class="{{inputWidthFlag ? 'dk-cell-value-class-input' : 'dk-cell-value-class'}}" type="text" inputMode="decimal" bind:focus="bindFocus" bind:change="bindInput" bind:blur="bindBlur" >
    </van-field>
  </view>
</view>