Commit 907feda4ce96cf7e19664cac15e4045b1b3f0df1

Authored by 梁灏
1 parent 99cde29d

update Carousel

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