本页导航
article
GithubCorner
AI摘要
本文介绍了如何在 Vue 项目中使用 GithubCorner 组件来显示 Github 角标。通过导入组件、在模板中使用并传入跳转链接参数,结合自定义 CSS,可以方便地在页面上添加 Github 角标。组件参数简单,仅需传入 href 链接地址。
说明
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: '',
}
})
最后更新于 2025-09-30 20:31