1
0
mirror of https://gitee.com/vant-contrib/vant-weapp.git synced 2025-04-06 03:58:05 +08:00
2017-02-24 16:26:10 +08:00

20 lines
240 B
JavaScript

var Zan = require('../../dist/index');
Page(Object.assign({}, Zan.Switch, {
data: {
checked: false
},
onLoad() {
},
onShow() {
},
handleZanSwitchChange(e) {
this.setData({
checked: e.checked
});
}
}));