vue的组件和组件库
vue-github-profile (vue-github-profile)
A vue component to view the profile and repos of determined user.
一个Vue组件,用于查看确定的用户的个人资料和存储库。
安装方式 (Instalation)
$ npm install --save vue-github-profile
用法 (Usage)
<GithubProfile width="width" user="github-user"></GithubProfile>
<script>
import GithubProfile from 'vue-github-profile'
export default {
name: 'app',
data () {
return {
}
},
components: {
GithubProfile
}
}
</script>
例 (Example)
<GithubProfile width="20em" user="gabrielbibiano"></GithubProfile>
翻译自: https://vuejsexamples.com/a-vue-component-to-view-the-profile-and-repos-of-determined-user/
vue的组件和组件库
一个Vue组件,用于展示特定GitHub用户的个人资料和仓库。通过简单配置,即可在网页上显示用户信息。安装并导入组件,设置用户参数,即可查看其GitHub详情。

被折叠的 条评论
为什么被折叠?



