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

电脑快捷方式图标变白解决方案

抽象类和接口(学习笔记)

#Dasctf July Enabler WP

uniapp折叠框二级循环

MySQL联合查询(多表查询)

【MySQL】DQL相关操作

# # yyds dry goods inventory interview will brush TOP101: to determine whether there is a part of the list
![[0x800706D9] solution appears in Microsoft Store](/img/f2/7485cd55fd260220378acd485d8dc9.png)
[0x800706D9] solution appears in Microsoft Store

Py之pdpbox:pdpbox的简介、安装、案例应用之详细攻略

StoneDB 为何敢称业界唯一开源的 MySQL 原生 HTAP 数据库?
随机推荐
$\text{ARC 145}$
【CTF】buuctf web 详解(持续更新)
2021GDCPC广东省大学生程序设计竞赛 H.History
[MySQL] Mysql transaction and authority management
IDEA使用技巧
"Wei cup" school more than 2022 cattle summer camp 4 L.B lack Hole, computational geometry
可视化工具Netron介绍
【MySQL】Mysql事务以及权限管理
leetcode(刷题篇13)
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 2 H.Take the Elevator
“蔚来杯“2022牛客暑期多校训练营2 H.Take the Elevator
#Dasctf July Enabler WP
反转链表-就地逆置法
grub learning
Successfully solved ImportError: always import the name '_validate_lengths'
uni-ui安装
MySQL的一个问题
解决一个Mysql的utf8编码导致的问题
PS基础学习(一)
vscode上利用screen命令跑代码