Socket
Socket
Sign inDemoInstall

scrollz

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    scrollz

| 属性名称/attribute_name | 默认值/default_value | 类型/type | 描述 | | ----------------------- | ---------------------------: | :-------: | ---------------------------------------- | | spinClass |


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

滚动条及加载属性方法说明

属性/attribute 滚动条配置详情参考https://vuescrolljs.yvescoding.org/zh/guide/configuration.html

属性名称/attribute_name默认值/default_value类型/type描述
spinClassstring[]外层容器class名称
loadingfalseboolean是否显示加载效果
height80vhstring整个容器的高度
iconStyleobjecticon图标样式(圆圈)
loadingTitle加载中string加载文本
textStyleobject文本样式
allSize120number包裹图标和文本的容器大小
imgStyle{width: '70%'}object加载图片的样式
imgSrc/static/img/c-spin-title.pngstring图片的路径
customizeVueScrollobject定义滚动条vuescroll配置
customizeScrollPanelobject定义滚动条scrollPanel配置(通过改变 scrollPanel 的 scrollLeft 和 scrollTop 来使内容移动)
customizeRailobject定义rail配置(轨道)
customizeBarobject定义bar配置(滚动条)
customizeScrollButtonobject定义scrollButton配置(开始和末端的按钮)
isTextCentertrueboolean加载文本是否居中

方法/methods

方法名称参数
handleScrollprocess(ps:滚动条从顶部到底部的滚动后的值 值范围0-1 0:表示在顶部,1表示到底部了),scrollTop(ps:滚动条距离当前容器头部的距离),horizontal(横向滚动条参数)

1.1.0

  • 去除默认加载图片

Keywords

FAQs

Last updated on 28 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc