Add href prop to button
This commit is contained in:
parent
72596e9f51
commit
1f71ab315e
|
@ -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: '',
|
||||||
|
|
Reference in New Issue