当前位置:网站首页>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
边栏推荐
- About Estimation with Cross-Validation
- Reading notes of Clickhouse principle analysis and Application Practice (5)
- Simple query cost estimation
- Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
- The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
- The monthly list of Tencent cloud developer community videos was released in May 2022
- Summary of six points of MySQL optimization
- c期末复习
- The 11th China cloud computing standards and Applications Conference | China cloud data has become the deputy leader unit of the cloud migration special group of the cloud computing standards working
- 输油管的布置数学建模matlab,输油管布置的数学模型
猜你喜欢
Ant group open source trusted privacy computing framework "argot": open and universal
SAP 特征 特性 说明
进程间通信(IPC):共享内存
MYSQL中 find_in_set() 函数用法详解
Thoroughly understand why network i/o is blocked?
Solutions contents have differences only in line separators
Pytorch yolov5 training custom data
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】
深入底层C源码讲透Redis核心设计原理
随机推荐
一文读懂简单查询代价估算
Tupu software digital twin smart wind power system
音视频包的pts,dts,duration的由来.
7-1 linked list is also simple fina
Pytorch yolov5 training custom data
Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
Exemple Quelle est la relation entre le taux d'échantillonnage, l'échantillon et la durée?
XML basic knowledge concept
About Estimation with Cross-Validation
Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换
【历史上的今天】7 月 5 日:Google 之母出生;同一天诞生的两位图灵奖先驱
面试官:Redis 过期删除策略和内存淘汰策略有什么区别?
[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
SAP 特征 特性 说明
Optimization of middle alignment of loading style of device player in easycvr electronic map
2022全网最全的腾讯后台自动化测试与持续部署实践【万字长文】
Chinese postman? Really powerful!
进程间通信(IPC):共享内存
Is the performance evaluation of suppliers in the fastener industry cumbersome? Choose the right tool to easily counter attack!
【HCIA-cloud】【1】云计算的定义、什么是云计算、云计算的架构与技术说明、华为云计算产品、华为内存DDR配置工具说明