Последняя версия с сервера прошлого разработчика
This commit is contained in:
34
nova/resources/js/components/ProgressButton.vue
Executable file
34
nova/resources/js/components/ProgressButton.vue
Executable file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<button
|
||||
class="btn btn-default btn-primary inline-flex items-center relative"
|
||||
type="button"
|
||||
ref="button"
|
||||
>
|
||||
<span :class="{ invisible: processing }"> <slot /> </span>
|
||||
|
||||
<span
|
||||
v-if="processing"
|
||||
class="absolute"
|
||||
style="top: 50%; left: 50%; transform: translate(-50%, -50%)"
|
||||
>
|
||||
<loader class="text-white" width="32" />
|
||||
</span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
processing: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
focus() {
|
||||
this.$refs.button.focus()
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user