这是本人在学习Vue过程中做的一个UI框架,希望对你有帮助
-
添加 CSS 样式 使用本框架前请在CSS中开启 border-box
*,*::before,*::after{box-sizing: border-box;}
IE8及以上的浏览器都支持此样式。
还需要设置默认颜色等变量(后续会更新为 SCSS 变量)
html { --button-height: 32px; --font-size: 14px; --button-bg: white; --button-active-bg: #eee; --border-radius: 4px; --color: #999; --border-color: #999; --border-color-hover: #666; }
IE15及以上浏览器支持此样式 2.安装 wheel-vue2
npm install --save wheel-vue2
3.引入 wheel-vue2
import{Button,ButtonGroup,Icon} from 'wheel-vue2'
import 'wheel-vue2/dist/index.css'
export default{
name:'app',
components:{
HelloWorld,
'g-button':Button,
'g-icon':Icon
}
}