Skip to content

Commit aec95cd

Browse files
committed
update perfect-scrollbar to v1.5.0
1 parent 57be5ed commit aec95cd

11 files changed

+474
-402
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## 1.3.0 | 2020.08.29
2+
- Update `perfect-scrollbar` to 1.5.0

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,48 @@ As you know, Chrome support custom scrollbar, but Firefox or other browsers don'
2626

2727
[Docs](https://binaryify.github.io/vue-custom-scrollbar/)
2828

29+
## 例子/Example
30+
31+
```vue
32+
<template>
33+
<div>
34+
<vue-custom-scrollbar class="scroll-area" :settings="settings" @ps-scroll-y="scrollHanle">
35+
<img src="http://utatti.github.io/perfect-scrollbar/azusa.jpg" height="720" width="1280" alt="">
36+
</vue-custom-scrollbar>
37+
</div>
38+
</template>
39+
<script>
40+
import vueCustomScrollbar from 'vue-custom-scrollbar'
41+
export default {
42+
components: {
43+
vueCustomScrollbar
44+
},
45+
data() {
46+
return {
47+
settings: {
48+
suppressScrollY: false,
49+
suppressScrollX: false,
50+
wheelPropagation: false
51+
}
52+
}
53+
},
54+
methods: {
55+
scrollHanle(evt) {
56+
console.log(evt)
57+
}
58+
}
59+
}
60+
</script>
61+
<style >
62+
.scroll-area {
63+
position: relative;
64+
margin: auto;
65+
width: 600px;
66+
height: 400px;
67+
}
68+
</style>
69+
```
70+
2971
## License
3072

3173
[MIT](https://github.com/Binaryify/vue-custom-scrollbar/blob/master/LICENSE)

dist/vueScrollbar.common.js

Lines changed: 209 additions & 197 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vueScrollbar.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vueScrollbar.umd.js

Lines changed: 209 additions & 197 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vueScrollbar.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vueScrollbar.umd.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vueScrollbar.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ export default {
6666
data() {
6767
return {
6868
settings: {
69-
maxScrollbarLength: 60
69+
suppressScrollY: false,
70+
suppressScrollX: false,
71+
wheelPropagation: false
7072
}
7173
}
7274
},

docs/en/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export default {
7070
data() {
7171
return {
7272
settings: {
73-
maxScrollbarLength: 60
73+
suppressScrollY: false,
74+
suppressScrollX: false,
75+
wheelPropagation: false
7476
}
7577
}
7678
},

0 commit comments

Comments
 (0)