1 changed files with 12 additions and 8 deletions
@ -1,15 +1,19 @@ |
|||||
<template> |
<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> |
<slot></slot> |
||||
</button> |
</button> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
props: { |
|
||||
|
<script setup> |
||||
|
defineEmits(['click']); |
||||
|
|
||||
|
defineProps({ |
||||
type: { |
type: { |
||||
default: 'button', |
default: 'button', |
||||
}, |
}, |
||||
}, |
|
||||
}; |
|
||||
|
}); |
||||
</script> |
</script> |
||||
|
|||||
Loading…
Reference in new issue