当前位置:网站首页>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

边栏推荐
- Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换
- Emqx 5.0 officially released: a single cluster supports 100million mqtt connections
- 进程间通信(IPC):共享内存
- Is it safe to open an account, register and dig money? Is there any risk? Is it reliable?
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- U-Net: Convolutional Networks for Biomedical Images Segmentation
- 华律网牵手观测云,上线系统全链路可观测平台
- Reptile 01 basic principles of reptile
- About Estimation with Cross-Validation
- 小程序 修改样式 ( placeholder、checkbox的样式)
猜你喜欢

SAP 特征 特性 说明

2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions

Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换

5. Data access - entityframework integration

Reading notes of Clickhouse principle analysis and Application Practice (5)

Solutions contents have differences only in line separators

Powerful tool for collection processing
![[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](/img/b8/624799e4bf788e4476b155486f478b.png)
[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

Postman核心功能解析 —— 参数化和测试报告

About Estimation with Cross-Validation
随机推荐
企业数字化转型之路,从这里开始
LeetCode 6109. Number of people who know the secret
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
Is it complicated to open an account? Is online account opening safe?
线性表——抽象数据类型
The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
Emqx 5.0 officially released: a single cluster supports 100million mqtt connections
Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
The 11th China cloud computing standards and Applications Conference | cloud computing national standards and white paper series release, and Huayun data fully participated in the preparation
U-Net: Convolutional Networks for Biomedical Images Segmentation
How much does the mlperf list weigh when AI is named?
中文版Postman?功能真心强大!
2022最新中高级Android面试题目,【原理+实战+视频+源码】
企业级数据安全,天翼云是这样理解的
The monthly list of Tencent cloud developer community videos was released in May 2022
MySQL数据库索引教程(超详细)
自动化测试的好处
尚硅谷尚优选项目教程发布
2022年阿里Android高级面试题分享,2022阿里手淘Android面试题目
@Extension, @spi annotation principle