Browse Source

fix: 文本域初始化字数展示

guoxiaoxiao8 5 years ago
parent
commit
3b83fc6db8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/textbox/textbox.vue

+ 1 - 1
src/packages/textbox/textbox.vue

@@ -41,7 +41,6 @@ export default {
     },
     data() {
         return {
-           
             errorState:false,
             txtNum:0,
         };
@@ -52,6 +51,7 @@ export default {
     computed:{
         currentValue:{
             get(){
+                this.txtNum=this.value.length;
                 return this.value;
             },
             set(val){