fix. 기본 버튼 수정
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user