1 changed files with 12 additions and 8 deletions
@ -1,15 +1,19 @@ |
|||
<template> |
|||
<button :type="type" class="bg-primary px-6 py-3 leading-none rounded text-lg font-semibold text-white disabled:bg-gray-300"> |
|||
<button |
|||
:type="type" |
|||
class="bg-primary px-6 py-3 leading-none rounded text-lg font-semibold text-white disabled:bg-gray-300" |
|||
@click.prevent="$emit('click', $event)" |
|||
> |
|||
<slot></slot> |
|||
</button> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
props: { |
|||
<script setup> |
|||
defineEmits(['click']); |
|||
|
|||
defineProps({ |
|||
type: { |
|||
default: 'button', |
|||
}, |
|||
}, |
|||
}; |
|||
}); |
|||
</script> |
|||
|
|||
Loading…
Reference in new issue