当前位置:网站首页>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-ui
Add 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
边栏推荐
- JS中? ?和??=和?.和 ||的区别
- EasyExcel comprehensive course combat
- Go的Gin框架学习
- vulnhub靶机AI-Web-1.0渗透笔记
- PhpMetrics usage
- Apache Doris series: In-depth understanding of real-time analytical database Apache Doris
- 只会纯硬件,让我有点慌
- The problem of sticky packets in tcp protocol transmission
- MySQL索引常见面试题(2022版)
- leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
猜你喜欢
【LeetCode】70. 爬楼梯 - Go 语言题解
ML's shap: Based on FIFA 2018 Statistics (2018 Russia World Cup) team match star classification prediction data set using RF random forest + calculating SHAP value single-sample force map/dependency c
Chapter 8 Intermediate Shell Tools II
Py's pdpbox: a detailed introduction to pdpbox, installation, and case application
Flex布局使用
2021GDCPC广东省大学生程序设计竞赛 H.History
MySQL联合查询(多表查询)
mysql中关于存储过程无法实现迁移复制表中数据问题
$\text{ARC 145}$
Reverse linked list - head insertion inversion method
随机推荐
$\text{ARC 145}$
Go1.18升级功能 - 泛型 从零开始Go语言
vscode上利用screen命令跑代码
只会纯硬件,让我有点慌
HashSet源码解析
2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!
Introducing the visualization tool Netron
一文详解:SRv6 Policy模型、算路及引流
“蔚来杯“2022牛客暑期多校训练营4 L.Black Hole 垃圾计算几何
language code table
详解操作符
Go语学习笔记 - gorm使用 - 表增删改查 Web框架Gin(八)
可视化工具Netron介绍
Golang 切片删除指定元素的几种方法
10 个关于自动化发布管理的好处
【2022-05-31】JS逆向之易企秀
科技的成就(三十一)
MySQL进阶sql性能分析
Go1.18升级功能 - 模糊测试Fuzz 从零开始Go语言
编码与进制