当前位置:网站首页>Applet modification style (placeholder, checkbox style)
Applet modification style (placeholder, checkbox style)
2022-07-05 18:53:00 【Don't ask people 0】
Catalog
Applet Modify the style ( placeholder、checkbox The style of )
Applet Modify the style placeholder style
.wxml
<input placeholder=" Please enter a user name " placeholder-class="placeholderClass" />
.wxss
.placeholderClass{
font-weight: 400;
color: rgba(0, 0, 0, 0.14);
}
Applet Modify the style ( checkbox The style of )
.wxml
<checkbox-group class="login-remember-check" bindchange="checkboxChange">
<label class="checkbox">
<checkbox class="login-remember-check-active" bindchange="checkboxChange" checked="{
{ isCheckPwd }}"/>
<text class="{
{ isCheckPwd ? 'login-remember-check' : 'login-remember-no-check' }}"> Remember the user name </text>
</label>
</checkbox-group>
.wxss
/* modify checkbox The style of */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before,
checkbox .wx-checkbox-input.wx-checkbox-input {
border-color:#14D1B4;
color: #14D1B4;
}
.js
data: {
isShowPwd:true, // Whether to display the password
showType:"text", // Password and text The type of
isCheckPwd:false, // Whether to remember the user name
},
// Switch password format
changePwdType(){
if (this.data.isShowPwd) {
// If this.data.isShow by true, It is expressed as password small black dot
this.setData({
isShowPwd:false,
showType:"password"
})
} else {
this.setData({
isShowPwd: true,
showType: "text"
})
}
},
// Remember the user name
checkboxChange(e){
console.log("checkboxChange",e.detail.value.length);
let resChecked = true
e.detail.value.length ? resChecked = true:resChecked = false
this.setData({
isCheckPwd:resChecked
})
},
.
- effect
边栏推荐
- websocket 工具的使用
- SAP 特征 特性 说明
- Reading notes of Clickhouse principle analysis and Application Practice (5)
- XML基础知识概念
- Deep copy and shallow copy [interview question 3]
- How to choose the most formal and safe external futures platform?
- RPC protocol details
- Tianyi cloud understands enterprise level data security in this way
- 2022 latest Android interview written examination, an Android programmer's interview experience
- Overview of video self supervised learning
猜你喜欢
How to automatically install pythn third-party libraries
Tianyi cloud understands enterprise level data security in this way
IDEA配置npm启动
技术分享 | 接口测试价值与体系
AI金榜题名时,MLPerf榜单的份量究竟有多重?
【HCIA-cloud】【1】云计算的定义、什么是云计算、云计算的架构与技术说明、华为云计算产品、华为内存DDR配置工具说明
Web3.0时代来了,看天翼云存储资源盘活系统如何赋能新基建(下)
Oracle 中文排序 Oracle 中文字段排序
MySQL优化六个点的总结
集合处理的利器
随机推荐
EMQX 5.0 正式发布:单集群支持 1 亿 MQTT 连接
华律网牵手观测云,上线系统全链路可观测平台
AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
图扑软件数字孪生智慧风电系统
lombok @Builder注解
The main thread anr exception is caused by too many binder development threads
达梦数据库udf实现
What are the cache interfaces of nailing open platform applet API?
7-1 linked list is also simple fina
尚硅谷尚优选项目教程发布
[HCIA cloud] [1] definition of cloud computing, what is cloud computing, architecture and technical description of cloud computing, Huawei cloud computing products, and description of Huawei memory DD
Share: ZTE Yuanhang 30 Pro root unlock BL magick ZTE 7532n 8040n 9041n brush mask original brush package root method Download
Personal understanding of convolutional neural network
The 10th global Cloud Computing Conference | Huayun data won the "special contribution award for the 10th anniversary of 2013-2022"
Use file and directory properties and properties
ROS安装报错 sudo: rosdep:找不到命令
中文版Postman?功能真心强大!
Take a look at semaphore, the current limiting tool provided by JUC
一朵云开启智慧交通新未来
Word finds red text word finds color font word finds highlighted formatted text