当前位置:网站首页>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
边栏推荐
猜你喜欢
![[graduation season] graduation is the new beginning of your life journey. Are you ready](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] graduation is the new beginning of your life journey. Are you ready

2018 mathematical modeling competition - special clothing design for high temperature operation

Unsafe中的park和unpark

路由器和交换机的区别

Memory barrier store buffer, invalid queue

Talk about Domain Driven Design

【Kevin三连弹之三】Rust真的比C慢吗?进一步分析queen微测评

winow10安装Nexus nexus-3.20.1-01

SQL injection bypass (I)

【软件工程】山东大学软件工程复习提纲
随机推荐
Idea method template
聊聊领域驱动设计
Talk about Domain Driven Design
DMU software syntax highlighting VIM setting -- Learning Notes 6
Fast implementation of thread mesh networking
一个人管理1000台服务器?这款自动化运维工具一定要掌握
(已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘
解决 Win10 Wsl2 IP 变化问题
Delay queue `delayqueue`
oracle的similarity方法实现原理
manim 数学引擎
Matlab GUI interface simulation DC motor and AC motor speed simulation
Classical cryptosystem -- substitution and replacement
mssql如何使用语句导出并删除多表数据
boundvalueops和opsforvalue区别
Unrecognized VM option ‘‘
webscoket 数据库监听
Partial function of Scala
Interviewer: do you have any plan to request a lot of data that does not exist in redis to destroy the database?
2022 CISP-PTE(一)文件包含