mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 04:39:09 +08:00
Merge pull request #502 from baiyaaaaa/feat-input
fix textarea autosize bug
This commit is contained in:
commit
8199c6ce76
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user