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

accumulation-animation

v1.1.2

Published

为你的数据添加动态递增效果😀!

Downloads

23

Readme

accumulation-animation

简介

为你的数据添加动态递增效果😀!

文档

入门

安装

npm i accumulation-animation

使用

🚀你可以在Dom任何绑定数据的地方使用它

这里拿element的表格举例📕:

1、引入组件

全局引用(main.js中)

import accumulationAnimation from 'accumulation-animation';

Vue.use(accumulationAnimation)

按需加载

import { accumulationAnimation } from 'accumulation-animation'

components: {
  accumulationAnimation
},

2、挂载组件

      <el-table-column prop="percentage" label="比例" width="180" align="center">
        <template slot-scope="scope" style="color: #42b983">
          <accumulationAnimation
            :style="{color: 'red'}"
            :number="Number(scope.row.percentage)"
            :max-number="100"
            :unit="'%'"
          />
        </template>
      </el-table-column>

选项

number(必选)

  • 类型Number
  • 默认值0
  • 描述:需要添加效果的数据值

speed(可选)

  • 类型Number?
  • 默认值20
  • 描述:设置基准数据增速

maxNumber(可选)

  • 类型Number?
  • 默认值0
  • 描述:对照数据组最大值;默认所有数据增速一致(不同时结束),当需要控制动态增速使数据递增动效同时结束时,可设置此选项

unit(可选)

  • 类型String?
  • 默认值""
  • 描述:数据单位(可以添加任何你想展示的值)

作者

QQ:1415580200