From 4cc129aad6bd63a3653e8713d0a7cbdeb220608c Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 26 Jan 2023 11:49:10 +1000 Subject: [PATCH] added block option --- resources/js/components/SMButton.vue | 35 +++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/resources/js/components/SMButton.vue b/resources/js/components/SMButton.vue index a90f6fe..0e3428e 100644 --- a/resources/js/components/SMButton.vue +++ b/resources/js/components/SMButton.vue @@ -3,7 +3,12 @@ v-if="href.length > 0 || typeof to == 'string'" :href="href" :disabled="disabled" - :class="['button', 'prevent-select', classType]" + :class="[ + 'button', + 'prevent-select', + classType, + { 'button-block': block }, + ]" :type="buttonType"> {{ label }} @@ -11,7 +16,12 @@