Blame view

examples/routers/carousel.vue 1.18 KB
6c9acb08   Rijn   initialize carousel
1
  <template>
bb71140e   梁灏   support Carousel
2
      <div>
2073853e   梁灏   fixed #3038
3
          <Carousel v-model="v1" dots="outside" @on-change="hc" :autoplay="false">
bb71140e   梁灏   support Carousel
4
              <Carousel-item>
2073853e   梁灏   fixed #3038
5
6
7
                  <div class="demo-case-img">
                      <img src="https://file.iviewui.com/dist/84b3cded4163febf9dae090e76129322.png">
                  </div>
2171f454   Rijn   added many test
8
9
              </Carousel-item>
              <Carousel-item>
2073853e   梁灏   fixed #3038
10
11
12
                  <div class="demo-case-img">
                      <img src="https://file.iviewui.com/dist/84b3cded4163febf9dae090e76129322.png">
                  </div>
2171f454   Rijn   added many test
13
              </Carousel-item>
bb71140e   梁灏   support Carousel
14
              <Carousel-item>
2073853e   梁灏   fixed #3038
15
16
17
                  <div class="demo-case-img">
                      <img src="https://file.iviewui.com/dist/84b3cded4163febf9dae090e76129322.png">
                  </div>
2171f454   Rijn   added many test
18
19
              </Carousel-item>
          </Carousel>
2073853e   梁灏   fixed #3038
20
          <Button @click="v1 = 2">change</Button>
bb71140e   梁灏   support Carousel
21
      </div>
6c9acb08   Rijn   initialize carousel
22
23
24
  </template>
  <script>
      export default {
bfc11079   Rijn   updated autoplay ...
25
26
          data () {
              return {
ccf544dc   houyl   Merge branch 'mas...
27
                  v1: 0
2073853e   梁灏   fixed #3038
28
              }
5e8be9b3   Rijn   fixed add bug. ad...
29
30
          },
          methods: {
2073853e   梁灏   fixed #3038
31
32
              hc (...args) {
                  console.log(args);
bfc11079   Rijn   updated autoplay ...
33
34
              }
          }
6c9acb08   Rijn   initialize carousel
35
36
      }
  </script>
2073853e   梁灏   fixed #3038
37
38
39
40
41
  <style lang="less">
      .demo-case-img {
          img{
              width: 500px;
          }
bb71140e   梁灏   support Carousel
42
      }
2073853e   梁灏   fixed #3038
43
  </style>