fix: field 计算autosize,需要nextTick (#78)

* textarea sizeAdjust 需要nextTick

* fix field unit test
This commit is contained in:
Yao
2017-08-18 16:47:15 +08:00
committed by GitHub
parent a3ce58e0be
commit 97c54d7f13
2 changed files with 5 additions and 3 deletions

View File

@@ -101,7 +101,9 @@ export default {
},
currentValue(val) {
if (this.autosize && this.type === 'textarea') this.sizeAdjust();
if (this.autosize && this.type === 'textarea') {
this.$nextTick(() => this.sizeAdjust());
}
this.$emit('input', val);
}
},