Browse Source

fix(shortpassword): 密码圆点不展示修复 (#638)

* fix: taro drag

* feat: v3 progress taro

* feat: progress 百分比不同尺寸样式增加

* feat: circleProgress taro

* fix: avatar圆角修复

* fix: shortpassword 键盘弹起优化

* fix: progress cricleprogress taro 适配

* fix: 官网搜索栏回车跳转修复

* feat: 新增numberkeyboard组件

* fix: tabbar修复自定义icon不显示问题

* fix(toast): 文档修复,demo完善

* fix(tabbar): 新增支持自定义图片链接

* fix(shortpassword): 密码圆点不展示修复
Drjingfubo 4 years ago
parent
commit
8ea0c4c442

+ 2 - 2
src/packages/__VUE/shortpassword/index.taro.vue

@@ -41,7 +41,7 @@
           >
             <view
               class="nut-shortpsd-icon"
-              v-if="realInput.length > index"
+              v-if="String(realInput).length > index"
             ></view>
           </view>
         </view>
@@ -148,7 +148,7 @@ export default create({
         val = val.slice(0, comLen.value);
         realInput.value = val;
       }
-      if (realInput.value.length === comLen.value) {
+      if (String(realInput.value).length === comLen.value) {
         emit('complete', val);
       }
       emit('change', val);

+ 2 - 2
src/packages/__VUE/shortpassword/index.vue

@@ -33,7 +33,7 @@
           >
             <view
               class="nut-shortpsd-icon"
-              v-if="realInput.length > index"
+              v-if="String(realInput).length > index"
             ></view>
           </view>
         </view>
@@ -130,7 +130,7 @@ export default create({
         val = val.slice(0, comLen.value);
         realInput.value = val;
       }
-      if (realInput.value.length === comLen.value) {
+      if (String(realInput.value).length === comLen.value) {
         emit('complete', val);
       }
       emit('change', val);