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