0.0.7 • Published 5 years ago
bubu_gear v0.0.7
Gear - Vue UI组件
作者:BUBU_Sourire
介绍
这是在学习Vue过程中做的一个UI框架。
开始使用
- 添加CSS样式
使用本框架前,请在CSS中开启 border-box
*,*::before,*::after{box-sizing: border-box}
IE8 及以上浏览器都支持此样式
设置默认颜色等变量(后续改为SCSS变量)
:root {
--button-height: 32px;
--font-size: 14px;
--color: #333;
--button-bg: white;
--button-active-bg: #eee;
--border-radius: 4px;
--border-color: #999;
--border-color-hover: #666;
}
IE15 及以上浏览器都支持此样式
- 安装bubu_gear
npm install --save bubu_gear
- 引入bubu_gear
//APP.vue文件
import {Button, Button_group, Icon} from 'bubu_gear'
import 'bubu_gear/dist/index.css'
export default {
name: 'App',
components: {
HelloWorld,
'g-button': Button,
'g-icon':Icon
}
}