Add href prop to button

This commit is contained in:
kolaente 2021-01-17 15:20:25 +01:00
parent 72596e9f51
commit 1f71ab315e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@
}" }"
:disabled="disabled" :disabled="disabled"
@click="e => $emit('click', e)" @click="e => $emit('click', e)"
:href="href !== '' ? href : false"
> >
<icon :icon="icon" v-if="icon !== ''"/> <icon :icon="icon" v-if="icon !== ''"/>
<slot></slot> <slot></slot>
@ -24,6 +25,10 @@ export default {
type: String, type: String,
default: 'primary', default: 'primary',
}, },
href: {
type: String,
default: '',
},
icon: { icon: {
type: String, type: String,
default: '', default: '',