Blame view

src/pages/ui/Carousels.vue 1.3 KB
8ab31dc8b   Jatinder Singh   changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  <template>
    <div id="page-carousels">
      <v-container grid-list-xl fluid>
        <v-layout row wrap>
          <v-flex lg6 sm12 xs12>
            <v-widget title="Basic Usage">
              <div slot="widget-content">
                <v-carousel>
                  <v-carousel-item v-for="(item,i) in items" :src="item.src" :key="i"></v-carousel-item>
                </v-carousel>
              </div>
            </v-widget>
          </v-flex>
          <v-flex lg6 sm12 xs12>
            <v-widget title="Hide Controls">
              <div slot="widget-content">
                <v-carousel hide-controls hide-delimiters>
                  <v-carousel-item v-for="(item,i) in items" :src="item.src" :key="i">
                  </v-carousel-item>
                </v-carousel>
              </div>
            </v-widget>
          </v-flex>
        </v-layout>
      </v-container>
    </div>
  </template>
  
  <script>
  import VWidget from '@/components/VWidget';
  export default {
    components: {
      VWidget
    },
    data () {
      return {
        items: [
          {
            src: '/static/nature/n1.jpeg'
          },
          {
            src: '/static/nature/n2.jpeg'
          },
          {
            src: '/static/nature/n3.jpeg'
          },
          {
            src: '/static/nature/n4.jpeg'
          }
        ]      
      };
    },
    computed: {
    },  
    methods: {
    }
  };
  </script>