Blame view

Yi.Vben5.Vue3/packages/effects/layouts/src/basic/copyright/copyright.vue 871 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  <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',
    companySiteLink: '',
    date: '2024',
    icp: '',
    icpLink: '',
  });
  </script>
  
  <template>
    <div class="text-md flex-center">
      <!-- ICP Link -->
      <a
        v-if="icp"
        :href="icpLink || 'javascript:void(0)'"
        class="hover:text-primary-hover mx-1"
        target="_blank"
      >
        {{ icp }}
      </a>
  
      <!-- Copyright Text -->
      Copyright © {{ date }}
  
      <!-- Company Link -->
      <a
        v-if="companyName"
        :href="companySiteLink || 'javascript:void(0)'"
        class="hover:text-primary-hover mx-1"
        target="_blank"
      >
        {{ companyName }}
      </a>
    </div>
  </template>