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
});
}
}));