File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change
1
+ 14.17.4
Original file line number Diff line number Diff line change 1
- # vue-composition-toolset
2
- > Minimalist design
1
+ # vue-composition-toolset ![ Travis (.com)] ( https://img.shields.io/travis/com/leafstark/vue-composition-toolset ) ![ Codecov] ( https://img.shields.io/codecov/c/github/leafstark/vue-composition-toolset )
2
+
3
+ > Minimalist design
3
4
4
5
Provide users with the simplest and most direct development experience
5
6
6
7
## Install
7
8
8
- ** Thanks for** [ vue-demi] ( https://github.com/vueuse/vue-demi ) , it works for both Vue 2 & 3.
9
+ ** Thanks for** [ vue-demi] ( https://github.com/vueuse/vue-demi ) , it works for both Vue 2 & 3.
9
10
10
11
```
11
12
npm i vue-composition-toolset
@@ -18,16 +19,17 @@ import { useTimerFn } from 'vue-composition-toolset'
18
19
19
20
export default {
20
21
setup() {
21
- const doSomething = () => {
22
+ const doSomething = () => {
22
23
/* your function */
23
24
}
24
- const { trigger } = useTimerFn (doSomething , 30 * 1000 ) // The function will be executed every 30 seconds
25
+ const { trigger } = useTimerFn (doSomething , 30 * 1000 ) // The function will be executed every 30 seconds
25
26
26
- trigger .value = false // Disable the timer that executes the function
27
- trigger .value = true // Enable the timer that executes the function
27
+ trigger .value = false // Disable the timer that executes the function
28
+ trigger .value = true // Enable the timer that executes the function
28
29
}
29
30
}
30
31
```
31
- ## License
32
+
33
+ ## License
32
34
33
35
[ MIT License] ( https://github.com/leafstark/vue-composition-toolset/blob/master/LICENSE ) © 2021-PRESENT [ leafstark] ( https://github.com/leafstark )
You can’t perform that action at this time.
0 commit comments