File tree 1 file changed +28
-7
lines changed
1 file changed +28
-7
lines changed Original file line number Diff line number Diff line change 1
1
< meta charset ="utf-8 ">
2
2
< title > vueScrollbar demo</ title >
3
- < script src ="https://unpkg.com/vue "> </ script >
3
+ < script src ="https://unpkg.com/vue@2 "> </ script >
4
4
< script src ="./vueScrollbar.umd.js "> </ script >
5
5
6
6
< link rel ="stylesheet " href ="./vueScrollbar.css ">
7
7
8
8
9
9
< div id ="app ">
10
- < demo > </ demo >
10
+ < vue-scrollbar class ="scroll-area " :settings ="settings ">
11
+ < img src ="https://raw.githubusercontent.com/Binaryify/vue-custom-scrollbar/master/docs/azusa.jpg " height ="720 "
12
+ width ="1280 " alt ="">
13
+ </ vue-scrollbar >
11
14
</ div >
12
15
13
16
< script >
14
- new Vue ( {
15
- components : {
16
- demo : vueScrollbar
17
- }
18
- } ) . $mount ( '#app' )
17
+ new Vue ( {
18
+ components : {
19
+ vueScrollbar : vueScrollbar
20
+ } ,
21
+ data ( ) {
22
+ return {
23
+ settings : {
24
+ suppressScrollY : false ,
25
+ suppressScrollX : false ,
26
+ wheelPropagation : false
27
+ }
28
+ }
29
+ } ,
30
+ } ) . $mount ( '#app' )
19
31
</ script >
32
+
33
+ < style >
34
+ .scroll-area {
35
+ position : relative;
36
+ margin : auto;
37
+ width : 600px ;
38
+ height : 400px ;
39
+ }
40
+ </ style >
You can’t perform that action at this time.
0 commit comments