mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
3ab869b446
* refactor(docs): improve style and fix typo * fix(docs): dark
37 lines
840 B
Vue
37 lines
840 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
import _contributors from '@element-plus/metadata/dist/contributors.json'
|
|
import VpLink from '../common/vp-link.vue'
|
|
|
|
const props = defineProps<{ id: string }>()
|
|
|
|
const contributors = computed(() => _contributors[props.id])
|
|
</script>
|
|
|
|
<template>
|
|
<div class="mb-4">
|
|
<div class="flex flex-wrap gap-4 pt-2">
|
|
<div v-for="c of contributors" :key="c.hash">
|
|
<vp-link
|
|
:href="`https://github.com/${c.login}`"
|
|
class="flex gap-2 items-center link"
|
|
no-icon
|
|
>
|
|
<img :src="c.avatar" class="w-8 h-8 rounded-full" />
|
|
{{ c.name }}
|
|
</vp-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.link {
|
|
color: var(--text-color-light);
|
|
|
|
&:hover {
|
|
color: var(--brand-color);
|
|
}
|
|
}
|
|
</style>
|