2.0.1 • Published 2 years ago

vue3-digital-transform v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vue3-digital-transform

npm.io npm.io

中文文档

Make your changes of digtals more funny. vue3-digital-transform

vue2 vue-digital-transform

Install

npm install vue3-digital-transform
或
yarn add vue3-digital-transform

Example

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

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

Config

proptypedescriptiondefault
valueNumber,StringDigitals. Only allow 0-9.,undefined
dislocationBooleanWhether every singal digital transforms in diffrent duration.false
intervalNumberThe time that transform spends.(ms)500
useGrouping (v1.1.0+)BooleanWhether group the digital or not. (Only when value is pure num)false

Contribution

Any contribution to the code or any part of the documentation and any idea and/or suggestion are very welcome.

Just pull requests!

Licence

MIT License