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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@david-j/vue-j-scroll

v1.2.7

Published

A Vue.js project

Downloads

172

Readme

vue-j-scroll

A Vue.js project

一个循环滚动列表插件

该插件为 vue-seamless-scroll 的升级版 ,可以自动滚动也可以手动滚动。dom 中的事件也保存了下来。 推荐数据量小于 1000,以保证插件的性能。

npm install @david-j/vue-j-scroll --save-dev 来安装


在项目中使用
import VueScroll from '@david-j/vue-j-scroll';
Vue.use(VueScroll);

示例:

    <vue-j-scroll
      class="list-style"
      :data="youData"
      :steep="1"
      scrollDirection="bottom"
      :isRoller="true"
      :rollerScrollDistance="50"
    >
        <div
          v-for="(item, index) in newData"
          :key="'t' + index"
          class="list-item"
        >
          <p>{{ item + "rrrrssserrdd" }}</p>
        </div>
    </vue-j-scroll>

| 属性 | 属性名称 | 类型 | 可选值 | | ------ | -------- | ------ | ------ | | steep | 滚动的速率 | number | 为正数即可 | | scrollDirection | 滚动的方向 | string | top ,bottom,left,right | | isRoller | 是否可以使用滚轮滚动 | boolean |true,false | | rollerScrollDistance | 滚轮滚动的速率 | number |(isRoller 必须为 true)为正数即可 | | data | 接收异步数据 | array |同步任务可不传 |

注:如没有显示亲为嵌入的标签设置字体大小 注: 当scrollDirection 为top或bottom时,一定要为 vue-j-scroll 组件设置高度。 当scrollDirection 为left或right时,一定要为 vue-j-scroll 组件设置宽度。并为嵌入vue-j-scroll中的标签设置样式为display:inline-block; 示例样式名为list-item可以更改为其他类名。

注: 当scrollDirection 为left或right时,是基于行内元素的“white-space: nowrap;” 来控制强制不换行的。有可能会影响其内部的文字排列。可以在list-item 层添加 white-space: normal; 来处理给问题。并为其添加固定宽度,以保证文字可以正常换行及插件的正确计算与显示。如果没有为其添加固定宽度,会造成插件获取父容器层的宽度值错误,导致显示混乱