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

边栏推荐
- 7-2 保持链表有序
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
- 尚硅谷尚优选项目教程发布
- MySQL数据库索引教程(超详细)
- RPC协议详解
- 关于服装ERP,你想知道的都在这里了
- AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
- [detailed explanation of AUTOSAR 14 startup process]
- How to automatically install pythn third-party libraries
猜你喜欢

基于can总线的A2L文件解析(3)

Low code practice of xtransfer, a cross-border payment platform: how to integrate with other medium-sized platforms is the core

Summary of six points of MySQL optimization

MYSQL中 find_in_set() 函数用法详解

Pytorch yolov5 training custom data

FCN: Fully Convolutional Networks for Semantic Segmentation

Insufficient picture data? I made a free image enhancement software

The main thread anr exception is caused by too many binder development threads

【HCIA-cloud】【1】云计算的定义、什么是云计算、云计算的架构与技术说明、华为云计算产品、华为内存DDR配置工具说明

The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
随机推荐
How to write good code defensive programming
The 10th global Cloud Computing Conference | Huayun data won the "special contribution award for the 10th anniversary of 2013-2022"
Trust counts the number of occurrences of words in the file
How much does the mlperf list weigh when AI is named?
CDB 实例的启动与关闭
Chinese postman? Really powerful!
sample_rate(采樣率),sample(采樣),duration(時長)是什麼關系
2022年5月腾讯云开发者社区视频月度榜单公布
2022年阿里Android高级面试题分享,2022阿里手淘Android面试题目
怎么自动安装pythn三方库
RPC protocol details
瞅一瞅JUC提供的限流工具Semaphore
Lombok @builder annotation
The era of Web3.0 is coming. See how Tianyi cloud storage resources revitalize the system to enable new infrastructure (Part 2)
进程间通信(IPC):共享内存
c期末复习
Linear table - abstract data type
Shang Silicon Valley Shang preferred project tutorial release
China law network joins hands to observe the cloud, and the online system is a full link observable platform
企业级数据安全,天翼云是这样理解的