Commit 2293a8c77d969b3a775c54de8164103cfb4b0f45

Authored by 梁灏
1 parent 38a33d43

#4324

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
src/components/carousel/carousel-item.vue
@@ -34,6 +34,13 @@ @@ -34,6 +34,13 @@
34 this.$parent.initCopyTrackDom(); 34 this.$parent.initCopyTrackDom();
35 }); 35 });
36 } 36 }
  37 + },
  38 + height (val) {
  39 + if (val && this.$parent.loop) {
  40 + this.$nextTick(() => {
  41 + this.$parent.initCopyTrackDom();
  42 + });
  43 + }
37 } 44 }
38 }, 45 },
39 beforeDestroy () { 46 beforeDestroy () {