mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
851242e317
* feat(docs): add source and contributors closes #6038 * feat(docs): ignore contributor when dev * ci: add github token * fix: lint * fix: page * fix: placeholder * ci: remove preview
38 lines
848 B
Vue
38 lines
848 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue'
|
|
// @ts-expect-error missing types
|
|
import _contributors from '/virtual-contributors'
|
|
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">
|
|
<VpLink
|
|
: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 }}
|
|
</VpLink>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.link {
|
|
color: var(--text-color-light);
|
|
|
|
&:hover {
|
|
color: var(--brand-color);
|
|
}
|
|
}
|
|
</style>
|