fix textarea autosize bug
@@ -19,6 +19,7 @@
- Table 增加属性 rowClassName
- TableColumn 增加 fixed 属性,可选值:true, false, left, right
- TableColumn[type="selection"] 增加 selectable 属性
+- 修复 Input textarea 在动态赋值时 autosize 没有触发的问题
#### 非兼容性更新
@@ -168,10 +168,12 @@
watch: {
'value'(val, oldValue) {
this.currentValue = val;
- this.resizeTextarea();
},
'currentValue'(val) {
+ this.$nextTick(_ => {
+ this.resizeTextarea();
+ });
this.$emit('input', val);
this.$emit('change', val);
this.dispatch('form-item', 'el.form.change', [val]);