本页导航
article
GithubCorner
AI摘要
本文介绍了GithubCorner,一个用于在网页上添加GitHub项目角标的工具。文章主要说明了其基本用途,并概述了其使用方法和可配置参数,旨在帮助开发者快速在网站中集成这一指向GitHub仓库的视觉元素。
说明
Github角标
使用
<script setup lang="ts">
import { GithubCorner } from "liyao-vue-common"
</script>
<template>
// 需要自己写css确定要放的位置, href为跳转的链接
<GithubCorner :href="'https://github.com'"/>
</template>
参数
const props = defineProps({
href: {
type: String,
default: '',
}
})
最后更新于 2026-02-17 19:40