当前位置:网站首页>uni-ui installation
uni-ui installation
2022-07-30 23:14:00 【Hel1x】
uni-ui installation
Quick Start
In the template of the new uni-app project in HBuilderX, select the uni-ui template to use it
npm install
npm install @dcloudio/uni-uiAdd the dcloudio folder to the node_modules folder after installation
Official documentation
Note that the cli project does not compile the components under node_modules by default, which will cause the conditional compilation and other functions to fail, resulting in component exceptions. You need to create a vue.config.js file in the root directory, and add the compilation of the @dcloudio/uni-ui package.normal
// vue.config.jsmodule.exports = {transpileDependencies:['@dcloudio/uni-ui']}Configuring easycom
After using npm to install uni-ui, you need to configure easycom rules so that the components installed by npm support easycom
Open pages.json in the project root directory and add the easycom node:
// pages.json{"easycom": {"autoscan": true,"custom": {// uni-ui rules are configured as follows"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},// other contentpages:[// ...]}I can use the uni-ui component when I configure it here
边栏推荐
猜你喜欢
随机推荐
$\text{ARC 145}$
“蔚来杯“2022牛客暑期多校训练营4 N.Particle Arts 规律 方差
牛逼的公司都在用的绩效管理法OKR
雪佛兰开拓者,安全保障温暖你的家庭出行的第一选择
Go语学习笔记 - gorm使用 - 事务操作 Web框架Gin(十一)
el-upload添加请求头
The problem of sticky packets in tcp protocol transmission
【云驻共创】HCSD大咖直播–就业指南
软件测试三阶段,你在哪一步?
Computer shortcut icon whitening solution
IDEA usage skills
HashSet源码解析
Apache Doris系列之:深入认识实时分析型数据库Apache Doris
详解操作符
如何在 AWS 中应用 DevOps 方法?
通过对抗性知识蒸馏压缩深度图神经网络
leetcode:127. 单词接龙
ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
# # yyds dry goods inventory interview will brush TOP101: to determine whether there is a part of the list
grub learning








![[MySQL] DQL related operations](/img/a5/c92e0404c6a970a62595bc7a3b68cd.gif)
