Add disabled state for button
This commit is contained in:
parent
64c20836ae
commit
72596e9f51
|
@ -8,6 +8,7 @@
|
|||
'is-outlined': type === 'secondary',
|
||||
'is-text is-inverted has-no-shadow underline-none': type === 'tertary',
|
||||
}"
|
||||
:disabled="disabled"
|
||||
@click="e => $emit('click', e)"
|
||||
>
|
||||
<icon :icon="icon" v-if="icon !== ''"/>
|
||||
|
@ -35,6 +36,10 @@ export default {
|
|||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
Reference in New Issue