当前位置:网站首页>Installation and functions of uview
Installation and functions of uview
2022-06-27 07:18:00 【Talking characters】
Components - Built in style
Components - Download to install
- download uview-ui Catalog
- introduce
// main.js
import uView from "uview-ui";
Vue.use(uView);
/* uni.scss */
@import 'uview-ui/theme.scss';
/* App.vue */
<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>
- To configure easycom Component mode
// pages.json
{
"easycom": {
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
},
// This is what we already have
"pages": [
// ......
]
}
- vue.config
module.exports = {
// Configure path alias
configureWebpack: {
devServer: {
disableHostCheck: true
}
}
}
Components - Built in style
- Words are omitted
- Reset button style
- Breakpoint form
- Frame ( have ios compatible )
u-border
Components - matters needing attention
Background color problem
Trap of assigning device information
Equipment height problemThe main package of the applet is too large to preview and publish
::v-deep The problem of writing
Uview js Tools
- toast() Tooltip
- os() Return platform information andriod or ios
- sys() Equipment information
- http Request encapsulation tutorial
- api centralized management
- button Throttling effect
- Object depth cloning
- Object depth merge
- Time format
- Route encapsulation
- Array scrambling
- Generate a globally unique identity
- Color conversion
- Color value
- Object turn url Parameters
- Rule checking
- MD5 encryption
- Random number
- Remove the space
- obtain dom node , Change scroll bar position
- App sharing
Rich templates
guide
- Extended icons iconfont
- Custom theme
- Global variables
globalData
vuex
边栏推荐
- The interviewer of a large front-line factory asked: do you really understand e-commerce order development?
- AHB2APB桥接器设计(2)——同步桥设计的介绍
- Bean拷贝详解
- Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state
- 小米面试官:听你说精通注册中心,我们来聊 3 天 3 夜
- 【软件工程】山东大学软件工程复习提纲
- win10远程连接云服务器
- 大学数据库mysql
- 2022 CISP-PTE(一)文件包含
- yarn create vite 报错 ‘D:\Program‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
猜你喜欢

Fractional Order PID control

进程终止(你真的学会递归了吗?考验你的递归基础)

Interviewer: how to never migrate data and avoid hot issues by using sub database and sub table?

【OpenAirInterface5g】RRC NR解析之RrcSetupComplete

AHB2APB桥接器设计(2)——同步桥设计的介绍

Fast realization of Bluetooth communication between MCU and mobile phone

vs怎么配置OpenCV?2022vs配置OpenCV详解(多图)

(已解决) MINet 进行测试时报错如下 raise NotImplementedError

IDEA连接数据库报错

Process termination (have you really learned recursion? Test your recursion Foundation)
随机推荐
Thesis reading skills
poi导出excle
multiprocessing. Detailed explanation of pool
Rust Async: smol源码分析-Executor篇
Gérer 1000 serveurs par personne? Cet outil d'automatisation o & M doit être maîtrisé
apifox学习
SQL injection bypass (I)
Yolov6's fast and accurate target detection framework is open source
sql sever列名或所提供值的数目与表定义不匹配
正斜杠反斜杠的由来
The fourth question of the 299th weekly match 6103 Minimum fraction of edges removed from the tree
mssql如何使用语句导出并删除多表数据
POI export excle
Xiaomi Interviewer: let's talk about the proficient Registration Center for three days and three nights
Win10 remote connection to ECS
Compatibility comparison between tidb and MySQL
Basic SQL operations in tidb
MPC control of aircraft wingtip acceleration and control surface
Visual studio vs shortcut key usage
R 中的 RNA-Seq 数据分析 - 调查数据中的差异表达基因!