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

边栏推荐
- RPC protocol details
- max31865模块RTD测温注意事项
- C language makes it easy to add, delete, modify and check the linked list "suggested collection"
- The road of enterprise digital transformation starts from here
- Solutions contents have differences only in line separators
- AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
- [QNX hypervisor 2.2 user manual]6.3.2 configuring VM
- Cronab log: how to record the output of my cron script
- 小程序 修改样式 ( placeholder、checkbox的样式)
- The monthly list of Tencent cloud developer community videos was released in May 2022
猜你喜欢

U-Net: Convolutional Networks for Biomedical Images Segmentation

企业数字化转型之路,从这里开始

How to automatically install pythn third-party libraries

【历史上的今天】7 月 5 日:Google 之母出生;同一天诞生的两位图灵奖先驱

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

跨境支付平台 XTransfer 的低代码实践:如何与其他中台融合是核心

技术分享 | 接口测试价值与体系

IDEA配置npm启动

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

Isprs2022/ cloud detection: cloud detection with boundary nets
随机推荐
AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources
The easycvr authorization expiration page cannot be logged in. How to solve it?
Emqx 5.0 officially released: a single cluster supports 100million mqtt connections
EMQX 5.0 正式发布:单集群支持 1 亿 MQTT 连接
Lombok @builder annotation
China law network joins hands to observe the cloud, and the online system is a full link observable platform
技术分享 | 接口测试价值与体系
SAP 特征 特性 说明
输油管的布置数学建模matlab,输油管布置的数学模型
How to write good code defensive programming
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]
XML基础知识概念
lombok @Builder注解
The monthly list of Tencent cloud developer community videos was released in May 2022
2022年阿里Android高级面试题分享,2022阿里手淘Android面试题目
Use of websocket tool
[detailed explanation of AUTOSAR 14 startup process]
websocket 工具的使用
Icml2022 | partial and asymmetric comparative learning of out of distribution detection in long tail recognition
音视频包的pts,dts,duration的由来.