[Doc] fix picker demo (#766)

This commit is contained in:
erniu 2018-03-23 17:21:15 +08:00 committed by neverland
parent 72cca2c961
commit 0030024282
2 changed files with 8 additions and 4 deletions

View File

@ -23,8 +23,10 @@ export default {
columns: ['Delaware', 'Florida', 'Georqia', 'Indiana', 'Maine']
};
},
onChange(picker, value, index) {
Toast(`Value: ${value}, Index: ${index}`);
methods: {
onChange(picker, value, index) {
Toast(`Value: ${value}, Index: ${index}`);
}
}
};
```

View File

@ -24,8 +24,10 @@ export default {
columns: ['杭州', '宁波', '温州', '嘉兴', '湖州']
};
},
onChange(picker, value, index) {
Toast(`当前值:${value}, 当前索引:${index}`);
methods: {
onChange(picker, value, index) {
Toast(`当前值:${value}, 当前索引:${index}`);
}
}
};
```