code-input.wxml 421 B

12345678
  1. <!--compone/code-input/code-input.wxml-->
  2. <view class="input">
  3. <view class="input-item" wx:for="{{4}}" wx:key="index" data-index="{{index}}">
  4. <view class="input-value">{{password[index]}}</view>
  5. <view class="focus {{index === focusIndex ? 'show': 'hide'}}"></view>
  6. </view>
  7. <input class="input-password" maxlength="4" bindinput="setValue" bindblur="inputBlur" type="number" focus="{{focus}}"></input>
  8. </view>