mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 22:31:58 +01:00
34 lines
711 B
Vue
34 lines
711 B
Vue
|
<script setup>
|
||
|
const props = defineProps({
|
||
|
color: {
|
||
|
type: String,
|
||
|
default: 'is-link'
|
||
|
},
|
||
|
nativeType: {
|
||
|
type: String,
|
||
|
default: 'submit'
|
||
|
},
|
||
|
isLoading: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
},
|
||
|
isDisabled: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
}
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<button
|
||
|
:type="nativeType"
|
||
|
:disabled="isLoading || isDisabled"
|
||
|
:class="{
|
||
|
'button': true,
|
||
|
[`${color}`]: true,
|
||
|
'is-loading': isLoading,
|
||
|
}"
|
||
|
v-on:click="$emit('click')">
|
||
|
<slot />
|
||
|
</button>
|
||
|
</template>
|