mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-12-15 09:58:51 +08:00
feat: add wave
This commit is contained in:
11
components/_util/wave/use-wave.ts
Normal file
11
components/_util/wave/use-wave.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user