fix. 컴포넌트 폴더 구조 변경

This commit is contained in:
clkim
2025-09-16 15:10:33 +09:00
parent 0b413bb197
commit 62e06b30f4
25 changed files with 58 additions and 37 deletions

View File

@@ -0,0 +1,27 @@
<script setup lang="ts">
interface Props {
to: string
target?: string
class?: string
}
const props = withDefaults(defineProps<Props>(), {
target: '',
class: '',
})
</script>
<template>
<a
v-if="props.target === '_blank'"
v-bind="$attrs"
:href="props.to"
:target="props.target"
:class="props.class"
>
<slot />
</a>
<AtomsLocaleLink v-else v-bind="$attrs" :to="props.to" :class="props.class">
<slot />
</AtomsLocaleLink>
</template>