chore: install @vant/use

This commit is contained in:
chenjiahan
2020-09-10 21:15:16 +08:00
parent 38edb83f37
commit df0a055ce6
4 changed files with 7 additions and 11 deletions
-10
View File
@@ -1,10 +0,0 @@
import { ref } from 'vue';
export function useToggle(defaultValue = false) {
const state = ref(defaultValue);
const setState = (value: boolean) => {
state.value = value;
};
return [state, setState];
}