Add href prop to button
This commit is contained in:
parent
72596e9f51
commit
1f71ab315e
|
@ -10,6 +10,7 @@
|
|||
}"
|
||||
:disabled="disabled"
|
||||
@click="e => $emit('click', e)"
|
||||
:href="href !== '' ? href : false"
|
||||
>
|
||||
<icon :icon="icon" v-if="icon !== ''"/>
|
||||
<slot></slot>
|
||||
|
@ -24,6 +25,10 @@ export default {
|
|||
type: String,
|
||||
default: 'primary',
|
||||
},
|
||||
href: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
default: '',
|
||||
|
|
Reference in New Issue