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
49
50
| <template>
| <div class="footer">
| <div class="links">
| <a target="_blank" :key="index" :href="item.link ? item.link : 'javascript: void(0)'" v-for="(item, index) in linkList">
| <a-icon v-if="item.icon" :type="item.icon"/>{{item.name}}
| </a>
| </div>
| <div class="copyright">
| Copyright<a-icon type="copyright" />{{copyright}}
| </div>
| </div>
| </template>
|
| <script lang="ts">
| import { Component, Prop, Vue } from 'vue-property-decorator';
|
| @Component({})
| export default class AdminFooter extends Vue {
|
| @Prop({type: String, default: '' })
| private copyright!: string;
|
| @Prop({type: Array, default: [] })
| private linkList!: Array<{name: string, icon: string, link: string}>;
|
| }
| </script>
|
| <style lang="less" scoped>
| .footer{
| padding: 0 16px;
| margin: 48px 0 24px;
| text-align: center;
| .copyright{
| color: rgba(0,0,0,.45);
| font-size: 14px;
| }
| .links{
| margin-bottom: 8px;
| a:not(:last-child) {
| margin-right: 40px;
| }
| a{
| color: rgba(0,0,0,.45);
| -webkit-transition: all .3s;
| transition: all .3s;
| }
| }
| }
| </style>
|
|