fix. 기본 버튼 수정

This commit is contained in:
clkim
2025-10-30 20:20:38 +09:00
parent 6763d353c3
commit d07ec96b34
3 changed files with 12 additions and 26 deletions

View File

@@ -15,6 +15,7 @@ interface props {
const props = withDefaults(defineProps<props>(), {
type: 'action',
buttonSize: 'size-small md:size-large',
target: '_blank',
backgroundColor: 'var(--primary)',
textColor: 'var(--alternative-02)',
disabled: false,
@@ -22,9 +23,9 @@ const props = withDefaults(defineProps<props>(), {
const componentTag = computed((): string => {
switch (props.type) {
case 'link':
case 'download':
case 'external':
case 'download':
case 'link':
return 'a'
case 'internal':
return 'AtomsLocaleLink'
@@ -35,7 +36,11 @@ const componentTag = computed((): string => {
const componentProps = computed(() => {
const baseProps = { disabled: props.disabled }
if (props.type === 'external') {
if (
props.type === 'external' ||
props.type === 'download' ||
props.type === 'link'
) {
return {
...baseProps,
href: props.href,