lcb-ui-test
v0.0.1-sss
Published
这是一个ui框架
Readme
CB-UI
介绍
学习用Vue ui框架
开始使用
- 添加css样式 使用本框架前,css中开启border-box
*,*::before,*::after{box-sizing:border-box}IE8以上浏览器都支持该样式
你还需要设置默认颜色等变量(后续会改为SCSS等变量)
:root {
--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;
}ID15以上浏览器都支持该样式 2. 安装cb-ui
npm i --save lcb-ui-test- 引入cb-ui
import {Button,ButtonGroup,Icon} from 'lcb-ui-test'
import 'lcb-ui-test/dist/index.css'
export default {
name: 'app',
components: {
'c-button':Button,
'c-icon':Icon
}
}