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

moving-numbers-vue3

v1.1.6

Published

会动的数字。

Downloads

47

Readme

简介

会动的数字。 会动的数字

快速开始

npm i moving-numbers-vue3 -S

快速应用

全局注入
import movingNumbers from 'moving-numbers-vue3'
app.use(movingNumbers);
局部注入
import { MovingNumbers } from 'moving-numbers-vue3';
export default {
  name: 'App',
  components: {
    MovingNumbers
  }
}

主参数

参数 | 类型 | 必填项 | 默认值 | 参考值 | 说明 ---- | ----- | ------ | ------ | ------ | :------ mNum | Number 或 String | √ | | | 会动的数字。 mode | String | × | fast | fast:快增;fix:定变;scroll:滚动; | 计算模式。 decimal | Number | × | | | 小数位限制,默认不做处理。设定后处理原则:数据小数位位数大于指定数字处理。 quantileShow | Boolean | × | false | | 分位符号是否显示。 quantileType | Number | × | 4 | | 分位符号类型:人民币:4位分割;美元:3位分割。 fontSize | Number | × | 14 | | 字体大小。

方法

参数 | 类型| 解释 ---- | ----- | :------

示例 1
<MovingNumbers
  class="c1"
  :mNum="movingNumber"
  :quantileShow="true">
</MovingNumbers>
setInterval(() => {
  this.movingNumber = (Math.random() * 1000000).toFixed(6);
  // console.log(this.movingNumber);
}, 5000);
</script>
示例 2
<MovingNumbers
  class="c2"
  :mNum="movingNumber"
  mode="fix"
  :decimal="3"
  :quantileShow="true"
  :quantileType="3">
</MovingNumbers>
setInterval(() => {
  this.movingNumber = (Math.random() * 1000000).toFixed(6);
  // console.log(this.movingNumber);
}, 5000);
</script>
示例 3
<MovingNumbers
  class="c3"
  :mNum="movingNumber"
  mode="scroll"
  :decimal="4"
  :quantileShow="true">
</MovingNumbers>
setInterval(() => {
  this.movingNumber = (Math.random() * 1000000).toFixed(6);
  // console.log(this.movingNumber);
}, 5000);
</script>