提交 a5eed7c5 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整switch示例

上级 2836590a
......@@ -2,7 +2,7 @@
<view>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-title">默认样式</view>
<view class="flex-row" @click="testTap">
<view class="flex-row">
<switch class="switch-checked" :checked="checked" @change="switch1Change" />
<switch @change="switch2Change" />
<!-- <text class="switch-checked-value">{{clickCheckedValue}}</text> -->
......@@ -49,9 +49,6 @@
},
switch2Change: function (e : UniSwitchChangeEvent) {
console.log('switch2 发生 change 事件,携带值为', e.detail.value)
},
testTap: function (e: UniMouseEvent) {
console.log(e);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册