当前位置:网站首页>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
边栏推荐
- “蔚来杯“2022牛客暑期多校训练营4 N.Particle Arts 规律 方差
- Debezium error series 20: task failed to create new topic. Ensure that the task is authorized to create topics
- 2022牛客暑期多校训练营1 J Serval and Essay
- PS基础学习(一)
- 二进制序列
- StoneDB 为何敢称业界唯一开源的 MySQL 原生 HTAP 数据库?
- uni-ui安装
- MySQL连接时出现2003错误
- 成功解决ImportError: cannot import name ‘_validate_lengths‘
- vscode上利用screen命令跑代码
猜你喜欢

$\text{ARC 145}$

2sk2225 Substitute 3A/1500V Chinese Documentation【PDF Data Book】

Chapter 8 Intermediate Shell Tools II

反转链表-头插反转法

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

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

A detailed explanation: SRv6 Policy model, calculation and drainage

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

Introducing the visualization tool Netron

mysql中关于存储过程无法实现迁移复制表中数据问题
随机推荐
win10重建索引
grub 学习
成功解决ImportError: cannot import name ‘_validate_lengths‘
“蔚来杯“2022牛客暑期多校训练营4 DHKLN
Flex布局使用
ThinkPHP high imitation blue play cloud network disk system source code / docking easy payment system program
微软商店出现【0x800706D9】解决方法
【LeetCode】70. 爬楼梯 - Go 语言题解
MySql统计函数COUNT详解
“蔚来杯“2022牛客暑期多校训练营4 L.Black Hole 垃圾计算几何
解决一个Mysql的utf8编码导致的问题
【云驻共创】HCSD大咖直播–就业指南
Detailed operator
【无标题】
只会纯硬件,让我有点慌
【2022-05-31】JS逆向之易企秀
ZZULIOJ:1120: 最值交换
PS基础学习(一)
2021GDCPC广东省大学生程序设计竞赛 H.History
Summary of BFS questions