Skip to content

Commit 89e7b71

Browse files
committed
autoSize test
1 parent 979101f commit 89e7b71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TestElement.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<span class="text">
2+
<span class="text" style="height: 20px;">
33
{{text}}
44
</span>
55
</template>
@@ -20,6 +20,7 @@
2020
},
2121
mounted: function() {
2222
console.log("### " + this.text + " ready!");
23+
this.$parent.autoSize();
2324
},
2425
}
2526
</script>

0 commit comments

Comments
 (0)