使用uni-app扩展组件
首先要下载uni-ui,说明文档地址,若代码中使用npm下载,下载完成后需要在pages.json里面配置下面代码,否则会报错
// pages.json
{
"easycom": {
"autoscan": true,
"custom": {
// uni-ui 规则如下配置
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
}
},
// 其他内容
pages:[
// ...
]
}
报错提示