vue 各种使用方法

安装 vue cli3

# 安装 Vue Cli
npm install -g @vue/cli
# 创建一个项目
vue create baifubin
# 打开图形化界面
vue ui

安装 vue 移动端rem 通过cli3 直接搜索或npm

npm install  postcss-pxtorem

"postcss": {
"plugins": {
"autoprefixer": {
"browsers": ["Android >= 4.0", "iOS >= 7"]
},
"postcss-pxtorem": {
"rootValue": 37.5,
"propList": [
"*"
 
]
 
}
},

修改ui中的默认样式

.checked
margin 15px 0px
>>> .van-checkbox__label
color #fff

猜你喜欢

转载自www.cnblogs.com/baifubin/p/10237053.html