当前位置:网站首页>Uniapp uses hbuilder x mode to install uivew plug-in steps
Uniapp uses hbuilder x mode to install uivew plug-in steps
2022-07-20 22:25:00 【Embarrassed boy】
This article uses Hbuilder X The way
1、 Use Hbuilder X
Create a new project , I usually use Default template
2、 Use Hbuilder X
Import plug-ins , Plug-in address https://ext.dcloud.net.cn/plugin?id=1593
3、 introduce uView Lord JS library
In the project root directory main.js in , Introduce and use uView Of JS library , Note that these two lines should be placed in import Vue after .
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
4、 In the introduction of uView Overall situation SCSS topic file
At the root of the project uni.scss To introduce this file .
/* uni.scss */
@import '@/uni_modules/uview-ui/theme.scss';
5、 introduce uView Basic style
stay App.vue The position of the first line in the... Is introduced , Pay attention to style Label to join lang="scss" attribute
<style lang="scss">
/* Pay attention to the first line , At the same time style Label to join lang="scss" attribute */
@import "@/uni_modules/uview-ui/index.scss";
</style>
6、 To configure easycom Component mode ( If you are through uni_modules Form introduction uView, This configuration can be ignored )
// pages.json
{
// If you are through uni_modules Form introduction uView, This configuration can be ignored
"easycom": {
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
},
// This is what we already have
"pages": [
// ......
]
}
边栏推荐
- 7 月最新编程排行榜:万年不变的前三,啥时候能是头?
- xml转voc,voc转coco,coco转yolo,coco划分,coco检查,yolo检查,coco可视化
- OpenMMLAB系列框架解读(基于PyTorch)
- Redis cluster details
- 如何做好测试用例的设计 软件测试零基础必看
- [C# 调试]-使用 VS 2012 IDE 环境调试 C# 代码
- 4R analysis redis processing client requests
- k线图经典图解的学习有利于正确
- The first small sample detection benchmark and weak feature enhancement network under X-ray, and the new research of Beihang and iFLYTEK was selected into ACM mm 2022
- 基于全志RK3568J的RGB和SATA功能转接模块
猜你喜欢
随机推荐
See Zhihu salt for free
ES6-11 学习笔记
详解“洋葱架构”
查缺补漏C语言:字符串处理函数
Pytorch notes - r-drop, conv2d, 3x3+1x1+identity operator fusion
Summary of SQL skills in data warehouse development
基于SSM实现水果蔬菜商城管理系统
TS 学习笔记
Module 7 of the construction camp
筑波大学|奖励预测错误,而不是感官预测错误,在人类强化学习的模型选择中扮演着重要角色
【Swoole系列2.5】异步任务
谷歌请印度标注员给Reddit评论数据集打标签,错误率高达30%?
史上最全的 IDEA Debug 调试技巧(超详细案例)
首个X光下的小样本检测基准和弱特征增强网络,北航、讯飞新研究入选ACM MM 2022
行业现状令人失望,工作之后我又回到UC伯克利读博了
Deep decryption of go language context
服务器状态码
Jenkins持续集成入门到精通
Record the detailed process of a reptile's reverse attack and defense
从数学推导开始,7万字一定带你学会支持向量机(免费PDF下载)