优化注释

This commit is contained in:
lemon橪
2021-05-17 18:19:26 +08:00
parent 4545097a4a
commit 49eb30f265
69 changed files with 972 additions and 2622 deletions

View File

@@ -152,7 +152,7 @@
this.inputVal = v1
// 只有value的改变是来自外部的时候才去同步inputVal的值否则会造成循环错误
// if(!this.changeFromInner) {
// console.log('change')
// this.inputVal = v1;
// // 因为inputVal变化后会触发this.handleChange()在其中changeFromInner会再次被设置为true
// // 造成外面修改值也导致被认为是内部修改的混乱这里进行this.$nextTick延时保证在运行周期的最后处
@@ -165,7 +165,7 @@
immediate: true
},
inputVal(v1, v2) {
// console.log(v1)
// 为了让用户能够删除所有输入值,重新输入内容,删除所有值后,内容为空字符串
if (v1 == '') return;
let value = 0;