目的
提供一个跳转到GitHub地址的小组件
灵感来源
参数
export interface Props {
link: string ## GitHub地址
position: 'left' | 'right' ## 组件位置
content: string ## 组件内容
color: string ## 组件背景颜色
type: 'corners' | 'ribbons' | 'trapeziumType' ## 提供3种类型的组件
}
引入
import gitForkVue from "@simon_he/git-fork-vue";
使用
<gitForkVue
link="https://github.com/Simon-He95"
type="ribbons"
position="left"
/>
☕
❓ 问题
依赖
vue
、unocss
、vite-plugin-inspector-lib-css