element-plus/docs/.vitepress/vitepress/components/sponsors/sponsors-button.vue
云游君 2caac7906e
refactor(docs): adjust style details & fix pages width (#6624)
* refactor(docs): adjust style details

* refactor(docs): add toc width

* refactor(docs): remove unused var

* fix(docs): typography & button etc pages width unify
2022-03-14 23:41:39 +08:00

26 lines
759 B
Vue

<template>
<div class="join">
<el-tooltip placement="top" :hide-after="1000" :offset="20">
<template #content>
{{ homeLang['21'] }}
<a href="mailto:element-plus@outlook.com" target="_blank">
&nbsp;element-plus@outlook.com
</a>
</template>
<a href="mailto:element-plus@outlook.com" target="_blank">
<el-button :round="round">{{ homeLang['20'] }}</el-button>
</a>
</el-tooltip>
</div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useLang } from '../../composables/lang'
import homeLocale from '../../../i18n/pages/home.json'
const lang = useLang()
const homeLang = computed(() => homeLocale[lang.value])
defineProps<{ round?: boolean }>()
</script>