当前位置:网站首页>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 ,
边栏推荐
- [51nod] 3395 n-bit gray code
- Tencent cloud CIF engineering effectiveness summit was successfully opened, and coding released a series of new products
- 2022-2028 global pilot night vision goggle industry research and trend analysis report
- Disaster recovery series (V) -- database disaster recovery construction
- New Google brain research: how does reinforcement learning learn to observe with sound?
- C common regular expression collation
- EIP maximum EIP EIP remote desktop access
- 2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards
- Is it necessary to buy EIP? Price analysis of EIP
- What are the security guarantees for cloud desktop servers? What are the cloud desktop server platforms?
猜你喜欢

2022-2028 global third-party data platform industry research and trend analysis report

2022-2028 global marine clutch industry research and trend analysis report

2022-2028 global aircraft audio control panel system industry research and trend analysis report

2022-2028 global genome editing mutation detection kit industry survey and trend analysis report
![[51nod] 3216 Awards](/img/94/fdb32434d1343040d711c76568b281.jpg)
[51nod] 3216 Awards

What is etcd and its application scenarios

2022-2028 global pilot night vision goggle industry research and trend analysis report
![[51nod] 2653 section XOR](/img/2d/cb4bf4e14939ce432cac6d35b6a41b.jpg)
[51nod] 2653 section XOR
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

2022-2028 global indoor pressure monitor and environmental monitor industry research and trend analysis report
随机推荐
What is the edge calculator force? What about the edge calculator?
2022-2028 global aircraft front wheel steering system industry research and trend analysis report
What does elastic public IP mean? The advantages of elastic public IP
2022-2028 global indoor pressure monitor and environmental monitor industry research and trend analysis report
[51nod] 3216 Awards
2022-2028 global aircraft wireless intercom system industry research and trend analysis report
How does easydss handle the problem that the sharing page cannot be opened due to cache problems?
What are the responsibilities of cloud desktop administrators? How to use cloud desktop?
VNC enters the password and goes around for a long time before entering the desktop. Use procmon to locate the reason
[summary of interview questions] zj6 redis
Highlights of future cloud native CIF Forum
Why does the fortress machine use an application publisher? What are the main functions of the fortress machine
Is your posture correct—— A detailed discussion on horizontal sub database and sub table
The cost of on-site development of software talent outsourcing is higher than that of software project outsourcing. Why
Why can't the fortress machine open the port? There is a problem with the use of the fortress machine port
Grpc: implement service end flow restriction
Gigabyte was attacked by blackmail software, and the FBI banned the hacker organization Revil | global network security hotspot
Applicationclientprotocol of yarn source code
What port does the fortress machine use? What is the role of the fortress machine?
Big coffee face to face | Dr. Chen Guoguo talks about intelligent voice