feat: add wave

This commit is contained in:
2023-03-18 18:17:20 +08:00
parent 21c3a13f5a
commit 691bd2b965
5 changed files with 92 additions and 8 deletions

View File

@ -1,5 +1,6 @@
import { computed, defineComponent } from 'vue'
import { useProviderConfigState } from '../config-provider/context'
import Wave from '../_util/wave'
import useStyle from './style'
const Button = defineComponent({
@ -29,12 +30,14 @@ const Button = defineComponent({
return () => {
return wrapSSR(
<button
{...attrs}
class={[cls.value, attrs.class]}
>
{slots.default?.()}
</button>
<Wave>
<button
{...attrs}
class={[cls.value, attrs.class]}
>
{slots.default?.()}
</button>
</Wave>
)
}
}