当前位置:网站首页>On Sunday, I rolled up the uni app "uview excellent UI framework"
On Sunday, I rolled up the uni app "uview excellent UI framework"
2022-06-24 03:11:00 【0. live in the storm】
Previous review
Super practical , Recommended collection , To prevent future use ! How to catch it , Take a chestnut ,' A double tenth ' You write a countdown , easy to write , Simple , But it takes time , In our work, we will finish the work as quickly as possible , Easy to see boss Are there any other arrangements , forehead , OK, fishing king
stay uView In less than a minute , The code is extremely concise ! The most important thing is that there is a simulator on the right , It can be simulated directly without assigning a value to the case , The most important thing is , No need to introduce , No need to register , Click on the tongue , It can be downloaded with one click , Install all dependencies , But packaging will automatically filter components that are not available , Automatic on-demand loading ...
Too many components 、 Grinding plate 、



How does it work :
Click to download uView - DCloud Plug in market


uView rely on SCSS, You must install this plug-in , Otherwise, it will not operate normally . commonly cli Projects all have , No installation
// install node-sass
npm i node-sass -D
// install sass-loader
npm i sass-loader -D1、 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 .
// main.js
import uView from "uview-ui";
Vue.use(uView);2、 At the root of the project uni.scss To introduce this file .
/* uni.scss */
@import 'uview-ui/theme.scss';3、 introduce uView Basic style
- stay
App.vuein First line Position introduction , 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 "uview-ui/index.scss";
</style>4、 This configuration needs to be in the project root directory pages.json In the middle of .
// pages.json
{
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
// This is what we already have
"pages": [
// ......
]
}complete | Use it directly , There is no need to introduce components into the page , Packaging is automatically mapped on demand !
I am writing a page using chestnuts
- Make it easier for readers to understand


uView - Multi platform rapid development UI frame - uni-app UI frame
Conclusion : I hope everyone can finish the work quickly and perfectly ,bug Less , Leave work early to accompany your family ,
边栏推荐
- How does the fortress machine connect to the server? Which is easy to use, fortress machine or firewall?
- How does easydss handle the problem that the sharing page cannot be opened due to cache problems?
- What are the security guarantees for cloud desktop servers? What are the cloud desktop server platforms?
- What does the cloud desktop server do? What are the cloud desktop functions
- The most comprehensive arrangement of safe operation solutions from various manufacturers
- How to register a trademark? Is the process troublesome?
- Cloud desktop server resource planning, what are the advantages of cloud desktop
- Tencent cloud CVM starts IPv6
- Three Scheduling Strategies in yarn
- Ner's past, present and future Overview - past
猜你喜欢

UI automation based on Selenium

2022-2028 global medical coating materials industry research and trend analysis report

2022-2028 global high tibial osteotomy plate industry research and trend analysis report
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

Permission maintenance topic: domain controller permission maintenance

2022-2028 global cell-based seafood industry research and trend analysis report

What is etcd and its application scenarios
![[51nod] 3047 displacement operation](/img/cb/9380337adbc09c54a5b984cab7d3b8.jpg)
[51nod] 3047 displacement operation
![[51nod] 2653 section XOR](/img/2d/cb4bf4e14939ce432cac6d35b6a41b.jpg)
[51nod] 2653 section XOR

2022-2028 global cancer biopsy instrument and kit industry research and trend analysis report
随机推荐
Industry ranks first in blackmail attacks, hacker organizations attack Afghanistan and India | global network security hotspot
Can elastic public IP be bound to a home server? The difference between elastic public IP and fixed IP
2022-2028 global marine clutch industry research and trend analysis report
Ner's past, present and future Overview - past
Tencent cloud launched its new 100g+ cloud server product!! Expect more than 400g+ in the future!
System design: File Hosting Service
PHP verify mailbox format
How to register a trademark? What needs to be prepared?
Building a web site -- whether to rent or host a server
Tencent cloud CIF engineering effectiveness summit was successfully opened, and coding released a series of new products
AI talk | solution for shopping mall inspection robot
Actual combat | how to use micro build low code to realize tolerance application
What is the role of the distributed configuration center? What are the advantages of a distributed configuration center?
Grpc: based on cloud native environment, distinguish configuration files
2022-2028 global cell-based seafood industry research and trend analysis report
What does elastic public IP mean? The advantages of elastic public IP
Why do cloud desktops use rack servers? Why choose cloud desktop?
What if the computer audio and video engine is abnormal? What are the causes of abnormal computer audio and video engine?
How do I check the trademark registration number? Where do I need to check?
Is the cloud desktop server highly required for installation and configuration? Is cloud desktop easy to use?