mirror of
				https://github.com/antd-tiny-vue/antd-tiny-vue.git
				synced 2025-10-31 08:41:45 +08:00 
			
		
		
		
	feat: add wave
This commit is contained in:
		| @@ -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> | ||||
|       ) | ||||
|     } | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user