UnisKB/ui/src/layout/layout-header/top-about/index.vue

52 lines
1.2 KiB
Vue
Raw Normal View History

2025-04-28 10:14:16 +00:00
<template>
<div>
<el-tooltip
effect="dark"
:content="$t('layout.github')"
placement="top"
2025-05-12 10:19:28 +00:00
v-if="theme.themeInfo?.showProject"
2025-04-28 10:14:16 +00:00
>
<AppIcon
iconName="app-github"
class="cursor color-secondary mr-8 ml-8"
style="font-size: 20px"
2025-05-12 10:19:28 +00:00
@click="toUrl(theme.themeInfo?.projectUrl)"
2025-04-28 10:14:16 +00:00
></AppIcon>
</el-tooltip>
<el-tooltip
effect="dark"
:content="$t('layout.wiki')"
placement="top"
2025-05-12 10:19:28 +00:00
v-if="theme.themeInfo?.showUserManual"
2025-04-28 10:14:16 +00:00
>
<AppIcon
iconName="app-user-manual"
class="cursor color-secondary mr-8 ml-8"
style="font-size: 20px"
2025-05-12 10:19:28 +00:00
@click="toUrl(theme.themeInfo?.userManualUrl)"
2025-04-28 10:14:16 +00:00
></AppIcon>
</el-tooltip>
<el-tooltip
effect="dark"
:content="$t('layout.forum')"
placement="top"
2025-05-12 10:19:28 +00:00
v-if="theme.themeInfo?.showForum"
2025-04-28 10:14:16 +00:00
>
<AppIcon
iconName="app-help"
2025-06-23 11:37:38 +00:00
class="cursor color-secondary mr-8 ml-8"
2025-04-28 10:14:16 +00:00
style="font-size: 20px"
2025-05-12 10:19:28 +00:00
@click="toUrl(theme.themeInfo?.forumUrl)"
2025-04-28 10:14:16 +00:00
></AppIcon>
</el-tooltip>
</div>
</template>
<script setup lang="ts">
import useStore from '@/stores'
2025-05-12 10:19:28 +00:00
const { theme } = useStore()
2025-07-03 09:28:35 +00:00
2025-04-28 10:14:16 +00:00
function toUrl(url: string) {
window.open(url, '_blank')
}
</script>