Skip to content

snakeYu/lunzi

Repository files navigation

前端造轮子

介绍

Build Status

开始使用

1.添加 css 样式

使用前,请在 css 中开启 border-box

*,
*::before,
*::after {
	box-sizing: border-box;
}
/* ie 8及以上支持 */

你还需要设置默认颜色等变量(后续会改为 scss 变量)

html {
	--button-height: 32px;
	--font-size: 14px;
	--button-bg: white;
	--button-active-bg: #eee;
	--border-radius: 4px;
	--color: #333;
	--border-color: #999;
	--border-color-hover: #666;
}
/* IE15及以上支持此样式 */

2.安装

    npm install --save wheel_yu

3.引入

import { Button } from 'wheel_yu'
import 'wheel_yu/dist/index.css'

export default {
	components: {
		'g-button': Button
	}
}

文档

提问

变更记录

联系方式

贡献代码

About

前端造轮子

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published