-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ImageGallery, InlinePicture and SogLink
- Loading branch information
1 parent
690e92d
commit d699ef4
Showing
4 changed files
with
58 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<template> | ||
<div> | ||
<NuxtLink | ||
v-if="dest !== '' && !external" | ||
:to="localePath(`/${dest}`)" | ||
:alt="alt" | ||
> | ||
<slot /> | ||
</NuxtLink> | ||
<a | ||
v-else-if="dest !== '' && external" | ||
:href="dest" | ||
:alt="alt" | ||
rel="noopener" | ||
target="_blank" | ||
> | ||
<slot /> | ||
</a> | ||
<slot v-else /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const props = defineProps<{ dest: string, alt: string }>() | ||
const localePath = useLocalePath() | ||
const external = computed(() => props.dest.indexOf('https://') === 0 || props.dest.indexOf('http://') === 0) | ||
</script> |
This file was deleted.
Oops, something went wrong.