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

vue-long-scroll

v0.1.7

Published

基于vue长列表优化无限滚动(只3d渲染视窗内元素)。Based on Vue long list optimization (only 3D rendering window elements).

Downloads

18

Readme

vue-long-scroll

Get Start

Installation

npm i --save vue-long-scroll

Initialization

import Vue from "vue";
import LongScroll from "vue-long-scroll"
import "vue-long-scroll/lib/vue-long-scroll.css"

Usage

<template>
    <long-scroll v-model="current" :data="data" :style="{height:'400px'}"></long-scroll>
    // 组件根元素为滚动容器默认高度400px,可自行设置。如果容器高度过大页面出现空白增大size属性即可
    //  The root element of the component is the scroll container. The default height is 400px, which can be set by yourself. If the height of the container is too large, the page appears blank, increase the size attribute
    //  或者 or
    <long-scroll v-model="current" :data="data" :style="{height:'400px'}">
      <template #default="{row}">
        {{row.name}}
      </template>
    </long-scroll>
</template>

<script>
    data(){
        return {
            current:0,  // 当前展示的数据第一条索引 The first index of the data currently displayed
            data:[] // 数据结构[{name:""}] 
        }
    }
</script>

效果

avatar

属性方法说明/option

| 属性/事件 option | 描述 description | 默认值 default | | ----------- | ----------- | ----------- | | v-model/current+@change | 当前展示的数据第一条索引 The first index of the data currently displayed | 0 | | data | 要展示的所有数据 All data to show |\ | | current | 当前展示的数据第一条索引 The first index of the data currently displayed | 0 | | size | 要渲染到Dom的数据条数 Number of data to render to DOM | 20 | | valueKey | 行展示默认内容的键 Line shows the default content of the key | name | | rowHeight | 每行展示的高度 Height of each line | 36 | | change | 当前数据改变事件 Current data change events | current |

License

MIT License

Copyright (c) 2021-present, YangJianFei [email protected]

Source Code

https://github.com/YangJianFei/vue-long-scroll

My Git

YangJianFei