Commit 5139233be1afc77861b51b830e587d81523d7bec

Authored by 梁灏
1 parent e7f1cf28

update Carousel

update Carousel
assets/iview.png

162 KB | W: | H:

165 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
src/components/carousel/carousel.vue
... ... @@ -41,7 +41,7 @@
41 41 },
42 42 autoplay: {
43 43 type: Boolean,
44   - default: true
  44 + default: false
45 45 },
46 46 autoplaySpeed: {
47 47 type: Number,
... ...
src/styles/components/carousel.less
... ... @@ -61,7 +61,7 @@
61 61 z-index: 10;
62 62 transform: translateY(-50%);
63 63  
64   - transition: .3s;
  64 + transition: @transition-time;
65 65 background-color: rgba(31, 45, 61, .11);
66 66 color: #fff;
67 67  
... ... @@ -158,7 +158,6 @@
158 158 font-size: 0;
159 159 color: transparent;
160 160  
161   - -webkit-transition: all .5s;
162 161 transition: all .5s;
163 162 }
164 163  
... ...