Skip to content

PLDaily/vue-github-vcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-github-vcard

使用示例

git clone https://github.com/PLDaily/vue-github-vcard.git
npm install
//测试
gulp dev
//发布
gulp default

调用示例

<style type="text/css">
*{
	padding: 0;
	margin: 0;
}
</style>
<template>
<div id="main">
	<github :githubinit="githubinit"></github>
</div>
</template>
<script>
import Github from './Github.vue'
export default {
    components: { 'github': Github },
    data () {
    	var githubinit = {
    		username: "PlDaily",
    		width: 260,
    		position: "right"//"left": 左侧;"center": 居中;"right":右侧
    	};
		return {
			githubinit: githubinit
		}
    }
}
</script>

sliderinit参数

参数名称 类型 是否必须 示例 参数说明 默认
username string "PlDaily" github用户名
width number 320 github名片宽度
position string "right" github名片头像显示位置

具体项目中运用

vuejs-project

完善

1.样式调整

About

基于vue组件的github名片

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors