2020-08-13 15:18:26 +08:00
|
|
|
<template>
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="footer-main">
|
|
|
|
<h4>{{ langConfig.links }}</h4>
|
2021-09-04 19:29:28 +08:00
|
|
|
<a
|
|
|
|
href="https://github.com/element-plus/element-plus"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.repo }}</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
href="https://github.com/element-plus/element-plus/releases"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.changelog }}</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
href="https://github.com/element-plus/element-plus-starter"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.starter }}</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="'/#/' + lang + '/component/custom-theme'"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.theme }}</a
|
|
|
|
>
|
2020-08-13 15:18:26 +08:00
|
|
|
</div>
|
|
|
|
<div class="footer-main">
|
|
|
|
<h4>{{ langConfig.community }}</h4>
|
2021-09-04 19:29:28 +08:00
|
|
|
<a :href="gitterLink" class="footer-main-link" target="_blank">{{
|
|
|
|
langConfig.gitter
|
|
|
|
}}</a>
|
|
|
|
<a
|
|
|
|
href="https://github.com/element-plus/element-plus/issues"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.feedback }}</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
:href="`https://github.com/element-plus/element-plus/blob/dev/.github/CONTRIBUTING.${lang}.md`"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>{{ langConfig.contribution }}</a
|
|
|
|
>
|
|
|
|
<a
|
|
|
|
href="https://segmentfault.com/t/element-plus"
|
|
|
|
class="footer-main-link"
|
|
|
|
target="_blank"
|
|
|
|
>SegmentFault</a
|
|
|
|
>
|
2020-08-13 15:18:26 +08:00
|
|
|
</div>
|
|
|
|
<div class="footer-social">
|
2021-01-03 11:37:55 +08:00
|
|
|
<p class="footer-social-title">Element Team</p>
|
2020-08-13 15:18:26 +08:00
|
|
|
<el-popover
|
|
|
|
ref="weixin"
|
2020-10-19 13:44:50 +08:00
|
|
|
v-model:visible="footerVisible"
|
2020-08-13 15:18:26 +08:00
|
|
|
placement="top"
|
|
|
|
width="120"
|
|
|
|
popper-class="footer-popover"
|
|
|
|
trigger="hover"
|
|
|
|
>
|
2020-10-19 13:44:50 +08:00
|
|
|
<template #reference>
|
|
|
|
<i class="doc-icon-weixin elementdoc"></i>
|
|
|
|
</template>
|
|
|
|
<template #default>
|
|
|
|
<div class="footer-popover-title">{{ langConfig.eleme }} UED</div>
|
2021-09-04 19:29:28 +08:00
|
|
|
<img src="../assets/images/qrcode.png" alt="" />
|
2020-10-19 13:44:50 +08:00
|
|
|
</template>
|
2020-08-13 15:18:26 +08:00
|
|
|
</el-popover>
|
2020-12-01 14:55:35 +08:00
|
|
|
<a href="https://github.com/element-plus/element-plus" target="_blank">
|
2020-08-13 15:18:26 +08:00
|
|
|
<i class="doc-icon-github elementdoc"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import compoLang from '../i18n/component.json'
|
2020-10-29 11:52:38 +08:00
|
|
|
import { Language } from '../enums/language'
|
2020-08-13 15:18:26 +08:00
|
|
|
const version = '1.0.0' // element version
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
version,
|
2020-10-19 13:44:50 +08:00
|
|
|
footerVisible: false,
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
lang() {
|
2020-10-29 11:52:38 +08:00
|
|
|
return this.$route.path.split('/')[1] || Language.CN
|
2020-08-13 15:18:26 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
langConfig() {
|
2021-09-04 19:29:28 +08:00
|
|
|
return compoLang.filter((config) => config.lang === this.lang)[0][
|
|
|
|
'footer'
|
|
|
|
]
|
2020-08-13 15:18:26 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
gitterLink() {
|
2021-09-04 19:29:28 +08:00
|
|
|
return this.lang === Language.CN
|
|
|
|
? 'https://gitter.im/ElemeFE/element'
|
|
|
|
: 'https://gitter.im/element-en/Lobby'
|
2020-08-13 15:18:26 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-09-04 19:29:28 +08:00
|
|
|
.footer {
|
|
|
|
background-color: #f7fbfd;
|
|
|
|
width: 100%;
|
|
|
|
padding: 40px 150px;
|
|
|
|
margin-top: -340px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 340px;
|
|
|
|
|
|
|
|
.container {
|
2020-08-13 15:18:26 +08:00
|
|
|
box-sizing: border-box;
|
2021-09-04 19:29:28 +08:00
|
|
|
width: auto;
|
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.footer-main {
|
|
|
|
font-size: 0;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
margin-right: 110px;
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 18px;
|
|
|
|
color: var(--el-text-color-primary);
|
|
|
|
line-height: 1;
|
|
|
|
margin: 0 0 15px 0;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.footer-main-link {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 2;
|
|
|
|
font-size: 14px;
|
|
|
|
color: var(--el-text-color-regular);
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
&:hover {
|
2021-08-26 09:57:56 +08:00
|
|
|
color: var(--el-text-color-primary);
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.footer-social {
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.footer-social-title {
|
|
|
|
color: var(--el-text-color-regular);
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 1;
|
|
|
|
margin: 0 0 20px 0;
|
|
|
|
padding: 0;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.elementdoc {
|
|
|
|
transition: 0.3s;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 32px;
|
|
|
|
text-align: center;
|
|
|
|
color: #c8d6e8;
|
|
|
|
background-color: transparent;
|
|
|
|
size: 32px;
|
|
|
|
font-size: 32px;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 20px;
|
|
|
|
&:hover {
|
|
|
|
transform: scale(1.2);
|
|
|
|
color: #8d99ab;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.doc-icon-gitter {
|
|
|
|
margin-right: 0;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
.el-popover.footer-popover {
|
|
|
|
padding: 0;
|
|
|
|
min-width: 120px;
|
|
|
|
line-height: normal;
|
|
|
|
box-shadow: 0 0 11px 0 rgba(174, 187, 211, 0.24);
|
|
|
|
|
|
|
|
.footer-popover-title {
|
|
|
|
border-bottom: solid 1px var(--el-border-color-base);
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
text-align: center;
|
|
|
|
color: #99a9bf;
|
|
|
|
background-color: #f8f9fe;
|
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
img {
|
|
|
|
size: 100px;
|
|
|
|
margin: 10px;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
|
|
|
@media (max-width: 1140px) {
|
|
|
|
.footer {
|
|
|
|
height: auto;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
@media (max-width: 1000px) {
|
|
|
|
.footer-social {
|
|
|
|
display: none;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
@media (max-width: 768px) {
|
|
|
|
.footer {
|
|
|
|
.footer-main {
|
|
|
|
margin-bottom: 30px;
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
}
|
2021-09-04 19:29:28 +08:00
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
</style>
|