13 changed files with 116 additions and 8 deletions
@ -0,0 +1,44 @@ |
|||
<script lang="ts" setup> |
|||
interface Props { |
|||
companyName: string; |
|||
companySiteLink?: string; |
|||
date: string; |
|||
icp?: string; |
|||
icpLink?: string; |
|||
} |
|||
|
|||
defineOptions({ |
|||
name: 'Copyright', |
|||
}); |
|||
|
|||
withDefaults(defineProps<Props>(), { |
|||
companyName: 'Vben Admin Pro', |
|||
companySiteLink: '', |
|||
date: '2024', |
|||
icp: '', |
|||
icpLink: '', |
|||
}); |
|||
</script> |
|||
|
|||
<template> |
|||
<div class="text-md flex-center"> |
|||
<a |
|||
v-if="icp" |
|||
:href="icpLink || 'javascript:void 0'" |
|||
class="hover:text-primary-hover" |
|||
target="_blank" |
|||
> |
|||
{{ icp }} |
|||
</a> |
|||
|
|||
Copyright © {{ date }} |
|||
<a |
|||
v-if="companyName" |
|||
:href="companySiteLink || 'javascript:void 0'" |
|||
class="hover:text-primary-hover mx-1" |
|||
target="_blank" |
|||
> |
|||
{{ companyName }} |
|||
</a> |
|||
</div> |
|||
</template> |
|||
@ -0,0 +1 @@ |
|||
export { default as Copyright } from './copyright.vue'; |
|||
@ -0,0 +1,17 @@ |
|||
<script setup lang="ts"> |
|||
import { $t } from '@vben/locales'; |
|||
|
|||
import SwitchItem from '../switch-item.vue'; |
|||
|
|||
defineOptions({ |
|||
name: 'PreferenceBreadcrumbConfig', |
|||
}); |
|||
|
|||
const copyrightEnable = defineModel<boolean>('copyrightEnable'); |
|||
</script> |
|||
|
|||
<template> |
|||
<SwitchItem v-model="copyrightEnable"> |
|||
{{ $t('preferences.copyright.enable') }} |
|||
</SwitchItem> |
|||
</template> |
|||
Loading…
Reference in new issue