Skip to content

Commit e7644ea

Browse files
committed
feat: add badge
1 parent 856fbd4 commit e7644ea

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.17.4

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
34
45
Provide users with the simplest and most direct development experience
56

67
## Install
78

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.
910

1011
```
1112
npm i vue-composition-toolset
@@ -18,16 +19,17 @@ import { useTimerFn } from 'vue-composition-toolset'
1819

1920
export default {
2021
setup() {
21-
const doSomething = () => {
22+
const doSomething = () => {
2223
/* your function */
2324
}
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
2526

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
2829
}
2930
}
3031
```
31-
## License
32+
33+
## License
3234

3335
[MIT License](https://github.com/leafstark/vue-composition-toolset/blob/master/LICENSE) © 2021-PRESENT [leafstark](https://github.com/leafstark)

0 commit comments

Comments
 (0)