npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

scroll-mobile

v1.0.4

Published

一个移动端页面原生体验高性能滑动加载组件

Downloads

1

Readme

scroll-mobile

一个移动端页面高性能滑动加载组件, 原生一般的加载体验。

如何使用

// 安装
npm install scroll-mobile

// 使用
import 'scroll-mobile/dist/scroll-mobile.css';
import ScrollMobile from 'scroll-mobile';

| name | description | type | default | |----------|----------------|----------|--------------| | loadIndicator | 加载指示器内容 | Object | { activate: '下拉刷新', deactivate: '释放刷新', release: '刷新中...', finish: '刷新完成' } | | refreshIndicator | 刷新指示器内容 | Object | { activate: '上拉加载更多', deactivate: '释放加载', release: '加载中...', finish: '加载完成' } | | distanceToRefresh | 下拉刷新距离 | Number | 80 | | dampingCoefficient | 滑动阻尼系数 | Number | 0.5 | | refresh | 刷新回调, 函数返回值为promise时,指示器刷新状态将交由primise管理,否则加载状态300毫秒将自动关闭 | Function | - | | load | 加载回调, 函数返回值为promise时,指示器刷新状态将交由primise管理,否则加载状态300毫秒将自动关闭 | Function | - | | repeat | 请求动作重复,比如加载未完成继续下拉或向上滑动加载 | Function | - | | completed | 是否加载完成 | Boolean | false | | completeText | 全部已加载提示文本 | String | 全部已加载 |

例子

线上链接:https://0pbs5.csb.app/

本地查看:

npm i
npm run build

cd examples/base
npm i
npm run start

打开链接 http://localhost:8000