0.0.9 • Published 6 years ago

vue-rotate v0.0.9

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

vue-rotate

A Vue.js rotate component

安装

  npm install vue-rotate -S

使用

<rotate ref="rotate" :rotating="isRotating"></rotate>
import Rotate from 'vue-rotate'
...
export default {
  data () {
    return {
      isRotating: true
    }
  },
  components: {
    Rotate
  }
}
...

props

rotating (是否转动)

Type: Boolean Required: false Default: false

dps (转速degree per second)

Type: Number Required: false Default: 10

methods

play 开始旋转

this.$refs.rotate.play()

pause 停止旋转

this.$refs.rotate.pause()

reset 重置

this.$refs.rotate.reset()
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago