未验证 提交 696d23b6 编写于 作者: O openharmony_ci 提交者: Gitee

!17253 调整js lite switch示例代码及配图

Merge pull request !17253 from piggyguy_jdx/adjust-switch-sample
...@@ -83,14 +83,14 @@ ...@@ -83,14 +83,14 @@
// xxx.js // xxx.js
export default { export default {
data: { data: {
title: '开启' title: 'on'
}, },
switchChange(e){ switchChange(e){
console.log(e.checked); console.log(e.checked);
if(e.checked){ if(e.checked){
this.title="开启" this.title="on"
}else{ }else{
this.title="关闭" this.title="off"
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册