antd-tiny-vue/components/_util/wave/use-wave.ts

12 lines
315 B
TypeScript
Raw Normal View History

2023-03-18 20:48:10 +08:00
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
}