当前位置:网站首页>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 ,
边栏推荐
- Disaster recovery series (V) -- database disaster recovery construction
- Tencent cloud CVM starts IPv6
- 2022-2028 global cell-based seafood industry research and trend analysis report
- Is your posture correct—— A detailed discussion on horizontal sub database and sub table
- What is the meaning of scdo? Is it comparable to bGH
- How to handle the occasional address request failure in easygbs live video playback?
- Highlights of future cloud native CIF Forum
- Instructions for performance pressure test tool
- Tencent cloud CIF engineering efficiency summit ends perfectly
- Grpc: how to enable tls/ssl?
猜你喜欢

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

UI automation based on Selenium
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

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

2022-2028 global tungsten copper alloy 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
![[summary of interview questions] zj6 redis](/img/4b/eadf66ca8d834f049f3546d348fa32.jpg)
[summary of interview questions] zj6 redis

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

2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards
随机推荐
2022-2028 global third-party data platform industry research and trend analysis report
UI automation based on Selenium
Sinclair radio stopped broadcasting many TV stations, suspected of being attacked by blackmail software
Grpc: how to implement distributed log tracing?
LeetCode 205. Isomorphic Strings
[summary of interview questions] zj6 redis
Is the cloud game edge computing server highly required? What problems will occur during the use of cloud game edge computing server?
Tencent Mu Lei: real scene 3D linking industrial Internet and consumer Internet
What are the advantages of EIP? What is the relationship between EIP and fixed IP?
[51nod] 3216 Awards
2022-2028 global tungsten copper alloy industry research and trend analysis report
Industry experts talk about "extortion virus": how does e-government build a moat?
Gartner released the magic quadrant of enterprise low code platform in 2021. Low code integrated platform becomes a trend!
golang with script
How does the fortress machine connect to the server? Which is easy to use, fortress machine or firewall?
Elk7.15.1 installation, deployment and construction
2022-2028 global aircraft audio control panel system industry research and trend analysis report
Grp: how to gracefully shutdown a process?
Why should I change my PC to a cloud desktop server? What are the characteristics of this server?
Storage crash MySQL database recovery case