Browse Source

fix: 修复数据不动态监听

yushuang24 5 years ago
parent
commit
54a95f7660
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/packages/rate/rate.vue

+ 5 - 0
src/packages/rate/rate.vue

@@ -69,6 +69,11 @@ export default {
         this.$emit('click', idx);
       }
     }
+  },
+  watch: {
+    value(newVal, oldVal) {
+       this.current = newVal;
+    }
   }
 };
 </script>