当前位置:网站首页>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
边栏推荐
- #yyds干货盘点# 面试必刷TOP101:判断链表中是否有环
- 2022 Nioke Summer Multi-School Training Camp 1 J Serval and Essay
- $\text{ARC 145}$
- Reverse linked list - in-place inversion method
- Go语学习笔记 - gorm使用 - 事务操作 Web框架Gin(十一)
- Gxlcms audio novel system/novel listening system source code
- Apache Doris series: detailed steps for installation and deployment
- leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
- 基于 Docker Compose 的 Nacos(MySQL 持久化)的搭建
- 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
猜你喜欢
随机推荐
基于 Docker Compose 的 Nacos(MySQL 持久化)的搭建
2021GDCPC广东省大学生程序设计竞赛 B.Byfibonacci
[SAM模板题] P3975 [TJOI2015] 弦论
(WebFlux)001、如何自定义注解实现功能
EasyExcel comprehensive course combat
Py's pdpbox: a detailed introduction to pdpbox, installation, and case application
ML之shap:基于FIFA 2018 Statistics(2018年俄罗斯世界杯足球赛)球队比赛之星分类预测数据集利用RF随机森林+计算SHAP值单样本力图/依赖关系贡献图可视化实现可解释性之攻略
StoneDB 为何敢称业界唯一开源的 MySQL 原生 HTAP 数据库?
【MySQL】Mysql事务以及权限管理
JS中? ?和??=和?.和 ||的区别
Day016 类和对象
Apache Doris series: In-depth understanding of real-time analytical database Apache Doris
$\text{ARC 145}$
IJCAI2022 Tutorial | Spoken Language Comprehension: Recent Advances and New Fields
数据清洗-使用es的ingest
可视化工具Netron介绍
Debezium报错系列之二十:task failed to create new topic.Ensure that the task is authorized to create topics
PyTorch模型导出到ONNX文件示例(LeNet-5)
【飞控开发基础教程10】疯壳·开源编队无人机-PID 基础原理
2021GDCPC Guangdong University Student Programming Competition B.Byfibonacci









