当前位置:网站首页>Uniapp uses uviewui
Uniapp uses uviewui
2022-06-26 07:48:00 【GHUIJS】
One 、 download uViewUI, install scss plug-in unit
uView UI The published Sketch and Axure Design resources - DCloud Plug in market

Two 、 Direct copy uview-ui Folder to project root

3、 ... and 、 uni.scss IMPORT Global scss Variable file
@import 'uview-ui/theme.scss'; Four 、App.vue Introduce basic styles ( Be careful style Label needs to state scss Property support )
@import "uview-ui/index.scss";5、 ... and 、 main.js Global mount in
//uvue-ui
import uView from 'uview-ui';
Vue.use(uView); 6、 ... and 、pages.json To configure easycom The rules ( Introduce on demand )
{
"easycom": {
// Download and install
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
"pages": [
// ......
]
}7、 ... and 、 Directly reference... In the page
<u-picker v-model="isTimeShow" @confirm="checkQueryTime" mode="time" :params="params"></u-picker>export default {
data() {
return {
isTimeShow: false,
params: {
year: true,
month: true,
},
queryTime:''
}
},
timeClick() {
this.isTimeShow = true;
},
checkQueryTime(e) {
this.queryTime = `${e.year}-${e.month}`;
}
}
}

Reference resources :
边栏推荐
- 项目管理学习
- Jemter 壓力測試 -基礎請求-【教學篇】
- [UVM practice] Chapter 2: a simple UVM verification platform (4) the ultimate masterpiece of UVM: sequence
- Encapsulating ranging and surface class based on leaflet
- Google Earth Engine(GEE) 01-中输入提示快捷键Ctrl+space无法使用的问题
- Chapter 3 (data types and expressions)
- Web technology sharing | webrtc recording video stream
- What are the characteristics of digital factory in construction industry
- 记一次开发 pgadmin 时执行 Building the Web Assets 遇到的依赖安装问题
- Cloud native integration data warehouse heavy release
猜你喜欢

Median segmentation (find rules) - Niuke

Google Earth Engine(GEE) 01-中输入提示快捷键Ctrl+space无法使用的问题

Attention mechanism yyds, AI editor finally bid farewell to P and destroyed the whole picture

Yyds dry inventory kubernetes easy service discovery and load balancing (11)

Opencv鼠标事件+界面交互之绘制矩形多边形选取感兴趣区域ROI

What are the characteristics of digital factory in construction industry

Redis (4) -- Talking about integer set

Jemter 压力测试 -可视化工具支持-【安装篇】
![Jemter stress test - Basic request - [teaching]](/img/f4/36dbd80e89d96e1121a6e2b92d1d07.png)
Jemter stress test - Basic request - [teaching]

What if the service in Nacos cannot be deleted?
随机推荐
Teach you how to use the harmonyos local simulator
Power apps application practice | easily develop employee leave attendance management applet with power apps
Two models of OSPF planning: double tower Raider and dog tooth crisscross
[UVM practice] Chapter 3: UVM Fundamentals (3) field automation mechanism
Tsinghua Yaoban chendanqi won Sloan award! He is a classmate with last year's winner Ma Tengyu. His doctoral thesis is one of the hottest in the past decade
Class class of box selection four to and polygon box selection based on leaflet encapsulation
My colleague asked a question I never thought about. Why did kubernetes' superfluous' launch the static pod concept?
Jemter stress test - visualization tool - [usage]
Yyds dry inventory Druid connection pool usage
Detailed explanation and code implementation of soft voting and hard voting mechanism in integrated learning
Which securities company has the lowest Commission for opening a mobile account? Is it safe to open an account online?
Kalman filter_ Recursive Processing
Multi interface switching in one UI of QT
[UVM practice] Chapter 2: a simple UVM verification platform (4) the ultimate masterpiece of UVM: sequence
The first screen time, you said you optimized it, then you calculated it and showed it to me!
Use middleware to record slow laravel requests
[recommend 10 easy idea plug-ins with less tedious and repetitive code]
解决 psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
Solution to the problem of multi application routing using thinkphp6.0
Chapter 4 (functions and preprocessing)