Appearance
GithubCorner
说明
Github角标
使用
vue
<script setup lang="ts">
import { GithubCorner } from "liyao-vue-common"
</script>
<template>
// 需要自己写css确定要放的位置, href为跳转的链接
<GithubCorner :href="'https://github.com'"/>
</template>
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
参数
typescript
const props = defineProps({
href: {
type: String,
default: '',
}
})
1
2
3
4
5
6
2
3
4
5
6