1、安装npm install uview-ui@2.0.31
2、在main.js引入
import uView from 'uview-ui'
Vue.use(uView)
3、在page.json
"easycom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
4、uni.scss跟app.vue
@import 'uview-ui/theme.scss';
uniapp安装uView2.0
最新推荐文章于 2024-06-20 17:50:36 发布