Commit 907feda4ce96cf7e19664cac15e4045b1b3f0df1

Authored by 梁灏
1 parent 99cde29d

update Carousel

update Carousel
examples/routers/carousel.vue
@@ -2,7 +2,9 @@ @@ -2,7 +2,9 @@
2 <div> 2 <div>
3 <Carousel v-model="v1" dots="inside" trigger="hover"> 3 <Carousel v-model="v1" dots="inside" trigger="hover">
4 <Carousel-item> 4 <Carousel-item>
5 - <div class="demo-carousel">1</div> 5 + <Card>
  6 + <div class="demo-carousel">1</div>
  7 + </Card>
6 </Carousel-item> 8 </Carousel-item>
7 <Carousel-item> 9 <Carousel-item>
8 <div class="demo-carousel">2</div> 10 <div class="demo-carousel">2</div>
src/components/carousel/carousel-item.vue
@@ -25,11 +25,9 @@ @@ -25,11 +25,9 @@
25 } 25 }
26 }, 26 },
27 mounted () { 27 mounted () {
28 - // todo while  
29 this.$parent.slotChange(); 28 this.$parent.slotChange();
30 }, 29 },
31 beforeDestroy () { 30 beforeDestroy () {
32 - // todo while  
33 this.$parent.slotChange(); 31 this.$parent.slotChange();
34 } 32 }
35 }; 33 };