-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
48 lines (46 loc) · 1.04 KB
/
demo.html
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
<!DOCTYPE html>
<html >
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script src="./vue-slideshow.min.js"></script>
</head>
<body>
<div id="app">
<vueslideshow :params="slideshowParams">
<div class="content" >
<img src="https://media.publit.io/file/islands/1.jpg" />
</div>
<div class="content">
<img src="https://media.publit.io/file/islands/2.jpg" />
</div>
<div class="content">
<img src="https://media.publit.io/file/islands/3.jpg" />
</div>
</vueslideshow>
</div>
<script>
//Vue.component('vue-slideshow',window['vue-slideshow']);
new Vue({
'el':'#app',
components:{
'vueslideshow':window['vue-slideshow']
},
data:function(){
return {
slideshowParams:{
dragEnabled:true,
nav:{
visible:true
},
pager:{
visible:true
}
}
}
},
mounted:function(){
}
})
</script>
</body>
</html>