0.1.6 • Published 3 years ago

vue-composition-toolset v0.1.6

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

vue-composition-toolset Travis (.com) Codecov

Minimalist design

Provide users with the simplest and most direct development experience

Install

Thanks for vue-demi, it works for both Vue 2 & 3.

npm i vue-composition-toolset

Usage

import { useTimerFn } from 'vue-composition-toolset'

export default {
  setup() {
    const doSomething = () => {
      /* your function */
    }
    const { trigger } = useTimerFn(doSomething, 30 * 1000) // The function will be executed every 30 seconds

    trigger.value = false // Disable the timer that executes the function
    trigger.value = true // Enable the timer that executes the function
  }
}

License

MIT License © 2021-PRESENT leafstark

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago