提交 854583f8 编写于 作者: J jiadexiang

Description: adjust switch sample

IssueNo:I6VAYT
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: Njiadexiang <jiadexiang@huawei.com>
上级 338fd314
......@@ -83,14 +83,14 @@
// xxx.js
export default {
data: {
title: '开启'
title: 'on'
},
switchChange(e){
console.log(e.checked);
if(e.checked){
this.title="开启"
this.title="on"
}else{
this.title="关闭"
this.title="off"
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册