forked from surmon-china/vue-awesome-swiper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-vertical.vue
47 lines (46 loc) · 1.37 KB
/
03-vertical.vue
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
<template>
<md-card>
<md-card-actions>
<div class="md-subhead">
<span>Vertical</span>
<span>(</span>
<span>垂直方向</span>
<span>)</span>
</div>
<md-button class="md-icon-button"
target="_blank"
href="https://github.com/surmon-china/vue-awesome-swiper/blob/master/examples/03-vertical.vue">
<md-icon>code</md-icon>
</md-button>
</md-card-actions>
<md-card-media>
<!-- swiper -->
<swiper :options="swiperOption">
<swiper-slide>Slide 1</swiper-slide>
<swiper-slide>Slide 2</swiper-slide>
<swiper-slide>Slide 3</swiper-slide>
<swiper-slide>Slide 4</swiper-slide>
<swiper-slide>Slide 5</swiper-slide>
<swiper-slide>Slide 6</swiper-slide>
<swiper-slide>Slide 7</swiper-slide>
<swiper-slide>Slide 8</swiper-slide>
<swiper-slide>Slide 9</swiper-slide>
<swiper-slide>Slide 10</swiper-slide>
<div class="swiper-pagination" slot="pagination"></div>
</swiper>
</md-card-media>
</md-card>
</template>
<script>
export default {
data() {
return {
swiperOption: {
pagination: '.swiper-pagination',
paginationClickable: true,
direction: 'vertical'
}
}
}
}
</script>