1.0.2 • Published 3 years ago

vue3-scroll-view v1.0.2

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

Scroll-View component

A scroll container in which you can customize the scroll bar.

If you want to know the details, you can go to https://liguoqing-seven.github.io/seven/Plugins/ScrollView.html.

properties

属性名类型默认值说明
widthNumber/String400pxscroll-view 容器的宽度,横向滚动时必需
heightNumber/String200pxscroll-view 容器的高度,纵向滚动时必需
scroll-xBooleanfalse允许横向滚动
scroll-yBooleanfalse允许纵向滚动
scroll-topNumber/String0设置竖向滚动条的位置
scroll-leftNumber/String0设置横向滚动条的位置
scrollbar-classString滚动条的类名
activeBooleanfalse只有当前容器处于活跃状态时才显示滚动条

events

方法名参数说明
scrollevent, y, x滚动时触发,event为原生事件对象,y, x 分别为距离下边与右边的距离

slots

插槽名说明
default默认插槽,scroll-view 的主体内容
scroll滚动条插槽