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
}
}