当前位置:网站首页>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
边栏推荐
猜你喜欢

IJCAI2022教程 | 口语语言理解:最新进展和新领域

Go语学习笔记 - gorm使用 - 表增删改查 Web框架Gin(八)

PhpMetrics usage

2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!

反转链表-就地逆置法

【LeetCode】70. 爬楼梯 - Go 语言题解

2021GDCPC Guangdong University Student Programming Competition H.History

#Dasctf July Enabler WP

PyTorch model export to ONNX file example (LeNet-5)

mysql 中手动设置事务提交
随机推荐
uni-ui安装
MySQL索引常见面试题(2022版)
2021GDCPC Guangdong University Student Programming Competition H.History
【无标题】
[MySQL] Related operations on databases and tables in MySQL
EasyExcel综合课程实战
只会纯硬件,让我有点慌
牛逼的公司都在用的绩效管理法OKR
可视化工具Netron介绍
数据清洗-使用es的ingest
智能创意中的尺寸拓展模块
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 4 DHKLN
Calico 网络通信原理揭秘
2sk2225 Substitute 3A/1500V Chinese Documentation【PDF Data Book】
Lambda表达式
go版本升级
Summary of BFS questions
ZZULIOJ: 1120: the most value to exchange
2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!
Go1.18升级功能 - 模糊测试Fuzz 从零开始Go语言