mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 08:43:19 +01:00
37 lines
664 B
Vue
37 lines
664 B
Vue
<template>
|
|
<button
|
|
:type="nativeType"
|
|
:disabled="isLoading"
|
|
:class="{
|
|
'button': true,
|
|
[`${color}`]: true,
|
|
'is-loading': isLoading,
|
|
}">
|
|
<slot />
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'VButton',
|
|
|
|
props: {
|
|
color: {
|
|
type: String,
|
|
default: 'is-link'
|
|
},
|
|
|
|
nativeType: {
|
|
type: String,
|
|
default: 'submit'
|
|
},
|
|
|
|
isLoading: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
}
|
|
}
|
|
|
|
</script>
|