这是我在学习vue过程中做的组件库.
- 设置css
*,
*::before,
*::after {
box-sizing: border-box;
}
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;
}
- 安装
npm i -S lunzi-vue
- 引入lunzi-vue
import {Button, ButtonGroup, Icon} from 'lunzi-vue'
export default {
name: 'app',
components: {
HelloWorld,
'g-button': Button,
'g-icon': Icon
}
}