We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832ffe8 commit 58913c5Copy full SHA for 58913c5
src/components/avatar/avatar.vue
@@ -114,14 +114,18 @@
114
}
115
},
116
beforeCreate () {
117
- this.slotTemp = this.$slots.default ? this.$slots.default() : null;
+ this.$nextTick(() => {
118
+ this.slotTemp = this.$slots.default ? this.$slots.default() : null;
119
+ });
120
121
mounted () {
122
this.setScale();
123
124
updated () {
- const slot = this.$slots.default ? this.$slots.default() : null;
- if (slot && slot !== this.slotTemp) this.setScale();
125
126
+ const slot = this.$slots.default ? this.$slots.default() : null;
127
+ if (slot && slot !== this.slotTemp) this.setScale();
128
129
130
};
131
</script>
0 commit comments