2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { ref } from 'vue'
import type { Ref } from 'vue'
export const useToggle = (initState: boolean): [Ref<boolean>, () => void] => {
const state = ref<boolean>(initState)
const toggle = () => {
state.value = !state.value
}
return [state, toggle]
}