vue-antd-admin/src/layouts/footer/PageFooter.vue
iczer 719dba0bd9 fix: problem of component style in night mode; 🐛
修复:夜晚模式下组件样式问题;
2020-07-08 11:49:12 +08:00

43 lines
910 B
Vue

<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>
export default {
name: 'PageFooter',
props: ['copyright', 'linkList']
}
</script>
<style lang="less" scoped>
.footer{
padding: 0 16px;
margin: 48px 0 24px;
text-align: center;
.copyright{
color: @text-color-second;
font-size: 14px;
}
.links{
margin-bottom: 8px;
a:not(:last-child) {
margin-right: 40px;
}
a{
color: @text-color-second;
-webkit-transition: all .3s;
transition: all .3s;
}
}
}
</style>