mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-20 14:51:03 +00:00
resize textarea when a value change fix #160
This commit is contained in:
parent
f005f4fbc8
commit
7d869f4402
2 changed files with 8 additions and 1 deletions
|
|
@ -62,8 +62,8 @@ $input-size: 32px;
|
|||
min-height: 32px;
|
||||
max-height: 230px;
|
||||
padding: 5px 0;
|
||||
line-height: 1.3em;
|
||||
resize: none;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
.md-error {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,13 @@
|
|||
|
||||
export default {
|
||||
mixins: [common],
|
||||
watch: {
|
||||
value() {
|
||||
this.$nextTick(() => {
|
||||
autosize.update(this.$el);
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.parentContainer = getClosestVueParent(this.$parent, 'md-input-container');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue