fix textarea autosize bug

pull/502/head
baiyaaaaa 2016-10-19 10:53:53 +08:00
parent 0e8873b0f6
commit 3f935a2aac
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@
- Table 增加属性 rowClassName
- TableColumn 增加 fixed 属性可选值true, false, left, right
- TableColumn[type="selection"] 增加 selectable 属性
- 修复 Input textarea 在动态赋值时 autosize 没有触发的问题
#### 非兼容性更新

View File

@ -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]);