mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-08 21:44:32 +02:00
Use Button component to submit all forms
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<button
|
||||
:type="nativeType"
|
||||
:type="nativeType"
|
||||
:disabled="isLoading"
|
||||
:class="{
|
||||
'button': true,
|
||||
[`${color}`]: true,
|
||||
'is-large': isLarge,
|
||||
'is-focused': isFocused,
|
||||
}"
|
||||
class="button">
|
||||
'is-loading': isLoading,
|
||||
}">
|
||||
<slot />
|
||||
</button>
|
||||
</template>
|
||||
@ -26,15 +26,10 @@
|
||||
default: 'submit'
|
||||
},
|
||||
|
||||
isFocused: {
|
||||
isLoading: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
isLarge: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user