diff --git a/src/basic/ab-button.vue b/src/basic/ab-button.vue index 4a5bbdc1..48f03ae3 100644 --- a/src/basic/ab-button.vue +++ b/src/basic/ab-button.vue @@ -3,25 +3,41 @@ const props = withDefaults( defineProps<{ type?: 'primary' | 'warn'; size?: 'big' | 'normal' | 'small'; + link?: string | null; }>(), { type: 'primary', size: 'normal', + link: null, } ); defineEmits(['click']); + +const buttonSize = computed(() => { + switch (props.size) { + case 'big': + return 'rounded-10px text-h1 w-276px h-55px'; + case 'normal': + return 'rounded-6px w-170px h-36px'; + case 'small': + return 'rounded-6px w-86px h-28px'; + } +});