DigitalConsumer.FixMyGlass/src/uxComponents/buttonPrimary/buttonPrimary.vue

28 lines
486 B
Vue

<template>
<button
class="btn btn-primary d-flex align-items-center"
v-on:click="showLoader()"
v-bind:class="[this.isLoading ? 'button-loader' : 'not-loading', this.buttonType,]"
>
{{ this.buttonText }}
</button>
</template>
<script>
export default {
name: "buttonPrimary",
props: {
buttonText: String
},
data() {
return {
isLoading: false,
};
},
methods: {
showLoader() {
this.isLoading = true;
},
},
};
</script>