vdt
vue-digital-transform
npm i vue-digital-transform
vdt

vue-digital-transform

A vue component for better digital transform animation

by Daker

1.1.1 (see all)License:MITTypeScript:Not Found
npm i vue-digital-transform
Readme

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

Downloads/wk

38

GitHub Stars

52

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

6
VersionTagPublished
1.1.1
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate