feat: add wave

This commit is contained in:
2023-03-18 20:48:10 +08:00
parent 691bd2b965
commit 69388270af
5 changed files with 99 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
import type { ComputedRef, Ref } from 'vue'
import showWaveEffect from './wave-effect'
export default function useWave(nodeRef: Ref<HTMLElement>, className: ComputedRef<string>): VoidFunction {
function showWave() {
// const node = nodeRef.va!
showWaveEffect(nodeRef, className)
}
return showWave
}