1.1.1 • Published 4 years ago

vue-digital-transform v1.1.1

Weekly downloads
32
License
MIT
Repository
github
Last release
4 years ago

vue-digital-transform

一个基于 Vue 的数字切换动效库

Install

npm install vue-digital-transform

Example

<template>
  <DigitalTransform :value="num" dislocation :interval="200"></DigitalTransform>
</template>
import DigitalTransform from "vue-digital-transform";

export default {
  components: {
    DigitalTransform
  },
  data() {
    return {
      num: 0
    };
  }
};

Config

proptypedescriptiondefault
valueNumber,String需要切换的数字,只能由 0-9 . , 组成undefined
dislocationBoolean单个数字是否过渡时间是否不一致false
intervalNumber单个数字过渡时间(ms)500
useGrouping (v1.1.0+)Boolean是否开启分隔符(对 value 为 Number 类型的有效)false
1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago