dk-stepper.wxml 1.7 KB

123456789101112131415161718
  1. <view>
  2. <view class="com-content">
  3. <!-- 将文字显示上方获取焦点相关事件处理遮罩文字显隐 -->
  4. <view class="number-view">
  5. <!-- <input disabled class="number-content" style="width: {{inputWidth ? inputWidth: ''}};" bindtap="inputOnFocus" wx:if="{{ !checkFocus && shieldShow }}" value="{{ inputValue }}"></input> -->
  6. <image src="{{(dataValue>min || dataValue == max)?'/static/image/btn-minus.png':'/static/image/btn-minus-d.png'}}" style="width: 36rpx;height:36rpx;" catchtap="handleMinus"></image>
  7. <view style="width: 200rpx;">
  8. <dk-number-input digits="{{decimalLength}}" fontSize="14" left="30rpx" formatThousandth="{{false}}" sign="" min="{{min}}" negative="{{negative}}" center="center" readonly="{{!!readonly }}" contentRight="{{false}}" inputColor="#FF7B1A" requiredLeft="15rpx" inputValue="{{dataValue}}" bind:triggerBindBlur="changeStep"></dk-number-input>
  9. </view>
  10. <image src="{{dataValue<max?'/static/image/btn-plus.png':'/static/image/btn-plus-d.png'}}" style="width: 36rpx;height:36rpx;" catchtap="handlePlus"></image>
  11. </view>
  12. <!-- 原始步进器组件 -->
  13. <!-- <van-stepper :show-plus="false"
  14. value="{{dataValue}}"
  15. input-width="{{inputWidth}}" async-change="{{asyncChange}}" button-size="{{buttonSize}}" min="{{min}}" max="{{max}}" step="{{step}}" disabled="{{disabled}}" disableInput="{{disableInput}}" integer="{{integer}}" show-minus="{{showMinus}}" decimal-length="{{decimalLength}}" theme="{{theme}}" disable-plus="{{disablePlus}}" disable-minus="{{disableMinus}}" long-press="{{longPress}}" always-embed="{{alwaysEmbed}}" bind:plus="bindPlus" bind:minus="bindMinus" bind:focus="onFocus" bind:blur="onBlur" bind:change="changeStep"></van-stepper> -->
  16. </view>
  17. </view>